public static Domain.TS_WorkOrderExecutionMcIDDomain ToDomainMcIDModel(this TS_WorkOrderExecution entity) { if (entity == null) { return(null); } return(new Domain.TS_WorkOrderExecutionMcIDDomain { McID = entity.McID }); }
public static Domain.TS_WorkOrderExecutionWODomain ToDomainWOModel(this TS_WorkOrderExecution entity) { if (entity == null) { return(null); } return(new Domain.TS_WorkOrderExecutionWODomain { WOID = entity.WOID }); }
public static Domain.TS_WorkOrderExecutionDomain ToDomainModel(this TS_WorkOrderExecution entity) { if (entity.QtyUpdated == null) { entity.QtyUpdated = 0; } if (entity.PlannedDuration == null) { entity.PlannedDuration = 0; } if (entity.ScrapQty == null) { entity.ScrapQty = 0; } if (entity.ProdTotalDuration == null) { entity.ProdTotalDuration = 0; } if (entity.TotalSetupDuration == null) { entity.TotalSetupDuration = 0; } if (entity.AdjustedQty == null) { entity.AdjustedQty = 0; } if (entity == null) { return(null); } return(new Domain.TS_WorkOrderExecutionDomain { WOID = entity.WOID, PartID = entity.PartID, ActualRecQty = entity.ActualRecQty, ActualRecDate = entity.ActualRecDate, CompletedQty = entity.CompletedQty, CompletedDate = entity.CompletedDate, OutstandingQty = entity.OutstandingQty, OutstandingDate = entity.OutstandingDate, ScrapQty = (int)entity.ScrapQty, ScrapDate = entity.ScrapDate.HasValue ? entity.ScrapDate.Value : new DateTime(), AdjustedQty = (int)entity.AdjustedQty, AdjustedDate = entity.AdjustedDate.HasValue ? entity.AdjustedDate.Value : new DateTime(), McID = entity.McID, McType = entity.McType, RouteID = entity.RouteID, WorkCenter = entity.WorkCenter, Opseq = entity.Opseq, ProcOpSeq = entity.ProcOpSeq, WOStatus = entity.WOStatus, SetupStartDate = entity.SetupStartDate.HasValue ? entity.SetupStartDate.Value : new DateTime(), SetupEndDate = entity.SetupEndDate.HasValue ? entity.SetupEndDate.Value : new DateTime(), ProdStartDate = entity.ProdStartDate.HasValue ? entity.ProdStartDate.Value : new DateTime(), ProdEndDate = entity.ProdEndDate.HasValue ? entity.ProdEndDate.Value : new DateTime(), ParentWOID = entity.ParentWOID, Remark = entity.Remark, TotalSetupDuration = (int)entity.TotalSetupDuration, ProdTotalDuration = (int)entity.ProdTotalDuration, OperatorID = entity.OperatorID, OperatorName = entity.OperatorName, ShiftID = entity.ShiftID, SendOutDate = entity.SendOutDate.HasValue ? entity.SendOutDate.Value : new DateTime(), ReceivedDate = entity.ReceivedDate.HasValue ? entity.ReceivedDate.Value : new DateTime(), QtyUpdated = (int)entity.QtyUpdated, PlannedDuration = (int)entity.PlannedDuration, OrderType = entity.OrderType }); }
public static Domain.TS_WorkOrderExecutionWorkCenterDomain ToDomainWorkCentreModel(this TS_WorkOrderExecution entity) { if (entity == null) { return(null); } return(new Domain.TS_WorkOrderExecutionWorkCenterDomain { WorkCenter = entity.WorkCenter }); }