|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using BP.DA;
|
|
|
|
|
using BP.En;
|
|
|
|
|
using BP.Port;
|
|
|
|
|
|
|
|
|
|
namespace BP.Demo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀ <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class KeMuAttr: EntityNoNameAttr
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class KeMu :EntityNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ʵ<><CAB5><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><DEBF><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override UAC HisUAC
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
UAC uac = new UAC();
|
|
|
|
|
uac.IsDelete = true;
|
|
|
|
|
uac.IsUpdate = true;
|
|
|
|
|
uac.IsInsert = true;
|
|
|
|
|
return uac;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public KeMu(){}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀ
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="no"><3E><><EFBFBD><EFBFBD></param>
|
|
|
|
|
public KeMu(string no):base(no)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Map
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Map EnMap
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this._enMap!=null)
|
|
|
|
|
return this._enMap;
|
|
|
|
|
Map map = new Map("Demo_KeMu", "<22><>Ŀ");
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
map.DepositaryOfEntity=Depositary.None; //ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>.
|
|
|
|
|
map.IsAllowRepeatName = true;
|
|
|
|
|
map.EnType=EnType.App;
|
|
|
|
|
map.CodeStruct="3"; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ3λ, <20><>001 <20><> 999 .
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20>ֶ<EFBFBD>
|
|
|
|
|
map.AddTBStringPK(KeMuAttr.No, null, "<22><><EFBFBD><EFBFBD>", true, true, 3, 3, 3);
|
|
|
|
|
map.AddTBString(KeMuAttr.Name,null,"<22><><EFBFBD><EFBFBD>",true,false,0,50,200);
|
|
|
|
|
map.AddTBString("BZ", null, "<22><>ע", true, false, 0, 50, 200);
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
this._enMap=map;
|
|
|
|
|
return this._enMap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override Entities GetNewEntities
|
|
|
|
|
{
|
|
|
|
|
get { return new KeMus(); }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀ
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class KeMus : EntitiesNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><>д
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Entity GetNewEntity
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new KeMu();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>췽<EFBFBD><ECB7BD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>Ŀs
|
|
|
|
|
/// </summary>
|
|
|
|
|
public KeMus(){}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|