PageSourceSearch

https://alchantruck.com/JS/CodeFunction.js

js alchantruck.com collected 2026-10-04 13:29:43 UTC 8,081 bytes, 357 lines download raw bytes

1
2//========> CodeCommon 에서 각 종류별 코드들 ComboBox 넣기.. <=======//
3function FuncCodeCommon(codekind, objName, Style, gb, Empty){
4	var Temp = "";
5
6	if (gb == "select"){
7		Temp += "<select name='" + objName + "' style='" + Style + "' class='tt_02'>";
8
9		if (Empty != ""){
10			Temp += "<option value=''>" + Empty + "</option>";
11		}
12
13		for (var i = 0; i <= BB_CodeCommon[codekind].length - 1; i++){
14			Temp += "<option value='" + BB_CodeCommon[codekind][i][0] + "'>" + BB_CodeCommon[codekind][i][1] + "</option>";
15		}
16
17		Temp += "</select>";
18	}
19
20	document.write(Temp);
21}
22
23//========> CodeCommon 에서 각 종류별 코드들 ComboBox 넣기.. <=======//
24function FuncCodeCommon_M(codekind, objName, Style, gb, Empty, OnChange){
25	var Temp = "";
26
27	if (gb == "select"){
28		Temp += "<select name='" + objName + "' style='" + Style + "' class='tt_02' onchange='" + OnChange + "'>";
29
30		if (Empty != ""){
31			Temp += "<option value=''>" + Empty + "</option>";
32		}
33
34		for (var i = 0; i <= BB_CodeCommon[codekind].length - 1; i++){
35			Temp += "<option value='" + BB_CodeCommon[codekind][i][0] + "'>" + BB_CodeCommon[codekind][i][1] + "</option>";
36		}
37
38		Temp += "</select>";
39	}
40
41	document.write(Temp);
42}
43
44
45//========> CodeCommon 에서 각 종류별 코드들 ComboBox 넣기.. <=======//
46function FuncCodeCommon_CM(codekind, objName, Style, gb, Empty){
47	var Temp = "";
48
49	if (gb == "select"){
50		Temp += "<select name='" + objName + "' style='" + Style + "' class='tt_02'>";
51
52		if (Empty != ""){
53			Temp += "<option value=''>" + Empty + "</option>";
54		}
55
56		for (var i = 0; i <= BB_CodeCommon[codekind].length - 1; i++){
57			Temp += "<option value='" + BB_CodeCommon[codekind][i][0] + "'>" + BB_CodeCommon[codekind][i][1] + "</option>";
58		}
59
60		Temp += "</select>";
61	}
62
63	document.write(Temp);
64}
65
66//========> 카매니저 내차량관리에서 사용 <=======//
67function FuncCodeCommonS(codekind, objName, Style, gb, Empty){
68	var Temp = "";
69
70	if (gb == "select"){
71		Temp += "<select name='" + objName + "' style='" + Style + "' class='tt_02'>";
72
73		if (Empty != ""){
74			Temp += "<option value=''>" + Empty + "</option>";
75		}
76
77		for (var i = 0; i <= BB_CodeCommon[codekind].length - 1; i++){
78			Temp += "<option value='" + BB_CodeCommon[codekind][i][0] + "'>" + BB_CodeCommon[codekind][i][1] + "</option>";
79		}
80
81		Temp += "</select>";
82	}
83
84	document.write(Temp);
85}
86
87//========> CarCode	에서 국산/수입 구분 <=======//
88function FuncNation(obj, SelectCode){
89	var opt;
90	var arrLen = BB_CarNation.length;
91
92	obj.length = 1;
93
94//	opt = new Option("국산", "", false, false);
95//	obj.options[0] = opt;
96
97	var arrLen   = BB_CarNation.length;
98
99	for (i = 0; i < arrLen; i++) {
100		Code = BB_CarNation[i][0];
101		Name = BB_CarNation[i][1];
102
103		opt = new Option(Name, Code, false, false);
104		obj.options[i] = opt;
105	}
106
107}
108
109//========> CarCode	에서 Maker 구분 <=======//
110function FuncMaker(NationName, obj, SelectCode){
111
112	obj.length = 1;
113
114	opt = new Option("제조사선택", "", false, false);
115	obj.options[0] = opt;
116
117//	if (NationName == ""){
118//		return;
119//	}
120
121	var arrLen   = BB_CarMaker[NationName].length;
122
123	for (i = 1; i < arrLen; i++) {
124		Code = BB_CarMaker[NationName][i][0];
125		Name = BB_CarMaker[NationName][i][1];
126
127		opt = new Option(Name, Code, false, false);
128		obj.options[i] = opt;
129	}
130}
131
132
133//========> CarCode	에서 Maker 다음 차명 구분 <=======//
134function FuncItem(MakerName, obj, SelectCode){
135
136	obj.length = 1;
137
138	opt = new Option("차명선택", "", false, false);
139	obj.options[0] = opt;
140
141	if (MakerName == ""){
142		return;
143	}
144
145	var arrLen   = BB_CarItem[MakerName].length;
146
147	for (i = 1; i < arrLen; i++) {
148		Code = BB_CarItem[MakerName][i][0];
149		Name = BB_CarItem[MakerName][i][1];
150
151		opt = new Option(Name, Code, false, false);
152		obj.options[i] = opt;
153	}
154}
155
156
157//========> CarCode	에서 차명 상세차명 차량 그레이드..구분 <=======//
158function FuncCarCode(ItemName, obj, SelectCode){
159
160	obj.length = 1;
161
162	opt = new Option("모델선택", "", false, false);
163	obj.options[0] = opt;
164
165	if (ItemName == ""){
166		return;
167	}
168
169	var arrLen   = BB_CarCode[ItemName].length;
170
171	for (i = 1; i < arrLen; i++) {
172		Code = BB_CarCode[ItemName][i][0];
173		Name = BB_CarCode[ItemName][i][1];
174
175		opt = new Option(Name, Code, false, false);
176		obj.options[i] = opt;
177	}
178}
179
180
181//========> CarCode	에서 차명 CarCode 에 붙은 세부모델명 찾기.. <=======//
182function FuncModelGrade(CarCode, obj, SelectCode){
183
184	obj.length = 1;
185
186	opt = new Option("세부모델선택", "", false, false);
187	obj.options[0] = opt;
188
189	if (CarCode == ""){
190		return;
191	}
192
193	if (BB_DModel[CarCode] == null){
194		return;
195	}
196
197	var arrLen   = BB_DModel[CarCode].length;
198
199	for (i = 1; i < arrLen; i++) {
200		Code = BB_DModel[CarCode][i][1];
201		Name = BB_DModel[CarCode][i][1];
202
203		opt = new Option(Name, Code, false, false);
204		obj.options[i] = opt;
205	}
206}
207
208//========> Sido 리스트 넣기 구분 <=======//
209function FuncSido(obj, SelectCode){
210	var opt;
211	var arrLen = BB_Sido.length;
212
213	obj.length = 1;
214
215	opt = new Option("시도", "", false, false);
216	obj.options[0] = opt;
217
218	var arrLen   = BB_Sido.length;
219
220	for (i = 1; i < arrLen; i++) {
221		Code = BB_Sido[i][0];
222		Name = BB_Sido[i][1];
223
224		opt = new Option(Name, Code, false, false);
225		obj.options[i] = opt;
226	}
227}
228
229//========> City	에서 Sido 구분 <=======//
230function FuncCity(SidoName, obj, SelectCode){
231
232	obj.length = 1;
233
234	opt = new Option("지역", "", false, false);
235	obj.options[0] = opt;
236
237	if (SidoName == ""){
238		return;
239	}
240
241	var arrLen   = BB_City[SidoName].length;
242
243	for (i = 1; i < arrLen; i++) {
244		Code = BB_City[SidoName][i][0];
245		Name = BB_City[SidoName][i][1];
246
247		opt = new Option(Name, Code, false, false);
248		obj.options[i] = opt;
249	}
250}
251
252//========> 단지에서 City 구분 <=======//
253function FuncDanji(CityName, obj, SelectCode){
254
255	obj.length = 1;
256
257	opt = new Option("지역단지선택", "", false, false);
258	obj.options[0] = opt;
259
260	if (CityName == ""){
261		return;
262	}
263
264	if (BB_CityDanji[CityName] == null){
265		return;
266	}
267
268	var arrLen   = BB_CityDanji[CityName].length;
269	
270	for (i = 1; i < arrLen; i++) {
271		Code = BB_CityDanji[CityName][i][0];
272		Name = BB_CityDanji[CityName][i][1];
273
274		opt = new Option(Name, Code, false, false);
275		obj.options[i] = opt;
276	}
277}
278
279//========> 단지에서 City 구분 <=======//
280function FuncCMDanji(CityName, obj, SelectCode){
281
282	obj.length = 1;
283
284	opt = new Option("단지선택", "", false, false);
285	obj.options[0] = opt;
286
287	if (CityName == ""){
288		return;
289	}
290
291	if (BB_CM_CityDanji[CityName] == null){
292		return;
293	}
294
295	var arrLen   = BB_CM_CityDanji[CityName].length;
296	
297	for (i = 1; i < arrLen; i++) {
298		Code = BB_CM_CityDanji[CityName][i][0];
299		Name = BB_CM_CityDanji[CityName][i][1];
300
301		opt = new Option(Name, Code, false, false);
302		obj.options[i] = opt;
303	}
304}
305
306
307//========> 상사에서 Danji 구분 <=======//
308function FuncDanjiShop(DanjiNo, obj, SelectCode){
309
310	obj.length = 1;
311
312	opt = new Option("단지내상사선택", "", false, false);
313	obj.options[0] = opt;
314
315	if (DanjiNo == ""){
316		return;
317	}
318
319	if (BB_DanjiShop[DanjiNo] == null){
320		return;
321	}
322
323	var arrLen   = BB_DanjiShop[DanjiNo].length;
324
325	for (i = 1; i < arrLen; i++) {
326		Code = BB_DanjiShop[DanjiNo][i][0];
327		Name = BB_DanjiShop[DanjiNo][i][1];
328
329		opt = new Option(Name, Code, false, false);
330		obj.options[i] = opt;
331	}
332}
333
334
335//========> CarSubKind	에서 CarKind 구분 <=======//
336function FuncSubKind(CarKindName, obj, SelectCode){
337
338	obj.length = 1;
339
340	opt = new Option("세부지역선택", "", false, false);
341	obj.options[0] = opt;
342
343	if (CarKindName == ""){
344		return;
345	}
346
347	var arrLen   = BB_SubCarKind[CarKindName].length;
348
349	for (i = 1; i < arrLen; i++) {
350		Code = BB_SubCarKind[CarKindName][i][0];
351		Name = BB_SubCarKind[CarKindName][i][1];
352
353		opt = new Option(Name, Code, false, false);
354		obj.options[i] = opt;
355	}
356}
357

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.