Commit cb45a13b by yukang

更新数据

parent aaf8be59
......@@ -359,26 +359,8 @@ function checkIn(id) {
callbackName: checkInCallback
});
}
checkInCallback = function () {
var block = detailGrid.getEiBlock();
var result = resultGrid.getCheckedRows()
if (rows.length < 1) {
message("请选择数据");
return;
}
if (block != null) {
block.setRows([]);
detailGrid.setEiBlock(block);
}
var info = new EiInfo()
var productionOrderNo = result[0]['prodOrderNo'];
info.set("productionOrderNo",productionOrderNo);
EiCommunicator.send("HPSC006","queryDetail",info,{
onSuccess:function(ei){//返回结果集
detailGrid.setEiInfo(ei);
},onFail:function(ei){}
},{async:false});
checkInCallback = function (e) {
resultGrid.setIn
}
let selectStock = function (id) {
JSColorbox.open({
......
......@@ -25,7 +25,8 @@ $(function () {
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
queryNum()
queryNum();
refreshDetailGrid();
}
}
}
......@@ -33,6 +34,7 @@ $(function () {
$("#QUERY").on("click", query);
});
/**
......@@ -42,7 +44,6 @@ $(window).load(function () {
// 查询
query();
});
/**
* 查询
*/
......@@ -50,6 +51,18 @@ function query() {
resultGrid.dataSource.page(1);
}
function refreshDetailGrid() {
var result = parent.resultGrid.getCheckedRows()
var info = new EiInfo()
var productionOrderNo = result[0]['prodOrderNo'];
info.set("productionOrderNo",productionOrderNo);
EiCommunicator.send("HPSC006","queryDetail",info,{
onSuccess:function(ei){//返回结果集
parent.JSColorbox.setValueCallback(ei);
},onFail:function(ei){}
},{async:false});
}
/**
* 查询完成数量、重量
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment