public ProductionOrderBatchStage(DefaultProductionOrderBatchStage defaultProductionOrderBatchStage, short?plannedDuration = null) { this.name = defaultProductionOrderBatchStage.Name; this.type = defaultProductionOrderBatchStage.Type; this.plannedDuration = plannedDuration; IsDefault = true; }
public ProductionOrderBatchStage(ProductionOrderBatchLifeCycleTemplateStage productionOrderBatchLifeCycleTemplateStage) { this.name = productionOrderBatchLifeCycleTemplateStage.Name; this.type = productionOrderBatchLifeCycleTemplateStage.Type; this.plannedDuration = productionOrderBatchLifeCycleTemplateStage.PlannedDuration; InWorkDays = productionOrderBatchLifeCycleTemplateStage.InWorkDays; IsDefault = productionOrderBatchLifeCycleTemplateStage.IsDefault; }
public ProductionOrderBatchLifeCycleTemplateStage(DefaultProductionOrderBatchStage defaultProductionOrderBatchStage) { IsDefault = true; ValidationUtils.Assert(!String.IsNullOrEmpty(defaultProductionOrderBatchStage.Name), "Название этапа не указано."); this.name = defaultProductionOrderBatchStage.Name; this.type = defaultProductionOrderBatchStage.Type; }
protected internal ProductionOrderBatchStage(ProductionOrderBatchStage productionOrderBatchStage) { this.name = productionOrderBatchStage.Name; this.type = productionOrderBatchStage.Type; this.plannedDuration = productionOrderBatchStage.PlannedDuration; this.ActualStartDate = productionOrderBatchStage.ActualStartDate; this.ActualEndDate = productionOrderBatchStage.ActualEndDate; InWorkDays = productionOrderBatchStage.InWorkDays; IsDefault = productionOrderBatchStage.IsDefault; }
public ProductionOrderBatchStage(string name, ProductionOrderBatchStageType type, short plannedDuration, bool inWorkDays) { ValidationUtils.Assert(!String.IsNullOrEmpty(name), "Название этапа не указано."); this.name = name; this.type = type; this.plannedDuration = plannedDuration; InWorkDays = inWorkDays; IsDefault = false; }