|
|
|
|
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 BanJiAttr: EntityNoNameAttr
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string BZR = "BZR";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>绰
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string Tel = "Tel";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// λ<><CEBB>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string WZ = "WZ";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>༶
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BanJi :BP.En.EntityNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string BZR
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStrByKey(BanJiAttr.BZR);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(BanJiAttr.BZR, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string WZ
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStrByKey(BanJiAttr.WZ);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(BanJiAttr.WZ, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ʵ<><CAB5><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><DEBF><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override UAC HisUAC
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
UAC uac = new UAC();
|
|
|
|
|
|
|
|
|
|
if (BP.Web.WebUser.No.Equals("zhoupeng") || BP.Web.WebUser.No.Equals("admin")==true)
|
|
|
|
|
{
|
|
|
|
|
uac.IsDelete = true;
|
|
|
|
|
uac.IsUpdate = true;
|
|
|
|
|
uac.IsInsert = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
uac.IsDelete = false;
|
|
|
|
|
uac.IsUpdate = false;
|
|
|
|
|
uac.IsInsert = false;
|
|
|
|
|
}
|
|
|
|
|
return uac;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>༶
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BanJi(){}
|
|
|
|
|
public BanJi(string no):base(no)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Map
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Map EnMap
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this._enMap!=null)
|
|
|
|
|
return this._enMap;
|
|
|
|
|
|
|
|
|
|
Map map = new Map("Demo_BanJi","<22>༶");
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
map.DepositaryOfEntity=Depositary.None; //ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><CEBB>.
|
|
|
|
|
map.ItIsAllowRepeatName = 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(BanJiAttr.No, null, "<22><><EFBFBD><EFBFBD>", true, true, 3, 3, 50);
|
|
|
|
|
map.AddTBString(BanJiAttr.Name,null,"<22><><EFBFBD><EFBFBD>",true,false,0,50,200);
|
|
|
|
|
map.AddTBString(BanJiAttr.BZR, null, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
|
|
|
|
|
map.AddTBString(BanJiAttr.Tel, null, "<22><><EFBFBD><EFBFBD><EFBFBD>ε绰", true, false, 0, 50, 200);
|
|
|
|
|
map.AddTBString(BanJiAttr.WZ, null, "λ<><CEBB>", true, false, 0, 50, 200);
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
this._enMap=map;
|
|
|
|
|
return this._enMap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override Entities GetNewEntities
|
|
|
|
|
{
|
|
|
|
|
get { return new BanJis(); }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>༶s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BanJis : BP.En.EntitiesNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><>д
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Entity GetNewEntity
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new BanJi();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>췽<EFBFBD><ECB7BD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>༶s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public BanJis(){}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|