|
@@ -40,7 +40,7 @@ var rationAssistOprObj = {
|
|
|
args.sheet.repaint();
|
|
|
let cellType = args.sheet.getCellType(args.row, 5);
|
|
|
if(cellType.typeName !== 'undefined' && cellType.typeName === '1'){
|
|
|
- sheetCommonObj.setStaticCombo(args.sheet, 0, 5, 0, me.setting.comboItems, false);
|
|
|
+ // sheetCommonObj.setStaticCombo(args.sheet, 0, 5, 0, me.setting.comboItems, false);
|
|
|
sheetCommonObj.setDynamicCombo(args.sheet, 0, 5, me.sheet.getRowCount(), me.setting.comboItems, false, false);
|
|
|
}
|
|
|
},
|
|
@@ -71,8 +71,8 @@ var rationAssistOprObj = {
|
|
|
me.sheet.getParent().focus(true);
|
|
|
});
|
|
|
sheetCommonObj.cleanData(me.sheet, me.setting, -1);
|
|
|
- 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.setStaticCombo(me.sheet, 0, 5, me.ration.rationAssList.length, me.setting.comboItems, false, false);
|
|
|
+ sheetCommonObj.setDynamicCombo(me.sheet, 0, 5, me.sheet.getRowCount(), me.setting.comboItems, false, false);
|
|
|
sheetCommonObj.showData(me.sheet, me.setting, me.ration.rationAssList);
|
|
|
},
|
|
|
|
|
@@ -119,8 +119,8 @@ var rationAssistOprObj = {
|
|
|
me.sheet.getParent().focus(true);
|
|
|
});
|
|
|
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, assList.length, me.setting.comboItems, false, false);
|
|
|
+ sheetCommonObj.setDynamicCombo(me.sheet, 0, 5, me.sheet.getRowCount(), me.setting.comboItems, false, false);
|
|
|
sheetCommonObj.showData(me.sheet, me.setting, assList);
|
|
|
},
|
|
|
|
|
@@ -162,8 +162,8 @@ var rationAssistOprObj = {
|
|
|
workBook.focus(true);
|
|
|
});
|
|
|
sheetCommonObj.cleanData(me.sheet, me.setting, -1);
|
|
|
- sheetCommonObj.setStaticCombo(me.sheet, 0, 5, curCahe.length, me.setting.comboItems, false);
|
|
|
- sheetCommonObj.setDynamicCombo(me.sheet, curCahe.length, 5, me.sheet.getRowCount() - curCahe.length, me.setting.comboItems, false);
|
|
|
+ //sheetCommonObj.setStaticCombo(me.sheet, 0, 5, curCahe.length, me.setting.comboItems, false);
|
|
|
+ sheetCommonObj.setDynamicCombo(me.sheet, 0, 5, me.sheet.getRowCount(), me.setting.comboItems, false);
|
|
|
sheetCommonObj.showData(me.sheet, me.setting, curCahe);
|
|
|
}
|
|
|
}
|
|
@@ -181,13 +181,13 @@ var rationAssistOprObj = {
|
|
|
|
|
|
if (ration == undefined || ration.rationAssList == undefined ||
|
|
|
ration.rationAssList.length == 0){
|
|
|
- sheetCommonObj.setStaticCombo(me.sheet, 0, 5, 0, me.setting.comboItems, false);
|
|
|
+ //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.setStaticCombo(me.sheet, 0, 5, ration.rationAssList.length, me.setting.comboItems, false);
|
|
|
+ sheetCommonObj.setDynamicCombo(me.sheet, 0, 5, me.sheet.getRowCount(), me.setting.comboItems, false, false);
|
|
|
}
|
|
|
sheetCommonObj.showData(me.sheet, me.setting, ration.rationAssList);
|
|
|
}
|