付款单保存修改自定义项赋值
This commit is contained in:
parent
24ce82f463
commit
4c3e02ef80
|
@ -13,6 +13,7 @@ import java.util.Map;
|
|||
import nc.bs.dao.BaseDAO;
|
||||
import nc.bs.dao.DAOException;
|
||||
import nc.itf.scmpub.reference.uap.bd.currency.CurrencyInfo;
|
||||
import nc.jdbc.framework.processor.ColumnProcessor;
|
||||
import nc.pubitf.ic.flowaccount.BillInfo;
|
||||
import nc.pubitf.ic.flowaccount.FlowAccountQuery;
|
||||
import nc.vo.ic.general.define.ICBillBodyVO;
|
||||
|
@ -287,11 +288,16 @@ public class SaveAction implements ICommonAction {
|
|||
operator.processICBillstatusForWeb(retcard);
|
||||
|
||||
// 获取来源单据号
|
||||
// String sourceBillNo = (String) vo.getHead().getAttributeValue("55A2250500000006");
|
||||
// if (StringUtils.isNotEmpty(sourceBillNo)) {
|
||||
// // 更新来源单据状态为 "已处理"
|
||||
// updateSourceBillStatus(sourceBillNo, "已处理");
|
||||
// }
|
||||
ICBillBodyVO[] bodys = vo.getChildrenVO();
|
||||
for(ICBillBodyVO body : bodys){
|
||||
String billid = body.getCfirstbillhid();
|
||||
String billid2 = body.getCfirstbillbid();
|
||||
//合格入库数量=数量
|
||||
if (StringUtils.isNotEmpty(billid) && body.getCfirsttype().equals("55A2")) {
|
||||
// 更新来源单据状态为 完成泰
|
||||
updateSourceBillStatus(billid,billid2, "2");
|
||||
}
|
||||
}
|
||||
|
||||
// 其他处理逻辑
|
||||
String ccurrencyid = (String) vo.getBody(0).getAttributeValue("ccurrencyid");
|
||||
|
@ -309,13 +315,20 @@ public class SaveAction implements ICommonAction {
|
|||
handler.process();
|
||||
return retcard;
|
||||
}
|
||||
private void updateSourceBillStatus(String sourceBillNo, String status) throws DAOException {
|
||||
|
||||
private void updateSourceBillStatus(String sourceBillNo,String sourceBillbNo, String status) throws DAOException {
|
||||
BaseDAO baseDAO = new BaseDAO();
|
||||
//1.查询 流程生产订单明细行产品:合格入库数量=数量
|
||||
String sql = "update mm_pickm set cstatus = '" + status + "' where ccode = '" + sourceBillNo + "'";
|
||||
// BaseDAO baseDAO = new BaseDAO();
|
||||
// baseDAO.executeUpdate(sql);
|
||||
//2.更新流程生产订单明细行对应产品的下游单据备料计划状态改为完成态
|
||||
String getPlanNumSql = "SELECT nastnum from mm_mo WHERE cmoid='[sourceBillbNo]' AND nastnum = ninastnum";
|
||||
getPlanNumSql = getPlanNumSql.replace("[sourceBillbNo]", sourceBillbNo);
|
||||
Object nplanoutastnum = baseDAO.executeQuery(getPlanNumSql,
|
||||
new ColumnProcessor("nastnum"));
|
||||
if (nplanoutastnum == null) {
|
||||
return;
|
||||
}else{
|
||||
// 2.更新流程生产订单明细行对应产品的下游单据备料计划状态改为完成态
|
||||
String sql = "update mm_pickm set fbillstatus = '" + status + "' where csourcebillrowid = '" + sourceBillbNo + "'";
|
||||
baseDAO.executeUpdate(sql);
|
||||
}
|
||||
}
|
||||
|
||||
protected ICBillType getBilltype() {
|
||||
|
|
Loading…
Reference in New Issue