PageSourceSearch

https://www.woorisavingsbank.com/resources/common/foresys/functionUtils.js

js woorisavingsbank.com collected 2026-10-02 15:31:05 UTC 3,099 bytes, 101 lines download raw bytes

1var func = {
2	emplBoolean : function(val, diff) {
3		val = String(val).replace(/[^0-9]/g,'');
4		
5		var now = new Date();
6		var year = now.getFullYear();
7		var month = now.getMonth()+1;
8		var day = now.getDate();
9		
10		var sdt = new Date(year, month - diff, day);
11		var edt = new Date(val.substring(0,4), val.substring(4,6), val.substring(6,8));
12		
13		var dif = (sdt.getTime() > edt.getTime());
14		
15		return dif;
16	},
17	//콤마추가
18	comma : function(val){
19		str = String(val);
20		return String(Number(str.replace(/[^0-9]/g,''))).replace(/\B(?=(\d{3})+(?!\d))/g,",");
21	},
22	//콤마제거
23	uncomma : function(val){
24		str = String(val);
25		return String(Number(str.replace(/[^0-9]/g,'')));
26	},
27	//숫자외 제거
28	numberForm : function(val){
29		return valid.checkNull(val) ? '' : val.toString().replace(/[^0-9]/g,'');
30	},
31	// 오늘 날짜 반환 'yyyymmdd'
32	getTodayOri : function() {
33		var nowday = new Date(); // 현재 날짜와 시간을 가져오는 함수
34		var year = nowday.getFullYear() ; // 연도를 가져오는 함수
35		var month= nowday.getMonth() + 1 ; // 월을 가져오는 함수
36		var date = nowday.getDate(); // 날짜를 가져오는 함수
37		
38		if(month < 10) month = '0' + month;
39		if(month==0) month = '12';
40		if(date < 10) date = '0' + date;
41		//alert('year>>'+year+'   month>>'+month+'   date>>'+date);
42		return year + '' + month + '' + date;
43	},
44	// 오늘 날짜 반환 'yyyy-mm-dd'
45	getToday : function(type) {
46		var nowday = new Date(); // 현재 날짜와 시간을 가져오는 함수
47		var year = nowday.getFullYear() ; // 연도를 가져오는 함수
48		var month= nowday.getMonth() + 1 ; // 월을 가져오는 함수
49		var date = nowday.getDate(); // 날짜를 가져오는 함수
50		
51		if(month < 10) month = '0' + month;
52		if(month==0) month = '12';
53		if(date < 10) date = '0' + date;
54		
55		var gubun = '-'
56		if(type != undefined && type != '') gubun = type;
57		
58		return year + gubun + month + gubun + date;
59	},
60	// 'yyyymmdd' 형식 날짜 구분 (8자 형식 날짜 type 구분으로 날짜 표시)
61	// 'hhmmss' 형식 시간 구분 (6자 형식 시간 type 구분으로 시간 표시)
62	getReplaceFormatDate : function(date,type) {
63		if(!date) return "";
64		var formatData = "";
65		
66		//공백제거
67		date = date.replace(/\s/gi,"");
68		
69		try{
70			if(date.length == 8){
71				formatData = date.replace(/(\d{4})(\d{2})(\d{2})/,"$1"+type+"$2"+type+"$3");
72			}else if(date.length == 6){
73				formatData = date.replace(/(\d{2})(\d{2})(\d{2})/,"$1"+type+"$2"+type+"$3");
74			}
75		}catch(e){
76			formatData = date;
77			console.log(e);
78		}
79		return formatData;
80	},
81	//계좌번호 포맷
82	formatAcctNo : function(value){
83		if(valid.checkNull(value)) {
84			return value;
85		} else {
86			try {
87				let formatNum = '';
88				if(value.length == 14){
89		            formatNum = value.replace(/(\d{3})(\d{2})(\d{2})(\d{7})/, '$1-$2-$3-$4');
90			    } else {
91			    	formatNum = value;
92			    }
93		    	return formatNum;
94			} catch(error) {
95				console.error(error);
96				return value;
97			}
98		}
99	},
100	
101}

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.