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.

238 lines
13 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="Swift.web.Responsive.Reports.TxnDetail.Manage" %>
  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. <title></title>
  6. <script src="../../../js/functions.js"></script>
  7. <link href="../../../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
  8. <link href="../../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
  9. <link href="../../../css/swift_component.css" rel="stylesheet" type="text/css" />
  10. <link href="../../../ui/css/style.css" rel="stylesheet" />
  11. <script src="../../../js/jQuery/jquery-1.4.1.js"></script>
  12. <link href="../../../js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
  13. <script src="../../../js/jQuery/jquery-ui.min.js"></script>
  14. <script src="../../../js/swift_calendar.js" type="text/javascript"></script>
  15. <script type="text/javascript">
  16. function GetAgentId() {
  17. return GetValue("<%=pAgent.ClientID %>");
  18. }
  19. function LoadCalendars() {
  20. ShowCalDefault("#<% =frmDate.ClientID%>");
  21. ShowCalDefault("#<% =toDate.ClientID%>");
  22. }
  23. LoadCalendars();
  24. </script>
  25. <script type="text/javascript">
  26. function OpenReport(rptType) {
  27. var country = "";
  28. country = GetValue("<% =pCountry.ClientID %>");
  29. if (country != "") {
  30. country = GetElement("<% = pCountry.ClientID%>").options[GetElement("<% = pCountry.ClientID%>").selectedIndex].text;
  31. }
  32. var agent = GetValue("<% =pAgent.ClientID %>");
  33. var sBranch = GetValue("<% =Sbranch.ClientID %>");
  34. <%-- var depositType = GetValue("<% =depositType.ClientID %>");--%>
  35. var depositType = "";
  36. var orderBy = GetValue("<% =orderBy.ClientID %>");
  37. var status = GetValue("<% =status.ClientID %>");
  38. var paymentType = GetValue("<% =paymentType.ClientID %>");
  39. var dateField = GetValue("<% =dateField.ClientID %>");
  40. var from = GetDateValue("<% =frmDate.ClientID %>");
  41. var to = GetDateValue("<% =toDate.ClientID %>");
  42. var transType = GetValue("<% =tranType.ClientID %>");
  43. var searchBy = GetValue("<% =searchBy.ClientID %>");
  44. var searchByValue = GetValue("<% =searchByValue.ClientID %>");
  45. var displayTranNo = "";
  46. if (document.getElementById("displayTranNo").checked == true) {
  47. displayTranNo = "Y";
  48. }
  49. else {
  50. displayTranNo = "N";
  51. }
  52. var url = "../../Reports.aspx?reportName=40111600&pCountry=" + country +
  53. "&pAgent=" + agent +
  54. "&sBranch=" + sBranch +
  55. "&depositType=" + depositType +
  56. "&searchBy=" + searchBy +
  57. "&searchByValue=" + searchByValue +
  58. "&orderBy=" + orderBy +
  59. "&status=" + status +
  60. "&paymentType=" + paymentType +
  61. "&dateField=" + dateField +
  62. "&from=" + from +
  63. "&to=" + to +
  64. "&transType=" + transType +
  65. "&rptType=" + rptType +
  66. "&displayTranNo=" + displayTranNo;
  67. OpenInNewWindow(url);
  68. }
  69. </script>
  70. </head>
  71. <body>
  72. <form id="form1" runat="server">
  73. <div class="page-wrapper">
  74. <div class="row">
  75. <div class="col-sm-12">
  76. <div class="page-title">
  77. <ol class="breadcrumb">
  78. <li><a href="../../../Agent/AgentMain.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
  79. <li><a href="#" onclick="return LoadModuleAgentMenu('reports')">Reports</a></li>
  80. <li class="active"><a href="Manage.aspx">Transaction Report</a></li>
  81. </ol>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="row">
  86. <!-- First Panel -->
  87. <div class="col-md-8">
  88. <div class="panel panel-default ">
  89. <div class="panel-heading">
  90. <h4 class="panel-title">Transaction Report</h4>
  91. <div class="panel-actions">
  92. <a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
  93. </div>
  94. </div>
  95. <div class="panel-body">
  96. <table class="table table-responsive">
  97. <tr style="display: none;">
  98. <td nowrap="nowrap">Beneficiary:
  99. </td>
  100. <td>
  101. <asp:DropDownList runat="server" CssClass="form-control" ID="pCountry" Width="300px"
  102. AutoPostBack="false">
  103. </asp:DropDownList>
  104. </td>
  105. <td>&nbsp;</td>
  106. </tr>
  107. <tr style="display: none;">
  108. <td nowrap="nowrap">Agent Name:
  109. </td>
  110. <td>
  111. <asp:DropDownList runat="server" ID="pAgent" Width="300px" AutoPostBack="true" CssClass="form-control">
  112. <asp:ListItem Value="">All</asp:ListItem>
  113. </asp:DropDownList>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td>Branch Name:
  118. </td>
  119. <td>
  120. <asp:DropDownList ID="Sbranch" runat="server" CssClass="form-control">
  121. </asp:DropDownList>
  122. </td>
  123. <td>&nbsp;</td>
  124. </tr>
  125. <tr>
  126. <td nowrap="nowrap">Search By:
  127. </td>
  128. <td nowrap="nowrap">
  129. <asp:DropDownList runat="server" ID="searchBy" CssClass="form-control">
  130. <asp:ListItem Value="" Selected="True">All</asp:ListItem>
  131. <asp:ListItem Value="sName">By Sender Name</asp:ListItem>
  132. <asp:ListItem Value="rName">By Receiver Name</asp:ListItem>
  133. <asp:ListItem Value="icn">By BRN</asp:ListItem>
  134. <asp:ListItem Value="cAmt">Collection Amount</asp:ListItem>
  135. </asp:DropDownList>
  136. </td>
  137. <td>
  138. <asp:TextBox runat="server" ID="searchByValue" placeholder="Search by Value" CssClass="form-control">
  139. </asp:TextBox>
  140. </td>
  141. </tr>
  142. <tr style="display: none;">
  143. <td>Order By:
  144. </td>
  145. <td>
  146. <asp:DropDownList runat="server" ID="orderBy" Width="300px" CssClass="form-control">
  147. <asp:ListItem Value="sName">By Sender Name</asp:ListItem>
  148. <asp:ListItem Value="sCompany">By Sender Company</asp:ListItem>
  149. <asp:ListItem Value="rName">By Receiver Name</asp:ListItem>
  150. <asp:ListItem Value="rAmnt">By Receive Amt</asp:ListItem>
  151. <asp:ListItem Value="empId">By Emp Id</asp:ListItem>
  152. <asp:ListItem Value="dot" Selected="True">By Date Of Transaction(DOT)</asp:ListItem>
  153. <asp:ListItem Value="paidDate">By Paid Date</asp:ListItem>
  154. </asp:DropDownList>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td>Status:
  159. </td>
  160. <td>
  161. <asp:DropDownList runat="server" ID="status" CssClass="form-control" Width="300px" AutoPostBack="True" OnSelectedIndexChanged="status_SelectedIndexChanged">
  162. </asp:DropDownList>
  163. </td>
  164. </tr>
  165. <tr>
  166. <td>Tran Type:
  167. </td>
  168. <td>
  169. <asp:DropDownList runat="server" ID="tranType" Width="300px" CssClass="form-control">
  170. </asp:DropDownList>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td nowrap="nowrap">Payment Type:
  175. </td>
  176. <td>
  177. <asp:DropDownList runat="server" ID="paymentType" Width="300px" CssClass="form-control">
  178. </asp:DropDownList>
  179. </td>
  180. </tr>
  181. <tr style="display: none;">
  182. <td nowrap="nowrap">Date Type:
  183. </td>
  184. <td>
  185. <asp:DropDownList runat="server" ID="dateField" Width="300px" CssClass="form-control">
  186. <asp:ListItem Value="trnDate">By TRN Date</asp:ListItem>
  187. <asp:ListItem Value="confirmDate" Selected="true">By Confirm Date</asp:ListItem>
  188. <asp:ListItem Value="paidDate">By Paid Date</asp:ListItem>
  189. </asp:DropDownList>
  190. </td>
  191. </tr>
  192. <tr>
  193. <td nowrap="nowrap"></td>
  194. <td>From Date
  195. <div class="input-group m-b">
  196. <span class="input-group-addon">
  197. <i class="fa fa-calendar" aria-hidden="true"></i>
  198. </span>
  199. <asp:TextBox ID="frmDate" runat="server" ReadOnly="true" Width="260px" CssClass="form-control"></asp:TextBox>
  200. </div>
  201. </td>
  202. <td>To Date
  203. <div class="input-group m-b">
  204. <span class="input-group-addon">
  205. <i class="fa fa-calendar" aria-hidden="true"></i>
  206. </span>
  207. <asp:TextBox ID="toDate" runat="server" ReadOnly="true" Width="260px" CssClass="form-control"></asp:TextBox>
  208. </td>
  209. </tr>
  210. <tr style="display: none;">
  211. <td></td>
  212. <td>
  213. <asp:CheckBox runat="server" ID="displayTranNo" Text="Display Tran No" />
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>&nbsp;
  218. </td>
  219. <td>
  220. <input type="button" class="btn btn-primary m-t-25" value="View Send Details" onclick="OpenReport('s');" />
  221. <input type="button" class="btn btn-primary m-t-25" value="View Pay Details" onclick="OpenReport('p');" />
  222. </td>
  223. </tr>
  224. </table>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. </form>
  231. </body>
  232. </html>