using BP.En;
///
/// 先阶段主要用于流程属性中的时限规则
///
namespace BP.WF.Template
{
///
/// 配件类型
///
public class PartType
{
///
/// 前置导航的父子流程关系
///
public const string ParentSubFlowGuide = "ParentSubFlowGuide";
///
/// 流程时限设置
///
public const string DeadLineRole = "DeadLineRole";
}
///
/// 配件属性
///
public class PartAttr:BP.En.EntityMyPKAttr
{
#region 基本属性
///
/// 流程编号
///
public const string FK_Flow = "FK_Flow";
///
/// 节点ID
///
public const string FK_Node = "FK_Node";
///
/// 前置导航的父子流程关系
///
public const string PartType = "PartType";
///
/// 字段存储0
///
public const string Tag0 = "Tag0";
///
/// 字段存储1
///
public const string Tag1 = "Tag1";
///
/// 字段存储2
///
public const string Tag2 = "Tag2";
///
/// 字段存储3
///
public const string Tag3 = "Tag3";
///
/// 字段存储4
///
public const string Tag4 = "Tag4";
///
/// 字段存储5
///
public const string Tag5 = "Tag5";
///
/// 字段存储6
///
public const string Tag6 = "Tag6";
///
/// 字段存储7
///
public const string Tag7 = "Tag7";
///
/// 字段存储8
///
public const string Tag8 = "Tag8";
///
/// 字段存储9
///
public const string Tag9 = "Tag9";
#endregion
}
///
/// 配件.
///
public class Part : EntityMyPK
{
#region 基本属性
///
/// UI界面上的访问控制
///
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.IsUpdate = true;
return uac;
}
}
///
/// 配件的事务编号
///
public string FK_Flow
{
get
{
return this.GetValStringByKey(PartAttr.FK_Flow);
}
set
{
SetValByKey(PartAttr.FK_Flow, value);
}
}
///
/// 类型
///
public string PartType
{
get
{
return this.GetValStringByKey(PartAttr.PartType);
}
set
{
SetValByKey(PartAttr.PartType, value);
}
}
///
/// 节点ID
///
public int FK_Node
{
get
{
return this.GetValIntByKey(PartAttr.FK_Node);
}
set
{
SetValByKey(PartAttr.FK_Node, value);
}
}
///
/// 字段存储0
///
public string Tag0
{
get
{
return this.GetValStringByKey(PartAttr.Tag0);
}
set
{
SetValByKey(PartAttr.Tag0, value);
}
}
///
/// 字段存储1
///
public string Tag1
{
get
{
return this.GetValStringByKey(PartAttr.Tag1);
}
set
{
SetValByKey(PartAttr.Tag1, value);
}
}
///
/// 字段存储2
///
public string Tag2
{
get
{
return this.GetValStringByKey(PartAttr.Tag2);
}
set
{
SetValByKey(PartAttr.Tag2, value);
}
}
///
/// 字段存储3
///
public string Tag3
{
get
{
return this.GetValStringByKey(PartAttr.Tag3);
}
set
{
SetValByKey(PartAttr.Tag3, value);
}
}
///
/// 字段存储4
///
public string Tag4
{
get
{
return this.GetValStringByKey(PartAttr.Tag4);
}
set
{
SetValByKey(PartAttr.Tag4, value);
}
}
///
/// 字段存储5
///
public string Tag5
{
get
{
return this.GetValStringByKey(PartAttr.Tag5);
}
set
{
SetValByKey(PartAttr.Tag5, value);
}
}
///
/// 字段存储6
///
public string Tag6
{
get
{
return this.GetValStringByKey(PartAttr.Tag6);
}
set
{
SetValByKey(PartAttr.Tag6, value);
}
}
///
/// 字段存储7
///
public string Tag7
{
get
{
return this.GetValStringByKey(PartAttr.Tag7);
}
set
{
SetValByKey(PartAttr.Tag7, value);
}
}
///
/// 字段存储8
///
public string Tag8
{
get
{
return this.GetValStringByKey(PartAttr.Tag8);
}
set
{
SetValByKey(PartAttr.Tag8, value);
}
}
///
/// 字段存储9
///
public string Tag9
{
get
{
return this.GetValStringByKey(PartAttr.Tag9);
}
set
{
SetValByKey(PartAttr.Tag9, value);
}
}
#endregion
#region 构造函数
///
/// 配件
///
public Part() { }
///
/// 配件
///
/// 配件ID
public Part(string mypk)
{
this.setMyPK(mypk);
this.Retrieve();
}
///
/// 重写基类方法
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("WF_Part", "配件");
map.AddMyPK();
map.AddTBString(PartAttr.FK_Flow, null, "流程编号", false, true, 0, 5, 10);
map.AddTBInt(PartAttr.FK_Node, 0, "节点ID", false, false);
map.AddTBString(PartAttr.PartType, null, "类型", false, true, 0, 100, 10);
map.AddTBString(PartAttr.Tag0, null, "Tag0", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag1, null, "Tag1", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag2, null, "Tag2", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag3, null, "Tag3", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag4, null, "Tag4", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag5, null, "Tag5", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag6, null, "Tag6", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag7, null, "Tag7", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag8, null, "Tag8", false, true, 0, 2000, 10);
map.AddTBString(PartAttr.Tag9, null, "Tag9", false, true, 0, 2000, 10);
this._enMap = map;
return this._enMap;
}
}
#endregion
}
///
/// 配件s
///
public class Parts : EntitiesMyPK
{
#region 方法
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new Part();
}
}
#endregion
#region 构造方法
///
/// 配件集合
///
public Parts()
{
}
///
/// 配件集合.
///
///
public Parts(string fk_flow)
{
this.Retrieve(PartAttr.FK_Flow, fk_flow);
}
#endregion
#region 为了适应自动翻译成java的需要,把实体转换成List.
///
/// 转化成 java list,C#不能调用.
///
/// List
public System.Collections.Generic.IList ToJavaList()
{
return (System.Collections.Generic.IList)this;
}
///
/// 转化成list
///
/// List
public System.Collections.Generic.List Tolist()
{
System.Collections.Generic.List list = new System.Collections.Generic.List();
for (int i = 0; i < this.Count; i++)
{
list.Add((Part)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}