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.

101 lines
2.2 KiB
Plaintext

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