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.

399 lines
20 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CopyAgentWiseRate.aspx.cs" Inherits="Swift.web.Remit.ExchangeRate.ExRateTreasury.CopyAgentWiseRate" %>
  2. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  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. <base id="Base1" target="_self" runat="server" />
  7. <link href="../../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
  8. <link href="../../../ui/css/style.css" rel="stylesheet" />
  9. <link href="../../../ui/font-awesome/css/font-awesome.css" rel="stylesheet" />
  10. <link href="../../../css/rateCss.css" rel="stylesheet" type="text/css" />
  11. <link href="../../../js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
  12. <script type="text/javascript" src="../../../js/jQuery/jquery.min.js"></script>
  13. <script type="text/javascript" src="../../../js/jQuery/jquery-ui.min.js"></script>
  14. <script src="../../../js/jQuery/columnselector.js" type="text/javascript"></script>
  15. <script src="../../../js/functions.js" type="text/javascript"></script>
  16. <script language="javascript" type="text/javascript">
  17. var p = 1;
  18. function ShowAgentFxCol() {
  19. var cookiename = "showhideagentfxcol";
  20. $('#rateTable th:nth-col(17),#rateTable th:nth-col(18), #rateTable td:nth-col(17), #rateTable td:nth-col(18)').show();
  21. GetElement("agentfxh").style.display = "block";
  22. GetElement("agentfxs").style.display = "none";
  23. setCookie(cookiename, "show", 365);
  24. }
  25. function HideAgentFxCol() {
  26. var cookiename = "showhideagentfxcol";
  27. $('#rateTable th:nth-col(17),#rateTable th:nth-col(18), #rateTable td:nth-col(17), #rateTable td:nth-col(18)').hide();
  28. GetElement("agentfxh").style.display = "none";
  29. GetElement("agentfxs").style.display = "block";
  30. setCookie(cookiename, "hide", 365);
  31. }
  32. function ShowToleranceCol() {
  33. var cookiename = "showhidetolerancecol";
  34. $('#rateTable th:nth-col(19),#rateTable th:nth-col(20),#rateTable th:nth-col(21), #rateTable td:nth-col(19), #rateTable td:nth-col(20), #rateTable td:nth-col(21)').show();
  35. GetElement("toleranceh").style.display = "block";
  36. GetElement("tolerances").style.display = "none";
  37. setCookie(cookiename, "show", 365);
  38. }
  39. function HideToleranceCol() {
  40. var cookiename = "showhidetolerancecol";
  41. $('#rateTable th:nth-col(19),#rateTable th:nth-col(20),#rateTable th:nth-col(21), #rateTable td:nth-col(19), #rateTable td:nth-col(20), #rateTable td:nth-col(21)').hide();
  42. GetElement("toleranceh").style.display = "none";
  43. GetElement("tolerances").style.display = "block";
  44. setCookie(cookiename, "hide", 365);
  45. }
  46. function ShowSendingAgentCol() {
  47. var cookiename = "showhidesendingagentcol";
  48. $('#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 th:nth-col(27), #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), #rateTable td:nth-col(27)').show();
  49. GetElement("sendingagenth").style.display = "block";
  50. GetElement("sendingagents").style.display = "none";
  51. setCookie(cookiename, "show", 365);
  52. }
  53. function HideSendingAgentCol() {
  54. var cookiename = "showhidesendingagentcol";
  55. $('#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 th:nth-col(27), #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), #rateTable td:nth-col(27)').hide();
  56. GetElement("sendingagenth").style.display = "none";
  57. GetElement("sendingagents").style.display = "block";
  58. setCookie(cookiename, "hide", 365);
  59. }
  60. function ShowCustomerTolCol() {
  61. var cookiename = "showhidecustomertolcol";
  62. $('#rateTable th:nth-col(28),#rateTable th:nth-col(29), #rateTable td:nth-col(28), #rateTable td:nth-col(29)').show();
  63. GetElement("customertolh").style.display = "block";
  64. GetElement("customertols").style.display = "none";
  65. setCookie(cookiename, "show", 365);
  66. }
  67. function HideCustomerTolCol() {
  68. var cookiename = "showhidecustomertolcol";
  69. $('#rateTable th:nth-col(28),#rateTable th:nth-col(29), #rateTable td:nth-col(28), #rateTable td:nth-col(29)').hide();
  70. GetElement("customertolh").style.display = "none";
  71. GetElement("customertols").style.display = "block";
  72. setCookie(cookiename, "hide", 365);
  73. }
  74. function ShowHideDetail() {
  75. var cookieValue = getCookie("showhideagentfxcol");
  76. if (cookieValue == "show") {
  77. ShowAgentFxCol();
  78. }
  79. else {
  80. HideAgentFxCol();
  81. }
  82. cookieValue = getCookie("showhidetolerancecol");
  83. if (cookieValue == "show") {
  84. ShowToleranceCol();
  85. }
  86. else {
  87. HideToleranceCol();
  88. }
  89. cookieValue = getCookie("showhidesendingagentcol");
  90. if (cookieValue == "show") {
  91. ShowSendingAgentCol();
  92. }
  93. else {
  94. HideSendingAgentCol();
  95. }
  96. cookieValue = getCookie("showhidecustomertolcol");
  97. if (cookieValue == "show") {
  98. ShowCustomerTolCol();
  99. }
  100. else {
  101. HideCustomerTolCol();
  102. }
  103. }
  104. function ShowAllColumns() {
  105. ShowAgentFxCol();
  106. ShowToleranceCol();
  107. ShowSendingAgentCol();
  108. ShowCustomerTolCol();
  109. }
  110. function ShowOnlyForRSP() {
  111. HideAgentFxCol();
  112. HideToleranceCol();
  113. HideSendingAgentCol();
  114. HideCustomerTolCol();
  115. }
  116. function CheckAll(obj) {
  117. var i = 0;
  118. var cBoxes = document.getElementsByName("chkId");
  119. var value;
  120. var arr;
  121. var id;
  122. var j;
  123. var countryCode;
  124. if (obj.innerHTML == '×') {
  125. obj.innerHTML = '√';
  126. for (i = 0; i < cBoxes.length; i++) {
  127. cBoxes[i].checked = false;
  128. value = cBoxes[i].id;
  129. arr = value.split('_');
  130. countryCode = arr[0];
  131. id = arr[1];
  132. j = GetValue(id);
  133. KeepRowSelection(j, id, countryCode);
  134. }
  135. }
  136. else {
  137. obj.innerHTML = '×';
  138. for (i = 0; i < cBoxes.length; i++) {
  139. cBoxes[i].checked = true;
  140. value = cBoxes[i].id;
  141. arr = value.split('_');
  142. countryCode = arr[0];
  143. id = arr[1];
  144. j = GetValue(id);
  145. KeepRowSelection(j, id, countryCode);
  146. }
  147. }
  148. }
  149. function KeepRowSelection(i, id, countryCode) {
  150. var obj = GetElement(countryCode + "_" + id);
  151. if (obj.checked == true)
  152. GetElement("row_" + id).className = "selectedbg";
  153. else {
  154. if (i % 2 == 1)
  155. GetElement("row_" + id).className = "oddbg";
  156. else
  157. GetElement("row_" + id).className = "evenbg";
  158. }
  159. }
  160. function CheckGroup(obj, countryCode) {
  161. var elements = document.getElementsByName("chkId");
  162. var parentLength = countryCode.length;
  163. for (var i = 0; i < elements.length; i++) {
  164. if (!elements[i].disabled) {
  165. var value = elements[i].id;
  166. if (value.substr(0, parentLength) == countryCode) {
  167. if (elements[i].checked == true) {
  168. elements[i].checked = false;
  169. }
  170. else {
  171. elements[i].checked = true;
  172. }
  173. var id = value.split('_')[1];
  174. var j = GetValue(id);
  175. KeepRowSelection(j, id, countryCode);
  176. }
  177. }
  178. }
  179. }
  180. </script>
  181. <style type="text/css">
  182. .table .table {
  183. background-color: #F5F5F5 !important;
  184. }
  185. legend {
  186. background-color: rgb(3, 169, 244);
  187. color: white;
  188. margin-bottom: 0 !important;
  189. }
  190. fieldset {
  191. padding: 10px !important;
  192. margin: 5px !important;
  193. border: 1px solid rgba(158, 158, 158, 0.21) !important;
  194. }
  195. input[readonly="readonly"] {
  196. background: #EFEFEF !important;
  197. color: #666666 !important;
  198. }
  199. .disabled {
  200. background: #EFEFEF !important;
  201. color: #666666 !important;
  202. }
  203. .page-title {
  204. border-bottom: 2px solid #f5f5f5;
  205. margin-bottom: 15px;
  206. padding-bottom: 10px;
  207. text-transform: capitalize;
  208. }
  209. .page-title .breadcrumb {
  210. background-color: transparent;
  211. margin: 0;
  212. padding: 0;
  213. }
  214. .breadcrumb > li {
  215. display: inline-block;
  216. }
  217. .breadcrumb > li a {
  218. color: #0E96EC;
  219. }
  220. .breadcrumb > li + li::before {
  221. color: #ccc;
  222. content: "/ ";
  223. padding: 0 5px;
  224. }
  225. .tabs > li > a {
  226. padding: 10px 15px;
  227. background-color: #444d58;
  228. border-radius: 5px 5px 0 0;
  229. color: #fff;
  230. }
  231. .responsive-table {
  232. width: 1134px;
  233. overflow-x: scroll;
  234. }
  235. </style>
  236. </head>
  237. <body>
  238. <form id="form1" runat="server">
  239. <asp:ScriptManager ID="ScriptManager1" runat="server">
  240. </asp:ScriptManager>
  241. <div class="page-wrapper">
  242. <div class="row">
  243. <div class="col-sm-12">
  244. <div class="page-title">
  245. <h1></h1>
  246. <ol class="breadcrumb">
  247. <li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
  248. <li><a href="#" onclick="return LoadModule('account')">SETUP PROCESS</a></li>
  249. <li><a href="#" onclick="return LoadModule('account_report')">Exchange Rate</a></li>
  250. <li class="active"><a href="CopyAgentWiseRate.aspx">Exchange Rate Treasury-Copy Rate</a></li>
  251. </ol>
  252. </div>
  253. </div>
  254. </div>
  255. <div class="listtabs">
  256. <ul class="nav nav-tabs">
  257. <div id="divTab" class="tabs" runat="server"></div>
  258. </ul>
  259. </div>
  260. <div class="tab-content">
  261. <div role="tabpanel" class="tab-pane active" id="list">
  262. <div class="row">
  263. <div class="col-md-12">
  264. <div class="panel panel-default recent-activites">
  265. <!-- Start .panel -->
  266. <div class="panel-heading">
  267. <h4 class="panel-title">Exchange Rate Treasury-Copy Rate
  268. </h4>
  269. </div>
  270. <div class="panel-body">
  271. <div class="form-group">
  272. <asp:UpdatePanel ID="upnl1" runat="server">
  273. <ContentTemplate>
  274. <table class="table table-responsive">
  275. <tr>
  276. <td valign="top">
  277. <fieldset>
  278. <legend>Send</legend>
  279. <table class="table table-responsive">
  280. <tr>
  281. <td class="frmLable">
  282. <lable>Country</lable>
  283. </td>
  284. <td>
  285. <asp:DropDownList ID="cCountry" runat="server" CssClass="form-control" Width="150px" AutoPostBack="true"
  286. OnSelectedIndexChanged="cCountry_SelectedIndexChanged">
  287. </asp:DropDownList>
  288. </td>
  289. </tr>
  290. <tr>
  291. <td class="frmLable">
  292. <label>Agent</label></td>
  293. <td>
  294. <asp:DropDownList ID="cAgent" runat="server" CssClass="form-control" Width="200px"></asp:DropDownList>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td class="frmLable">
  299. <label>Apply to</label></td>
  300. <td>
  301. <asp:DropDownList ID="applyToSendAgent" runat="server" CssClass="form-control" Width="200px"></asp:DropDownList>
  302. </td>
  303. </tr>
  304. </table>
  305. </fieldset>
  306. </td>
  307. <td valign="top">
  308. <fieldset>
  309. <legend>Receive</legend>
  310. <table class="table table-responsive">
  311. <tr>
  312. <td class="frmLable">
  313. <label>Country</label></td>
  314. <td>
  315. <asp:DropDownList ID="pCountry" runat="server" CssClass="form-control" Width="150px" AutoPostBack="true"
  316. OnSelectedIndexChanged="pCountry_SelectedIndexChanged">
  317. </asp:DropDownList>
  318. </td>
  319. </tr>
  320. <tr>
  321. <td class="frmLable">
  322. <label>Agent</label></td>
  323. <td>
  324. <asp:DropDownList ID="pAgent" runat="server" CssClass="form-control" Width="200px"></asp:DropDownList>
  325. </td>
  326. </tr>
  327. <tr>
  328. <td class="frmLable">
  329. <label>Apply to</label></td>
  330. <td>
  331. <asp:DropDownList ID="applyToReceiveAgent" runat="server" CssClass="form-control" Width="200px"></asp:DropDownList>
  332. </td>
  333. </tr>
  334. </table>
  335. </fieldset>
  336. </td>
  337. </tr>
  338. <tr>
  339. <td>
  340. <asp:Button ID="btnFilter" runat="server" Text="Filter" CssClass="btn btn-primary m-t-25"
  341. ValidationGroup="cur" Display="Dynamic"
  342. OnClick="btnFilter_Click" />
  343. </td>
  344. </tr>
  345. </table>
  346. </ContentTemplate>
  347. <Triggers>
  348. <asp:PostBackTrigger ControlID="btnFilter" />
  349. </Triggers>
  350. </asp:UpdatePanel>
  351. </div>
  352. <div class="form-group">
  353. <div id="rpt_grid" runat="server" enableviewstate="false"></div>
  354. </div>
  355. <asp:Button ID="btnCopy" runat="server" Text="Copy" CssClass="btn btn-primary m-t-25" Visible="false" OnClick="btnCopy_Click" />
  356. <cc1:ConfirmButtonExtender ID="btnCopycc" runat="server"
  357. ConfirmText="Are you sure to copy the selected record(s)?" Enabled="True" TargetControlID="btnCopy">
  358. </cc1:ConfirmButtonExtender>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. </div>
  364. </div>
  365. </div>
  366. </div>
  367. </form>
  368. </body>
  369. </html>