using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AutoMapper; using BO.BO; using Forks.EnterpriseServices.DataForm; using Forks.EnterpriseServices.DomainObjects2; using Newtonsoft.Json; namespace MaterialRequisition.Model { [Serializable] public class MaterialRequisitionRecord { public string BarCode { get; set; } public long? Goods_ID { get;set; } public string Goods_Name { get; set; } public string Goods_Code { get; set; } public string Goods_MainUnit { get; set; } public long? ID { get; set; } private int mNumber = 1; public int Number { get { return mNumber; } set { mNumber = value; } } public decimal? Weight { get; set; } public decimal? BeforeWeight { get; set; } public decimal? LossWeight { get { if (BeforeWeight == null) return null; return BeforeWeight - (Weight ?? 0); } } public long? WorkShop_ID { get; set; } public long? WorkUnit_ID { get; set; } public long? Store_ID { get; set; } public long? ProductBatch_ID { get; set; } public string ProductBatch { get; set; } public string Creator { get; set; } } }