Ejemplo n.º 1
0
 public ProductionOrderBatchStage(DefaultProductionOrderBatchStage defaultProductionOrderBatchStage, short?plannedDuration = null)
 {
     this.name            = defaultProductionOrderBatchStage.Name;
     this.type            = defaultProductionOrderBatchStage.Type;
     this.plannedDuration = plannedDuration;
     IsDefault            = true;
 }
Ejemplo n.º 2
0
 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;
        }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
        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;
        }