|
楼主 |
发表于 2019-10-15 11:06:23
|
显示全部楼层
Model.prototype.grid1RowCheck = function(event){
var rowID = event.row.getID();
var checkStatus = event.checked ;
if(checkStatus){
var options = {
defaultValues : [
{procedureID:rowID,weight:weight},
]
};
this.comp("selectData").newData(options);
}else {
var row = this.comp("selectData").getRowByID(rowID);
if(row){
this.comp("selectData").deleteData(row);
}
}
if("是" == this.opera){
this.opera = "否";
var me = this ;
var mouldCode = event.row.val('mouldCode');
var combination = event.row.val('fCombination');
var taskBookID = event.row.val('fTaskBookID');
this.comp("reData").setFilter("filter","MES_ProductionOrder.fMouldCode = '"+mouldCode+"' and CAPP_MouldProductList.fCombination = '"+combination+
"' and MES_ProductionOrder.fTaskBookID = '"+taskBookID+"' and MES_ProcedurePlan <> '"+rowID+"' ");
this.comp("reData").refreshData();
var count = this.comp("reData").count();
if(count > 0 ){
this.comp("reData").each(function(p){
var procedureID = p.row.val("MES_ProcedurePlan");
me.comp("grid1").setRowChecked(procedureID,checkStatus);
});
}
this.opera = "是";
}
};
|
|