diff --git a/mmpac/META-INF/mesdata.upm b/mmpac/META-INF/mesdata.upm new file mode 100644 index 00000000..1167c1ab --- /dev/null +++ b/mmpac/META-INF/mesdata.upm @@ -0,0 +1,10 @@ + + + + + + nccloud.api.mmpac.service.MesDataService + nc.bs.mmpac.pmo.pac0002.Impl.MesDataServiceImpl + + + \ No newline at end of file diff --git a/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/Impl/MesDataServiceImpl.java b/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/Impl/MesDataServiceImpl.java new file mode 100644 index 00000000..59656b77 --- /dev/null +++ b/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/Impl/MesDataServiceImpl.java @@ -0,0 +1,93 @@ +package nc.bs.mmpac.pmo.pac0002.Impl; + +import com.alibaba.fastjson.JSONObject; +import nc.bd.itf.util.MesApiSignatureUtil; +import nc.bs.dao.BaseDAO; +import nc.bs.dao.DAOException; +import nc.vo.mmpac.pmo.pac0002.entity.PMOAggVO; +import nc.vo.mmpac.pmo.pac0002.entity.PMOItemVO; +import nc.vo.pub.BusinessException; +import nc.vo.pub.VOStatus; +import nccloud.api.mmpac.service.MesDataService; +import org.apache.commons.httpclient.HttpStatus; +import java.io.IOException; +import java.net.URI; +import java.net.URLEncoder; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.charset.StandardCharsets; +import java.time.Duration; +import java.util.*; + +/** + * MES新增接口数据组装服务实现类 + */ +public class MesDataServiceImpl implements MesDataService { + public static final String mes = "http://172.18.6.3:8282/SD_TKDLDQ_SD_TKDLDQ/Api/Public/Pushsoft.Data/Import"; + // 单例HttpClient,避免重复创建 + private static final HttpClient httpClient = HttpClient.newBuilder() + .connectTimeout(Duration.ofSeconds(10)) + .build(); + private static final int TIMEOUT = 60000; // 超时时间设置为60秒 + + @Override + public Map assembleAndSaveProductionOrder(PMOAggVO[] pmoAggVOS, String UNIQUE_ID, List jsonObjects) { + Map map = new HashMap<>(); + try { + for (String jsonObject : jsonObjects) { + JSONObject jsonObject2 = new JSONObject(); + jsonObject2.put("data", jsonObject); + jsonObject2.put("uniqueId", UNIQUE_ID); + String header = MesApiSignatureUtil.buldeRequestHeader(jsonObject2); + String body = this.doPost(jsonObject, header, UNIQUE_ID); + JSONObject jsonObject1 = JSONObject.parseObject(body); + String mesDocEntry = jsonObject1.getJSONObject("Data").getJSONObject("Key").getString("DocEntry"); + if (UNIQUE_ID.equals("ff3f024bc1")){ + map.put(JSONObject.parseObject(jsonObject).get("Z_cmoid").toString(), mesDocEntry); + } + if (UNIQUE_ID.equals("ff3f024d12")){ +// map.put("10070","10070"); + + + map.put(mesDocEntry, mesDocEntry); + } + } + + } catch (Exception e) { + throw new RuntimeException(e); + } + return map; + } + + private String doPost(String jsonData, String header, String uniqueId) { + // 构造表单数据 + try { + // 关键修复:手动对表单参数进行URLEncoder编码,确保与签名原始数据的对应关系 + String encodedData = URLEncoder.encode(jsonData, StandardCharsets.UTF_8.name()); + String encodedUniqueId = URLEncoder.encode(uniqueId, StandardCharsets.UTF_8.name()); + + // 构建正确的表单请求体(application/x-www-form-urlencoded格式) + String formBody = "data=" + encodedData + "&uniqueId=" + encodedUniqueId; + // 构造请求 + HttpRequest request = HttpRequest.newBuilder().uri(URI.create(mes)) + .header("Content-Type", "application/x-www-form-urlencoded;charset=utf-8") + .header("Accept", "application/json").header("X-PushApi-User", "ERP") + .header("X-PushApi-Digest", header).POST(HttpRequest.BodyPublishers.ofString(formBody.toString())) + .build(); + + // 执行请求 + HttpResponse response = httpClient.send(request, HttpResponse.BodyHandlers.ofString()); + if (response.statusCode() != HttpStatus.SC_OK){ + throw new RuntimeException(response.body()); + } + return response.body(); + } catch (IOException | InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + return null; + + } + +} \ No newline at end of file diff --git a/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/bp/rule/UpdateAfterToMesRule.java b/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/bp/rule/UpdateAfterToMesRule.java new file mode 100644 index 00000000..b362982d --- /dev/null +++ b/mmpac/src/private/nc/bs/mmpac/pmo/pac0002/bp/rule/UpdateAfterToMesRule.java @@ -0,0 +1,81 @@ +package nc.bs.mmpac.pmo.pac0002.bp.rule; + +import com.alibaba.fastjson.JSONObject; +import nc.bs.framework.common.NCLocator; +import nc.impl.pubapp.pattern.rule.IRule; +import nc.pubitf.bd.accessor.GeneralAccessorFactory; +import nc.pubitf.bd.accessor.IGeneralAccessor; +import nc.vo.bd.accessor.IBDData; +import nc.vo.mmpac.pmo.pac0002.entity.PMOAggVO; +import nc.vo.mmpac.pmo.pac0002.entity.PMOItemVO; +import nc.vo.pub.BusinessException; +import nccloud.api.mmpac.service.MesDataService; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** + * 修改的时候调用mes的修改接口 + */ +public class UpdateAfterToMesRule implements IRule { + @Override + public void process(PMOAggVO[] pmoAggVOS) { + MesDataService lookup = NCLocator.getInstance().lookup(MesDataService.class); + String UNIQUE_ID = "ff3f024d18"; + List jsonObjects = null; + try { + jsonObjects = this.buildParams(pmoAggVOS); + } catch (BusinessException e) { + throw new RuntimeException(e); + } + if (jsonObjects.size()>0){ + Map map = lookup.assembleAndSaveProductionOrder(pmoAggVOS, UNIQUE_ID, jsonObjects); + } + + } + /** + * 组装参数 + */ + private List buildParams(PMOAggVO[] pmoAggVOS) throws BusinessException { + + IGeneralAccessor accessor = GeneralAccessorFactory.getAccessor("2ee58f9b-781b-469f-b1d8-1816842515c3"); + + List maps = new ArrayList<>(); + for (PMOAggVO pmoAggVO : pmoAggVOS) { + PMOItemVO[] childrenVO = pmoAggVO.getChildrenVO(); + for (PMOItemVO childrenVO1 : childrenVO) { + boolean b = this.checkOrg(pmoAggVO); + if (!b)continue; + if (childrenVO1.getVdef41() == null||childrenVO1.getVdef41().equals("")||childrenVO1.getVdef40().equals("")||childrenVO1.getVdef40()==null) continue; + JSONObject params = new JSONObject(); + //增加表体备注 + BigDecimal qty = childrenVO1.getNplanputnum() != null ? + childrenVO1.getNplanputnum().toBigDecimal() : BigDecimal.ZERO; + params.put("DocEntry", childrenVO1.getVdef41()); + params.put("Qty", qty); + params.put("Remarks",childrenVO1.getVnote()==null?"":childrenVO1.getVnote());//备注 + params.put("SchedStart", childrenVO1.getTplanstarttime()==null?"":childrenVO1.getTplanstarttime().toString()); + params.put("SchedEnd", childrenVO1.getTplanendtime()==null?"":childrenVO1.getTplanendtime().toString()); + IBDData docByPk = accessor.getDocByPk(childrenVO1.getCprojectid()); + params.put("ProjectID", docByPk==null?"":docByPk.getCode()); + maps.add( params.toJSONString()); + } + } + return maps; + } + /** + * 校验组织是否是C023 + */ + private boolean checkOrg(PMOAggVO pmoAggVO) { + IGeneralAccessor accessorOrg = GeneralAccessorFactory.getAccessor("985be8a4-3a36-4778-8afe-2d8ed3902659"); + String pkOrg = pmoAggVO.getParentVO().getPk_org(); + IBDData docByPk = accessorOrg.getDocByPk(pkOrg); + if (docByPk.getCode().equals("C023")) { + return true; + } + + return false; + } +} diff --git a/mmpac/src/public/nc/bd/itf/util/MesApiSignatureUtil.java b/mmpac/src/public/nc/bd/itf/util/MesApiSignatureUtil.java new file mode 100644 index 00000000..7dbec26c --- /dev/null +++ b/mmpac/src/public/nc/bd/itf/util/MesApiSignatureUtil.java @@ -0,0 +1,239 @@ +package nc.bd.itf.util; + +import com.alibaba.fastjson.JSONObject; + +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.ArrayList; +import java.util.Comparator; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * MES系统API签名工具类 + * 用于生成符合MES系统要求的请求摘要 + */ +public class MesApiSignatureUtil { + private static final String Url = "http://192.168.110.62:8282/AIO8/Api//Public/"; + private static final String AppID = "ERP"; + private static final String AppVersion = "v250930"; + private static final String AppSecret = "2e13b8dc412b42968abbe105360155af"; + private static final String UserID = "ERP"; + /** + * API请求参数键值对 + */ + public static class ApiKeyValue { + private String key; + private String value; + + public ApiKeyValue(String key, String value) { + this.key = key; + this.value = value; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + /** + * 计算当前时间戳(秒级) + * @return 时间戳 + */ + public static long getCurrentTimestamp() { + return System.currentTimeMillis() / 1000; + } + + /** + * 对请求参数进行排序 + * @param params 参数列表 + * @return 排序后的参数列表 + */ + public static List sortParams(List params) { + if (params == null || params.isEmpty()) { + return new ArrayList<>(); + } + + // 按参数名称进行升序排序 + return params.stream() + .sorted(Comparator.comparing(ApiKeyValue::getKey)) + .collect(Collectors.toList()); + } + + /** + * 合并参数为字符串 + * @param sortedParams 排序后的参数列表 + * @return 合并后的参数字符串 + */ + public static String mergeParams(List sortedParams) { + if (sortedParams == null || sortedParams.isEmpty()) { + return ""; + } + + StringBuilder paramString = new StringBuilder(); + for (ApiKeyValue kv : sortedParams) { + paramString.append(kv.getKey()).append(kv.getValue()); + } + return paramString.toString(); + } + + /** + * 计算摘要 + * @param paramString 合并后的参数字符串 + * @param timeStamp 时间戳 + * @return 计算后的的摘要 + */ + public static String calcDigestDigest(String paramString, long timeStamp) { + try { + // 参数字符串 + 时间戳 + 密钥 + String content = paramString + timeStamp + AppSecret; + + // 创建MD5消息摘要 + MessageDigest md5 = MessageDigest.getInstance("MD5"); + + // 计算摘要 + byte[] digestBytes = md5.digest(content.getBytes(StandardCharsets.UTF_8)); + + // 转为十六进制字符串 + StringBuilder result = new StringBuilder(); + for (byte b : digestBytes) { + result.append(String.format("%02x", b)); + } + + return result.toString(); + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException("MD5算法不可用", e); + } + } + + /** + * 生成完整的摘要请求头 + * @param timeStamp 时间戳 + * @param digest 摘要 + * @return 请求头内容 + */ + public static String generateDigestHeader(long timeStamp, String digest) { + return String.format("AppID=%s, AppVersion=%s, Timestamp=%d, Digest=%s", + AppID, AppVersion, timeStamp, digest); + } + + /** + * 生成完整的摘要请求头(自动计算时间戳) + * @param params 请求参数 + * @param secret 密钥 + * @return 请求头内容 + */ + public static String generateDigestHeader(List params, String secret) { + // 计算时间戳 + long timeStamp = getCurrentTimestamp(); + + // 排序参数 + List sortedParams = sortParams(params); + + // 合并参数 + String paramString = mergeParams(sortedParams); + + // 计算摘要 + String digest = calcDigestDigest(paramString, timeStamp); + + // 生成请求头 + return generateDigestHeader(timeStamp, digest); + } + + /** + * 生成完整的摘要请求头(自动计算时间戳) + * @param paramMap 请求参数Map + * @param secret 密钥 + * @return 请求头内容 + */ + public static String generateDigestHeader(Map paramMap, String secret) { + if (paramMap == null || paramMap.isEmpty()) { + return generateDigestHeader(new ArrayList<>(), secret); + } + + List params = paramMap.entrySet().stream() + .map(entry -> new ApiKeyValue(entry.getKey(), entry.getValue())) + .collect(Collectors.toList()); + + return generateDigestHeader(params, secret); + } + + public static String buldeRequestHeader(JSONObject paramsJson) { + // 创建测试参数 + List params = new ArrayList<>(); + for (String key : paramsJson.keySet()) { + params.add(new ApiKeyValue(key, paramsJson.getString(key))); + } + // 方法1:分步处理 + System.out.println("=== 方法1:分步处理 ==="); + long timeStamp = getCurrentTimestamp(); + System.out.println("时间戳: " + timeStamp); + + List sortedParams = sortParams(params); + System.out.println("排序后参数:"); + sortedParams.forEach(kv -> System.out.println(kv.getKey() + "=" + kv.getValue())); + + String paramString = mergeParams(sortedParams); + System.out.println("合并后参数: " + paramString); + + String digest = calcDigestDigest(paramString, timeStamp); + System.out.println("计算的摘要: " + digest); + + String header = generateDigestHeader(timeStamp, digest); + return header; + } + + /** + * 主方法用于测试 + */ + public static void main(String[] args) { + try { + /* 创建测试参数 + List params = new ArrayList<>(); + params.add(new ApiKeyValue("参数名3", "参数值3")); + params.add(new ApiKeyValue("参数名1", "参数值1")); + params.add(new ApiKeyValue("参数名2", "参数值2")); + + // 方法1:分步处理 + System.out.println("=== 方法1:分步处理 ==="); + long timeStamp = getCurrentTimestamp(); + System.out.println("时间戳: " + timeStamp); + + List sortedParams = sortParams(params); + System.out.println("排序后参数:"); + sortedParams.forEach(kv -> System.out.println(kv.getKey() + "=" + kv.getValue())); + + String paramString = mergeParams(sortedParams); + System.out.println("合并后参数: " + paramString); + + String digest = calcDigestDigest(paramString, timeStamp); + System.out.println("计算的摘要: " + digest); + + String header = generateDigestHeader(timeStamp, digest); + System.out.println("请求头: " + header);*/ + + JSONObject paramsJson = new JSONObject(); + paramsJson.put("code","0001"); + paramsJson.put("name","张三"); + String header = MesApiSignatureUtil.buldeRequestHeader(paramsJson); + + System.out.println("请求头: " + header); + } catch (Exception e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/mmpac/src/public/nc/vo/mmpac/pmo/pac0002/entity/PMOItemVO.java b/mmpac/src/public/nc/vo/mmpac/pmo/pac0002/entity/PMOItemVO.java new file mode 100644 index 00000000..c5628f6e --- /dev/null +++ b/mmpac/src/public/nc/vo/mmpac/pmo/pac0002/entity/PMOItemVO.java @@ -0,0 +1,1817 @@ +package nc.vo.mmpac.pmo.pac0002.entity; + +import java.util.HashMap; +import java.util.Map; +import nc.vo.annotation.MDEntityInfo; +import nc.vo.bd.feature.ffile.entity.AggFFileVO; +import nc.vo.mmpac.pmo.pac0002.constant.PMOConst; +import nc.vo.pub.IVOMeta; +import nc.vo.pub.SuperVO; +import nc.vo.pub.lang.UFBoolean; +import nc.vo.pub.lang.UFDate; +import nc.vo.pub.lang.UFDateTime; +import nc.vo.pub.lang.UFDouble; +import nc.vo.pubapp.pattern.model.meta.entity.vo.VOMetaFactory; + +public class PMOItemVO extends SuperVO { + private static final long serialVersionUID = 358676745112625565L; + private String cpmohid; + private PMOSerialNoVO[] serialnos; + private PMOPlanOutputVO[] planoutputs; + private PMOTaskDetailVO[] taskdetails; + private PMOProcedureVO[] procedures; + private PMOSrcVO[] pmosrcs; + private Map grandMap = new HashMap(); + private AggFFileVO ffvo; + public static final String CPMOHID = "cpmohid"; + public static final String CMOID = "cmoid"; + public static final String VROWNO = "vrowno"; + public static final String PK_GROUP = "pk_group"; + public static final String PK_ORG = "pk_org"; + public static final String PK_ORG_V = "pk_org_v"; + public static final String FITEMSTATUS = "fitemstatus"; + public static final String CPARENTPROCEDUREID = "cparentprocedureid"; + public static final String FSRCMOOPER = "fsrcmooper"; + public static final String CMATERIALID = "cmaterialid"; + public static final String CMATERIALVID = "cmaterialvid"; + public static final String CUNITID = "cunitid"; + public static final String CASTUNITID = "castunitid"; + public static final String NNUM = "nnum"; + public static final String NASTNUM = "nastnum"; + public static final String VCHANGERATE = "vchangerate"; + public static final String NPLANPUTASTNUM = "nplanputastnum"; + public static final String NPLANPUTNUM = "nplanputnum"; + public static final String NMMASTNUM = "nmmastnum"; + public static final String NMMNUM = "nmmnum"; + public static final String NRWXIS = "nrwxis"; + public static final String NWRASTNUM = "nwrastnum"; + public static final String NWRNUM = "nwrnum"; + public static final String CDEPTID = "cdeptid"; + public static final String CDEPTVID = "cdeptvid"; + public static final String CEMPLOYEEID = "cemployeeid"; + public static final String CWKID = "cwkid"; + public static final String CCLASSID = "cclassid"; + public static final String CTEAMID = "cteamid"; + public static final String CBOMVERSIONID = "cbomversionid"; + public static final String VBOMVERSION = "vbomversion"; + public static final String CPACKBOMID = "cpackbomid"; + public static final String VPACKBOMVERSION = "vpackbomversion"; + public static final String CRTVERSIONID = "crtversionid"; + public static final String VRTVERSION = "vrtversion"; + public static final String TPLANSTARTTIME = "tplanstarttime"; + public static final String TPLANENDTIME = "tplanendtime"; + public static final String TWILLENDTIME = "twillendtime"; + public static final String TACTSTARTTIME = "tactstarttime"; + public static final String TACTENDTIME = "tactendtime"; + public static final String MOCLOSER = "mocloser"; + public static final String MOCLOSEDTIME = "tmoclosedtime"; + public static final String VSALEBILLCODE = "vsalebillcode"; + public static final String CCUSTMATERIALID = "ccustmaterialid"; + public static final String CBATCHID = "cbatchid"; + public static final String VBATCHCODE = "vbatchcode"; + public static final String VCONFIGCODE = "vconfigcode"; + public static final String BURGENT = "burgent"; + public static final String VNOTE = "vnote"; + public static final String FPRINTSTATUS = "fprintstatus"; + public static final String CQUALITYLEVELID = "cqualitylevelid"; + public static final String CVENDORID = "cvendorid"; + public static final String CVENDORVID = "cvendorvid"; + public static final String CPRODUCTORID = "cproductorid"; + public static final String CPROJECTID = "cprojectid"; + public static final String CCUSTOMERID = "ccustomerid"; + public static final String CCUSTOMERVID = "ccustomervid"; + public static final String CFFILEID = "cffileid"; + public static final String VFREE1 = "vfree1"; + public static final String VFREE2 = "vfree2"; + public static final String VFREE3 = "vfree3"; + public static final String VFREE4 = "vfree4"; + public static final String VFREE5 = "vfree5"; + public static final String VFREE6 = "vfree6"; + public static final String VFREE7 = "vfree7"; + public static final String VFREE8 = "vfree8"; + public static final String VFREE9 = "vfree9"; + public static final String VFREE10 = "vfree10"; + public static final String VDEF1 = "vdef1"; + public static final String VDEF2 = "vdef2"; + public static final String VDEF3 = "vdef3"; + public static final String VDEF4 = "vdef4"; + public static final String VDEF5 = "vdef5"; + public static final String VDEF6 = "vdef6"; + public static final String VDEF7 = "vdef7"; + public static final String VDEF8 = "vdef8"; + public static final String VDEF9 = "vdef9"; + public static final String VDEF10 = "vdef10"; + public static final String VDEF11 = "vdef11"; + public static final String VDEF12 = "vdef12"; + public static final String VDEF13 = "vdef13"; + public static final String VDEF14 = "vdef14"; + public static final String VDEF15 = "vdef15"; + public static final String VDEF16 = "vdef16"; + public static final String VDEF17 = "vdef17"; + public static final String VDEF18 = "vdef18"; + public static final String VDEF19 = "vdef19"; + public static final String VDEF20 = "vdef20"; + public static final String VDEF40 = "vdef40"; + public static final String VDEF41 = "vdef41"; + public static final String VSRCTRANTYPEID = "vsrctrantypeid"; + public static final String VSRCTRANTYPE = "vsrctrantype"; + public static final String VSRCTYPE = "vsrctype"; + public static final String VSRCID = "vsrcid"; + public static final String VSRCCODE = "vsrccode"; + public static final String VSRCBID = "vsrcbid"; + public static final String VSRCROWNO = "vsrcrowno"; + public static final String CREQUIREORG = "crequireorg"; + public static final String CREQUIREORGVID = "crequireorgvid"; + public static final String TREQUIREDATE = "trequiredate"; + public static final String TSUPPLYTIME = "tsupplytime"; + public static final String VFIRSTTRANTYPEID = "vfirsttrantypeid"; + public static final String VFIRSTTRANTYPE = "vfirsttrantype"; + public static final String VFIRSTTYPE = "vfirsttype"; + public static final String VFIRSTID = "vfirstid"; + public static final String VFIRSTCODE = "vfirstcode"; + public static final String VFIRSTBID = "vfirstbid"; + public static final String VFIRSTROWNO = "vfirstrowno"; + public static final String NZCGASTNUM = "nzcgastnum"; + public static final String NZCGNUM = "nzcgnum"; + public static final String NZWWASTNUM = "nzwwastnum"; + public static final String NZWWNUM = "nzwwnum"; + public static final String NZDBASTNUM = "nzdbastnum"; + public static final String NZDBNUM = "nzdbnum"; + public static final String TEMP_IDESTBILLTYPE = "temp_idestbilltype"; + public static final String TEMP_NTOGOASTNUM = "temp_ntogoastnum"; + public static final String TEMP_NTOGONUM = "temp_ntogonum"; + public static final String TEMP_NGOASTNUM = "temp_ngoastnum"; + public static final String TEMP_NGONUM = "temp_ngonum"; + public static final String NHOLDASTNUM = "nholdastnum"; + public static final String NHOLDNUM = "nholdnum"; + public static final String NINASTNUM = "ninastnum"; + public static final String NINNUM = "ninnum"; + public static final String NREASTNUM = "nreastnum"; + public static final String NRENUM = "nrenum"; + public static final String NREBILLASTNUM = "nrebillastnum"; + public static final String NREBILLNUM = "nrebillnum"; + public static final String NRWASTNUM = "nrwastnum"; + public static final String NRWNUM = "nrwnum"; + public static final String NRWBILLASTNUM = "nrwbillastnum"; + public static final String NRWBILLNUM = "nrwbillnum"; + public static final String VPARENTMOTYPE = "vparentmotype"; + public static final String VPARENTBILLID = "vparentbillid"; + public static final String VPARENTBILLCODE = "vparentbillcode"; + public static final String CPARENTMOBID = "cparentmobid"; + public static final String VPARENTMOROWNO = "vparentmorowno"; + public static final String VSRCMOTYPE = "vsrcmotype"; + public static final String VFROMID = "vfromid"; + public static final String VFROMCODE = "vfromcode"; + public static final String CSRCMOBID = "csrcmobid"; + public static final String VSRCMOROWNO = "vsrcmorowno"; + public static final String VFIRSTMOTYPE = "vfirstmotype"; + public static final String CFIRSTMOID = "cfirstmoid"; + public static final String VFIRSTMOCODE = "vfirstmocode"; + public static final String CFIRSTMOBID = "cfirstmobid"; + public static final String VFIRSTMOROWNO = "vfirstmorowno"; + public static final String TEMP_PUORG = "temp_puorg"; + public static final String TEMP_SUPPLIER = "temp_supplier"; + public static final String TEMP_SUPPLIERVID = "temp_suppliervid"; + public static final String TEMP_CURRENCYID = "temp_currencyid"; + public static final String TEMP_ISSC = "temp_issc"; + public static final String DSOURCETS = "dsourcets"; + public static final String TEMP_NMAXRENUM = "temp_nmaxrenum"; + public static final String TEMP_NMAXREASTNUM = "temp_nmaxreastnum"; + public static final String TEMP_NBCRENUM = "temp_nbcrenum"; + public static final String TEMP_NBCREASTNUM = "temp_nbcreastnum"; + public static final String TEMP_ISGRAND = "temp_isgrand"; + public static final String TEMP_OUTTYPE = "temp_outtype"; + public static final String TEMP_MAINMATERIALID = "temp_mainmaterialid"; + public static final String TEMP_MAINMATERIALVID = "temp_mainmaterialvid"; + public static final String TEMP_MAINBID = "temp_mainbid"; + public static final String VBATCHDEF1 = "vbatchdef1"; + public static final String VBATCHDEF2 = "vbatchdef2"; + public static final String VBATCHDEF3 = "vbatchdef3"; + public static final String VBATCHDEF4 = "vbatchdef4"; + public static final String VBATCHDEF5 = "vbatchdef5"; + public static final String VBATCHDEF6 = "vbatchdef6"; + public static final String VBATCHDEF7 = "vbatchdef7"; + public static final String VBATCHDEF8 = "vbatchdef8"; + public static final String VBATCHDEF9 = "vbatchdef9"; + public static final String VBATCHDEF10 = "vbatchdef10"; + public static final String VBATCHDEF11 = "vbatchdef11"; + public static final String VBATCHDEF12 = "vbatchdef12"; + public static final String VBATCHDEF13 = "vbatchdef13"; + public static final String VBATCHDEF14 = "vbatchdef14"; + public static final String VBATCHDEF15 = "vbatchdef15"; + public static final String VBATCHDEF16 = "vbatchdef16"; + public static final String VBATCHDEF17 = "vbatchdef17"; + public static final String VBATCHDEF18 = "vbatchdef18"; + public static final String VBATCHDEF19 = "vbatchdef19"; + public static final String VBATCHDEF20 = "vbatchdef20"; + public static final String VBATCHNOTE = "vbatchnote"; + public static final String NREJECTASTNUM = "nrejectastnum"; + public static final String NREJECTNUM = "nrejectnum"; + public static final String VECNCODE = "vecncode"; + public static final String CECNID = "cecnid"; + public static final String EXTENDMSG = "extendmsg"; + public static final String CINWAREHOUSEID = "cinwarehouseid"; + public static final String TABLENAME = "mm_mo"; + + + public Map getGrandMap() { + return this.grandMap; + } + + public AggFFileVO getFfvo() { + return this.ffvo; + } + + public void setFfvo(AggFFileVO ffvo) { + this.ffvo = ffvo; + } + + public String getCpmohid() { + return this.cpmohid; + } + + public void setCpmohid(String newCpmohid) { + this.cpmohid = newCpmohid; + } + + public String getCmoid() { + return (String)this.getAttributeValue("cmoid"); + } + + public void setCmoid(String newCmoid) { + this.setAttributeValue("cmoid", newCmoid); + } + + public PMOSerialNoVO[] getSerialnos() { + return this.serialnos; + } + + public void setSerialnos(PMOSerialNoVO[] newSerialnos) { + this.serialnos = newSerialnos; + } + + public PMOPlanOutputVO[] getPlanoutputs() { + return this.planoutputs; + } + + public void setPlanoutputs(PMOPlanOutputVO[] newPlanoutputs) { + this.planoutputs = newPlanoutputs; + } + + public PMOTaskDetailVO[] getTaskdetails() { + return this.taskdetails; + } + + public void setTaskdetails(PMOTaskDetailVO[] newTaskdetails) { + this.taskdetails = newTaskdetails; + } + + public PMOProcedureVO[] getProcedures() { + return this.procedures; + } + + public void setProcedures(PMOProcedureVO[] newProcedures) { + this.procedures = newProcedures; + } + + public PMOSrcVO[] getPmosrcs() { + return this.pmosrcs; + } + + public void setPmosrcs(PMOSrcVO[] newPmosrcs) { + this.pmosrcs = newPmosrcs; + } + + public String getVrowno() { + return (String)this.getAttributeValue("vrowno"); + } + + public void setVrowno(String newVrowno) { + this.setAttributeValue("vrowno", newVrowno); + } + + public String getPk_group() { + return (String)this.getAttributeValue("pk_group"); + } + + public void setPk_group(String newPk_group) { + this.setAttributeValue("pk_group", newPk_group); + } + + public String getPk_org() { + return (String)this.getAttributeValue("pk_org"); + } + + public void setPk_org(String newPk_org) { + this.setAttributeValue("pk_org", newPk_org); + } + + public String getPk_org_v() { + return (String)this.getAttributeValue("pk_org_v"); + } + + public void setPk_org_v(String newPk_org_v) { + this.setAttributeValue("pk_org_v", newPk_org_v); + } + + public Integer getFitemstatus() { + return (Integer)this.getAttributeValue("fitemstatus"); + } + + public void setFitemstatus(Integer newFitemstatus) { + this.setAttributeValue("fitemstatus", newFitemstatus); + } + + public String getCparentprocedureid() { + return (String)this.getAttributeValue("cparentprocedureid"); + } + + public void setCparentprocedureid(String newCparentprocedureid) { + this.setAttributeValue("cparentprocedureid", newCparentprocedureid); + } + + public Integer getFsrcmooper() { + return (Integer)this.getAttributeValue("fsrcmooper"); + } + + public void setFsrcmooper(Integer newFsrcmooper) { + this.setAttributeValue("fsrcmooper", newFsrcmooper); + } + + public String getCmaterialid() { + return (String)this.getAttributeValue("cmaterialid"); + } + + public void setCmaterialid(String newCmaterialid) { + this.setAttributeValue("cmaterialid", newCmaterialid); + } + + public String getCmaterialvid() { + return (String)this.getAttributeValue("cmaterialvid"); + } + + public void setCmaterialvid(String newCmaterialvid) { + this.setAttributeValue("cmaterialvid", newCmaterialvid); + } + + public String getCunitid() { + return (String)this.getAttributeValue("cunitid"); + } + + public void setCunitid(String newCunitid) { + this.setAttributeValue("cunitid", newCunitid); + } + + public String getCastunitid() { + return (String)this.getAttributeValue("castunitid"); + } + + public void setCastunitid(String newCastunitid) { + this.setAttributeValue("castunitid", newCastunitid); + } + + public UFDouble getNnum() { + return (UFDouble)this.getAttributeValue("nnum"); + } + + public void setNnum(UFDouble newNnum) { + this.setAttributeValue("nnum", newNnum); + } + + public UFDouble getNastnum() { + return (UFDouble)this.getAttributeValue("nastnum"); + } + + public void setNastnum(UFDouble newNastnum) { + this.setAttributeValue("nastnum", newNastnum); + } + + public String getVchangerate() { + return (String)this.getAttributeValue("vchangerate"); + } + + public void setVchangerate(String newVchangerate) { + this.setAttributeValue("vchangerate", newVchangerate); + } + + public UFDouble getNplanputastnum() { + return (UFDouble)this.getAttributeValue("nplanputastnum"); + } + + public void setNplanputastnum(UFDouble newNplanputastnum) { + this.setAttributeValue("nplanputastnum", newNplanputastnum); + } + + public UFDouble getNplanputnum() { + return (UFDouble)this.getAttributeValue("nplanputnum"); + } + + public void setNplanputnum(UFDouble newNplanputnum) { + this.setAttributeValue("nplanputnum", newNplanputnum); + } + + public UFDouble getNmmastnum() { + return (UFDouble)this.getAttributeValue("nmmastnum"); + } + + public void setNmmastnum(UFDouble newNmmastnum) { + this.setAttributeValue("nmmastnum", newNmmastnum); + } + + public UFDouble getNmmnum() { + return (UFDouble)this.getAttributeValue("nmmnum"); + } + + public void setNmmnum(UFDouble newNmmnum) { + this.setAttributeValue("nmmnum", newNmmnum); + } + + public UFDouble getNrwxis() { + return (UFDouble)this.getAttributeValue("nrwxis"); + } + + public void setNrwxis(UFDouble newNrwxis) { + this.setAttributeValue("nrwxis", newNrwxis); + } + + public UFDouble getNwrastnum() { + return (UFDouble)this.getAttributeValue("nwrastnum"); + } + + public void setNwrastnum(UFDouble newNwrastnum) { + this.setAttributeValue("nwrastnum", newNwrastnum); + } + + public UFDouble getNwrnum() { + return (UFDouble)this.getAttributeValue("nwrnum"); + } + + public void setNwrnum(UFDouble newNwrnum) { + this.setAttributeValue("nwrnum", newNwrnum); + } + + public String getCdeptid() { + return (String)this.getAttributeValue("cdeptid"); + } + + public void setCdeptid(String newCdeptid) { + this.setAttributeValue("cdeptid", newCdeptid); + } + + public String getCdeptvid() { + return (String)this.getAttributeValue("cdeptvid"); + } + + public void setCdeptvid(String newCdeptvid) { + this.setAttributeValue("cdeptvid", newCdeptvid); + } + + public String getCemployeeid() { + return (String)this.getAttributeValue("cemployeeid"); + } + + public void setCemployeeid(String newCemployeeid) { + this.setAttributeValue("cemployeeid", newCemployeeid); + } + + public String getCwkid() { + return (String)this.getAttributeValue("cwkid"); + } + + public void setCwkid(String newCwkid) { + this.setAttributeValue("cwkid", newCwkid); + } + + public String getCclassid() { + return (String)this.getAttributeValue("cclassid"); + } + + public void setCclassid(String newCclassid) { + this.setAttributeValue("cclassid", newCclassid); + } + + public String getCteamid() { + return (String)this.getAttributeValue("cteamid"); + } + + public void setCteamid(String newCteamid) { + this.setAttributeValue("cteamid", newCteamid); + } + + public String getCbomversionid() { + return (String)this.getAttributeValue("cbomversionid"); + } + + public void setCbomversionid(String newCbomversionid) { + this.setAttributeValue("cbomversionid", newCbomversionid); + } + + public String getVbomversion() { + return (String)this.getAttributeValue("vbomversion"); + } + + public void setVbomversion(String newVbomversion) { + this.setAttributeValue("vbomversion", newVbomversion); + } + + public String getCpackbomid() { + return (String)this.getAttributeValue("cpackbomid"); + } + + public void setCpackbomid(String newCpackbomid) { + this.setAttributeValue("cpackbomid", newCpackbomid); + } + + public String getVpackbomversion() { + return (String)this.getAttributeValue("vpackbomversion"); + } + + public void setVpackbomversion(String newVpackbomversion) { + this.setAttributeValue("vpackbomversion", newVpackbomversion); + } + + public String getCrtversionid() { + return (String)this.getAttributeValue("crtversionid"); + } + + public void setCrtversionid(String newCrtversionid) { + this.setAttributeValue("crtversionid", newCrtversionid); + } + + public String getVrtversion() { + return (String)this.getAttributeValue("vrtversion"); + } + + public void setVrtversion(String newVrtversion) { + this.setAttributeValue("vrtversion", newVrtversion); + } + + public UFDateTime getTplanstarttime() { + return (UFDateTime)this.getAttributeValue("tplanstarttime"); + } + + public void setTplanstarttime(UFDateTime newTplanstarttime) { + this.setAttributeValue("tplanstarttime", newTplanstarttime); + } + + public UFDateTime getTplanendtime() { + return (UFDateTime)this.getAttributeValue("tplanendtime"); + } + + public void setTplanendtime(UFDateTime newTplanendtime) { + this.setAttributeValue("tplanendtime", newTplanendtime); + } + + public UFDateTime getTwillendtime() { + return (UFDateTime)this.getAttributeValue("twillendtime"); + } + + public void setTwillendtime(UFDateTime newTwillendtime) { + this.setAttributeValue("twillendtime", newTwillendtime); + } + + public UFDateTime getTactstarttime() { + return (UFDateTime)this.getAttributeValue("tactstarttime"); + } + + public void setTactstarttime(UFDateTime newTactstarttime) { + this.setAttributeValue("tactstarttime", newTactstarttime); + } + + public UFDateTime getTactendtime() { + return (UFDateTime)this.getAttributeValue("tactendtime"); + } + + public void setTactendtime(UFDateTime newTactendtime) { + this.setAttributeValue("tactendtime", newTactendtime); + } + + public String getVsalebillcode() { + return (String)this.getAttributeValue("vsalebillcode"); + } + + public void setVsalebillcode(String newVsalebillcode) { + this.setAttributeValue("vsalebillcode", newVsalebillcode); + } + + public String getCcustmaterialid() { + return (String)this.getAttributeValue("ccustmaterialid"); + } + + public void setCcustmaterialid(String newCcustmaterialid) { + this.setAttributeValue("ccustmaterialid", newCcustmaterialid); + } + + public String getCbatchid() { + return (String)this.getAttributeValue("cbatchid"); + } + + public void setCbatchid(String newCbatchid) { + this.setAttributeValue("cbatchid", newCbatchid); + } + + public String getVbatchcode() { + return (String)this.getAttributeValue("vbatchcode"); + } + + public void setVbatchcode(String newVbatchcode) { + this.setAttributeValue("vbatchcode", newVbatchcode); + } + + public String getVconfigcode() { + return (String)this.getAttributeValue("vconfigcode"); + } + + public void setVconfigcode(String newVconfigcode) { + this.setAttributeValue("vconfigcode", newVconfigcode); + } + + public UFBoolean getBurgent() { + return (UFBoolean)this.getAttributeValue("burgent"); + } + + public void setBurgent(UFBoolean newBurgent) { + this.setAttributeValue("burgent", newBurgent); + } + + public String getVnote() { + return (String)this.getAttributeValue("vnote"); + } + + public void setVnote(String newVnote) { + this.setAttributeValue("vnote", newVnote); + } + + public Integer getFprintstatus() { + return (Integer)this.getAttributeValue("fprintstatus"); + } + + public void setFprintstatus(Integer newFprintstatus) { + this.setAttributeValue("fprintstatus", newFprintstatus); + } + + public String getCqualitylevelid() { + return (String)this.getAttributeValue("cqualitylevelid"); + } + + public void setCqualitylevelid(String newCqualitylevelid) { + this.setAttributeValue("cqualitylevelid", newCqualitylevelid); + } + + public String getCvendorid() { + return (String)this.getAttributeValue("cvendorid"); + } + + public void setCvendorid(String newCvendorid) { + this.setAttributeValue("cvendorid", newCvendorid); + } + + public String getCvendorvid() { + return (String)this.getAttributeValue("cvendorvid"); + } + + public void setCvendorvid(String newCvendorvid) { + this.setAttributeValue("cvendorvid", newCvendorvid); + } + + public String getCproductorid() { + return (String)this.getAttributeValue("cproductorid"); + } + + public void setCproductorid(String newCproductorid) { + this.setAttributeValue("cproductorid", newCproductorid); + } + + public String getCprojectid() { + return (String)this.getAttributeValue("cprojectid"); + } + + public void setCprojectid(String newCprojectid) { + this.setAttributeValue("cprojectid", newCprojectid); + } + + public String getCcustomerid() { + return (String)this.getAttributeValue("ccustomerid"); + } + + public void setCcustomerid(String newCcustomerid) { + this.setAttributeValue("ccustomerid", newCcustomerid); + } + + public String getCcustomervid() { + return (String)this.getAttributeValue("ccustomervid"); + } + + public void setCcustomervid(String newCcustomervid) { + this.setAttributeValue("ccustomervid", newCcustomervid); + } + + public String getCffileid() { + return (String)this.getAttributeValue("cffileid"); + } + + public void setCffileid(String cffileid) { + this.setAttributeValue("cffileid", cffileid); + } + + public String getVfree1() { + return (String)this.getAttributeValue("vfree1"); + } + + public void setVfree1(String newVfree1) { + this.setAttributeValue("vfree1", newVfree1); + } + + public String getVfree2() { + return (String)this.getAttributeValue("vfree2"); + } + + public void setVfree2(String newVfree2) { + this.setAttributeValue("vfree2", newVfree2); + } + + public String getVfree3() { + return (String)this.getAttributeValue("vfree3"); + } + + public void setVfree3(String newVfree3) { + this.setAttributeValue("vfree3", newVfree3); + } + + public String getVfree4() { + return (String)this.getAttributeValue("vfree4"); + } + + public void setVfree4(String newVfree4) { + this.setAttributeValue("vfree4", newVfree4); + } + + public String getVfree5() { + return (String)this.getAttributeValue("vfree5"); + } + + public void setVfree5(String newVfree5) { + this.setAttributeValue("vfree5", newVfree5); + } + + public String getVfree6() { + return (String)this.getAttributeValue("vfree6"); + } + + public void setVfree6(String newVfree6) { + this.setAttributeValue("vfree6", newVfree6); + } + + public String getVfree7() { + return (String)this.getAttributeValue("vfree7"); + } + + public void setVfree7(String newVfree7) { + this.setAttributeValue("vfree7", newVfree7); + } + + public String getVfree8() { + return (String)this.getAttributeValue("vfree8"); + } + + public void setVfree8(String newVfree8) { + this.setAttributeValue("vfree8", newVfree8); + } + + public String getVfree9() { + return (String)this.getAttributeValue("vfree9"); + } + + public void setVfree9(String newVfree9) { + this.setAttributeValue("vfree9", newVfree9); + } + + public String getVfree10() { + return (String)this.getAttributeValue("vfree10"); + } + + public void setVfree10(String newVfree10) { + this.setAttributeValue("vfree10", newVfree10); + } + + public String getVdef1() { + return (String)this.getAttributeValue("vdef1"); + } + + public void setVdef1(String newVdef1) { + this.setAttributeValue("vdef1", newVdef1); + } + + public String getVdef2() { + return (String)this.getAttributeValue("vdef2"); + } + + public void setVdef2(String newVdef2) { + this.setAttributeValue("vdef2", newVdef2); + } + + public String getVdef3() { + return (String)this.getAttributeValue("vdef3"); + } + + public void setVdef3(String newVdef3) { + this.setAttributeValue("vdef3", newVdef3); + } + + public String getVdef4() { + return (String)this.getAttributeValue("vdef4"); + } + + public void setVdef4(String newVdef4) { + this.setAttributeValue("vdef4", newVdef4); + } + + public String getVdef5() { + return (String)this.getAttributeValue("vdef5"); + } + + public void setVdef5(String newVdef5) { + this.setAttributeValue("vdef5", newVdef5); + } + + public String getVdef6() { + return (String)this.getAttributeValue("vdef6"); + } + + public void setVdef6(String newVdef6) { + this.setAttributeValue("vdef6", newVdef6); + } + + public String getVdef7() { + return (String)this.getAttributeValue("vdef7"); + } + + public void setVdef7(String newVdef7) { + this.setAttributeValue("vdef7", newVdef7); + } + + public String getVdef8() { + return (String)this.getAttributeValue("vdef8"); + } + + public void setVdef8(String newVdef8) { + this.setAttributeValue("vdef8", newVdef8); + } + + public String getVdef9() { + return (String)this.getAttributeValue("vdef9"); + } + + public void setVdef9(String newVdef9) { + this.setAttributeValue("vdef9", newVdef9); + } + + public String getVdef10() { + return (String)this.getAttributeValue("vdef10"); + } + + public void setVdef10(String newVdef10) { + this.setAttributeValue("vdef10", newVdef10); + } + + public String getVdef11() { + return (String)this.getAttributeValue("vdef11"); + } + + public void setVdef11(String newVdef11) { + this.setAttributeValue("vdef11", newVdef11); + } + + public String getVdef12() { + return (String)this.getAttributeValue("vdef12"); + } + + public void setVdef12(String newVdef12) { + this.setAttributeValue("vdef12", newVdef12); + } + + public String getVdef13() { + return (String)this.getAttributeValue("vdef13"); + } + + public void setVdef13(String newVdef13) { + this.setAttributeValue("vdef13", newVdef13); + } + + public String getVdef14() { + return (String)this.getAttributeValue("vdef14"); + } + + public void setVdef14(String newVdef14) { + this.setAttributeValue("vdef14", newVdef14); + } + + public String getVdef15() { + return (String)this.getAttributeValue("vdef15"); + } + + public void setVdef15(String newVdef15) { + this.setAttributeValue("vdef15", newVdef15); + } + + public String getVdef16() { + return (String)this.getAttributeValue("vdef16"); + } + + public void setVdef16(String newVdef16) { + this.setAttributeValue("vdef16", newVdef16); + } + + public String getVdef17() { + return (String)this.getAttributeValue("vdef17"); + } + + public void setVdef17(String newVdef17) { + this.setAttributeValue("vdef17", newVdef17); + } + + public String getVdef18() { + return (String)this.getAttributeValue("vdef18"); + } + + public void setVdef18(String newVdef18) { + this.setAttributeValue("vdef18", newVdef18); + } + + public String getVdef19() { + return (String)this.getAttributeValue("vdef19"); + } + + public void setVdef19(String newVdef19) { + this.setAttributeValue("vdef19", newVdef19); + } + + public String getVdef40() { + return (String)this.getAttributeValue("vdef40"); + } + + public void setVdef40(String newVdef40) { + this.setAttributeValue("vdef40", newVdef40); + } + public String getVdef41() { + return (String)this.getAttributeValue("vdef41"); + } + + public void setVdef41(String newVdef41) { + this.setAttributeValue("vdef41", newVdef41); + } + public String getVdef20() { + return (String)this.getAttributeValue("vdef20"); + } + + public void setVdef20(String newVdef20) { + this.setAttributeValue("vdef20", newVdef20); + } + + public String getVsrctrantypeid() { + return (String)this.getAttributeValue("vsrctrantypeid"); + } + + public void setVsrctrantypeid(String newVsrctrantypeid) { + this.setAttributeValue("vsrctrantypeid", newVsrctrantypeid); + } + + public String getVsrctrantype() { + return (String)this.getAttributeValue("vsrctrantype"); + } + + public void setVsrctrantype(String newVsrctrantype) { + this.setAttributeValue("vsrctrantype", newVsrctrantype); + } + + public String getVsrctype() { + return (String)this.getAttributeValue("vsrctype"); + } + + public void setVsrctype(String newVsrctype) { + this.setAttributeValue("vsrctype", newVsrctype); + } + + public String getVsrcid() { + return (String)this.getAttributeValue("vsrcid"); + } + + public void setVsrcid(String newVsrcid) { + this.setAttributeValue("vsrcid", newVsrcid); + } + + public String getVsrccode() { + return (String)this.getAttributeValue("vsrccode"); + } + + public void setVsrccode(String newVsrccode) { + this.setAttributeValue("vsrccode", newVsrccode); + } + + public String getVsrcbid() { + return (String)this.getAttributeValue("vsrcbid"); + } + + public void setVsrcbid(String newVsrcbid) { + this.setAttributeValue("vsrcbid", newVsrcbid); + } + + public String getVsrcrowno() { + return (String)this.getAttributeValue("vsrcrowno"); + } + + public void setVsrcrowno(String newVsrcrowno) { + this.setAttributeValue("vsrcrowno", newVsrcrowno); + } + + public String getCrequireorg() { + return (String)this.getAttributeValue("crequireorg"); + } + + public void setCrequireorg(String newCrequireorg) { + this.setAttributeValue("crequireorg", newCrequireorg); + } + + public String getCrequireorgvid() { + return (String)this.getAttributeValue("crequireorgvid"); + } + + public void setCrequireorgvid(String newCrequireorgvid) { + this.setAttributeValue("crequireorgvid", newCrequireorgvid); + } + + public UFDate getTrequiredate() { + return (UFDate)this.getAttributeValue("trequiredate"); + } + + public void setTrequiredate(UFDate newTrequiredate) { + this.setAttributeValue("trequiredate", newTrequiredate); + } + + public UFDate getTsupplytime() { + return (UFDate)this.getAttributeValue("tsupplytime"); + } + + public void setTsupplytime(UFDate newTsupplytime) { + this.setAttributeValue("tsupplytime", newTsupplytime); + } + + public String getVfirsttrantypeid() { + return (String)this.getAttributeValue("vfirsttrantypeid"); + } + + public void setVfirsttrantypeid(String newVfirsttrantypeid) { + this.setAttributeValue("vfirsttrantypeid", newVfirsttrantypeid); + } + + public String getVfirsttrantype() { + return (String)this.getAttributeValue("vfirsttrantype"); + } + + public void setVfirsttrantype(String newVfirsttrantype) { + this.setAttributeValue("vfirsttrantype", newVfirsttrantype); + } + + public String getVfirsttype() { + return (String)this.getAttributeValue("vfirsttype"); + } + + public void setVfirsttype(String newVfirsttype) { + this.setAttributeValue("vfirsttype", newVfirsttype); + } + + public String getVfirstid() { + return (String)this.getAttributeValue("vfirstid"); + } + + public void setVfirstid(String newVfirstid) { + this.setAttributeValue("vfirstid", newVfirstid); + } + + public String getVfirstcode() { + return (String)this.getAttributeValue("vfirstcode"); + } + + public void setVfirstcode(String newVfirstcode) { + this.setAttributeValue("vfirstcode", newVfirstcode); + } + + public String getVfirstbid() { + return (String)this.getAttributeValue("vfirstbid"); + } + + public void setVfirstbid(String newVfirstbid) { + this.setAttributeValue("vfirstbid", newVfirstbid); + } + + public String getVfirstrowno() { + return (String)this.getAttributeValue("vfirstrowno"); + } + + public void setVfirstrowno(String newVfirstrowno) { + this.setAttributeValue("vfirstrowno", newVfirstrowno); + } + + public UFDouble getNzcgastnum() { + return (UFDouble)this.getAttributeValue("nzcgastnum"); + } + + public void setNzcgastnum(UFDouble newNzcgastnum) { + this.setAttributeValue("nzcgastnum", newNzcgastnum); + } + + public UFDouble getNzcgnum() { + return (UFDouble)this.getAttributeValue("nzcgnum"); + } + + public void setNzcgnum(UFDouble newNzcgnum) { + this.setAttributeValue("nzcgnum", newNzcgnum); + } + + public UFDouble getNzwwastnum() { + return (UFDouble)this.getAttributeValue("nzwwastnum"); + } + + public void setNzwwastnum(UFDouble newNzwwastnum) { + this.setAttributeValue("nzwwastnum", newNzwwastnum); + } + + public UFDouble getNzwwnum() { + return (UFDouble)this.getAttributeValue("nzwwnum"); + } + + public void setNzwwnum(UFDouble newNzwwnum) { + this.setAttributeValue("nzwwnum", newNzwwnum); + } + + public UFDouble getNzdbastnum() { + return (UFDouble)this.getAttributeValue("nzdbastnum"); + } + + public void setNzdbastnum(UFDouble newNzdbastnum) { + this.setAttributeValue("nzdbastnum", newNzdbastnum); + } + + public UFDouble getNzdbnum() { + return (UFDouble)this.getAttributeValue("nzdbnum"); + } + + public void setNzdbnum(UFDouble newNzdbnum) { + this.setAttributeValue("nzdbnum", newNzdbnum); + } + + public Integer getTemp_idestbilltype() { + return (Integer)this.getAttributeValue("temp_idestbilltype"); + } + + public void setTemp_idestbilltype(Integer newTemp_idestbilltype) { + this.setAttributeValue("temp_idestbilltype", newTemp_idestbilltype); + } + + public UFDouble getTemp_ntogoastnum() { + return (UFDouble)this.getAttributeValue("temp_ntogoastnum"); + } + + public void setTemp_ntogoastnum(UFDouble newTemp_ntogoastnum) { + this.setAttributeValue("temp_ntogoastnum", newTemp_ntogoastnum); + } + + public UFDouble getTemp_ntogonum() { + return (UFDouble)this.getAttributeValue("temp_ntogonum"); + } + + public void setTemp_ntogonum(UFDouble newTemp_ntogonum) { + this.setAttributeValue("temp_ntogonum", newTemp_ntogonum); + } + + public UFDouble getTemp_ngoastnum() { + return (UFDouble)this.getAttributeValue("temp_ngoastnum"); + } + + public void setTemp_ngoastnum(UFDouble newTemp_ngoastnum) { + this.setAttributeValue("temp_ngoastnum", newTemp_ngoastnum); + } + + public UFDouble getTemp_ngonum() { + return (UFDouble)this.getAttributeValue("temp_ngonum"); + } + + public void setTemp_ngonum(UFDouble newTemp_ngonum) { + this.setAttributeValue("temp_ngonum", newTemp_ngonum); + } + + public UFDouble getNholdastnum() { + return (UFDouble)this.getAttributeValue("nholdastnum"); + } + + public void setNholdastnum(UFDouble newNholdastnum) { + this.setAttributeValue("nholdastnum", newNholdastnum); + } + + public UFDouble getNholdnum() { + return (UFDouble)this.getAttributeValue("nholdnum"); + } + + public void setNholdnum(UFDouble newNholdnum) { + this.setAttributeValue("nholdnum", newNholdnum); + } + + public UFDouble getNinastnum() { + return (UFDouble)this.getAttributeValue("ninastnum"); + } + + public void setNinastnum(UFDouble newNinastnum) { + this.setAttributeValue("ninastnum", newNinastnum); + } + + public UFDouble getNinnum() { + return (UFDouble)this.getAttributeValue("ninnum"); + } + + public void setNinnum(UFDouble newNinnum) { + this.setAttributeValue("ninnum", newNinnum); + } + + public UFDouble getNreastnum() { + return (UFDouble)this.getAttributeValue("nreastnum"); + } + + public void setNreastnum(UFDouble newNreastnum) { + this.setAttributeValue("nreastnum", newNreastnum); + } + + public UFDouble getNrenum() { + return (UFDouble)this.getAttributeValue("nrenum"); + } + + public void setNrenum(UFDouble newNrenum) { + this.setAttributeValue("nrenum", newNrenum); + } + + public UFDouble getNrebillastnum() { + return (UFDouble)this.getAttributeValue("nrebillastnum"); + } + + public void setNrebillastnum(UFDouble newNrebillastnum) { + this.setAttributeValue("nrebillastnum", newNrebillastnum); + } + + public UFDouble getNrebillnum() { + return (UFDouble)this.getAttributeValue("nrebillnum"); + } + + public void setNrebillnum(UFDouble newNrebillnum) { + this.setAttributeValue("nrebillnum", newNrebillnum); + } + + public UFDouble getNrwastnum() { + return (UFDouble)this.getAttributeValue("nrwastnum"); + } + + public void setNrwastnum(UFDouble newNrwastnum) { + this.setAttributeValue("nrwastnum", newNrwastnum); + } + + public UFDouble getNrwnum() { + return (UFDouble)this.getAttributeValue("nrwnum"); + } + + public void setNrwnum(UFDouble newNrwnum) { + this.setAttributeValue("nrwnum", newNrwnum); + } + + public UFDouble getNrwbillastnum() { + return (UFDouble)this.getAttributeValue("nrwbillastnum"); + } + + public void setNrwbillastnum(UFDouble newNrwbillastnum) { + this.setAttributeValue("nrwbillastnum", newNrwbillastnum); + } + + public UFDouble getNrwbillnum() { + return (UFDouble)this.getAttributeValue("nrwbillnum"); + } + + public void setNrwbillnum(UFDouble newNrwbillnum) { + this.setAttributeValue("nrwbillnum", newNrwbillnum); + } + + public String getVparentmotype() { + return (String)this.getAttributeValue("vparentmotype"); + } + + public void setVparentmotype(String newVparentmotype) { + this.setAttributeValue("vparentmotype", newVparentmotype); + } + + public String getVparentbillid() { + return (String)this.getAttributeValue("vparentbillid"); + } + + public void setVparentbillid(String newVparentbillid) { + this.setAttributeValue("vparentbillid", newVparentbillid); + } + + public String getVparentbillcode() { + return (String)this.getAttributeValue("vparentbillcode"); + } + + public void setVparentbillcode(String newVparentbillcode) { + this.setAttributeValue("vparentbillcode", newVparentbillcode); + } + + public String getCparentmobid() { + return (String)this.getAttributeValue("cparentmobid"); + } + + public void setCparentmobid(String newCparentmobid) { + this.setAttributeValue("cparentmobid", newCparentmobid); + } + + public String getVparentmorowno() { + return (String)this.getAttributeValue("vparentmorowno"); + } + + public void setVparentmorowno(String newVparentmorowno) { + this.setAttributeValue("vparentmorowno", newVparentmorowno); + } + + public String getVsrcmotype() { + return (String)this.getAttributeValue("vsrcmotype"); + } + + public void setVsrcmotype(String newVsrcmotype) { + this.setAttributeValue("vsrcmotype", newVsrcmotype); + } + + public String getVfromid() { + return (String)this.getAttributeValue("vfromid"); + } + + public void setVfromid(String newVfromid) { + this.setAttributeValue("vfromid", newVfromid); + } + + public String getVfromcode() { + return (String)this.getAttributeValue("vfromcode"); + } + + public void setVfromcode(String newVfromcode) { + this.setAttributeValue("vfromcode", newVfromcode); + } + + public String getCsrcmobid() { + return (String)this.getAttributeValue("csrcmobid"); + } + + public void setCsrcmobid(String newCsrcmobid) { + this.setAttributeValue("csrcmobid", newCsrcmobid); + } + + public String getVsrcmorowno() { + return (String)this.getAttributeValue("vsrcmorowno"); + } + + public void setVsrcmorowno(String newVsrcmorowno) { + this.setAttributeValue("vsrcmorowno", newVsrcmorowno); + } + + public String getVfirstmotype() { + return (String)this.getAttributeValue("vfirstmotype"); + } + + public void setVfirstmotype(String newVfirstmotype) { + this.setAttributeValue("vfirstmotype", newVfirstmotype); + } + + public String getCfirstmoid() { + return (String)this.getAttributeValue("cfirstmoid"); + } + + public void setCfirstmoid(String newCfirstmoid) { + this.setAttributeValue("cfirstmoid", newCfirstmoid); + } + + public String getVfirstmocode() { + return (String)this.getAttributeValue("vfirstmocode"); + } + + public void setVfirstmocode(String newVfirstmocode) { + this.setAttributeValue("vfirstmocode", newVfirstmocode); + } + + public String getCfirstmobid() { + return (String)this.getAttributeValue("cfirstmobid"); + } + + public void setCfirstmobid(String newCfirstmobid) { + this.setAttributeValue("cfirstmobid", newCfirstmobid); + } + + public String getVfirstmorowno() { + return (String)this.getAttributeValue("vfirstmorowno"); + } + + public void setVfirstmorowno(String newVfirstmorowno) { + this.setAttributeValue("vfirstmorowno", newVfirstmorowno); + } + + public String getTemp_puorg() { + return (String)this.getAttributeValue("temp_puorg"); + } + + public void setTemp_puorg(String newTemp_puorg) { + this.setAttributeValue("temp_puorg", newTemp_puorg); + } + + public String getTemp_supplier() { + return (String)this.getAttributeValue("temp_supplier"); + } + + public void setTemp_supplier(String newTemp_supplier) { + this.setAttributeValue("temp_supplier", newTemp_supplier); + } + + public String getTemp_suppliervid() { + return (String)this.getAttributeValue("temp_suppliervid"); + } + + public void setTemp_suppliervid(String newTemp_suppliervid) { + this.setAttributeValue("temp_suppliervid", newTemp_suppliervid); + } + + public String getTemp_currencyid() { + return (String)this.getAttributeValue("temp_currencyid"); + } + + public void setTemp_currencyid(String newTemp_currencyid) { + this.setAttributeValue("temp_currencyid", newTemp_currencyid); + } + + public String getTemp_issc() { + return (String)this.getAttributeValue("temp_issc"); + } + + public void setTemp_issc(String newTemp_issc) { + this.setAttributeValue("temp_issc", newTemp_issc); + } + + public String getDsourcets() { + return (String)this.getAttributeValue("dsourcets"); + } + + public void setDsourcets(String newDsourcets) { + this.setAttributeValue("dsourcets", newDsourcets); + } + + public UFDouble getTemp_nmaxrenum() { + return (UFDouble)this.getAttributeValue("temp_nmaxrenum"); + } + + public void setTemp_nmaxrenum(UFDouble newTemp_nmaxrenum) { + this.setAttributeValue("temp_nmaxrenum", newTemp_nmaxrenum); + } + + public UFDouble getTemp_nmaxreastnum() { + return (UFDouble)this.getAttributeValue("temp_nmaxreastnum"); + } + + public void setTemp_nmaxreastnum(UFDouble newTemp_nmaxreastnum) { + this.setAttributeValue("temp_nmaxreastnum", newTemp_nmaxreastnum); + } + + public UFDouble getTemp_nbcrenum() { + return (UFDouble)this.getAttributeValue("temp_nbcrenum"); + } + + public void setTemp_nbcrenum(UFDouble newTemp_nbcrenum) { + this.setAttributeValue("temp_nbcrenum", newTemp_nbcrenum); + } + + public UFDouble getTemp_nbcreastnum() { + return (UFDouble)this.getAttributeValue("temp_nbcreastnum"); + } + + public void setTemp_nbcreastnum(UFDouble newTemp_nbcreastnum) { + this.setAttributeValue("temp_nbcreastnum", newTemp_nbcreastnum); + } + + public UFBoolean getTemp_isgrand() { + return (UFBoolean)this.getAttributeValue("temp_isgrand"); + } + + public void setTemp_isgrand(UFBoolean newTemp_isgrand) { + this.setAttributeValue("temp_isgrand", newTemp_isgrand); + } + + public Integer getTemp_outtype() { + return (Integer)this.getAttributeValue("temp_outtype"); + } + + public void setTemp_outtype(Integer newTemp_outtype) { + this.setAttributeValue("temp_outtype", newTemp_outtype); + } + + public String getTemp_mainmaterialid() { + return (String)this.getAttributeValue("temp_mainmaterialid"); + } + + public void setTemp_mainmaterialid(String newTemp_mainmaterialid) { + this.setAttributeValue("temp_mainmaterialid", newTemp_mainmaterialid); + } + + public String getTemp_mainmaterialvid() { + return (String)this.getAttributeValue("temp_mainmaterialvid"); + } + + public void setTemp_mainmaterialvid(String newTemp_mainmaterialvid) { + this.setAttributeValue("temp_mainmaterialvid", newTemp_mainmaterialvid); + } + + public String getTemp_mainbid() { + return (String)this.getAttributeValue("temp_mainbid"); + } + + public void setTemp_mainbid(String newTemp_mainbid) { + this.setAttributeValue("temp_mainbid", newTemp_mainbid); + } + + public String getVbatchdef1() { + return (String)this.getAttributeValue("vbatchdef1"); + } + + public void setVbatchdef1(String newVbatchdef1) { + this.setAttributeValue("vbatchdef1", newVbatchdef1); + } + + public String getVbatchdef2() { + return (String)this.getAttributeValue("vbatchdef2"); + } + + public void setVbatchdef2(String newVbatchdef2) { + this.setAttributeValue("vbatchdef2", newVbatchdef2); + } + + public String getVbatchdef3() { + return (String)this.getAttributeValue("vbatchdef3"); + } + + public void setVbatchdef3(String newVbatchdef3) { + this.setAttributeValue("vbatchdef3", newVbatchdef3); + } + + public String getVbatchdef4() { + return (String)this.getAttributeValue("vbatchdef4"); + } + + public void setVbatchdef4(String newVbatchdef4) { + this.setAttributeValue("vbatchdef4", newVbatchdef4); + } + + public String getVbatchdef5() { + return (String)this.getAttributeValue("vbatchdef5"); + } + + public void setVbatchdef5(String newVbatchdef5) { + this.setAttributeValue("vbatchdef5", newVbatchdef5); + } + + public String getVbatchdef6() { + return (String)this.getAttributeValue("vbatchdef6"); + } + + public void setVbatchdef6(String newVbatchdef6) { + this.setAttributeValue("vbatchdef6", newVbatchdef6); + } + + public String getVbatchdef7() { + return (String)this.getAttributeValue("vbatchdef7"); + } + + public void setVbatchdef7(String newVbatchdef7) { + this.setAttributeValue("vbatchdef7", newVbatchdef7); + } + + public String getVbatchdef8() { + return (String)this.getAttributeValue("vbatchdef8"); + } + + public void setVbatchdef8(String newVbatchdef8) { + this.setAttributeValue("vbatchdef8", newVbatchdef8); + } + + public String getVbatchdef9() { + return (String)this.getAttributeValue("vbatchdef9"); + } + + public void setVbatchdef9(String newVbatchdef9) { + this.setAttributeValue("vbatchdef9", newVbatchdef9); + } + + public String getVbatchdef10() { + return (String)this.getAttributeValue("vbatchdef10"); + } + + public void setVbatchdef10(String newVbatchdef10) { + this.setAttributeValue("vbatchdef10", newVbatchdef10); + } + + public String getVbatchdef11() { + return (String)this.getAttributeValue("vbatchdef11"); + } + + public void setVbatchdef11(String newVbatchdef11) { + this.setAttributeValue("vbatchdef11", newVbatchdef11); + } + + public String getVbatchdef12() { + return (String)this.getAttributeValue("vbatchdef12"); + } + + public void setVbatchdef12(String newVbatchdef12) { + this.setAttributeValue("vbatchdef12", newVbatchdef12); + } + + public String getVbatchdef13() { + return (String)this.getAttributeValue("vbatchdef13"); + } + + public void setVbatchdef13(String newVbatchdef13) { + this.setAttributeValue("vbatchdef13", newVbatchdef13); + } + + public String getVbatchdef14() { + return (String)this.getAttributeValue("vbatchdef14"); + } + + public void setVbatchdef14(String newVbatchdef14) { + this.setAttributeValue("vbatchdef14", newVbatchdef14); + } + + public String getVbatchdef15() { + return (String)this.getAttributeValue("vbatchdef15"); + } + + public void setVbatchdef15(String newVbatchdef15) { + this.setAttributeValue("vbatchdef15", newVbatchdef15); + } + + public String getVbatchdef16() { + return (String)this.getAttributeValue("vbatchdef16"); + } + + public void setVbatchdef16(String newVbatchdef16) { + this.setAttributeValue("vbatchdef16", newVbatchdef16); + } + + public String getVbatchdef17() { + return (String)this.getAttributeValue("vbatchdef17"); + } + + public void setVbatchdef17(String newVbatchdef17) { + this.setAttributeValue("vbatchdef17", newVbatchdef17); + } + + public String getVbatchdef18() { + return (String)this.getAttributeValue("vbatchdef18"); + } + + public void setVbatchdef18(String newVbatchdef18) { + this.setAttributeValue("vbatchdef18", newVbatchdef18); + } + + public String getVbatchdef19() { + return (String)this.getAttributeValue("vbatchdef19"); + } + + public void setVbatchdef19(String newVbatchdef19) { + this.setAttributeValue("vbatchdef19", newVbatchdef19); + } + + public String getVbatchdef20() { + return (String)this.getAttributeValue("vbatchdef20"); + } + + public void setVbatchdef20(String newVbatchdef20) { + this.setAttributeValue("vbatchdef20", newVbatchdef20); + } + + public String getVbatchnote() { + return (String)this.getAttributeValue("vbatchnote"); + } + + public void setVbatchnote(String newVbatchnote) { + this.setAttributeValue("vbatchnote", newVbatchnote); + } + + public UFDouble getNrejectastnum() { + return (UFDouble)this.getAttributeValue("nrejectastnum"); + } + + public void setNrejectastnum(UFDouble newNrejectastnum) { + this.setAttributeValue("nrejectastnum", newNrejectastnum); + } + + public UFDouble getNrejectnum() { + return (UFDouble)this.getAttributeValue("nrejectnum"); + } + + public void setNrejectnum(UFDouble newNrejectnum) { + this.setAttributeValue("nrejectnum", newNrejectnum); + } + + public String getVecncode() { + return (String)this.getAttributeValue("vecncode"); + } + + public void setVecncode(String newVecncode) { + this.setAttributeValue("vecncode", newVecncode); + } + + public String getCecnid() { + return (String)this.getAttributeValue("cecnid"); + } + + public void setCecnid(String newCecnid) { + this.setAttributeValue("cecnid", newCecnid); + } + + public String getExtendmsg() { + return (String)this.getAttributeValue("extendmsg"); + } + + public void setExtendmsg(String newExtendmsg) { + this.setAttributeValue("extendmsg", newExtendmsg); + } + + public String getCinwarehouseid() { + return (String)this.getAttributeValue("cinwarehouseid"); + } + + public void setCinwarehouseid(String newCinwarehouseid) { + this.setAttributeValue("cinwarehouseid", newCinwarehouseid); + } + + public String getMocloser() { + return (String)this.getAttributeValue("mocloser"); + } + + public void setMocloser(String newMocloser) { + this.setAttributeValue("mocloser", newMocloser); + } + + public UFDateTime getTmoclosedtime() { + return (UFDateTime)this.getAttributeValue("tmoclosedtime"); + } + + public void setTmoclosedtime(UFDateTime newTmoclosedtime) { + this.setAttributeValue("tmoclosedtime", newTmoclosedtime); + } + + public Integer getDr() { + return (Integer)this.getAttributeValue("dr"); + } + + public void setDr(Integer newDr) { + this.setAttributeValue("dr", newDr); + } + + public UFDateTime getTs() { + return (UFDateTime)this.getAttributeValue("ts"); + } + + public void setTs(UFDateTime newTs) { + this.setAttributeValue("ts", newTs); + } + + public String getParentPKFieldName() { + return "cpmohid"; + } + + public String getPKFieldName() { + return "cmoid"; + } + + public String getTableName() { + return "mm_mo"; + } + + public void setAttributeValue(String name, Object value) { + super.setAttributeValue(name, value); + if (PMOConst.SERIALNOSTR.equals(name) || PMOConst.PROCEDURESTR.equals(name) || PMOConst.PLANOUTPUTSTR.equals(name)) { + this.grandMap.put(name, value == null ? null : value.toString()); + } + + } + + public PMOItemVO() { + } + + @MDEntityInfo( + beanFullclassName = "nc.vo.mmpac.pmo.pac0002.entity.PMOItemVO" + ) + public IVOMeta getMetaData() { + IVOMeta meta = VOMetaFactory.getInstance().getVOMeta("mmpac.mm_mo"); + return meta; + } +} diff --git a/mmpac/src/public/nccloud/api/mmpac/service/MesDataService.java b/mmpac/src/public/nccloud/api/mmpac/service/MesDataService.java new file mode 100644 index 00000000..bea6ced1 --- /dev/null +++ b/mmpac/src/public/nccloud/api/mmpac/service/MesDataService.java @@ -0,0 +1,22 @@ +package nccloud.api.mmpac.service; + +import java.util.List; +import java.util.Map; + +import com.alibaba.fastjson.JSONObject; +import nc.vo.mmpac.pmo.pac0002.entity.PMOAggVO; +import nc.vo.pub.BusinessException; + +/** + * MES新增接口数据组装服务 + */ +public interface MesDataService { + + /** + * 组装并保存MES生产订单数据 + * @param pmoAggVOS 生产订单数据 + * @return 处理结果 + * @throws BusinessException 业务异常 + */ + Map assembleAndSaveProductionOrder(PMOAggVO[] pmoAggVOS,String UNIQUE_ID,List jsonObjects); +} \ No newline at end of file