@@ -498,6 +394,13 @@
return numStr;
}
+ function toggleDelegate() {
+ var control = document.getElementById("DelegateControl");
+ var label = document.getElementById("DelegateLabel");
+
+ control.classList.toggle("hideControl");
+ label.classList.toggle("hideControl");
+ }
function onAllDocsDB(e) {
var grid = $("#alltasklist").data("kendoGrid");
diff --git a/Fab2ApprovalSystem/Views/Home/CorrectiveActionList.cshtml b/Fab2ApprovalSystem/Views/Home/CorrectiveActionList.cshtml
index 7752c4a..ce75e48 100644
--- a/Fab2ApprovalSystem/Views/Home/CorrectiveActionList.cshtml
+++ b/Fab2ApprovalSystem/Views/Home/CorrectiveActionList.cshtml
@@ -1,4 +1,4 @@
-@{
+@{
Layout = "_HomeLayout.cshtml";
}
@@ -25,18 +25,20 @@
{
columns.Bound(l => l.CANo)
- .ClientTemplate("
#=formatIssueID(CANo)#").Width("50px");
+ .ClientTemplate("
#=formatIssueID(CANo)#");
- columns.Bound(l => l.CASource).Width("100px");
- columns.Bound(l => l.RequestorName).Title("Requestor").Width("250px");
- columns.Bound(l => l.D1AssigneeName).Title("Assignee").Width("100px");
- columns.Bound(l => l.IssueDate).Format("{0:MM/dd/yy}").Width("100px");
- columns.Bound(l => l.CATitle).Width("150px");
- columns.Bound(l => l.StatusName).Width("50px");
- columns.Bound(l => l.PendingApprovers).Width("100px");
- columns.Bound(l => l.PendingAIOwners).Width("100px").Title("Action Item Owners");
- columns.Bound(l => l.D8DueDate).Format("{0:MM/dd/yy}").Width("100px");
- columns.Bound(l => l.ClosedDate).Format("{0:MM/dd/yy}").Width("100px");
+ columns.Bound(l => l.CASource);
+ columns.Bound(l => l.RequestorName).Title("Requestor");
+ columns.Bound(l => l.D1AssigneeName).Title("Assignee");
+ columns.Bound(l => l.IssueDate).Format("{0:MM/dd/yy}");
+ columns.Bound(l => l.CATitle);
+ columns.Bound(l => l.StatusName);
+ columns.Bound(l => l.PendingApprovers);
+ columns.Bound(l => l.PendingAIOwners).Title("Action Item Owners");
+ columns.Bound(l => l.D8DueDate).Format("{0:MM/dd/yy}");
+ columns.Bound(l => l.ClosedDate).Format("{0:MM/dd/yy}");
+ if ((bool)Session[GlobalVars.IS_ADMIN])
+ columns.Template(t => { }).HeaderTemplate("").ClientTemplate(@"
button delete");
})
@@ -68,14 +70,14 @@
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
- {
- model.Id(p => p.CANo);
+ {
+ model.Id(p => p.CANo);
- //model.Field(p => p.TotalCost).Editable(false);
- })
+ //model.Field(p => p.TotalCost).Editable(false);
+ })
.PageSize(50)
.Read(read => read.Action("GetCorrectiveActionList", "Home"))
- //.Destroy(destroy => destroy.Action("DeleteItem", "Home"))
+ .Destroy(destroy => destroy.Action("DeleteCAItem", "Home"))
)
)
@@ -93,5 +95,8 @@
return numStr;
}
-
-
\ No newline at end of file
+ function deleteRowCA(element) {
+ grid = $("#CAList").data("kendoGrid");
+ grid.removeRow($(element).closest("tr"));
+ }
+
diff --git a/Fab2ApprovalSystem/Views/Home/ECNList.cshtml b/Fab2ApprovalSystem/Views/Home/ECNList.cshtml
index 34efede..b1c1326 100644
--- a/Fab2ApprovalSystem/Views/Home/ECNList.cshtml
+++ b/Fab2ApprovalSystem/Views/Home/ECNList.cshtml
@@ -163,109 +163,6 @@