| | |
| | | { |
| | | throw Oops.Oh("密码错误!"); |
| | | } |
| | | var context = new Model.MonitorTestControlParas.StartContext(input.HZ, input.OperatingMode, input.OperatingValue); |
| | | |
| | | double operatingValue = 0; |
| | | /* switch (input.OperatingMode) |
| | | { |
| | | case Model.MonitorTestControlParas.eOperatingMode.Timing: |
| | | { |
| | | operatingValue = input.OperatingValue * 3600; |
| | | } |
| | | break; |
| | | case Model.MonitorTestControlParas.eOperatingMode.ConstantFlow: |
| | | break; |
| | | default: |
| | | break; |
| | | }*/ |
| | | operatingValue = input.OperatingValue * 3600; |
| | | var context = new Model.MonitorTestControlParas.StartContext(input.HZ, input.OperatingMode, operatingValue); |
| | | var paras = new Model.MonitorTestControlParas(); |
| | | paras.ControlType = Model.MonitorTestControlParas.eControlType.Start; |
| | | paras.Context = context.ToJson(); |