using System;
using BP.En;
namespace BP.WF.Data
{
///
/// 完成状态
///
public enum CHSta
{
///
/// 按期完成
///
AnQi = 0,
///
/// 预期完成
///
YuQi = 1
}
///
/// 时效考核属性
///
public class CHAttr : EntityMyPKAttr
{
#region 属性
///
/// 工作ID
///
public const string WorkID = "WorkID";
///
/// 流程编号
///
public const string FK_Flow = "FK_Flow";
///
/// 流程编号
///
public const string FK_FlowT = "FK_FlowT";
///
/// 发送人
///
public const string Sender = "Sender";
///
/// 发送人名称
///
public const string SenderT = "SenderT";
///
/// 节点
///
public const string FK_Node = "FK_Node";
///
/// 节点编号
///
public const string FK_NodeT = "FK_NodeT";
///
/// 部门编号
///
public const string FK_Dept = "FK_Dept";
///
/// 部门编号
///
public const string FK_DeptT = "FK_DeptT";
///
/// 当事人
///
public const string FK_Emp = "FK_Emp";
///
/// 当事人名称
///
public const string FK_EmpT = "FK_EmpT";
///
/// 相关当事人
///
public const string GroupEmps = "GroupEmps";
///
/// 相关当事人名称
///
public const string GroupEmpsNames = "GroupEmpsNames";
///
/// 相关当事人数量
///
public const string GroupEmpsNum = "GroupEmpsNum";
///
/// 限期
///
public const string TimeLimit = "TimeLimit";
///
/// 实际期限
///
public const string UseDays = "UseDays";
///
/// 使用时间
///
public const string UseHours = "UseHours";
///
/// 逾期
///
public const string OverDays = "OverDays";
///
/// 预期
///
public const string OverHours = "OverHours";
///
/// 用时(分钟)
///
public const string UseMinutes = "UseMinutes";
///
/// 超时(分钟)
///
public const string OverMinutes = "OverMinutes";
///
/// 状态
///
public const string CHSta = "CHSta";
///
/// 年月
///
public const string FK_NY = "FK_NY";
///
/// 考核方式
///
public const string DTSWay = "DTSWay";
///
/// 周
///
public const string WeekNum = "WeekNum";
///
/// FID
///
public const string FID = "FID";
///
/// 标题
///
public const string Title = "Title";
///
/// 时间从
///
public const string DTFrom = "DTFrom";
///
/// 时间到
///
public const string DTTo = "DTTo";
///
/// 应完成日期
///
public const string SDT = "SDT";
///
/// 总扣分
///
public const string Points = "Points";
///
/// 组织编号
///
public const string OrgNo = "OrgNo";
#endregion
}
///
/// 时效考核
///
public class CH : EntityMyPK
{
#region 基本属性
///
/// 发送人
///
public string Sender
{
get
{
return this.GetValStringByKey(CHAttr.Sender);
}
set
{
this.SetValByKey(CHAttr.Sender, value);
}
}
///
/// 发送人名称
///
public string SenderT
{
get
{
return this.GetValStringByKey(CHAttr.SenderT);
}
set
{
this.SetValByKey(CHAttr.SenderT, value);
}
}
///
/// 考核状态
///
public CHSta CHSta
{
get
{
return (CHSta)this.GetValIntByKey(CHAttr.CHSta);
}
set
{
this.SetValByKey(CHAttr.CHSta, (int)value);
}
}
///
/// 时间到
///
public string DTTo
{
get
{
return this.GetValStringByKey(CHAttr.DTTo);
}
set
{
this.SetValByKey(CHAttr.DTTo, value);
}
}
///
/// 时间从
///
public string DTFrom
{
get
{
return this.GetValStringByKey(CHAttr.DTFrom);
}
set
{
this.SetValByKey(CHAttr.DTFrom, value);
}
}
///
/// 应完成日期
///
public string SDT
{
get
{
return this.GetValStringByKey(CHAttr.SDT);
}
set
{
this.SetValByKey(CHAttr.SDT, value);
}
}
///
/// 流程标题
///
public string Title
{
get
{
return this.GetValStringByKey(CHAttr.Title);
}
set
{
this.SetValByKey(CHAttr.Title, value);
}
}
///
/// 流程编号
///
public string FK_Flow
{
get
{
return this.GetValStringByKey(CHAttr.FK_Flow);
}
set
{
this.SetValByKey(CHAttr.FK_Flow, value);
}
}
///
/// 流程
///
public string FK_FlowT
{
get
{
return this.GetValStringByKey(CHAttr.FK_FlowT);
}
set
{
this.SetValByKey(CHAttr.FK_FlowT, value);
}
}
///
/// 限期
///
public int TimeLimit
{
get
{
return this.GetValIntByKey(CHAttr.TimeLimit);
}
set
{
this.SetValByKey(CHAttr.TimeLimit, value);
}
}
///
/// 实际完成用时.
///
public float UseDays
{
get
{
return this.GetValFloatByKey(CHAttr.UseDays);
}
set
{
this.SetValByKey(CHAttr.UseDays, value);
}
}
///
/// 逾期时间
///
public float OverDays
{
get
{
return this.GetValFloatByKey(CHAttr.OverDays);
}
set
{
this.SetValByKey(CHAttr.OverDays, value);
}
}
///
/// 用时(分钟)
///
public float UseMinutes
{
get
{
return this.GetValFloatByKey(CHAttr.UseMinutes);
}
set
{
this.SetValByKey(CHAttr.UseMinutes, value);
}
}
///
/// 超时(分钟)
///
public float OverMinutes
{
get
{
return this.GetValFloatByKey(CHAttr.OverMinutes);
}
set
{
this.SetValByKey(CHAttr.OverMinutes, value);
}
}
///
/// 操作人员
///
public string FK_Emp
{
get
{
return this.GetValStringByKey(CHAttr.FK_Emp);
}
set
{
this.SetValByKey(CHAttr.FK_Emp, value);
}
}
///
/// 人员
///
public string FK_EmpT
{
get
{
return this.GetValStringByKey(CHAttr.FK_EmpT);
}
set
{
this.SetValByKey(CHAttr.FK_EmpT, value);
}
}
///
/// 相关当事人
///
public string GroupEmps
{
get
{
return this.GetValStringByKey(CHAttr.GroupEmps);
}
set
{
this.SetValByKey(CHAttr.GroupEmps, value);
}
}
///
/// 相关当事人名称
///
public string GroupEmpsNames
{
get
{
return this.GetValStringByKey(CHAttr.GroupEmpsNames);
}
set
{
this.SetValByKey(CHAttr.GroupEmpsNames, value);
}
}
///
/// 相关当事人数量
///
public int GroupEmpsNum
{
get
{
return this.GetValIntByKey(CHAttr.GroupEmpsNum);
}
set
{
this.SetValByKey(CHAttr.GroupEmpsNum, value);
}
}
///
/// 部门
///
public string FK_Dept
{
get
{
return this.GetValStrByKey(CHAttr.FK_Dept);
}
set
{
this.SetValByKey(CHAttr.FK_Dept, value);
}
}
///
/// 部门名称
///
public string FK_DeptT
{
get
{
return this.GetValStrByKey(CHAttr.FK_DeptT);
}
set
{
this.SetValByKey(CHAttr.FK_DeptT, value);
}
}
///
/// 年月
///
public string FK_NY
{
get
{
return this.GetValStrByKey(CHAttr.FK_NY);
}
set
{
this.SetValByKey(CHAttr.FK_NY, value);
}
}
///
/// 考核方式
///
public int DTSWay
{
get
{
return this.GetValIntByKey(CHAttr.DTSWay);
}
set
{
this.SetValByKey(CHAttr.DTSWay, value);
}
}
///
/// 周
///
public int WeekNum
{
get
{
return this.GetValIntByKey(CHAttr.WeekNum);
}
set
{
this.SetValByKey(CHAttr.WeekNum, value);
}
}
///
/// 工作ID
///
public Int64 WorkID
{
get
{
return this.GetValInt64ByKey(CHAttr.WorkID);
}
set
{
this.SetValByKey(CHAttr.WorkID, value);
}
}
///
/// 流程ID
///
public Int64 FID
{
get
{
return this.GetValInt64ByKey(CHAttr.FID);
}
set
{
this.SetValByKey(CHAttr.FID, value);
}
}
///
/// 节点ID
///
public int FK_Node
{
get
{
return this.GetValIntByKey(CHAttr.FK_Node);
}
set
{
this.SetValByKey(CHAttr.FK_Node, value);
}
}
///
/// 节点名称
///
public string FK_NodeT
{
get
{
return this.GetValStrByKey(CHAttr.FK_NodeT);
}
set
{
this.SetValByKey(CHAttr.FK_NodeT, value);
}
}
///
/// 总扣分
///
public float Points
{
get
{
return this.GetValFloatByKey(CHAttr.Points);
}
set
{
this.SetValByKey(CHAttr.Points, value);
}
}
#endregion
#region 构造方法
///
/// UI界面上的访问控制
///
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.IsDelete = false;
uac.IsInsert = false;
uac.IsUpdate = false;
uac.IsView = true;
return uac;
}
}
///
/// 时效考核
///
public CH() { }
///
///
///
///
public CH(string pk)
: base(pk)
{
}
#endregion
#region Map
///
/// EnMap
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("WF_CH", "时效考核");
map.AddMyPK();
#region 基本属性.
map.AddTBInt(CHAttr.WorkID, 0, "工作ID", false, true);
map.AddTBInt(CHAttr.FID, 0, "FID", false, true);
map.AddTBString(CHAttr.Title, null, "标题", false, false, 0, 900, 5);
map.AddTBString(CHAttr.FK_Flow, null, "流程", false, false, 0, 4, 3);
map.AddTBString(CHAttr.FK_FlowT, null, "流程名称", true, true, 0, 200, 5);
map.AddTBInt(CHAttr.FK_Node, 0, "节点", false, false);
map.AddTBString(CHAttr.FK_NodeT, null, "节点名称", true, true, 0, 200, 5);
map.AddTBString(CHAttr.Sender, null, "发送人", false, false, 0, 200, 3);
map.AddTBString(CHAttr.SenderT, null, "发送人名称", true, true, 0, 200, 5);
map.AddTBString(CHAttr.FK_Emp, null, "当事人", true, true, 0, 100, 3);
map.AddTBString(CHAttr.FK_EmpT, null, "当事人名称", true, true, 0, 200, 5);
//为邓州增加的属性. 解决多人处理一个节点的工作的问题.
map.AddTBString(CHAttr.GroupEmps, null, "相关当事人", true, true, 0, 400, 3);
map.AddTBString(CHAttr.GroupEmpsNames, null, "相关当事人名称", true, true, 0, 900, 3);
map.AddTBInt(CHAttr.GroupEmpsNum, 1, "相关当事人数量", false, false);
map.AddTBString(CHAttr.DTFrom, null, "任务下达时间", true, true, 0, 50, 5);
map.AddTBString(CHAttr.DTTo, null, "任务处理时间", true, true, 0, 50, 5);
map.AddTBString(CHAttr.SDT, null, "应完成日期", true, true, 0, 50, 5);
map.AddTBString(CHAttr.FK_Dept, null, "隶属部门", true, true, 0, 50, 5);
map.AddTBString(CHAttr.FK_DeptT, null, "部门名称", true, true, 0, 500, 5);
map.AddTBString(CHAttr.FK_NY, null, "隶属月份", true, true, 0, 10, 10);
map.AddDDLSysEnum(CHAttr.DTSWay, 0, "考核方式", true, true, CHAttr.DTSWay, "@0=不考核@1=按照时效考核@2=按照工作量考核");
#endregion 基本属性.
#region 计算属性.
map.AddTBString(CHAttr.TimeLimit, null, "规定限期", true, true, 0, 50, 5);
map.AddTBFloat(CHAttr.OverMinutes, 0, "逾期分钟", false, true);
map.AddTBFloat(CHAttr.UseDays, 0, "实际使用天", false, true);
map.AddTBFloat(CHAttr.OverDays, 0, "逾期天", false, true);
map.AddTBInt(CHAttr.CHSta, 0, "状态", true, true);
map.AddTBInt(CHAttr.WeekNum, 0, "第几周", false, true);
map.AddTBFloat(CHAttr.Points, 0, "总扣分", true, true);
#endregion 计算属性.
map.AddTBString(CHAttr.OrgNo, null, "组织", false, false, 0, 100, 3);
this._enMap = map;
return this._enMap;
}
}
#endregion
protected override bool beforeUpdateInsertAction()
{
this.setMyPK(BP.Web.WebUser.OrgNo);
return base.beforeUpdateInsertAction();
}
}
///
/// 时效考核s
///
public class CHs : Entities
{
#region 构造方法属性
///
/// 时效考核s
///
public CHs() { }
#endregion
#region 属性
///
/// 时效考核
///
public override Entity GetNewEntity
{
get
{
return new CH();
}
}
#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((CH)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}