Browse Source

Updates to EditOnAdd functionality for EntityFormGrid

Kenric Nugteren 10 tháng trước cách đây
mục cha
commit
cbf4bf5581
1 tập tin đã thay đổi với 2 bổ sung10 xóa
  1. 2 10
      prs.desktop/Panels/Jobs/Digital Forms/JobFormGrid.cs

+ 2 - 10
prs.desktop/Panels/Jobs/Digital Forms/JobFormGrid.cs

@@ -38,6 +38,8 @@ namespace PRSDesktop
             base.DoReconfigure(options);
             options.SelectColumns = true;
             options.FilterRows = true;
+
+            EditOnAdd = true;
         }
 
         protected override void Reload(
@@ -53,16 +55,6 @@ namespace PRSDesktop
             return base.CanCreateItems() && Master != null;
         }
 
-        protected override void OnFormCreated(JobForm form)
-        {
-            base.OnFormCreated(form);
-
-            if (DynamicFormEditWindow.EditDigitalForm(form, out var dataModel))
-            {
-                dataModel.Update(null);
-            }
-        }
-
         public override JobForm CreateItem()
         {
             var result = base.CreateItem();