1866 lines
112 KiB
Plaintext
1866 lines
112 KiB
Plaintext
@model Fab2ApprovalSystem.Models.CorrectiveAction
|
|
|
|
@{
|
|
ViewBag.Title = "Edit";
|
|
}
|
|
|
|
<style>
|
|
table {
|
|
border-spacing: 5px;
|
|
padding: 5px;
|
|
border-color: white;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.k-header .k-link {
|
|
text-align: center;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.k-grid-edit-row input {
|
|
width: 100%;
|
|
}
|
|
|
|
.k-grid .k-grid-header .k-header .k-link {
|
|
height: auto;
|
|
}
|
|
|
|
.k-grid .k-grid-header .k-header {
|
|
white-space: normal;
|
|
}
|
|
|
|
.k-grid .k-edit-cell input {
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
|
|
<link rel="stylesheet" href="/Content/kendo/kendo.blueopal.min.css" />
|
|
<link rel="stylesheet" href="~/Content/kendogridcustom.css" />
|
|
<body onload="StartTimers();" onmousemove="ResetTimers();" onkeydown="ResetTimers();">
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<div>
|
|
<div class="panel panel-default center-block" data-spy="affix">
|
|
<input type="button" value="Back to CA List" class="btn btn-primary btn-xs" id="CAList" />
|
|
<input type="button" value="Section Approval Log" class="btn btn-primary btn-xs" id="ShowSectionApprovalLog" />
|
|
@if (Session[GlobalVars.IS_ADMIN] != null)
|
|
{
|
|
<input type="button" value="Unlock Document" class="btn btn-primary btn-xs" id="UnlockDocumentBtn" onclick="UnlockDocument()" />
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default" style="font-size: 10px">
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
|
|
</div>
|
|
<div class="col-sm-3">
|
|
|
|
</div>
|
|
<div class="col-sm-6">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4 text-center">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<font style="color: crimson; font-size:24px;font-weight: bolder">
|
|
Corrective Action
|
|
</font>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4 text-right">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<font style="color:crimson">
|
|
@if (Model.RecordLockByName == null)
|
|
{
|
|
<h4>
|
|
<font style="color:red">
|
|
Mode: [Readonly]
|
|
</font>
|
|
</h4>
|
|
}
|
|
else
|
|
{
|
|
<h4>
|
|
<font style="color:red">
|
|
Mode: [Readonly] - Locked for Editing by <font style="color: green; font-weight:bold; font-style:italic">@Model.RecordLockByName</font>
|
|
</font>
|
|
</h4>
|
|
|
|
}
|
|
</font>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default" style="font-size: 10px">
|
|
<div class="panel-body bg-danger">
|
|
<h5>Basic Information</h5>
|
|
</div>
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA #:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.CANoDisp, new { id = "txtCANo", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Title</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextAreaFor(model => model.CATitle, new { id = "txtCATitle", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Requestor:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">D0 IssueDate:</label>
|
|
</div>
|
|
<div class="form-control-static col-sm-9">
|
|
@Html.TextBoxFor(model => model.IssueDate, new { id = "txtIssueDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Assignee:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Source:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Departments:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(Html.Kendo().MultiSelect()
|
|
.Name("ModuleIDs")
|
|
.BindTo(new SelectList(ViewBag.ModuleList, "ModuleID", "ModuleName"))
|
|
.HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" })
|
|
.Value(ViewBag.Nothing)
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Status:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.StatusName, new { id = "txtStatusName", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA QA:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Due Date:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@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")
|
|
)
|
|
}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Tool:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.Tools, new { id = "txtTool", @class = "k-textbox", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Approval Date:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.ApprovedDate, new { id = "txtApprovedDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Related MRB:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.RelatedMRB, new { id = "txtRelatedMRB", @class = "k-textbox", Readonly = "Readonly" })
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Related Audit#:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
<a href='/Audit/Edit?IssueID=@Model.RelatedAudit'>@Functions.ReturnAuditNoStringFormat(@Model.RelatedAudit) </a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Type:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
|
|
@Html.TextBoxFor(model => model.CAType, new { id = "txtCAType", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Standard Type:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.CAStandardType, new { id = "txtCAStandardType", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Related Audit Findings:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextArea("txtRelatedAuditFindings", (string)(ViewBag.AuditFinding), new { @class = "form-control", name = "txtRelatedAuditFindings", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Related Audit Finding Categories:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(Html.Kendo().MultiSelect()
|
|
.Name("RelatedAuditFindingsCategories")
|
|
.BindTo(new SelectList(ViewBag.AuditFindingCategoriesOptions, "AuditFindingCategoryID", "AuditFindingCategoryName"))
|
|
.HtmlAttributes(new { style = " font-size:10px", Readonly = "Readonly" })
|
|
.Value(ViewBag.AuditFindingCategories)
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Related Audit Violated Clause:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBox("txtRelatedViolatedClause", (string)(ViewBag.ViolatedClause), new { @class = "form-control", name = "txtRelatedAuditFindings", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body bg-warning">
|
|
<div class="form-group">
|
|
<label class="control-label">Affected Documents:</label>
|
|
<div class="col-sm-12">
|
|
|
|
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.CA_Attachment>()
|
|
.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 }))
|
|
)
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default" style="font-size: 10px">
|
|
<div class="panel-body bg-danger">
|
|
<h5>D0</h5>
|
|
</div>
|
|
@*<div class="panel-body bg-warning" style="font-size: 14px">
|
|
@Html.EditorFor(model => model.D0Approved)
|
|
@if (ViewBag.IsSectionApprover == true && Model.D0Completed == true && Model.D0Approved != true)
|
|
{
|
|
<input type="button" class="btn" value="Approve" id="ApproveD0" />
|
|
<input type="button" class="btn" value="Reject" id="RejectD0" />
|
|
}
|
|
</div>*@
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<font style="color: black; font-size:11px;font-weight: bolder">
|
|
D0-Comments
|
|
</font>
|
|
@Html.TextAreaFor(model => model.D0Comments, 20, 30, new { id = "d0Comments", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default" style="font-size: 10px">
|
|
<div class="panel-body bg-danger">
|
|
<h5>D1</h5>
|
|
</div>
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Team Members:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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" })
|
|
)
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Team Captain:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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" })
|
|
)
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Sponsor:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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" })
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default" style="font-size: 10px">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
D2
|
|
</h5>
|
|
</div>
|
|
<div>
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Customer Name:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.CustomerName, new { id = "txtCustomerName", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Customer Part#:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.CustomerPartNo, new { id = "txtCustomerPartNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">IFX Part#:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.IFXPartNo, new { id = "txtIFXPartNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Part Qty:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.PartQty, new { id = "txtPartQty", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Invoice #:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.InvoiceNo, new { id = "txtInvoiceNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Purchase Order #:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.PurchaseOrderNo, new { id = "txtPurchaseOrderNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Sales Order #:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.SalesOrderNo, new { id = "txtSalesOrderNo", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Dollar Impact:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.DollarImpact, new { id = "txtDollarImpact", @class = "k-textbox", style = "width:100%", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Background Info:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextAreaFor(model => model.BackgroundInfo, 20, 30, new { id = "txtBackgroundInfo", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Analysis:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextAreaFor(model => model.Analysis, 20, 30, new { id = "txtAnalysis", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Visual Verification:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextAreaFor(model => model.VisualVerification, 20, 30, new { id = "txtVisualVerification", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="panel panel-default" style="font-size: 10px">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
D3
|
|
</h5>
|
|
|
|
</div>
|
|
<div>
|
|
<div class="panel-body bg-warning">
|
|
@*<div class="row">*@
|
|
<div class="col-sm-6 pull-right">
|
|
<a href='file:////@GlobalVars.CA_BlankFormsLocation' target=_blank><font color="blue">Links to blank forms (FTA, Fish Bone 5Whys, Is/Is Not)</font></a>
|
|
</div>
|
|
|
|
@*</div>*@
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Interim Containment Action:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextAreaFor(model => model.InterimContainmentAction, 20, 30, new { id = "txtInterimContainmentAction", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">ICA Verification Results:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextAreaFor(model => model.ICAVerificationResults, 20, 30, new { id = "txtICAVerificationResults", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">ICA Validation Activities:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextAreaFor(model => model.ICAValidationActivities, 20, 30, new { id = "txtICAValidationActivities", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
D4
|
|
</font>
|
|
</h5>
|
|
</div>
|
|
<div>
|
|
<div class="panel-body bg-warning">
|
|
@*<div class="row">*@
|
|
<div class="panel-body bg-warning" style="font-size: 14px">
|
|
|
|
</div>
|
|
<div class="col-sm-6 pull-right">
|
|
<a href='file:////@GlobalVars.CA_BlankFormsLocation' target=_blank><font color="blue">Links to blank forms (FTA, Fish Bone 5Whys, Is/Is Not)</font></a>
|
|
</div>
|
|
|
|
@*</div>*@
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause 1:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause1, 5, 30, new { id = "txtD4RootCause1", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause 2:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause2, 5, 30, new { id = "txtD4RootCause2", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause 3:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause3, 5, 30, new { id = "txtD4RootCause3", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause4:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause4, 5, 30, new { id = "txtD4RootCause4", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6" style="font-size: 10px">
|
|
<div class="row">
|
|
</div>
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
|
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.CA_Attachment>()
|
|
.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 }))
|
|
)
|
|
)
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause Verification:</label>
|
|
@Html.TextAreaFor(model => model.RootCauseVerification, 5, 30, new { id = "txtRootCauseVerification", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Escape Point:</label>
|
|
@Html.TextAreaFor(model => model.EscapePoint, 5, 30, new { id = "txtEscapePoint", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
Corrective/Preventitive Action D5/D6/D7
|
|
</font>
|
|
</h5>
|
|
</div>
|
|
<div>
|
|
<div class="panel-body bg-warning">
|
|
<div>
|
|
<input type="button" id="AddD5D6CorrectiveActionItem" value="Add D5-D6 Corrective Action Item" class="btn btn-primary btn-xs" />
|
|
</div>
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.D5D6CorrectivetAction>()
|
|
.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 }))
|
|
)
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
D8
|
|
</font>
|
|
</h5>
|
|
</div>
|
|
<div>
|
|
@*<div class="panel-body bg-warning">
|
|
<label class="control-label ">D8 Approved:</label>
|
|
@Html.EditorFor(model => model.D8Approved)
|
|
@if (ViewBag.IsSectionApprover == true && Model.D8Completed == true && Model.D8Approved != true)
|
|
{
|
|
<input type="button" class="btn" value="Approve" id="ApproveD8" />
|
|
<input type="button" class="btn" value="Reject" id="RejectD8" />
|
|
|
|
|
|
}
|
|
</div>*@
|
|
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
<div class="col-sm-6 text-left">
|
|
<font style="color: black; font-size:12px;font-weight: bolder">
|
|
How we recognized the team:
|
|
</font>
|
|
@Html.TextAreaFor(model => model.D8TeamRecognition, 3, 100, new { id = "txtD8TeamRecognition", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
<font style="color: black; font-size:12px;font-weight: bolder">
|
|
Lessons Learned:
|
|
</font>
|
|
@Html.TextAreaFor(model => model.D8LessonsLearned, 3, 100, new { id = "txtD8LessonsLearned", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
Follow Up
|
|
</font>
|
|
</h5>
|
|
</div>
|
|
<div>
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
<div class="col-sm-6 text-left">
|
|
<font style="color: black; font-size:12px;font-weight: bolder">
|
|
Follow Up Due Date
|
|
</font>
|
|
@(Html.Kendo().DatePickerFor(model => model.FollowUpDate)
|
|
.Name("txtFollowUpDate")
|
|
.Format("yyyy-MM-dd")
|
|
.HtmlAttributes(new {Readonly = "Readonly" })
|
|
)
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@*<div class="panel panel-default" style="font-size: 10px">
|
|
<div class="panel-body bg-warning">
|
|
<div class="panel-body bg-danger">
|
|
<h5>D1</h5>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA #:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.CANoDisp, new { id = "txtCANo", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Title</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.CATitle, new { id = "txtCATitle", @class = "k-textbox", style = "width:100%;background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Requestor:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">D0 IssueDate:</label>
|
|
</div>
|
|
<div class="form-control-static col-sm-9">
|
|
@Html.TextBoxFor(model => model.IssueDate, new { id = "txtIssueDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Assignee:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Source:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Module:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(Html.Kendo().MultiSelect()
|
|
.Name("ModuleIDs")
|
|
.BindTo(new SelectList(ViewBag.ModuleList, "ModuleID", "ModuleName"))
|
|
.HtmlAttributes(new { style = "font-size:10px", Readonly = "Readonly" })
|
|
.Value(ViewBag.Nothing)
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Status:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.StatusName, new { id = "txtStatus", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA QA:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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())
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Due Date:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(Html.Kendo().DatePickerFor(model => model.D8DueDate)
|
|
.Name("txtD8DueDate")
|
|
.HtmlAttributes(new {Readonly = "Readonly" })
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Tool:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.Tools, new { id = "txtTool", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Approval Date:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.ApprovedDate, new { id = "txtApprovedDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Team Members:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@(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" })
|
|
)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Related MRB:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.RelatedMRB, new { id = "txtRelatedMRB", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">Related Audit#:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
<a href='/Audit/Edit?IssueID=@Model.RelatedAudit'>@Functions.ReturnAuditNoStringFormat(@Model.RelatedAudit) </a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-3">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<label class="control-label pull-right">CA Type:</label>
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.TextBoxFor(model => model.CAType, new { id = "txtCAType", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>*@
|
|
|
|
@*<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
D2-D3
|
|
</font>
|
|
<a class="btn btn-xs pull-right alert-info" id="SectionD2D3" role="button" data-toggle="collapse" href="#collapseSectionD2D3" aria-expanded="true" aria-controls="collapseSectionD2D3">
|
|
Collapse
|
|
</a>
|
|
</h5>
|
|
</div>
|
|
<div class="collapse" id="collapseSectionD2D3">
|
|
|
|
|
|
<div class="panel-body bg-warning">
|
|
|
|
<div class="panel-body bg-warning">
|
|
<label class="control-label ">D3 Completed:</label>
|
|
@Html.CheckBoxFor(model => model.D3Completed, new { disabled = "disabled" })
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<font style="color: black; font-size:11px;font-weight: bolder">
|
|
D2-Problem Description
|
|
</font>
|
|
@Html.TextAreaFor(model => model.D2ProblemDescription, 20, 30, new { id = "txtD2ProblemDescription", @class = "k-textbox", Readonly = "Readonly", style = "font-size: 10px;width: 100%;" })
|
|
</div>
|
|
<div class="col-sm-6" style="font-size: 10px">
|
|
<font style="color: black; font-size:11px;font-weight: bolder">
|
|
Attachments:
|
|
</font>
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.CA_Attachment>()
|
|
.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 }))
|
|
|
|
)
|
|
)
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body bg-warning">
|
|
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.D3ContainmentAction>()
|
|
.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 }))
|
|
)
|
|
)
|
|
</div>
|
|
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
<div class="col-sm-12 text-left">
|
|
<font style="color: black; font-size:12px;font-weight: bolder">
|
|
Risk Assessment
|
|
</font>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
@(Html.Kendo().MultiSelect()
|
|
.Name("RiskAssessmentAreaIDs")
|
|
.BindTo(new SelectList(ViewBag.D3RiskAssessmentAreas, "RiskAssessmentAreaID", "RiskAssessmentAreaName"))
|
|
.Value(ViewBag.Nothing)
|
|
.HtmlAttributes(new { Readonly = "Readonly" })
|
|
)
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12 text-left">
|
|
<font style="color: black; font-size:12px;font-weight: bolder">
|
|
Notes:
|
|
</font>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
@Html.TextAreaFor(model => model.D3RiskAssessmentNotes, 10, 100, new { id = "txtD3RiskAssessmentNotes", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
@*<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
D4
|
|
</font>
|
|
<a class="btn btn-xs pull-right alert-info" id="SectionD4" role="button" data-toggle="collapse" href="#collapseSectionD4" aria-expanded="true" aria-controls="collapseSectionD4">
|
|
Collapse
|
|
</a>
|
|
</h5>
|
|
</div>
|
|
<div class="collapse" id="collapseSectionD4">
|
|
|
|
|
|
<div class="panel-body bg-warning">
|
|
|
|
|
|
<div class="panel-body bg-warning">
|
|
<label class="control-label ">D4 Completed:</label>
|
|
@Html.CheckBoxFor(model => model.D4Completed, new { disabled = "disabled" })
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause 1:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause1, 5, 30, new { id = "txtD4RootCause1", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause 2:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause2, 5, 30, new { id = "txtD4RootCause2", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause 3:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause3, 5, 30, new { id = "txtD4RootCause3", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<label class="control-label pull-left">Root Cause4:</label>
|
|
@Html.TextAreaFor(model => model.D4RootCause4, 5, 30, new { id = "txtD4RootCause4", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6" style="font-size: 10px">
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
|
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.CA_Attachment>()
|
|
.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 }))
|
|
|
|
)
|
|
|
|
)
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
//D5-D6 =============================================================================
|
|
<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
Corrective Action D5/D6
|
|
</font>
|
|
<a class="btn btn-xs pull-right alert-info" id="SectionD5D6" role="button" data-toggle="collapse" href="#collapseSectionD5D6" aria-expanded="true" aria-controls="collapseSectionD5D6">
|
|
Collapse
|
|
</a>
|
|
</h5>
|
|
</div>
|
|
<div class="collapse" id="collapseSectionD5D6">
|
|
|
|
|
|
<div class="panel-body bg-warning">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<label class="control-label ">D5 Completed:</label>
|
|
@Html.CheckBoxFor(model => model.D5Completed, new { disabled = "disabled" })
|
|
</td>
|
|
<td>
|
|
<label class="control-label ">D6 Validated:</label>
|
|
@Html.CheckBoxFor(model => model.D6Validated, new { disabled = "disabled" })
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
<div class="panel-body bg-warning">
|
|
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.D5D6CorrectivetAction>()
|
|
.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 }))
|
|
)
|
|
)
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
//D7 =============================================================================
|
|
<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
Preventive Action D7
|
|
</font>
|
|
<a class="btn btn-xs pull-right alert-info" id="SectionD7" role="button" data-toggle="collapse" href="#collapseSectionD7" aria-expanded="true" aria-controls="collapseSectionD7">
|
|
Collapse
|
|
</a>
|
|
</h5>
|
|
</div>
|
|
<div class="collapse" id="collapseSectionD7">
|
|
|
|
|
|
<div class="panel-body bg-warning">
|
|
<label class="control-label ">D7 Completed:</label>
|
|
@Html.CheckBoxFor(model => model.D7Completed, new { disabled = "disabled" })
|
|
</div>
|
|
|
|
<div class="panel-body bg-warning">
|
|
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.D7PreventiveAction>()
|
|
.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 }))
|
|
)
|
|
)
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="panel panel-default">
|
|
<div class="panel-body bg-danger">
|
|
<h5>
|
|
<font style="color: crimson; font-weight: bold">
|
|
D8
|
|
</font>
|
|
<a class="btn btn-xs pull-right alert-info" id="SectionD8" role="button" data-toggle="collapse" href="#collapseSectionD8" aria-expanded="true" aria-controls="collapseSectionD8">
|
|
Collapse
|
|
</a>
|
|
</h5>
|
|
</div>
|
|
<div class="collapse" id="collapseSectionD8">
|
|
|
|
|
|
<div class="panel-body bg-warning">
|
|
<label class="control-label ">D8 Completed:</label>
|
|
@Html.CheckBoxFor(model => model.D8Completed, new { disabled = "disabled" })
|
|
</div>
|
|
|
|
<div class="panel-body bg-warning">
|
|
<div class="row">
|
|
<div class="col-sm-6 text-left">
|
|
<font style="color: black; font-size:12px;font-weight: bolder">
|
|
How we recognized the team:
|
|
</font>
|
|
@Html.TextAreaFor(model => model.D8TeamRecognition, 3, 100, new { id = "txtD8TeamRecognition", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
<font style="color: black; font-size:12px;font-weight: bolder">
|
|
Lessons Leanred:
|
|
</font>
|
|
@Html.TextAreaFor(model => model.D8LessonsLearned, 3, 100, new { id = "txtD8LessonsLearned", @class = "k-textbox", style = "font-size: 10px;width: 100%;", Readonly = "Readonly" })
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>*@
|
|
|
|
<div class="panel panel-default" style="font-size: 10px">
|
|
@if (Model.ApprovalStatus != 0)
|
|
{
|
|
<div class="panel-body bg-warning">
|
|
<div class="col-sm-offset-0">
|
|
|
|
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.ViewModels.ApproversListViewModel>()
|
|
.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))
|
|
)
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="SectionApprovalLog" tabindex="0" role="dialog" aria-hidden="true" data-backdrop="static">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header" style="background-color: #e4daa1; font-size: 15px;">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h4 class="modal-title" id="myModalLabel">Section Approval Log:</h4>
|
|
</div>
|
|
<div class="modal-body" id="SectionApprovalLogContainer" style="background-color: #75adc6; font-size: 12px;">
|
|
@(Html.Kendo().Grid<Fab2ApprovalSystem.Models.CASectionApproval>()
|
|
.Name("SectionApprovalList")
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(a => a.Fullname);
|
|
columns.Bound(a => a.DSection);
|
|
columns.Bound(a => a.ApprovalStatus);
|
|
columns.Bound(a => a.DateAssigned).Format("{0:MM/dd/yy hh:mm:ss}"); ;
|
|
columns.Bound(a => a.DateCompleted).Format("{0:MM/dd/yy hh:mm:ss}"); ;
|
|
columns.Bound(a => a.Comments);
|
|
|
|
})
|
|
.Sortable()
|
|
.Scrollable()
|
|
.HtmlAttributes(new { style = "width:100%; font-size: 10px; overflow-y:hidden;" })
|
|
.DataSource(dataSource => dataSource
|
|
.Ajax()
|
|
//.Batch(false)
|
|
.ServerOperation(false)
|
|
//.Model(model =>
|
|
//{
|
|
// model.Id(p => p.);
|
|
//})
|
|
.PageSize(300)
|
|
.Read(read => read.Action("GetSectionApprovalLog", "CorrectiveAction", new { caNo = Model.CANo }))
|
|
)
|
|
.Resizable(resize => resize.Columns(true))
|
|
)
|
|
|
|
|
|
</div>
|
|
<div class="modal-footer" style="background-color: #e4daa1; font-size: 15px;">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
<script type="text/javascript">
|
|
var d3ContainmentActionOperation;
|
|
var d5CorrectiveActionOperation;
|
|
var d7PrevetativeActionOperation;
|
|
|
|
var d3ContainmenActionID;
|
|
var d5CorrectiveActionID;
|
|
var d7PreventiveActionID;
|
|
|
|
$(document).ready(function(){
|
|
$('#collapseSectionD2D3').collapse({
|
|
toggle: true
|
|
})
|
|
$('#collapseSectionD4').collapse({
|
|
toggle: true
|
|
})
|
|
$('#collapseSectionD5D6').collapse({
|
|
toggle: true
|
|
})
|
|
$('#collapseSectionD7').collapse({
|
|
toggle: true
|
|
})
|
|
$('#collapseSectionD8').collapse({
|
|
toggle: true
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
$("#CAList").on('click', function () {
|
|
var url = '@Url.Action("CorrectiveActionList", "Home")';
|
|
window.location = url;
|
|
})
|
|
$("#ShowSectionApprovalLog").on('click', function () {
|
|
$("#SectionApprovalLog").modal('show');
|
|
})
|
|
|
|
|
|
|
|
function buildECNLinks(ECNs) {
|
|
var template = "";
|
|
if (ECNs != null) {
|
|
var tempValue = ECNs.split(',');
|
|
for (var i = 0; i < tempValue.length; i++) {
|
|
template += "<a href='/ECN/Edit?IssueID=" + tempValue[i] + "'> " + tempValue[i] + ",</a>" + " ";
|
|
}
|
|
|
|
}
|
|
return template;
|
|
|
|
}
|
|
|
|
function UnlockDocument() {
|
|
$.ajax({
|
|
url: "/CorrectiveAction/ReleaseLockOnDocumentAdmin",
|
|
type: "GET",
|
|
datatype: "json",
|
|
data: {
|
|
issueID: ("@Model.CANo")
|
|
},
|
|
success: function () {
|
|
alert('Document Unlocked!');
|
|
var url = '@Url.Action("ReadOnlyCA", "CorrectiveAction", new { caNo = "__id__" })';
|
|
url = url.replace('amp;', '');
|
|
window.location.href = url.replace('__id__', @Model.CANo);
|
|
},
|
|
error: function (result) {
|
|
alert("ReleaseLockOnDocument - Failed " + result);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
function error_handler(e) {
|
|
if (e.errors) {
|
|
var message = "Errors:\n";
|
|
$.each(e.errors, function (key, value) {
|
|
if ('errors' in value) {
|
|
$.each(value.errors, function () {
|
|
message += this + "\n";
|
|
});
|
|
}
|
|
});
|
|
alert(message);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function DownloadCAAttachment(e) {
|
|
e.preventDefault();
|
|
|
|
var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
|
|
var fileName = dataItem.FileGUID;
|
|
var fileGUID = dataItem.FileGUID;
|
|
|
|
window.location = '/CorrectiveAction/DownloadCAAttachment?fileGuid=' + fileGUID + '&caNo=' + @Model.CANo;
|
|
|
|
}
|
|
|
|
function buildLinks(fileNames, caNo) {
|
|
var template = "";
|
|
|
|
//var fileName = 4;
|
|
|
|
//alert(workRequestID);
|
|
|
|
if (fileNames != null) {
|
|
var tempValue = fileNames.split(',');
|
|
for (var i = 0; i < tempValue.length; i++) {
|
|
var tempValue2 = tempValue[i].split('~');
|
|
|
|
var fileName = tempValue2[0];
|
|
var fileGuid = tempValue2[1];
|
|
|
|
var tempFile = fileName.split('.');
|
|
var fileExtension = tempFile[tempFile.length - 1];
|
|
|
|
template += "<a href='/CorrectiveAction/DownloadCAAttachment?fileGuid=" + fileGuid + "&caNo=" + @Model.CANo + "'>" + fileName + "</a><BR>" + " ";
|
|
|
|
|
|
}
|
|
|
|
}
|
|
return template;
|
|
}
|
|
|
|
|
|
$("#SectionD2D3").on('click', function () {
|
|
var element = document.getElementById("SectionD2D3");
|
|
if (element.innerHTML.trim() == "Expand")
|
|
element.innerHTML = "Collapse";
|
|
else
|
|
element.innerHTML = "Expand";
|
|
})
|
|
|
|
$("#SectionD4").on('click', function () {
|
|
var element = document.getElementById("SectionD4");
|
|
if (element.innerHTML.trim() == "Expand")
|
|
element.innerHTML = "Collapse";
|
|
else
|
|
element.innerHTML = "Expand";
|
|
})
|
|
|
|
$("#SectionD5D6").on('click', function () {
|
|
var element = document.getElementById("SectionD5D6");
|
|
if (element.innerHTML.trim() == "Expand")
|
|
element.innerHTML = "Collapse";
|
|
else
|
|
element.innerHTML = "Expand";
|
|
})
|
|
|
|
$("#SectionD7").on('click', function () {
|
|
var element = document.getElementById("SectionD7");
|
|
if (element.innerHTML.trim() == "Expand")
|
|
element.innerHTML = "Collapse";
|
|
else
|
|
element.innerHTML = "Expand";
|
|
})
|
|
|
|
$("#SectionD8").on('click', function () {
|
|
var element = document.getElementById("SectionD8");
|
|
if (element.innerHTML.trim() == "Expand")
|
|
element.innerHTML = "Collapse";
|
|
else
|
|
element.innerHTML = "Expand";
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|