|
|
@@ -9,31 +9,8 @@ using InABox.DynamicGrid;
|
|
|
|
|
|
namespace PRSDesktop;
|
|
|
|
|
|
-public class JobStagesGrid : DynamicGrid<JobStage>
|
|
|
+public class JobStagesGrid : DynamicDataGrid<JobStage>
|
|
|
{
|
|
|
-
|
|
|
- public override void DeleteItems(params CoreRow[] rows)
|
|
|
- {
|
|
|
- foreach (var row in rows) new Client<JobStage>().Delete(row.ToObject<JobStage>(), "Deleting Job Stage");
|
|
|
- }
|
|
|
-
|
|
|
- public override JobStage LoadItem(CoreRow row)
|
|
|
- {
|
|
|
- return row.ToObject<JobStage>();
|
|
|
- }
|
|
|
-
|
|
|
- protected override void Reload(
|
|
|
- Filters<JobStage> criteria, Columns<JobStage> columns, ref SortOrder<JobStage>? sort,
|
|
|
- CancellationToken token, Action<CoreTable?, Exception?> action)
|
|
|
- {
|
|
|
- new Client<JobStage>().Query(criteria.Combine(), columns, sort, CoreRange.All, action);
|
|
|
- }
|
|
|
-
|
|
|
- public override void SaveItem(JobStage item)
|
|
|
- {
|
|
|
- new Client<JobStage>().Save(item, ""); //, (o, e) => { });
|
|
|
- }
|
|
|
-
|
|
|
protected override void DoValidate(JobStage[] items, List<string> errors)
|
|
|
{
|
|
|
base.DoValidate(items, errors);
|