|
@@ -726,49 +726,38 @@ let rationOprObj = {
|
|
|
sheetGLJ = rationGLJOprObj.sheet, settingGLJ = rationGLJOprObj.setting,
|
|
sheetGLJ = rationGLJOprObj.sheet, settingGLJ = rationGLJOprObj.setting,
|
|
|
sheetCoe = rationCoeOprObj.sheet, settingCoe = rationCoeOprObj.setting,
|
|
sheetCoe = rationCoeOprObj.sheet, settingCoe = rationCoeOprObj.setting,
|
|
|
sheetAss = rationAssistOprObj.sheet, settingAss = rationAssistOprObj.setting;
|
|
sheetAss = rationAssistOprObj.sheet, settingAss = rationAssistOprObj.setting;
|
|
|
- //sheetInst = rationInstObj.sheet, settingInst = rationInstObj.setting;
|
|
|
|
|
if (me.workBook) {
|
|
if (me.workBook) {
|
|
|
- if (me.currentRations && me.currentRations["_SEC_ID_" + sectionID] && me.currentRations["_SEC_ID_" + sectionID].length > 0) {
|
|
|
|
|
|
|
+ sheetCommonObj.cleanData(me.workBook.getSheet(0), me.setting, -1);
|
|
|
|
|
+ if (me.currentRations && me.currentRations["_SEC_ID_" + sectionID]) {
|
|
|
let cacheSection = me.currentRations["_SEC_ID_" + sectionID];
|
|
let cacheSection = me.currentRations["_SEC_ID_" + sectionID];
|
|
|
- sheetCommonObj.cleanData(me.workBook.getSheet(0), me.setting, -1);
|
|
|
|
|
sheetsOprObj.showData(me.workBook.getSheet(0), me.setting, cacheSection);
|
|
sheetsOprObj.showData(me.workBook.getSheet(0), me.setting, cacheSection);
|
|
|
- //combo
|
|
|
|
|
- //sheetCommonObj.setStaticCombo(me.workBook.getActiveSheet(), 0, 2, cacheSection.length, rationUnits, 10, false);
|
|
|
|
|
- //--sheetCommonObj.setDynamicCombo(me.workBook.getActiveSheet(), 0, 2, me.workBook.getActiveSheet().getRowCount(), rationUnits, 10, false);
|
|
|
|
|
if(me.mixDel === 1){
|
|
if(me.mixDel === 1){
|
|
|
let row = me.workBook.getSheet(0).getSelections()[0].row;
|
|
let row = me.workBook.getSheet(0).getSelections()[0].row;
|
|
|
if (cacheSection && row < cacheSection.length) {
|
|
if (cacheSection && row < cacheSection.length) {
|
|
|
sheetCommonObj.cleanData(sheetGLJ, settingGLJ, -1);
|
|
sheetCommonObj.cleanData(sheetGLJ, settingGLJ, -1);
|
|
|
sheetCommonObj.cleanData(sheetCoe, settingCoe, -1);
|
|
sheetCommonObj.cleanData(sheetCoe, settingCoe, -1);
|
|
|
sheetCommonObj.cleanData(sheetAss, settingAss, -1);
|
|
sheetCommonObj.cleanData(sheetAss, settingAss, -1);
|
|
|
- //sheetCommonObj.cleanData(sheetInst, settingInst, -1);
|
|
|
|
|
rationGLJOprObj.getGljItems(cacheSection[row]);
|
|
rationGLJOprObj.getGljItems(cacheSection[row]);
|
|
|
rationCoeOprObj.getCoeItems(cacheSection[row]);
|
|
rationCoeOprObj.getCoeItems(cacheSection[row]);
|
|
|
rationAssistOprObj.getAssItems(cacheSection[row]);
|
|
rationAssistOprObj.getAssItems(cacheSection[row]);
|
|
|
- //rationInstObj.getInstItems(cacheSection[row]);
|
|
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
rationGLJOprObj.currentRationItem = null;
|
|
rationGLJOprObj.currentRationItem = null;
|
|
|
sheetCommonObj.cleanData(sheetGLJ, settingGLJ, -1);
|
|
sheetCommonObj.cleanData(sheetGLJ, settingGLJ, -1);
|
|
|
sheetCommonObj.cleanData(sheetCoe, settingCoe, -1);
|
|
sheetCommonObj.cleanData(sheetCoe, settingCoe, -1);
|
|
|
sheetCommonObj.cleanData(sheetAss, settingAss, -1);
|
|
sheetCommonObj.cleanData(sheetAss, settingAss, -1);
|
|
|
- //sheetCommonObj.cleanData(sheetInst, settingInst, -1);
|
|
|
|
|
sheetCommonObj.setDynamicCombo(sheetAss, 0, 5, sheetAss.getRowCount(), rationAssistOprObj.setting.comboItems, false, false);
|
|
sheetCommonObj.setDynamicCombo(sheetAss, 0, 5, sheetAss.getRowCount(), rationAssistOprObj.setting.comboItems, false, false);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
sheetCommonObj.setDynamicCombo(sheetAss, 0, 5, sheetAss.getRowCount(), rationAssistOprObj.setting.comboItems, false, false);
|
|
sheetCommonObj.setDynamicCombo(sheetAss, 0, 5, sheetAss.getRowCount(), rationAssistOprObj.setting.comboItems, false, false);
|
|
|
- //--sheetCommonObj.setDynamicCombo(me.workBook.getActiveSheet(), 0, 2, me.workBook.getActiveSheet().getRowCount(), rationUnits, 10, false);
|
|
|
|
|
//清除ration数据及工料机数据
|
|
//清除ration数据及工料机数据
|
|
|
rationGLJOprObj.currentRationItem = null;
|
|
rationGLJOprObj.currentRationItem = null;
|
|
|
- sheetCommonObj.cleanSheet(me.workBook.getSheet(0), me.setting, -1);
|
|
|
|
|
sheetCommonObj.cleanSheet(sheetGLJ, settingGLJ, -1);
|
|
sheetCommonObj.cleanSheet(sheetGLJ, settingGLJ, -1);
|
|
|
sheetCommonObj.cleanSheet(sheetCoe, settingCoe, -1);
|
|
sheetCommonObj.cleanSheet(sheetCoe, settingCoe, -1);
|
|
|
sheetCommonObj.cleanSheet(sheetAss, settingAss, -1);
|
|
sheetCommonObj.cleanSheet(sheetAss, settingAss, -1);
|
|
|
- //sheetCommonObj.cleanSheet(sheetInst, settingInst, -1);
|
|
|
|
|
}
|
|
}
|
|
|
- //--- me.workBook.focus(true);
|
|
|
|
|
}
|
|
}
|
|
|
sectionTreeObj.workBook.focus(true);
|
|
sectionTreeObj.workBook.focus(true);
|
|
|
},
|
|
},
|