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.
171 lines
4.8 KiB
Plaintext
171 lines
4.8 KiB
Plaintext
using BP.En;
|
|
|
|
namespace BP.CCBill.Template
|
|
{
|
|
/// <summary>
|
|
/// 单据可创建的工作角色属性
|
|
/// </summary>
|
|
public class StationCreateAttr
|
|
{
|
|
/// <summary>
|
|
/// 单据
|
|
/// </summary>
|
|
public const string FrmID = "FrmID";
|
|
/// <summary>
|
|
/// 工作角色
|
|
/// </summary>
|
|
public const string FK_Station = "FK_Station";
|
|
}
|
|
/// <summary>
|
|
/// 单据可创建的工作角色
|
|
/// 单据的工作角色有两部分组成.
|
|
/// 记录了从一个单据到其他的多个单据.
|
|
/// 也记录了到这个单据的其他的单据.
|
|
/// </summary>
|
|
public class StationCreate : EntityMM
|
|
{
|
|
#region 基本属性
|
|
/// <summary>
|
|
/// UI界面上的访问控制
|
|
/// </summary>
|
|
public override UAC HisUAC
|
|
{
|
|
get
|
|
{
|
|
UAC uac = new UAC();
|
|
uac.OpenAll();
|
|
return uac;
|
|
}
|
|
}
|
|
/// <summary>
|
|
///单据
|
|
/// </summary>
|
|
public int FrmID
|
|
{
|
|
get
|
|
{
|
|
return this.GetValIntByKey(StationCreateAttr.FrmID);
|
|
}
|
|
set
|
|
{
|
|
this.SetValByKey(StationCreateAttr.FrmID, value);
|
|
}
|
|
}
|
|
public string FK_StationT
|
|
{
|
|
get
|
|
{
|
|
return this.GetValRefTextByKey(StationCreateAttr.FK_Station);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 工作角色
|
|
/// </summary>
|
|
public string FK_Station
|
|
{
|
|
get
|
|
{
|
|
return this.GetValStringByKey(StationCreateAttr.FK_Station);
|
|
}
|
|
set
|
|
{
|
|
this.SetValByKey(StationCreateAttr.FK_Station, value);
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 构造方法
|
|
/// <summary>
|
|
/// 单据可创建的工作角色
|
|
/// </summary>
|
|
public StationCreate() { }
|
|
/// <summary>
|
|
/// 重写基类方法
|
|
/// </summary>
|
|
public override Map EnMap
|
|
{
|
|
get
|
|
{
|
|
if (this._enMap != null)
|
|
return this._enMap;
|
|
|
|
Map map = new Map("Frm_StationCreate", "单据角色");
|
|
|
|
map.AddTBStringPK(StationCreateAttr.FrmID, null, "表单", true, true, 1, 100, 100);
|
|
map.AddDDLEntitiesPK(StationCreateAttr.FK_Station, null, "可以创建角色",
|
|
new BP.Port.Stations(), true);
|
|
this._enMap = map;
|
|
return this._enMap;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
/// <summary>
|
|
/// 单据可创建的工作角色
|
|
/// </summary>
|
|
public class StationCreates : EntitiesMM
|
|
{
|
|
#region 构造函数.
|
|
/// <summary>
|
|
/// 单据可创建的工作角色
|
|
/// </summary>
|
|
public StationCreates() { }
|
|
/// <summary>
|
|
/// 单据可创建的工作角色
|
|
/// </summary>
|
|
/// <param name="nodeID">单据ID</param>
|
|
public StationCreates(int nodeID)
|
|
{
|
|
QueryObject qo = new QueryObject(this);
|
|
qo.AddWhere(StationCreateAttr.FrmID, nodeID);
|
|
qo.DoQuery();
|
|
}
|
|
/// <summary>
|
|
/// 单据可创建的工作角色
|
|
/// </summary>
|
|
/// <param name="StationNo">StationNo </param>
|
|
public StationCreates(string StationNo)
|
|
{
|
|
QueryObject qo = new QueryObject(this);
|
|
qo.AddWhere(StationCreateAttr.FK_Station, StationNo);
|
|
qo.DoQuery();
|
|
}
|
|
/// <summary>
|
|
/// 得到它的 Entity
|
|
/// </summary>
|
|
public override Entity GetNewEntity
|
|
{
|
|
get
|
|
{
|
|
return new StationCreate();
|
|
}
|
|
}
|
|
#endregion 构造函数.
|
|
|
|
#region 为了适应自动翻译成java的需要,把实体转换成List.
|
|
/// <summary>
|
|
/// 转化成 java list,C#不能调用.
|
|
/// </summary>
|
|
/// <returns>List</returns>
|
|
public System.Collections.Generic.IList<StationCreate> ToJavaList()
|
|
{
|
|
return (System.Collections.Generic.IList<StationCreate>)this;
|
|
}
|
|
/// <summary>
|
|
/// 转化成list
|
|
/// </summary>
|
|
/// <returns>List</returns>
|
|
public System.Collections.Generic.List<StationCreate> Tolist()
|
|
{
|
|
System.Collections.Generic.List<StationCreate> list = new System.Collections.Generic.List<StationCreate>();
|
|
for (int i = 0; i < this.Count; i++)
|
|
{
|
|
list.Add((StationCreate)this[i]);
|
|
}
|
|
return list;
|
|
}
|
|
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
|
}
|
|
}
|