|
@@ -35,6 +35,19 @@ public class JobProductMappingsGrid : DynamicDataGrid<JobProductMapping>, IJobCo
|
|
|
options.Add(DynamicGridOption.SelectColumns);
|
|
|
}
|
|
|
|
|
|
+ public override DynamicGridColumns GenerateColumns()
|
|
|
+ {
|
|
|
+ var columns = new DynamicGridColumns();
|
|
|
+ columns.Add<JobProductMapping, string>(x => x.Code, 150, "", "", Alignment.MiddleCenter);
|
|
|
+ columns.Add<JobProductMapping, string>(x => x.Description, 0, "", "", Alignment.MiddleLeft);
|
|
|
+ columns.Add<JobProductMapping, string>(x => x.Product.Code, 200, "Product Code", "", Alignment.MiddleCenter);
|
|
|
+ columns.Add<JobProductMapping, string>(x => x.JobDocumentSet.Description, 0, "Approval Document", "", Alignment.MiddleLeft);
|
|
|
+ columns.Add<JobProductMapping, string>(x => x.JobDocumentSet.CurrentMileStone.Type.Code, 100, "Stage", "", Alignment.MiddleCenter);
|
|
|
+ columns.Add<JobProductMapping, string>(x => x.JobDocumentSet.CurrentMileStone.Revision, 50, "Rev", "", Alignment.MiddleCenter);
|
|
|
+ columns.Add<JobProductMapping, JobDocumentSetMileStoneStatus>(x => x.JobDocumentSet.CurrentMileStone.Status, 100, "Status", "", Alignment.MiddleCenter);
|
|
|
+ return columns;
|
|
|
+ }
|
|
|
+
|
|
|
private void BuildMenu(DynamicMenuColumn column, CoreRow? row)
|
|
|
{
|
|
|
if (row is not null)
|
|
@@ -98,7 +111,7 @@ public class JobProductMappingsGrid : DynamicDataGrid<JobProductMapping>, IJobCo
|
|
|
var docSet = new JobDocumentSet
|
|
|
{
|
|
|
Code = code,
|
|
|
- Description = row.Get<JobProductMapping, string>(x => x.Description) + $"\nAttached to JobProductMapping '{code}'"
|
|
|
+ Description = $"{code} Approval".Trim()
|
|
|
};
|
|
|
docSet.Job.ID = Job.ID;
|
|
|
docSet.Folder.ID = dialog.SelectedFolder;
|
|
@@ -141,7 +154,7 @@ public class JobProductMappingsGrid : DynamicDataGrid<JobProductMapping>, IJobCo
|
|
|
var ids = ExtractValues(x => x.ID, selection).ToArray();
|
|
|
return new BaseDataModel<JobProductMapping>(new Filter<JobProductMapping>(x => x.ID).InList(ids));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
}
|