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.

163 lines
7.6 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifySummary.aspx.cs" Inherits="Swift.web.Remit.ExchangeRate.ExRateTreasury.ModifySummary" %>
  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. <script language="javascript" type="text/javascript">
  13. var p = 1;
  14. function ShowAgentFxCol() {
  15. var cookiename = "showhideagentfxcol";
  16. $('.exTable th:nth-col(18),.exTable th:nth-col(19), .exTable td:nth-col(18), .exTable td:nth-col(19)').show();
  17. GetElement("agentfxh").style.display = "block";
  18. GetElement("agentfxs").style.display = "none";
  19. setCookie(cookiename, "show", 365);
  20. }
  21. function HideAgentFxCol() {
  22. var cookiename = "showhideagentfxcol";
  23. $('.exTable th:nth-col(18),.exTable th:nth-col(19), .exTable td:nth-col(18), .exTable td:nth-col(19)').hide();
  24. GetElement("agentfxh").style.display = "none";
  25. GetElement("agentfxs").style.display = "block";
  26. setCookie(cookiename, "hide", 365);
  27. }
  28. function ShowToleranceCol() {
  29. var cookiename = "showhidetolerancecol";
  30. $('.exTable th:nth-col(20),.exTable th:nth-col(21),.exTable th:nth-col(22), .exTable td:nth-col(20), .exTable td:nth-col(21), .exTable td:nth-col(22)').show();
  31. GetElement("toleranceh").style.display = "block";
  32. GetElement("tolerances").style.display = "none";
  33. setCookie(cookiename, "show", 365);
  34. }
  35. function HideToleranceCol() {
  36. var cookiename = "showhidetolerancecol";
  37. $('.exTable th:nth-col(20),.exTable th:nth-col(21),.exTable th:nth-col(22), .exTable td:nth-col(20), .exTable td:nth-col(21), .exTable td:nth-col(22)').hide();
  38. GetElement("toleranceh").style.display = "none";
  39. GetElement("tolerances").style.display = "block";
  40. setCookie(cookiename, "hide", 365);
  41. }
  42. function ShowSendingAgentCol() {
  43. var cookiename = "showhidesendingagentcol";
  44. $('.exTable th:nth-col(23),.exTable th:nth-col(24),.exTable th:nth-col(25),.exTable th:nth-col(26),.exTable th:nth-col(27),.exTable th:nth-col(28), .exTable td:nth-col(23), .exTable td:nth-col(24), .exTable td:nth-col(25), .exTable td:nth-col(26), .exTable td:nth-col(27), .exTable td:nth-col(28)').show();
  45. GetElement("sendingagenth").style.display = "block";
  46. GetElement("sendingagents").style.display = "none";
  47. setCookie(cookiename, "show", 365);
  48. }
  49. function HideSendingAgentCol() {
  50. var cookiename = "showhidesendingagentcol";
  51. $('.exTable th:nth-col(23),.exTable th:nth-col(24),.exTable th:nth-col(25),.exTable th:nth-col(26),.exTable th:nth-col(27),.exTable th:nth-col(28), .exTable td:nth-col(23), .exTable td:nth-col(24), .exTable td:nth-col(25), .exTable td:nth-col(26), .exTable td:nth-col(27), .exTable td:nth-col(28)').hide();
  52. GetElement("sendingagenth").style.display = "none";
  53. GetElement("sendingagents").style.display = "block";
  54. setCookie(cookiename, "hide", 365);
  55. }
  56. function ShowCustomerTolCol() {
  57. var cookiename = "showhidecustomertolcol";
  58. $('.exTable th:nth-col(29),.exTable th:nth-col(30), .exTable td:nth-col(29), .exTable td:nth-col(30)').show();
  59. GetElement("customertolh").style.display = "block";
  60. GetElement("customertols").style.display = "none";
  61. setCookie(cookiename, "show", 365);
  62. }
  63. function HideCustomerTolCol() {
  64. var cookiename = "showhidecustomertolcol";
  65. $('.exTable th:nth-col(29),.exTable th:nth-col(30), .exTable td:nth-col(29), .exTable td:nth-col(30)').hide();
  66. GetElement("customertolh").style.display = "none";
  67. GetElement("customertols").style.display = "block";
  68. setCookie(cookiename, "hide", 365);
  69. }
  70. function ShowHideDetail() {
  71. var cookieValue = getCookie("showhideagentfxcol");
  72. if (cookieValue == "show") {
  73. ShowAgentFxCol();
  74. }
  75. else {
  76. HideAgentFxCol();
  77. }
  78. cookieValue = getCookie("showhidetolerancecol");
  79. if (cookieValue == "show") {
  80. ShowToleranceCol();
  81. }
  82. else {
  83. HideToleranceCol();
  84. }
  85. cookieValue = getCookie("showhidesendingagentcol");
  86. if (cookieValue == "show") {
  87. ShowSendingAgentCol();
  88. }
  89. else {
  90. HideSendingAgentCol();
  91. }
  92. cookieValue = getCookie("showhidecustomertolcol");
  93. if (cookieValue == "show") {
  94. ShowCustomerTolCol();
  95. }
  96. else {
  97. HideCustomerTolCol();
  98. }
  99. }
  100. function ShowAllColumns() {
  101. ShowAgentFxCol();
  102. ShowToleranceCol();
  103. ShowSendingAgentCol();
  104. ShowCustomerTolCol();
  105. }
  106. function ShowOnlyForRSP() {
  107. HideAgentFxCol();
  108. HideToleranceCol();
  109. HideSendingAgentCol();
  110. HideCustomerTolCol();
  111. }
  112. </script>
  113. </head>
  114. <body>
  115. <form id="form1" runat="server">
  116. <asp:ScriptManager ID="ScriptManger1" runat="server">
  117. </asp:ScriptManager>
  118. <asp:Button ID="btnHidden" runat="server" OnClick="btnHidden_Click" Style="display: none" />
  119. <table width="100%" style="margin-top: 150px;">
  120. <tr>
  121. <td align="left" valign="top" class="bredCrom">Exchange Rate Treasury » Modify Summary</td>
  122. </tr>
  123. <tr>
  124. <td height="10" class="shadowBG"></td>
  125. </tr>
  126. <tr>
  127. <td height="10">
  128. <div id="divTab" runat="server"></div>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td>
  133. <span style="color: green; font-size: 12px; font-weight: bold;"><b>Record(s) has been updated successfully</b></span>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td valign="top">
  138. <input type="button" id="btnShowAllColumns" value="Show All Columns" onclick="ShowAllColumns();" />
  139. <div id="paginDiv" runat="server"></div>
  140. <div id="rpt_grid" runat="server">
  141. </div>
  142. <asp:HiddenField ID="hdnIsFw" runat="server" />
  143. </td>
  144. </tr>
  145. </table>
  146. </form>
  147. </body>
  148. </html>