You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

567 lines
21 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Front.aspx.cs" Inherits="Swift.web.Font" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head id="Head1" runat="server">
  5. <meta charset="utf-8" />
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1" />
  8. <title>JME Remit-Admin</title>
  9. <link href="ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
  10. <link href="ui/css/menu.css" type="text/css" rel="stylesheet" />
  11. <link href="ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
  12. <link href="ui/css/style.css" rel="stylesheet" />
  13. <script src="ui/js/jquery.min.js"></script>
  14. <script src="ui/bootstrap/js/bootstrap.min.js"></script>
  15. <script src="js/functions.js"></script>
  16. <!-- for PI chart -->
  17. <%--<script src="js/highcharts/picharts.js"></script>--%>
  18. <script src="https://code.highcharts.com/highcharts.js"></script>
  19. <script src="https://code.highcharts.com/modules/series-label.js"></script>
  20. <script src="https://code.highcharts.com/modules/exporting.js"></script>
  21. <script src="js/DashBoardchart.js"></script>
  22. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  23. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  24. <!--[if lt IE 9]>
  25. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  26. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  27. <![endif]-->
  28. <style type="text/css">
  29. .holder {
  30. /*background-color: #ccc;*/
  31. /*width: 300px;*/
  32. height: 250px;
  33. overflow: hidden;
  34. padding: 10px;
  35. /*font-family: Helvetica;*/
  36. }
  37. .holder .mask {
  38. position: relative;
  39. left: 0px;
  40. /*top: 10px;*/
  41. /*width: 300px;*/
  42. height: 240px;
  43. overflow: hidden;
  44. }
  45. .holder ul {
  46. list-style: none;
  47. margin: 0;
  48. padding: 0;
  49. position: relative;
  50. }
  51. .holder ul li {
  52. padding: 10px 0px;
  53. }
  54. .holder ul li a {
  55. /*color: darkred;*/
  56. text-decoration: none;
  57. }
  58. </style>
  59. <style>
  60. #container1 {
  61. min-width: 310px;
  62. max-width: 1200px;
  63. height: 270px;
  64. margin-left: -50px !important;
  65. }
  66. #container2 {
  67. min-width: 310px;
  68. max-width: 1200px;
  69. height: 270px;
  70. margin-left: -50px !important;
  71. }
  72. #container3 {
  73. min-width: 310px;
  74. max-width: 1200px;
  75. height: 270px;
  76. margin-left: -50px !important;
  77. }
  78. #container4 {
  79. min-width: 310px;
  80. max-width: 1200px;
  81. height: 270px;
  82. margin-left: -50px !important;
  83. }
  84. #container5 {
  85. min-width: 310px;
  86. max-width: 1200px;
  87. height: 270px;
  88. margin-left: -50px !important;
  89. }
  90. .highcharts-menu-item {
  91. font-family: sans-serif !important;
  92. font-weight: bold !important;
  93. }
  94. hr {
  95. margin-bottom: 10px !important;
  96. margin-top: 10px !important;
  97. }
  98. </style>
  99. <script type="text/javascript">
  100. function OpenInNewWin(urlType) {
  101. var url;
  102. if (urlType == 'iSend') {
  103. url = '../RemittanceSystem/RemittanceReports/AnalysisReport/TranAnalysisReport.aspx?reportName=trananalysisintl&fromDate=<%= GetDate() %>&toDate=<%= GetDate() %>&fromTime=00:00:00&toTime=23:59:59&dateType=S&sCountry=&rCountry=&groupBy=detail&searchBy=sender';
  104. }
  105. else if (urlType == 'iPaid') {
  106. url = '../Remit/Transaction/Reports/IntlReports/PayTrnRpt/ShowReport.aspx?reportName=paidtranint&fromDate=<%= GetDate() %>&toDate=<%= GetDate() %>&sCountry=&sZone=All&sDistrict=All&rCountry=&rZone=All&rDistrict=All';
  107. }
  108. else if (urlType == 'iCancel') {
  109. //reportName=40111600&sBranch=393879&orderBy=dot&fromDate=1/20/2019&toDate=1/20/2019&dateField=paidDate&from=2019/01/20&to=2019/01/20&transType=Cancel&rptType=s&displayTranNo=N
  110. url = '../RemittanceSystem/RemittanceReports/Reports.aspx?reportName=20163300&fromDate=<%= GetDate() %>&toDate=<%= GetDate() %>&rCountry=Nepal&ctype=Approved&transType=Cancel&rptType=s&displayTranNo=N';
  111. }
  112. else if (urlType == 'isend') {
  113. url = "";
  114. }
  115. OpenInNewWindow(url);
  116. return false;
  117. }
  118. function ShowReport(reportType) {
  119. var url;
  120. if (reportType == 'Total Unpaid Transactions') {
  121. var TranType = 'i';
  122. var Country = '';
  123. var url = "RemittanceSystem/RemittanceReports/Reports.aspx?reportName=20167500&flag=detail1&TranType=" + TranType + "&country=" + Country;
  124. } else if (reportType == 'Unpaid between 5 to 15 days') {
  125. var TranType = 'i';
  126. var Country = '';
  127. var url = "RemittanceSystem/RemittanceReports/Reports.aspx?reportName=20167500&flag=between5to15&TranType=" + TranType + "&country=" + Country;
  128. } else if (reportType == 'Unpaid from more than 15 days') {
  129. var TranType = 'i';
  130. var Country = '';
  131. var url = "RemittanceSystem/RemittanceReports/Reports.aspx?reportName=20167500&flag=greaterthan15&TranType=" + TranType + "&country=" + Country;
  132. }
  133. else if (reportType == 'Todays Customer Registration') {
  134. var TranType = 'i';
  135. var Country = '';
  136. var url = "RemittanceSystem/RemittanceReports/Reports.aspx?reportName=20167500&flag=customerregistration&TranType=" + TranType + "&country=" + Country;
  137. }
  138. OpenInNewWindow(url);
  139. return false;
  140. }
  141. </script>
  142. </head>
  143. <body>
  144. <form id="form1" runat="server">
  145. <div class="page-wrapper">
  146. <div class="row" id="divPopulateTxnCount" runat="server">
  147. <div class="col-sm-6 col-md-3 margin-b-30">
  148. <div class="tile green">
  149. <div class="tile-title clearfix">
  150. Today's Send
  151. </div>
  152. <div class="tile-body clearfix">
  153. <i class="fa fa-credit-card"></i>
  154. <h4 class="pull-right">
  155. <a onclick=" OpenInNewWin('iSend')" href="#" style="color: white;">
  156. <asp:Label runat="server" ID="iSend"></asp:Label></a>
  157. </h4>
  158. </div>
  159. <div class="tile-footer">
  160. <a onclick=" OpenInNewWin('iSend')" href="#">View Details...</a>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="col-sm-6 col-md-3 margin-b-30">
  165. <div class="tile blue">
  166. <div class="tile-title clearfix">
  167. Today's Pay
  168. </div>
  169. <div class="tile-body clearfix">
  170. <i class="fa fa-credit-card"></i>
  171. <h4 class="pull-right">
  172. <a style="color: white;" onclick=" return OpenInNewWin('iPaid');" href="#">
  173. <asp:Label runat="server" ID="iPaid"></asp:Label>
  174. </a>
  175. </h4>
  176. </div>
  177. <div class="tile-footer">
  178. <a onclick="return OpenInNewWin('iPaid');" href="#">View Details...</a>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="col-sm-6 col-md-3 margin-b-30">
  183. <div class="tile red">
  184. <div class="tile-title clearfix">
  185. Today's Cancel
  186. </div>
  187. <div class="tile-body clearfix">
  188. <i class="fa fa-credit-card"></i>
  189. <h4 class="pull-right">
  190. <a onclick=" OpenInNewWin('iCancel')" style="color: white;" href="#">
  191. <asp:Label runat="server" ID="iCancel"></asp:Label></a>
  192. </h4>
  193. </div>
  194. <div class="tile-footer">
  195. <a onclick=" OpenInNewWin('iCancel')" href="#">View Details...
  196. </a>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <div class="row">
  202. <div class="col-md-6">
  203. <div class="panel panel-default recent-activites">
  204. <!-- Start .panel -->
  205. <div class="panel-heading">
  206. <h4 class="panel-title">Status Wise number of Transaction</h4>
  207. <div class="panel-actions">
  208. </div>
  209. </div>
  210. <div class="panel-body">
  211. <div class="col-md-12" id="TxnWiseStatus" runat="server"></div>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="col-md-6">
  216. <div class="panel panel-default recent-activites">
  217. <!-- Start .panel -->
  218. <div class="panel-heading">
  219. <h4 class="panel-title">Partner Wise Settlement Rate</h4>
  220. <div class="panel-actions">
  221. </div>
  222. </div>
  223. <div class="panel-body pad-0 holder" style="height: 200px !important; font-size: 11px;" id="tblExRate" runat="server">
  224. <table class="table table-responsive table-bordered">
  225. <thead>
  226. <tr>
  227. <th>S.No.</th>
  228. <th>Partner</th>
  229. <th>Ex Rate</th>
  230. <th>Payer</th>
  231. <th>Payment Modes</th>
  232. </tr>
  233. </thead>
  234. <tbody>
  235. <tr>
  236. <td colspan="5">No data to display</td>
  237. </tr>
  238. </tbody>
  239. </table>
  240. </div>
  241. </div>
  242. </div>
  243. </div>
  244. <div class="row" id="barDiv" runat="server" visible="false">
  245. <div class="col-md-12">
  246. <%--<div id="barGraph"></div>--%>
  247. <div id="container1" align="center"></div>
  248. <div id="container2" align="center"></div>
  249. <div id="container3" align="center"></div>
  250. <div id="container4" align="center"></div>
  251. <div id="container5" align="center"></div>
  252. </div>
  253. </div>
  254. <%-- <div class="col-md-6">
  255. <div class="panel panel-default recent-activites">
  256. <!-- Start .panel -->
  257. <div class="panel-heading">
  258. <h4 class="panel-title">Pie-Chart Data</h4>
  259. <div class="panel-actions">
  260. </div>
  261. </div>
  262. <div class="panel-body">
  263. <div id="piechart1"></div>
  264. </div>
  265. </div>
  266. </div>--%>
  267. <%-- <div class="modal fade " id="myModal" role="dialog" style="top: 150px;">
  268. <div class="modal-dialog modal-lg">
  269. <div class="modal-content">
  270. <div class="modal-header">
  271. <button type="button" class="close" data-dismiss="modal">&times;</button>
  272. <h4 class="modal-title">
  273. <label id="createdBy" style="text-transform: uppercase;"></label>
  274. &nbsp;&nbsp;<small style="font-size: 10px;"><i class="fa fa-clock-o"></i>&nbsp;<label id="createdDate"></small></h4>
  275. </div>
  276. <div class="modal-body">
  277. <label id="message"></label>
  278. </div>
  279. </div>
  280. </div>
  281. </div>
  282. </div>
  283. </div>--%>
  284. </div>
  285. </form>
  286. <script type="text/javascript">
  287. Highcharts.chart('container1', {
  288. chart: {
  289. width: 1100,
  290. height: 250
  291. },
  292. title: {
  293. text: 'JME Company Ltd.'
  294. },
  295. subtitle: {
  296. text: '<%=countryName%> monthly transaction trend'
  297. },
  298. yAxis: {
  299. title: {
  300. text: 'Number of Transactitons'
  301. }
  302. },
  303. legend: {
  304. layout: 'vertical',
  305. align: 'right',
  306. verticalAlign: 'middle'
  307. },
  308. plotOptions: {
  309. series: {
  310. label: {
  311. connectorAllowed: false
  312. },
  313. pointStart: 1
  314. }
  315. },
  316. series: [<%=HighChart%>],
  317. responsive: {
  318. rules: [{
  319. condition: {
  320. maxWidth: 1000
  321. },
  322. chartOptions: {
  323. legend: {
  324. layout: 'horizontal',
  325. align: 'center',
  326. verticalAlign: 'bottom'
  327. }
  328. }
  329. }]
  330. }
  331. });
  332. Highcharts.chart('container2', {
  333. chart: {
  334. width: 1100,
  335. height: 250
  336. },
  337. title: {
  338. text: 'JME Company Ltd.'
  339. },
  340. subtitle: {
  341. text: '<%=countryName2%> monthly transaction trend'
  342. },
  343. yAxis: {
  344. title: {
  345. text: 'Number of Transactitons'
  346. }
  347. },
  348. legend: {
  349. layout: 'vertical',
  350. align: 'right',
  351. verticalAlign: 'middle'
  352. },
  353. plotOptions: {
  354. series: {
  355. label: {
  356. connectorAllowed: false
  357. },
  358. pointStart: 1
  359. }
  360. },
  361. series: [<%=HighChart2%>],
  362. responsive: {
  363. rules: [{
  364. condition: {
  365. maxWidth: 1000
  366. },
  367. chartOptions: {
  368. legend: {
  369. layout: 'horizontal',
  370. align: 'center',
  371. verticalAlign: 'bottom'
  372. }
  373. }
  374. }]
  375. }
  376. });
  377. Highcharts.chart('container3', {
  378. chart: {
  379. width: 1100,
  380. height: 250
  381. },
  382. title: {
  383. text: 'JME Company Ltd.'
  384. },
  385. subtitle: {
  386. text: '<%=countryName3%> monthly transaction trend'
  387. },
  388. yAxis: {
  389. title: {
  390. text: 'Number of Transactitons'
  391. }
  392. },
  393. legend: {
  394. layout: 'vertical',
  395. align: 'right',
  396. verticalAlign: 'middle'
  397. },
  398. plotOptions: {
  399. series: {
  400. label: {
  401. connectorAllowed: false
  402. },
  403. pointStart: 1
  404. }
  405. },
  406. series: [<%=HighChart3%>],
  407. responsive: {
  408. rules: [{
  409. condition: {
  410. maxWidth: 1000
  411. },
  412. chartOptions: {
  413. legend: {
  414. layout: 'horizontal',
  415. align: 'center',
  416. verticalAlign: 'bottom'
  417. }
  418. }
  419. }]
  420. }
  421. });
  422. Highcharts.chart('container4', {
  423. chart: {
  424. width: 1100,
  425. height: 250
  426. },
  427. title: {
  428. text: 'JME Company Ltd.'
  429. },
  430. subtitle: {
  431. text: '<%=countryName4%> monthly transaction trend'
  432. },
  433. yAxis: {
  434. title: {
  435. text: 'Number of Transactitons'
  436. }
  437. },
  438. legend: {
  439. layout: 'vertical',
  440. align: 'right',
  441. verticalAlign: 'middle'
  442. },
  443. plotOptions: {
  444. series: {
  445. label: {
  446. connectorAllowed: false
  447. },
  448. pointStart: 1
  449. }
  450. },
  451. series: [<%=HighChart4%>],
  452. responsive: {
  453. rules: [{
  454. condition: {
  455. maxWidth: 1000
  456. },
  457. chartOptions: {
  458. legend: {
  459. layout: 'horizontal',
  460. align: 'center',
  461. verticalAlign: 'bottom'
  462. }
  463. }
  464. }]
  465. }
  466. });
  467. Highcharts.chart('container5', {
  468. chart: {
  469. width: 1100,
  470. height: 250
  471. },
  472. title: {
  473. text: 'JME Company Ltd.'
  474. },
  475. subtitle: {
  476. text: '<%=countryName5%> monthly transaction trend'
  477. },
  478. yAxis: {
  479. title: {
  480. text: 'Number of Transactitons'
  481. }
  482. },
  483. legend: {
  484. layout: 'vertical',
  485. align: 'right',
  486. verticalAlign: 'middle'
  487. },
  488. plotOptions: {
  489. series: {
  490. label: {
  491. connectorAllowed: false
  492. },
  493. pointStart: 1
  494. }
  495. },
  496. series: [<%=HighChart5%>],
  497. responsive: {
  498. rules: [{
  499. condition: {
  500. maxWidth: 1000
  501. },
  502. chartOptions: {
  503. legend: {
  504. layout: 'horizontal',
  505. align: 'center',
  506. verticalAlign: 'bottom'
  507. }
  508. }
  509. }]
  510. }
  511. });
  512. </script>
  513. <script>
  514. function ExportToExcel(type) {
  515. if (type == 'AccountList') {
  516. $("#btnExcelAccount").click();
  517. }
  518. else {
  519. $("#type").val(type);
  520. $("#btnExcel").click();
  521. }
  522. };
  523. function ShowMessage(msgId) {
  524. $.ajax({
  525. type: "POST",
  526. url: "/Front.aspx",
  527. data: { MethodName: "Messages", MessageId: msgId },
  528. success: function (result) {
  529. PopulateData(result);
  530. }
  531. });
  532. };
  533. function PopulateData(data) {
  534. $('#myModal').modal('show');
  535. var obj = jQuery.parseJSON(data);
  536. $('#message').html(obj.Message);
  537. $('#createdBy').html(obj.CreatedBy);
  538. $('#createdDate').html(obj.CreatedDate);
  539. //$('#questionDesc').html(obj.Description);
  540. //$('#forumTitle').html(obj.ForumTitle);
  541. };
  542. </script>
  543. </body>
  544. </html>