@model Fab2ApprovalSystem.Models.CorrectiveAction @{ ViewBag.Title = "Edit"; } @using (Html.BeginForm()) { @Html.AntiForgeryToken()
@if (Session[GlobalVars.IS_ADMIN] != null) { }
Corrective Action
@if (Model.RecordLockByName == null) {

Mode: [Readonly]

} else {

Mode: [Readonly] - Locked for Editing by @Model.RecordLockByName

}
Basic Information
@Html.TextBoxFor(model => model.CANoDisp, new { id = "txtCANo", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextAreaFor(model => model.CATitle, new { id = "txtCATitle", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@(Html.Kendo().DropDownList() .Name("RequestorList") .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = " font-size:10px", Readonly = "Readonly" }) .Value(Model.RequestorID.ToString()) )
@Html.TextBoxFor(model => model.IssueDate, new { id = "txtIssueDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().DropDownList() .Name("D1AssigneeList") //.BindTo(new SelectList(ViewBag.UserList, "D1AssigneeID", "D1AssigneeName")) .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(Model.D1AssigneeID.ToString()) )
@(Html.Kendo().DropDownList() .Name("CASourceList") .BindTo(new SelectList(ViewBag.CASourceList, "CASourceID", "CASourceName")) .OptionLabel("Select") .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(Model.CASourceID.ToString()) )
@(Html.Kendo().MultiSelect() .Name("ModuleIDs") .BindTo(new SelectList(ViewBag.ModuleList, "ModuleID", "ModuleName")) .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(ViewBag.Nothing) )
@Html.TextBoxFor(model => model.StatusName, new { id = "txtStatusName", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().DropDownList() .Name("D1QAList") //.BindTo(new SelectList(ViewBag.UserList, "D1QAID", "D1QAName")) .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(Model.QAID.ToString()) )
@if (Model.D8DueDate != null) { @Html.TextBoxFor(model => model.D8DueDate, new { id = "txtD8DueDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" }) } else { @(Html.Kendo().DatePickerFor(model => model.D8DueDate) .Name("txtD8DueDate") ) }
@Html.TextBoxFor(model => model.Tools, new { id = "txtTool", @class = "k-textbox", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.ApprovedDate, new { id = "txtApprovedDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.RelatedMRB, new { id = "txtRelatedMRB", @class = "k-textbox", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.CAType, new { id = "txtCAType", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextArea("txtRelatedAuditFindings", (string)(ViewBag.AuditFinding), new { @class = "form-control", name = "txtRelatedAuditFindings", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().MultiSelect() .Name("RelatedAuditFindingsCategories") .BindTo(new SelectList(ViewBag.AuditFindingCategoriesOptions, "AuditFindingCategoryID", "AuditFindingCategoryName")) .HtmlAttributes(new { style = " font-size:10px", Readonly = "Readonly" }) .Value(ViewBag.AuditFindingCategories) )
@Html.TextBox("txtRelatedViolatedClause", (string)(ViewBag.ViolatedClause), new { @class = "form-control", name = "txtRelatedAuditFindings", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().Grid() .Name("Attachments") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.CANo).Visible(false); columns.Bound(a => a.FileGUID).Visible(false); columns.Bound(a => a.FileName); columns.Bound(a => a.UploadedByName); columns.Bound(a => a.UploadDateTime).Format("{0:MM/dd/yy hh:mm:ss}"); columns.Command(command => command.Custom("View").Click("DownloadCAAttachment")); //columns.Command(command => command.Custom("Delete").Click("DeleteD4CAAttachment")); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:300px; width:100%; font-size: 10px", Readonly = "Readonly" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Events(events => events.Error("error_handler")) .Model(model => { model.Id(p => p.ID); }) .PageSize(50) .Read(read => read.Action("Attachment_Read", "CorrectiveAction", new { caNO = Model.CANo })) ) )
D0
@*
@Html.EditorFor(model => model.D0Approved) @if (ViewBag.IsSectionApprover == true && Model.D0Completed == true && Model.D0Approved != true) { }
*@
D0-Comments @Html.TextAreaFor(model => model.D0Comments, 20, 30, new { id = "d0Comments", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
D1
@(Html.Kendo().MultiSelect() .Name("TeamMemberIDs") //.BindTo(new SelectList(ViewBag.UserList, "TeamMemberID", "TeamMemberName")) .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .Value(ViewBag.Nothing) .HtmlAttributes(new { Readonly = "Readonly" }) )
@(Html.Kendo().DropDownList() .Name("TeamCaptainList") .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = " font-size:10px" }) .Value(Model.TeamCaptainID.ToString()) .HtmlAttributes(new { Readonly = "Readonly" }) )
@(Html.Kendo().DropDownList() .Name("CASponsorList") .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = " font-size:10px" }) .Value(Model.CASponsorID.ToString()) .HtmlAttributes(new { Readonly = "Readonly" }) )
D2
@Html.TextBoxFor(model => model.CustomerName, new { id = "txtCustomerName", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.CustomerPartNo, new { id = "txtCustomerPartNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.IFXPartNo, new { id = "txtIFXPartNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.PartQty, new { id = "txtPartQty", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.InvoiceNo, new { id = "txtInvoiceNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.PurchaseOrderNo, new { id = "txtPurchaseOrderNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.SalesOrderNo, new { id = "txtSalesOrderNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.DollarImpact, new { id = "txtDollarImpact", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.BackgroundInfo, 20, 30, new { id = "txtBackgroundInfo", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.Analysis, 20, 30, new { id = "txtAnalysis", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.VisualVerification, 20, 30, new { id = "txtVisualVerification", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
D3
@**@
@Html.TextAreaFor(model => model.InterimContainmentAction, 20, 30, new { id = "txtInterimContainmentAction", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.ICAVerificationResults, 20, 30, new { id = "txtICAVerificationResults", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.ICAValidationActivities, 20, 30, new { id = "txtICAValidationActivities", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
D4
@**@
@Html.TextAreaFor(model => model.D4RootCause1, 5, 30, new { id = "txtD4RootCause1", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.D4RootCause2, 5, 30, new { id = "txtD4RootCause2", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.D4RootCause3, 5, 30, new { id = "txtD4RootCause3", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.D4RootCause4, 5, 30, new { id = "txtD4RootCause4", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@(Html.Kendo().Grid() .Name("D4Attachments") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.CANo).Visible(false); columns.Bound(a => a.FileGUID).Visible(false); columns.Bound(a => a.FileName); columns.Bound(a => a.UploadedByName); columns.Bound(a => a.UploadDateTime).Format("{0:MM/dd/yy hh:mm:ss}"); columns.Command(command => command.Custom("View").Click("DownloadCAAttachment")); //columns.Command(command => command.Custom("Delete").Click("DeleteD4CAAttachment")); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:300px; width:100%; font-size: 10px", Readonly = "Readonly" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Events(events => events.Error("error_handler")) .Model(model => { model.Id(p => p.ID); }) .PageSize(50) .Read(read => read.Action("GetD4AttachmentList", "CorrectiveAction", new { caNO = Model.CANo })) ) )
@Html.TextAreaFor(model => model.RootCauseVerification, 5, 30, new { id = "txtRootCauseVerification", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.EscapePoint, 5, 30, new { id = "txtEscapePoint", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
Corrective/Preventitive Action D5/D6/D7
@(Html.Kendo().Grid() .Name("D5D6CorrectivetActions") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.ResponsibilityOwnerID).Visible(false); columns.Bound(a => a.ImprovementID).Visible(false); columns.Bound(a => a.CorrectiveAction).Width("500px"); columns.Bound(a => a.AssignedDate).Format("{0:MM/dd/yy}").Width("50px"); columns.Bound(a => a.CARequired).Width("50px").Title("Choose"); columns.Bound(a => a.Result).Width("100px"); columns.Bound(a => a.ECNLinks).ClientTemplate("#=buildECNLinks(ECNLinks)#").Width("100px"); columns.Bound(a => a.AttachmentLinks).ClientTemplate("#=buildLinks(AttachmentLinks, CANo)#").Width("100px"); columns.Bound(a => a.ResponsibilityOwnerName).Width("100px"); columns.Bound(a => a.ECD).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); columns.Bound(a => a.ImplementedDate).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); columns.Bound(a => a.Improvement).Width("150px").Format("{0:MM/dd/yy hh:mm:ss}"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Item")) .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:125; width:100%; font-size: 11px" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Model(model => { model.Id(p => p.ID); model.Field(a => a.CANo).DefaultValue(Model.CANo); }) .PageSize(50) .Read(read => read.Action("GetD5D6CorrectivetActionList", "CorrectiveAction", new { caNo = Model.CANo })) ) )
D8
@*
@Html.EditorFor(model => model.D8Approved) @if (ViewBag.IsSectionApprover == true && Model.D8Completed == true && Model.D8Approved != true) { }
*@
How we recognized the team: @Html.TextAreaFor(model => model.D8TeamRecognition, 3, 100, new { id = "txtD8TeamRecognition", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
Lessons Learned: @Html.TextAreaFor(model => model.D8LessonsLearned, 3, 100, new { id = "txtD8LessonsLearned", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
Follow Up
Follow Up Due Date @(Html.Kendo().DatePickerFor(model => model.FollowUpDate) .Name("txtFollowUpDate") .Format("yyyy-MM-dd") .HtmlAttributes(new {Readonly = "Readonly" }) )
@*
D1
@Html.TextBoxFor(model => model.CANoDisp, new { id = "txtCANo", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.CATitle, new { id = "txtCATitle", @class = "k-textbox", style = "width:100%;background-color:lightblue" })
@(Html.Kendo().DropDownList() .Name("RequestorList") .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(Model.RequestorID.ToString()) )
@Html.TextBoxFor(model => model.IssueDate, new { id = "txtIssueDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().DropDownList() .Name("D1AssigneeList") //.BindTo(new SelectList(ViewBag.UserList, "D1AssigneeID", "D1AssigneeName")) .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(Model.D1AssigneeID.ToString()) )
@(Html.Kendo().DropDownList() .Name("CASourceList") .BindTo(new SelectList(ViewBag.CASourceList, "CASourceID", "CASourceName")) .OptionLabel("Select") .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(Model.CASourceID.ToString()) )
@(Html.Kendo().MultiSelect() .Name("ModuleIDs") .BindTo(new SelectList(ViewBag.ModuleList, "ModuleID", "ModuleName")) .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(ViewBag.Nothing) )
@Html.TextBoxFor(model => model.StatusName, new { id = "txtStatus", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().DropDownList() .Name("D1QAList") //.BindTo(new SelectList(ViewBag.UserList, "D1QAID", "D1QAName")) .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .OptionLabel("Select") .HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" }) .Value(Model.QAID.ToString()) )
@(Html.Kendo().DatePickerFor(model => model.D8DueDate) .Name("txtD8DueDate") .HtmlAttributes(new {Readonly = "Readonly" }) )
@Html.TextBoxFor(model => model.Tools, new { id = "txtTool", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.ApprovedDate, new { id = "txtApprovedDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().MultiSelect() .Name("TeamMemberIDs") //.BindTo(new SelectList(ViewBag.UserList, "TeamMemberID", "TeamMemberName")) .BindTo(new SelectList(ViewBag.UserList, "UserID", "UserName")) .Value(ViewBag.Nothing) .HtmlAttributes(new { Readonly = "Readonly" }) )
@Html.TextBoxFor(model => model.RelatedMRB, new { id = "txtRelatedMRB", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.CAType, new { id = "txtCAType", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
*@ @*
D2-D3 Collapse
@Html.CheckBoxFor(model => model.D3Completed, new { disabled = "disabled" })
D2-Problem Description @Html.TextAreaFor(model => model.D2ProblemDescription, 20, 30, new { id = "txtD2ProblemDescription", @class = "k-textbox", Readonly = "Readonly", style = "font-size: 10px;width: 100%;" })
Attachments: @(Html.Kendo().Grid() .Name("D2Attachments") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.CANo).Visible(false); columns.Bound(a => a.FileGUID).Visible(false); columns.Bound(a => a.FileName); columns.Bound(a => a.UploadedByName); columns.Bound(a => a.UploadDateTime).Format("{0:MM/dd/yy hh:mm:ss}"); columns.Command(command => command.Custom("View").Click("DownloadCAAttachment")); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:240px; width:100%; font-size: 10px", Readonly = "Readonly" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Events(events => events.Error("error_handler")) .Model(model => { model.Id(p => p.ID); }) .PageSize(50) .Read(read => read.Action("GetD2AttachmentList", "CorrectiveAction", new { caNO = Model.CANo })) ) )
@(Html.Kendo().Grid() .Name("D3ContainmentActions") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.ResponsibilityOwnerID).Visible(false); columns.Bound(a => a.ContainmentAction).Width("500px").Title("D2-D4 Actions"); columns.Bound(a => a.AssignedDate).Format("{0:MM/dd/yy}").Width("50px"); columns.Bound(a => a.Result).Width("100px"); columns.Bound(a => a.ECNLinks).ClientTemplate("#=buildECNLinks(ECNLinks)#").Width("100px"); columns.Bound(a => a.ResponsibilityOwnerName).Width("100px"); columns.Bound(a => a.ECD).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); columns.Bound(a => a.ImplementedDate).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Item")) .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:125; width:100%; font-size: 11px", Readonly = "Readonly" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Model(model => { model.Id(p => p.ID); model.Field(a => a.CANo).DefaultValue(Model.CANo); }) .PageSize(50) .Read(read => read.Action("GetD3ContainmentActionsList", "CorrectiveAction", new { caNo = Model.CANo })) ) )
Risk Assessment
@(Html.Kendo().MultiSelect() .Name("RiskAssessmentAreaIDs") .BindTo(new SelectList(ViewBag.D3RiskAssessmentAreas, "RiskAssessmentAreaID", "RiskAssessmentAreaName")) .Value(ViewBag.Nothing) .HtmlAttributes(new { Readonly = "Readonly" }) )
Notes:
@Html.TextAreaFor(model => model.D3RiskAssessmentNotes, 10, 100, new { id = "txtD3RiskAssessmentNotes", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
*@ @*
D4 Collapse
@Html.CheckBoxFor(model => model.D4Completed, new { disabled = "disabled" })
@Html.TextAreaFor(model => model.D4RootCause1, 5, 30, new { id = "txtD4RootCause1", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.D4RootCause2, 5, 30, new { id = "txtD4RootCause2", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.D4RootCause3, 5, 30, new { id = "txtD4RootCause3", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@Html.TextAreaFor(model => model.D4RootCause4, 5, 30, new { id = "txtD4RootCause4", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
@(Html.Kendo().Grid() .Name("D4Attachments") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.CANo).Visible(false); columns.Bound(a => a.FileGUID).Visible(false); columns.Bound(a => a.FileName); columns.Bound(a => a.UploadedByName); columns.Bound(a => a.UploadDateTime).Format("{0:MM/dd/yy hh:mm:ss}"); columns.Command(command => command.Custom("View").Click("DownloadCAAttachment")); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:300px; width:100%; font-size: 10px" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Events(events => events.Error("error_handler")) .Model(model => { model.Id(p => p.ID); }) .PageSize(50) .Read(read => read.Action("GetD4AttachmentList", "CorrectiveAction", new { caNO = Model.CANo })) ) )
//D5-D6 =============================================================================
Corrective Action D5/D6 Collapse
@Html.CheckBoxFor(model => model.D5Completed, new { disabled = "disabled" }) @Html.CheckBoxFor(model => model.D6Validated, new { disabled = "disabled" })
@(Html.Kendo().Grid() .Name("D5D6CorrectivetActions") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.ResponsibilityOwnerID).Visible(false); columns.Bound(a => a.ImprovementID).Visible(false); columns.Bound(a => a.CorrectiveAction).Width("500px"); columns.Bound(a => a.AssignedDate).Format("{0:MM/dd/yy}").Width("50px"); columns.Bound(a => a.CARequired).Width("50px").Title("Choose"); columns.Bound(a => a.Result).Width("100px"); columns.Bound(a => a.ECNLinks).ClientTemplate("#=buildECNLinks(ECNLinks)#").Width("100px"); columns.Bound(a => a.AttachmentLinks).ClientTemplate("#=buildLinks(AttachmentLinks, CANo)#").Width("100px"); columns.Bound(a => a.ResponsibilityOwnerName).Width("100px"); columns.Bound(a => a.ECD).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); columns.Bound(a => a.ImplementedDate).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); columns.Bound(a => a.Improvement).Width("150px").Format("{0:MM/dd/yy hh:mm:ss}"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Item")) .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:125; width:100%; font-size: 11px" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Model(model => { model.Id(p => p.ID); model.Field(a => a.CANo).DefaultValue(Model.CANo); }) .PageSize(50) .Read(read => read.Action("GetD5D6CorrectivetActionList", "CorrectiveAction", new { caNo = Model.CANo })) ) )
//D7 =============================================================================
Preventive Action D7 Collapse
@Html.CheckBoxFor(model => model.D7Completed, new { disabled = "disabled" })
@(Html.Kendo().Grid() .Name("D7PreventiveActions") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.ResponsibilityOwnerID).Visible(false); columns.Bound(a => a.PreventiveAction).Width("250px"); columns.Bound(a => a.AssignedDate).Format("{0:MM/dd/yy}").Width("50px"); columns.Bound(a => a.Result).Width("100px"); columns.Bound(a => a.ECNLinks).ClientTemplate("#=buildECNLinks(ECNLinks)#").Width("100px"); columns.Bound(a => a.AttachmentLinks).ClientTemplate("#=buildLinks(AttachmentLinks, CANo)#").Width("100px"); columns.Bound(a => a.ResponsibilityOwnerName).Width("100px"); columns.Bound(a => a.ECD).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); columns.Bound(a => a.ImplementedDate).Width("100px").Format("{0:MM/dd/yy hh:mm:ss}"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Item")) .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:125; width:100%; font-size: 11px" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Model(model => { model.Id(p => p.ID); model.Field(a => a.CANo).DefaultValue(Model.CANo); }) .PageSize(50) .Read(read => read.Action("GetD7PreventiveActionList", "CorrectiveAction", new { caNo = Model.CANo })) ) )
D8 Collapse
@Html.CheckBoxFor(model => model.D8Completed, new { disabled = "disabled" })
How we recognized the team: @Html.TextAreaFor(model => model.D8TeamRecognition, 3, 100, new { id = "txtD8TeamRecognition", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
Lessons Leanred: @Html.TextAreaFor(model => model.D8LessonsLearned, 3, 100, new { id = "txtD8LessonsLearned", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
*@
@if (Model.ApprovalStatus != 0) {
@(Html.Kendo().Grid() .Name("ApproversList") .Columns(columns => { columns.Bound(a => a.UserID).Visible(false); columns.Bound(a => a.ApprovalID).Visible(false); columns.Bound(a => a.FullName); columns.Bound(a => a.RoleName); columns.Bound(a => a.SubRoleName); columns.Bound(a => a.Status); columns.Bound(a => a.AssignedDate).Format("{0:MM/dd/yy hh:mm:ss}"); ; columns.Bound(a => a.CompletedDate).Format("{0:MM/dd/yy hh:mm:ss}"); ; columns.Bound(a => a.Comments); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:200px; width:100%; font-size: 10px" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Model(model => { model.Id(p => p.ApprovalID); }) .PageSize(20) .Read(read => read.Action("GetApproversList", "CorrectiveAction", new { issueID = Model.CANo, step = Model.CurrentStep })) ) .Resizable(resize => resize.Columns(true)) ) }
}
}