|
@@ -34,10 +34,11 @@ public class IssuesGrid : DynamicGrid<Kanban>, ISpecificGrid
|
|
|
|
|
|
public Guid CustomerID { get; set; }
|
|
|
|
|
|
- private CustomProperty CustomerProperty = new CustomProperty
|
|
|
+ public static CustomProperty CustomerProperty = new CustomProperty
|
|
|
{
|
|
|
Name = "CustomerID",
|
|
|
- PropertyType = typeof(string)
|
|
|
+ PropertyType = typeof(string),
|
|
|
+ ClassType = typeof(Kanban)
|
|
|
};
|
|
|
|
|
|
public IssuesGrid() : base()
|
|
@@ -48,6 +49,8 @@ public class IssuesGrid : DynamicGrid<Kanban>, ISpecificGrid
|
|
|
foreach (var col in cols)
|
|
|
HiddenColumns.Add(col);
|
|
|
|
|
|
+ HiddenColumns.Add(x => x.Notes);
|
|
|
+
|
|
|
ActionColumns.Add(new DynamicMenuColumn(BuildMenu) { Position = DynamicActionColumnPosition.End });
|
|
|
}
|
|
|
|
|
@@ -84,7 +87,7 @@ public class IssuesGrid : DynamicGrid<Kanban>, ISpecificGrid
|
|
|
var kanban = row.ToObject<Kanban>();
|
|
|
var text = "";
|
|
|
|
|
|
- if(TextEdit.Execute("Enter note:", ref text))
|
|
|
+ if(TextBoxDialog.Execute("Enter note:", ref text))
|
|
|
{
|
|
|
text = string.Format("{0:yyyy-MM-dd HH:mm:ss}: {1}", DateTime.Now, text);
|
|
|
kanban.Notes = kanban.Notes.Concatenate([text]);
|
|
@@ -188,7 +191,7 @@ public class IssuesGrid : DynamicGrid<Kanban>, ISpecificGrid
|
|
|
{
|
|
|
var pages = new DynamicEditorPages
|
|
|
{
|
|
|
- new DynamicDocumentGrid<KanbanDocument, Kanban, KanbanLink>()
|
|
|
+ //new DynamicDocumentGrid<KanbanDocument, Kanban, KanbanLink>()
|
|
|
};
|
|
|
return pages;
|
|
|
}
|
|
@@ -214,7 +217,7 @@ public class IssuesGrid : DynamicGrid<Kanban>, ISpecificGrid
|
|
|
Filters<Kanban> criteria, Columns<Kanban> columns, ref SortOrder<Kanban>? sort,
|
|
|
CancellationToken token, Action<CoreTable?, Exception?> action)
|
|
|
{
|
|
|
- criteria.Add(new Filter<Kanban>(x => x.Closed).IsNotEqualTo(Guid.Empty));
|
|
|
+ criteria.Add(new Filter<Kanban>(x => x.Closed).IsEqualTo(Guid.Empty));
|
|
|
criteria.Add(new Filter<Kanban>(CustomerProperty).IsEqualTo(CustomerID.ToString()));
|
|
|
if(Options.PageSize > 0)
|
|
|
{
|