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.

277 lines
14 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RBAReportMex.aspx.cs" Inherits="Swift.web.Remit.RiskBaseAnalysis.RBAReportMex" %>
  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="RBAReport.aspx">Remittance</a></li>
  32. <li> <a href="#" class="selected">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 id="trSendingBranch" runat="server" Visible="false">
  59. <td nowrap="nowrap"> <div align="left" class="formLabel">Transacting Branch:</div></td>
  60. <td nowrap="nowrap">
  61. <asp:DropDownList ID="sBranch" runat="server"
  62. style="width:200px;"></asp:DropDownList>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td nowrap="nowrap"> <div align="left" class="formLabel">Customer's Native Country:</div></td>
  67. <td nowrap="nowrap">
  68. <asp:DropDownList ID="sNativeCountry" runat="server"
  69. style="width:200px;"></asp:DropDownList>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td nowrap="nowrap"> <div align="left" class="formLabel">Customer's ID Number:</div></td>
  74. <td nowrap="nowrap">
  75. <asp:TextBox ID="sIdNumber" runat="server"
  76. style="width:200px;"></asp:TextBox>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td nowrap="nowrap" width="100px"> <div align="left" class="formLabel"> Date:</div></td>
  81. <td nowrap="nowrap"> From <br />
  82. <asp:TextBox ID= "fromDate" runat = "server" class="dateField" Width="80px" size="12"></asp:TextBox>
  83. <span class="errormsg">*</span>
  84. <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="fromDate" ForeColor="Red"
  85. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  86. </asp:RequiredFieldValidator>
  87. </td>
  88. <td nowrap="nowrap"> To <br />
  89. <asp:TextBox ID= "toDate" runat = "server" class="dateField" Width="80px" size="12"></asp:TextBox>
  90. <span class="errormsg">*</span>
  91. <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="toDate" ForeColor="Red"
  92. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  93. </asp:RequiredFieldValidator>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td nowrap="nowrap" width="100px"> <div align="left" class="formLabel"> RBA Range:</div></td>
  98. <td nowrap="nowrap">
  99. <asp:TextBox ID= "rbaRangeFrom" runat = "server" Text="" Width="80px" size="12"></asp:TextBox>
  100. </td>
  101. <td nowrap="nowrap">
  102. <asp:TextBox ID= "rbaRangeTo" runat = "server" Text="" Width="80px" size="12"></asp:TextBox>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td nowrap="nowrap"> <div align="left" class="formLabel"> Report Type:</div></td>
  107. <td colspan="2">
  108. <asp:DropDownList ID="rptType" runat="server" Width="200px">
  109. <asp:ListItem Value = "">Select</asp:ListItem>
  110. <asp:ListItem Value = "Detail Report">Detail Report</asp:ListItem>
  111. <asp:ListItem Value = "Summary Report-Monthly">Summary Report-Monthly</asp:ListItem>
  112. </asp:DropDownList>
  113. <span class="errormsg">*</span>
  114. <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="rptType" ForeColor="Red"
  115. ValidationGroup="rpt" Display="Dynamic" ErrorMessage="Required!">
  116. </asp:RequiredFieldValidator>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td><b><u>Additional Filter</u></b></td>
  121. </tr>
  122. <tr id="trTxnType" runat="server">
  123. <td>
  124. <div align="left" class="formLabel">TXN Type:</div>
  125. </td>
  126. <td>
  127. <asp:RadioButtonList ID="txnType" runat="server"
  128. RepeatDirection="Horizontal">
  129. <asp:ListItem Value="p" Selected="true">Buy</asp:ListItem>
  130. <asp:ListItem Value="s">Sell</asp:ListItem>
  131. </asp:RadioButtonList>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>
  136. <div align="left" class="formLabel">TXN Amount:</div>
  137. </td>
  138. <td>
  139. <asp:TextBox ID= "txnAmountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  140. </td>
  141. <td>
  142. <asp:TextBox ID= "txnAmountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  143. </td>
  144. </tr>
  145. <tr id="trTxnCount" runat="server">
  146. <td>
  147. <div align="left" class="formLabel">TXN Count:</div>
  148. </td>
  149. <td>
  150. <asp:TextBox ID= "txnCountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  151. </td>
  152. <td>
  153. <asp:TextBox ID= "txnCountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  154. </td>
  155. </tr>
  156. <tr id="trCurrencyCount" runat="server">
  157. <td>
  158. <div align="left" class="formLabel">Currency Count:</div>
  159. </td>
  160. <td>
  161. <asp:TextBox ID= "currencyCountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  162. </td>
  163. <td>
  164. <asp:TextBox ID= "currencyCountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  165. </td>
  166. </tr>
  167. <tr id="trOutletCount" runat="server">
  168. <td>
  169. <div align="left" class="formLabel">Outlet Count:</div>
  170. </td>
  171. <td>
  172. <asp:TextBox ID= "outletCountFrom" runat = "server" Width="80px" size="12"></asp:TextBox>
  173. </td>
  174. <td>
  175. <asp:TextBox ID= "outletCountTo" runat = "server" Width="80px" size="12"></asp:TextBox>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td>&nbsp;</td>
  180. <td colspan="2">
  181. <asp:Button ID="BtnSave1" runat="server" CssClass="button"
  182. Text=" Search " ValidationGroup="rpt"
  183. OnClientClick="return showReport();" />
  184. </td>
  185. </tr>
  186. </table>
  187. </ContentTemplate>
  188. <Triggers>
  189. <asp:AsyncPostBackTrigger ControlID="reportFor" EventName="SelectedIndexChanged"/>
  190. </Triggers>
  191. </asp:UpdatePanel>
  192. </td>
  193. </tr>
  194. </table>
  195. </form>
  196. </body>
  197. </html>
  198. <script language = "javascript" type = "text/javascript">
  199. function getRadioCheckedValue(radioName) {
  200. var oRadio = document.forms[0].elements[radioName];
  201. for (var i = 0; i < oRadio.length; i++) {
  202. if (oRadio[i].checked) {
  203. return oRadio[i].value;
  204. }
  205. }
  206. return '';
  207. }
  208. function showReport() {
  209. if (!Page_ClientValidate('rpt'))
  210. return false;
  211. var reportFor = getRadioCheckedValue("<%=reportFor.ClientID %>");
  212. var sBranch = GetValue("<% =sBranch.ClientID%>");
  213. var sNativeCountry = GetValue("<% =sNativeCountry.ClientID%>");
  214. var sIdNumber = GetValue("<% =sIdNumber.ClientID%>");
  215. var fromDate = GetDateValue("<% =fromDate.ClientID%>");
  216. var toDate = GetDateValue("<% =toDate.ClientID%>");
  217. var rbaRangeFrom = GetValue("<% =rbaRangeFrom.ClientID%>");
  218. var rbaRangeTo = GetValue("<% =rbaRangeTo.ClientID%>");
  219. var rptType = GetValue("<% =rptType.ClientID%>");
  220. var txnType = getRadioCheckedValue("<%=txnType.ClientID %>");
  221. var txnAmountFrom = GetValue("<% =txnAmountFrom.ClientID%>");
  222. var txnAmountTo = GetValue("<%=txnAmountTo.ClientID %>");
  223. var txnCountFrom = GetValue("<%=txnCountFrom.ClientID %>");
  224. var txnCountTo = GetValue("<%=txnCountTo.ClientID %>");
  225. var currencyCountFrom = GetValue("<%=currencyCountFrom.ClientID %>");
  226. var currencyCountTo = GetValue("<%=currencyCountTo.ClientID %>");
  227. var outletCountFrom = GetValue("<%=outletCountFrom.ClientID %>");
  228. var outletCountTo = GetValue("<%=outletCountTo.ClientID %>");
  229. var url = "../../ExchangeSystem/ReportDisplay.aspx?reportName=rbareportmex" +
  230. "&reportFor=" + reportFor +
  231. "&sBranch=" + sBranch +
  232. "&sNativeCountry=" + sNativeCountry +
  233. "&sIdNumber=" + sIdNumber +
  234. "&fromDate=" + fromDate +
  235. "&toDate=" + toDate +
  236. "&rbaRangeFrom=" + rbaRangeFrom +
  237. "&rbaRangeTo=" + rbaRangeTo +
  238. "&rptType=" + rptType +
  239. "&txnType=" + txnType +
  240. "&txnAmountFrom=" + txnAmountFrom +
  241. "&txnAmountTo=" + txnAmountTo +
  242. "&txnCountFrom=" + txnCountFrom +
  243. "&txnCountTo=" + txnCountTo +
  244. "&currencyCountFrom=" + currencyCountFrom +
  245. "&currencyCountTo=" + currencyCountTo +
  246. "&outletCountFrom=" + outletCountFrom +
  247. "&outletCountTo=" + outletCountTo;
  248. OpenInNewWindow(url);
  249. return false;
  250. }
  251. </script>
  252. <script type='text/javascript' language='javascript'>
  253. Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
  254. function EndRequest(sender, args) {
  255. if (args.get_error() == undefined) {
  256. LoadCalendars();
  257. }
  258. }
  259. </script>