Пример #1
0
        public static MeasurementResult DoMeasurement(ref MeasurementItemStruct mi, Transformer transformer, JobList Job, TestingWorkerSender sender)
        {
            switch (mi.Function)
            {
            case MeasurementFunction.DCInsulation:
                TestFunction.DoDCInsulation(ref mi, transformer, Job);
                break;

            case MeasurementFunction.Capacitance:
                TestFunction.Capacitance(ref mi, transformer, Job);
                break;

            case MeasurementFunction.DCResistance:    //直流电阻
                TestFunction.DCResistance(ref mi, transformer, Job, sender);
                break;

            case MeasurementFunction.BushingDCInsulation:
                TestFunction.BushingDCInsulation(ref mi, transformer, Job);
                break;

            case MeasurementFunction.BushingCapacitance:
                TestFunction.BushingCapacitance(ref mi, transformer, Job);
                break;

            case MeasurementFunction.OLTCSwitchingCharacter:
                TestFunction.OLTCSwitchingCharacter(ref mi, transformer, Job);
                break;

            case MeasurementFunction.Information:
                TestFunction.Information(ref mi, transformer, Job);
                break;

            case MeasurementFunction.DCCharge:    //充电
                break;

            case MeasurementFunction.Coreinsulation:    //充电
                TestFunction.Coredci(ref mi, transformer, Job);
                break;

            case MeasurementFunction.Leakagecurrent:    //充电
                TestFunction.Losscurrent(ref mi, transformer, Job);
                break;

            case MeasurementFunction.Shortcircuitimpedance:    //充电
                TestFunction.Shortvolate(ref mi, transformer, Job);
                break;

            case MeasurementFunction.Description:
                mi.completed = true;
                break;
            }
            return(null);
        }
        public static MeasurementResult DoMeasurement(ref MeasurementItemStruct mi, Transformer transformer, JobList Job)
        {
            switch (mi.Function)
            {
            case MeasurementFunction.DCInsulation:
                TestFunction.DoDCInsulation(ref mi, transformer, Job);
                break;

            case MeasurementFunction.Capacitance:
                TestFunction.Capacitance(ref mi, transformer, Job);
                break;

            case MeasurementFunction.DCResistance:    //直流电阻
                TestFunction.DCResistance(ref mi, transformer, Job);
                break;

            case MeasurementFunction.BushingDCInsulation:
                TestFunction.BushingDCInsulation(ref mi, transformer, Job);
                break;

            case MeasurementFunction.BushingCapacitance:
                TestFunction.BushingCapacitance(ref mi, transformer, Job);
                break;

            case MeasurementFunction.OLTCSwitchingCharacter:
                TestFunction.OLTCSwitchingCharacter(ref mi, transformer, Job);
                break;

            case MeasurementFunction.Information:
                TestFunction.Information(ref mi, transformer, Job);
                break;

            case MeasurementFunction.DCCharge:    //充电
                break;

            case MeasurementFunction.Description:
                mi.completed = true;
                break;
            }
            return(null);
        }