|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using BP.DA;
|
|
|
|
|
using BP.En;
|
|
|
|
|
using BP.Port;
|
|
|
|
|
namespace BP.CN
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><EFBFBD><DEB5><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ZDSAttr: EntityNoNameAttr
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public const string FK_PQ="FK_PQ";
|
|
|
|
|
public const string FK_ZDS = "FK_ZDS";
|
|
|
|
|
public const string FK_SF = "FK_SF";
|
|
|
|
|
public const string NameS = "NameS";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><EFBFBD><DEB5><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ZDS :EntityNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public string NameS
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStrByKey(ZDSAttr.NameS);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>캯<EFBFBD><ECBAAF>
|
|
|
|
|
public override UAC HisUAC
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
UAC uac = new UAC();
|
|
|
|
|
uac.OpenForSysAdmin();
|
|
|
|
|
return uac;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><EFBFBD><DEB5><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ZDS(){}
|
|
|
|
|
public ZDS(string no):base(no)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Map
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Map EnMap
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this._enMap != null)
|
|
|
|
|
return this._enMap;
|
|
|
|
|
Map map = new Map();
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
map.EnDBUrl = new DBUrl(DBUrlType.AppCenterDSN);
|
|
|
|
|
map.PhysicsTable = "CN_ZDS";
|
|
|
|
|
map.DepositaryOfMap = Depositary.Application;
|
|
|
|
|
map.DepositaryOfEntity = Depositary.None;
|
|
|
|
|
map.EnDesc = "<22><EFBFBD><DEB5><EFBFBD>";
|
|
|
|
|
map.EnType = EnType.App;
|
|
|
|
|
map.CodeStruct = "4";
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20>ֶ<EFBFBD>
|
|
|
|
|
map.AddTBStringPK(ZDSAttr.No, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 50);
|
|
|
|
|
map.AddTBString(ZDSAttr.Name, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
|
|
|
|
|
map.AddTBString(ZDSAttr.NameS, null, "<22><><EFBFBD><EFBFBD>s", true, false, 0, 50, 200);
|
|
|
|
|
|
|
|
|
|
map.AddTBString(ZDSAttr.FK_SF, null, "FK_SF", true, false, 0, 50, 200);
|
|
|
|
|
|
|
|
|
|
map.AddDDLEntities(ZDSAttr.FK_PQ, null, "Ƭ<><C6AC>", new PQs(), true);
|
|
|
|
|
// map.AddDDLEntities(ZDSAttr.FK_ZDS, null, "ʡ<><CAA1>", new SFs(), true);
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
this._enMap = map;
|
|
|
|
|
return this._enMap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><EFBFBD><DEB5><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ZDSs : EntitiesNoName
|
|
|
|
|
{
|
|
|
|
|
#region
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Entity GetNewEntity
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new ZDS();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>췽<EFBFBD><ECB7BD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><EFBFBD><DEB5><EFBFBD>s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ZDSs(){}
|
|
|
|
|
|
|
|
|
|
public ZDSs(string sf)
|
|
|
|
|
{
|
|
|
|
|
this.Retrieve(ZDSAttr.FK_SF, sf);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|