wyq 1 year ago
parent
commit
8c9a4cd34e
2 changed files with 8 additions and 0 deletions
  1. 1 0
      XdCxRhDW.App/UserControl/CtrlHome.cs
  2. 7 0
      XdCxRhDW.App/UserControl/CtrlXl.cs

+ 1 - 0
XdCxRhDW.App/UserControl/CtrlHome.cs

@@ -837,6 +837,7 @@ namespace XdCxRhDW.App.UserControl
                         var array = await db.PosRes.Where(p => ids.Contains(p.ID)).ToArrayAsync();
                         db.PosRes.RemoveRange(array);
                         await db.SaveChangesAsync();
+                        mapControl1.DelPosItem(array);
                     }
                 }
                 return true;

+ 7 - 0
XdCxRhDW.App/UserControl/CtrlXl.cs

@@ -62,6 +62,13 @@ namespace XdCxRhDW.App.UserControl
                 this.layoutControl1.Enabled = true;
                 return;
             }
+            if (string.IsNullOrEmpty(btnOpen.Text))
+            {
+                Serilog.Log.Warning($"请选择星历文件");
+                DxHelper.MsgBoxHelper.ShowInfo($"请选择星历文件");
+                this.layoutControl1.Enabled = true;
+                return;
+            }
             string file;
             try
             {