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.

202 lines
8.9 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApproveSummary.aspx.cs" Inherits="Swift.web.Remit.ExchangeRate.ExRateTreasury.ApproveSummary" %>
  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. <base id="Base1" target="_self" runat="server" />
  6. <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
  7. <script src="../../../js/swift_grid.js" type="text/javascript"> </script>
  8. <script src="../../../js/functions.js" type="text/javascript"> </script>
  9. <link href="../../../css/rateCss.css" rel="stylesheet" type="text/css" />
  10. <script src="../../../js/jQuery/jquery-1.4.1.min.js" type="text/javascript"></script>
  11. <script src="../../../js/jQuery/columnselector.js" type="text/javascript"></script>
  12. <style>
  13. </style>
  14. <script language="javascript" type="text/javascript">
  15. var p = 1;
  16. function LoadWindow() {
  17. var isFw = GetValue("<%=hdnIsFw.ClientID %>");
  18. if (isFw == "1") {
  19. GetElement("lnkManageWindow").innerHTML = "";
  20. }
  21. else {
  22. GetElement("lnkManageWindow").innerHTML = "Show In Full Window";
  23. }
  24. }
  25. function ManageWindow() {
  26. var isFw = GetValue("<%=hdnIsFw.ClientID %>");
  27. if (isFw == "1") {
  28. window.close();
  29. }
  30. else {
  31. var param = "dialogHeight:1400px;dialogWidth:1400px;dialogLeft:0;dialogTop:0;center:yes";
  32. PopUpWindow("List.aspx?isFw=1", param);
  33. }
  34. }
  35. function ShowAgentFxCol() {
  36. var cookiename = "showhideagentfxcol";
  37. $('#rateTable th:nth-col(16),#rateTable th:nth-col(17), #rateTable td:nth-col(16), #rateTable td:nth-col(17)').show();
  38. GetElement("agentfxh").style.display = "block";
  39. GetElement("agentfxs").style.display = "none";
  40. setCookie(cookiename, "show", 365);
  41. }
  42. function HideAgentFxCol() {
  43. var cookiename = "showhideagentfxcol";
  44. $('#rateTable th:nth-col(16),#rateTable th:nth-col(17), #rateTable td:nth-col(16), #rateTable td:nth-col(17)').hide();
  45. GetElement("agentfxh").style.display = "none";
  46. GetElement("agentfxs").style.display = "block";
  47. setCookie(cookiename, "hide", 365);
  48. }
  49. function ShowToleranceCol() {
  50. var cookiename = "showhidetolerancecol";
  51. $('#rateTable th:nth-col(18),#rateTable th:nth-col(19),#rateTable th:nth-col(20), #rateTable td:nth-col(18), #rateTable td:nth-col(19), #rateTable td:nth-col(20)').show();
  52. GetElement("toleranceh").style.display = "block";
  53. GetElement("tolerances").style.display = "none";
  54. setCookie(cookiename, "show", 365);
  55. }
  56. function HideToleranceCol() {
  57. var cookiename = "showhidetolerancecol";
  58. $('#rateTable th:nth-col(18),#rateTable th:nth-col(19),#rateTable th:nth-col(20), #rateTable td:nth-col(18), #rateTable td:nth-col(19), #rateTable td:nth-col(20)').hide();
  59. GetElement("toleranceh").style.display = "none";
  60. GetElement("tolerances").style.display = "block";
  61. setCookie(cookiename, "hide", 365);
  62. }
  63. function ShowSendingAgentCol() {
  64. var cookiename = "showhidesendingagentcol";
  65. $('#rateTable th:nth-col(21),#rateTable th:nth-col(22),#rateTable th:nth-col(23),#rateTable th:nth-col(24),#rateTable th:nth-col(25),#rateTable th:nth-col(26), #rateTable td:nth-col(21), #rateTable td:nth-col(22), #rateTable td:nth-col(23), #rateTable td:nth-col(24), #rateTable td:nth-col(25), #rateTable td:nth-col(26)').show();
  66. GetElement("sendingagenth").style.display = "block";
  67. GetElement("sendingagents").style.display = "none";
  68. setCookie(cookiename, "show", 365);
  69. }
  70. function HideSendingAgentCol() {
  71. var cookiename = "showhidesendingagentcol";
  72. $('#rateTable th:nth-col(21),#rateTable th:nth-col(22),#rateTable th:nth-col(23),#rateTable th:nth-col(24),#rateTable th:nth-col(25),#rateTable th:nth-col(26), #rateTable td:nth-col(21), #rateTable td:nth-col(22), #rateTable td:nth-col(23), #rateTable td:nth-col(24), #rateTable td:nth-col(25), #rateTable td:nth-col(26)').hide();
  73. GetElement("sendingagenth").style.display = "none";
  74. GetElement("sendingagents").style.display = "block";
  75. setCookie(cookiename, "hide", 365);
  76. }
  77. function ShowCustomerTolCol() {
  78. var cookiename = "showhidecustomertolcol";
  79. $('#rateTable th:nth-col(27),#rateTable th:nth-col(28), #rateTable td:nth-col(27), #rateTable td:nth-col(28)').show();
  80. GetElement("customertolh").style.display = "block";
  81. GetElement("customertols").style.display = "none";
  82. setCookie(cookiename, "show", 365);
  83. }
  84. function HideCustomerTolCol() {
  85. var cookiename = "showhidecustomertolcol";
  86. $('#rateTable th:nth-col(27),#rateTable th:nth-col(28), #rateTable td:nth-col(27), #rateTable td:nth-col(28)').hide();
  87. GetElement("customertolh").style.display = "none";
  88. GetElement("customertols").style.display = "block";
  89. setCookie(cookiename, "hide", 365);
  90. }
  91. function ShowHideDetail() {
  92. var cookieValue = getCookie("showhideagentfxcol");
  93. if (cookieValue == "show") {
  94. ShowAgentFxCol();
  95. }
  96. else {
  97. HideAgentFxCol();
  98. }
  99. cookieValue = getCookie("showhidetolerancecol");
  100. if (cookieValue == "show") {
  101. ShowToleranceCol();
  102. }
  103. else {
  104. HideToleranceCol();
  105. }
  106. cookieValue = getCookie("showhidesendingagentcol");
  107. if (cookieValue == "show") {
  108. ShowSendingAgentCol();
  109. }
  110. else {
  111. HideSendingAgentCol();
  112. }
  113. cookieValue = getCookie("showhidecustomertolcol");
  114. if (cookieValue == "show") {
  115. ShowCustomerTolCol();
  116. }
  117. else {
  118. HideCustomerTolCol();
  119. }
  120. }
  121. function ShowAllColumns() {
  122. ShowAgentFxCol();
  123. ShowToleranceCol();
  124. ShowSendingAgentCol();
  125. ShowCustomerTolCol();
  126. }
  127. function ShowOnlyForRSP() {
  128. HideAgentFxCol();
  129. HideToleranceCol();
  130. HideSendingAgentCol();
  131. HideCustomerTolCol();
  132. }
  133. function getRadioCheckedValue(radioName) {
  134. var oRadio = document.forms[0].elements[radioName];
  135. for (var i = 0; i < oRadio.length; i++) {
  136. if (oRadio[i].checked) {
  137. return oRadio[i].value;
  138. }
  139. }
  140. return '';
  141. }
  142. </script>
  143. <style type="text/css">
  144. .exTable tr td .inputBox {
  145. width: 45px;
  146. }
  147. </style>
  148. </head>
  149. <body>
  150. <form id="form1" runat="server">
  151. <asp:ScriptManager ID="ScriptManger1" runat="server">
  152. </asp:ScriptManager>
  153. <asp:Button ID="btnHidden" runat="server" OnClick="btnHidden_Click" Style="display: none" />
  154. <table width="100%">
  155. <tr>
  156. <td align="left" valign="top" class="bredCrom">Exchange Rate Treasury » Approve Summary</td>
  157. </tr>
  158. <tr>
  159. <td height="10" class="shadowBG"></td>
  160. </tr>
  161. <tr>
  162. <td height="10">
  163. <div id="divTab" runat="server"></div>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td>
  168. <span style="color: green; font-size: 12px; font-weight: bold;"><b>Record(s) has been approved successfully</b></span>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td valign="top">
  173. <input type="button" id="btnShowAllColumns" value="Show All Columns" onclick="ShowAllColumns();" />
  174. <div id="paginDiv" runat="server"></div>
  175. <div id="rpt_grid" runat="server">
  176. </div>
  177. <asp:HiddenField ID="hdnIsFw" runat="server" />
  178. </td>
  179. </tr>
  180. </table>
  181. </form>
  182. </body>
  183. </html>