using System; using System.Collections.Generic; using System.Data; using System.Text; using BP.WF.Data; using BP.En; namespace BP.ZS { /// /// 不良记录s Attr /// public class ShangGangRenYuanDtlAttr : EntityOIDAttr { #region 基本属性 public const string RefPK = "RefPK"; /// /// 箱体名称 /// public const string Docs = "Docs"; /// /// 期限限定 /// public const string QiXianXianDing = "QiXianXianDing"; /// /// 紧急程度 /// public const string RDT = "RDT"; public const string RDTText = "RDTText"; /// /// 图纸编号 /// public const string TuZhiBianHao = "TuZhiBianHao"; /// /// 图纸制图人 /// public const string TuZhiZhiTuRen = "TuZhiZhiTuRen"; /// /// /// 0=未处理. 1=已完成. 2=重做. 3=已验收. 4=发货. /// public const string XTSta = "XTSta"; #endregion } /// /// 不良记录s /// public class ShangGangRenYuanDtl : EntityOID { #region 属性 public string RefPK { get { return this.GetValStringByKey(ShangGangRenYuanDtlAttr.RefPK); } set { this.SetValByKey(ShangGangRenYuanDtlAttr.RefPK, value); } } #endregion #region 构造函数 /// /// 不良记录 /// public ShangGangRenYuanDtl() { } /// /// 不良记录 /// /// 工作ID public ShangGangRenYuanDtl(int workid) { this.OID = workid; this.Retrieve(); } /// /// 重写基类方法 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("ShangGangRenYuanDtl", "不良记录"); #region 流程的基本字段 map.AddTBIntPKOID(); map.AddTBString(ShangGangRenYuanDtlAttr.RefPK, null, "主键", false, true, 0, 30, 10); map.AddTBDate(ShangGangRenYuanDtlAttr.RDT, null, "日期", true, false); map.AddTBString(ShangGangRenYuanDtlAttr.Docs, null, "内容", true, false, 0, 500, 500); this._enMap = map; return this._enMap; #endregion 流程的基本字段 } } #endregion } /// /// 不良记录s /// public class ShangGangRenYuanDtls : EntitiesOID { #region 方法 /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new ShangGangRenYuanDtl(); } } /// /// 不良记录s /// public ShangGangRenYuanDtls() { } #endregion } }