Commit cb45a13b by yukang

更新数据

parent aaf8be59
...@@ -359,26 +359,8 @@ function checkIn(id) { ...@@ -359,26 +359,8 @@ function checkIn(id) {
callbackName: checkInCallback callbackName: checkInCallback
}); });
} }
checkInCallback = function () { checkInCallback = function (e) {
var block = detailGrid.getEiBlock(); resultGrid.setIn
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});
} }
let selectStock = function (id) { let selectStock = function (id) {
JSColorbox.open({ JSColorbox.open({
......
...@@ -25,7 +25,8 @@ $(function () { ...@@ -25,7 +25,8 @@ $(function () {
||e.eiInfo.extAttr.methodName == 'insert' ||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){ ||e.eiInfo.extAttr.methodName == 'delete' ){
query(); query();
queryNum() queryNum();
refreshDetailGrid();
} }
} }
} }
...@@ -33,6 +34,7 @@ $(function () { ...@@ -33,6 +34,7 @@ $(function () {
$("#QUERY").on("click", query); $("#QUERY").on("click", query);
}); });
/** /**
...@@ -42,7 +44,6 @@ $(window).load(function () { ...@@ -42,7 +44,6 @@ $(window).load(function () {
// 查询 // 查询
query(); query();
}); });
/** /**
* 查询 * 查询
*/ */
...@@ -50,6 +51,18 @@ function query() { ...@@ -50,6 +51,18 @@ function query() {
resultGrid.dataSource.page(1); 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