using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using BP.WF.Data;
using BP.En;
using BP.DA;
namespace BP.MES
{
///
/// 订单 Attr
///
public class ND2RptExtAttr : NDXRptBaseAttr
{
#region 基本属性
///
/// 箱体名称
///
public const string XiangTiMingCheng = "XiangTiMingCheng";
///
/// 订单号
///
public const string DingDanHao = "DingDanHao";
///
/// 项目名称
///
public const string PrjName = "PrjName";
///
/// 期限限定
///
public const string QiXianXianDing = "QiXianXianDing";
///
/// 紧急程度
///
public const string JJCD = "JJCD";
public const string JJCDText = "JJCDText";
///
/// 图纸编号
///
public const string TuZhiBianHao = "TuZhiBianHao";
///
/// 图纸制图人
///
public const string TuZhiZhiTuRen = "TuZhiZhiTuRen";
///
/// 发货人
///
public const string KeHuMingCheng = "KeHuMingCheng";
#endregion
}
///
/// 订单
///
public class ND2RptExt : NDXRptBase
{
#region 属性
///
/// 请假人部门名称
///
public string TuZhiBianHao
{
get
{
return this.GetValStringByKey(ND2RptExtAttr.TuZhiBianHao);
}
set
{
this.SetValByKey(ND2RptExtAttr.TuZhiBianHao, value);
}
}
///
/// 请假人编号
///
public string TuZhiZhiTuRen
{
get
{
return this.GetValStringByKey(ND2RptExtAttr.TuZhiZhiTuRen);
}
set
{
this.SetValByKey(ND2RptExtAttr.TuZhiZhiTuRen, value);
}
}
///
/// 请假人名称
///
//public string ZhuangPeiFuZeRen
//{
// get
// {
// return this.GetValStringByKey(ND2RptExtAttr.ZhuangPeiFuZeRen);
// }
// set
// {
// this.SetValByKey(ND2RptExtAttr.ZhuangPeiFuZeRen, value);
// }
//}
///
/// 请假人部门编号
///
public int JJCD
{
get
{
return this.GetValIntByKey(ND2RptExtAttr.JJCD);
}
set
{
this.SetValByKey(ND2RptExtAttr.JJCD, value);
}
}
///
/// 总经理意见
///
public string JJCDText
{
get
{
return this.GetValRefTextByKey(ND2RptExtAttr.JJCD);
}
}
///
/// 人力资源意见
///
#endregion
#region 构造函数
///
/// 请假
///
public ND2RptExt()
{
}
///
/// 请假
///
/// 工作ID
public ND2RptExt(Int64 workid)
{
this.OID = workid;
this.Retrieve();
}
///
/// 重写基类方法
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("ND2Rpt", "订单信息");
#region 流程的基本字段
map.AddTBIntPKOID();
map.AddTBString(ND2RptExtAttr.Title, null, "标题", true, true, 0, 500, 10);
map.AddTBString(ND2RptExtAttr.BillNo, null, "编号", true, true, 0, 50, 10);
map.AddTBString(ND2RptExtAttr.KeHuMingCheng, null, "客户名称", false, true, 0, 50, 10);
map.AddTBString(ND2RptExtAttr.DingDanHao, null, "订单号", true, true, 0, 50, 10);
map.AddTBString(ND2RptExtAttr.PrjName, null, "项目名称", true, true, 0, 50, 10);
map.AddTBString(ND2RptExtAttr.QiXianXianDing, null, "期限限定", true, true, 0, 50, 10);
map.AddDDLSysEnum(ND2RptExtAttr.JJCD, 0, "紧急程度", true, true, ND2RptExtAttr.JJCD, "@0=低,@1=中,@2=高");
map.AddTBInt(ND2RptExtAttr.FlowEndNode, 0, "订单状态(运行的节点)", false, true);
#endregion 流程的基本字段
//箱体信息.
map.AddDtl(new ND201Dtl1s(), ND201Dtl1Attr.RefPK);
this._enMap = map;
return this._enMap;
}
}
#endregion
}
///
/// 订单s
///
public class ND2RptExts : NDXRptBases
{
#region 方法
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new ND2RptExt();
}
}
///
/// 请假s
///
public ND2RptExts() { }
#endregion
}
}