You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
4.7 KiB
Plaintext

11 months ago
using System;
using System.Data;
using BP.DA;
using BP.En;
using BP.WF;
using BP.Port;
namespace BP.Demo
{
/// <summary>
/// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
/// </summary>
public class ResumeAttr
{
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// <summary>
/// ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public const string StudentNo = "StudentNo";
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ
/// </summary>
public const string GongZuoDanWei = "GongZuoDanWei";
/// <summary>
/// ֤<><D6A4><EFBFBD><EFBFBD>
/// </summary>
public const string ZhengMingRen = "ZhengMingRen";
/// <summary>
/// <20><>ע
/// </summary>
public const string BeiZhu = "BeiZhu";
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public const string NianYue = "NianYue";
#endregion
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public class Resume : BP.En.EntityOID
{
#region <20><><EFBFBD><EFBFBD>
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public string NianYue
{
get
{
return this.GetValStringByKey(ResumeAttr.NianYue);
}
set
{
this.SetValByKey(ResumeAttr.NianYue, value);
}
}
/// <summary>
/// <20><>Ա
/// </summary>
public string StudentNo
{
get
{
return this.GetValStringByKey(ResumeAttr.StudentNo);
}
set
{
this.SetValByKey(ResumeAttr.StudentNo, value);
}
}
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ
/// </summary>
public string GongZuoDanWei
{
get
{
return this.GetValStringByKey(ResumeAttr.GongZuoDanWei);
}
set
{
this.SetValByKey(ResumeAttr.GongZuoDanWei, value);
}
}
/// <summary>
/// ֤<><D6A4><EFBFBD><EFBFBD>
/// </summary>
public string ZhengMingRen
{
get
{
return this.GetValStringByKey(ResumeAttr.ZhengMingRen);
}
set
{
this.SetValByKey(ResumeAttr.ZhengMingRen, value);
}
}
/// <summary>
/// <20><>ע
/// </summary>
public string BeiZhu
{
get
{
return this.GetValStringByKey(ResumeAttr.BeiZhu);
}
set
{
this.SetValByKey(ResumeAttr.BeiZhu, value);
}
}
#endregion
#region <20><><EFBFBD><EFBFBD><ECBAAF>
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public Resume()
{
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
/// <param name="oid">ʵ<><CAB5><EFBFBD><EFBFBD></param>
public Resume(int oid):base(oid)
{
}
/// <summary>
/// <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><E0B7BD>
/// </summary>
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("Demo_Resume", "<22><><EFBFBD><EFBFBD>");
map.AddTBIntPKOID();
map.AddTBString(ResumeAttr.StudentNo, null, "ѧ<><D1A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", false, false, 0, 200, 10);
map.AddTBString(ResumeAttr.NianYue, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 200, 50);
map.AddTBString(ResumeAttr.GongZuoDanWei, null, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ", true, false, 0, 200, 70);
map.AddTBString(ResumeAttr.ZhengMingRen, "", "֤<><D6A4><EFBFBD><EFBFBD>", true, false, 1, 200, 50);
map.AddTBString(ResumeAttr.BeiZhu, null, "<22><>ע", true, false, 0, 200, 150);
this._enMap = map;
return this._enMap;
}
}
#endregion
protected override bool beforeUpdateInsertAction()
{
if (this.ZhengMingRen.Length == 0)
throw new Exception("@֤<><D6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>.");
return base.beforeUpdateInsertAction();
}
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.IsDelete = true;
uac.IsUpdate = true;
uac.IsInsert = true;
return uac;
}
}
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>s
/// </summary>
public class Resumes : BP.En.EntitiesOID
{
#region <20><><EFBFBD><EFBFBD>
/// <summary>
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
/// </summary>
public override Entity GetNewEntity
{
get
{
return new Resume();
}
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>s
/// </summary>
public Resumes() { }
#endregion
}
}