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.

1352 lines
86 KiB

  1. <%@ Page Title="" Language="C#" EnableEventValidation="false" MasterPageFile="~/AgentNew/AgentMain.Master" AutoEventWireup="true" CodeBehind="EditCustomer.aspx.cs" Inherits="Swift.web.AgentNew.Transaction.ApproveCustomerFromAgent.EditCustomer" %>
  2. <%@ Register Src="~/Component/AutoComplete/SwiftTextBox.ascx" TagName="SwiftTextBox" TagPrefix="uc1" %>
  3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  4. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  5. <link href="../../css/Document.css" rel="stylesheet" />
  6. <link href="../../css/signature-pad.css" rel="stylesheet" />
  7. <style>
  8. .intl-tel-input {
  9. width: 100% !important;
  10. }
  11. input, textarea {
  12. text-transform: uppercase;
  13. }
  14. table#ContentPlaceHolder1_rbRemitanceAllowed tbody tr td {
  15. padding-left: 10px;
  16. }
  17. table#ContentPlaceHolder1_rbOnlineLogin tbody tr td {
  18. padding-left: 10px;
  19. }
  20. </style>
  21. <script>
  22. $(document).ready(function () {
  23. $("#uploadFrontIdDiv").hide();
  24. $("#uploadBackIdDiv").hide();
  25. $("#editFrontId").click(function () {
  26. debugger
  27. $("#uploadFrontIdDiv").show();
  28. });
  29. $("#editBackId").click(function () {
  30. $("#uploadBackIdDiv").show();
  31. });
  32. $("#" + mId + "occupation").change(function () {
  33. $("#divOccupation").hide();
  34. if ($("#" + mId + "occupation").val() === "11383") {
  35. $("#divOccupation").show();
  36. }
  37. });
  38. var customerId = "<%=GetCustomerId()%>";
  39. var eid = $('#<%=hdnCustomerId.ClientID%>').val(customerId);
  40. if (customerId != "") {
  41. LoadcustomerData();
  42. }
  43. $("#<%=ExpireDate.ClientID%>").click(function () {
  44. $("#<%=ExpireDate.ClientID%>").val('');
  45. });
  46. $("#<%=zipCode.ClientID%>").keyup(function () {
  47. var len = $(this).val().length;
  48. if (len == '7') {
  49. GetAddressByZipCode();
  50. }
  51. });
  52. <%-- $("#<%=zipCode.ClientID%>").keydown(function () {
  53. var len = $(this).val().length;
  54. if (len == '6') {
  55. GetAddressByZipCode();
  56. }
  57. });--%>
  58. $('#<%=ddlSearchBy.ClientID%>').change(function () {
  59. $('#ContentPlaceHolder1_txtSearchData_aText').val('');
  60. $('#ContentPlaceHolder1_addEditPanel').hide();
  61. $('#<%=ddlCustomerType.ClientID%>').val('4700');
  62. $('#<%=membershipDiv.ClientID%>').hide();
  63. $('#<%=customerType.ClientID%>').hide();
  64. $('#<%=txtMembershipId.ClientID%>').val('');
  65. <% = txtSearchData.InitFunction() %>
  66. });
  67. $(document).on('change', '#ContentPlaceHolder1_txtSearchData_aSearch', function () {
  68. searchValue = $(this).val();
  69. if (searchValue === null || searchValue === "") {
  70. $('#ContentPlaceHolder1_txtSearchData_aText').val('');
  71. $('#ContentPlaceHolder1_addEditPanel').hide();
  72. $('#<%=ddlCustomerType.ClientID%>').val('4700');
  73. $('#<%=membershipDiv.ClientID%>').hide();
  74. $('#<%=customerType.ClientID%>').hide();
  75. $('#<%=txtMembershipId.ClientID%>').val('');
  76. }
  77. });
  78. // mobile country code added
  79. $("#<%=mobile.ClientID%>").intlTelInput({
  80. nationalMode: true,
  81. onlyCountries: ["jp"],
  82. utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/12.1.3/js/utils.js" // just for formatting/placeholders etc
  83. });
  84. $("#<%=mobile.ClientID%>").on("change", function () {
  85. var input = $("#<%=mobile.ClientID%>");
  86. var countryCode = $('.dial-code').text();
  87. var mobileNo = input.val();
  88. var maxLength = input.attr('maxLength');
  89. if (mobileNo.indexOf(countryCode) < 0) {
  90. mobileNo = countryCode + mobileNo;
  91. }
  92. if (mobileNo.length > maxLength) {
  93. alert('Mobile No. Can allow input maxmum ' + maxLength + ' digit only');
  94. return $(this).val('');
  95. }
  96. $(this).val(mobileNo);
  97. CheckForMobileNumber(this, 'Mobile No.');
  98. });
  99. $('#<%=countryList.ClientID%>').on('change', function () {
  100. $("#<%=mobile.ClientID%>").val('');
  101. var country = $("#<%=countryList.ClientID%> option:selected").text();
  102. if (country.toLowerCase() == 'japan') {
  103. $("#<%=mobile.ClientID%>").intlTelInput('setCountry', 'jp');
  104. }
  105. });
  106. CalSenderDOB("#<%=dob.ClientID%>");
  107. CompanyRegisterDate("#<%=txtDateOfIncorporation.ClientID%>");
  108. CalIDIssueDate("#<%=IssueDate.ClientID%>");
  109. CalFromToday("#<%=ExpireDate.ClientID%>");
  110. $("#<%=txtDateOfIncorporation.ClientID%>").mask('0000-00-00');
  111. $("#<%=IssueDate.ClientID%>").mask('0000-00-00');
  112. $("#<%=ExpireDate.ClientID%>").mask('0000-00-00');
  113. $("#<%=IssueDate.ClientID%>").mask('0000-00-00');
  114. $("#<%=ExpireDate.ClientID %>").mask('0000-00-00');
  115. $("#<%=dob.ClientID%>").mask('0000-00-00');
  116. ChangeOrganisationType();
  117. IdTypeValidity();
  118. CustomerSignature();
  119. });
  120. function IdTypeValidity() {
  121. var senIdType = $("#<%=idType.ClientID%>").val();
  122. if (senIdType == "") {
  123. $("#<%=expiryDiv.ClientID%>").removeClass('hidden');
  124. }
  125. else {
  126. var senIdTypeArr = senIdType.split('|');
  127. if (senIdTypeArr[2] == "E") {
  128. $("#<%=expiryDiv.ClientID%>").removeClass("hidden");
  129. $("#expireRequired").show();
  130. $("#<%=ExpireDate.ClientID%>").addClass("required");
  131. }
  132. else {
  133. $("#<%=expiryDiv.ClientID%>").addClass("hidden");
  134. $("#<%=ExpireDate.ClientID%>").removeClass("required");
  135. }
  136. }
  137. };
  138. function CheckForMobileNumber(nField, fieldName) {
  139. var numberPattern = /^[+]?[0-9]{6,16}$/;
  140. test = numberPattern.test(nField.value);
  141. if (!test) {
  142. alert(fieldName + ' Is Not Valid !');
  143. nField.value = '';
  144. return false
  145. }
  146. return true;
  147. }
  148. function CheckForPhoneNumber(nField, fieldName) {
  149. var numberPattern = /^[+]?[0-9]{6,15}$/;
  150. test = numberPattern.test(nField.value);
  151. if (!test) {
  152. alert(fieldName + ' Is Not Valid !');
  153. nField.value = '';
  154. return false
  155. }
  156. return true;
  157. }
  158. function ChangeOrganisationType() {
  159. var customerType = $("#<% =ddlCustomerType.ClientID%>").val();
  160. var clearInputFields = [];
  161. if (customerType === '4701') {
  162. $('.usedForOrganisation').show();
  163. $('.hideForOrganisation').hide();
  164. clearInputFields = ['.clearOnOrganisation'];
  165. } else {
  166. $('.usedForOrganisation').hide();
  167. $('.hideForOrganisation').show();
  168. clearInputFields = ['.clearOnIndividual'];
  169. }
  170. clearInputFields.forEach(function (item) {
  171. $(item).val('');
  172. });
  173. }
  174. function GetCustomerSearchType() {
  175. var searchBy = $('#<%=ddlSearchBy.ClientID%>').val()
  176. return searchBy;
  177. }
  178. function CallBackAutocomplete(id) {
  179. var d = [GetItem("<%=txtSearchData.ClientID %>")[0], GetItem("<%=txtSearchData.ClientID %>")[1].split('|')[0]];
  180. $('#<%=hdnCustomerId.ClientID%>').val(d[0]);
  181. LoadcustomerData();
  182. $('#<%=addEditPanel.ClientID%>').removeAttr('style');
  183. }
  184. function LoadcustomerData() {
  185. var eid = $('#<%=hdnCustomerId.ClientID%>').val();
  186. dataToSend = { MethodName: 'GetCustomerDetails', Id: eid };
  187. $.post('', dataToSend, function (response) {
  188. ParseCustomerData(response);
  189. PopulateImage();
  190. PopulateSignature();
  191. //DisableFields();
  192. ChangeOrganisationType();
  193. }).fail(function () {
  194. alert('Oops!!! something went wrong, please try again.');
  195. });
  196. }
  197. function PopulateImage() {
  198. var dataToSend = {
  199. MethodName: "GetImageUrl",
  200. customerId: $('#<%=hdnCustomerId.ClientID%>').val(),
  201. registerDate: $('#<%=hdnRegisterDate.ClientID%>').val(),
  202. membershipId: $('#<%=txtMembershipId.ClientID%>').val()
  203. };
  204. $.post('', dataToSend, function (response) {
  205. var json = JSON.parse(response);
  206. var url1 = json[1];
  207. var url2 = json[2];
  208. $("#font").attr("src", url1);
  209. $("#back").attr("src", url2);
  210. $("#font1").attr("src", url1);
  211. $("#back1").attr("src", url2);
  212. }).fail(function () {
  213. alert('Oops!!! something went wrong, please try again.');
  214. });
  215. }
  216. function PopulateSignature() {
  217. var dataToSend = {
  218. MethodName: "GetSignature",
  219. customerId: $('#<%=hdnCustomerId.ClientID%>').val(),
  220. registerDate: $('#<%=hdnRegisterDate.ClientID%>').val(),
  221. membershipId: $('#<%=txtMembershipId.ClientID%>').val()
  222. };
  223. $.post('', dataToSend, function (response) {
  224. debugger
  225. var url1 = JSON.parse(response);
  226. $("#signature").attr("src", url1);
  227. }).fail(function () {
  228. alert('Oops!!! something went wrong, please try again.');
  229. });
  230. }
  231. function ParseCustomerData(response) {
  232. var dr = jQuery.parseJSON(response);
  233. if (dr != null) {
  234. <%-- $('#<%=firstName.ClientID%>').attr('readonly', 'readonly');
  235. $('#<%=middleName.ClientID%>').attr('readonly', 'readonly');
  236. $('#<%=lastName.ClientID%>').attr('readonly', 'readonly');
  237. $('#<%=dob.ClientID%>').attr('readonly', 'readonly');
  238. $('#<%=dob.ClientID%>').datepicker('disable');--%>
  239. $('#<%=hdnCustomerId.ClientID%>').val(dr[0].customerId);
  240. $('#<%=hdnRegisterDate.ClientID%>').val(dr[0].createdDate);
  241. $('#<%=firstName.ClientID%>').val(dr[0].firstName);
  242. $('#<%=middleName.ClientID%>').val(dr[0].middleName);
  243. $('#<%=lastName.ClientID%>').val(dr[0].lastName1);
  244. $('#<%=txtCompanyName.ClientID%>').val(dr[0].firstName);
  245. $('#<%=genderList.ClientID%>').val(dr[0].gender);
  246. $('#<%=countryList.ClientID%>').val(dr[0].country);
  247. $('#<%=address1.ClientID%>').val(dr[0].address);
  248. $('#<%=zipCode.ClientID%>').val(dr[0].zipCode);
  249. $('#<%=city.ClientID%>').val(dr[0].city);
  250. $('#<%=email.ClientID%>').val(dr[0].email);
  251. $('#<%=hddOldEmailValue.ClientID%>').val(dr[0].email);
  252. $('#<%=emailConfirm.ClientID%>').val(dr[0].email);
  253. $('#<%=phoneNumber.ClientID%>').val(dr[0].telNo);
  254. $('#<%=mobile.ClientID%>').val(dr[0].mobile);
  255. $('#<%=nativeCountry.ClientID%>').val(dr[0].nativeCountry);
  256. $('#<%=nativeCountry.ClientID%>').val(dr[0].nativeCountryId);
  257. $('#<%=dob.ClientID%>').val(dr[0].dob);
  258. $('#<%=occupation.ClientID%>').val(dr[0].occupation);
  259. $('#<%=IssueDate.ClientID%>').val(dr[0].idIssueDate);
  260. $('#<%=ExpireDate.ClientID%>').val(dr[0].idExpiryDate);
  261. $('#<%=idType.ClientID%>').val(dr[0].idType);
  262. $('#<%=verificationTypeNo.ClientID%>').val(dr[0].idNumber);
  263. $('#<%=hddIdNumber.ClientID%>').val(dr[0].homePhone);
  264. $('#<%=txtMembershipId.ClientID%>').val(dr[0].membershipId);
  265. $('#<%=hdnMembershipNo.ClientID%>').val(dr[0].membershipId);
  266. $('#<%=txtMembershipId.ClientID%>').attr('readonly', true);
  267. $('#<%=txtRegistrationNo.ClientID%>').val(dr[0].registerationNo);
  268. $('#<%=txtDateOfIncorporation.ClientID%>').val(dr[0].dateofIncorporation);
  269. $('#<%=txtNameofAuthoPerson.ClientID%>').val(dr[0].nameOfAuthorizedPerson);
  270. <%--$('#<%=txtStreet.ClientID%>').val(dr[0].street);--%>
  271. $('#<%=txtAdditionalAddress.ClientID%>').val(dr[0].additionalAddress);
  272. <%-- $('#<%=txtsenderCityjapan.ClientID%>').val(dr[0].cityUnicode);
  273. $('#<%=txtstreetJapanese.ClientID%>').val(dr[0].streetUnicode);--%>
  274. $('#<%=txtNameofEmployeer.ClientID%>').val(dr[0].nameOfEmployeer);
  275. $('#<%=rbRemitanceAllowed.ClientID%> input[value=' + (dr[0].remittanceAllowed == true ? "Enabled" : "Disabled") + ']').attr('checked', 'checked');
  276. $('#<%=rbOnlineLogin.ClientID%> [value= ' + (dr[0].onlineUser == "Y" ? "Enabled" : "Disabled") + ']').attr('checked', 'checked');
  277. $('#<%=rbMobileLogin.ClientID%> [value= ' + (dr[0].mobileUser == "Y" ? "Enabled" : "Disabled") + ']').attr('checked', 'checked');
  278. $('#<%=txtRemarks.ClientID%>').val(dr[0].remarks);
  279. <%--$('#<%=ddlSalary.ClientID%>').val(dr[0].monthlyIncome);--%>
  280. $('#<%=ddlCustomerType.ClientID%>').val(dr[0].customerType);
  281. $('#<%=ddlEmployeeBusType.ClientID%>').val(dr[0].employeeBusinessType);
  282. $('#<%=ddlnatureOfCompany.ClientID%>').val(dr[0].natureOfCompany);
  283. $('#<%=ddlOrganizationType.ClientID%>').val(dr[0].organizationType);
  284. $('#<%=ddlPosition.ClientID%>').val(dr[0].position);
  285. <%-- $('#<%=ddlVisaStatus.ClientID%>').val(dr[0].visaStatus);
  286. $('#<%=ddSourceOfFound.ClientID%>').val(dr[0].sourceOfFund);
  287. $('#<%=ddlState.ClientID%>').val(dr[0].state);--%>
  288. $('#<%=ddlStateHidden.ClientID%>').val(dr[0].state);
  289. $('#<%=cityHidden.ClientID%>').val(dr[0].city);
  290. $('#<%=email.ClientID%>').Enabled = (dr[0].isTxnMade == "Y") ? false : true;
  291. $('#<%=emailConfirm.ClientID%>').Enabled = (dr[0].isTxnMade == "Y") ? false : true;
  292. $('#<%=hddTxnsMade.ClientID%>').val(dr[0].isTxnMade);
  293. $('#<%=ddlDocType.ClientID%>').val(dr[0].documentType);
  294. if (dr[0].isTxnMade == "Y") {
  295. $('#<%=msgDiv.ClientID%>').Visible = true;
  296. $('#<%=msgLabel.ClientID%>').val("Note: The customer has already made transactions in JME system, so the email can not be modified. For more info please contact HO.");
  297. }
  298. if (dr[0].idType.split('|')[0] == "8008") {
  299. $('#<%=expiryDiv.ClientID%>').addClass('hidden');
  300. }
  301. else {
  302. $('#<%=expiryDiv.ClientID%>').removeClass('hidden');
  303. }
  304. $('#<%=membershipDiv.ClientID%>').show();
  305. $('#<%=customerType.ClientID%>').show();
  306. //GetAddressByRowID(dr[0].district, dr[0].zipCode);
  307. debugger
  308. if (parseInt(dr[0].occupation) === 11383) {
  309. $('#divOccupation').show();
  310. $('#' + mId + 'occupationHidden').val(dr[0].occupation);
  311. $('#' + mId + 'occupationText').val(dr[0].occupationText);
  312. }
  313. }
  314. }
  315. function CheckFormValidation() {
  316. var reqField = "";
  317. var val = $("#<% =hdnCustomerId.ClientID%>").val();
  318. var customerType = $("#<% =ddlCustomerType.ClientID%>").val();
  319. var input = $("#<%=mobile.ClientID%>");
  320. var mobileNo = input.val();
  321. if (mobileNo != null && mobileNo != "") {
  322. var countryCode = $('.dial-code').text();
  323. var maxLength = input.attr('maxLength');
  324. if (mobileNo.indexOf(countryCode) < 0) {
  325. mobileNo = countryCode + mobileNo;
  326. }
  327. if (mobileNo.length > maxLength) {
  328. alert('Mobile No. Can allow input maxmum ' + maxLength + ' digit only');
  329. return $(this).val('');
  330. }
  331. $("#<%=mobile.ClientID%>").val(mobileNo);
  332. }
  333. $(".required").each(function () {
  334. if (customerType === "4700") {
  335. if (!$(this).hasClass("clearOnIndividual")) {
  336. reqField += $(this).attr('id') + ",";
  337. }
  338. }
  339. if (customerType === "4701") {
  340. if (!$(this).hasClass("clearOnOrganisation")) {
  341. reqField += $(this).attr('id') + ",";
  342. }
  343. }
  344. });
  345. if ($('#<%=expiryDiv.ClientID%>').hasClass("hidden")) {
  346. reqField = reqField.replace(",<%=ExpireDate.ClientID%>,", ",");
  347. }
  348. ChangeOrganisationType();
  349. debugger
  350. if ($("#" + mId + "occupation").val() === "11383") {
  351. reqField += "<%=occupationText.ClientID%>,";
  352. }
  353. if (ValidRequiredField(reqField) === false) {
  354. return false;
  355. }
  356. if (!$('#<%=expiryDiv.ClientID%>').hasClass("hidden")) {
  357. var issueDate = $('#<%=IssueDate.ClientID%>').val();
  358. var exipreDate = $('#<%=ExpireDate.ClientID%>').val();
  359. if (issueDate != '' && exipreDate != '') {
  360. if (issueDate > exipreDate) {
  361. alert("Issue Date cannot be greater than Valid date");
  362. return false;
  363. }
  364. }
  365. }
  366. <%-- var isdisplayDignature = $("#<%=isDisplaySignature.ClientID%>").val();
  367. if (isdisplayDignature.toLowerCase() === 'true') {
  368. return CheckSignatureCustomer();
  369. }--%>
  370. return true;
  371. }
  372. function loadImage(filePath, id) {
  373. $('#' + id).attr('src', path);
  374. }
  375. function readURL(input, id) {
  376. if (input.files && input.files[0]) {
  377. var reader = new FileReader();
  378. reader.onload = function (e) {
  379. $('#' + id).attr('src', e.target.result);
  380. }
  381. reader.readAsDataURL(input.files[0]);
  382. }
  383. }
  384. function showImage(param) {
  385. var imgSrc = $(param).attr("src");
  386. OpenInNewWindow(imgSrc);
  387. }
  388. function ManageDivs() {
  389. if ($('#<%=idType.ClientID%>').val() == '8008') {
  390. $("#<%=ExpireDate.ClientID%>").removeClass('required');
  391. $('#<%=expiryDiv.ClientID%>').addClass('hidden');
  392. }
  393. else {
  394. $('#<%=expiryDiv.ClientID%>').removeClass('hidden');
  395. $("#<%=ExpireDate.ClientID%>").addClass('required');
  396. }
  397. $("#<%=ExpireDate.ClientID%>").val('');
  398. IdTypeValidity();
  399. }
  400. function CheckCustomerId() {
  401. customerId = $("#<%=hdnCustomerId.ClientID%>").val();
  402. if (customerId !== null && customerId !== "") {
  403. return true;
  404. }
  405. return false;
  406. }
  407. function SetMessageBox(msg, id) {
  408. alert(msg);
  409. }
  410. function GetAddressByZipCode() {
  411. var zipCodeValue = $("#<%=zipCode.ClientID%>").val();
  412. $("#txtState").val('');
  413. <%--$("#<%=txtStreet.ClientID%>").val('');--%>
  414. $("#<%=city.ClientID%>").val('');
  415. <%--$("#<%=txtsenderCityjapan.ClientID%>").val('');
  416. $("#<%=txtstreetJapanese.ClientID%>").val('');--%>
  417. <%--var zipCodePattern = /^\d{7}?$/;
  418. test = zipCodePattern.test(zipCodeValue);
  419. if (!test) {
  420. $("#<%=zipCode.ClientID%>").val('');
  421. $("#<%=zipCode.ClientID%>").focus();
  422. $("#<%=zipCode.ClientID%>").attr("style", "display:block; background:#FFCCD2");
  423. return alert("Please Enter Valid Zip Code(XXXXXXX)");
  424. }--%>
  425. var dataToSend = { MethodName: 'GetAddressDetailsByZipCode', zipCode: zipCodeValue };
  426. $.post('/AgentNew/Administration/CustomerSetup/CustomerRegistration/Manage.aspx', dataToSend, function (erd) {
  427. if (erd !== null) {
  428. var dr = jQuery.parseJSON(erd);
  429. if (erd == false) {
  430. <%-- $("#<%=ddlState.ClientID%>").val('');
  431. $("#<%=txtStreet.ClientID%>").val('');--%>
  432. $("#<%=city.ClientID%>").val('');
  433. $("#<%=zipCode.ClientID%>").val(dr[0].ZIP_CODE);
  434. $("#<%=address1.ClientID%>").val(dr[0].STREET_NAME);
  435. <%--$("#<%=zipCode.ClientID%>").focus();
  436. $("#<%=zipCode.ClientID%>").attr("style", "display:block; background:#FFCCD2");
  437. return alert("Please Enter Valid Zip Code(XXXXXXX)");--%>
  438. }
  439. //$("#tempAddress").html(erd);
  440. if (dr[0].errorCode == '0') {
  441. <%--$("#<%=ddlState.ClientID%>").val(dr[0].STATE_ID);--%>
  442. $("#<%=ddlStateHidden.ClientID%>").val(dr[0].STATE_ID);
  443. $("#<%=cityHidden.ClientID%>").val(dr[0].CITY_NAME);
  444. $("#<%=city.ClientID%>").val(dr[0].CITY_NAME);
  445. $("#<%=zipCode.ClientID%>").val(dr[0].ZIP_CODE);
  446. $("#<%=address1.ClientID%>").val(dr[0].STREET_NAME);
  447. //PopulateAreaDDL(dr);
  448. }
  449. else {
  450. <%--$("#<%=ddlState.ClientID%>").val('');
  451. $("#<%=txtStreet.ClientID%>").val('');--%>
  452. $("#<%=city.ClientID%>").val('');
  453. $("#<%=zipCode.ClientID%>").focus();
  454. $("#<%=zipCode.ClientID%>").attr("style", "display:block; background:#FFCCD2");
  455. return alert("Please Enter Valid Zip Code(XXXXXXX)");
  456. }
  457. }
  458. }).fail(function () {
  459. alert('Oops!!! something went wrong, please try again.');
  460. });
  461. }
  462. function ShowIdTypeInfo() {
  463. var idInfo = $('#<%=idType.ClientID%>').val();
  464. if (idInfo == '' || idInfo == null) {
  465. alert('Please select id type first!')
  466. }
  467. else {
  468. alert(idInfo.split("|")[1]);
  469. }
  470. }
  471. function GetAddressByRowID(rowId, zipCode) {
  472. var dataToSend = { MethodName: 'GetAddressDetailsByZipCode', zipCode: zipCode, RowID: rowId };
  473. $.post('', dataToSend, function (erd) {
  474. if (erd !== null) {
  475. var dr = jQuery.parseJSON(erd);
  476. if (erd == false) {
  477. <%--$("#<%=ddlState.ClientID%>").val('');
  478. $("#<%=txtStreet.ClientID%>").val('');--%>
  479. $("#<%=city.ClientID%>").val('');
  480. $("#<%=address1.ClientID%>").val(dr[0].STREET_NAME);
  481. <%--$("#<%=zipCode.ClientID%>").focus();
  482. $("#<%=zipCode.ClientID%>").attr("style", "display:block; background:#FFCCD2");
  483. return alert("Please Enter Valid Zip Code(XXXXXXX)");--%>
  484. }
  485. //$("#tempAddress").html(erd);
  486. if (dr[0].errorCode == '0') {
  487. <%--$("#<%=ddlState.ClientID%>").val(dr[0].STATE_ID);--%>
  488. $("#<%=ddlStateHidden.ClientID%>").val(dr[0].STATE_ID);
  489. $("#<%=cityHidden.ClientID%>").val(dr[0].CITY_NAME);
  490. <%--$("#<%=txtStreet.ClientID%>").val(dr[0].STREET_NAME);--%>
  491. $("#<%=city.ClientID%>").val(dr[0].CITY_NAME);
  492. $("#<%=address1.ClientID%>").val(dr[0].STREET_NAME);
  493. /*PopulateAreaDDL(dr, rowId);*/
  494. }
  495. else {
  496. <%--$("#<%=ddlState.ClientID%>").val('');
  497. $("#<%=txtStreet.ClientID%>").val('');--%>
  498. $("#<%=city.ClientID%>").val('');
  499. $("#<%=zipCode.ClientID%>").focus();
  500. $("#<%=zipCode.ClientID%>").attr("style", "display:block; background:#FFCCD2");
  501. return alert("Please Enter Valid Zip Code(XXXXXXX)");
  502. }
  503. }
  504. }).fail(function () {
  505. alert('Oops!!! something went wrong, please try again.');
  506. });
  507. }
  508. function PopulateAreaDDL(data, selectedValue) {
  509. var ddl = document.getElementById("ContentPlaceHolder1_txtStreet");
  510. $(ddl).empty();
  511. var option, selValue = '';
  512. if (selectedValue) {
  513. selValue = selectedValue;
  514. }
  515. if (data.length > 1) {
  516. option = document.createElement("option");
  517. option.text = 'Select Area';
  518. option.value = '';
  519. ddl.options.add(option);
  520. }
  521. for (var i = 0; i < data.length; i++) {
  522. option = document.createElement("option");
  523. option.text = data[i].STREET_NAME;
  524. option.value = data[i].ROW_ID;
  525. if (selValue.toString() === option.value) {
  526. option.selected = true;
  527. }
  528. try {
  529. ddl.options.add(option);
  530. }
  531. catch (e) {
  532. alert(e);
  533. }
  534. }
  535. }
  536. </script>
  537. </asp:Content>
  538. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  539. <asp:HiddenField ID="cityHidden" runat="server" />
  540. <asp:HiddenField ID="ddlStateHidden" runat="server" />
  541. <div class="page-wrapper">
  542. <div class="row">
  543. <div class="col-sm-12">
  544. <div class="page-title">
  545. <h1></h1>
  546. <ol class="breadcrumb">
  547. <li><a href="/Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li>
  548. <li><a href="#" onclick="return LoadModule('account')">Online Agent</a></li>
  549. <li><a href="#" onclick="return LoadModule('account')">Customer Registration</a></li>
  550. <li class="active"><a href="Manage.aspx?customerId=<%=hdnCustomerId.Value %>">Manage</a></li>
  551. </ol>
  552. </div>
  553. </div>
  554. </div>
  555. <div class="hidden">
  556. <%--<asp:Button ID="populateDoc" runat="server" Text="click" OnClick="populateDoc_Click" />--%>
  557. </div>
  558. <div class="report-tab" runat="server" id="regUp">
  559. <!-- Nav tabs -->
  560. <ul class="nav nav-tabs" role="tablist">
  561. <li role="presentation" class="active"><a href="Manage.aspx">Customer Operation</a></li>
  562. </ul>
  563. <div class="tab-content">
  564. <div role="tabpanel" class="tab-pane" id="List">
  565. </div>
  566. <div role="tabpanel" id="Manage">
  567. <div class="">
  568. <div class="register-form">
  569. <div class="panel panel-default clearfix m-b-20">
  570. <div class="panel-heading">Customer Information</div>
  571. <div class="panel-body">
  572. <div class="col-sm-12" id="msgDiv" runat="server" visible="false" style="background-color: red;">
  573. <asp:Label ID="msgLabel" runat="server" ForeColor="White"></asp:Label>
  574. </div>
  575. <div id="displayOnlyOnEdit" runat="server">
  576. <div class="col-sm-3">
  577. <label class="control-label">Search By</label>
  578. <asp:DropDownList ID="ddlSearchBy" runat="server" CssClass="form-control" Style="margin-bottom: 5px;">
  579. </asp:DropDownList>
  580. </div>
  581. <div class="col-sm-3">
  582. <div class="form-group">
  583. <label>Choose Customer :<span class="errormsg">*</span></label>
  584. <uc1:SwiftTextBox ID="txtSearchData" runat="server" Category="remit-searchCustomer" CssClass="form-control required" Param1="@GetCustomerSearchType()" Title="Blank for All" />
  585. </div>
  586. </div>
  587. </div>
  588. <div class="col-sm-3" id="customerType" runat="server">
  589. <div class="form-group">
  590. <label>Customer Type:<span class="errormsg">*</span></label>
  591. <asp:DropDownList runat="server" ID="ddlCustomerType" onchange="ChangeOrganisationType(this)" name="customerList" CssClass="form-control">
  592. </asp:DropDownList>
  593. </div>
  594. </div>
  595. <div class="col-sm-3" id="Div2" runat="server" style="display: none">
  596. <div class="form-group">
  597. <label>&nbsp</label>
  598. <a class="form-control btn btn-primary" runat="server" id="testLink" href="PrintDetails.aspx?membershipId=CHI004728">test Link </a>
  599. </div>
  600. </div>
  601. <div class="col-sm-3" id="linkDiv" runat="server" style="display: none">
  602. <div class="form-group">
  603. <label>&nbsp</label>
  604. <a class="form-control btn btn-primary" runat="server" id="printLink">&nbsp</a>
  605. </div>
  606. </div>
  607. <div class="col-sm-3 " id="membershipDiv" runat="server" hidden>
  608. <div class="form-group">
  609. <label>Membership No:</label>
  610. <asp:TextBox ID="txtMembershipId" runat="server" CssClass="form-control" />
  611. </div>
  612. </div>
  613. <div class="col-md-4 col-sm-4" hidden>
  614. <div class="form-group">
  615. <label>Confirm E-Mail ID:<span class="errormsg">*</span></label>
  616. <asp:TextBox ID="emailConfirm" runat="server" placeholder="Confirm Email" data-match="#email" CssClass="form-control clearOnIndividual" />
  617. <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Display="Dynamic"
  618. ErrorMessage="Invalid Email Id!" ForeColor="Red" SetFocusOnError="True" ValidationGroup="send"
  619. ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" CssClass="inv"
  620. ControlToValidate="emailConfirm"></asp:RegularExpressionValidator>
  621. </div>
  622. </div>
  623. </div>
  624. </div>
  625. <div id="addEditPanel" runat="server">
  626. <div class="panel panel-default clearfix m-b-20">
  627. <div class="panel-heading">Personal Information</div>
  628. <div class="panel-body">
  629. <div class="usedForOrganisation" hidden>
  630. <div class="col-sm-4">
  631. <div class="form-group">
  632. <label>Name of Company:<span class="errormsg">*</span></label>
  633. <asp:TextBox ID="txtCompanyName" runat="server" placeholder="Name of Company" CssClass="form-control clearOnIndividual required" />
  634. </div>
  635. </div>
  636. <div class="col-sm-4">
  637. <div class="form-group">
  638. <label>Company Reg. No:<span class="errormsg">*</span></label>
  639. <asp:TextBox ID="txtRegistrationNo" runat="server" placeholder="Company Reg. No" CssClass="form-control clearOnIndividual required" />
  640. </div>
  641. </div>
  642. <div class="col-sm-4">
  643. <div class="form-group">
  644. <label>Organization Type:</label>
  645. <asp:DropDownList runat="server" ID="ddlOrganizationType" name="ddlOrganizationType" CssClass="form-control clearOnIndividual">
  646. </asp:DropDownList>
  647. </div>
  648. </div>
  649. <div class="col-md-4 col-sm-4">
  650. <div id="Div1" runat="server" nowrap="nowrap" class="showHideIDExpDate">
  651. </div>
  652. <div class="form-group">
  653. <label>Date Of Incorporation:</label>
  654. <div class="form-inline">
  655. <div class="input-group input-append date dpYears">
  656. <asp:TextBox runat="server" ID="txtDateOfIncorporation" AutoComplete="off" placeholder="YYYY/MM/DD" onchange="return DateValidation('txtDateOfIncorporation')" MaxLength="10" CssClass="form-control date-field clearOnIndividual"></asp:TextBox>
  657. <div class="input-group-addon"><i class="fa fa-calendar"></i></div>
  658. </div>
  659. </div>
  660. </div>
  661. </div>
  662. <div class="col-md-4 col-sm-4">
  663. <div class="form-group">
  664. <label>Nature Of Company:<span class="errormsg">*</span></label>
  665. <asp:DropDownList runat="server" ID="ddlnatureOfCompany" name="ddlnatureOfCompany" CssClass="form-control clearOnIndividual required">
  666. </asp:DropDownList>
  667. </div>
  668. </div>
  669. <div class="col-md-4 col-sm-4">
  670. <div class="form-group">
  671. <label>Name Of Authorized Person:<span class="errormsg">*</span></label>
  672. <asp:TextBox ID="txtNameofAuthoPerson" runat="server" CssClass="form-control clearOnIndividual required"></asp:TextBox>
  673. </div>
  674. </div>
  675. <div class="col-md-4 col-sm-4">
  676. <div class="form-group">
  677. <label>Position:<span class="errormsg">*</span></label>
  678. <asp:DropDownList runat="server" ID="ddlPosition" name="ddlnatureOfCompany" CssClass="form-control clearOnIndividual required">
  679. </asp:DropDownList>
  680. </div>
  681. </div>
  682. </div>
  683. <div class="hideForOrganisation">
  684. <div class="col-md-4 col-sm-4">
  685. <div class="form-group">
  686. <label>First Name:<span class="errormsg">*</span></label>
  687. <asp:TextBox ID="firstName" autocomplete="stopdoingthat" runat="server" placeholder="First Name" CssClass="form-control clearOnOrganisation required" />
  688. </div>
  689. </div>
  690. <div class="col-md-4 col-sm-4">
  691. <div class="form-group">
  692. <label>Middle Name:</label>
  693. <asp:TextBox ID="middleName" autocomplete="stopdoingthat" runat="server" placeholder="Middle Name" CssClass="form-control clearOnOrganisation" />
  694. </div>
  695. </div>
  696. <div class="col-md-4 col-sm-4">
  697. <div class="form-group">
  698. <label>Last Name:<span class="errormsg">*</span></label>
  699. <asp:TextBox ID="lastName" autocomplete="stopdoingthat" runat="server" placeholder="Last Name" CssClass="form-control clearOnOrganisation required" />
  700. </div>
  701. </div>
  702. </div>
  703. <div class="col-md-4 col-sm-4">
  704. <div class="form-group">
  705. <label>Country:<span class="errormsg">*</span></label>
  706. <asp:DropDownList runat="server" ID="countryList" name="countryList" CssClass="form-control required">
  707. </asp:DropDownList>
  708. </div>
  709. </div>
  710. <div class="col-md-4 col-sm-4">
  711. <div class="form-group">
  712. <label>Post Code:<span class="errormsg">*</span> </label>
  713. <asp:TextBox ID="zipCode" runat="server" placeholder="XXXXXXX" MaxLength="7" CssClass="form-control required" onchange="return GetAddressByZipCode();" />
  714. </div>
  715. </div>
  716. <%--<div class="col-md-4 col-sm-4">
  717. <div class="form-group">
  718. <label>State:<span class="errormsg">*</span></label>
  719. <asp:DropDownList runat="server" ID="ddlState" disabled="disabled" CssClass="form-control required">
  720. </asp:DropDownList>
  721. </div>
  722. </div>--%>
  723. <%-- <div class="col-md-4 col-sm-4" style="display: none;">
  724. <div class="form-group">
  725. <label>Street/Street[Japanese]:</label>
  726. <asp:TextBox ID="txtstreetJapanese" autocomplete="stopdoingthat" runat="server" placeholder="Street[Japanese]" CssClass="form-control" />
  727. </div>
  728. </div>--%>
  729. <div class="col-md-4 col-sm-4">
  730. <div class="form-group">
  731. <label>City:<span class="errormsg">*</span></label>
  732. <asp:TextBox ID="city" runat="server" placeholder="City" CssClass="form-control required" />
  733. </div>
  734. </div>
  735. <%--<div class="col-md-4 col-sm-4">
  736. <div class="form-group">
  737. <label>Area:<span class="errormsg">*</span> </label>
  738. <asp:DropDownList ID="txtStreet" runat="server" placeholder="Street" CssClass="form-control required" />
  739. </div>
  740. </div>--%>
  741. <%--<div class="col-md-4 col-sm-4" style="display: none;">
  742. <div class="form-group">
  743. <label>Sender City-Japan:</label>
  744. <asp:TextBox ID="txtsenderCityjapan" runat="server" placeholder="Sender City Japan" CssClass="form-control" />
  745. </div>
  746. </div>--%>
  747. <div class="col-md-4 col-sm-4">
  748. <div class="form-group">
  749. <label>Address 1:<span class="errormsg">*</span> </label>
  750. <asp:TextBox ID="address1" runat="server" placeholder="Address 1" CssClass="form-control required" />
  751. </div>
  752. </div>
  753. <div class="col-md-4 col-sm-4">
  754. <div class="form-group">
  755. <label>Address 2:<span class="errormsg">*</span> </label>
  756. <asp:TextBox ID="txtAdditionalAddress" runat="server" placeholder="Address 2" CssClass="form-control required" />
  757. </div>
  758. </div>
  759. <div class="col-md-4 col-sm-4 hideForOrganisation">
  760. <div class="form-group">
  761. <label>Gender:<span class="errormsg">*</span> </label>
  762. <asp:DropDownList runat="server" ID="genderList" name="genderList" CssClass="form-control clearOnOrganisation required">
  763. </asp:DropDownList>
  764. </div>
  765. </div>
  766. <div class="col-md-4 col-sm-4">
  767. <div class="form-group">
  768. <label>Native Country:<span class="errormsg">*</span></label>
  769. <asp:DropDownList runat="server" ID="nativeCountry" CssClass="form-control required"></asp:DropDownList>
  770. </div>
  771. </div>
  772. <div class="col-md-4 col-sm-4 hideForOrganisation">
  773. <div id="tdSenExpDateTxt" runat="server" nowrap="nowrap" class="showHideIDExpDate">
  774. </div>
  775. <div class="form-group">
  776. <label>Date of Birth:<span class="errormsg">*</span></label>
  777. <div class="form-inline">
  778. <div class="input-group input-append date dpYears">
  779. <asp:TextBox runat="server" ID="dob" placeholder="YYYY/MM/DD" onchange="return DateValidation('dob','dobnew')" MaxLength="10" AutoComplete="off" CssClass="form-control clearOnOrganisation required"></asp:TextBox>
  780. <div class="input-group-addon"><i class="fa fa-calendar"></i></div>
  781. </div>
  782. </div>
  783. </div>
  784. </div>
  785. <div class="col-md-4 col-sm-4">
  786. <div class="form-group">
  787. <label>E-Mail ID:</label>
  788. <asp:TextBox ID="email" autocomplete="stopdoingthat" runat="server" placeholder="Email" CssClass="form-control" />
  789. <asp:RegularExpressionValidator ID="rev1" runat="server" Display="Dynamic"
  790. ErrorMessage="Invalid Email Id!" ForeColor="Red" SetFocusOnError="True" ValidationGroup="send"
  791. ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" CssClass="inv"
  792. ControlToValidate="email"></asp:RegularExpressionValidator>
  793. </div>
  794. </div>
  795. <%-- <div class="col-md-4 col-sm-4" hidden>
  796. <div class="form-group">
  797. <label>Address:</label>
  798. <asp:TextBox ID="addressLine1" runat="server" placeholder="Address" CssClass="form-control" />
  799. </div>
  800. </div>--%>
  801. <div class="col-md-4 col-sm-4">
  802. <div class="form-group">
  803. <label>Telephone No.:</label>
  804. <asp:TextBox ID="phoneNumber" autocomplete="stopdoingthat" runat="server" placeholder="Phone Number" MaxLength="15" CssClass="form-control" onchange="CheckForPhoneNumber(this, 'Phone No.');" />
  805. </div>
  806. </div>
  807. <div class="col-md-4 col-sm-4">
  808. <div class="form-group" style="overflow: initial;">
  809. <label>Mobile No.:</label><br />
  810. <asp:TextBox runat="server" autocomplete="stopdoingthat" MaxLength="16" ID="mobile" placeholder="Mobile No" CssClass="form-control" />
  811. </div>
  812. </div>
  813. <%-- <div class="col-md-4 col-sm-4 hideForOrganisation">
  814. <div class="form-group">
  815. <label>Visa Status<span class="errormsg">*</span></label>
  816. <asp:DropDownList runat="server" ID="ddlVisaStatus" name="ddlVisaStatus" CssClass="form-control clearOnOrganisation required">
  817. </asp:DropDownList>
  818. </div>
  819. </div>--%>
  820. <div class="col-md-4 col-sm-4 hideForOrganisation">
  821. <div class="form-group">
  822. <label>Employment Business Type:</label>
  823. <asp:DropDownList runat="server" ID="ddlEmployeeBusType" name="genderList" CssClass="form-control clearOnOrganisation">
  824. </asp:DropDownList>
  825. </div>
  826. </div>
  827. <div class="col-md-4 col-sm-4 hideForOrganisation">
  828. <div class="form-group">
  829. <label>Name of Employer:</label>
  830. <asp:TextBox runat="server" autocomplete="stopdoingthat" ID="txtNameofEmployeer" placeholder="Name Of Employer" CssClass="form-control clearOnOrganisation" />
  831. </div>
  832. </div>
  833. <div class="col-md-4 col-sm-4 hideForOrganisation">
  834. <div class="form-group">
  835. <label>Occupation:<span class="errormsg">*</span></label>
  836. <asp:DropDownList runat="server" ID="occupation" CssClass="form-control clearOnOrganisation required"></asp:DropDownList>
  837. </div>
  838. </div>
  839. <div class="col-md-4 col-sm-4" id="divOccupation" hidden style="display: none;">
  840. <div class="form-group">
  841. <label>Occupation (If Other only):<span class="errormsg">*</span></label>
  842. <asp:TextBox runat="server" ID="occupationText" CssClass="form-control clearOnOrganisation"></asp:TextBox>
  843. </div>
  844. </div>
  845. <%--<div class="col-md-4 col-sm-4">
  846. <div class="form-group">
  847. <label>Source of Fund:<span class="errormsg">*</span></label>
  848. <asp:DropDownList runat="server" ID="ddSourceOfFound" CssClass="form-control required"></asp:DropDownList>
  849. </div>
  850. </div>--%>
  851. <%--<div class="col-md-4 col-sm-4 hideForOrganisation">
  852. <div class="form-group">
  853. <label>Monthly Income:</label>
  854. <asp:DropDownList ID="ddlSalary" runat="server" CssClass="form-control clearOnOrganisation">
  855. <asp:ListItem>JPY 0 - JPY170,000</asp:ListItem>
  856. <asp:ListItem>JPY170,000 - JPY340,000</asp:ListItem>
  857. <asp:ListItem>JPY340,000 - JPY680,000</asp:ListItem>
  858. <asp:ListItem>JPY680,000 - JPY1,300,000</asp:ListItem>
  859. <asp:ListItem>Above JPY1,300,000</asp:ListItem>
  860. </asp:DropDownList>
  861. </div>
  862. </div>--%>
  863. </div>
  864. </div>
  865. <div class="panel panel-default clearfix m-b-20">
  866. <div class="panel-heading">Security Information</div>
  867. <div class="panel-body">
  868. <div style="margin-left: 15px">
  869. <div class="row">
  870. <div class="col-md-4 col-sm-4">
  871. <div class="form-group">
  872. <label>Verification Id Type:<span class="errormsg">*</span></label>
  873. <asp:DropDownList runat="server" ID="idType" CssClass="form-control required" onchange="ManageDivs();"></asp:DropDownList>
  874. </div>
  875. </div>
  876. <div class="col-md-4 col-sm-4">
  877. <div class="form-group">
  878. <label id="verificationType">Verification Type No.:<span class="errormsg">*</span></label>
  879. <div class="input-group input-append date dpYears">
  880. <asp:TextBox ID="verificationTypeNo" runat="server" placeholder="Verification Type Number" MaxLength="14" CssClass="form-control required" />
  881. <div class="input-group-addon" onclick="ShowIdTypeInfo();"><i class="fa fa-info"></i></div>
  882. </div>
  883. </div>
  884. </div>
  885. <div class="col-md-4 col-sm-4">
  886. <div class="form-group">
  887. <label>Issue Date:<span class="errormsg">*</span></label>
  888. <div class="form-inline">
  889. <div class="input-group input-append date">
  890. <asp:TextBox runat="server" ID="IssueDate" onchange="return DateValidation('IssueDate','i')" MaxLength="10" AutoComplete="off" placeholder="YYYY/MM/DD" CssClass="form-control date-field required"></asp:TextBox>
  891. <div class="input-group-addon "><i class="fa fa-calendar"></i></div>
  892. </div>
  893. </div>
  894. </div>
  895. </div>
  896. </div>
  897. <div class="row">
  898. <div class="col-md-4 col-sm-4" id="expiryDiv" runat="server">
  899. <div class="form-group">
  900. <label>Valid Date:<span class="errormsg" id="expireRequired">*</span></label>
  901. <div class="form-inline">
  902. <div class="input-group input-append date">
  903. <asp:TextBox runat="server" ID="ExpireDate" onchange="return DateValidation('ExpireDate','f')" MaxLength="10" AutoComplete="off" placeholder="YYYY/MM/DD" CssClass="form-control date-field required"></asp:TextBox>
  904. <div class="input-group-addon"><i class="fa fa-calendar"></i></div>
  905. </div>
  906. </div>
  907. </div>
  908. </div>
  909. <div class="col-md-4 col-sm-4 hideForOrganisation">
  910. <div class="form-group">
  911. <label>Remitance Allowed:<span class="errormsg">*</span></label>
  912. <asp:RadioButtonList ID="rbRemitanceAllowed" runat="server" CssClass="clearOnOrganisation"
  913. RepeatDirection="Horizontal" RepeatLayout="Table">
  914. <asp:ListItem Text="Enabled" Value="Enabled" Selected="True" />
  915. <asp:ListItem Text="Disabled" Value="Disabled" />
  916. </asp:RadioButtonList>
  917. </div>
  918. </div>
  919. <div class="col-md-4 col-sm-4 hideForOrganisation">
  920. <div class="form-group">
  921. <label>Online Login Allowed:<span class="errormsg">*</span></label>
  922. <asp:RadioButtonList ID="rbOnlineLogin" runat="server" CssClass="clearOnOrganisation"
  923. RepeatDirection="Horizontal">
  924. <asp:ListItem Text="Enabled" Value="Enabled" Selected="True" />
  925. <asp:ListItem Text="Disabled" Value="Disabled" />
  926. </asp:RadioButtonList>
  927. </div>
  928. </div>
  929. <div class="col-md-4 col-sm-4 hideForOrganisation">
  930. <div class="form-group">
  931. <label>Mobile Login Allowed:<span class="errormsg">*</span></label>
  932. <asp:RadioButtonList ID="rbMobileLogin" runat="server" CssClass="clearOnOrganisation"
  933. RepeatDirection="Horizontal">
  934. <asp:ListItem Text="Enabled" Value="Enabled" Selected="True" />
  935. <asp:ListItem Text="Disabled" Value="Disabled" />
  936. </asp:RadioButtonList>
  937. </div>
  938. </div>
  939. </div>
  940. <div class="row">
  941. <div class="col-md-6">
  942. <div class="form-group">
  943. <label>Additional Address Verification Document Collected (Mandatory for NON-FACE TO FACE customers):</label>
  944. <asp:DropDownList ID="ddlDocType" runat="server" CssClass="form-control"></asp:DropDownList>
  945. </div>
  946. </div>
  947. </div>
  948. <div class="row">
  949. <div class="col-sm-12 hideForOrganisation">
  950. <div class="form-group">
  951. <label>Remarks:</label>
  952. <asp:TextBox autocomplete="stopdoingthat" runat="server" ID="txtRemarks" TextMode="MultiLine" placeholder="Remarks" CssClass="form-control clearOnOrganisation" />
  953. </div>
  954. </div>
  955. <div class="col-md-4 col-sm-4" runat="server" id="displayCounterVisit" style="display: none">
  956. <div class="form-group">
  957. <label class="checkbox-ui">
  958. <input type="checkbox" runat="server" class="custom-control-input" id="customerCounterVisit" />
  959. <small class="custom-control-label">Counter Visit</small>
  960. </label>
  961. </div>
  962. </div>
  963. </div>
  964. <div class="row" id="signatureDiv" runat="server">
  965. <div class="col-md-6">
  966. <label class="control-label">Customer Signature:</label>
  967. <div id="signature-pad" class="signature-pad">
  968. <div class="signature-pad--body">
  969. <canvas></canvas>
  970. </div>
  971. <div class="signature-pad--footer">
  972. <div class="description">Sign above</div>
  973. <div class="signature-pad--actions">
  974. <div class="form-group">
  975. <button type="button" class="btn btn-primary clear" data-action="clear">Clear</button>
  976. &nbsp;&nbsp;&nbsp;
  977. <button type="button" class="btn btn-primary" data-action="undo">Undo</button>
  978. </div>
  979. </div>
  980. </div>
  981. </div>
  982. </div>
  983. <div class="col-md-6" style="display: none">
  984. <label class="control-label">Customer Password:</label>
  985. <div>
  986. <asp:TextBox autocomplete="stopdoingthat" TextMode="Password" ID="customerPassword" runat="server" CssClass="form-control" MaxLength="20"></asp:TextBox>
  987. </div>
  988. </div>
  989. </div>
  990. <div class="panel panel-default clearfix m-b-20">
  991. <div class="panel-heading">Document Information</div>
  992. <div class="panel-body">
  993. <div class="col-md-6">
  994. <div class="form-group">
  995. <label id="lblreg_front_id">
  996. <asp:Localize runat="server" meta:resourcekey="Register_040" Text="ID Front"></asp:Localize></label>
  997. <%--<button id="editFrontId" ="button" class="btn btn-primary" data-action="undo">Edit ID Front</button>--%>
  998. <input type="button" id="editFrontId" class="btn btn-info" value="Edit ID Front" />
  999. <div>
  1000. <label>
  1001. <asp:Localize runat="server" meta:resourcekey="Register_041"></asp:Localize></label>
  1002. <div class="samp-control">
  1003. <img onclick="ShowImageDetail(id)" id="font" src="../../../Images/na.gif">
  1004. </div>
  1005. </div>
  1006. </div>
  1007. <div id="uploadFrontIdDiv">
  1008. <div class="file-upload" id="frontNew">
  1009. <asp:FileUpload ID="reg_front_id" type="file" runat="server" class="uploadbutton" accept="image/*" meta:resourcekey="reg_front_idResource1" />
  1010. <%--<input type="file" name="reg-front-id" id="reg-front-id" required="required" class="uploadbutton" accept="image/*" />--%>
  1011. <span>
  1012. <asp:Localize runat="server" meta:resourcekey="Register_042" Text="Drag and drop your file here or "></asp:Localize><span class="primary-c"><asp:Localize runat="server" meta:resourcekey="Register_043" Text="Browse"></asp:Localize></span>
  1013. <asp:Localize runat="server" meta:resourcekey="Register_044" Text=" for a document to upload"></asp:Localize>
  1014. </span>
  1015. </div>
  1016. </div>
  1017. </div>
  1018. <div class="col-md-6" id="divreg_back_id">
  1019. <div class="form-group">
  1020. <label>
  1021. <asp:Localize runat="server" meta:resourcekey="Register_045" Text="ID Back"></asp:Localize></label>
  1022. <input type="button" id="editBackId" class="btn btn-info" value="Edit Id Back" />
  1023. <div>
  1024. <label>
  1025. <asp:Localize runat="server" meta:resourcekey="Register_041"></asp:Localize></label>
  1026. <div class="samp-control">
  1027. <img onclick="ShowImageDetail(id)" id="back" src="../../../Images/na.gif">
  1028. </div>
  1029. </div>
  1030. </div>
  1031. <div class="form-group" id="uploadBackIdDiv">
  1032. <div class="file-upload" id="backNew">
  1033. <asp:FileUpload ID="reg_back_id" type="file" runat="server" class="uploadbutton" accept="image/*" meta:resourcekey="reg_back_idResource1" />
  1034. <%--<input type="file" name="reg-back-id" id="reg-back-id" required="required" class="uploadbutton" accept="image/*" />--%>
  1035. <span>
  1036. <asp:Localize runat="server" meta:resourcekey="Register_042" Text="Drag and drop your file here or "></asp:Localize><span class="primary-c"><asp:Localize runat="server" meta:resourcekey="Register_043" Text="Browse"></asp:Localize></span><asp:Localize runat="server" meta:resourcekey="Register_044" Text=" for a document to upload"></asp:Localize></span>
  1037. </div>
  1038. </div>
  1039. </div>
  1040. <div class="col-md-6">
  1041. <div class="panel-body row" id="customerSignatureDiv" runat="server">
  1042. <div class="col-md-6">
  1043. <div class="form-group">
  1044. <div class="col-md-12">
  1045. <label>Customer Signature</label>
  1046. <img onclick="ShowImageDetail(id)" id="signature" src="../../../Images/na.gif" height="150" width="200">
  1047. </div>
  1048. </div>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. </div>
  1053. <div class="row" runat="server">
  1054. <div class="form-group">
  1055. <asp:Button ID="SaveEditedData" runat="server" CssClass="btn btn-primary m-t-25" Text="Save And Approve" OnClientClick="return CheckFormValidation()" OnClick="register_Click" />
  1056. </div>
  1057. </div>
  1058. </div>
  1059. </div>
  1060. </div>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. </div>
  1065. </div>
  1066. <!--Terms Modal -->
  1067. <div class="modal fade" id="termsAndCondition" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
  1068. <div class="modal-dialog modal-lg" role="document">
  1069. <div class="modal-content">
  1070. <div class="modal-header">
  1071. <h3 class="modal-title" id="exampleModalLongTitle">JME 小外国送金サービス 利用規約
  1072. <asp:Localize runat="server" meta:resourcekey="Terms_006" Text="(User Agreement)"></asp:Localize></h3>
  1073. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  1074. <span aria-hidden="true">&times;</span>
  1075. </button>
  1076. </div>
  1077. <div class="modal-body">
  1078. <div class="tc-pp-bg">
  1079. <ol>
  1080. <li>
  1081. <!------------1-------------->
  1082. <b>Customer Registration</b><br>
  1083. Firstly, the customer shall make an agreement with JME either
  1084. by in person visit, post, e-mail or fax. The applicant is required to submit the
  1085. Application for Remittance as prescribed by JME and place the applicant's signature or
  1086. affixing the applicant's name and seal.<br>
  1087. <br>
  1088. </li>
  1089. <li>
  1090. <!------------2-------------->
  1091. <b>Identity verification documents</b><br>
  1092. <ol type="i">
  1093. <li>For Japanese: Passport, Driver's License, Insurance Card, and Residence Certificate</li>
  1094. <li>For Foreigner: Passport with visa information, Valid Alien Registration Card with Photo</li>
  1095. <li>Provide My Numbers<br>
  1096. <br>
  1097. </li>
  1098. </ol>
  1099. </li>
  1100. <li>
  1101. <!------------3-------------->
  1102. <b>Application for Remittance </b>
  1103. <br>
  1104. State the purpose for remittance and any other required
  1105. information in the Application for Remittance.<br>
  1106. <br>
  1107. How to remit money<br>
  1108. Beneficially is able to receive money either following ways.
  1109. <ol type="i">
  1110. <li>Bank Transfer</li>
  1111. <li>Cash Pick-up</li>
  1112. </ol>
  1113. Foreign remittance limit amount: JPY 1,000,000 (One Million per one transaction)
  1114. <br>
  1115. <br>
  1116. </li>
  1117. <li>
  1118. <!------------4-------------->
  1119. <b>Bank Transfer</b><br>
  1120. Once JME confirms the money received, the fund shall be transferred
  1121. to the desired bank account. After completing the transactions, the beneficially is
  1122. able to receive money on the same day. However it depends on business hours in both countries.
  1123. <br>
  1124. <br>
  1125. </li>
  1126. <li>
  1127. <!------------5-------------->
  1128. <b>Cash Pick-up</b><br>
  1129. Once JME confirms the money received, JME inform the sender of the
  1130. reference number for each transaction by telephone after completing the transactions,
  1131. beneficially is able to receive money at the desired office. However it depends on
  1132. business hours in both countries. When the beneficially cash pick-up, they shall show
  1133. the reference number over the office counter.
  1134. <br>
  1135. <br>
  1136. </li>
  1137. <li>
  1138. <!------------6-------------->
  1139. <b>Exchange Rate</b><br>JME publish the exchange rate between receiving country currency and
  1140. Japanese Yen every business day in JME's office counter and home page. When receiving
  1141. the request for remittance, JME shall apply JME’s applicable foreign exchange rate at
  1142. the time when the actual calculation is made by JME. Exchange rate is updated at 10:00,
  1143. 11:00 14:00, and 16:00 every business day. JME give out a receipt to the customer (sender).
  1144. </br>
  1145. <br>
  1146. </li>
  1147. <li>
  1148. <!------------7-------------->
  1149. <b>Remittance charge</b><br>
  1150. please refer to our official web page link<br>
  1151. <a href="http://www.japanremit.com">http://www.japanremit.com</a>
  1152. <br>
  1153. <br>
  1154. </li>
  1155. <li>
  1156. <!------------8-------------->
  1157. <b>How to remit to JME's bank account?</b><br>
  1158. The sender remits the fund in Japanese yen to JME designated account.
  1159. <br>
  1160. <br>
  1161. </li>
  1162. <li>
  1163. <!------------9-------------->
  1164. <b>JME Business Hours</b><br>
  1165. Everyday 9:00 AM - 18:00 PM
  1166. <br>
  1167. <br>
  1168. </li>
  1169. <li>
  1170. <!------------10-------------->
  1171. <b>Contact for Notices and Inquiries</b><br>
  1172. In the case JME fives notices to or makes an inquiry
  1173. with the applicant in respect to this transaction, the address and telephone number stated
  1174. in the Application for Remittance shall be used.
  1175. <br>
  1176. <br>
  1177. </li>
  1178. <li>
  1179. <!------------11-------------->
  1180. <b>Force Majeure</b><br>
  1181. JME shall not be responsible for any losses or damages arising out of any of the following:
  1182. <ol type="A">
  1183. <li>An unavoidable event such as calamities, incidents, wars, accidents during transit, restrictions by
  1184. laws and regulations, and certain actions taken by the governments, courts or other public authorities;
  1185. </li>
  1186. <li>Any failure or malfunction of terminals, communication circuits, computers or other equipment;
  1187. or any mutilation, error or omission in the text resulting from such, which occurred despite
  1188. reasonable security measures taken by JME.
  1189. </li>
  1190. </ol>
  1191. <br>
  1192. <br>
  1193. </li>
  1194. <li>
  1195. <b>Prohibition of Transfer or Pledge</b><br>
  1196. The applicant shall not be allowed to transfer or pledge
  1197. rights under the transactions made herein.
  1198. <br>
  1199. <br>
  1200. </li>
  1201. <li>
  1202. <b>Conflict</b><br>
  1203. The problems caused by the meaning of terms used herein shall be judged by Japanese descriptive sentence.
  1204. If any conflict and controversy or claim aroused relating to any brochure, guide and agreement either in Nepali,
  1205. Japanese or English version, they shall be construed and governed by Japanese version.
  1206. <br>
  1207. <br>
  1208. </li>
  1209. <li>Customer care department shall be in charge of safeguard for our customers.
  1210. If any opinions, inquiry and complains, please inform this department.
  1211. <br>
  1212. <br>
  1213. </li>
  1214. </ol>
  1215. </div>
  1216. </div>
  1217. <div class="modal-footer">
  1218. <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
  1219. <button type="button" id="btnIAgree" data-dismiss="modal" class="btn btn-primary">I agree</button>
  1220. </div>
  1221. </div>
  1222. </div>
  1223. </div>
  1224. </div>
  1225. <div id="tempAddress" hidden></div>
  1226. <asp:HiddenField runat="server" ID="hdnVerifyDoc1" />
  1227. <asp:HiddenField runat="server" ID="hdnVerifyDoc2" />
  1228. <asp:HiddenField runat="server" ID="hdnVerifyDoc4" />
  1229. <asp:HiddenField runat="server" ID="hdnVerifyDoc3" />
  1230. <asp:HiddenField runat="server" ID="hdnCustomerId" />
  1231. <asp:HiddenField runat="server" ID="hdnRegisterDate" />
  1232. <asp:HiddenField runat="server" ID="hddIdNumber" />
  1233. <asp:HiddenField runat="server" ID="hdnMembershipNo" />
  1234. <asp:HiddenField runat="server" ID="hddOldEmailValue" />
  1235. <asp:HiddenField runat="server" ID="hddTxnsMade" />
  1236. <asp:HiddenField ID="isDisplaySignature" runat="server" />
  1237. <asp:HiddenField ID="hddImgURL" runat="server" />
  1238. <asp:HiddenField ID="hdnDocument" runat="server" />
  1239. </div>
  1240. <script src="../../js/SendTxnTab/CustomerSignature.js"></script>
  1241. <script type="text/javascript">
  1242. $(document).ready(function () {
  1243. $('#ContentPlaceHolder1_reg_front_id').on('change', function (e) {
  1244. debugger
  1245. $('.loadImg').remove();
  1246. // console.log(e.target, 'e')
  1247. for (var i = 0; i < e.target.files.length; i++) {
  1248. var tmppath = URL.createObjectURL(e.target.files[i]);
  1249. $(this).after('<span class="loadImg"><img src="' + tmppath + '" alt=""></span>');
  1250. $(".loadImg img").fadeIn("fast");
  1251. }
  1252. });
  1253. })
  1254. // Image upload for back id
  1255. $('#ContentPlaceHolder1_reg_back_id').on('change', function (e) {
  1256. $('.loadImg1').remove();
  1257. // console.log(e.target, 'e')
  1258. for (var i = 0; i < e.target.files.length; i++) {
  1259. var tmppath = URL.createObjectURL(e.target.files[i]);
  1260. $(this).after('<span class="loadImg1"><img src="' + tmppath + '" alt=""></span>');
  1261. $(".loadImg1 img").fadeIn("fast");
  1262. }
  1263. });
  1264. function ShowImageDetail(id) {
  1265. var encodedImgSrc = encodeURIComponent($('#' + id).attr('src'));
  1266. var url = "ImageDetails.aspx?imageUrl=" + encodedImgSrc + "";
  1267. OpenInNewWindow(url);
  1268. }
  1269. </script>
  1270. </asp:Content>