PageSourceSearch

https://yeskey.or.kr/resources/js/yeskey/main/layerIssueCorp.js

js yeskey.or.kr collected 2026-10-02 08:35:11 UTC 3,189 bytes, 119 lines download raw bytes

1'use strict';
2
3$(function(){
4
5	var refNum;
6	var authCode;
7	var bizNo;
8
9	initData();
10	initEvent();
11
12	function initData() {
13//		lanChange();
14	}
15
16	function initEvent() {
17        $(document).off('click', '.closeIssue').on('click', '.closeIssue', function(){
18            if (globalLocale === "ENG") {
19                $.layerAlert("Certificate issuance has been canceled.");
20            } else {
21                $.layerAlert("인증서 발급을 취소하였습니다.");
22            }
23             $.closeLayer("layerIssue");
24             const focusedElement = $('.btnThree').data('focusedElement');
25             if(focusedElement){
26                $(focusedElement).focus();
27             }
28        })
29
30//		$(".closeIssue").off().on("click", function(){
31//			if (globalLocale === "ENG") {
32//				$.layerAlert("Certificate issuance has been canceled.");
33//			} else {
34//				$.layerAlert("인증서 발급을 취소하였습니다.");
35//			}
36//
37//			$('#refNumCorp').val(""); $('#authCodeCorp').val(""); $('#bizNoCorp').val("");
38//			$.closeLayer("layerIssueCorp");
39//		});
40
41		$(".btn-ppup-next-corp").off().on("click", function(){
42			refNum = "";
43			authCode = "";
44
45			// 2023.07 에러 메시지 분리
46			if($('#refNumCorp').val() == "") {
47				if (globalLocale === "ENG") {
48					$.layerAlert("Please enter reference number.", null, function() {
49						$('#refNumCorp').focus();
50					});
51				} else {
52					$.layerAlert("참조번호를 입력하세요.", null, function() {
53						$('#refNumCorp').focus();
54					});
55				}
56				return;
57			}
58
59			if($('#authCodeCorp').val() == "") {
60				if (globalLocale === "ENG") {
61					$.layerAlert("Please enter authorization code.", null, function() {
62						$('#authCodeCorp').focus();
63					});
64				} else {
65					$.layerAlert("인가코드를 입력하세요.", null, function() {
66						$('#authCodeCorp').focus();
67					});
68				}
69				return;
70			}
71
72			let reBizNo = /^[0-9]{10}$/;
73			if (reBizNo.test($('#bizNoCorp').val()) == false) {
74				if (globalLocale === "ENG") {
75					$.layerAlert("Please enter business number as a 10 digit number.", null, function() {
76						$('#bizNoCorp').focus();
77					});
78				} else {
79					$.layerAlert("사업자등록번호를 숫자 10자리로 입력하세요.", null, function() {
80						$('#bizNoCorp').focus();
81					});
82				}
83				return;
84			}
85
86			refNum = $('#refNumCorp').val();
87			authCode = $('#authCodeCorp').val();
88			bizNo = $('#bizNoCorp').val();
89
90			$('#refNumCorp').val("");
91			$('#authCodeCorp').val("");
92			$('#bizNoCorp').val("");
93
94			$.closeLayer("layerIssueCorp");
95			issueFinCertCorp();
96		});
97	}
98
99	function issueFinCertCorp() {
100		var success = function() {
101			if (globalLocale === "ENG") {
102				$.layerAlert("Certificate issuance/reissuance success.");
103			} else {
104				$.layerAlert("인증서 발급/재발급 성공.");
105			}
106		}
107
108		var fail = function() {
109			if (globalLocale === "ENG") {
110				$.layerAlert("Certificate issuance/reissuance failed.");
111			} else {
112				$.layerAlert("인증서 발급/재발급 실패.");
113			}
114		}
115
116		issueFinCorpCert(refNum, authCode, bizNo, success, fail);
117	}
118
119})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.