Added next due date to models and tables for tasks

This commit is contained in:
Daniel Wathen 2023-03-06 15:05:38 -07:00
parent dfa8d4aa08
commit 36fb43d9cd
2 changed files with 8 additions and 7 deletions

View File

@ -32,7 +32,7 @@ namespace Fab2ApprovalSystem.ViewModels
public DateTime? ExpirationDate { get; set; }
[DisplayFormat(DataFormatString = "{0:MM/dd/yyyy}")]
public DateTime? ExtensionDate { get; set; }
public DateTime? NextDueDate { get; set; }
}

View File

@ -40,8 +40,9 @@
columns.Bound(l => l.Title);
//columns.Bound(l => l.LotNos);
//columns.Bound(l => l.PendingApprovers).HtmlAttributes(new { style = "font-weight: bold; color: red;" });
columns.Bound(l => l.ItemStatus);
columns.Bound(l => l.ItemStatus).Hidden();
columns.Bound(l => l.SubmitedDate).Format("{0:MM/dd/yy hh:mm:ss}");
columns.Bound(l => l.NextDueDate).Format("{0:MM/dd/yy}");
//columns.Bound(l => l.CloseDate).Format("{0:MM/dd/yy hh:mm:ss}");
columns.Command(command => command.Custom("Re-Assign").Click("showReAssignRole")).Width("100px");
@ -82,10 +83,10 @@
"<td>#:Originator #</td>" +
//"<td>#: IssueDate #</td>" +
"<td>#:Title #</td>" +
"<td>#:ItemStatus #</td>" +
"<td>#=FormatDate(SubmitedDate)#</td>" +
//"<td>#: LotNos #</td>" +
//"<td>#:PendingApprovers #</td>" +
"<td>#=FormatDate(SubmitedDate)#</td>" +
"<td>#=FormatDate(NextDueDate)#</td>" +
//"<td>#: CloseDate #</td> " +
"<td><button class='btn btn-warning btn-xs' id='Delegate' name='Refresh' onclick='showReAssignRole(&quot;#=PendingApprovers#&quot;,&quot;#=CloseDate#&quot;,&quot;#=DocID#&quot;, &quot;#=DocumentType#&quot;,&quot;#=SubmitedDate#&quot;);'>Delegate</buton></td>" +
"</tr>"