财务模块的单据类型
package nc.vo.scmpub.res.billtype; /** * <p> * <b>本类主要完成以下功能:</b> * <ul> * <li>财务模块的单据类型 * </ul> * <p> * <p> * * @version 6.0 * @since 6.0 * @author wuxla * @time 2010-6-9 下午05:07:38 */ public enum ARAPBillType implements IBillType { EstiReceiveAbleOrder("23E0", "4001002_0", "04001002-0419"/*@res "未确认应收单"*/), GatheringOrder("F2", "4001002_0", "04001002-0420"/*@res "客户收款单"*/), PayAbleOrder("F1", "4001002_0", "04001002-0421"/*@res "供应商应付单"*/), /** * 供应商付款单 */ PayOrder("F3", "4001002_0", "04001002-0422"/*@res "付款单"*/), ReceiveAbleOrder("F0", "4001002_0", "04001002-0423"/*@res "客户应收单"*/); // 单据类型 private String code; // 单据名称 private String name; private String resCommon; private String resId; private ARAPBillType(String code, String resCommon, String resId) { this.code = code; this.resCommon = resCommon; this.resId = resId; } /** * 父类方法重写 * * @see nc.vo.scmpub.res.billtype.IBillType#getCode() */ @Override public String getCode() { return this.code; } /** * 父类方法重写 * * @see nc.vo.scmpub.res.billtype.IBillType#getName() */ @Override public String getName() { return nc.vo.ml.NCLangRes4VoTransl.getNCLangRes().getStrByID( this.resCommon, this.resId); } /** * 父类方法重写 * * @see nc.vo.scmpub.res.billtype.IBillType#isEqual(java.lang.String) */ @Override public boolean isEqual(String pcode) { return this.code.equals(pcode); } }存货核算模块的单据类型
package nc.vo.scmpub.res.billtype; import nc.vo.ml.NCLangRes4VoTransl; /** * 存货核算模块的单据类型 * * @since 6.0 * @version 2009-12-11 上午10:33:07 * @author 钟鸣 */ public enum IABillType implements IBillType { /** * 报废单 */ BFD("I8", "4001002_0", "04001002-0437"), /** * 产成品入库单 */ CCPRK("I3", "common", "UC000-0000126"), /** * 采购入库单 */ CGRK("I2", "4001002_0", "04001002-0438"), /** * 出库调整单 */ CKTZ("IA", "4001002_0", "04001002-0439"), /** * 材料出库单 */ CLCK("I6", "4001002_0", "04001002-0440"), /** * 差异结转单 */ CYJZ("IE", "4001002_0", "04001002-0441"), /** * 调拨出库单 */ DBCK("IJ", "common", "UC000-0003741"), /** * 调拨入库单 */ DBRK("II", "common", "UC000-0003738"), /** * 跌价提取单 */ DJTQ("IF", "4001002_0", "04001002-0442"), /** * 计划价批量调整单 */ JHJPLTZ("2801", "4001002_0", "04001002-0443"), /** * 计划价调整单 */ JHJTZ("IB", "4001002_0", "04001002-0444"), /** * 期初入库单 */ QCRK("I0", "4001002_0", "04001002-0445"), /** * 其它出库单 */ QTCK("I7", "4001002_0", "04001002-0446"), /** * 其他入库单 */ QTRK("I4", "4001002_0", "04001002-0447"), /** * 入库调整单 */ RKTZ("I9", "4001002_0", "04001002-0448"), /** * 损益调整单 */ SYTZ("IG", "4001002_0", "04001002-0449"), /** * 委托加工入库单 */ WTJGRK("ID", "4001002_0", "04001002-0450"), /** * 销售成本结转单 */ XSCBJZ("I5", "4001002_0", "04001002-0451"); /** * 单据类型 */ private String code; /** * 单据类型多语资源ID */ private String resID; /** * 单据类型多语目录 */ private String resNode; private IABillType(String code, String resNode, String resID) { this.code = code; this.resNode = resNode; this.resID = resID; } @Override public String getCode() { return this.code; } @Override public String getName() { return NCLangRes4VoTransl.getNCLangRes().getStrByID(this.resNode, this.resID); } @Override public boolean isEqual(String othercode) { return this.code.equals(othercode); } }库存模块的单据类型
package nc.vo.scmpub.res.billtype; /** * 在库存代码中,统一使用ICBillType枚举。尽量不要出现如下调用 ICBillType.getICBillType(String cbilltype) * 如果要获取单据类型编码,请使用如下代码获取: ICBillType.getCode() * * @author chennn 2009-12-30 下午04:43:40 */ public enum ICBillType implements IBillType { AdjustBal("52", "4001002_0", "04001002-0083"/*@res "主辅计量平衡"*/, ICBillTypeConst.Adjust), AdjustErr("51", "4001002_0", "04001002-0090"/*@res "调差"*/, ICBillTypeConst.Adjust), Assembly("4L", "4001002_0", "04001002-0452"/*@res "组装单"*/, ICBillTypeConst.Adjust), AssetIn("4401", "4001002_0", "04001002-0453"/*@res "库存设备入库单"*/, ICBillTypeConst.In), AssetOut("4451", "4001002_0", "04001002-0454"/*@res "库存设备出库单"*/, ICBillTypeConst.Out), BorrowIn("49", "4001002_0", "04001002-0336"/*@res "库存借入单"*/, ICBillTypeConst.In), BorrowInBackOut("4J", "4001002_0", "04001002-0455"/*@res "库存借入还出单"*/, ICBillTypeConst.Out), BorrowOut("4H", "4001002_0", "04001002-0456"/*@res "库存借出单"*/, ICBillTypeConst.Out), DiscardIn("4X", "4001002_0", "04001002-0457"/*@res "库存生产报废入库单"*/, ICBillTypeConst.In), DiscardOut("4O", "4001002_0", "04001002-0458"/*@res "库存报废出库单"*/, ICBillTypeConst.Out), FreezeThaw("4Z", "4001002_0", "04001002-0459"/*@res "冻结解冻"*/, ICBillTypeConst.Other), GeneralIn("4A", "4001002_0", "04001002-0460"/*@res "库存其它入库单"*/, ICBillTypeConst.In), GeneralOut("4I", "4001002_0", "04001002-0461"/*@res "库存其它出库单"*/, ICBillTypeConst.Out), InitializationIn("40", "common", "UC000-0002522"/*@res "期初余额"*/, ICBillTypeConst.In), Invcount("4R", "4001002_0", "04001002-0462"/*@res "盘点单"*/, ICBillTypeConst.Adjust), LocAdjust("4Q", "4001002_0", "04001002-0463"/*@res "货位调整单"*/, ICBillTypeConst.Out), MaterialOut("4D", "4001002_0", "04001002-0464"/*@res "库存材料出库单"*/, ICBillTypeConst.Out), OpenScrap("43", "4001002_0", "04001002-0465"/*@res "期初废品"*/, ICBillTypeConst.In), PackBill("4W", "4001002_0", "04001002-0466"/*@res "装箱单"*/, ICBillTypeConst.Out), PickBill("4V", "4001002_0", "04001002-0467"/*@res "拣货单"*/, ICBillTypeConst.Out), ProductionIn("46", "4001002_0", "04001002-0468"/*@res "库存产成品入库单"*/, ICBillTypeConst.In), PurchaseIn("45", "4001002_0", "04001002-0469"/*@res "库存采购入库单"*/, ICBillTypeConst.In), Reserve("4480", "4001002_0", "04001002-0038"/*@res "预留"*/, ICBillTypeConst.Other), ReturnIn("4B", "4001002_0", "04001002-0470"/*@res "库存借出还回单"*/, ICBillTypeConst.In), SaleOut("4C", "4001002_0", "04001002-0471"/*@res "库存销售出库单"*/, ICBillTypeConst.Out), SapplyBill("4455", "4001002_0", "04001002-0472"/*@res "出库申请单"*/, ICBillTypeConst.Out), SubContinIn("47", "4001002_0", "04001002-0473"/*@res "库存委外加工入库单"*/, ICBillTypeConst.In), Teardown("4M", "4001002_0", "04001002-0474"/*@res "拆卸单"*/, ICBillTypeConst.Adjust), TransferWarehouse("4K", "4001002_0", "04001002-0475"/*@res "转库单"*/, ICBillTypeConst.Adjust), Transform("4N", "4001002_0", "04001002-0476"/*@res "库存形态转换单"*/, ICBillTypeConst.Adjust), TransIn("4E", "4001002_0", "04001002-0477"/*@res "库存调拨入库单"*/, ICBillTypeConst.In), TransOut("4Y", "4001002_0", "04001002-0478"/*@res "库存调拨出库单"*/, ICBillTypeConst.Out), VmiSum("50", "4001002_0", "04001002-0479"/*@res "消耗汇总"*/, ICBillTypeConst.Other), WastageBill("4453", "4001002_0", "04001002-0480"/*@res "途损单"*/, ICBillTypeConst.Other), WasterProcess("4P", "4001002_0", "04001002-0481"/*@res "库存废品出库单"*/, ICBillTypeConst.Out), StateAdjust("4460", "4001002_0", "04001002-0482"/*@res "库存状态调整单"*/, ICBillTypeConst.Adjust); private String code; private String name; private String resCommon; private String resId; private int type; private ICBillType(String code, String resCommon, String resId, int type) { this.code = code; this.resCommon = resCommon; this.resId = resId; this.type = type; } /** * 为适配UAP的单据类型,根据单据类型编码获取对应的枚举 此方法的使用场景: * 1,前台Model操作中,根据BillManageModel的单据类型字符串获取“库存单据类型枚举” * 2,转单操作中,根据UAP的单据类型字符串获取“库存单据类型枚举” 其他场景中,请直接使用ICBillType,不要使用此方法进行转换 */ public static ICBillType getICBillType(String cbilltype) { for (ICBillType icBillType : ICBillType.values()) { if (icBillType.getCode().equals(cbilltype)) { return icBillType; } } return null; } @Override public String getCode() { return this.code; } @Override public String getName() { return nc.vo.ml.NCLangRes4VoTransl.getNCLangRes().getStrByID( this.resCommon, this.resId); } /** * @return type */ public int getType() { return this.type; } /** * 是否调整单据类型 * * @return */ public boolean isAdjust() { return this.type == ICBillTypeConst.Adjust; } @Override public boolean isEqual(String pcode) { return this.code.equals(pcode); } /** * 是否入库单据类型 * * @return */ public boolean isIn() { return this.type == ICBillTypeConst.In; } /** * 是否出库单据类型 * * @return */ public boolean isOut() { return this.type == ICBillTypeConst.Out; } } package nc.util.mmf.busi.consts; /** * 单据类型编码常量 * * @since 6.3 * @version 2012-9-6 下午12:39:21 * @author maoleia */ public class BillTypeConst { /** * 工程变更单单据编码 */ public static final String ECN = "19A3"; /** * 请购单单据编码 */ public static final String SCMPRAY = "20"; /** * 采购订单单据编码 */ public static final String SCMPO = "21"; /** * 销售订单单据编码 */ public static final String SALEOEDER = "30"; /** * 销售预订单单据编码 */ public static final String SALEPREOEDER = "38"; /** * 订单中心预订单 */ public static final String CUSTOMERPREORDER = "ECC1"; /** * 销售出库单单据编码 */ public static final String SOOUTBILL = "4C"; /** * 调拨出库单单据编码 */ public static final String TRANOUTBILL = "4Y"; /** * 原材料出库单单据编码 */ public static final String OUTBILL = "4D"; /** * 库存计划单据编码 */ public static final String IC4F = "4F"; /*** * 转库单单据编码 */ public static final String WHSTRANS = "4K"; /** * 出库申请单单据编码 */ public static final String OUTAPPLICATION = "4455"; /** * 产品入库单单据编码 */ public static final String INBILL = "46"; /** * 调入申请单单据编码 */ public static final String TRAN5A = "5A"; /** * 调拨订单单据编码 */ public static final String TRAN = "5X"; /** * 主需求维护单据编码 * 分配需求维护单据编码 */ public static final String INPUTDEMAND = "51A6"; /** * 流程生产订单维护 */ public static final String PMO = "55A2"; /** * 离散生产订单维护 */ public static final String DMO = "55C2"; /** * 完工未入库流程生产订单维护 */ public static final String OUT_PMO = "55A2_1"; /** * 完工未入库离散生产订单维护 */ public static final String OUT_DMO = "55C2_1"; /** * 备料计划单维护 */ public static final String PICKM = "55A3"; /** * 生产报告 */ public static final String WR = "55A4"; /** * 生产领料 */ public static final String ISSUE = "55A6"; /** * 流程投放计划 */ public static final String PUTPLAN = "55A7"; /** * 离散投放计划 */ public static final String DPUTPLAN = "55C7"; /** * 交接单维护 */ public static final String HANDTAKE = "55AA"; /** * 备料申请单 */ public static final String REQPICKM = "55AC"; /** * SOP生产计划 */ public static final String SOP = "55B1"; /** * 计划独立需求 */ public static final String PID = "55PD"; /** * 主需求维护 */ public static final String MD = "55B3"; /** * 计划订单维护 */ public static final String PLO = "55B4"; /** * 主生产计划维护 * 主生产计划二维表 */ public static final String MPS = "55B5"; /** * 实际独立需求 */ public static final String AID = "55B6"; /** * 关键料驱动生产 */ public static final String KMD = "55B7"; /** * 工序计划单据编码 */ public static final String OPPLAN = "57A8"; /** * 模拟订单 */ public static final String ANALOG = "55A5"; /** * 委外订单单据编码 */ public static final String WWBILL = "61"; /** * 库存采购入库 */ public static final String PURCHASEIN = "45"; /** * 委托加工入库 */ public static final String SUBCONTIN = "47"; /** * 调拨入库 */ public static final String SUBTOIC = "4E"; /** * 存量 */ public static final String ONHAND = "inv2"; /** * 采购排程计划 */ public static final String SHOPSCHEDULEPLAN = "EC86"; /** * 用料需求(投放计划小备料表)维护 */ public static final String LITTLEPICKM = "55A3_1"; /** * 采购到货计划 */ public static final String PURCHASE_ORDER_RECEIVEPLAN = "21"; /** * 进口合同 */ public static final String IMPORT_CONSTRACT = "5801"; /** * 出口合同 */ public static final String EXPORT_CONSTRACT = ""; /** * 客户要货计划 */ public static final String CUSTREQPLAN = "ECF1"; /** * 订单中心预订单 */ public static final String EC_PREORDER = "ECC1"; /** * 总括订单 */ public static final String BRACKETORDER = ""; }