|
@@ -66,8 +66,8 @@ var rationAssistOprObj = {
|
|
me.sheet.getParent().focus(true);
|
|
me.sheet.getParent().focus(true);
|
|
});
|
|
});
|
|
sheetCommonObj.cleanData(me.sheet, me.setting, -1);
|
|
sheetCommonObj.cleanData(me.sheet, me.setting, -1);
|
|
- sheetCommonObj.setStaticCombo(me.sheet, 0, 5, assList.length, me.setting.comboItems, false, false);
|
|
|
|
- sheetCommonObj.setDynamicCombo(me.sheet, assList.length, 5, me.sheet.getRowCount() - assList.length, me.setting.comboItems, false, false);
|
|
|
|
|
|
+ sheetCommonObj.setStaticCombo(me.sheet, 0, 5, me.ration.rationAssList.length, me.setting.comboItems, false, false);
|
|
|
|
+ sheetCommonObj.setDynamicCombo(me.sheet, me.ration.rationAssList.length, 5, me.sheet.getRowCount() - me.ration.rationAssList.length, me.setting.comboItems, false, false);
|
|
sheetCommonObj.showData(me.sheet, me.setting, me.ration.rationAssList);
|
|
sheetCommonObj.showData(me.sheet, me.setting, me.ration.rationAssList);
|
|
},
|
|
},
|
|
|
|
|
|
@@ -75,6 +75,7 @@ var rationAssistOprObj = {
|
|
var me = rationAssistOprObj;
|
|
var me = rationAssistOprObj;
|
|
if (!me.ration) {return;};
|
|
if (!me.ration) {return;};
|
|
var assList = me.ration.rationAssList;
|
|
var assList = me.ration.rationAssList;
|
|
|
|
+ if(assList == undefined) assList = [];
|
|
//var assObj = sheetCommonObj.combineRowData(me.sheet, me.setting, args.row);
|
|
//var assObj = sheetCommonObj.combineRowData(me.sheet, me.setting, args.row);
|
|
var assObj = sheetsOprObj.combineRationRowData(me.sheet, me.setting, args.row);
|
|
var assObj = sheetsOprObj.combineRationRowData(me.sheet, me.setting, args.row);
|
|
let dataCode = me.setting.header[args.col].dataCode;
|
|
let dataCode = me.setting.header[args.col].dataCode;
|
|
@@ -163,11 +164,16 @@ var rationAssistOprObj = {
|
|
sheetCommonObj.cleanSheet(me.sheet, me.setting, -1);
|
|
sheetCommonObj.cleanSheet(me.sheet, me.setting, -1);
|
|
sheetCommonObj.unShieldAllCells(me.sheet);
|
|
sheetCommonObj.unShieldAllCells(me.sheet);
|
|
|
|
|
|
- sheetCommonObj.setStaticCombo(me.sheet, 0, 5, ration.rationAssList.length, me.setting.comboItems, false);
|
|
|
|
- sheetCommonObj.setDynamicCombo(me.sheet, ration.rationAssList.length, 5, me.sheet.getRowCount() - ration.rationAssList.length, me.setting.comboItems, false, false);
|
|
|
|
-
|
|
|
|
if (ration == undefined || ration.rationAssList == undefined ||
|
|
if (ration == undefined || ration.rationAssList == undefined ||
|
|
- ration.rationAssList.length == 0){return;};
|
|
|
|
|
|
+ ration.rationAssList.length == 0){
|
|
|
|
+ sheetCommonObj.setStaticCombo(me.sheet, 0, 5, 0, me.setting.comboItems, false);
|
|
|
|
+ sheetCommonObj.setDynamicCombo(me.sheet, 0, 5, me.sheet.getRowCount(), me.setting.comboItems, false, false);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ sheetCommonObj.setStaticCombo(me.sheet, 0, 5, ration.rationAssList.length, me.setting.comboItems, false);
|
|
|
|
+ sheetCommonObj.setDynamicCombo(me.sheet, ration.rationAssList.length, 5, me.sheet.getRowCount() - ration.rationAssList.length, me.setting.comboItems, false, false);
|
|
|
|
+ }
|
|
sheetCommonObj.showData(me.sheet, me.setting, ration.rationAssList);
|
|
sheetCommonObj.showData(me.sheet, me.setting, ration.rationAssList);
|
|
}
|
|
}
|
|
}
|
|
}
|