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.

1143 lines
62 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Send.aspx.cs" Inherits="Swift.web.AgentPanel.Send.SendRegional.Send" %>
  2. <%@ Import Namespace="Swift.web.Library" %>
  3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head id="Head1" runat="server">
  7. <%--<link href="../../../css/style.css" rel="stylesheet" type="text/css" />--%>
  8. <link href="../../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
  9. <link href="../../../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
  10. <script src="../../../js/functions.js" type="text/javascript"></script>
  11. <link href="../../../ui/css/style.css" rel="stylesheet" />
  12. <script src="../../../js/menucontrol.js" type="text/javascript"></script>
  13. <script src="../../../js/jQuery/jquery-1.4.1.min.js" type="text/javascript"></script>
  14. <script src="../../../js/jQuery/jquery-ui.min.js" type="text/javascript"></script>
  15. <link href="../../../js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" />
  16. <script src="../../../js/swift_calendar.js" type="text/javascript"></script>
  17. <script src="../../../js/jQuery/jquery.validate.min.js" type="text/javascript"></script>
  18. <script type="text/javascript">
  19. var urlRoot = "<%=GetStatic.GetUrlRoot() %>";
  20. $(document).ready(function () {
  21. $.ajaxSetup({ cache: false });
  22. });
  23. $(document).ajaxStart(function () {
  24. $("#divLoading").show();
  25. });
  26. $(document).ajaxComplete(function (event, request, settings) {
  27. $("#divLoading").hide();
  28. });
  29. if (!window.showModalDialog) {
  30. window.showModalDialog = function (arg1, arg2, arg3) {
  31. var w;
  32. var h;
  33. var resizable = "no";
  34. var scroll = "no";
  35. var status = "no";
  36. // get the modal specs
  37. var mdattrs = arg3.split(";");
  38. for (i = 0; i < mdattrs.length; i++) {
  39. var mdattr = mdattrs[i].split(":");
  40. var n = mdattr[0];
  41. var v = mdattr[1];
  42. if (n) { n = n.trim().toLowerCase(); }
  43. if (v) { v = v.trim().toLowerCase(); }
  44. if (n == "dialogheight") {
  45. h = v.replace("px", "");
  46. } else if (n == "dialogwidth") {
  47. w = v.replace("px", "");
  48. } else if (n == "resizable") {
  49. resizable = v;
  50. } else if (n == "scroll") {
  51. scroll = v;
  52. } else if (n == "status") {
  53. status = v;
  54. }
  55. }
  56. var left = window.screenX + (window.outerWidth / 2) - (w / 2);
  57. var top = window.screenY + (window.outerHeight / 2) - (h / 2);
  58. var targetWin = window.open(arg1, arg1, 'toolbar=no, location=no, directories=no, status=' + status + ', menubar=no, scrollbars=' + scroll + ', resizable=' + resizable + ', copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
  59. targetWin.focus();
  60. };
  61. }
  62. function Loading(flag) {
  63. if (flag == "show")
  64. ShowElement("divLoading");
  65. else
  66. HideElement("divLoading");
  67. }
  68. function CheckSession(data) {
  69. if (data == undefined || data == "" || data == null)
  70. return;
  71. if (data[0].session_end == "1") {
  72. document.location = "../../../Logout.aspx";
  73. }
  74. }
  75. function ManageDeliveryMethod() {
  76. var dmObj = GetElement("<% =deliveryMethod.ClientID%>");
  77. var dm = dmObj.options[dmObj.selectedIndex].text;
  78. if (dm == "Bank Deposit") {
  79. GetElement("tblLocation").style.display = "none";
  80. GetElement("tblAccount").style.display = "block";
  81. ValidatorEnable(GetElement("<%=rfvBankName.ClientID %>"), true);
  82. ValidatorEnable(GetElement("<%=rfvAcNo.ClientID %>"), true);
  83. GetElement("spnRIdType").style.display = "none";
  84. GetElement("spnRIdNo").style.display = "none";
  85. }
  86. else {
  87. GetElement("tblLocation").style.display = "block";
  88. GetElement("tblAccount").style.display = "none";
  89. ValidatorEnable(GetElement("<%=rfvBankName.ClientID %>"), false);
  90. ValidatorEnable(GetElement("<%=rfvAcNo.ClientID %>"), false);
  91. GetElement("spnRIdType").style.display = "block";
  92. GetElement("spnRIdNo").style.display = "block";
  93. }
  94. }
  95. $(function () {
  96. $("#sBranch").change(function () {
  97. LoadAvailableBalance();
  98. });
  99. });
  100. function PopulateDistrict() {
  101. var pLocation = GetValue("location");
  102. $.get(urlRoot + "/AgentPanel/Send/SendRegional/FormLoader.aspx", { type: 'dl', pLocation: pLocation }, function (data) {
  103. GetElement("divDistrict").innerHTML = data;
  104. });
  105. Calculate();
  106. GetElement("location").focus();
  107. }
  108. function PopulateLocation() {
  109. var pDistrict = GetValue("district");
  110. $.get(urlRoot + "/AgentPanel/Send/SendRegional/FormLoader.aspx", { type: 'll', pDistrict: pDistrict }, function (data) {
  111. GetElement("divLocation").innerHTML = data;
  112. });
  113. GetElement("district").focus();
  114. }
  115. function PopulateBankBranch() {
  116. var bankId = GetValue("<%=bankName.ClientID %>");
  117. $.get(urlRoot + "/AgentPanel/Send/SendRegional/FormLoader.aspx", { bankId: bankId, type: 'bb' }, function (data) {
  118. var res = data;
  119. GetElement("divBankBranch").innerHTML = res;
  120. });
  121. }
  122. function LoadServiceCharge() {
  123. Calculate();
  124. }
  125. function Calculate() {
  126. Loading('show');
  127. var dm = GetValue("<% =deliveryMethod.ClientID%>");
  128. var amount = GetValue("<%=transferAmt.ClientID %>");
  129. var pLocation = GetValue("location");
  130. var sBranch = GetValue("<%=sBranch.ClientID %>");
  131. var pBankBranch = GetValue("bankBranch");
  132. if (dm != "Bank Deposit") {
  133. if (pLocation == null || pLocation == "" || pLocation == "undefined") {
  134. window.parent.SetMessageBox("Please Choose Payout Location", '1');
  135. Loading('hide');
  136. return;
  137. }
  138. }
  139. $.get(urlRoot + "/AgentPanel/Send/SendRegional/FormLoader.aspx", { sBranch: sBranch, pBankBranch: pBankBranch, pLocation: pLocation, amount: amount, dm: dm, type: 'a' }, function (data) {
  140. var res = data.split('|');
  141. if (res[0] != "0") {
  142. GetElement("<%=serviceCharge.ClientID %>").innerHTML = "";
  143. GetElement("<%=collectAmt.ClientID %>").innerHTML = "";
  144. window.parent.SetMessageBox(res[1], '1');
  145. Loading('hide');
  146. return;
  147. }
  148. document.getElementById("<%=serviceCharge.ClientID %>").innerHTML = res[1];
  149. document.getElementById("<%=collectAmt.ClientID %>").innerHTML = res[2];
  150. if (amount >= 75000) {
  151. GetElement("spnIdType").innerHTML = "<span class='errormsg'>*</span>";
  152. GetElement("spnIdNo").innerHTML = "<span class='errormsg'>*</span>";
  153. }
  154. else {
  155. GetElement("spnIdType").innerHTML = "";
  156. GetElement("spnIdNo").innerHTML = "";
  157. }
  158. });
  159. Loading('hide');
  160. }
  161. function LoadServiceChargeTable() {
  162. Loading('show');
  163. var sBranch = GetValue("<%=sBranch.ClientID %>");
  164. var pLocation = GetValue("location");
  165. var dm = GetValue("<%=deliveryMethod.ClientID %>");
  166. var amount = GetValue("<%=transferAmt.ClientID %>");
  167. var pBankBranch = GetValue("bankBranch");
  168. $.get(urlRoot + "/AgentPanel/Send/SendRegional/FormLoader.aspx", { sBranch: sBranch, pBankBranch: pBankBranch, pLocation: pLocation, dm: dm, amount: amount, type: 'sct' }, function (data) {
  169. GetElement("divSc").innerHTML = data;
  170. ShowHideServiceCharge();
  171. });
  172. Loading('hide');
  173. }
  174. function LoadAvailableBalance() {
  175. Loading('show');
  176. var sBranch = GetValue("<%=sBranch.ClientID %>");
  177. $.get(urlRoot + "/AgentPanel/Send/SendRegional/FormLoader.aspx", { sBranch: sBranch, type: 'ac' }, function (data) {
  178. var res = data.split('|');
  179. if (res[0] != "0") {
  180. GetElement("<%=availableAmt.ClientID %>").innerHTML = res[1];
  181. return;
  182. }
  183. GetElement("<%=availableAmt.ClientID %>").innerHTML = res[1];
  184. });
  185. Loading('hide');
  186. }
  187. function PickReceiver() {
  188. Loading('show');
  189. var rMemId = GetValue("<%=rMembershipId.ClientID %>");
  190. $.get(urlRoot + "/AgentPanel/Send/SendRegional/FormLoader.aspx", { memId: rMemId, type: 'r' }, function (data) {
  191. var res = data.split('|');
  192. if (res[0] != "0") {
  193. SetValueById("<%=hddReceiverId.ClientID %>", "", "");
  194. SetValueById("<%=hddRMemId.ClientID %>", "", "");
  195. window.parent.SetMessageBox(res[1], '1');
  196. return;
  197. }
  198. SetValueById("<%=hddRMemId.ClientID %>", res[1], "");
  199. SetValueById("<%=rFirstName.ClientID%>", res[2], "");
  200. SetValueById("<%=rMiddleName.ClientID %>", res[3], "");
  201. SetValueById("<%=rLastName1.ClientID %>", res[4], "");
  202. SetValueById("<%=rLastName2.ClientID %>", res[5], "");
  203. SetValueById("<%=rAdd.ClientID %>", res[6], "");
  204. SetValueById("<%=rContactNo.ClientID %>", res[7], "");
  205. SetValueById("<%=rIdType.ClientID %>", res[8], "");
  206. SetValueById("<%=rIdNo.ClientID %>", res[9], "");
  207. SetValueById("<%=hddReceiverId.ClientID %>", res[10], "");
  208. DisabledReceiverFields();
  209. });
  210. Loading('hide');
  211. }
  212. function ClearField(section) {
  213. if (section == "s") {
  214. SetValueById("<% =sMembershipId.ClientID%>", "", false);
  215. SetValueById("<% =sFirstName.ClientID%>", "", false);
  216. SetValueById("<% =sMiddleName.ClientID%>", "", false);
  217. SetValueById("<% =sLastName1.ClientID%>", "", false);
  218. SetValueById("<% =sLastName2.ClientID%>", "", false);
  219. SetValueById("<% =sAdd.ClientID%>", "", false);
  220. SetValueById("<% =sContactNo.ClientID%>", "", false);
  221. GetElement("<% =sIdType.ClientID%>").selectedIndex = 0;
  222. SetValueById("<% =sIdNo.ClientID%>", "", false);
  223. SetValueById("<% =sEmail.ClientID%>", "", false);
  224. SetValueById("<% =hddSMemId.ClientID%>", "", false);
  225. SetValueById("<% =hddSenderId.ClientID%>", "", false);
  226. EnabledSenderFields();
  227. HideImages();
  228. }
  229. else if (section == "r") {
  230. SetValueById("<% =rMembershipId.ClientID%>", "", false);
  231. SetValueById("<% =rFirstName.ClientID%>", "", false);
  232. SetValueById("<% =rMiddleName.ClientID%>", "", false);
  233. SetValueById("<% =rLastName1.ClientID%>", "", false);
  234. SetValueById("<% =rLastName2.ClientID%>", "", false);
  235. SetValueById("<% =rAdd.ClientID%>", "", false);
  236. SetValueById("<% =rContactNo.ClientID%>", "", false);
  237. GetElement("<% =rIdType.ClientID%>").selectedIndex = 0;
  238. SetValueById("<% =rIdNo.ClientID%>", "", false);
  239. SetValueById("<% =relWithSender.ClientID%>", "", false);
  240. SetValueById("<% =hddRMemId.ClientID%>", "", false);
  241. SetValueById("<% =hddReceiverId.ClientID%>", "", false);
  242. EnabledReceiverFields();
  243. }
  244. }
  245. function ShowHideServiceCharge() {
  246. var pos = FindPos(GetElement("btnSCDetails"));
  247. GetElement("newDiv").style.left = pos[0] + "px";
  248. GetElement("newDiv").style.top = pos[1] + "px";
  249. GetElement("newDiv").style.border = "1px solid black";
  250. if (GetElement("newDiv").style.display == "none" || GetElement("newDiv").style.display == "")
  251. $("#newDiv").slideToggle("fast");
  252. else
  253. $("#newDiv").slideToggle("fast");
  254. }
  255. function RemoveDiv() {
  256. $("#newDiv").slideToggle("fast");
  257. }
  258. function MoveWindowToTop() {
  259. var target = window.parent.document.getElementById('Td1');
  260. target.scrollIntoView();
  261. }
  262. function DisableSendButton() {
  263. GetElement("btnSend").disabled = true;
  264. }
  265. function EnableSendButton() {
  266. GetElement("btnSend").disabled = false;
  267. }
  268. function Send() {
  269. if (!Page_ClientValidate('sendTran'))
  270. return false;
  271. Loading('show');
  272. var tAmt = parseFloat(GetValue("<%=transferAmt.ClientID %>"));
  273. var sc = parseFloat(GetElement("<%=serviceCharge.ClientID %>").innerHTML);
  274. var pDistrictObj = GetElement("district");
  275. var pDistrict = pDistrictObj.Value;
  276. var pDistrictName = pDistrictObj.options[pDistrictObj.selectedIndex].text;
  277. if (pDistrict == "") {
  278. pDistrictName = "";
  279. }
  280. var pLocationObj = GetElement("location");
  281. var pLocation = pLocationObj.value;
  282. var pLocationName = pLocationObj.options[pLocationObj.selectedIndex].text;
  283. var cAmt = GetElement("<% =collectAmt.ClientID%>").innerHTML;
  284. var dmObj = GetElement("<% =deliveryMethod.ClientID%>");
  285. var dm = dmObj.options[dmObj.selectedIndex].text;
  286. if (sc == "" || tAmt == "") {
  287. EnableSendButton();
  288. Loading('hide');
  289. window.parent.SetMessageBox('Cannot Process Transaction. Service Charge not defined', '1');
  290. MoveWindowToTop();
  291. GetElement("<%=transferAmt.ClientID %>").focus();
  292. return false;
  293. }
  294. var sBranch = GetValue("<%=sBranch.ClientID %>");
  295. var pBankBranchObj;
  296. var pBankObj;
  297. var pBank = "";
  298. var pBankBranch = "";
  299. var accountNo = "";
  300. var pBankBranchName = "";
  301. var pBankName = "";
  302. if (dm == "Bank Deposit") {
  303. pBankBranchObj = GetElement("bankBranch");
  304. pBankObj = GetElement("<%=bankName.ClientID %>");
  305. pBank = pBankObj.value;
  306. pBankName = pBankObj.options[pBankObj.selectedIndex].text;
  307. pBankBranch = pBankBranchObj.value;
  308. pBankBranchName = pBankBranchObj.options[pBankBranchObj.selectedIndex].text;
  309. accountNo = GetValue("<%=accountNo.ClientID %>");
  310. }
  311. var senderId = GetValue("<%=hddSenderId.ClientID %>");
  312. var sMemId = GetValue("<%=sMembershipId.ClientID %>");
  313. var sFirstName = GetValue("<%=sFirstName.ClientID %>");
  314. var sMiddleName = GetValue("<%=sMiddleName.ClientID %>");
  315. var sLastName1 = GetValue("<%=sLastName1.ClientID %>");
  316. var sLastName2 = GetValue("<%=sLastName2.ClientID %>");
  317. var sAddress = GetValue("<%=sAdd.ClientID %>");
  318. var sContactNo = GetValue("<%=sContactNo.ClientID %>");
  319. var sIdTypeObj = GetElement("<%=sIdType.ClientID %>");
  320. var sIdType = sIdTypeObj.options[sIdTypeObj.selectedIndex].text;
  321. if (sIdTypeObj.value == "")
  322. sIdType = "";
  323. var sIdNo = GetValue("<%=sIdNo.ClientID %>");
  324. var sEmail = GetValue("<%=sEmail.ClientID %>");
  325. if (tAmt >= 75000 && (sIdType == "" || sIdNo == "")) {
  326. window.parent.SetMessageBox('Cannot Process Transaction. Sender Id Type & Id Number is required.', '1');
  327. GetElement("<%=sIdType.ClientID %>").focus();
  328. return false;
  329. }
  330. var receiverId = GetValue("<%=hddReceiverId.ClientID %>");
  331. var rMemId = GetValue("<%=rMembershipId.ClientID %>");
  332. var rFirstName = GetValue("<%=rFirstName.ClientID %>");
  333. var rMiddleName = GetValue("<%=rMiddleName.ClientID %>");
  334. var rLastName1 = GetValue("<%=rLastName1.ClientID %>");
  335. var rLastName2 = GetValue("<%=rLastName2.ClientID %>");
  336. var rAddress = GetValue("<%=rAdd.ClientID %>");
  337. var rContactNo = GetValue("<%=rContactNo.ClientID %>");
  338. var rIdTypeObj = GetElement("<%=rIdType.ClientID %>");
  339. var rIdType = rIdTypeObj.options[rIdTypeObj.selectedIndex].text;
  340. if (rIdTypeObj.value == "")
  341. rIdType = "";
  342. var rIdNo = GetValue("<%=rIdNo.ClientID %>");
  343. var payMsg = GetValue("<% =remarks.ClientID%>");
  344. var relObj = GetElement("<% = relWithSender.ClientID %>");
  345. var rel = relObj.options[relObj.selectedIndex].text;
  346. if (relObj.value == "")
  347. rel = "";
  348. var sofObj = GetElement("<%=sof.ClientID %>");
  349. var sof = sofObj.options[sofObj.selectedIndex].text;
  350. if (sofObj.value == "")
  351. sof = "";
  352. var porObj = GetElement("<%=por.ClientID %>");
  353. var por = porObj.options[porObj.selectedIndex].text;
  354. if (porObj.value == "")
  355. por = "";
  356. var occObj = GetElement("<%=occupation.ClientID %>");
  357. var occ = occObj.options[occObj.selectedIndex].text;
  358. if (occObj.value == "")
  359. occ = "";
  360. var url = "Confirm.aspx?sBranch=" + sBranch +
  361. "&pDistrict=" + pDistrict +
  362. "&pDistrictName=" + pDistrictName +
  363. "&pLocation=" + pLocation +
  364. "&pLocationName=" + pLocationName +
  365. "&tAmt=" + tAmt +
  366. "&sc=" + sc +
  367. "&cAmt=" + cAmt +
  368. "&dm=" + dm +
  369. "&pBankBranch=" + pBankBranch +
  370. "&pBankBranchName=" + pBankBranchName +
  371. "&pBank=" + pBank +
  372. "&pBankName=" + pBankName +
  373. "&accountNo=" + accountNo +
  374. "&senderId=" + senderId +
  375. "&sMemId=" + sMemId +
  376. "&sFirstName=" + sFirstName +
  377. "&sMiddleName=" + sMiddleName +
  378. "&sLastName1=" + sLastName1 +
  379. "&sLastName2=" + sLastName2 +
  380. "&sAddress=" + sAddress +
  381. "&sContactNo=" + sContactNo +
  382. "&sIdType=" + sIdType +
  383. "&sIdNo=" + sIdNo +
  384. "&sEmail=" + sEmail +
  385. "&receiverId=" + receiverId +
  386. "&rMemId=" + rMemId +
  387. "&rFirstName=" + rFirstName +
  388. "&rMiddleName=" + rMiddleName +
  389. "&rLastName1=" + rLastName1 +
  390. "&rLastName2=" + rLastName2 +
  391. "&rAddress=" + rAddress +
  392. "&rContactNo=" + rContactNo +
  393. "&rel=" + rel +
  394. "&rIdType=" + rIdType +
  395. "&rIdNo=" + rIdNo +
  396. "&payMsg=" + payMsg +
  397. "&sof=" + sof +
  398. "&por=" + por +
  399. "&occupation=" + occ;
  400. var param = "dialogHeight:900px;dialogWidth:900px;dialogLeft:200;dialogTop:100;center:yes";
  401. var id = PopUpWindow(url, param);
  402. Loading('hide');
  403. if (id == "undefined" || id == null || id == "") { }
  404. else {
  405. var res = id.split('|');
  406. if (res[0] == "1") {
  407. var errormsgArr = res[1].split('\n');
  408. for (var i = 0; i < errormsgArr.length; i++) {
  409. alert(errormsgArr[i]);
  410. }
  411. EnableSendButton();
  412. Loading('hide');
  413. HideElement("divStep3");
  414. ShowElement("divStep1");
  415. MoveWindowToTop();
  416. return false;
  417. }
  418. else {
  419. window.location.replace("Receipt.aspx?controlNo=" + res[1] + "&invoicePrintMode=" + res[2]);
  420. }
  421. }
  422. return true;
  423. }
  424. function ConcatenateName(firstName, middleName, lastName1, lastName2) {
  425. var fullName = "";
  426. if (firstName != "")
  427. fullName = fullName + firstName;
  428. if (middleName != "")
  429. fullName = fullName + " " + middleName;
  430. if (lastName1 != "")
  431. fullName = fullName + " " + lastName1;
  432. if (lastName2 != "")
  433. fullName = fullName + " " + lastName2;
  434. return fullName;
  435. }
  436. $(function () {
  437. $('#btnFind').click(function () {
  438. var customerCardNumber = GetValue("<%=sMembershipId.ClientID %>");
  439. var dataToSend = { MethodName: 'SearchCustomer', customerCardNumber: customerCardNumber };
  440. var options =
  441. {
  442. url: '<%=ResolveUrl("Send.aspx") %>?x=' + new Date().getTime(),
  443. data: dataToSend,
  444. dataType: 'JSON',
  445. type: 'POST',
  446. success: function (response) {
  447. ParseResponseData(response);
  448. }
  449. };
  450. $.ajax(options);
  451. });
  452. });
  453. function ParseResponseData(response) {
  454. var data = jQuery.parseJSON(response);
  455. if (data[0].errCode != "0") {
  456. SetValueById("<%=hddReceiverId.ClientID %>", "", "");
  457. SetValueById("<%=hddSenderId.ClientID %>", "", "");
  458. SetValueById("<%=hddSMemId.ClientID %>", "", "");
  459. SetValueById("<%=hddRMemId.ClientID %>", "", "");
  460. window.parent.SetMessageBox(data[0].msg, '1');
  461. return;
  462. }
  463. SetValueById("<%=hddSenderId.ClientID %>", data[0].sCustomerId, "");
  464. SetValueById("<%=sMembershipId.ClientID %>", data[0].sCustomerCardNo, "");
  465. SetValueById("<%=sFirstName.ClientID %>", data[0].sFirstName, "");
  466. SetValueById("<%=sMiddleName.ClientID %>", data[0].sMiddleName, "");
  467. SetValueById("<%=sLastName1.ClientID %>", data[0].sLastName1, "");
  468. SetValueById("<%=sLastName2.ClientID %>", data[0].sLastName2, "");
  469. SetValueById("<%=sAdd.ClientID %>", data[0].sAddress, "");
  470. SetValueById("<%=sContactNo.ClientID %>", data[0].sMobile, "");
  471. SetValueById("<%=sIdType.ClientID %>", data[0].sIdType, "");
  472. SetValueById("<%=sIdNo.ClientID %>", data[0].sIdNumber, "");
  473. SetValueById("<%=sEmail.ClientID %>", data[0].sEmail, "");
  474. DisabledSenderFields();
  475. SetValueById("<%=rMembershipId.ClientID %>", data[0].rCustomerCardNo, "");
  476. SetValueById("<%=hddReceiverId.ClientID %>", data[0].rCustomerId, "");
  477. SetValueById("<%=hddRMemId.ClientID %>", data[0].rCustomerCardNo, "");
  478. SetValueById("<%=rFirstName.ClientID %>", data[0].rFirstName, "");
  479. SetValueById("<%=rMiddleName.ClientID %>", data[0].rMiddleName, "");
  480. SetValueById("<%=rLastName1.ClientID %>", data[0].rLastName1, "");
  481. SetValueById("<%=rLastName2.ClientID %>", data[0].rLastName2, "");
  482. SetValueById("<%=rAdd.ClientID %>", data[0].rAddress, "");
  483. SetValueById("<%=rContactNo.ClientID %>", data[0].rMobile, "");
  484. SetValueById("<%=rIdType.ClientID %>", data[0].rIdType, "");
  485. SetValueById("<%=rIdNo.ClientID %>", data[0].rIdNumber, "");
  486. var amount = GetValue("<%=transferAmt.ClientID %>");
  487. if (amount >= 75000 && data[0].sCustomerId != "") {
  488. LoadImages(data[0].sCustomerId);
  489. }
  490. else
  491. HideImages();
  492. }
  493. function ShowSenderCustomer() {
  494. var customerCardNumber = GetValue("<%=sMembershipId.ClientID %>");
  495. if (customerCardNumber == "") {
  496. alert("Please enter Membership Id!");
  497. return false;
  498. }
  499. var url = urlRoot + "/Remit/Administration/CustomerSetup/Display.aspx?membershipId=" + customerCardNumber + "";
  500. PopUpWindow(url, "");
  501. }
  502. function ViewHistory() {
  503. var sMembershipId = GetValue("<%=sMembershipId.ClientID %>");
  504. var sFirstName = GetValue("<%=sFirstName.ClientID %>");
  505. var sMiddleName = GetValue("<%=sMiddleName.ClientID %>");
  506. var sLastName = GetValue("<%=sLastName1.ClientID %>");
  507. var sContactNo = GetValue("<%=sContactNo.ClientID %>");
  508. var url = urlRoot + "/Remit/Transaction/Send/Domestic/ReceiverHistory.aspx?sMembershipId=" + sMembershipId + "&sFirstName=" + sFirstName + "&sMiddleName=" + sMiddleName + "&sLastName=" + sLastName + "&sContactNo=" + sContactNo;
  509. var data = PopUpWindowWithCallBack(url, "dialogWidth:800px; dialogHeight:600px;");
  510. var res = data.split('|');
  511. if (res[0] != "0") {
  512. SetValueById("<%=hddReceiverId.ClientID %>", "", "");
  513. SetValueById("<%=hddRMemId.ClientID %>", "", "");
  514. SetValueById("<% =rMembershipId.ClientID%>", "", false);
  515. SetValueById("<% =rFirstName.ClientID%>", "", false);
  516. SetValueById("<% =rMiddleName.ClientID%>", "", false);
  517. SetValueById("<% =rLastName1.ClientID%>", "", false);
  518. SetValueById("<% =rLastName2.ClientID%>", "", false);
  519. SetValueById("<% =rAdd.ClientID%>", "", false);
  520. SetValueById("<% =rContactNo.ClientID%>", "", false);
  521. GetElement("<% =rIdType.ClientID%>").selectedIndex = 0;
  522. SetValueById("<% =rIdNo.ClientID%>", "", false);
  523. SetValueById("<% =relWithSender.ClientID%>", "", false);
  524. window.parent.SetMessageBox(res[1], '1');
  525. return;
  526. }
  527. SetValueById("<%=rMembershipId.ClientID %>", res[1], "");
  528. SetValueById("<%=hddRMemId.ClientID %>", res[1], "");
  529. SetValueById("<%=hddReceiverId.ClientID %>", res[2], "");
  530. SetValueById("<% =rFirstName.ClientID%>", res[3], "");
  531. SetValueById("<%=rMiddleName.ClientID %>", res[4], "");
  532. SetValueById("<%=rLastName1.ClientID %>", res[5], "");
  533. SetValueById("<%=rContactNo.ClientID %>", res[6], "");
  534. SetValueById("<%=rIdType.ClientID %>", res[7], "");
  535. SetValueById("<%=rIdNo.ClientID %>", res[8], "");
  536. SetValueById("<%=rAdd.ClientID %>", res[9], "");
  537. DisabledReceiverFields();
  538. }
  539. function ShowReceiverCustomer() {
  540. var memId = GetValue("<%=rMembershipId.ClientID %>");
  541. if (memId == "") {
  542. alert("Please enter Membership Id!");
  543. return false;
  544. }
  545. var url = urlRoot + "/Remit/Administration/CustomerSetup/Display.aspx?membershipId=" + memId + "";
  546. PopUpWindow(url, "");
  547. return true;
  548. }
  549. function DisabledSenderFields() {
  550. $('#sFirstName').attr("readonly", true);
  551. $('#sMiddleName').attr("readonly", true);
  552. $('#sLastName1').attr("readonly", true);
  553. $('#sLastName2').attr("readonly", true);
  554. $('#sAdd').attr("readonly", true);
  555. $('#sContactNo').attr("readonly", true);
  556. GetElement("<%=sIdType.ClientID %>").disabled = true;
  557. $('#sIdNo').attr("readonly", true);
  558. $('#sEmail').attr("readonly", true);
  559. }
  560. function DisabledReceiverFields() {
  561. $('#rFirstName').attr("readonly", true);
  562. $('#rMiddleName').attr("readonly", true);
  563. $('#rLastName1').attr("readonly", true);
  564. $('#rContactNo').attr("readonly", true);
  565. GetElement("<%=rIdType.ClientID %>").disabled = true;
  566. $('#rIdNo').attr("readonly", true);
  567. $('#rAdd').attr("readonly", true);
  568. }
  569. function EnabledSenderFields() {
  570. $('#sFirstName').attr("readonly", false);
  571. $('#sMiddleName').attr("readonly", false);
  572. $('#sLastName1').attr("readonly", false);
  573. $('#sLastName2').attr("readonly", false);
  574. $('#sAdd').attr("readonly", false);
  575. $('#sContactNo').attr("readonly", false);
  576. GetElement("<%=sIdType.ClientID %>").disabled = false;
  577. $('#sIdNo').attr("readonly", false);
  578. $('#sEmail').attr("readonly", false);
  579. }
  580. function EnabledReceiverFields() {
  581. $('#rFirstName').attr("readonly", false);
  582. $('#rMiddleName').attr("readonly", false);
  583. $('#rLastName1').attr("readonly", false);
  584. $('#rContactNo').attr("readonly", false);
  585. GetElement("<%=rIdType.ClientID %>").disabled = false;
  586. $('#rIdNo').attr("readonly", false);
  587. $('#rAdd').attr("readonly", false);
  588. }
  589. function LoadImages(customerId) {
  590. var dataToSend = { MethodName: "LoadImages", customerId: customerId };
  591. var options =
  592. {
  593. url: '<%=ResolveUrl("Send.aspx") %>?x=' + new Date().getTime(),
  594. data: dataToSend,
  595. dataType: 'JSON',
  596. type: 'POST',
  597. success: function (response) {
  598. var data = jQuery.parseJSON(response);
  599. $("#loadImg").show();
  600. GetElement("imgForm").innerHTML = data[0].imgForm;
  601. GetElement("imgID").innerHTML = data[0].imgID;
  602. }
  603. };
  604. $.ajax(options);
  605. }
  606. function HideImages() {
  607. $("#loadImg").hide();
  608. GetElement("imgForm").innerHTML = "";
  609. GetElement("imgID").innerHTML = "";
  610. }
  611. </script>
  612. <style type="text/css">
  613. td {
  614. font-size: 11px;
  615. }
  616. .panels {
  617. padding: 7px;
  618. margin-bottom: 5px;
  619. margin-left: 20px;
  620. width: 100%;
  621. }
  622. .panels2 {
  623. background: #f2f2f2;
  624. padding: 10px;
  625. border: 1px solid #fff;
  626. border-color: #f2f2e6 #666661 #666661 #f2f2e6;
  627. margin-bottom: 5px;
  628. margin-left: 20px;
  629. width: 800px;
  630. height: 15px;
  631. }
  632. .headers {
  633. margin-left: 30px;
  634. font-family: Verdana;
  635. font-size: large;
  636. font-weight: bold;
  637. clear: both;
  638. }
  639. .label {
  640. font-family: Verdana;
  641. font-size: 13px;
  642. width: 150px;
  643. }
  644. .text {
  645. font-family: Verdana;
  646. font-size: 13px;
  647. font-weight: bolder;
  648. }
  649. .text-amount {
  650. font-family: Verdana;
  651. font-size: 13px;
  652. text-align: right;
  653. font-weight: bold;
  654. }
  655. </style>
  656. </head>
  657. <body>
  658. <form id="form1" runat="server" autocomplete="off">
  659. <asp:ScriptManager runat="server" ID="sm1"></asp:ScriptManager>
  660. <div class="page-wrapper">
  661. <div class="row">
  662. <div class="col-sm-12">
  663. <div class="page-title">
  664. <ol class="breadcrumb">
  665. <li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
  666. <li class="active"><a href="#">Transaction</a></li>
  667. <li class="active"><a href="#">Send Transaction</a></li>
  668. </ol>
  669. </div>
  670. </div>
  671. </div>
  672. <div id="divLoading" style="position: fixed; left: 450px; top: 0px; background-color: white; border: 1px solid black; display: none;">
  673. <img alt="progress" src="../../../Images/Loading_small.gif" />
  674. Processing...
  675. </div>
  676. <div id="divStep1" class="mainContainer">
  677. <div class="row">
  678. <div class="col-md-12">
  679. <div class="row" style="margin-left:8px;">
  680. <div class="form-group">
  681. <label class="col-lg-2 col-md-2 control-label" for="">
  682. Branch Name</label>
  683. <div class="col-lg-5 col-md-5">
  684. <asp:DropDownList runat="server" ID="sBranch" CssClass="form-control" Width="95%" />
  685. </div>
  686. </div>
  687. </div>
  688. <div class="clearfix"></div>
  689. <br />
  690. <div class="panel panel-default margin-b-30">
  691. <div class="panel-heading">
  692. <h4 class="panel-title">Available Balance:
  693. <asp:Label ID="availableAmt" runat="server" BackColor="Yellow" ForeColor="Red"></asp:Label>&nbsp;NPR</h4>
  694. <div class="panel-actions">
  695. <a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
  696. </div>
  697. </div>
  698. <div class="panel-body">
  699. <asp:HiddenField ID="hdnInvoicePrintMethod" runat="server" />
  700. <div class="form-group">
  701. <label class="col-lg-2 col-md-2 control-label" for="">
  702. Delivery Method<span class="errormsg">*</span>
  703. </label>
  704. <div class="col-lg-5 col-md-5">
  705. <asp:DropDownList ID="deliveryMethod" runat="server"
  706. CssClass="requiredField form-control col-sm-offset-0">
  707. </asp:DropDownList>
  708. <asp:RequiredFieldValidator
  709. ID="RequiredFieldValidator3" runat="server" ControlToValidate="deliveryMethod" ForeColor="Red"
  710. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True">
  711. </asp:RequiredFieldValidator>
  712. </div>
  713. </div>
  714. <fieldset id="tblAccount" style="display: none;" class="fieldset">
  715. <legend>
  716. <b>Account Details</b>
  717. </legend>
  718. <div class="form-group">
  719. <label class="col-lg-2 col-md-2 control-label" for="">
  720. Bank Name <span id="spnBankName" runat="server" class="errormsg">*</span>
  721. </label>
  722. <div class="col-lg-5 col-md-5">
  723. <asp:DropDownList ID="bankName" runat="server" CssClass="form-control">
  724. </asp:DropDownList>
  725. <asp:RequiredFieldValidator ID="rfvBankName" runat="server" ControlToValidate="bankName"
  726. ForeColor="Red" Enabled="false" Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran"
  727. SetFocusOnError="True"> </asp:RequiredFieldValidator>
  728. </div>
  729. </div>
  730. <div class="form-group">
  731. <label class="col-lg-2 col-md-2 control-label" for="">
  732. Bank Branch Name <span id="spnBranchName" runat="server" class="errormsg">*</span>
  733. </label>
  734. <div class="col-lg-5 col-md-5">
  735. <div id="divBankBranch">
  736. <asp:DropDownList ID="bankBranch" runat="server" CssClass="form-control"></asp:DropDownList>
  737. </div>
  738. </div>
  739. </div>
  740. <div class="form-group">
  741. <label class="col-lg-2 col-md-2 control-label" for="">
  742. Account No <span id="spnAcNo" runat="server" class="errormsg">*</span>
  743. </label>
  744. <div class="col-lg-5 col-md-5">
  745. <asp:TextBox ID="accountNo" runat="server" CssClass="form-control"></asp:TextBox>
  746. <asp:RequiredFieldValidator ID="rfvAcNo" runat="server" ControlToValidate="accountNo"
  747. ForeColor="Red" Enabled="false" Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran"
  748. SetFocusOnError="True"></asp:RequiredFieldValidator>
  749. </div>
  750. </div>
  751. </fieldset>
  752. <div id="tblLocation">
  753. <div class="form-group">
  754. <label class="col-lg-2 col-md-2 control-label" for="">
  755. Payout Location:
  756. <span class="errormsg">*</span></label>
  757. <div class="col-lg-5 col-md-5">
  758. <div id="divLocation" runat="server">
  759. <select id="location" class="form-control" onclick="PopulateDistrict();" ></select>
  760. </div>
  761. </div>
  762. </div>
  763. <div class="form-group">
  764. <label class="col-lg-2 col-md-2 control-label" for="">
  765. Payout District:
  766. <span class="errormsg">*</span></label>
  767. <div class="col-lg-5 col-md-5">
  768. <div id="divDistrict" runat="server">
  769. <select id="district" class="form-control" onchange="PopulateLocation();"></select>
  770. </div>
  771. </div>
  772. </div>
  773. <div class="form-group">
  774. <label class="col-lg-2 col-md-2 control-label" for="">
  775. Transfer Amount:<span class="errormsg">*</span></label>
  776. <div class="col-lg-3 col-md-3">
  777. <asp:TextBox runat="server" ID="transferAmt" CssClass="requiredField form-control"></asp:TextBox>
  778. </div>
  779. <div class="col-lg-2 col-md-2">
  780. <input type="button" value="Calculate" onclick="CalculateServiceCharge();" class="btn btn-primary btn-sm" / style="margin-top:10px;">
  781. <img class="showHand" title="View Service Charge" id="btnSCDetails" src="../../../images/rule.gif" border="0" onclick="LoadServiceChargeTable()" />
  782. <asp:RequiredFieldValidator
  783. ID="RequiredFieldValidator1" runat="server" ControlToValidate="transferAmt" ForeColor="Red"
  784. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True">
  785. </asp:RequiredFieldValidator>
  786. <cc1:FilteredTextBoxExtender ID="ftbe1"
  787. runat="server" Enabled="True" FilterType="Numbers" TargetControlID="transferAmt">
  788. </cc1:FilteredTextBoxExtender>
  789. </div>
  790. <div id="newDiv" style="position: absolute; margin-top: -175px; margin-left: 0px; display: none; z-index: 9999;">
  791. <div class="panel panel-default">
  792. <div class="panel-heading">
  793. <div class="row">
  794. <div class="col-md-5">
  795. Service Charge
  796. </div>
  797. <div class="col-md-3 pull-right">
  798. <span title="Close" style="cursor: pointer; margin: 2px; float: right;" onclick=" RemoveDiv(); ">
  799. <b>x</b></span>
  800. </div>
  801. </div>
  802. </div>
  803. <div class="panel-body">
  804. <table cellpadding="0" cellspacing="0" style="background: white;" class="table table-condensed">
  805. <tr>
  806. <td colspan="4">
  807. <div id="divSc">
  808. N/A
  809. </div>
  810. </td>
  811. </tr>
  812. </table>
  813. </div>
  814. </div>
  815. </div>
  816. </div>
  817. </div>
  818. <div class="form-group">
  819. <label class="col-lg-2 col-md-2 control-label" for="">
  820. Service Charge</label>
  821. <div class="col-lg-6 col-md-6">
  822. <asp:Label runat="server" ID="serviceCharge"></asp:Label>
  823. </div>
  824. </div>
  825. <div class="form-group">
  826. <label class="col-lg-2 col-md-2 control-label" for="">
  827. Collect Amount</label>
  828. <div class="col-lg-6 col-md-6">
  829. <span style="font-size: 1.3em; font-weight: bold;">
  830. <asp:Label runat="server" ID="collectAmt"></asp:Label></span>
  831. </div>
  832. </div>
  833. </div>
  834. </div>
  835. <div class="clearfix"></div>
  836. <div class="panel panel-default margin-b-30">
  837. <div class="panel-heading">
  838. <h4 class="panel-title">Enter Sender Information</h4>
  839. </div>
  840. <div class="panel-body">
  841. <div class="form-group">
  842. <label class="col-lg-1 col-md-1 control-label" for="">
  843. <b>Membership ID</b>
  844. </label>
  845. <div class="col-lg-3 col-md-3">
  846. <asp:TextBox runat="server" ID="sMembershipId" CssClass="form-control"></asp:TextBox>
  847. </div>
  848. </div>
  849. <div class="form-group">
  850. <div class="col-lg-5 col-md-5 col-md-offset-1">
  851. <input type="button" id="btnFind" class="btn btn-primary btn-sm" value="Find" />
  852. <input type="button" class="btn btn-primary btn-sm" value="Clear Field" onclick="ClearField('s');" />
  853. <input type="button" class="btn btn-primary btn-sm" value="View Customer" onclick="ShowSenderCustomer();" />
  854. <asp:HiddenField ID="hddSMemId" runat="server" />
  855. <asp:HiddenField ID="hddSenderId" runat="server" />
  856. <asp:TextBox ID="sLastName2" runat="server" Style="display: none;"></asp:TextBox>
  857. </div>
  858. </div>
  859. <div class="form-group">
  860. <label class="col-lg-2 col-md-1 control-label" for="">
  861. First Name <span class="errormsg">*</span>
  862. </label>
  863. <div class="col-lg-3 col-md-3">
  864. <asp:RequiredFieldValidator
  865. ID="RequiredFieldValidator4" runat="server" ControlToValidate="sFirstName" ForeColor="Red"
  866. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True"> </asp:RequiredFieldValidator>
  867. <asp:TextBox ID="sFirstName" runat="server" onkeypress="return onlyAlphabets(event,this);" CssClass="requiredField form-control"></asp:TextBox>
  868. </div>
  869. <label class="col-lg-1 col-md-1 control-label" for="">
  870. Middle
  871. </label>
  872. <div class="col-lg-3 col-md-3">
  873. <asp:TextBox ID="sMiddleName" runat="server" onkeypress="return onlyAlphabets(event,this);" CssClass="form-control"></asp:TextBox>
  874. </div>
  875. <label class="col-lg-1 col-md-1 control-label" for="">
  876. Last
  877. </label>
  878. <div class="col-lg-3 col-md-3">
  879. <asp:TextBox ID="sLastName1" runat="server" onkeypress="return onlyAlphabets(event,this);" CssClass="requiredField form-control"></asp:TextBox>
  880. </div>
  881. </div>
  882. <div class="form-group">
  883. <label class="col-lg-1 col-md-1 control-label" for="">
  884. ID Type<span id="spnIdType"></span>
  885. </label>
  886. <div class="col-lg-3 col-md-3">
  887. <asp:DropDownList ID="sIdType" runat="server" CssClass="form-control"></asp:DropDownList>
  888. </div>
  889. <label class="col-lg-1 col-md-1 control-label" for="">
  890. ID No<span id="spnIdNo"></span>
  891. </label>
  892. <div class="col-lg-3 col-md-3">
  893. <asp:TextBox ID="sIdNo" runat="server" CssClass="form-control" onkeydown="return MakeNumericContactNoIdNo(this, (event?event:evt), true);" onchange="IdNoValidation(this)"></asp:TextBox>
  894. </div>
  895. <label class="col-lg-1 col-md-1 control-label" for="">
  896. Contact No <span class="errormsg">*</span>
  897. <asp:RequiredFieldValidator
  898. ID="RequiredFieldValidator7" runat="server" ControlToValidate="sContactNo" ForeColor="Red"
  899. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True">
  900. </asp:RequiredFieldValidator>
  901. </label>
  902. <div class="col-lg-3 col-md-3">
  903. <asp:TextBox ID="sContactNo" onchange="ContactNoValidation(this)" onkeydown="return MakeNumericContactNoIdNo(this, (event?event:evt), true);" runat="server" CssClass="requiredField form-control"></asp:TextBox>
  904. </div>
  905. </div>
  906. <div class=" col-sm-12 ">
  907. <div class="alert alert-info" style="color: red; font-weight: bold; font-size: 12px;">
  908. 75,000 वा सो भन्दा माथिको कारोबारमा अनिबार्यरुपमा सरकारी मन्यता प्राप्त परिचय
  909. पत्र को प्रतिलिपी लिनुका साथै सिस्टममा पनि ID Type तथा ID Number उल्लेख गर्नु
  910. होला |
  911. </div>
  912. </div>
  913. <div class="clearfix"></div>
  914. <div class="form-group">
  915. <label class="col-lg-1 col-md-1 control-label" for="">
  916. Email
  917. </label>
  918. <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server"
  919. ValidationGroup="sendTran"
  920. ControlToValidate="sEmail" ErrorMessage="Invalid Email!" SetFocusOnError="True" ForeColor="Red"
  921. ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"> </asp:RegularExpressionValidator>
  922. <div class="col-lg-3 col-md-3">
  923. <asp:TextBox ID="sEmail" runat="server" CssClass="form-control"></asp:TextBox>
  924. </div>
  925. <label class="col-lg-1 col-md-1 control-label" for="">
  926. Address <span class="errormsg">*</span>
  927. <asp:RequiredFieldValidator
  928. ID="RequiredFieldValidator6" runat="server" ControlToValidate="sAdd" ForeColor="Red"
  929. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True"> </asp:RequiredFieldValidator>
  930. </label>
  931. <div class="col-lg-3 col-md-3">
  932. <asp:TextBox ID="sAdd" runat="server" TextMode="MultiLine" CssClass="requiredField form-control"></asp:TextBox>
  933. </div>
  934. </div>
  935. <div class="row panels" style="display: none" id="loadImg">
  936. <div class="col-sm-2">
  937. <div runat="server" id="imgForm" style="float: left; cursor: pointer;">
  938. </div>
  939. </div>
  940. <div class="col-sm-2">
  941. <div runat="server" id="imgID" style="float: left; cursor: pointer;">
  942. </div>
  943. </div>
  944. </div>
  945. </div>
  946. </div>
  947. <div class="panel panel-default margin-b-30">
  948. <div class="panel-heading">
  949. <h4 class="panel-title">Enter Receiver Information</h4>
  950. </div>
  951. <div class="panel-body">
  952. <div class="form-group">
  953. <label class="col-lg-1 col-md-1 control-label" for=""><b>Membership ID</b></label>
  954. <div class="col-lg-3 col-md-3">
  955. <asp:TextBox runat="server" ID="rMembershipId" CssClass="form-control"></asp:TextBox>
  956. </div>
  957. </div>
  958. <div class="form-group">
  959. <div class="col-lg-5 col-md-5 col-md-offset-1">
  960. <input type="button" class="btn btn-primary btn-sm" value="Find" onclick="PickReceiver();" />
  961. <input type="button" class="btn btn-primary btn-sm" value="View History" onclick="ViewHistory();" />
  962. <input type="button" class="btn btn-primary btn-sm" value="Clear Field" onclick="ClearField('r');" />
  963. <input type="button" class="btn btn-primary btn-sm" value="View Customer" onclick="ShowReceiverCustomer();" />
  964. <asp:HiddenField ID="hddRMemId" runat="server" />
  965. <asp:HiddenField ID="hddReceiverId" runat="server" />
  966. <asp:TextBox ID="rLastName2" runat="server" Style="display: none;" CssClass="form-control"></asp:TextBox>
  967. </div>
  968. </div>
  969. <div class="form-group">
  970. <label class="col-lg-1 col-md-1 control-label" for="">
  971. First Name <span class="errormsg">*</span>
  972. <asp:RequiredFieldValidator
  973. ID="RequiredFieldValidator10" runat="server" ControlToValidate="rFirstName" ForeColor="Red"
  974. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True"> </asp:RequiredFieldValidator>
  975. </label>
  976. <div class="col-lg-3 col-md-3">
  977. <asp:TextBox ID="rFirstName" runat="server" CssClass="requiredField form-control" onkeypress="return onlyAlphabets(event,this);"></asp:TextBox>
  978. </div>
  979. <label class="col-lg-1 col-md-1 control-label" for="">Middle</label>
  980. <div class="col-lg-3 col-md-3">
  981. <asp:TextBox ID="rMiddleName" runat="server" CssClass="form-control" onkeypress="return onlyAlphabets(event,this);"></asp:TextBox>
  982. </div>
  983. <label class="col-lg-1 col-md-1 control-label" for="">Last</label>
  984. <div class="col-lg-3 col-md-3">
  985. <asp:TextBox ID="rLastName1" runat="server" CssClass="requiredField form-control" onkeypress="return onlyAlphabets(event,this);"></asp:TextBox>
  986. </div>
  987. </div>
  988. <div class="form-group">
  989. <label class="col-lg-1 col-md-1 control-label" for="">ID Type </label>
  990. <div class="col-lg-3 col-md-3">
  991. <asp:DropDownList ID="rIdType" runat="server" CssClass="form-control"></asp:DropDownList>
  992. </div>
  993. <label class="col-lg-1 col-md-1 control-label" for="">ID No</label>
  994. <div class="col-lg-3 col-md-3">
  995. <asp:TextBox ID="rIdNo" runat="server" CssClass="form-control" onkeydown="return MakeNumericContactNoIdNo(this, (event?event:evt), true);" onchange="IdNoValidation(this)"></asp:TextBox>
  996. </div>
  997. <label class="col-lg-1 col-md-1 control-label" for="">
  998. Contact No <span id="spnRContactNo" class="errormsg">*</span>
  999. <asp:RequiredFieldValidator
  1000. ID="rfvRContactNo" runat="server" ControlToValidate="rContactNo" ForeColor="Red"
  1001. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True">
  1002. </asp:RequiredFieldValidator>
  1003. </label>
  1004. <div class="col-lg-3 col-md-3">
  1005. <asp:TextBox ID="rContactNo" runat="server" CssClass="requiredField form-control"
  1006. onchange="ContactNoValidation(this)" onkeydown="return MakeNumericContactNoIdNo(this, (event?event:evt), true);">
  1007. </asp:TextBox>
  1008. </div>
  1009. </div>
  1010. <div class="form-group">
  1011. <label class="col-lg-1 col-md-1 control-label" for="">
  1012. Relationship
  1013. with Sender <span id="spnRelWithSender" class="errormsg">*</span>
  1014. <asp:RequiredFieldValidator
  1015. ID="rfvRelWithSender" runat="server" ControlToValidate="relWithSender" ForeColor="Red"
  1016. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True"> </asp:RequiredFieldValidator>
  1017. </label>
  1018. <div class="col-lg-3 col-md-3">
  1019. <asp:DropDownList ID="relWithSender" runat="server" CssClass="requiredField form-control" Width="100%"></asp:DropDownList>
  1020. </div>
  1021. <label class="col-lg-1 col-md-1 control-label" for="">
  1022. Address <span id="spnAddress" class="errormsg">*</span>
  1023. <asp:RequiredFieldValidator
  1024. ID="rfvAddress" runat="server" ControlToValidate="rAdd" ForeColor="Red"
  1025. Display="Dynamic" ErrorMessage="Required!" ValidationGroup="sendTran" SetFocusOnError="True"> </asp:RequiredFieldValidator>
  1026. </label>
  1027. <div class="col-lg-3 col-md-3">
  1028. <asp:TextBox ID="rAdd" runat="server" TextMode="MultiLine" Width="100%" CssClass="requiredField form-control"></asp:TextBox>
  1029. </div>
  1030. </div>
  1031. </div>
  1032. </div>
  1033. <div class="panel panel-default margin-b-30">
  1034. <div class="panel-heading">
  1035. <h4 class="panel-title">Customer Due Diligence Information -(CDDI)</h4>
  1036. </div>
  1037. <div class="panel-body">
  1038. <div class="form-group">
  1039. <label class="col-lg-1 col-md-1 control-label" for="">Source Of Fund:</label>
  1040. <div class="col-lg-3 col-md-3">
  1041. <asp:DropDownList runat="server" ID="sof" CssClass="form-control" Width="100%" />
  1042. </div>
  1043. <label class="col-lg-1 col-md-1 control-label" for="">Purpose of Remittance:</label>
  1044. <div class="col-lg-3 col-md-3">
  1045. <asp:DropDownList runat="server" ID="por" CssClass="form-control" Width="100%" />
  1046. </div>
  1047. </div>
  1048. <div class="form-group">
  1049. <label class="col-lg-1 col-md-1 control-label" for="">Occupation:</label>
  1050. <div class="col-lg-3 col-md-3">
  1051. <asp:DropDownList ID="occupation" runat="server" CssClass="form-control" Width="100%"></asp:DropDownList>
  1052. </div>
  1053. <label class="col-lg-1 col-md-1 control-label" for="">
  1054. Message to Receiver<br />
  1055. </label>
  1056. <div class="col-lg-3 col-md-3">
  1057. <asp:TextBox ID="remarks" runat="server" TextMode="MultiLine"
  1058. CssClass="form-control"></asp:TextBox>
  1059. </div>
  1060. </div>
  1061. <div class="form-group" style="margin-bottom: 100px;">
  1062. <div class="col-lg-3 col-md-3 col-md-offset-1">
  1063. <input type="button" id="btnSend" value="Send Transaction" class="btn btn-primary btn-sm" onclick="Send();" />
  1064. </div>
  1065. </div>
  1066. </div>
  1067. </div>
  1068. </div>
  1069. </div>
  1070. </div>
  1071. </div>
  1072. </form>
  1073. </body>
  1074. </html>