gongqiuhong 1 年之前
父节点
当前提交
5e0c1bae18
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      XdCxRhDW.App/EditForms/TaskEditor.cs

+ 3 - 3
XdCxRhDW.App/EditForms/TaskEditor.cs

@@ -91,9 +91,9 @@ namespace XdCxRhDW.App.EditForms
                     {
                         deWay.Add(EnumDetectionWay.IBS);
                     }
-                    if (info.DetectionWay.Value.HasFlag(EnumDetectionWay.EnergyDetection))
+                    if (info.DetectionWay.Value.HasFlag(EnumDetectionWay.Ky5758))
                     {
-                        deWay.Add(EnumDetectionWay.EnergyDetection);
+                        deWay.Add(EnumDetectionWay.Ky5758);
                     }
                     this.txtDetectionWay.EditValue =string.Join(",", deWay);
                     this.txtDetectionWay.RefreshEditValue();
@@ -264,7 +264,7 @@ namespace XdCxRhDW.App.EditForms
                 }
                 else
                 {
-                    info.DetectionWay = EnumDetectionWay.EnergyDetection;
+                    info.DetectionWay = null;
                 }
                 //string strResult = info.DetectionWay.ToString() + " " + ((int)info.DetectionWay);
                 info.TaskType = (EnumTaskType)txtTaskType.SelectedIndex;