@model Fab2ApprovalSystem.Models.MRB @{ ViewBag.Title = "Edit"; } @{ Layout = "_MRBLayout.cshtml"; } @using (Html.BeginForm()) { @Html.AntiForgeryToken() if (ViewBag.Status == "Approved" && ViewBag.IsApprover == "true") { } else if (ViewBag.Status == "Pending" && ViewBag.IsApprover == "true") {
} else if (ViewBag.Status == "Pending") {
}
@Html.TextBoxFor(model => model.MRBNumber, new { id = "txtMRBNumber", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.MRBRaisedDate, new { id = "txtMRBRaisedDate", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.ApprovalStatusString, new { id = "txtApprovalStatus", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.ApprovalDate, new { id = "txtApprovalDate", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" })
@(Html.Kendo().DropDownList() .Name("OwnerID") .BindTo(new SelectList(ViewBag.Owners, "UserID", "FullName")) .Value(Model.Owner.ToString()) )
@(Html.Kendo().MultiSelect() .Name("ModuleIds") .BindTo(new SelectList(ViewBag.Modules, "ModuleID", "ModuleName")) .Value(ViewBag.Nothing) )
@(Html.Kendo().DropDownList() .Name("MRBRaisedAreaID") .BindTo(new SelectList(ViewBag.Modules, "ModuleID", "ModuleName")) .Value(Model.MRBRaisedAreaID.ToString()) )
@(Html.Kendo().MultiSelect() .Name("PartGroupIDs") .BindTo(new SelectList(ViewBag.PartGroups, "PartGroupID", "PartGroupName")) .Value(ViewBag.Nothing) )
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", style = "width: 100%" })
@(Html.Kendo().MultiSelect() .Name("ToolCSV") .DataSource(ds => ds.Read(read => read.Action("GetTools", "MRB"))) .Value((Model.ToolCSV != null ? Model.ToolCSV.Split(',') : null)) )
@Html.TextBoxFor(model => model.Tool, new { id = "txtTool", @class = "k-textbox" })
@Html.TextBoxFor(model => model.Process, new { id = "txtProcess", @class = "k-textbox" })
@Html.TextBoxFor(model => model.CANo, new { @class = "k-textbox" }) View CA
@Html.TextBoxFor(model => model.NumberOfLotsAffected, new { id = "txtNumberOfLotsAffected", @class = "k-textbox" })
@Html.TextBoxFor(model => model.NumberOfWafersAffected, new { id = "txtNumberOfWafersAffected", @class = "k-textbox" })
@Html.TextBoxFor(model => model.NumberOfDiesAffected, new { id = "txtNumberOfDiesAffected", @class = "k-textbox" })
@Html.TextBoxFor(model => model.DetailsFolder, new { id = "txtDetailsFolder", @class = "k-textbox", style = "width: 100%" })
@Html.TextAreaFor(model => model.IssueDescription, 12, 60, new { id = "txtIssueDescription", @class = "form-control", style = "font-size: 11px" })
@(Html.Kendo().Upload() .Name("files") .Async(a => a .Save("AttachSave", "MRB", new { mrbNumber = Model.MRBNumber }) .AutoUpload(true) ) .ShowFileList(false) .Events(events => events .Success("onFileUploadSuccess") .Upload("checkFileType") ) )
@(Html.Kendo().Grid() .Name("Attachments") .Columns(columns => { columns.Bound(a => a.AttachmentID).Visible(false); columns.Bound(a => a.MRBNumber).Visible(false); columns.Bound(a => a.FileName).Template(@ @Html.ActionLink(@item.FileName.ToString(), null)).Width("100px"); //.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("Delete").Click("DeleteAttachment")); columns.Command(command => command.Custom("View").Click("DownloadAttachment")); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:180px; width:100%; font-size: 10px" }) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .Model(model => { model.Id(p => p.AttachmentID); }) .PageSize(10) .Read(read => read.Action("Attachment_Read", "MRB", new { mrbNumber = Model.MRBNumber })) ) )
@*@Html.TextBoxFor(model => model.IssueDetectedDate, new { id = "txtIssueDetectedDate", @class = "k-textbox" })*@ @(Html.Kendo().DateTimePickerFor(model => model.IssueDetectedDate) .Name("txtIssueDetectedDate") //.Value() )
@(Html.Kendo().DateTimePickerFor(model => model.IssueStartDate) .Name("txtIssueStartDate") .Events(e => e.Change("IssueStartTimeChangeAlert")) )
@(Html.Kendo().DateTimePickerFor(model => model.IssueEndDate) .Name("txtIssueEndDate") .Events(e => e.Change("IssueEndTimeChangeAlert")) )
@Html.EditorFor(model => model.CustomerImpacted)
@(Html.Kendo().MultiSelect() .Name("RiskAssessmentIDs") .BindTo(new SelectList(ViewBag.RiskAssessments, "RiskAssessmentID", "RiskAssessmentName")) .Value(ViewBag.Nothing) )
@Html.TextAreaFor(model => model.Notes, 12, 50, new { id = "txtNotes", @class = "form-control", style = "font-size: 11px" })
@(Html.Kendo().Grid() .Name("ContainmentActions") .Columns(columns => { columns.Bound(l => l.ContainmentActionID).Visible(false); columns.Bound(l => l.ResponsibilityOwnerID).Visible(false); columns.Bound(l => l.CurrentResponsibilityOwnerID).Visible(false); columns.Bound(l => l.ContainmentAction); columns.Bound(l => l.ResponsibilityOwner).Width("150px"); ; ; columns.Bound(l => l.ECD).Format("{0:d}").Width("150px"); ; columns.Bound(l => l.ImplementedDate).Format("{0:d}").Width("150px"); columns.Command(c => c.Custom("Edit").Click("EditContainmentActionItem")).Width("90px"); // columns.Template(t => { }).HeaderTemplate("").ClientTemplate(@" // button edit // button delete").Width("150px"); columns.Template(t => { }).HeaderTemplate("").ClientTemplate(@" button delete").Width("150px"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Contianment Action")) .Editable(editable => editable.Mode(GridEditMode.InLine)) .HtmlAttributes(new { style = "width:100%; font-size: 12px" }) .Scrollable() .Sortable() .Filterable() //.Events(e => e.Edit("onContainmentEdit")) .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5) ) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(l => l.ContainmentActionID); model.Field(p => p.ContainmentActionID).Editable(false); model.Field(p => p.MRBNumber).DefaultValue(Model.MRBNumber);// Set the MRB Number as a default value for grid model field }) .PageSize(50) .Read(read => read.Action("GetContainmentActions", "MRB", new { mrbNumber = Model.MRBNumber })) //.Create(create => create.Action("InsertContainmentAction", "MRB")) //.Update(update => update.Action("UpdateContainmentAction", "MRB")) .Destroy(destroy => destroy.Action("DeleteContainmentAction", "MRB")) ) )
Add Disposition
@if ((bool)Session[GlobalVars.IS_ADMIN] && (Request.IsAuthenticated)) { Add MRB Flag/Hold to SPN }
@(Html.Kendo().Grid() .Name("Dispositions") .Columns(columns => { columns.Bound(l => l.DispositionID).Visible(false); columns.Bound(l => l.MRBNumber).Visible(false); columns.Bound(l => l.DispositionType).Width("70px"); columns.Bound(l => l.DispositionName).Width("150px"); ; //columns.Bound(l => l.CloseToQDBOption).ClientTemplate("#=CloseToQDBOption.CloseToQDBOption#").Width("120px"); columns.Bound(l => l.CloseToQDBOptionString).Width("120px"); columns.Bound(l => l.DispositionNotes); columns.Command(command => { command.Custom("Edit").Click("EditDisposition").HtmlAttributes(new { style = "font-size: 8px" }); command.Custom("Delete").Click("DeleteDisposition").HtmlAttributes(new { style = "font-size: 8px" }); ; } ).Width("150px"); //columns.Template(t => { }).HeaderTemplate("").ClientTemplate(@" //button edit //button delete").Width("100px"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Disposition Notes")) //.Editable(editable => editable.Mode(GridEditMode.InLine)) .HtmlAttributes(new { style = "height: 360px; width:100%; font-size: 10px" }) .Scrollable() .Sortable() .Filterable() //.Events(e => e.Edit("onDispositionEdit")) .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5)) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(l => l.DispositionID); model.Field(p => p.MRBNumber).DefaultValue(Model.MRBNumber);// Set the MRB Number as a default value for grid model field //model.Field(l => l.CloseToQDBOption).DefaultValue(new Fab2ApprovalSystem.ViewModels.CloseToQDBOptionViewModel() //{ // CloseToQDBOptionID = 0, // CloseToQDBOption = "No" //}); //model.Field(l => l.DispositionType).Editable(false); //model.Field(l => l.DispositionName).Editable(false); }) .PageSize(50) .Read(read => read.Action("GetDispostions", "MRB", new { mrbNumber = Model.MRBNumber })) //.Create(create => create.Action("InsertDisposition", "MRB")) //.Update(update => update.Action("UpdateDisposition", "MRB")) //.Events(e => e.RequestEnd("DispositionOnUpdate")) //.Destroy(destroy => destroy.Action("DeleteDisposition", "MRB")) ) )
@**@
   
@(Html.Kendo().Upload() .Name("Lotfile") .Messages(m => m.Select("Import Lots using an Excel file")) .Async(a => a.Save("ExcelLotOpen", "MRB", new { mrbNumber = Model.MRBNumber }).AutoUpload(true)) .ShowFileList(false) .Events(events => events.Success("onLotFileUploadSuccess").Error("onLotUploadError").Upload("onLotUpload")) ) @if (ViewBag.IsApprover == "true") { @**@ }     @(Html.Kendo().DropDownList() .Name("DispoTypes") .BindTo(new SelectList(ViewBag.DispoTypes, "DispositionType", "DispositionType")) .Value("1") )  
@(Html.Kendo().Grid() .Name("Lots") .Columns(columns => { columns.Bound(l => l.LotID).Visible(false); columns.Bound(l => l.LotNumber); columns.Bound(l => l.DieLotNumber); columns.Bound(l => l.WipPartNo); columns.Bound(l => l.DispoType).Width("50px"); ; columns.Bound(l => l.WaferCount); columns.Bound(l => l.DiePartNo); columns.Bound(l => l.DieCount); columns.Bound(l => l.SourceLot); columns.Bound(l => l.TotalCost); columns.Bound(l => l.ProductFamily).Width("50px"); columns.Bound(l => l.Gen).Width("50px"); columns.Bound(l => l.Hexsize).Width("50px"); columns.Bound(l => l.Voltage).Width("50px"); columns.Bound(l => l.Location).Width("50px"); columns.Bound(l => l.Status).Width("50px"); columns.Bound(l => l.QualityCode).Width("50px"); columns.Bound(l => l.LotID).Template(@ @Html.ActionLink(@item.LotNumber.ToString(), null)) .ClientTemplate("View").Title("History").Width("50px"); columns.Bound(l => l.LotID).Template(@ @Html.ActionLink(@item.LotNumber.ToString(), null)) .ClientTemplate("View").Title("Probe Results").Width("50px"); columns.Bound(l => l.LotID).Template(@ @Html.ActionLink(@item.LotNumber.ToString(), null)) .ClientTemplate("View").Title("Wafer Maps").Width("50px"); columns.Bound(l => l.LotID).Template(@ @Html.ActionLink(@item.LotNumber.ToString(), null)) .ClientTemplate("Show").Title("AVI").Width("50px"); columns.Bound(l => l.LotID).Template(@ @Html.ActionLink(@item.LotNumber.ToString(), null)) .ClientTemplate("Show").Title("Lot Data").Width("50px"); columns.Bound(p => p.OtherMRBs).ClientTemplate("#=buildMRBLinks(OtherMRBs)#"); //columns.Bound(l => l.LotDispositionsLinkedToLot).Width("100px"); columns.Bound(p => p.LotDispositionsLinkedToLot).ClientTemplate("#=buildLDLinks(LotDispositionsLinkedToLot)#"); //columns.Command(command => { command.Edit(); command.Destroy(); }).Width("200px"); columns.Template(t => { }).HeaderTemplate("").ClientTemplate(@" button edit button delete"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Lot")) .Editable(editable => editable.Mode(GridEditMode.InLine)) .Sortable() .Scrollable() //.Filterable() .HtmlAttributes(new { style = "height:325px; width:100%; font-size: 10px" }) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .Events(e => e.RequestEnd("UpdateLotWaferDieCount")) .Model(model => { model.Id(p => p.LotID); model.Field(p => p.LotID).Editable(false); model.Field(p => p.LotNumber).Editable(false); model.Field(p => p.DieLotNumber).Editable(false); model.Field(p => p.WipPartNo).Editable(false); model.Field(p => p.WaferCount).Editable(false); model.Field(p => p.DiePartNo).Editable(false); model.Field(p => p.DieCount).Editable(false); model.Field(p => p.SourceLot).Editable(false); model.Field(p => p.TotalCost).Editable(false); model.Field(p => p.ProductFamily).Editable(false); model.Field(p => p.Gen).Editable(false); model.Field(p => p.Hexsize).Editable(false); model.Field(p => p.Voltage).Editable(false); model.Field(p => p.Location).Editable(false); model.Field(p => p.Status).Editable(false); model.Field(p => p.QualityCode).Editable(false); model.Field(p => p.OtherMRBs).Editable(false); model.Field(p => p.LotDispositionsLinkedToLot).Editable(false); } ) .PageSize(50) .Read(read => read.Action("GetMRBLots", "MRB", new { mrbNumber = Model.MRBNumber })) .Update(update => update.Action("UpdateMRBLot", "MRB")) .Destroy(destroy => destroy.Action("DeleteMRBLot", "MRB")) .Events(e => e.Error("UpdateMRBLotError")) //.Create(create => create.Action("CreateLots", "MRB")) ) .Resizable(resize => resize.Columns(true)) .Events(e => e.Edit("onEdit")) .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5)) )
@if (ViewBag.IsApprover == "true") {
@Html.TextBoxFor(model => model.OwnerApprover, new { id = "OwnerApprover", @class = "k-textbox", style = "width:100%" })
@Html.TextBoxFor(model => model.PEApprover, new { id = "PEApprover", @class = "k-textbox", style = "width:100%" })
@Html.TextBoxFor(model => model.MfgEngineeringAppover, new { id = "MfgEngineeringAppover", @class = "k-textbox", style = "width:100%" })
@Html.TextBoxFor(model => model.OtherApprovers, new { id = "OtherApprovers", @class = "k-textbox", style = "width:100%" })
@Html.TextBoxFor(model => model.YEApprover, new { id = "YEApprover", @class = "k-textbox", style = "width:100%" })
@Html.TextBoxFor(model => model.QualityApprovers, new { id = "QualityApprovers", @class = "k-textbox", style = "width:100%" })
} else {
@Html.TextBoxFor(model => model.OwnerApprover, new { id = "OwnerApprover", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
@Html.TextBoxFor(model => model.PEApprover, new { id = "PEApprover", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
@Html.TextBoxFor(model => model.MfgEngineeringAppover, new { id = "MfgEngineeringAppover", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
@Html.TextBoxFor(model => model.OtherApprovers, new { id = "OtherApprovers", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
@Html.TextBoxFor(model => model.YEApprover, new { id = "YEApprover", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
@Html.TextBoxFor(model => model.QualityApprovers, new { id = "QualityApprovers", @class = "k-textbox", style = "width:100%", disabled = "disabled" })
}
@*
*@ } @Html.Partial("_DispositionType")