You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
3.7 KiB
Plaintext

11 months ago
using System;
using System.Data;
using BP.DA;
using BP.En;
using BP.Port;
namespace BP.CN
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public class CityAttr : EntityNoNameAttr
{
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public const string FK_PQ = "FK_PQ";
public const string FK_SF = "FK_SF";
public const string Grade = "Grade";
public const string Names = "Names";
public const string PinYin = "PinYin";
#endregion
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public class City : EntityNoName
{
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
public string Names
{
get
{
return this.GetValStrByKey(CityAttr.Names);
}
}
public string FK_PQ
{
get
{
return this.GetValStrByKey(CityAttr.FK_PQ);
}
set
{
this.SetValByKey(CityAttr.FK_PQ, value);
}
}
public string FK_SF
{
get
{
return this.GetValStrByKey(CityAttr.FK_SF);
}
set
{
this.SetValByKey(CityAttr.FK_SF, value);
}
}
public string PinYin
{
get
{
return this.GetValStrByKey(CityAttr.PinYin);
}
set
{
this.SetValByKey(CityAttr.PinYin, value);
}
}
#endregion
#region <20><><EFBFBD><EFBFBD><ECBAAF>
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.OpenForSysAdmin();
return uac;
}
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public City() { }
public City(string no)
: base(no)
{
}
/// <summary>
/// Map
/// </summary>
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("CN_City","<22><><EFBFBD><EFBFBD>");
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
map.CodeStruct = "4";
#endregion
#region <20>ֶ<EFBFBD>
map.AddTBStringPK(CityAttr.No, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 50);
map.AddTBString(CityAttr.Name, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
map.AddTBString(CityAttr.Names, null, "С<><D0A1>", true, false, 0, 50, 200);
map.AddTBInt(CityAttr.Grade, 0, "Grade", false, false);
map.AddDDLEntities(CityAttr.FK_SF, null, "ʡ<><CAA1>", new SFs(), true);
map.AddDDLEntities(CityAttr.FK_PQ, null, "Ƭ<><C6AC>", new PQs(), true);
map.AddTBString(CityAttr.PinYin, null, "<22><><EFBFBD><EFBFBD>ƴ<EFBFBD><C6B4>", true, false, 0, 200, 200);
//map.AddTBString(CityAttr.PinYin, null, "ƴ<><C6B4>", true, false, 0, 200, 200);
//map.AddSearchAttr(CityAttr.FK_SF);
#endregion
this._enMap = map;
return this._enMap;
}
}
#endregion
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>s
/// </summary>
public class Citys : EntitiesNoName
{
#region
/// <summary>
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
/// </summary>
public override Entity GetNewEntity
{
get
{
return new City();
}
}
#endregion
#region <20><><EFBFBD><EFBFBD><ECB7BD>
/// <summary>
/// <20><><EFBFBD><EFBFBD>s
/// </summary>
public Citys(){}
/// <summary>
/// <20><><EFBFBD><EFBFBD>s
/// </summary>
/// <param name="sf">ʡ<><CAA1></param>
public Citys(string sf)
{
this.Retrieve(CityAttr.FK_SF, sf);
}
#endregion
}
}