dwkim лет назад: 2
Родитель
Сommit
95e4ca2621

+ 2 - 2
src/main/webapp/app/stockmng/STOCKMNG03010.html

@@ -66,8 +66,8 @@
66 66
 						</div>
67 67
 					</div>
68 68
 					<div class="pull-right itp_cicon itp_gird_btn">
69
-						<button type="button" id="ITP_BTN_STOCKMNG03010_DETAIL_ADDROW" class="btn btn-primary btn-sm ARB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;품목추가&nbsp;&nbsp;</button>
70
-						<button type="button" id="ITP_BTN_STOCKMNG03010_DETAIL_DELROW" class="btn btn-primary btn-sm DRB" style="display: inline-block;"><i class="glyphicon"></i>&nbsp;&nbsp;품목삭제&nbsp;&nbsp;</button>
69
+						<button type="button" id="ITP_BTN_STOCKMNG03010_DETAIL_ADDROW" class="btn btn-primary btn-sm SHOW"><i class="glyphicon "></i>&nbsp;&nbsp;품목추가&nbsp;&nbsp;</button>
70
+						<button type="button" id="ITP_BTN_STOCKMNG03010_DETAIL_DELROW" class="btn btn-danger btn-sm SHOW"><i class="glyphicon "></i>&nbsp;&nbsp;품목삭제&nbsp;&nbsp;</button>
71 71
 					</div>
72 72
 					<div class="itp_table fix">
73 73
 						<div id="ITP_STOCKMNG03010_jqGrid_list" class="itp_tb_list itp_gType1" data-total-cnt="${totalCnt}">

+ 3 - 3
src/main/webapp/js/app/config.js

@@ -515,7 +515,7 @@ function fn_make_side_menu() {
515 515
 			}
516 516
 		}
517 517
 
