using BWP.B3ClientService.NamedValueTemplate;
|
|
using BWP.B3Frameworks.BO;
|
|
using Forks.EnterpriseServices;
|
|
using Forks.EnterpriseServices.DataDictionary;
|
|
using Forks.EnterpriseServices.DataForm;
|
|
using Forks.EnterpriseServices.DomainObjects2;
|
|
using Forks.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace BWP.B3ClientService.BO
|
|
{
|
|
[DBIndex("IDX_B3ClientService_SegmentProductionInfo_Clustered", "BarCode", false, 0)]
|
|
[DBIndexType("IDX_B3ClientService_SegmentProductionInfo_Clustered", IndexType.Normal)]
|
|
[DFClass]
|
|
[LogicName("分割品数据表")]
|
|
/// <summary>
|
|
/// 状态 入库时间 退库时间
|
|
/// 未入库 空 空
|
|
/// 已入库 有 空
|
|
/// 已退库 有 有
|
|
/// </summary>
|
|
public class SegmentProductionInfo : Base
|
|
{
|
|
public SegmentProductionInfo()
|
|
{
|
|
CreateTime = DateTime.Now;
|
|
}
|
|
|
|
[DbColumn(DbType = SqlDbType.DateTime)]
|
|
[LogicName("创建时间")]
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
[LogicName("条码")]
|
|
public string BarCode { get; set; }
|
|
|
|
#region 生产信息
|
|
[LogicName("生产时间")]
|
|
[DbColumn(DbType = SqlDbType.DateTime)]
|
|
public DateTime? ProductTime { get; set; }
|
|
|
|
[LogicName("生产员")]
|
|
public long? Worker_ID { get; set; }
|
|
|
|
[LogicName("工作单元")]
|
|
public long? WorkUnit_ID { get; set; }
|
|
|
|
[LogicName("生产批次")]
|
|
public long? ProductBatch_ID { get; set; }
|
|
|
|
[LogicName("存货")]
|
|
public long? Goods_ID { get; set; }
|
|
|
|
[LogicName("重量")]
|
|
public decimal? Weight { get; set; }
|
|
|
|
[LogicName("标准件")]
|
|
[DbColumn(DefaultValue = 0)]
|
|
public bool StandardPic { get; set; }
|
|
#endregion
|
|
|
|
#region 入库信息
|
|
[LogicName("入库时间")]
|
|
[DbColumn(DbType = SqlDbType.DateTime)]
|
|
public DateTime? InStoreTime { get; set; }
|
|
|
|
[LogicName("仓库")]
|
|
public long? Store_ID { get; set; }
|
|
#endregion
|
|
|
|
#region 退库信息
|
|
|
|
[LogicName("退库时间")]
|
|
[DbColumn(DbType = SqlDbType.DateTime)]
|
|
public DateTime? BackTime { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region 领用信息
|
|
|
|
[LogicName("领用人员")]
|
|
public long? PickWorker_ID { get; set; }
|
|
|
|
[LogicName("领用工作单元")]
|
|
public long? PickWorkUnit_ID { get; set; }
|
|
|
|
[LogicName("领用时间")]
|
|
public DateTime? PickTime { get; set; }
|
|
|
|
[LogicName("领用类型")]
|
|
public NamedValue<领用类型>? PickType { get; set; }
|
|
|
|
[LogicName("领用数量")]
|
|
[DbColumn(DefaultValue = 1)]
|
|
public decimal? PickNumber { get; set; }
|
|
|
|
#endregion
|
|
|
|
public bool IsSync { get; set; }
|
|
|
|
[DbColumn(DefaultValue = false)]
|
|
public bool Delete { get; set; }
|
|
|
|
[DbColumn(DefaultValue = 0)]
|
|
public int RowVersion { get; set; }
|
|
|
|
public long? BillID { get; set; }
|
|
|
|
public long? DetailID { get; set; }
|
|
|
|
[DbColumn(DefaultValue = false)]
|
|
public bool CreateOutput { get; set; }
|
|
|
|
[DbColumn(DefaultValue = false)]
|
|
public bool Added { get; set; }
|
|
|
|
[ReferenceTo(typeof(Goods), "Name")]
|
|
[Join("Goods_ID", "ID")]
|
|
public string Goods_Name { get; set; }
|
|
|
|
[ReferenceTo(typeof(Goods), "Code")]
|
|
[Join("Goods_ID", "ID")]
|
|
public string Goods_Code { get; set; }
|
|
|
|
[ReferenceTo(typeof(Worker), "Name")]
|
|
[Join("Worker_ID", "ID")]
|
|
public string Worker_Name { get; set; }
|
|
|
|
[ReferenceTo(typeof(ProductBatch), "Name")]
|
|
[Join("ProductBatch_ID", "ID")]
|
|
public string ProductBatch_Name { get; set; }
|
|
}
|
|
}
|