lihao-箱变-流程生产订单同步启源
This commit is contained in:
parent
8dcbbb8675
commit
0f2cd1c76d
|
|
@ -0,0 +1,265 @@
|
|||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by FernFlower decompiler)
|
||||
//
|
||||
|
||||
package nccloud.web.pu.arrival.action;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
import nc.bs.dao.BaseDAO;
|
||||
import nc.bs.dao.DAOException;
|
||||
import nc.bs.framework.common.NCLocator;
|
||||
import nc.bs.logging.Log;
|
||||
import nc.bs.trade.business.HYPubBO;
|
||||
import nc.bs.uapbd.util.MyHelper;
|
||||
import nc.bs.uapbd.util.ThirdPartyPostRequestUtil;
|
||||
import nc.impl.pubapp.pattern.data.bill.BillQuery;
|
||||
import nc.itf.bd.supplier.baseinfo.ISupplierBaseInfoQryService;
|
||||
import nc.vo.am.common.util.StringUtils;
|
||||
import nc.vo.bd.material.MaterialVO;
|
||||
import nc.vo.bd.material.measdoc.MeasdocVO;
|
||||
import nc.vo.bd.psn.PsndocVO;
|
||||
import nc.vo.bd.supplier.SupplierVersionVO;
|
||||
import nc.vo.org.OrgVO;
|
||||
import nc.vo.pu.m23.entity.ArriveHeaderVO;
|
||||
import nc.vo.pu.m23.entity.ArriveItemVO;
|
||||
import nc.vo.pu.m23.entity.ArriveVO;
|
||||
import nc.vo.pub.BusinessException;
|
||||
import nc.vo.qc.c003.entity.ReportHeaderVO;
|
||||
import nc.vo.qc.c003.entity.ReportItemVO;
|
||||
import nc.vo.qc.c003.entity.ReportVO;
|
||||
import nc.vo.sm.UserVO;
|
||||
import nccloud.base.exception.ExceptionUtils;
|
||||
import nccloud.baseapp.core.log.NCCForUAPLogger;
|
||||
import nccloud.framework.core.json.IJson;
|
||||
import nccloud.framework.web.action.itf.ICommonAction;
|
||||
import nccloud.framework.web.container.IRequest;
|
||||
import nccloud.framework.web.json.JsonFactory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class QCRptDataPushtoQmsAction implements ICommonAction {
|
||||
|
||||
private static final String LOG_INFO_NAME = "qyMesLog";
|
||||
private static final Log logger = Log.getInstance(LOG_INFO_NAME);
|
||||
private static final String reqUrl = "/IF_QyErpApi.ashx?action=addsjd";
|
||||
private Map<String, String> configParams;
|
||||
public QCRptDataPushtoQmsAction() {
|
||||
}
|
||||
public Object doAction(IRequest request) {
|
||||
String str = request.read();
|
||||
IJson json = JsonFactory.create();
|
||||
Map<String,Object> info = json.fromJson(str, Map.class);
|
||||
configParams = MyHelper.getConfigParams("xb-config", null);
|
||||
if (configParams.isEmpty()) {
|
||||
try {
|
||||
throw new BusinessException("箱变的QMS接口缺少配置");
|
||||
} catch (BusinessException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
try {
|
||||
String pks = (String) info.get("pks"); // 获取所有物料编码
|
||||
if (pks == null ) {
|
||||
nccloud.framework.core.exception.ExceptionUtils.wrapBusinessException("采购到货单不能为空");
|
||||
}
|
||||
String[] pk =new String[]{pks};
|
||||
// 上游到货单
|
||||
// 查询上游到货单数据
|
||||
BillQuery<ArriveVO> billquery = new BillQuery(ArriveVO.class);
|
||||
ArriveVO[] arriveVOS = billquery.query(pk);
|
||||
|
||||
// 过滤需要推送的ArriveVO(排除BVO中存在vbdef23为"Y"或"y"的记录)
|
||||
List<ArriveVO> validArriveList = new ArrayList<>();
|
||||
for (ArriveVO arriveVO : arriveVOS) {
|
||||
ArriveItemVO[] bvos = arriveVO.getBVO();
|
||||
boolean needSkip = false; // 标记是否需要跳过当前ArriveVO
|
||||
|
||||
// 检查当前到货单的所有明细,只要有一个明细的vbdef23为Y/y,就跳过整个到货单
|
||||
if (bvos != null && bvos.length > 0) {
|
||||
for (ArriveItemVO itemVO : bvos) {
|
||||
// 获取vbdef23字段值,处理null情况
|
||||
String vbdef23 = (String) itemVO.getAttributeValue("vbdef23");
|
||||
if (vbdef23 != null && "Y".equalsIgnoreCase(vbdef23)) {
|
||||
needSkip = true;
|
||||
break; // 只要有一个明细符合,直接跳出明细循环
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 不需要跳过的,加入有效列表
|
||||
if (!needSkip) {
|
||||
validArriveList.add(arriveVO);
|
||||
}
|
||||
}
|
||||
buildSyncData(arriveVOS);
|
||||
|
||||
} catch (BusinessException e) {
|
||||
ExceptionUtils.wrapException(e);
|
||||
}
|
||||
|
||||
return "success";
|
||||
}
|
||||
/**
|
||||
* 构建同步数据
|
||||
*
|
||||
* @param arriveVOS 到货单VO
|
||||
*/
|
||||
private void buildSyncData(ArriveVO[] arriveVOS) throws BusinessException {
|
||||
List<String> update =new ArrayList<>();
|
||||
for (ArriveVO arriveVO : arriveVOS) {
|
||||
ArriveHeaderVO hvo = arriveVO.getHVO();
|
||||
ArriveItemVO[] bvo = arriveVO.getBVO();
|
||||
String pk_arriveorder = hvo.getPk_arriveorder();
|
||||
String pkOrg = hvo.getPk_org();
|
||||
// 判断物料的业务单元是否是箱变公司,不是则跳过
|
||||
String orgCode = MyHelper.transferField(OrgVO.getDefaultTableName(), OrgVO.CODE, OrgVO.PK_ORG, pkOrg);
|
||||
if (checkIfOrg(orgCode, configParams)) {
|
||||
continue;
|
||||
}
|
||||
// 查询供应商信息
|
||||
String pk_supplier_v = hvo.getPk_supplier_v();
|
||||
SupplierVersionVO supplierVersionVO = new SupplierVersionVO();
|
||||
if (pk_supplier_v != null && !pk_supplier_v.isEmpty() && !"~".equals(pk_supplier_v)) {
|
||||
ISupplierBaseInfoQryService baseQryService = NCLocator.getInstance().lookup(ISupplierBaseInfoQryService.class);
|
||||
supplierVersionVO = baseQryService.querySupplierVersionByVID(pk_supplier_v);
|
||||
}
|
||||
// 制单人名称
|
||||
String creatorName = MyHelper.getStrValByCondition("sm_user", UserVO.USER_NAME,
|
||||
UserVO.CUSERID + " = '" + hvo.getBillmaker() + "'");
|
||||
JSONObject singleObj = new JSONObject();
|
||||
// 采购合同号
|
||||
String cghth = getCghthVal(hvo, bvo);
|
||||
// 启源送检单主表
|
||||
long cts = System.currentTimeMillis();
|
||||
singleObj.put("batchid", cts);
|
||||
singleObj.put("csdh", hvo.getVbillcode());// 送检单号,BIP到货单号
|
||||
singleObj.put("sjrq", hvo.getDmakedate().toString());// 送检日期,格式建议为 yyyy-MM-dd
|
||||
singleObj.put("wlgysid", supplierVersionVO.getCode());// 供应商编码
|
||||
singleObj.put("wlgysmc", supplierVersionVO.getName());// 供应商名称
|
||||
singleObj.put("sjr", creatorName);// 送检人,BIP制单人
|
||||
singleObj.put("cghth", cghth);// 采购合同号,关联对应的采购合同
|
||||
singleObj.put("bz", hvo.getVmemo());// 摘要备注,用于填写送检单的补充说明信息
|
||||
// 查询关联的质检报告-传入启源送检单的明细
|
||||
HYPubBO hybo = new HYPubBO();
|
||||
ReportItemVO[] reportItemVOS = (ReportItemVO[]) hybo.queryByCondition(ReportItemVO.class, " cfirstid = '" + pk_arriveorder + "'");
|
||||
JSONArray contentArray = new JSONArray();
|
||||
for (ReportItemVO reportItemVO : reportItemVOS) {
|
||||
String pkReportbill = reportItemVO.getPk_reportbill();
|
||||
ReportHeaderVO reportHeaderVO = (ReportHeaderVO) hybo.queryByPrimaryKey(ReportHeaderVO.class, pkReportbill);
|
||||
String pkMaterial = reportHeaderVO.getPk_material();
|
||||
Map<String, Object> materialMap = MyHelper.getMapValByCondition(MaterialVO.getDefaultTableName(), "code,name,materialspec,materialtype",
|
||||
"pk_material = '" + pkMaterial + "'");
|
||||
String cunitid = reportHeaderVO.getCunitid();// 主单位
|
||||
String cunitname = MyHelper.getStrValByCondition(MeasdocVO.getDefaultTableName(), MeasdocVO.NAME,
|
||||
MeasdocVO.PK_MEASDOC + " = '" + cunitid + "'");
|
||||
JSONObject itemObj = new JSONObject();
|
||||
itemObj.put("wlbh", materialMap.getOrDefault("code", "")); // 物料编码
|
||||
itemObj.put("wlmc", materialMap.getOrDefault("name", "")); // 物料名称
|
||||
String materialtype = skipNull(materialMap.get("materialtype"));
|
||||
String materialspec = skipNull(materialMap.get("materialspec"));
|
||||
itemObj.put("wlxhgg", materialtype + materialspec); // 物料型号规格
|
||||
itemObj.put("sjsl", reportHeaderVO.getNapplynum().toString()); // 送检数量(设计单位),按设计计量单位统计的送检数量
|
||||
itemObj.put("jldw", cunitname); // 计量单位
|
||||
itemObj.put("bz", reportItemVO.getVbdef1()); // 明细备注,用于填写该送检物料的补充说明
|
||||
itemObj.put("bipzyid", pkReportbill); // 质检报告ID
|
||||
itemObj.put("bipqdid", reportItemVO.getPk_reportbill_b()); // 质检报告明细ID
|
||||
contentArray.add(itemObj);
|
||||
}
|
||||
singleObj.put("Content", contentArray);
|
||||
pushData(singleObj);
|
||||
update.add(hvo.getPk_arriveorder());
|
||||
updateArrveOrder(hvo.getPk_arriveorder());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void updateArrveOrder(String pkArriveorder) throws DAOException {
|
||||
BaseDAO dao = new BaseDAO();
|
||||
String sql = "update po_arriveorder_b set vbdef23='Y' where pk_arriveorder='"
|
||||
+ pkArriveorder + "'";
|
||||
dao.executeUpdate(sql);
|
||||
}
|
||||
|
||||
private String getCghthVal(ArriveHeaderVO hvo, ArriveItemVO[] bvo) throws BusinessException {
|
||||
String cghth = "";
|
||||
String pkPupsndoc = hvo.getPk_pupsndoc();
|
||||
// 查询采购员名称
|
||||
String name = "";
|
||||
if (pkPupsndoc != null && !pkPupsndoc.isEmpty() && !"~".equals(pkPupsndoc)) {
|
||||
name = MyHelper.getStrValByCondition(PsndocVO.getDefaultTableName(), PsndocVO.NAME,
|
||||
PsndocVO.PK_PSNDOC + " = '" + pkPupsndoc + "'");
|
||||
}
|
||||
if (bvo != null && bvo.length > 0) {
|
||||
StringBuilder cghthBuilder = new StringBuilder();
|
||||
for (int i = 0; i < bvo.length; i++) {
|
||||
String vsourcecode = bvo[i].getVsourcecode();
|
||||
if (vsourcecode == null || vsourcecode.isEmpty() || "~".equals(vsourcecode)) {
|
||||
continue;
|
||||
}
|
||||
if (i > 0) {
|
||||
cghthBuilder.append(",");
|
||||
}
|
||||
cghthBuilder.append(vsourcecode);
|
||||
if (!name.isEmpty()) {
|
||||
cghthBuilder.append(name);
|
||||
}
|
||||
}
|
||||
cghth = cghthBuilder.toString();
|
||||
}
|
||||
return cghth;
|
||||
}
|
||||
|
||||
/**
|
||||
* 推送同步数据
|
||||
*/
|
||||
private void pushData(JSONObject param) throws BusinessException {
|
||||
// String jsonString = param.toJSONString();
|
||||
// 转json字符串的时候保留null值
|
||||
String jsonStr = JSON.toJSONString(param,
|
||||
SerializerFeature.WriteMapNullValue,
|
||||
SerializerFeature.WriteNullStringAsEmpty
|
||||
);
|
||||
logger.error("QMS-QC-param = " + jsonStr);
|
||||
NCCForUAPLogger.debug("QMS-QC-param = " + jsonStr);
|
||||
String baseUrl = configParams.get("qmsBaseUrl");
|
||||
String requestUrl = baseUrl + reqUrl;
|
||||
logger.error("QMS-QC-url = " + requestUrl);
|
||||
String result = ThirdPartyPostRequestUtil.sendPostRequest(requestUrl, jsonStr);
|
||||
NCCForUAPLogger.debug("QMS-QC-result = " + result);
|
||||
JSONObject resultObj = JSONObject.parseObject(result);
|
||||
logger.error("QMS-QC-res = " + result);
|
||||
|
||||
if (!"true".equals(resultObj.getString("success"))) {
|
||||
logger.error("QMS-QC-error,result[" + resultObj.toJSONString() + "]");
|
||||
throw new BusinessException("QMS-QC-error:" + resultObj.getString("message"));
|
||||
}
|
||||
}
|
||||
|
||||
private boolean checkIfOrg(String code, Map<String, String> configParams) throws BusinessException {
|
||||
String targetCode = configParams.get("xbOrg");
|
||||
if (targetCode == null || StringUtils.isEmpty(targetCode)) {
|
||||
throw new BusinessException("未配置组织参数");
|
||||
}
|
||||
String[] orgItem = targetCode.split(",");
|
||||
for (String orgCode : orgItem) {
|
||||
if (!orgCode.isEmpty() && orgCode.equals(code)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public String skipNull(Object value) {
|
||||
if ((value == null) || (value.toString().trim().length() == 0)) {
|
||||
return "";
|
||||
}
|
||||
return value.toString().trim();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,250 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<actions>
|
||||
<action>
|
||||
<name>pu.arrival.insert</name>
|
||||
<label>到货单新增</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.InsertAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.update</name>
|
||||
<label>到货单修改</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.UpdateAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.delete</name>
|
||||
<label>到货单删除</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.DeleteAction</clazz>
|
||||
<btncode>Delete</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.queryScheme</name>
|
||||
<label>到货单查询</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.QueryAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.pageQuery</name>
|
||||
<label>到货单列表态页签状态查询</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.PageQueryAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.queryCard</name>
|
||||
<label>到货单卡片态查询</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.QueryCardAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.saveSend</name>
|
||||
<label>到货单卡片态页签保存提交</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.SaveSendAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.commit</name>
|
||||
<label>到货单卡片态提交</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.CommitAction</clazz>
|
||||
<btncode>Commit</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.uncommit</name>
|
||||
<label>到货单收回按钮</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.UncommitAction</clazz>
|
||||
<btncode>UnCommit</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.approve</name>
|
||||
<label>到货单列表态审批</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ApproveAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.unapprove</name>
|
||||
<label>到货单列表态页取消审批</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.UnapproveAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.afterBodyEdit</name>
|
||||
<label>到货单表体编辑后事件</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.AfterBodyEditAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.afterFeeEdit</name>
|
||||
<label>到货单费用项编辑后事件</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.AfterFeeEditAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.afterFeeDetailEdit</name>
|
||||
<label>到货单费用明细编辑后事件</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.AfterFeeDetailEditAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.afterBodyForFeeEdit</name>
|
||||
<label>到货单费用明细编辑后事件</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.AfterBodyFeeDetailEditAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.crtAssert</name>
|
||||
<label>到货单生成设备卡片</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.CrtAssertCardAction</clazz>
|
||||
<btncode>GenAssertCard</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.delAssert</name>
|
||||
<label>到货单删除设备卡片</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.DelAssertCardAction</clazz>
|
||||
<btncode>DelAssertCard</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.qualityCheck</name>
|
||||
<label>到货单检验</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.QCAction</clazz>
|
||||
<btncode>Check</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.transAssert</name>
|
||||
<label>到货单转固</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.TransAssertAction</clazz>
|
||||
<btncode>GenTransAssert</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.delTransAssert</name>
|
||||
<label>到货单删除转固</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.DelTransAssertAction</clazz>
|
||||
<btncode>DelTransAssert</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.fixRate</name>
|
||||
<label>固定换算率</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.FixChangeRateAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.print</name>
|
||||
<label>到货单打印</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivePrintAction</clazz>
|
||||
<btncode>Print,OutPrint,Print_list</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.printPermiss</name>
|
||||
<label>到货单打印权限</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivePrintPermissionAction
|
||||
</clazz>
|
||||
<btncode>Print,Print_list</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.edit</name>
|
||||
<label>到货单编辑</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.EditAction</clazz>
|
||||
<btncode>Edit</btncode>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.afterEditHead</name>
|
||||
<label>到货单表头编辑后</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivalHeadAfterEditAction
|
||||
</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.beforeEditHead</name>
|
||||
<label>到货单表头编辑前</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivalHeadBeforeEditAction
|
||||
</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.quickArr</name>
|
||||
<label>到货单快速收货</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.QuickArrAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.quickArrQuery</name>
|
||||
<label>到货单快速收货查询</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.QuickArrQueryAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.queryParam</name>
|
||||
<label>到货单查询参数</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.QueryParamAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.combin</name>
|
||||
<label>到货单合并打印合并处理</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivalCombinAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.combinprint</name>
|
||||
<label>到货单合并打印</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivalCombinPrintAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.querysplitparam</name>
|
||||
<label>到货单分单打印分单处理</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArriveSplitGetParamAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.splitprint</name>
|
||||
<label>到货单分单打印</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArriveSplitPrintAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.printbarcode</name>
|
||||
<label>打印条码</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.PrintBarCodeAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.dirprintbarcode</name>
|
||||
<label>直接打印条形码</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArriveDirPrintBarCodeAction
|
||||
</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.saveandcommit</name>
|
||||
<label>到货单保存提交</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.SaveAndCommitAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.materialsagacheck</name>
|
||||
<label>到货单跳转易耗品前saga检查</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.MaterialAssignAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.exttranstypequeryaction</name>
|
||||
<label>到货单交易类型扩展属性查询</label>
|
||||
<clazz>nccloud.web.pu.arrival.transtype.action.ExtTransTypeQueryAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.copybodyinsertfeedetail</name>
|
||||
<label>到货单物料行复制新增费用明细</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArriveCardCopyInsertFeeDetailAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.cardbodybatch</name>
|
||||
<label>到货单物料行复制新增费用明细</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivecardBodyBatchAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.headafterdbillddate</name>
|
||||
<label>到货单制单日期编辑后</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArriveHeadAfterDbilldateAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.insertfeedetail</name>
|
||||
<label>费用明细参照增行</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArriveInsertFeeDetailAction</clazz>
|
||||
</action>
|
||||
|
||||
<action>
|
||||
<name>pu.arrival.feeDetailBeforeEvent</name>
|
||||
<label>费用明细编辑性控制</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.ArrivefeeDetailBeforeAction</clazz>
|
||||
</action>
|
||||
<action>
|
||||
<name>pu.arrival.pushtoQms</name>
|
||||
<label>推送质检报告到qms</label>
|
||||
<clazz>nccloud.web.pu.arrival.action.QCRptDataPushtoQmsAction</clazz>
|
||||
</action>
|
||||
|
||||
</actions>
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<authorizes>
|
||||
<authorize>
|
||||
<appcode>400401200,400401204,400401206</appcode>
|
||||
<actions>
|
||||
<action>pu.arrival.insert</action>
|
||||
<action>pu.arrival.update</action>
|
||||
<action>pu.arrival.delete</action>
|
||||
<action>pu.arrival.queryScheme</action>
|
||||
<action>pu.arrival.pageQuery</action>
|
||||
<action>pu.arrival.queryCard</action>
|
||||
<action>pu.arrival.saveSend</action>
|
||||
<action>pu.arrival.commit</action>
|
||||
<action>pu.arrival.uncommit</action>
|
||||
<action>pu.arrival.uncommit</action>
|
||||
<action>pu.arrival.approve</action>
|
||||
<action>pu.arrival.unapprove</action>
|
||||
<action>pu.arrival.afterBodyEdit</action>
|
||||
<action>pu.arrival.crtAssert</action>
|
||||
<action>pu.arrival.delAssert</action>
|
||||
<action>pu.arrival.qualityCheck</action>
|
||||
<action>pu.arrival.transAssert</action>
|
||||
<action>pu.arrival.delTransAssert</action>
|
||||
<action>pu.arrival.fixRate</action>
|
||||
<action>pu.arrival.print</action>
|
||||
<action>pu.arrival.printPermiss</action>
|
||||
<action>pu.arrival.edit</action>
|
||||
<action>pu.arrival.afterEditHead</action>
|
||||
<action>pu.arrival.beforeEditHead</action>
|
||||
<action>pu.arrival.quickArr</action>
|
||||
<action>pu.arrival.quickArrQuery</action>
|
||||
<action>pu.arrival.queryOrder</action>
|
||||
<action>pu.arrival.queryOrderByPK</action>
|
||||
<action>pu.arrival.queryOrderItem</action>
|
||||
<action>pu.arrival.transferOrder</action>
|
||||
<action>pu.arrival.querySubcont</action>
|
||||
<action>pu.arrival.transferSubcont</action>
|
||||
<action>pu.arrival.queryReturnSubcont</action>
|
||||
<action>pu.arrival.queryReturnOrder</action>
|
||||
<action>pu.arrival.transferReturnOrder</action>
|
||||
<action>pu.arrival.transferReturnSubcont</action>
|
||||
<action>pu.arrival.return23</action>
|
||||
<action>pu.arrival.queryParam</action>
|
||||
<action>pu.arrival.combin</action>
|
||||
<action>pu.arrival.combinprint</action>
|
||||
<action>pu.arrival.querysplitparam</action>
|
||||
<action>pu.arrival.splitprint</action>
|
||||
<action>pu.arrival.printbarcode</action>
|
||||
<action>pu.arrival.dirprintbarcode</action>
|
||||
<action>barcode.init.barcodeinitaction</action>
|
||||
<action>pu.arrival.pushToC005Check</action>
|
||||
<action>pu.arrival.scanTrans</action>>
|
||||
<action>pu.arrival.saveandcommit</action>
|
||||
<action>pu.arrival.materialsagacheck</action>
|
||||
<action>pu.arrival.afterFeeDetailEdit</action>
|
||||
<action>pu.arrival.afterFeeEdit</action>
|
||||
<action>pu.arrival.afterBodyForFeeEdit</action>
|
||||
<action>pu.arrival.copybodyinsertfeedetail</action>
|
||||
<action>pu.arrival.cardbodybatch</action>
|
||||
<action>pu.arrival.insertfeedetail</action>
|
||||
<action>pu.arrival.headafterdbillddate</action>
|
||||
<action>pu.arrival.feeDetailBeforeEvent</action>
|
||||
<action>pu.arrival.pushtoQms</action>
|
||||
</actions>
|
||||
</authorize>
|
||||
|
||||
<authorize>
|
||||
<appcode>*</appcode>
|
||||
<actions>
|
||||
<action>pu.arrival.exttranstypequeryaction</action>
|
||||
</actions>
|
||||
</authorize>
|
||||
</authorizes>
|
||||
Loading…
Reference in New Issue