|
@@ -54,7 +54,13 @@ $("#linkGCLMX").click(function(){
|
|
|
$("#linkJSCX").click(function(){ // 计算程序
|
|
|
subSpread.setActiveSheetIndex(4);
|
|
|
rationCalcView.initSheet(subSpread.getSheet(4));
|
|
|
- //rationCalcView.showData();
|
|
|
+ let sel = projectObj.mainController.tree.selected;
|
|
|
+ if (sel.sourceType == 'ration'){
|
|
|
+ rationCalcView.showData(sel);
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ rationCalcView.clearData();
|
|
|
+ };
|
|
|
});
|
|
|
|
|
|
$("#linkFXSM").click(function(){
|
|
@@ -67,4 +73,9 @@ $("#linkDESM").click(function(){
|
|
|
subSpread.setActiveSheetIndex(6);
|
|
|
// for test
|
|
|
subSpread.getActiveSheet().setValue(0, 0, "定额说明");
|
|
|
-});
|
|
|
+});
|
|
|
+
|
|
|
+function SubActiveSheetNameIs(sheetName){
|
|
|
+ let rst = subSpread.getActiveSheet().name() == sheetName;
|
|
|
+ return rst;
|
|
|
+}
|