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.

250 lines
13 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RBATxnRpt.aspx.cs" Inherits="Swift.web.Remit.RiskBaseAnalysis.RBATxnRpt" %>
  2. <%@ Import Namespace="Swift.web.Library" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head id="Head1" runat="server">
  6. <link href="../../Css/style.css" rel="Stylesheet" type="text/css" />
  7. <link href="../../Css/swift_component.css" rel="stylesheet" type="text/css" />
  8. <script type="text/javascript" src="../../js/functions.js"></script>
  9. <script src="../../js/swift_calendar.js" type="text/javascript"></script>
  10. <link href="../../css/formStyle.css" rel="stylesheet" type="text/css" />
  11. <link href="../../js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css"/>
  12. <script src="../../js/jQuery/jquery-1.4.1.min.js" type="text/javascript"></script>
  13. <script src="../../js/jQuery/jquery-ui.min.js" type="text/javascript"></script>
  14. <script type="text/javascript" language="javascript">
  15. function LoadCalendars() {
  16. ShowCalDefault("#<% =fromDate.ClientID%>");
  17. ShowCalDefault("#<% =toDate.ClientID%>");
  18. }
  19. LoadCalendars();
  20. </script>
  21. </head>
  22. <body>
  23. <form id="form1" runat="server">
  24. <div class="breadCrumb"> Reports » Risk Base Analysis TXN </div>
  25. <asp:HiddenField ID="hdnIsAdvaceSearch" runat="server" Value="N"/>
  26. <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  27. <table border="0" align="left" cellpadding="0" cellspacing="0">
  28. <tr>
  29. <td height="10">
  30. <div class="tabs" >
  31. <ul>
  32. <li> <a href="#" class="selected">RBA TXN Report</a></li>
  33. <li> <a href="RBAStatistics.aspx">RBA Statistics</a></li>
  34. </ul>
  35. </div>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td>
  40. <asp:UpdatePanel ID="updatePanel1" runat="server">
  41. <ContentTemplate>
  42. <table border="0" cellspacing="5" cellpadding="5" class="formTable">
  43. <tr>
  44. <th class="frmTitle" colspan="3">RBA TXN Report</th>
  45. </tr>
  46. <tr>
  47. <td nowrap="nowrap" width="100px"><div align="left" class="formLabel">Sending Country:</div></td>
  48. <td nowrap="nowrap" colspan="2">
  49. <asp:DropDownList ID="sCountry" runat="server"
  50. style="width:200px;" AutoPostBack="True"
  51. onselectedindexchanged="sCountry_SelectedIndexChanged"></asp:DropDownList>
  52. <span class="errormsg">*</span>
  53. <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="sCountry" ForeColor="Red"
  54. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  55. </asp:RequiredFieldValidator>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td nowrap="nowrap"><div align="left" class="formLabel">Sending Agent:</div></td>
  60. <td nowrap="nowrap">
  61. <asp:DropDownList ID="sAgent" runat="server"
  62. style="width:200px;" AutoPostBack="True"
  63. onselectedindexchanged="sAgent_SelectedIndexChanged"></asp:DropDownList>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td nowrap="nowrap"> <div align="left" class="formLabel">Sending Branch:</div></td>
  68. <td nowrap="nowrap">
  69. <asp:DropDownList ID="sBranch" runat="server"
  70. style="width:200px;"></asp:DropDownList>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td nowrap="nowrap"> <div align="left" class="formLabel">Sender's Native Country:</div></td>
  75. <td nowrap="nowrap">
  76. <asp:DropDownList ID="sNativeCountry" runat="server"
  77. style="width:200px;"></asp:DropDownList>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td nowrap="nowrap"> <div align="left" class="formLabel">Sender's ID Number:</div></td>
  82. <td nowrap="nowrap">
  83. <asp:TextBox ID="sIdNumber" runat="server"
  84. style="width:200px;"></asp:TextBox>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td nowrap="nowrap" width="100px"> <div align="left" class="formLabel"> Date:</div></td>
  89. <td nowrap="nowrap"> From <br />
  90. <asp:TextBox ID= "fromDate" runat = "server" class="dateField" Width="80px" size="12"></asp:TextBox>
  91. <span class="errormsg">*</span>
  92. <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="fromDate" ForeColor="Red"
  93. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  94. </asp:RequiredFieldValidator>
  95. </td>
  96. <td nowrap="nowrap"> To <br />
  97. <asp:TextBox ID= "toDate" runat = "server" class="dateField" Width="80px" size="12"></asp:TextBox>
  98. <span class="errormsg">*</span>
  99. <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="toDate" ForeColor="Red"
  100. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  101. </asp:RequiredFieldValidator>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td nowrap="nowrap" width="100px"> <div align="left" class="formLabel"> RBA Range:</div></td>
  106. <td nowrap="nowrap">
  107. <asp:TextBox ID= "rbaRangeFrom" runat = "server" Text="" Width="80px" size="12"></asp:TextBox>
  108. </td>
  109. <td nowrap="nowrap">
  110. <asp:TextBox ID= "rbaRangeTo" runat = "server" Text="" Width="80px" size="12"></asp:TextBox>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td nowrap="nowrap"> <div align="left" class="formLabel"> Report Type:</div></td>
  115. <td colspan="2">
  116. <asp:DropDownList ID="rptType" runat="server" Width="200px">
  117. <asp:ListItem Value = "">Select</asp:ListItem>
  118. <asp:ListItem Value = "Summary Report-Monthly">Summary Report-Monthly</asp:ListItem>
  119. <asp:ListItem Value = "Summary Report-Agent">Summary Report-Agent</asp:ListItem>
  120. <asp:ListItem Value = "Summary Report-Branch">Summary Report-Branch</asp:ListItem>
  121. </asp:DropDownList>
  122. <span class="errormsg">*</span>
  123. <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="rptType" ForeColor="Red"
  124. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  125. </asp:RequiredFieldValidator>
  126. </td>
  127. </tr>
  128. <tr>
  129. <td nowrap="nowrap"> <div align="left" class="formLabel"> Receiver&#39;s Country:</div></td>
  130. <td nowrap="nowrap">
  131. <asp:DropDownList ID="rCountry" runat="server"
  132. style="width:200px;"></asp:DropDownList>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td><div align="left" class="formLabel">Txn to Non Native Country:</div></td>
  137. <td>
  138. <asp:DropDownList ID="txnToNonNativeCountry" runat="server">
  139. <asp:ListItem Value="">All</asp:ListItem>
  140. <asp:ListItem Value="Y">Yes</asp:ListItem>
  141. <asp:ListItem Value="N">No</asp:ListItem>
  142. </asp:DropDownList>
  143. </td>
  144. </tr>
  145. <tr>
  146. <td><b><u>Additional Filter</u></b></td>
  147. </tr>
  148. <tr>
  149. <td>
  150. <div align="left" class="formLabel">TXN Amount:</div>
  151. </td>
  152. <td>
  153. <asp:TextBox ID= "txnAmountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  154. </td>
  155. <td>
  156. <asp:TextBox ID= "txnAmountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td>&nbsp;</td>
  161. <td colspan="2">
  162. <asp:Button ID="BtnSave1" runat="server" CssClass="button"
  163. Text=" Search " ValidationGroup="rpt"
  164. OnClientClick="return showReport();" />
  165. </td>
  166. </tr>
  167. </table>
  168. </ContentTemplate>
  169. <Triggers>
  170. <asp:AsyncPostBackTrigger ControlID="rCountry" EventName="SelectedIndexChanged" />
  171. </Triggers>
  172. </asp:UpdatePanel>
  173. </td>
  174. </tr>
  175. </table>
  176. </form>
  177. </body>
  178. </html>
  179. <script language = "javascript" type = "text/javascript">
  180. function getRadioCheckedValue(radioName) {
  181. var oRadio = document.forms[0].elements[radioName];
  182. for (var i = 0; i < oRadio.length; i++) {
  183. if (oRadio[i].checked) {
  184. return oRadio[i].value;
  185. }
  186. }
  187. return '';
  188. }
  189. function showReport() {
  190. if (!Page_ClientValidate('rpt'))
  191. return false;
  192. var reportFor = "TXN RBA-V2";
  193. var sCountry = $("#sCountry option:selected").text();
  194. var sAgent = GetValue("<% =sAgent.ClientID%>");
  195. var sBranch = GetValue("<% =sBranch.ClientID%>");
  196. var sNativeCountry = GetValue("<% =sNativeCountry.ClientID%>");
  197. var rCountry = GetValue("<% =rCountry.ClientID%>");
  198. var sIdNumber = GetValue("<% =sIdNumber.ClientID%>");
  199. var fromDate = GetDateValue("<% =fromDate.ClientID%>");
  200. var toDate = GetDateValue("<% =toDate.ClientID%>");
  201. var rbaRangeFrom = GetValue("<% =rbaRangeFrom.ClientID%>");
  202. var rbaRangeTo = GetValue("<% =rbaRangeTo.ClientID%>");
  203. var txnToNonNativeCountry = GetValue("<% =txnToNonNativeCountry.ClientID%>");
  204. var rptType = GetValue("<% =rptType.ClientID%>");
  205. var txnAmountFrom = GetValue("<% =txnAmountFrom.ClientID%>");
  206. var txnAmountTo = GetValue("<%=txnAmountTo.ClientID %>");
  207. var url = "../../SwiftSystem/Reports/Reports.aspx?reportName=rbareport" +
  208. "&sCountry=" + sCountry +
  209. "&reportFor=" + reportFor +
  210. "&sAgent=" + sAgent +
  211. "&sBranch=" + sBranch +
  212. "&sNativeCountry=" + sNativeCountry +
  213. "&rCountry=" + rCountry +
  214. "&sIdNumber=" + sIdNumber +
  215. "&fromDate=" + fromDate +
  216. "&toDate=" + toDate +
  217. "&rbaRangeFrom=" + rbaRangeFrom +
  218. "&rbaRangeTo=" + rbaRangeTo +
  219. "&txnToNonNativeCountry=" + txnToNonNativeCountry +
  220. "&rptType=" + rptType +
  221. "&txnAmountFrom=" + txnAmountFrom +
  222. "&txnAmountTo=" + txnAmountTo;
  223. OpenInNewWindow(url);
  224. return false;
  225. }
  226. </script>
  227. <script type='text/javascript' language='javascript'>
  228. Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
  229. function EndRequest(sender, args) {
  230. if (args.get_error() == undefined) {
  231. LoadCalendars();
  232. }
  233. }
  234. </script>