518
-		if (tabSize > 10) {
518
+		if (tabSize > 15) {
519 519
 			itp_fn_modal_alert(ITP_MSG_LOCALE.message.page.noMoreTab);
520 520
 			return false;
521 521
 		}
@@ -1247,7 +1247,7 @@ function itp_fn_open_tab(param) {
1247 1247
 	const id = param.navId;
1248 1248
 	const tabSize = $('#ITP_HEADER .itp_tab_list li').size();
1249 1249
 
1250
-	if (tabSize > 10) {
1250
+	if (tabSize > 15) {
1251 1251
 		itp_fn_modal_alert(ITP_MSG_LOCALE.message.page.noMoreTab);
1252 1252
 		return false;
1253 1253
 	}
@@ -1284,7 +1284,7 @@ function itp_fn_open_tab_self(param, fn) {
1284 1284
 	const id = param.navId;
1285 1285
 	const tabSize = $('#ITP_HEADER .itp_tab_list li').size();
1286 1286
 
1287
-	if (tabSize > 10) {
1287
+	if (tabSize > 15) {
1288 1288
 		itp_fn_modal_alert(ITP_MSG_LOCALE.message.page.noMoreTab);
1289 1289
 		return false;
1290 1290
 	}

+ 7 - 1
src/main/webapp/js/app/inoutmng/ITP_INOUTMNG01010.js

@@ -351,7 +351,7 @@ let pageObj = {
351 351
 		},
352 352
 		grid: function() {
353 353
 			itp_fn_jqgrid_resize(INOUTMNG01010_GRID_ID, INOUTMNG01010_GRID_LIST, 'lg');
354
-			listObj.empty.init();
354
+			//listObj.empty.init();
355 355
 			itp_fn_fire_window_resize();
356 356
 		},
357 357
 		ready: function() {
@@ -568,6 +568,7 @@ let listObj = {
568 568
 	},
569 569
 	empty: {
570 570
 		init: function() {
571
+			/*
571 572
 			var _this = this;
572 573
 			this.push();
573 574
 			$(INOUTMNG01010_GRID_EMPTY).on('click', function() {
@@ -575,13 +576,17 @@ let listObj = {
575 576
 				_this.itp_INOUTMNG01010_param.gridSize = $.jgrid.defaults.rowNum;
576 577
 				$(INOUTMNG01010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_INOUTMNG01010_param)}).trigger('reloadGrid');
577 578
 			});
579
+			*/
578 580
 		},
579 581
 		itp_INOUTMNG01010_param: {},
580 582
 		push: function() {
583
+			/*
581 584
 			let param = $('#ITP_FORM_INOUTMNG01010_SEARCH').serializeObject();
582 585
 			listObj.itp_INOUTMNG01010_param = param;
586
+			*/
583 587
 		},
584 588
 		back: function() {
589
+			/*
585 590
 			$('#ITP_FORM_INOUTMNG01010_SEARCH_FROM_DT').val(this.itp_INOUTMNG01010_param.fromDt);
586 591
 			$('#ITP_FORM_INOUTMNG01010_SEARCH_TO_DT').val(this.itp_INOUTMNG01010_param.toDt);
587 592
 			$('#ITP_FORM_INOUTMNG01010_SEARCH_SSHMTWHS_ID').val(this.itp_INOUTMNG01010_param.sshmtWhsId);
@@ -589,6 +594,7 @@ let listObj = {
589 594
 			$('#ITP_FORM_INOUTMNG01010_SEARCH_SWHS_NM').val(this.itp_INOUTMNG01010_param.swhsNm);
590 595
 			$('#ITP_FORM_INOUTMNG01010_SEARCH_SWHS_ID').val(this.itp_INOUTMNG01010_param.swhsId);
591 596
 			$('#ITP_FORM_INOUTMNG01010_SEARCH_ITEM_NM').val(this.itp_INOUTMNG01010_param.sItemNm);
597
+			*/
592 598
 		}
593 599
 	},
594 600
 	grid: {

+ 15 - 5
src/main/webapp/js/app/inoutmng/ITP_INOUTMNG02010.js

@@ -88,26 +88,30 @@ const gridColModel = {
88 88
 			index: 'SHMT_QTY', name: 'shmtQty',
89 89
 			label: ITP_MSG_LOCALE.label.shmtQty,				// 출하수량
90 90
 			width: '8', fixed: false, align: 'right',
91
-			sortable: false, hidden: false
91
+			sortable: false, hidden: false,
92
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
92 93
 		},
93 94
 		{
94 95
 			index: 'SHMT_AMT', name: 'shmtAmt',
95 96
 			label: ITP_MSG_LOCALE.label.shmtAmt,				// 출하금액
96 97
 			width: '8', fixed: false, align: 'right',
97 98
 			minwidth: 80,
98
-			sortable: false, hidden: false
99
+			sortable: false, hidden: false,
100
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
99 101
 		},
100 102
 		{
101 103
 			index: 'WHS_QTY', name: 'whsQty',
102 104
 			label: ITP_MSG_LOCALE.label.whsQty,					// 입고수량
103 105
 			width: '8', fixed: false, align: 'right',
104
-			sortable: false, hidden: false
106
+			sortable: false, hidden: false,
107
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
105 108
 		},
106 109
 		{
107 110
 			index: 'WHS_AMT', name: 'whsAmt',
108 111
 			label: ITP_MSG_LOCALE.label.whsAmt,					// 입고금액
109 112
 			width: '8', fixed: false, align: 'right',
110
-			sortable: false, hidden: false
113
+			sortable: false, hidden: false,
114
+			formatter:'integer',formatoptions: { defaultValue: '', thousandsSeparator: ',' }
111 115
 		},
112 116
 		{
113 117
 			index: 'WHS_CNFM_NM', name: 'whsCnfmNm',
@@ -167,7 +171,7 @@ let pageObj = {
167 171
 		},
168 172
 		grid: function() {
169 173
 			itp_fn_jqgrid_resize(INOUTMNG02010_GRID_ID, INOUTMNG02010_GRID_LIST, 'lg');
170
-			listObj.empty.init();
174
+			//listObj.empty.init();
171 175
 			itp_fn_fire_window_resize();
172 176
 		},
173 177
 		ready: function() {
@@ -306,6 +310,7 @@ let listObj = {
306 310
 	},
307 311
 	empty: {
308 312
 		init: function() {
313
+			/*
309 314
 			var _this = this;
310 315
             this.push();
311 316
             $(INOUTMNG02010_GRID_EMPTY).on('click', function() {
@@ -313,16 +318,21 @@ let listObj = {
313 318
                 listObj.itp_INOUTMNG02010_param.gridSize = $.jgrid.defaults.rowNum;
314 319
                 $(INOUTMNG02010_GRID_ID).setGridParam({'postData': JSON.stringify(listObj.itp_INOUTMNG02010_param)}).trigger('reloadGrid');
315 320
             });
321
+*/
316 322
 		},
317 323
 		push: function() {
324
+			/*
318 325
             let param = $('#ITP_FORM_INOUTMNG02010_SEARCH').serializeObject();
319 326
             listObj.itp_INOUTMNG02010_param = param;
320 327
             param.sidx = '0';
328
+*/
321 329
         },
322 330
         back: function() {
331
+	/*
323 332
             $('#ITP_FORM_INOUTMNG02010_SERVICE_BRAND_TYPE').val(listObj.itp_INOUTMNG02010_param.brandType);
324 333
             $('#ITP_FORM_INOUTMNG02010_SERVICE_ST_CD').val(listObj.itp_INOUTMNG02010_param.stCd);
325 334
             $('#ITP_FORM_INOUTMNG02010_SEARCH_BRAND_NM').val(listObj.itp_INOUTMNG02010_param.brandNm);
335
+*/
326 336
         }
327 337
 	},
328 338
 	grid: {

+ 18 - 0
src/main/webapp/js/app/ordmng/ITP_ORDMNG02010.js

@@ -356,6 +356,18 @@ let modifyObj = {
356 356
 				rowData[i].shmtQty = Number(rowData[i].shmtQty);
357 357
 			}
358 358
 			
359
+			var now = new Date();
360
+			var today = now.getFullYear() +
361
+							"." + (now.getMonth()+1 > 9 ? (now.getMonth()+1).toString() : "0" + (now.getMonth()+1).toString()) +
362
+							"." + (now.getDate() > 9 ? now.getDate().toString() : "0" + now.getDate().toString());
363
+			
364
+			
365
+			var dlvReqDt = $('#ITP_FORM_ORDMNG02010_DETAIL_DLV_SCH_DT').val();
366
+			if (today > dlvReqDt) {
367
+				alert("납품요청일은 오늘 이후이어야 합니다.");
368
+				return;
369
+			}	
370
+			
359 371
 			var modalFn = {
360 372
 				callBack: (args) => {
361 373
 					param.gridInsertData = rowData;
@@ -392,6 +404,7 @@ let modifyObj = {
392 404
 	},
393 405
 	empty: {
394 406
 		init: function() {
407
+			/*
395 408
             var _this = this;
396 409
             this.push();
397 410
             $(ORDMNG02010_VIEW_GRID_EMPTY).on('click', function() {
@@ -399,15 +412,20 @@ let modifyObj = {
399 412
                 modifyObj.itp_ORDMNG02010_param.gridSize = $.jgrid.defaults.rowNum;
400 413
                 $(ORDMNG02010_DETAIL_GRID_ID).setGridParam({'postData': JSON.stringify(modifyObj.itp_ORDMNG02010_param)}).trigger('reloadGrid');
401 414
             });
415
+*/
402 416
         },
403 417
         push: function() {
418
+	/*
404 419
             let param = $('#ITP_FORM_ORDMNG02010_DETAIL').serializeObject();
405 420
             modifyObj.itp_ORDMNG02010_param = param;
421
+*/
406 422
         },
407 423
         back: function() {
424
+	/*
408 425
             $('#ITP_FORM_ORDMNG02010_SERVICE_BRAND_TYPE').val(modifyObj.itp_ORDMNG02010_param.brandType);
409 426
             $('#ITP_FORM_ORDMNG02010_SERVICE_ST_CD').val(modifyObj.itp_ORDMNG02010_param.stCd);
410 427
             $('#ITP_FORM_ORDMNG02010_SEARCH_BRAND_NM').val(modifyObj.itp_ORDMNG02010_param.brandNm);
428
+*/
411 429
         }
412 430
 	},
413 431
 	load: function(param) {

+ 1 - 1
src/main/webapp/js/app/pomng/ITP_POMNG02010.js

@@ -342,7 +342,7 @@ let pageObj = {
342 342
 		
343 343
 		var whsDvsn = "";
344 344
 		if (fn_make_user_info.get('storeId') == '' ) {
345
-			whsDvsn = "W01";
345
+			whsDvsn = "";
346 346
 		} else {
347 347
 			whsDvsn = "W02";
348 348
 		}

+ 7 - 1
src/main/webapp/js/app/pomng/ITP_POMNG03010.js

@@ -341,7 +341,7 @@ let pageObj = {
341 341
 			
342 342
 		},
343 343
 		grid: function() {
344
-			listObj.empty.init();
344
+			//listObj.empty.init();
345 345
 			itp_fn_jqgrid_resize(POMNG03010_GRID_ID, POMNG03010_GRID_LIST, 'lg');
346 346
 		},
347 347
 		ready: function() {
@@ -875,6 +875,7 @@ let listObj = {
875 875
 	},
876 876
 	empty: {
877 877
 		init: function() {
878
+			/*
878 879
 			var _this = this;
879 880
 			this.push();
880 881
 			$(POMNG03010_GRID_EMPTY).on('click', function() {
@@ -882,13 +883,17 @@ let listObj = {
882 883
 				_this.itp_POMNG03010_param.gridSize = $.jgrid.defaults.rowNum;
883 884
 				$(POMNG03010_GRID_ID).setGridParam({'postData': JSON.stringify(_this.itp_POMNG03010_param)}).trigger('reloadGrid');
884 885
 			});
886
+			*/
885 887
 		},
886 888
 		itp_POMNG03010_param: {},
887 889
 		push: function() {
890
+			/*
888 891
 			let param = $('#ITP_FORM_POMNG03010_SEARCH').serializeObject();
889 892
 			listObj.itp_POMNG03010_param = param;
893
+			*/
890 894
 		},
891 895
 		back: function() {
896
+			/*
892 897
 			$('#ITP_FORM_POMNG03010_SEARCH_FROM_DT').val(this.itp_POMNG03010_param.fromDt);
893 898
 			$('#ITP_FORM_POMNG03010_SEARCH_TO_DT').val(this.itp_POMNG03010_param.toDt);
894 899
 			$('#ITP_FORM_POMNG03010_SEARCH_SPPLY_ID').val(this.itp_POMNG03010_param.sspplyId);
@@ -896,6 +901,7 @@ let listObj = {
896 901
 			$('#ITP_FORM_POMNG03010_SEARCH_WHS_NM').val(this.itp_POMNG03010_param.swhsNm);
897 902
 			$('#ITP_FORM_POMNG03010_SEARCH_WHS_ID').val(this.itp_POMNG03010_param.swhsId);
898 903
 			$('#ITP_FORM_POMNG03010_SEARCH_ITEM_NM').val(this.itp_POMNG03010_param.sitemNm);
904
+			*/
899 905
 		}
900 906
 	},
901 907
 	grid: {

+ 1 - 1
src/main/webapp/js/app/pomng/ITP_POMNG04010.js

@@ -60,7 +60,7 @@ const gridColModel = {
60 60
 			sortable: false, hidden: false
61 61
 		},
62 62
 		{
63
-			index: 'LOCATION_NM', name: 'locationNm',
63
+			index: 'WHS_NM', name: 'whsNm',
64 64
 			label: ITP_MSG_LOCALE.label.locationNm, 		// 입고처
65 65
 			width: '10', fixed: false, align: 'center',
66 66
 			sortable: false, hidden: false

+ 1 - 0
src/main/webapp/js/app/pomng/ITP_POMNG06010.js

@@ -295,6 +295,7 @@ let listObj = {
295 295
 						param.dlvCnfmDocFileNo = "";
296 296
 						param.gridInsertData = gridInsertData;
297 297
 						console.log(JSON.stringify(param));
298
+						
298 299
 						var searhFn = function () {
299 300
 							//ITP_FORM_INOUTMNG01010_DETAIL_IS_WRITING = false;
300 301
 							listObj.button.search();

+ 1 - 0
src/main/webapp/js/app/stockmng/ITP_STOCKMNG03010.js

@@ -299,6 +299,7 @@ let listObj = {
299 299
 			fn_ajax_call(STOCK_BASE_MNG_SAVE, JSON.stringify(param), searhFn, 'POST');
300 300
 		}, 
301 301
 		addItem: function() {
302
+			console.log("=============");
302 303
 			var brandId = $('#ITP_FORM_STOCKMNG03010_SEARCH_BRAND_ID').val();
303 304
 			
304 305
 			var args = {'brandId': brandId};