using System;
using System.Data;
using BP.DA;
using BP.En;
using BP.Port;
namespace BP.CN
{
///
/// 片区
///
public class PQAttr: EntityNoNameAttr
{
#region 基本属性
public const string FK_SF="FK_SF";
#endregion
}
///
/// 片区
///
public class PQ :EntityNoName
{
#region 基本属性
#endregion
#region 构造函数
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.OpenForSysAdmin();
return uac;
}
}
///
/// 片区
///
public PQ(){}
public PQ(string no):base(no)
{
}
///
/// Map
///
public override Map EnMap
{
get
{
if (this._enMap!=null)
return this._enMap;
Map map = new Map("CN_PQ","片区");
#region 基本属性
map.EnDBUrl =new DBUrl(DBUrlType.AppCenterDSN) ;
map.DepositaryOfMap=Depositary.Application;
map.DepositaryOfEntity=Depositary.None;
map.EnType=EnType.App;
map.CodeStruct="4";
#endregion
#region 字段
map.AddTBStringPK(PQAttr.No,null,"编号",true,false,0,50,50);
map.AddTBString(PQAttr.Name,null,"名称",true,false,0,50,200);
#endregion
this._enMap=map;
return this._enMap;
}
}
public override Entities GetNewEntities
{
get { return new PQs(); }
}
#endregion
}
///
/// 片区
///
public class PQs : EntitiesNoName
{
#region
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new PQ();
}
}
#endregion
#region 构造方法
///
/// 片区s
///
public PQs(){}
#endregion
}
}