|
@@ -221,7 +221,8 @@ let projectGljObject = {
|
|
this.initSheet(this.infoClassSheet, this.infoClassSetting);
|
|
this.initSheet(this.infoClassSheet, this.infoClassSetting);
|
|
this.infoClassSheet.name('infoClassSheet');
|
|
this.infoClassSheet.name('infoClassSheet');
|
|
this.infoClassSheet.setRowCount(0);
|
|
this.infoClassSheet.setRowCount(0);
|
|
- this.infoClassSheet.bind(GC.Spread.Sheets.Events.SelectionChanged, this.infoClassSelectionChange);
|
|
|
|
|
|
+ //this.infoClassSheet.bind(GC.Spread.Sheets.Events.SelectionChanged, this.infoClassSelectionChange);
|
|
|
|
+ this.infoClassSheet.bind(GC.Spread.Sheets.Events.CellClick,this.infoClassClick);
|
|
if (projectReadOnly) {
|
|
if (projectReadOnly) {
|
|
disableSpread(this.infoClassSpread);
|
|
disableSpread(this.infoClassSpread);
|
|
}
|
|
}
|
|
@@ -644,17 +645,27 @@ let projectGljObject = {
|
|
infoPriceSelectionChange:function(sender, args){
|
|
infoPriceSelectionChange:function(sender, args){
|
|
projectGljObject.setInfoClassSelection();
|
|
projectGljObject.setInfoClassSelection();
|
|
},
|
|
},
|
|
- infoClassSelectionChange:function(sender, args){
|
|
|
|
|
|
+ infoClassClick:function(sender,args){
|
|
let me = projectGljObject;
|
|
let me = projectGljObject;
|
|
- let row = args.newSelections[0].row;
|
|
|
|
|
|
+ let row = args.row;
|
|
let infoClass = me.infoClassData[row];
|
|
let infoClass = me.infoClassData[row];
|
|
if(infoClass){
|
|
if(infoClass){
|
|
|
|
+ if( $("#info_class").val() == infoClass.ID) return; // 不用重复查询
|
|
$("#info_class").val(infoClass.ID);
|
|
$("#info_class").val(infoClass.ID);
|
|
$("#info_glj_name").val("")//清除工料机名字搜索项
|
|
$("#info_glj_name").val("")//清除工料机名字搜索项
|
|
me.searchInfoPrice();
|
|
me.searchInfoPrice();
|
|
}
|
|
}
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
+ /* infoClassSelectionChange:function(sender, args){
|
|
|
|
+ let me = projectGljObject;
|
|
|
|
+ let row = args.newSelections[0].row;
|
|
|
|
+ let infoClass = me.infoClassData[row];
|
|
|
|
+ if(infoClass){
|
|
|
|
+ $("#info_class").val(infoClass.ID);
|
|
|
|
+ $("#info_glj_name").val("")//清除工料机名字搜索项
|
|
|
|
+ me.searchInfoPrice();
|
|
|
|
+ }
|
|
|
|
+ }, */
|
|
onProjectGljSelectionChange: function (sender, args) {
|
|
onProjectGljSelectionChange: function (sender, args) {
|
|
let me = projectGljObject;
|
|
let me = projectGljObject;
|
|
let newSel = args.newSelections[0];
|
|
let newSel = args.newSelections[0];
|