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.

131 lines
3.0 KiB
Plaintext

11 months ago
using System;
using System.Data;
using BP.DA;
using BP.En;
using BP.Port;
namespace BP.JianYu
{
/// <summary>
/// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
/// </summary>
public class PrisonAttr : EntityNoNameAttr
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public const string BZR = "BZR";
public const string Tel = "Tel";
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>
/// </summary>
public class Prison : 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(PrisonAttr.BZR);
}
set
{
this.SetValByKey(PrisonAttr.BZR, 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><EFBFBD>
/// </summary>
public Prison() { }
public Prison(string no) : base(no)
{
}
/// <summary>
/// Map
/// </summary>
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("JY_Prison", "<22><><EFBFBD><EFBFBD>");
#region <20>ֶ<EFBFBD>
map.AddTBStringPK(PrisonAttr.No, null, "<22><><EFBFBD><EFBFBD>", true, true, 3, 3, 50);
map.AddTBString(PrisonAttr.Name, null, "<22><><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
// map.AddTBString(PrisonAttr.BZR, null, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", true, false, 0, 50, 200);
// map.AddTBString(PrisonAttr.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 Prisons(); }
}
#endregion
}
/// <summary>
/// <20><><EFBFBD><EFBFBD>s
/// </summary>
public class Prisons : BP.En.EntitiesNoName
{
#region <20><>д
/// <summary>
/// <20>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD> Entity
/// </summary>
public override Entity GetNewEntity
{
get
{
return new Prison();
}
}
#endregion
#region <20><><EFBFBD><EFBFBD><ECB7BD>
/// <summary>
/// <20><><EFBFBD><EFBFBD>s
/// </summary>
public Prisons() { }
#endregion
}
}