PageSourceSearch

https://rvv.co.kr/common/components/masterform_component.js?1791502977

js rvv.co.kr collected 2026-10-08 23:44:23 UTC 4,864 bytes, 163 lines download raw bytes

1var MasterForm = function(pageId) {
2	var _this = this;
3	var id = uuid();
4	var container = $("body > div.wrap"); 
5	container.attr("id", id);
6
7	/*
8	var developerLogging;
9
10	if( MODE == "local" || MODE  == "dev" ){
11		developerLogging = new DeveloperLogging( pageId, id );
12	}
13	*/
14	
15	//2022-01-11 장기홈페이지 신규 개발에 따른 로그인 공유 처리 ////////////////////////////////
16	/* 로그인 공유처리 시작 */
17	var homepageUrl = null;
18
19//	if( MODE  == "dev" ) {
20//		homepageUrl = "https://dev-www.redcaprentcar.com/rent";
21//	} else if( MODE  == "prod" ) {
22//		homepageUrl = "https://www.redcaprentcar.com/rent";
23//	}
24	this.oldLoginSend = function( param, callback, errorCallback ) {
25		if(homepageUrl != null) {
26			var transactionId = uuid();
27			param["_header"] = { formId: id, transactionId : transactionId }
28			send( homepageUrl+"/login.action", param, function( data ){ });
29		}
30	}
31	this.oldSnsLoginSend = function( param, callback, errorCallback ) {
32		if(homepageUrl != null) {
33			var transactionId = uuid();
34			param["_header"] = { formId: id, transactionId : transactionId }
35			send( homepageUrl+"/login/sns.action", param, function( data ){ });
36		}
37	}
38	/* 로그인 공유처리 종료 */
39	////////////////////////////////////////////////////////////////
40	
41	function initForm(){
42		var context = _this;
43	}
44	
45	this.getId = function(){
46       return id;		
47	}
48	
49	this.select = function( selector ){
50		return container.find( selector );
51	}
52	
53	this.send = function( action, param, callback, errorCallback ) {
54		var transactionId = uuid();
55		if (SYSTEM_CODE == 'RC'){
56			$('body').append('<div class="loading"><span class="blind">로딩중입니다</span></div>');
57		}
58		if (SYSTEM_CODE == 'PM'){
59			$('body').append('<div class="loading"><span class="blind">로딩중입니다</span></div>');
60		}
61		var actionUrl = CONTEXT_PATH + "/action/" + action;
62		param["_header"] = {
63			formId: id,
64			transactionId : transactionId
65		}
66
67		if(typeof ALLY!=="undefined"&&ALLY){ 
68			param["allyUrl"] = ALLY;
69		}
70		
71		send( actionUrl, param, function( data ){
72			$('.loading').remove();
73			if( callback ) {
74				callback.call( this, data );
75			}
76		});
77	}
78	
79	
80	this.addEvent = function( eventName, selector, callback ) {
81		$(document).on( eventName, selector, function(event){
82			var item = $(event.target);
83			
84			if( callback ){
85				callback.call( this, event, item.data() );
86			}
87		});
88	}
89	initForm(); 
90}
91
92
93/* 이 클래스는 개발자의 개발 지원에만 사용되는 컴포넌트로, 개발서버 이상에서는 사용되지 않습니다.*/
94var DeveloperLogging = function( pageId, appId ){
95	trace("[System] Developer logging initialized.");
96	var container = $("#" + appId );
97	var logView = $("<div class='_log_view_'><pre></pre><i class='fa fa-times' aria-hidden='true' data-action='closeLogView'></div>");
98	var plate = $("<div class='_developer_logging_'>\
99	                 <ul class='_id_list_'></ul>\
100	                 <div class='_info_ pull-left'>"+ pageId +"</div>\
101	                 <div class='_controls_ pull-right'>\
102	                   <i class='fa fa-times' aria-hidden='true' data-action='removeAll'></i>\
103	                   <i class='fa fa-play' data-action='toggle' aria-hidden='true'></i>\
104	                 </div>\
105	               </div>");
106	container.append(plate);
107	container.append(logView);
108
109	plate.on("click", "[data-action]", function(event){
110		var action = $(event.target).data("action");
111		switch( action ) {
112			case "removeAll" :
113				plate.find("._id_list_").empty();
114				break;
115			case "toggle" :
116				if( plate.hasClass("open") ) {
117					plate.removeClass("open");
118				} else {
119					plate.addClass("open");
120				}
121				break;
122		}
123	});
124
125	logView.on("click", "[data-action]", function(event){
126		var action = $(event.target).data("action");
127		switch( action ) {
128			case "closeLogView" :
129				logView.hide();
130				break;
131		}
132	});
133
134	container.on("click", "._id_list_", function(event){
135		logView.find("pre").text("");
136		send( "Sample.retrieveBizActorLogList", { 'id' : $(event.target).data("id") }, function(data){
137			var text= "";
138			if( data["result"] ) {
139				var content = data["result"]["content"];
140				$(content).each( function( inx ){
141					text += this["logSeq"] + "\t" + this["logMsg"] + "\n";
142					if( $.trim(this["logException"]) != '' ) {
143						text += "\t" + this["logException"];
144					}
145				});
146				logView.find("pre").text(text);
147			}
148			logView.show();
149		});
150	});
151
152	$(document).on("keyup", function(event){
153		if(event.keyCode  == 27 ){
154			logView.hide();
155		}
156	});
157
158	this.addLog = function( id , url ){
159		logView.hide();
160		plate.find("._id_list_").append("<li class='_id_' data-id='"+id+"'>"+ url + " [" +DateUtil.getDate("HH:mm:ss.SSS") +"]</li>");
161	}
162
163}

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.