using System; using System.Collections.Generic; using System.Linq; using System.Text; using MMDAL.DTO.LotDetail; using MMDAL.DTO.MMHead; using MMDAL.DTO.Pack; namespace MMDAL.DTO.Production { public class ProductionDTO //: FinalRootFrame { #region PrivateMembers #region Production private int productionid; //Id #region BizTransactionType private int biztransactiontypeid = -1; //Id private string biztransactiontypecode; //Code private string biztransactiontypename; //Name private int biztransactiontypebiztransactiontypeclassid = -1; #endregion #region OrganizationUnit private int ouid = -1; //Id private string oucode; //Code private string ouname; //Name #endregion #region Period private int periodid = -1; //Id private string periodcode; //Code private string periodname; //Name private DateTime periodfromdate; //FromDate private DateTime periodtodate; //ToDate #endregion private DateTime productiondate; //DAte private string productionnumber; //Number private DateTime productionreferencedate; //ReferenceDate private string productionreferencenumber; //ReferenceNumber #region User private int inchargeid = -1; //Id private string inchargecode; //Code private string inchargename; //Name #endregion #region Shift private int shiftid = -1; //Id private string shiftcode; //Code private string shiftdescription; //Description #endregion #region Department private int departmentid = -1; //Id private string departmentcode; //Code private string departmentname; //Name #endregion private string productionremarks; //Remarks private byte productionselecttype; //Remarks #region WorkCenter private int workcenterid = -1; //Id private string workcentercode; //Code private string workcentername; //Name #endregion #region Store private int fromstoreid = -1; //Id private string fromstorecode; //Code private string fromstorename; //Name #endregion #region Store private int tostoreid = -1; //Id private string tostorecode; //Code private string tostorename; //Name #endregion private byte productiontype; //Type private byte productionisstockpost; private int productionoperationglobal = 1; private int isdismantlingproduction = 1; //0-True,1-False private int dismantlingproductionquantity = 0; #endregion #region Base private byte productionstatus; //Status private Int16 productionversion; //Version private byte productionsourcetype; //Sourcetype #endregion #region Standard private int productioncreatedbyid; //CreatedById private string productioncreatedbyname; //CreatedByName private DateTime productioncreatedon; //CreatedOn private int productionmodifiedbyid; //ModifiedById private string productionmodifiedbyname; //ModifiedByName private DateTime productionmodifiedon; //ModifiedOn #endregion private List productiondetailarray = new List(); private List productionresourcearray = new List(); private List productionlotarray = new List(); #endregion private int productionindentid = -1; #region PublicMembers #region Production public int ProductionId { get { return productionid; } //Id set { productionid = value; } //Id } #region BizTransactionType public int BIZTransactionTypeId { get { return biztransactiontypeid; } //Id set { biztransactiontypeid = value; } //Id } public string BIZTransactionTypeCode { get { return biztransactiontypecode; } //Code set { biztransactiontypecode = value; } //Code } public string BIZTransactionTypeName { get { return biztransactiontypename; } //Name set { biztransactiontypename = value; } //Name } public int BIZTransactionTypeBIZTransactionTypeClassId { get { return biztransactiontypebiztransactiontypeclassid; } //Id set { biztransactiontypebiztransactiontypeclassid = value; } //Id } #endregion #region OrganizationUnit public int OUId { get { return ouid; } //Id set { ouid = value; } //Id } public string OUCode { get { return oucode; } //Code set { oucode = value; } //Code } public string OUName { get { return ouname; } //Name set { ouname = value; } //Name } #endregion #region Period public int PeriodId { get { return periodid; } //Id set { periodid = value; } //Id } public string PeriodCode { get { return periodcode; } //Code set { periodcode = value; } //Code } public string PeriodName { get { return periodname; } //Name set { periodname = value; } //Name } public DateTime PeriodFromDate { get { return periodfromdate; } //FromDate set { periodfromdate = value; } //FromDate } public DateTime PeriodToDate { get { return periodtodate; } //ToDate set { periodtodate = value; } //ToDate } #endregion public DateTime ProductionDate { get { return productiondate; } //DAte set { productiondate = value; } //DAte } public string ProductionNumber { get { return productionnumber; } //Number set { productionnumber = value; } //Number } public DateTime ProductionReferenceDate { get { return productionreferencedate; } //ReferenceDate set { productionreferencedate = value; } //ReferenceDate } public string ProductionReferenceNumber { get { return productionreferencenumber; } //ReferenceNumber set { productionreferencenumber = value; } //ReferenceNumber } #region User public int InchargeId { get { return inchargeid; } //Id set { inchargeid = value; } //Id } public string InchargeCode { get { return inchargecode; } //Code set { inchargecode = value; } //Code } public string InchargeName { get { return inchargename; } //Name set { inchargename = value; } //Name } #endregion #region Shift public int ShiftId { get { return shiftid; } //Id set { shiftid = value; } //Id } public string ShiftCode { get { return shiftcode; } //Code set { shiftcode = value; } //Code } public string ShiftDescription { get { return shiftdescription; } //Description set { shiftdescription = value; } //Description } #endregion #region Department public int DepartmentId { get { return departmentid; } //Id set { departmentid = value; } //Id } public string DepartmentCode { get { return departmentcode; } //Code set { departmentcode = value; } //Code } public string DepartmentName { get { return departmentname; } //Name set { departmentname = value; } //Name } #endregion public string ProductionRemarks { get { return productionremarks; } //Remarks set { productionremarks = value; } //Remarks } public byte ProductionSelectType { get { return productionselecttype; } //Remarks set { productionselecttype = value; } //Remarks } #region WorkCenter public int WorkCenterId { get { return workcenterid; } //Id set { workcenterid = value; } //Id } public string WorkCenterCode { get { return workcentercode; } //Code set { workcentercode = value; } //Code } public string WorkCenterName { get { return workcentername; } //Name set { workcentername = value; } //Name } #endregion #region Store public int FromStoreId { get { return fromstoreid; } //Id set { fromstoreid = value; } //Id } public string FromStoreCode { get { return fromstorecode; } //Code set { fromstorecode = value; } //Code } public string FromStoreName { get { return fromstorename; } //Name set { fromstorename = value; } //Name } #endregion #region Store public int ToStoreId { get { return tostoreid; } //Id set { tostoreid = value; } //Id } public string ToStoreCode { get { return tostorecode; } //Code set { tostorecode = value; } //Code } public string ToStoreName { get { return tostorename; } //Name set { tostorename = value; } //Name } #endregion public byte ProductionType { get { return productiontype; } //Type set { productiontype = value; } //Type } public byte ProductionIsStockPost { get { return productionisstockpost; } //Type set { productionisstockpost = value; } //Type } public int ProductionOperationGlobal { get { return productionoperationglobal; } //ProductionOperationGlobal set { productionoperationglobal = value; } //ProductionOperationGlobal } public int IsDismantlingProduction { get { return isdismantlingproduction; } //IsDismantlingProduction set { isdismantlingproduction = value; } //IsDismantlingProduction } public int DismantlingProductionQuantity { get { return dismantlingproductionquantity; } //DismantlingProductionQuantity set { dismantlingproductionquantity = value; } //DismantlingProductionQuantity } #endregion #region Base public byte ProductionStatus { get { return productionstatus; } //Status set { productionstatus = value; } //Status } public Int16 ProductionVersion { get { return productionversion; } //Version set { productionversion = value; } //Version } public byte ProductionSourcetype { get { return productionsourcetype; } //Sourcetype set { productionsourcetype = value; } //Sourcetype } #endregion #region Standard public int ProductionCreatedById { get { return productioncreatedbyid; } //CreatedById set { productioncreatedbyid = value; } //CreatedById } public string ProductionCreatedByName { get { return productioncreatedbyname; } //CreatedByName set { productioncreatedbyname = value; } //CreatedByName } public DateTime ProductionCreatedOn { get { return productioncreatedon; } //CreatedOn set { productioncreatedon = value; } //CreatedOn } public int ProductionModifiedById { get { return productionmodifiedbyid; } //ModifiedById set { productionmodifiedbyid = value; } //ModifiedById } public string ProductionModifiedByName { get { return productionmodifiedbyname; } //ModifiedByName set { productionmodifiedbyname = value; } //ModifiedByName } public DateTime ProductionModifiedOn { get { return productionmodifiedon; } //ModifiedOn set { productionmodifiedon = value; } //ModifiedOn } #endregion public List ProductionDetailArray { get { return productiondetailarray; } set { productiondetailarray = value; } } public List ProductionResourceArray { get { return productionresourcearray; } set { productionresourcearray = value; } } public List ProductionLotArray { get { return productionlotarray; } set { productionlotarray = value; } } #endregion #region For FineTuning Variable private int workorderid; private int allocationid = -1; private string allocationcode; //Code private string allocationname; //Name private double goodquantity; private double reworkquantity; private double rejectedquantity; private double otherquantity; private double producequantity; private double excessshortagequantity; private string starttime; private string endtime; private DateTime startdate; private DateTime enddate; private int resourcetypeid; private int machineid; private int employeeid; private int duration; private int isreprocess = 1; public int WorkOrderId { get { return workorderid; } set { workorderid = value; } } public int AllocationId { get { return allocationid; } set { allocationid = value; } } public string AllocationCode { get { return allocationcode; } //Code set { allocationcode = value; } //Code } public string AllocationName { get { return allocationname; } //Name set { allocationname = value; } //Name } public double GoodQuantity { get { return goodquantity; } //Quantity set { goodquantity = value; } //Quantity } public double ReworkQuantity { get { return reworkquantity; } //Quantity set { reworkquantity = value; } //Quantity } public double RejectedQuantity { get { return rejectedquantity; } //Quantity set { rejectedquantity = value; } //Quantity } public double OtherQuantity { get { return otherquantity; } //Quantity set { otherquantity = value; } //Quantity } public double ProduceQuantity { get { return producequantity; } //Quantity set { producequantity = value; } //Quantity } public double ExcessShortageQuantity { get { return excessshortagequantity; } //ExcessShortageQuantity set { excessshortagequantity = value; } //ExcessShortageQuantity } public string StartTime { get { return starttime; } //Type set { starttime = value; } //Type } public string EndTime { get { return endtime; } //Type set { endtime = value; } //Type } public DateTime StartDate { get { return startdate; } //Type set { startdate = value; } //Type } public DateTime EndDate { get { return enddate; } //Type set { enddate = value; } //Type } public int ResourceTypeId { get { return resourcetypeid; } //ResourceTypeId set { resourcetypeid = value; } //ResourceTypeId } public int MachineId { get { return machineid; } set { machineid = value; } } public int EmployeeId { get { return employeeid; } set { employeeid = value; } } public int Duration { get { return duration; } set { duration = value; } } public int IsReprocess { get { return isreprocess; } set { isreprocess = value; } } private string tempindentnumber; private string mailtempitemcode; private string mailtempitemname; private string mailtempskucode; private string mailtempskuname; private string mailtempproductionquantity; private string workorderids = ""; private decimal productionquantity; private int itemid = -1; private string itemcode; private string itemname; public string TempIndentNumber { get { return tempindentnumber; } set { tempindentnumber = value; } } public string MailTempItemCode { get { return mailtempitemcode; } set { mailtempitemcode = value; } } public string MailTempItemName { get { return mailtempitemname; } set { mailtempitemname = value; } } public string MailTempSKUCode { get { return mailtempskucode; } set { mailtempskucode = value; } } public string MailTempSKUName { get { return mailtempskuname; } set { mailtempskuname = value; } } public string MailTempProductionQuantity { get { return mailtempproductionquantity; } set { mailtempproductionquantity = value; } } public string WorkOrderIds { get { return workorderids; } set { workorderids = value; } } public decimal ProductionQuantity { get { return productionquantity; } set { productionquantity = value; } } public int ItemId { get { return itemid; } set { itemid = value; } } public string ItemCode { get { return itemcode; } set { itemcode = value; } } public string ItemName { get { return itemname; } set { itemname = value; } } public int ProductionIndentId { get { return productionindentid; } set { productionindentid = value; } } #endregion private int patternid = -1; private string patterncode; private string patternname; public int PatternId { get { return patternid; } //PatternId set { patternid = value; } //PatternId } public string PatternCode { get { return patterncode; } //PatternCode set { patterncode = value; } //PatternCode } public string PatternName { get { return patterncode; } //PatternName set { patterncode = value; } //PatternName } private List packdetaildto = new List(); public List PackDetailArray { get { return packdetaildto; } set { packdetaildto = value; } } private List parameterarray = new List(); public List ParameterArray { get { return parameterarray; } set { parameterarray = value; } } private IList productionpreviousprocessarray = new List(); public IList ProductionPreviousProcessArray { get { return productionpreviousprocessarray; } set { productionpreviousprocessarray = value; } } private int temproutingdetailid = -1; public int TempRoutingDetailId { get { return temproutingdetailid; } //TempRoutingDetailId set { temproutingdetailid = value; } //TempRoutingDetailId } private int reasonId = -1; public int ReasonId { get { return reasonId; } //TempRoutingDetailId set { reasonId = value; } //TempRoutingDetailId } private double rejectedreasonwisequantity = 0; public double RejectedReasonwiseQuantity { get { return rejectedreasonwisequantity; } //TempRoutingDetailId set { rejectedreasonwisequantity = value; } //TempRoutingDetailId } private string rejectedreasonwiseremarks = ""; public string RejectedReasonwiseRemarks { get { return rejectedreasonwiseremarks; } //temproutingdetailid set { rejectedreasonwiseremarks = value; } //temproutingdetailid } private int iscalledfromcuttingproductionscreen = 1;//0 Yes 1 No public int IsCalledFromCuttingProductionScreen { get { return iscalledfromcuttingproductionscreen; } //IsCalledFromCuttingProductionScreen set { iscalledfromcuttingproductionscreen = value; } //IsCalledFromCuttingProductionScreen } } }