|
@@ -71,27 +71,6 @@ let rationOprObj = {
|
|
|
let row = info.newSelections[0].row;
|
|
|
let me = rationOprObj;
|
|
|
me.rationSelInit(row);
|
|
|
- /* sheetCommonObj.cleanSheet(sheetGLJ, settingGLJ, -1);
|
|
|
- sheetCommonObj.cleanSheet(sheetCoe, settingCoe, -1);
|
|
|
- sheetCommonObj.cleanSheet(sheetAss, settingAss, -1);
|
|
|
- sheetCommonObj.cleanSheet(sheetInst, settingInst, -1);
|
|
|
- let cacheSection = me.getCache();
|
|
|
- if (cacheSection && row < cacheSection.length) {
|
|
|
- rationGLJOprObj.getGljItems(cacheSection[row], function () {
|
|
|
- me.workBook.focus(true);
|
|
|
- });
|
|
|
- rationCoeOprObj.getCoeItems(cacheSection[row], function () {
|
|
|
- me.workBook.focus(true);
|
|
|
- });
|
|
|
- rationAssistOprObj.getAssItems(cacheSection[row]);
|
|
|
- rationInstObj.getInstItems(cacheSection[row], function () {
|
|
|
- me.workBook.focus(true);
|
|
|
- });
|
|
|
- }
|
|
|
- else {
|
|
|
- rationGLJOprObj.currentRationItem = null;
|
|
|
- }
|
|
|
- me.workBook.focus(true);*/
|
|
|
}
|
|
|
},
|
|
|
rationSelInit: function (row) {
|
|
@@ -636,7 +615,7 @@ let rationOprObj = {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getRationItems: function(sectionID){
|
|
|
+ getRationItems: function(sectionID, callback = null){
|
|
|
if (sectionID != -1) {
|
|
|
let me = rationOprObj;
|
|
|
me.mixUpdate = 0;
|
|
@@ -649,6 +628,9 @@ let rationOprObj = {
|
|
|
annotationOprObj.rationAnnotationOpr(me.currentRations["_SEC_ID_" + sectionID]);
|
|
|
me.showRationItems(sectionID);
|
|
|
sectionTreeObj.removeBtn.removeClass('disabled');
|
|
|
+ if(callback){
|
|
|
+ callback();
|
|
|
+ }
|
|
|
} else {
|
|
|
$.ajax({
|
|
|
type:"POST",
|
|
@@ -669,6 +651,9 @@ let rationOprObj = {
|
|
|
me.showRationItems(sectionID);
|
|
|
}
|
|
|
sectionTreeObj.removeBtn.removeClass('disabled');
|
|
|
+ if(callback) {
|
|
|
+ callback();
|
|
|
+ }
|
|
|
},
|
|
|
error:function(err){
|
|
|
sectionTreeObj.removeBtn.removeClass('disabled');
|