|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using BP.DA;
|
|
|
|
|
using BP.En;
|
|
|
|
|
using BP.Port;
|
|
|
|
|
|
|
|
|
|
namespace BP.JianYu
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>ּ<EFBFBD><D6BC><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class FenJianQuAttr : EntityNoNameAttr
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string JianYuNo = "BZR";
|
|
|
|
|
public const string Tel = "Tel";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string PrisonNo = "PrisonNo";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public const string JianQuNo = "JianQuNo";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>ּ<EFBFBD><D6BC><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class FenJianQu : BP.En.EntityNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PrisonNo
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStrByKey(FenJianQuAttr.PrisonNo);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(FenJianQuAttr.PrisonNo, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public string JianQuNo
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return this.GetValStrByKey(FenJianQuAttr.JianQuNo);
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this.SetValByKey(FenJianQuAttr.JianQuNo, 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 == "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>ּ<EFBFBD><D6BC><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public FenJianQu() { }
|
|
|
|
|
public FenJianQu(string no) : base(no)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Map
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Map EnMap
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this._enMap != null)
|
|
|
|
|
return this._enMap;
|
|
|
|
|
|
|
|
|
|
Map map = new Map("JY_FenJianQu", "<22>ּ<EFBFBD><D6BC><EFBFBD>");
|
|
|
|
|
|
|
|
|
|
#region <20>ֶ<EFBFBD>
|
|
|
|
|
map.AddTBStringPK(FenJianQuAttr.No, null, "<22><><EFBFBD><EFBFBD>", true, true, 3, 3, 50);
|
|
|
|
|
map.AddTBString(FenJianQuAttr.Name, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
|
|
|
|
|
|
|
|
|
|
map.AddTBString(FenJianQuAttr.PrisonNo, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
|
|
|
|
|
map.AddTBString(FenJianQuAttr.JianQuNo, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
|
|
|
|
|
|
|
|
|
|
// map.AddDDLEntities(JianQuAttr.PrisonNo, null, "<22><><EFBFBD><EFBFBD>", new Prisons(), false);
|
|
|
|
|
// map.AddDDLEntities(FenJianQuAttr.JianQuNo, null, "<22><><EFBFBD><EFBFBD>", new JianQus(), false);
|
|
|
|
|
|
|
|
|
|
// map.AddTBString(FenJianQuAttr.BZR, null, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
|
|
|
|
|
// map.AddTBString(FenJianQuAttr.Tel, null, "<22><><EFBFBD><EFBFBD><EFBFBD>ε绰", true, false, 0, 50, 200);
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
this._enMap = map;
|
|
|
|
|
return this._enMap;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public override Entities GetNewEntities
|
|
|
|
|
{
|
|
|
|
|
get { return new FenJianQus(); }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>ּ<EFBFBD><D6BC><EFBFBD>s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class FenJianQus : BP.En.EntitiesNoName
|
|
|
|
|
{
|
|
|
|
|
#region <20><>д
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
|
|
|
|
|
/// </summary>
|
|
|
|
|
public override Entity GetNewEntity
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new FenJianQu();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD>췽<EFBFBD><ECB7BD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20>ּ<EFBFBD><D6BC><EFBFBD>s
|
|
|
|
|
/// </summary>
|
|
|
|
|
public FenJianQus() { }
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|