|
@@ -114,29 +114,11 @@ public class JobDocumentSetMilestoneTasks : DynamicDataGrid<JobDocumentSetMileSt
|
|
|
|
|
|
protected override DynamicGridColumns LoadColumns()
|
|
|
{
|
|
|
- return new DynamicGridColumns()
|
|
|
- {
|
|
|
- new DynamicGridColumn()
|
|
|
- {
|
|
|
- ColumnName = CoreUtils.GetFullPropertyName<JobDocumentSetMileStoneKanban, int>(x => x.Kanban.Number, "."),
|
|
|
- Caption = "#",
|
|
|
- Width = 50,
|
|
|
- Alignment = Alignment.MiddleCenter
|
|
|
- },
|
|
|
- new DynamicGridColumn()
|
|
|
- {
|
|
|
- ColumnName = CoreUtils.GetFullPropertyName<JobDocumentSetMileStoneKanban, String>(x => x.Kanban.Title, "."),
|
|
|
- Caption = "Title",
|
|
|
- Width = 0
|
|
|
- },
|
|
|
- new DynamicGridColumn()
|
|
|
- {
|
|
|
- ColumnName = CoreUtils.GetFullPropertyName<JobDocumentSetMileStoneKanban, KanbanStatus>(x => x.Kanban.Status, "."),
|
|
|
- Caption = "Status",
|
|
|
- Width = 70,
|
|
|
- Alignment = Alignment.MiddleCenter
|
|
|
- }
|
|
|
- };
|
|
|
+ var columns = new DynamicGridColumns<JobDocumentSetMileStoneKanban>();
|
|
|
+ columns.Add(x => x.Kanban.Number, caption: "#", width: 50, alignment: Alignment.MiddleCenter);
|
|
|
+ columns.Add(x => x.Kanban.Title, caption: "Title", width: 0);
|
|
|
+ columns.Add(x => x.Kanban.Status, caption: "Status", width: 70, alignment: Alignment.MiddleCenter);
|
|
|
+ return columns;
|
|
|
}
|
|
|
|
|
|
// private readonly BitmapImage _status = PRSDesktop.Resources.tick.AsBitmapImage();
|