浏览代码

好多BUG呀

gongqiuhong 1 年之前
父节点
当前提交
a383171b1c

+ 0 - 1
XdCxRhDW.App/EditForms/TargetEditor.cs

@@ -14,7 +14,6 @@ using System.Windows.Documents;
 using System.Windows.Forms;
 using XdCxRhDW.Repostory.EFContext;
 using XdCxRhDW.Repostory.Model;
-using XdCxRhDW.Repostory.Model;
 
 namespace XdCxRhDW.App.EditForms
 {

+ 1 - 1
XdCxRhDW.App/EditForms/X1D1DTOParamEditor.cs

@@ -149,7 +149,7 @@ namespace XdCxRhDW.App.EditForms
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败", ex);
+                Serilog.Log.Error(ex,$"绘制{info.PosResType.GetEnumDisplayName()}时差线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败,失败信息:{ex.Message}");
             }
         }

+ 1 - 1
XdCxRhDW.App/EditForms/X2D1DTOParamEditor.cs

@@ -203,7 +203,7 @@ namespace XdCxRhDW.App.EditForms
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败", ex);
+                Serilog.Log.Error(ex,$"绘制{info.PosResType.GetEnumDisplayName()}时差线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败,失败信息:{ex.Message}");
             }
         }

+ 1 - 1
XdCxRhDW.App/EditForms/X2DTOParamEditor.cs

@@ -150,7 +150,7 @@ namespace XdCxRhDW.App.EditForms
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败", ex);
+                Serilog.Log.Error(ex,$"绘制{info.PosResType.GetEnumDisplayName()}时差线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败,失败信息:{ex.Message}");
             }
         }

+ 1 - 1
XdCxRhDW.App/EditForms/X3DTOParamEditor.cs

@@ -202,7 +202,7 @@ namespace XdCxRhDW.App.EditForms
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败", ex);
+                Serilog.Log.Error(ex,$"绘制{info.PosResType.GetEnumDisplayName()}时差线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制{info.PosResType.GetEnumDisplayName()}时差线失败,失败信息:{ex.Message}");
             }
         }

+ 9 - 9
XdCxRhDW.App/UserControl/CtrlHome.cs

@@ -284,7 +284,7 @@ namespace XdCxRhDW.App.UserControl
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error("使用镜像点失败", ex);
+                Serilog.Log.Error(ex,"使用镜像点失败");
                 XtraMessageBox.Show("使用镜像点失败");
             }
 
@@ -322,7 +322,7 @@ namespace XdCxRhDW.App.UserControl
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error("删除定位点失败", ex);
+                Serilog.Log.Error(ex,"删除定位点失败");
                 XtraMessageBox.Show("删除定位点失败");
             }
         }
@@ -911,7 +911,7 @@ namespace XdCxRhDW.App.UserControl
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制{item.PosResType.GetEnumDisplayName()}时差线失败", ex);
+                Serilog.Log.Error(ex,$"绘制{item.PosResType.GetEnumDisplayName()}时差线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制{item.PosResType.GetEnumDisplayName()}时差线失败,失败信息:{ex.Message}");
             }
         }
@@ -926,7 +926,7 @@ namespace XdCxRhDW.App.UserControl
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制{item.PosResType.GetEnumDisplayName()}时差线失败", ex);
+                Serilog.Log.Error(ex,$"绘制{item.PosResType.GetEnumDisplayName()}时差线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制{item.PosResType.GetEnumDisplayName()}时差线失败,失败信息:{ex.Message}");
             }
         }
@@ -1021,7 +1021,7 @@ namespace XdCxRhDW.App.UserControl
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制{item.PosResType.GetEnumDisplayName()}频差线失败", ex);
+                Serilog.Log.Error(ex,$"绘制{item.PosResType.GetEnumDisplayName()}频差线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制{item.PosResType.GetEnumDisplayName()}频差线失败,失败信息:{ex.Message}");
             }
         }
@@ -1068,7 +1068,7 @@ namespace XdCxRhDW.App.UserControl
             }
             catch (Exception ex)
             {
-                Serilog.Log.Error($"绘制测向线失败", ex);
+                Serilog.Log.Error(ex,$"绘制测向线失败");
                 DxHelper.MsgBoxHelper.ShowWarning($"绘制测向线失败,失败信息:{ex.Message}");
             }
         }
@@ -1108,17 +1108,17 @@ namespace XdCxRhDW.App.UserControl
         {
             if (txtStartTime.EditValue == null)
             {
-                DxHelper.MsgBoxHelper.ShowWarning($"请选择信号开始时间!");
+                DxHelper.MsgBoxHelper.ShowError($"请选择信号开始时间!");
                 return;
             }
             if (txtEndTime.EditValue == null)
             {
-                DxHelper.MsgBoxHelper.ShowWarning($"请选择信号结束时间!");
+                DxHelper.MsgBoxHelper.ShowError($"请选择信号结束时间!");
                 return;
             }
             if (txtStartTime.DateTime > txtEndTime.DateTime)
             {
-                DxHelper.MsgBoxHelper.ShowWarning($"开始时间不能大于结束时间!");
+                DxHelper.MsgBoxHelper.ShowError($"开始时间不能大于结束时间!");
                 return;
             }
             listCts.ForEach(t => t.Cancel());

+ 1 - 1
XdCxRhDw.Dto/PosDto/X3TwoDtoNoXlPosDto.cs

@@ -32,7 +32,7 @@ namespace XdCxRhDw.Dto
         /// <summary>
         /// 邻星2编号
         /// </summary>
-        [RangeInt(10000, IncludeMin = true)]/// 
+        [RangeInt(10000, IncludeMin = true)]
         public int Adja2Code { get; set; }
 
         /// <summary>