using System; using System.Collections.Generic; using System.Linq; using System.Text; using static GB5Shared.GB5Constant.Enum.Gb4EnumDTO; namespace FrameworkDAL.DTO.UOM { public class UOMDTO { #region PrivateMembers #region UOM private int uomid; private string uomcode = ""; private string uomname = ""; private byte uomtype; //0 - Length,1 - Weight,2 - Time, 3 - Yarn Count,4 - Capacity,5 - Production Entry,6 - Others private string uomtypename; private byte uomnoofdecimals; private string uomgstuomcode = ""; #endregion #region Base private int uomcreatedbyid; //Created By Person (User Id) private DateTime uomcreatedon; //Created On Date private string uomcreatedbyname; //Created By Name private int uommodifiedbyid; //Modified By Person (User Id) private DateTime uommodifiedon; //Modified On Date private string uommodifiedbyname; //Modified By Name #endregion #region Standard private Int16 uomsortorder; private byte uomstatus; //0.Pending, 1.Active, 2.Deleted, 3.Amended, 4.Inactive, 5.Archived private Int16 uomversion; //No Of Times Updated private byte uomsourcetype; #endregion private int uomscreenoperationmode = 1; #endregion #region PublicMembers #region UOM public int UOMId { get { return uomid; } set { uomid = value; } } public string UOMCode { get { return uomcode; } set { if (value == null) { uomcode = ""; } else { uomcode = value; } } } public string UOMName { get { return uomname; } set { if (value == null) { uomname = ""; } else { uomname = value; } } } public byte UOMType { get { return uomtype; } //0 - Length,1 - Weight,2 - Time, 3 - Yarn Count,4 - Capacity,5 - Production Entry,6 - Others set { uomtype = value; } //0 - Length,1 - Weight,2 - Time, 3 - Yarn Count,4 - Capacity,5 - Production Entry,6 - Others } public string UOMTypeName { get { return uomtypename; } set { uomtypename = value; } } public byte UOMNoOfDecimals { get { return uomnoofdecimals; } set { uomnoofdecimals = value; } } #endregion #region Base public int UOMCreatedById { get { return uomcreatedbyid; } //Created By Person (User Id) set { uomcreatedbyid = value; } //Created By Person (User Id) } public DateTime UOMCreatedOn { get { return uomcreatedon; } //Created On Date set { uomcreatedon = value; } //Created On Date } public string UOMCreatedByName { get { return uomcreatedbyname; } //Created By Name set { uomcreatedbyname = value; } //Created By Name } public int UOMModifiedById { get { return uommodifiedbyid; } //Modified By Person (User Id) set { uommodifiedbyid = value; } } public DateTime UOMModifiedOn { get { return uommodifiedon; } //Modified On Date set { uommodifiedon = value; } } public string UOMModifiedByName { get { return uommodifiedbyname; } //Modified By Name set { uommodifiedbyname = value; } //Modified By Name } #endregion #region Standard public Int16 UOMSortOrder { get { return uomsortorder; } set { uomsortorder = value; } } public byte UOMStatus { get { return uomstatus; } //0.Pending, 1.Active, 2.Deleted, 3.Amended, 4.Inactive, 5.Archived set { uomstatus = value; } } public Int16 UOMVersion { get { return uomversion; } //No Of Times Updated set { uomversion = value; } } public byte UOMSourceType { get { return uomsourcetype; } //0.Pending, 1.Active, 2.Deleted, 3.Amended, 4.Inactive, 5.Archived set { uomsourcetype = value; } } #endregion public int UOMScreenOperationMode { get { return uomscreenoperationmode; } set { uomscreenoperationmode = value; } } public string UOMGstUOMCode { get { return uomgstuomcode; } set { uomgstuomcode = value; } } #endregion } }