Commit b29568b3 by yukang

处理计划与订单关联关系

parent 04c2a659
......@@ -184,7 +184,7 @@ public class ServiceHPSC003 extends ServiceBase {
DaoUtils.update("HPSC003.update", HPSC003.toMap());
//生成生产订单
HashMap params = new HashMap();
params.put("parentPrdtCode",HPSC003.getId());
params.put("parentPrdtCode",HPSC003.getPlanInfoNo());
List list = dao.query("HPSC004.queryDetail",params,0,-999999);
for (int i = 0; i < list.size(); i ++) {
HPSC004 HPSC004 = (HPSC004) list.get(i);
......
......@@ -46,7 +46,7 @@
<EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn enable="false" ename="projCode" cname="项目编码"/>
<EF:EFColumn enable="false" ename="projName" cname="项目名称"/>
<EF:EFComboColumn cname="产品类型" ename="prdtType" width="90" align="center">
<EF:EFComboColumn cname="产品类型" ename="prdtType" width="90" align="center" required="true">
<EF:EFCodeOption codeName="hpjx.hpkc.inventType" condition="ITEM_CODE IN ('3','4')"/>
</EF:EFComboColumn>
<EF:EFColumn ename="prdtCode" required="true" cname="产品名称"/>
......
......@@ -49,8 +49,8 @@ $(function () {
detailGrid.setEiBlock(block);
}
var info = new EiInfo()
var parentPrdtCode = e.model['id'];
info.set("parentPrdtCode",parentPrdtCode);
var planInfoNo = e.model['planInfoNo'];
info.set("parentPrdtCode",planInfoNo);
EiCommunicator.send("HPSC004","queryDetail",info,{
onSuccess:function(ei){//返回结果集
detailGrid.setEiInfo(ei);
......
......@@ -32,19 +32,19 @@ $(function () {
callbackName: assignCallback
});
//分派可修改,不做判断
/*let num = 0;
let num = 0;
rows.forEach(function(element) {
if (element.status == 1) {
num++;
}
ids.push(element.id)
});
if (num > 0) {
message("勾选的数据中有已经分派的数据!");
return;
} else {
}*/
// if (num > 0) {
// message("勾选的数据中有已经分派的数据!");
// return;
// } else {
//
// }
});
......
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