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.

126 lines
6.6 KiB

  1. <%@ Page Title="" Language="C#" MasterPageFile="~/AgentNew/AgentMain.Master" AutoEventWireup="true" CodeBehind="TxnDownload.aspx.cs" Inherits="Swift.web.AgentNew.Administration.TransactionSync.TxnDownload" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  3. </asp:Content>
  4. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  5. <div class="page-wrapper">
  6. <div class="row">
  7. <div class="col-sm-12">
  8. <div class="page-title">
  9. <h1></h1>
  10. <ol class="breadcrumb">
  11. <li><a href="../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
  12. <li><a href="#">Other Services </a></li>
  13. <li><a href="#">Download Inficare Transaction</a></li>
  14. </ol>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="report-tab" runat="server" id="regUp">
  19. <div class="tab-content">
  20. <div role="tabpanel" class="tab-pane" id="List">
  21. </div>
  22. <div role="tabpanel" id="Manage">
  23. <div class="row">
  24. <div class="col-sm-12 col-md-12">
  25. <div class="register-form">
  26. <div class="panel panel-default clearfix m-b-20">
  27. <div class="panel-heading">Download Inficare Transaction</div>
  28. <div class="panel-body">
  29. <div class="row">
  30. <div class="col-md-12 form-group">
  31. <asp:Button ID="downloadbtn" runat="server" CssClass="btn btn-primary m-t-25" Text="Download" OnClick="downloadbtn_Click" />
  32. <label style="color: red">Note: If you don't see transaction in the list, then only click on Download.</label>&nbsp;&nbsp;
  33. <label id="numberOfTxns" runat="server"></label>
  34. </div>
  35. <div class="col-md-4 form-group">
  36. <label>Show:</label>
  37. <asp:DropDownList ID="ddlMapped" runat="server" CssClass="form-control" AutoPostBack="true" OnSelectedIndexChanged="ddlMapped_SelectedIndexChanged">
  38. <asp:ListItem Text="All" Value=""></asp:ListItem>
  39. <asp:ListItem Text="Mapped" Value="M"></asp:ListItem>
  40. <asp:ListItem Text="Un-Mapped" Value="U"></asp:ListItem>
  41. </asp:DropDownList>
  42. </div>
  43. <div class="col-md-12 form-group">
  44. <table class="table table-responsive table-bordered table-condensed">
  45. <thead>
  46. <tr>
  47. <th>Tran ID</th>
  48. <th>Control No</th>
  49. <th>Teller</th>
  50. <th>Sender Name</th>
  51. <th>Receiver Name</th>
  52. <th>Coll Mode</th>
  53. <th>Receiver Country</th>
  54. <th>Collect Amount</th>
  55. <th>Sent Amount</th>
  56. <th>Payout Amount</th>
  57. <th>Referral</th>
  58. <th>Actions</th>
  59. </tr>
  60. </thead>
  61. <tbody id="tranTable" runat="server">
  62. <tr>
  63. <td colspan="12" align="center">No data to display!</td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <script type="text/javascript">
  79. function ConfirmSave() {
  80. if (confirm('Do you want to continue with save?')) {
  81. return true;
  82. }
  83. return false;
  84. }
  85. function SavedClicked(tranId) {
  86. if (confirm('Do you want to continue with save?')) {
  87. if (tranId == '' || tranId == undefined || tranId == null) {
  88. return false;
  89. }
  90. var reqField = tranId + '_aText,';
  91. if (ValidRequiredField(reqField) == false) {
  92. return false;
  93. }
  94. var referralCode = $('#' + tranId + '_aValue').val();
  95. PostDate(tranId, referralCode);
  96. }
  97. else {
  98. return false;
  99. }
  100. }
  101. function PostDate(tranId, referralCode) {
  102. var dataToSend = {
  103. MethodName: "MapData"
  104. , TranId: tranId
  105. , ReferralCode: referralCode
  106. };
  107. $.ajax({
  108. type: "POST",
  109. url: "/AgentNew/Administration/TransactionSync/TxnDownload.aspx",
  110. data: dataToSend,
  111. success: function (response) {
  112. if (response.ErrorCode == '0') {
  113. alert(response.Msg);
  114. }
  115. else {
  116. alert(response.Msg);
  117. }
  118. },
  119. fail: function (response) {
  120. alert(response.Msg);
  121. }
  122. });
  123. }
  124. </script>
  125. </asp:Content>