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.

328 lines
18 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RBAReport.aspx.cs" Inherits="Swift.web.Remit.RiskBaseAnalysis.RBAReport" %>
  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. <link href="../../Css/style.css" rel="Stylesheet" type="text/css" />
  6. <link href="../../Css/swift_component.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="../../js/functions.js"></script>
  8. <script src="../../js/swift_calendar.js" type="text/javascript"></script>
  9. <link href="../../css/formStyle.css" rel="stylesheet" type="text/css" />
  10. <link href="../../js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css"/>
  11. <script src="../../js/jQuery/jquery-1.4.1.min.js" type="text/javascript"></script>
  12. <script src="../../js/jQuery/jquery-ui.min.js" type="text/javascript"></script>
  13. <script type="text/javascript" language="javascript">
  14. function LoadCalendars() {
  15. ShowCalDefault("#<% =fromDate.ClientID%>");
  16. ShowCalDefault("#<% =toDate.ClientID%>");
  17. }
  18. LoadCalendars();
  19. </script>
  20. </head>
  21. <body>
  22. <form id="form1" runat="server">
  23. <div class="breadCrumb"> Risk Base Analysis » Report</div>
  24. <asp:HiddenField ID="hdnIsAdvaceSearch" runat="server" Value="N"/>
  25. <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  26. <table border="0" align="left" cellpadding="0" cellspacing="0">
  27. <tr>
  28. <td height="10">
  29. <div class="tabs" >
  30. <ul>
  31. <li> <a href="#" class="selected">Remittance</a></li>
  32. <li> <a href="RBAReportMex.aspx">Money Exchange</a></li>
  33. </ul>
  34. </div>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td>
  39. <asp:UpdatePanel ID="updatePanel1" runat="server">
  40. <ContentTemplate>
  41. <table border="0" cellspacing="0" cellpadding="0" class="formTable" width="600px">
  42. <tr>
  43. <th class="frmTitle" colspan="3">Risk Base Analysis Report</th>
  44. </tr>
  45. <tr>
  46. <td class="formLabel"><div align="left" class="formLabel"> Report For:</div></td>
  47. <td colspan="2">
  48. <asp:RadioButtonList ID="reportFor" runat="server"
  49. RepeatDirection="Horizontal" AutoPostBack="true"
  50. onselectedindexchanged="reportFor_SelectedIndexChanged">
  51. <asp:ListItem Value="Txn RBA">Txn RBA</asp:ListItem>
  52. <asp:ListItem Value="Txn Average RBA">Txn Average RBA</asp:ListItem>
  53. <asp:ListItem Value="Periodic RBA">Periodic RBA</asp:ListItem>
  54. <asp:ListItem Value="Final RBA" Selected="true">Final RBA</asp:ListItem>
  55. </asp:RadioButtonList>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td nowrap="nowrap" width="100px"> <div align="left" class="formLabel">Sending Country:</div></td>
  60. <td nowrap="nowrap" colspan="2">
  61. <asp:DropDownList ID="sCountry" runat="server"
  62. style="width:200px;" AutoPostBack="True"
  63. onselectedindexchanged="sCountry_SelectedIndexChanged"></asp:DropDownList>
  64. <span class="errormsg">*</span>
  65. <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="sCountry" ForeColor="Red"
  66. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  67. </asp:RequiredFieldValidator>
  68. </td>
  69. </tr>
  70. <tr id="trSendingAgent" runat="server" Visible="false">
  71. <td nowrap="nowrap"> <div align="left" class="formLabel">Sending Agent:</div></td>
  72. <td nowrap="nowrap">
  73. <asp:DropDownList ID="sAgent" runat="server"
  74. style="width:200px;" AutoPostBack="True"
  75. onselectedindexchanged="sAgent_SelectedIndexChanged"></asp:DropDownList>
  76. </td>
  77. </tr>
  78. <tr id="trSendingBranch" runat="server" Visible="false">
  79. <td nowrap="nowrap"> <div align="left" class="formLabel">Sending Branch:</div></td>
  80. <td nowrap="nowrap">
  81. <asp:DropDownList ID="sBranch" runat="server"
  82. style="width:200px;"></asp:DropDownList>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td nowrap="nowrap"> <div align="left" class="formLabel">Sender's Native Country:</div></td>
  87. <td nowrap="nowrap">
  88. <asp:DropDownList ID="sNativeCountry" runat="server"
  89. style="width:200px;"></asp:DropDownList>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td nowrap="nowrap"> <div align="left" class="formLabel">Sender's ID Number:</div></td>
  94. <td nowrap="nowrap">
  95. <asp:TextBox ID="sIdNumber" runat="server"
  96. style="width:200px;"></asp:TextBox>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td nowrap="nowrap" width="100px"> <div align="left" class="formLabel"> Date:</div></td>
  101. <td nowrap="nowrap"> From <br />
  102. <asp:TextBox ID= "fromDate" runat = "server" class="dateField" Width="80px" size="12"></asp:TextBox>
  103. <span class="errormsg">*</span>
  104. <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="fromDate" ForeColor="Red"
  105. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  106. </asp:RequiredFieldValidator>
  107. </td>
  108. <td nowrap="nowrap"> To <br />
  109. <asp:TextBox ID= "toDate" runat = "server" class="dateField" Width="80px" size="12"></asp:TextBox>
  110. <span class="errormsg">*</span>
  111. <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="toDate" ForeColor="Red"
  112. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  113. </asp:RequiredFieldValidator>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td nowrap="nowrap" width="100px"> <div align="left" class="formLabel"> RBA Range:</div></td>
  118. <td nowrap="nowrap">
  119. <asp:TextBox ID= "rbaRangeFrom" runat = "server" Text="" Width="80px" size="12"></asp:TextBox>
  120. </td>
  121. <td nowrap="nowrap">
  122. <asp:TextBox ID= "rbaRangeTo" runat = "server" Text="" Width="80px" size="12"></asp:TextBox>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td nowrap="nowrap"> <div align="left" class="formLabel"> Report Type:</div></td>
  127. <td colspan="2">
  128. <asp:DropDownList ID="rptType" runat="server" Width="200px">
  129. <asp:ListItem Value = "">Select</asp:ListItem>
  130. <asp:ListItem Value = "Detail Report">Detail Report</asp:ListItem>
  131. <asp:ListItem Value = "Summary Report-Monthly">Summary Report-Monthly</asp:ListItem>
  132. </asp:DropDownList>
  133. <span class="errormsg">*</span>
  134. <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="rptType" ForeColor="Red"
  135. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  136. </asp:RequiredFieldValidator>
  137. </td>
  138. </tr>
  139. <tr id="trReceiverCountry" runat="server" Visible="false">
  140. <td nowrap="nowrap"> <div align="left" class="formLabel"> Receiver&#39;s Country:</div></td>
  141. <td nowrap="nowrap">
  142. <asp:DropDownList ID="rCountry" runat="server"
  143. style="width:200px;"></asp:DropDownList>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td><div align="left" class="formLabel">Txn to Non Native Country:</div></td>
  148. <td>
  149. <asp:DropDownList ID="txnToNonNativeCountry" runat="server">
  150. <asp:ListItem Value="">All</asp:ListItem>
  151. <asp:ListItem Value="Y">Yes</asp:ListItem>
  152. <asp:ListItem Value="N">No</asp:ListItem>
  153. </asp:DropDownList>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td><b><u>Additional Filter</u></b></td>
  158. </tr>
  159. <tr>
  160. <td>
  161. <div align="left" class="formLabel">TXN Amount:</div>
  162. </td>
  163. <td>
  164. <asp:TextBox ID= "txnAmountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  165. </td>
  166. <td>
  167. <asp:TextBox ID= "txnAmountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  168. </td>
  169. </tr>
  170. <tr id="trTxnCount" runat="server">
  171. <td>
  172. <div align="left" class="formLabel">TXN Count:</div>
  173. </td>
  174. <td>
  175. <asp:TextBox ID= "txnCountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  176. </td>
  177. <td>
  178. <asp:TextBox ID= "txnCountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  179. </td>
  180. </tr>
  181. <tr id="trBenCountryCount" runat="server">
  182. <td>
  183. <div align="left" class="formLabel">Beneficiary Country Count:</div>
  184. </td>
  185. <td>
  186. <asp:TextBox ID= "pCountryCountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  187. </td>
  188. <td>
  189. <asp:TextBox ID= "pCountryCountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  190. </td>
  191. </tr>
  192. <tr id="trBenCount" runat="server">
  193. <td>
  194. <div align="left" class="formLabel">Beneficiary Count:</div>
  195. </td>
  196. <td>
  197. <asp:TextBox ID= "beneficiaryCountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  198. </td>
  199. <td>
  200. <asp:TextBox ID= "beneficiaryCountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  201. </td>
  202. </tr>
  203. <tr id="trOutletCount" runat="server">
  204. <td>
  205. <div align="left" class="formLabel">Outlet Count:</div>
  206. </td>
  207. <td>
  208. <asp:TextBox ID= "outletCountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  209. </td>
  210. <td>
  211. <asp:TextBox ID= "outletCountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  212. </td>
  213. </tr>
  214. <tr>
  215. <td>&nbsp;</td>
  216. <td colspan="2">
  217. <asp:Button ID="BtnSave1" runat="server" CssClass="button"
  218. Text=" Search " ValidationGroup="rpt"
  219. OnClientClick="return showReport();" />
  220. </td>
  221. </tr>
  222. </table>
  223. </ContentTemplate>
  224. <Triggers>
  225. <asp:AsyncPostBackTrigger ControlID="sCountry" EventName="SelectedIndexChanged" />
  226. <asp:AsyncPostBackTrigger ControlID="rCountry" EventName="SelectedIndexChanged" />
  227. <asp:AsyncPostBackTrigger ControlID="sAgent" EventName="SelectedIndexChanged" />
  228. <asp:AsyncPostBackTrigger ControlID="reportFor" EventName="SelectedIndexChanged"/>
  229. </Triggers>
  230. </asp:UpdatePanel>
  231. </td>
  232. </tr>
  233. </table>
  234. </form>
  235. </body>
  236. </html>
  237. <script language = "javascript" type = "text/javascript">
  238. function getRadioCheckedValue(radioName) {
  239. var oRadio = document.forms[0].elements[radioName];
  240. for (var i = 0; i < oRadio.length; i++) {
  241. if (oRadio[i].checked) {
  242. return oRadio[i].value;
  243. }
  244. }
  245. return '';
  246. }
  247. function showReport() {
  248. if (!Page_ClientValidate('rpt'))
  249. return false;
  250. var reportFor = getRadioCheckedValue("<%=reportFor.ClientID %>");
  251. var sCountry = GetValue("<% =sCountry.ClientID%>") == "" ? "" : $("#sCountry option:selected").text();
  252. var sAgent = GetValue("<% =sAgent.ClientID%>");
  253. var sBranch = GetValue("<% =sBranch.ClientID%>");
  254. var sNativeCountry = GetValue("<% =sNativeCountry.ClientID%>");
  255. var rCountry = GetValue("<% =rCountry.ClientID%>");
  256. var sIdNumber = GetValue("<% =sIdNumber.ClientID%>");
  257. var fromDate = GetDateValue("<% =fromDate.ClientID%>");
  258. var toDate = GetDateValue("<% =toDate.ClientID%>");
  259. var rbaRangeFrom = GetValue("<% =rbaRangeFrom.ClientID%>");
  260. var rbaRangeTo = GetValue("<% =rbaRangeTo.ClientID%>");
  261. var txnToNonNativeCountry = GetValue("<% =txnToNonNativeCountry.ClientID%>");
  262. var rptType = GetValue("<% =rptType.ClientID%>");
  263. var txnAmountFrom = GetValue("<% =txnAmountFrom.ClientID%>");
  264. var txnAmountTo = GetValue("<%=txnAmountTo.ClientID %>");
  265. var txnCountFrom = GetValue("<%=txnCountFrom.ClientID %>");
  266. var txnCountTo = GetValue("<%=txnCountTo.ClientID %>");
  267. var pCountryCountFrom = GetValue("<%=pCountryCountFrom.ClientID %>");
  268. var pCountryCountTo = GetValue("<%=pCountryCountTo.ClientID %>");
  269. var beneficiaryCountFrom = GetValue("<%=beneficiaryCountFrom.ClientID %>");
  270. var beneficiaryCountTo = GetValue("<%=beneficiaryCountTo.ClientID %>");
  271. var outletCountFrom = GetValue("<%=outletCountFrom.ClientID %>");
  272. var outletCountTo = GetValue("<%=outletCountTo.ClientID %>");
  273. var url = "../../SwiftSystem/Reports/Reports.aspx?reportName=rbareport" +
  274. "&reportFor=" + reportFor +
  275. "&sCountry=" + sCountry +
  276. "&sAgent=" + sAgent +
  277. "&sBranch=" + sBranch +
  278. "&sNativeCountry=" + sNativeCountry +
  279. "&rCountry=" + rCountry +
  280. "&sIdNumber=" + sIdNumber +
  281. "&fromDate=" + fromDate +
  282. "&toDate=" + toDate +
  283. "&rbaRangeFrom=" + rbaRangeFrom +
  284. "&rbaRangeTo=" + rbaRangeTo +
  285. "&txnToNonNativeCountry=" + txnToNonNativeCountry +
  286. "&rptType=" + rptType +
  287. "&txnAmountFrom=" + txnAmountFrom +
  288. "&txnAmountTo=" + txnAmountTo +
  289. "&txnCountFrom=" + txnCountFrom +
  290. "&txnCountTo=" + txnCountTo +
  291. "&pCountryCountFrom=" + pCountryCountFrom +
  292. "&pCountryCountTo=" + pCountryCountTo +
  293. "&beneficiaryCountFrom=" + beneficiaryCountFrom +
  294. "&beneficiaryCountTo=" + beneficiaryCountTo +
  295. "&outletCountFrom=" + outletCountFrom +
  296. "&outletCountTo=" + outletCountTo;
  297. OpenInNewWindow(url);
  298. return false;
  299. }
  300. </script>
  301. <script type='text/javascript' language='javascript'>
  302. Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
  303. function EndRequest(sender, args) {
  304. if (args.get_error() == undefined) {
  305. LoadCalendars();
  306. }
  307. }
  308. </script>