瀏覽代碼

Removed FindDocument, GetDocument and SaveDocument callbacks

Kenric Nugteren 1 年之前
父節點
當前提交
9e35b79c6a

+ 0 - 18
prs.desktop/Panels/DailyReports/DailyReport.xaml.cs

@@ -259,24 +259,6 @@ namespace PRSDesktop
             else if (editor == ITP) ITP_OnDefineLookups(editor);
         }
 
-        public Document? FindDocument(string filename)
-        {
-            return new Client<Document>().Load(new Filter<Document>(x => x.FileName).IsEqualTo(filename)).FirstOrDefault();
-        }
-
-        public Document? GetDocument(Guid id)
-        {
-            Document? doc = null;
-            if (id != Guid.Empty)
-                doc = new Client<Document>().Load(new Filter<Document>(x => x.ID).IsEqualTo(id)).FirstOrDefault();
-            return doc;
-        }
-
-        public void SaveDocument(Document document)
-        {
-            new Client<Document>().Save(document, "");
-        }
-
         object?[] IDynamicEditorHost.GetItems() => new object?[] { SelectedAssignment };
 
         public BaseEditor? GetEditor(DynamicGridColumn column) => column.Editor.CloneEditor();

+ 0 - 6
prs.desktop/Panels/DataEntry/DataEntryPanel.xaml.cs

@@ -147,12 +147,6 @@ namespace PRSDesktop
             sender.LoadLookups(values);
         }
 
-        public Document? FindDocument(string filename) => null;
-
-        public Document? GetDocument(Guid id) => null;
-
-        public void SaveDocument(Document document) { }
-
         object?[] IDynamicEditorHost.GetItems() => Editor.Items;
 
         public BaseEditor? GetEditor(DynamicGridColumn column) => column.Editor.CloneEditor();

+ 0 - 6
prs.desktop/Panels/Products/Reservation Management/JobRequisitionPurchasing.xaml.cs

@@ -284,12 +284,6 @@ namespace PRSDesktop
             sender.LoadLookups(values);
         }
 
-        public Document? FindDocument(string filename) => null;
-
-        public Document? GetDocument(Guid id) => null;
-
-        public void SaveDocument(Document document) { }
-
         object?[] IDynamicEditorHost.GetItems() => Editor.Items;
 
         public BaseEditor? GetEditor(DynamicGridColumn column) => column.Editor.CloneEditor();

+ 0 - 18
prs.desktop/Panels/Quotes/QuoteDetails.xaml.cs

@@ -229,24 +229,6 @@ namespace PRSDesktop
             //else if (editor == ITP) ITP_OnDefineLookups(editor);
         }
 
-        public Document? FindDocument(string filename)
-        {
-            return new Client<Document>().Load(new Filter<Document>(x => x.FileName).IsEqualTo(filename)).FirstOrDefault();
-        }
-
-        public Document? GetDocument(Guid id)
-        {
-            Document? doc = null;
-            if (id != Guid.Empty)
-                doc = new Client<Document>().Load(new Filter<Document>(x => x.ID).IsEqualTo(id)).FirstOrDefault();
-            return doc;
-        }
-
-        public void SaveDocument(Document document)
-        {
-            new Client<Document>().Save(document, "");
-        }
-
         object?[] IDynamicEditorHost.GetItems() => new object?[] { new Quote() };
 
         public BaseEditor? GetEditor(DynamicGridColumn column) => column.Editor.CloneEditor();