using Forks.EnterpriseServices.DataDictionary;
|
|
using Forks.EnterpriseServices.DomainObjects2;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ButcherFactory.BO
|
|
{
|
|
[MapToTable("Butcher_SegmentProduction")]
|
|
[DBIndex("IDX_Butcher_SegmentProduction_Clustered", "GroupID", false, 0)]
|
|
[DBIndexType("IDX_Butcher_SegmentProduction_Clustered", IndexType.Clustered)]
|
|
public class SegmentProduction : SyncBill
|
|
{
|
|
public string BarCode { get; set; }
|
|
|
|
[NonDmoProperty]
|
|
public string ShortCode
|
|
{
|
|
get
|
|
{
|
|
if (string.IsNullOrEmpty(BarCode))
|
|
return null;
|
|
if (BarCode.Contains("260912011"))
|
|
return BarCode.Replace("260912011", "");
|
|
return BarCode;
|
|
}
|
|
}
|
|
|
|
public long? WorkUnit_ID { get; set; }
|
|
|
|
public long ProductBatch_ID { get; set; }
|
|
|
|
public long Goods_ID { get; set; }
|
|
|
|
public decimal Weight { get; set; }
|
|
|
|
[ReferenceTo(typeof(Goods), "Name")]
|
|
[Join("Goods_ID", "ID")]
|
|
public string Goods_Name { get; set; }
|
|
|
|
[ReferenceTo(typeof(Goods), "Spec")]
|
|
[Join("Goods_ID", "ID")]
|
|
public string Goods_Spec { get; set; }
|
|
|
|
public long? GroupID { get; set; }
|
|
|
|
public bool Submited { get; set; }
|
|
|
|
////挂起状态
|
|
//public bool TrunOut { get; set; }
|
|
|
|
public long? TrunOutID { get; set; }
|
|
}
|
|
}
|