Ejemplo n.º 1
0
        public void SetTotalME2IndicatorStockProperty(ME2IndicatorStock ind,
                                                      string attName, string attValue)
        {
            switch (attName)
            {
            case cTME2Description:
                ind.TME2Description = attValue;
                break;

            case cTME2Name:
                ind.TME2Name = attValue;
                break;

            case cTME2Label:
                ind.TME2Label = attValue;
                break;

            case cTME2Type:
                ind.TME2Type = attValue;
                break;

            case cTME2RelLabel:
                ind.TME2RelLabel = attValue;
                break;

            case cTME2TAmount:
                ind.TME2TAmount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME2TUnit:
                ind.TME2TUnit = attValue;
                break;

            case cTME2TD1Amount:
                ind.TME2TD1Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME2TD1Unit:
                ind.TME2TD1Unit = attValue;
                break;

            case cTME2TD2Amount:
                ind.TME2TD2Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME2TD2Unit:
                ind.TME2TD2Unit = attValue;
                break;

            case cTME2MathResult:
                ind.TME2MathResult = attValue;
                break;

            case cTME2MathSubType:
                ind.TME2MathSubType = attValue;
                break;

            case cTME2TMAmount:
                ind.TME2TMAmount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME2TMUnit:
                ind.TME2TMUnit = attValue;
                break;

            case cTME2TLAmount:
                ind.TME2TLAmount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME2TLUnit:
                ind.TME2TLUnit = attValue;
                break;

            case cTME2TUAmount:
                ind.TME2TUAmount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME2TUUnit:
                ind.TME2TUUnit = attValue;
                break;

            case cTME2MathOperator:
                ind.TME2MathOperator = attValue;
                break;

            case cTME2MathExpression:
                ind.TME2MathExpression = attValue;
                break;

            case cTME2N:
                ind.TME2N = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME2Date:
                ind.TME2Date = CalculatorHelpers.ConvertStringToDate(attValue);
                break;

            case cTME2MathType:
                ind.TME2MathType = attValue;
                break;

            case cTME21Amount:
                ind.TME21Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME21Unit:
                ind.TME21Unit = attValue;
                break;

            case cTME22Amount:
                ind.TME22Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME22Unit:
                ind.TME22Unit = attValue;
                break;

            case cTME25Amount:
                ind.TME25Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME25Unit:
                ind.TME25Unit = attValue;
                break;

            case cTME23Amount:
                ind.TME23Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME23Unit:
                ind.TME23Unit = attValue;
                break;

            case cTME24Amount:
                ind.TME24Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTME24Unit:
                ind.TME24Unit = attValue;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        public virtual void SetTimelinessOC1Properties(string attName,
                                                       string attValue)
        {
            switch (attName)
            {
            case cPlannedStartDate:
                this.PlannedStartDate = CalculatorHelpers.ConvertStringToDate(attValue);
                break;

            case cActualStartDate:
                this.ActualStartDate = CalculatorHelpers.ConvertStringToDate(attValue);
                break;

            case cLaborAvailable:
                this.LaborAvailable = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cWorkdayProbability:
                this.WorkdayProbability = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTimelinessPenalty1:
                this.TimelinessPenalty1 = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTimelinessPenaltyDaysFromStart1:
                this.TimelinessPenaltyDaysFromStart1 = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTimelinessPenalty2:
                this.TimelinessPenalty2 = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTimelinessPenaltyDaysFromStart2:
                this.TimelinessPenaltyDaysFromStart2 = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cWorkdaysLimit:
                this.WorkdaysLimit = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case Constants.AMOUNT:
                this.Amount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case Constants.UNIT:
                this.Unit = attValue;
                break;

            case cFieldCapacity:
                this.FieldCapacity = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cAreaCovered:
                this.AreaCovered = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cFieldDays:
                this.FieldDays = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cOutputName:
                this.OutputName = attValue;
                break;

            case cOutputUnit:
                this.OutputUnit = attValue;
                break;

            case cOutputPrice:
                this.OutputPrice = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cOutputYield:
                this.OutputYield = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cCompositionUnit:
                this.CompositionUnit = attValue;
                break;

            case cCompositionAmount:
                this.CompositionAmount = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cOutputTimes:
                this.OutputTimes = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cProbableFieldDays:
                this.ProbableFieldDays = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cProbableFinishDate:
                this.ProbableFinishDate = CalculatorHelpers.ConvertStringToDate(attValue);
                break;

            case cTimelinessPenaltyCost:
                this.TimelinessPenaltyCost = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case cTimelinessPenaltyCostPerHour:
                this.TimelinessPenaltyCostPerHour = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            case TR:
                this.TotalR = CalculatorHelpers.ConvertStringToDouble(attValue);
                break;

            default:
                break;
            }
        }