Commit b29568b3 by yukang

处理计划与订单关联关系

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