|
@@ -147,7 +147,7 @@ const gridColModel = {
|
147
|
147
|
label: "로케이션",
|
148
|
148
|
width: '10', fixed: false, align: 'center',
|
149
|
149
|
sortable: false, editable: true, edittype: 'text',
|
150
|
|
- editrules: {required: true}
|
|
150
|
+ editrules: {required: false}
|
151
|
151
|
},
|
152
|
152
|
{
|
153
|
153
|
index: 'LOCATION_NM', name: 'locationNm',
|
|
@@ -755,29 +755,9 @@ let locInfoObj = {
|
755
|
755
|
},
|
756
|
756
|
button: {
|
757
|
757
|
addRow: function() {
|
758
|
|
- // 팝업
|
759
|
|
- var popFn = function(rowDataPop) {
|
760
|
|
- // 기존등록 데이터
|
761
|
|
- var exists = '';
|
762
|
|
- const rowData = $(STOCKMNG04010_DETAIL_GRID_ID).getRowData();
|
763
|
|
- $.each(rowData, function(key, value) {
|
764
|
|
- exists = exists + value.authNo + ';';
|
765
|
|
- });
|
766
|
|
-
|
767
|
|
- $.each(rowDataPop, function(key, value) {
|
768
|
|
- if(exists.indexOf(value.authNo) < 0) {
|
769
|
|
- // 행추가
|
770
|
|
- $(STOCKMNG04010_DETAIL_GRID_ID).jqGrid('addRow', {position: 'last'});
|
771
|
|
- var rids = $(STOCKMNG04010_DETAIL_GRID_ID).jqGrid('getDataIDs');
|
772
|
|
- var last_row_id = rids[rids.length - 1];
|
773
|
|
- $(STOCKMNG04010_DETAIL_GRID_ID).jqGrid('setCell', last_row_id, 'viewCd', 'C');
|
774
|
|
- $(STOCKMNG04010_DETAIL_GRID_ID).jqGrid('setCell', last_row_id, 'authNo', value.authNo);
|
775
|
|
- $(STOCKMNG04010_DETAIL_GRID_ID).jqGrid('setCell', last_row_id, 'authNm', value.authNm);
|
776
|
|
- }
|
777
|
|
- });
|
778
|
|
- $(STOCKMNG04010_DETAIL_GRID_EMPTY).hide();
|
779
|
|
- };
|
780
|
|
- fn_call_popup('comm', 'AUTH_SCH_POPUP', '#ITP_ASIDE', popFn, null, 'S');
|
|
758
|
+ // $(STOCKMNG04010_DETAIL_GRID_ID).jqGrid('addRow', {position: 'last'});
|
|
759
|
+ // $(STOCKMNG04010_DETAIL_GRID_EMPTY).hide();
|
|
760
|
+ STOCKMNG04010_DETAIL_GRID_LAST_ROW_ID = itp_fn_add_grid_row(STOCKMNG04010_DETAIL_GRID_ID, undefined, ['location'],'STOCKMNG04010_DETAIL');
|
781
|
761
|
},
|
782
|
762
|
delRow: function() {
|
783
|
763
|
itp_fn_grid_del_row(STOCKMNG04010_DETAIL_GRID_ID);
|