|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using BP.DA;
|
|
|
|
|
using BP.En;
|
|
|
|
|
using BP.Port;
|
|
|
|
|
|
|
|
|
|
namespace BP.Demo.BPFramework
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1><EFBFBD><EFBFBD><EFBFBD>˵÷<CBB5> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EmpCentAttr : EntityNoNameAttr
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string FK_Emp = "FK_Emp";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>÷<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Cent = "Cent";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string FK_NY = "FK_NY";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string FK_Dept = "FK_Dept";
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1><EFBFBD><EFBFBD><EFBFBD>˵÷<CBB5>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EmpCent : EntityMyPK
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_Emp
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(EmpCentAttr.FK_Emp);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(EmpCentAttr.FK_Emp, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>÷<EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float Cent
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValFloatByKey(EmpCentAttr.Cent);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(EmpCentAttr.Cent, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_NY
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(EmpCentAttr.FK_NY);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(EmpCentAttr.FK_NY, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string FK_Dept
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStringByKey(EmpCentAttr.FK_Dept);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(EmpCentAttr.FK_Dept, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1><EFBFBD><EFBFBD><EFBFBD>˵÷<CBB5>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EmpCent()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1><EFBFBD><EFBFBD><EFBFBD>˵÷<CBB5>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="mypk"></param>
|
|
|
|
|
public EmpCent(string mypk):base(mypk)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
/// <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_EmpCent", "Ա<><D4B1><EFBFBD><EFBFBD><EFBFBD>˵÷<CBB5>");
|
|
|
|
|
|
|
|
|
|
// <20><>ͨ<EFBFBD>ֶ<EFBFBD>
|
|
|
|
|
map.AddMyPK();
|
|
|
|
|
map.AddTBString(EmpCentAttr.FK_Emp, null, "Ա<><D4B1>", true, false, 0, 200, 10);
|
|
|
|
|
map.AddTBString(EmpCentAttr.FK_Dept, null, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)", true, false, 0, 200, 10);
|
|
|
|
|
map.AddTBString(EmpCentAttr.FK_NY, null, "<22>·<EFBFBD>", true, false, 0, 200, 10);
|
|
|
|
|
map.AddTBFloat(EmpCentAttr.Cent, 0, "<22>÷<EFBFBD>", true, false);
|
|
|
|
|
|
|
|
|
|
this._enMap = map;
|
|
|
|
|
return this._enMap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
protected override bool beforeInsert()
|
|
|
|
|
{
|
|
|
|
|
return base.beforeInsert();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1><EFBFBD><EFBFBD><EFBFBD>˵÷<CBB5>s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EmpCents : EntitiesMyPK
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Entity GetNewEntity
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new EmpCent();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ա<><D4B1><EFBFBD><EFBFBD><EFBFBD>˵÷<CBB5>s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EmpCents() { }
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|