@model Fab2ApprovalSystem.Models.ECN @{ ViewBag.Title = "Edit"; } @{ Layout = "_ECNLayout.cshtml"; } @using (Html.BeginForm()) { @Html.AntiForgeryToken()
@if (@Model.CurrentStep == 0) {
} else { if (ViewBag.IsApprover == "true") {
} }
Engineering Change Notice
@Html.TextBoxFor(model => model.ECNNumber, new { id = "txtECNNumber", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.SubmitedDate, new { id = "txSubmitDate", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.OriginatorName, new { id = "txtOriginatorName", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" }) @if (Session[GlobalVars.IS_ADMIN] != null) { }
@if (Model.ConvertedFromNumber != null && Model.IsECN) {
} @if (Model.ConvertedFromNumber != null && Model.IsTECN) {
} @if (Model.ConvertedToNumber != null && Model.IsEmergencyTECN) {
} @if (Model.ConvertedToNumber != null && Model.IsTECN) {
}
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width:100%" })
* (DO NOT USE Rev I, O, S, X, and Z)
Revision Y is followed by AA-AY, AY is followed by BA-BY etc. YY is followed by AAA
@(Html.Kendo().MultiSelect() .Name("DepartmentIDs") .BindTo(new SelectList(ViewBag.Departments, "DepartmentID", "DepartmentName")) .Value(ViewBag.Nothing) )
ECN: Qualtiy and Dept. Specific
PCRB: Quality, Production, Engineering, Dept. Specific (scope of change)
@(Html.Kendo().MultiSelect() .Name("ModuleIDs") .BindTo(new SelectList(ViewBag.AffectedModules, "ModuleID", "ModuleName")) .Value(ViewBag.Nothing) )
@(Html.Kendo().DropDownListFor(model => model.CategoryID) .Name("CategoryID") .DataValueField("CategoryID") .DataTextField("CategoryName") .BindTo(ViewBag.Categories) .OptionLabel("Select Category...") )
@Html.CheckBoxFor(model => model.IsDocEC)
ECN/TECN Detail
@{ bool DisableTypeCheckboxes = !(Model.ConvertedFromNumber == null || Model.IsTECN); }
@Html.CheckBoxFor(model => model.IsECN, (DisableTypeCheckboxes ? new { disabled = "disabled" } : null))
@Html.CheckBoxFor(model => model.IsTECN, (DisableTypeCheckboxes ? new { disabled = "disabled" } : null))
@Html.CheckBoxFor(model => model.IsEmergencyTECN, (DisableTypeCheckboxes ? new { disabled = "disabled" } : null))
@(Html.Kendo().DatePickerFor(model => model.ExpirationDate) .Name("txtExpirationDate") .HtmlAttributes(new { disabled = "disabled", @type = "", style = "width: 10em;" }) .Format("MM/dd/yyyy") )
@(Html.Kendo().DropDownList() .Name("NumberOfLotsAffected") .Items(i => { i.Add().Text("").Value(""); i.Add().Text("NA").Value("NA"); i.Add().Text("< 10").Value("< 10"); i.Add().Text("> 10").Value("> 10"); }) .HtmlAttributes(new { style = "width: 5em;" }) )
@(Html.Kendo().DropDownList() .Name("RecipeChange") .Items(i => { i.Add().Text("").Value(""); i.Add().Text("No").Value("False"); i.Add().Text("Yes").Value("True"); }) .HtmlAttributes(new { style = "width: 5em;" }) )
@(Html.Kendo().MultiSelect() .Name("ProductFamilyIDs") .BindTo(new SelectList(ViewBag.ProductFamilies, "ProductFamilyID", "ProductFamily")) .HtmlAttributes(new { style = "width: 100%;" }) .Value(Model.ProductFamilyIDs) )
@(Html.Kendo().Upload() .Name("files") .Async(a => a .Save("AttachSave", "ECN", new { ecnNumber = Model.ECNNumber }) .AutoUpload(true) ) .ShowFileList(false) .Events(events => events .Success("onFileUploadSuccess") .Upload("checkFileType") .Error("onFileUploadError") ) ) @(Html.Kendo().Grid() .Name("Attachments") .Columns(columns => { columns.Bound(a => a.AttachmentID).Visible(false); columns.Bound(a => a.ECNNumber).Visible(false); columns.Bound(a => a.FileName).Template(@ @Html.ActionLink(@item.FileName.ToString(), null)); //.ClientTemplate("#=FileName#"); columns.Bound(a => a.FullName); columns.Bound(a => a.UploadDate).Format("{0:MM/dd/yy hh:mm:ss}"); columns.Command(command => command.Custom("View").Click("DownloadAttachment")); columns.Command(command => command.Custom("Delete").Click("deleteAttachment")); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:157px; 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.AttachmentID); }) .PageSize(50) .Read(read => read.Action("Attachment_Read", "ECN", new { ecnNumber = Model.ECNNumber })) .Destroy(destroy => destroy.Action("Attachment_Destroy", "ECN")) ) )
Description of Change
@Html.TextAreaFor(model => model.DescriptionOfChange, 15, 30, new { id = "txtDescriptionOfChange", @class = "form-control", style = "font-size: 11px;width: 100%;" })
Reason For Change
@Html.TextAreaFor(model => model.ReasonForChange, 15, 30, new { id = "txtReasonForChange", @class = "form-control", style = "font-size: 11px;width: 100%;" })
Training Notification
@Html.EditorFor(model => model.TrainingRequired)
@(Html.Kendo().MultiSelect() .Name("TrainingByIDs") .BindTo(new SelectList(ViewBag.AcknowledgementTrainingByIDs, "TrainingGroupID", "TrainingGroupName")) .Events(e => e.Change("trainingby_change")) .Value(ViewBag.Nothing) .HtmlAttributes(new { Readonly = "Readonly" }) )
Systems
@Html.EditorFor(model => model.PCRBRequired)
@Html.TextBoxFor(model => model.PCRBNumber, new { id = "txtPCRBNumber", @class = "k-textbox", @style = "max-width: 100%;" }) @**@
@*
@*Metrology maps to TestProgramChangeRequired @Html.EditorFor(model => model.TestProgramChangeRequired)
*@
@Html.EditorFor(model => model.MetrologyChangeRequired)
@Html.EditorFor(model => model.SPCChangeRequired)
@*
@Html.EditorFor(model => model.NewPartFlowRequired)
*@
@Html.EditorFor(model => model.FIChangeRequired)
@Html.EditorFor(model => model.SPNChangeRequired)
@*
Implementation Details
@Html.TextAreaFor(model => model.ImplementationDetails, 15, 30, new { id = "txtImplementationDetails", @class = "form-control", style = "font-size: 11px;width: 100%;" })
*@
Change Impact
@Html.RadioButtonFor(model => model.ImpactOnEnvironment, 1)
@Html.RadioButtonFor(model => model.ImpactOnEnvironment, 2)
@Html.RadioButtonFor(model => model.ImpactOnEnvironment, 3)
@Html.TextAreaFor(model => model.ImpactOnEnvironmentDescription, 5, 30, new { id = "txtImpactOnEnvironmentDescription", @class = "form-control", style = "font-size: 11px;width: 100%;" })
@Html.RadioButtonFor(model => model.ImpactOnCapacity, 1)
@Html.RadioButtonFor(model => model.ImpactOnCapacity, 0)
@Html.TextAreaFor(model => model.ImpactOnCapacityDescription, 5, 30, new { id = "txtImpactOnCapacityDescription", @class = "form-control", style = "font-size: 11px;width: 100%;" })
@*
@Html.EditorFor(model => model.IsMA)
@Html.EditorFor(model => model.IsRH)
@Html.EditorFor(model => model.IsAU)
@Html.EditorFor(model => model.IsIndustrial)
*@
@Html.RadioButtonFor(model => model.MaterialConsumptionChangeRequired, 1)
@Html.RadioButtonFor(model => model.MaterialConsumptionChangeRequired, 0)
@Html.TextAreaFor(model => model.MaterialConsumptionChangeDescription, 5, 30, new { id = "txtMaterialConsumptionChangeDescription", @class = "form-control", style = "font-size: 11px;width: 100%;" })
@*
Description Of Change
@Html.TextAreaFor(model => model.DescriptionOfChange, 5, 30, new { id = "txtDescriptionOfChange", @class = "form-control", style = "font-size: 11px;width: 100%;" })
*@ @*
Implementation
@Html.EditorFor(model => model.NotAFlowChange)
@Html.EditorFor(model => model.AttachECN_TECNToLots)
@Html.EditorFor(model => model.SPNFlowChangeAtSingleStep)
@Html.EditorFor(model => model.SPNFlowChangeAtMultipleSteps)
*@
@if (ViewBag.IsApprover == "true") { }
@if (Session[GlobalVars.IS_ADMIN] != null) { if ((bool)Session[GlobalVars.IS_ADMIN] && (Request.IsAuthenticated)) { @(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); columns.Command(command => command.Custom("Re-Assign").Click("showReAssignRole")).Width("100px"); }) .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", "ECN", new { issueID = Model.ECNNumber, step = Model.CurrentStep, isTECN = Model.IsTECN, isEmergrncyTECN = Model.IsEmergencyTECN })) ) .Resizable(resize => resize.Columns(true)) ) } else { @(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); //columns.Command(command => command.Custom("Re-Assign").Click("showReAssignRole")).Width("100px"); }) .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", "ECN", new { issueID = Model.ECNNumber, step = Model.CurrentStep, isTECN = Model.IsTECN, isEmergrncyTECN = Model.IsEmergencyTECN })) ) .Resizable(resize => resize.Columns(true)) ) } }
} @Html.Partial("_ECNReassignOriginator")