|
@@ -709,6 +709,37 @@ let modifyObj = {
|
709
|
709
|
};
|
710
|
710
|
|
711
|
711
|
/*신규화면 Object*/
|
|
712
|
+function fn_grid_new(option) {
|
|
713
|
+ var options = $.extend({
|
|
714
|
+ mtype: 'POST',
|
|
715
|
+ multiselect: false,
|
|
716
|
+ rownumbers: true,
|
|
717
|
+ ondblClickRow: null,
|
|
718
|
+ loadBeforeSend: function(jqXHR) {
|
|
719
|
+ jqXHR.setRequestHeader('X-AUTH-TOKEN', CONN_KEY);
|
|
720
|
+ },
|
|
721
|
+ loadError: function(jqXHR, textStatus, errorThrown) {
|
|
722
|
+ itp_fn_grid_load_error(jqXHR, textStatus, errorThrown);
|
|
723
|
+ }
|
|
724
|
+ }, option);
|
|
725
|
+ $(options.gridId).jqGrid({
|
|
726
|
+ colModel: options.colModel,
|
|
727
|
+ postData: JSON.stringify(options.param),
|
|
728
|
+ mtype: options.mtype,
|
|
729
|
+ url: options.url,
|
|
730
|
+ rowNum: 10000,
|
|
731
|
+ multiselect: options.multiselect,
|
|
732
|
+ loadBeforeSend: options.loadBeforeSend,
|
|
733
|
+ onCellSelect: options.onCellSelect,
|
|
734
|
+ ondblClickRow: options.ondblClickRow,
|
|
735
|
+ loadComplete: options.loadComplete,
|
|
736
|
+ loadError: options.loadError,
|
|
737
|
+ gridComplete: function () {
|
|
738
|
+ $(STINFO06010_DETAIL_GRID_ID+'View').html("전체: "+$(options.gridId).getGridParam('records')+'건')
|
|
739
|
+ }
|
|
740
|
+ });
|
|
741
|
+}
|
|
742
|
+
|
712
|
743
|
let createObj = {
|
713
|
744
|
init: function (param) {
|
714
|
745
|
pageObj.switchScreen('ADD');
|
|
@@ -825,7 +856,7 @@ let createObj = {
|
825
|
856
|
itp_fn_grid_paging(STINFO06010_GRID_ID, action, param);
|
826
|
857
|
}
|
827
|
858
|
};
|
828
|
|
- itp_fn_grid_make_remote(option);
|
|
859
|
+ fn_grid_new(option);
|
829
|
860
|
},
|
830
|
861
|
clearData : function() {
|
831
|
862
|
$(STINFO06010_DETAIL_GRID_ID).jqGrid('clearGridData', true);
|
|
@@ -846,6 +877,10 @@ let createObj = {
|
846
|
877
|
$('#ITP_FORM_STINFO06010_DETAIL_STORE_ID').val(rowDataPop[0].storeId);
|
847
|
878
|
$('#ITP_FORM_STINFO06010_DETAIL_STORE_NM').val(rowDataPop[0].storeNm);
|
848
|
879
|
}
|
|
880
|
+ // 강제로 팝업 창닫기 실행
|
|
881
|
+ setTimeout(function() {
|
|
882
|
+ $('#ITP_BIZPOP_BRAND_STORE').modal('hide');
|
|
883
|
+ }, 500);
|
849
|
884
|
};
|
850
|
885
|
fn_call_popup('biz', 'BIZPOP_BRAND_STORE', '#ITP_ASIDE', popFn, null, 'S');
|
851
|
886
|
},
|