@model Fab2ApprovalSystem.ViewModels.ChangeControlViewModel @{ ViewBag.Title = "Edit"; } @using (Html.BeginForm()) { @Html.AntiForgeryToken()
Change Control @(Model.Status == 0 ? "" : " (Closed)")
@if (Model.RecordLockByName == null) {

Mode: [Readonly]

} else {

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

}
@(Html.Kendo().DropDownList() .Name("MeetingList") .BindTo(new SelectList(ViewBag.MeetingList, "MeetingID", "MeetingInfo")) .OptionLabel("Select") .HtmlAttributes(new { style ="width: 300px; font-size:10px" }) )
@(Model.Status == 1 ? "Completed Date:" + Model.ClosedDate.Value.ToString("MM/dd/yyyy") : (Model.Status == 2 ? "Cancelled Date:" + Model.ClosedDate.Value.ToString("MM/dd/yyyy") : ""))
Status: @(Model.Status == 0 ? "NA" : (Model.Status == 1 ? "Completed" : "Cancelled"))
@Html.TextBoxFor(model => model.PlanNumber, "P" + "{0:0000}", new { id = "txtPlanNumber", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue; width:100%" })
@Html.TextBoxFor(model => model.OwnerName, new { id = "txtOwner", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" }) @if (GlobalVars.IsAdminValueNotNull(Session)) { }
@(Html.Kendo().DropDownList() .Name("ChangeLevel") .DataTextField("Text") .DataValueField("Value") .BindTo(new List() { new SelectListItem() { Text = "Select", Value = "-1" }, new SelectListItem() { Text = "1", Value = "1" }, new SelectListItem() { Text = "2", Value = "2" } , new SelectListItem() { Text = "3", Value = "3" } } ) .Value(Model.ChangeLevel.ToString()) )
@(Html.Kendo().DropDownList() .Name("IsITAR") .DataTextField("Text") .DataValueField("Value") .BindTo(new List() { new SelectListItem() { Text = "Select", Value = "-1" }, new SelectListItem() { Text = "Yes", Value = "1" }, new SelectListItem() { Text = "No", Value = "0" } } ) .Value(Model.IsITAR.ToString()) )
Description of Change
@Html.TextAreaFor(model => model.ReasonForChange, 15, 30, new { id = "txtReasonForChange", @class = "form-control", Readonly = "Readonly", style = "background-color:lightblue; font-size: 11px;width: 100%;" })
Reason For Change
@Html.TextAreaFor(model => model.ChangeDescription, 15, 30, new { id = "txtChangeDescription", @class = "form-control", Readonly = "Readonly", style = "background-color:lightblue; font-size: 11px;width: 100%;" })
@**@ @**@ @**@ @**@
Affected by Change
Generations
@(Html.Kendo().MultiSelect() .Name("GenerationIDs") .BindTo(new SelectList(ViewBag.Generations, "GenerationID", "Generation")) .Value(ViewBag.Nothing) )
Notes:
@Html.TextAreaFor(model => model.Notes, 5, 50, new { id = "txtNotes", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue; width:100%;" })
Part Numbers
@*
Medical(A5) @(Html.Kendo().DropDownList() .Name("IsMedical") .DataTextField("Text") .DataValueField("Value") .BindTo(new List() { new SelectListItem() { Text = "Select", Value = "-1" }, new SelectListItem() { Text = "Yes", Value = "1" }, new SelectListItem() { Text = "No", Value = "0" } } ) .Value(Model.IsMedical.ToString()) )
Radhard(A6) @(Html.Kendo().DropDownList() .Name("IsRadHard") .DataTextField("Text") .DataValueField("Value") .BindTo(new List() { new SelectListItem() { Text = "Select", Value = "-1" }, new SelectListItem() { Text = "Yes", Value = "1" }, new SelectListItem() { Text = "No", Value = "0" } } ) .Value(Model.IsRadHard.ToString()) )
Automotive(A3/A4) @(Html.Kendo().DropDownList() .Name("IsAutomotive") .DataTextField("Text") .DataValueField("Value") .BindTo(new List() { new SelectListItem() { Text = "Select", Value = "-1" }, new SelectListItem() { Text = "Yes", Value = "1" }, new SelectListItem() { Text = "No", Value = "0" } } ) .Value(Model.IsAutomotive.ToString()) )
*@
Part Numbers List
@Html.TextAreaFor(model => model.PartNumbers, 5, 50, new { id = "txtPartNumber", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue; width:100%; height=100%" })
Tool Type
@Html.TextAreaFor(model => model.ToolTypes, 5, 50, new { id = "txtToolTypes", @class = "k-textbox", Readonly = "Readonly",style = "background-color:lightblue; width:100%;" })
Processes
@(Html.Kendo().MultiSelect() .Name("ProcessIDs") .BindTo(new SelectList(ViewBag.Processes, "ProcessID", "Process")) .Value(ViewBag.Nothing) )
Logistics
@(Html.Kendo().MultiSelect() .Name("LogisticsIDs") .BindTo(new SelectList(ViewBag.Logistics, "LogisticsID", "Logistics")) .Value(ViewBag.Nothing) )
Documents Attachments
@(Html.Kendo().Grid() .Name("ChangeControlAttachmentGrid") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.FileGUID).Visible(false); columns.Bound(a => a.FileName).Template(@ @Html.ActionLink(@item.FileName.ToString(), null)).Width("100px"); columns.Bound(a => a.Title).Width("300px"); columns.Bound(a => a.UploadedByName).Width("50px"); columns.Bound(a => a.UploadDateTime).Format("{0:MM/dd/yy hh:mm:ss}").Width("50px"); columns.Command(c => c.Custom("View Doc").Click("DownloadCCAttachment")).Width("100px"); ; }) .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.UploadDateTime).Editable(false); model.Field(a => a.UploadedByName).Editable(false); model.Field(a => a.FileName).Editable(false); }) .PageSize(50) .Read(read => read.Action("GetCCAttachments", "ChangeControl", new { planNumber = Model.PlanNumber })) ) ) }
Decision Summary List
@(Html.Kendo().Grid() .Name("DecisionSummaryList") .Columns(columns => { columns.Bound(a => a.PCRB).Width("100px"); columns.Bound(a => a.MeetingDate).Width("100px"); columns.Bound(a => a.DecisionNotes).ClientTemplate("#=ProcessLinkBreaks(DecisionNotes)#").Width("500px"); columns.Bound(a => a.ECNLinks).ClientTemplate("#=DisplayECNLinks(ECNLinks)#").Width("100px"); columns.Bound(a => a.LotDispoLinks).ClientTemplate("#=DisplayLotDispoLinks(LotDispoLinks)#").Width("100px"); }) .Resizable(resize => resize.Columns(true)) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:125; width:100%; font-size: 11px; valign:top" }) .DataSource(dataSource => dataSource .Ajax() //.Batch(false) .ServerOperation(false) .Model(model => { //model.Id(p => p.ID); }) .PageSize(50) .Read(read => read.Action("GetMeetingDecisionSummaryList", "ChangeControl", new { planNumber = Model.PlanNumber })) ) )
Action Items
@(Html.Kendo().Grid() .Name("MeetingActionItemsAll") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.MeetingID).Visible(false); columns.Bound(a => a.PCRB).Width("50px"); columns.Bound(a => a.ActionItemName).Width("300px"); columns.Bound(a => a.ResponsiblePerson).Width("100px"); columns.Bound(a => a.Gating).Width("50px"); columns.Bound(a => a.DueDate).Width("50px").Format("{0:MM/dd/yy}").Width("50px"); columns.Bound(a => a.Updates).Width("200px"); columns.Bound(a => a.ClosedStatus).ClientTemplate("").Width("50px"); columns.Bound(a => a.ClosedDate).Width("50px").Format("{0:MM/dd/yy}").Width("150px"); columns.Bound(a => a.FileName).Width("100px"); columns.Command(c => c.Custom("View Doc").Click("DownloadActionItemAttachment")).Width("75px"); }) .Editable(editable => editable.Mode(GridEditMode.InLine)) .HtmlAttributes(new { style = "height: 500px;" }) .Scrollable() .Resizable(resize => resize.Columns(true)) .Sortable() .Pageable(pageable => pageable .Refresh(true) .PageSizes(true) .ButtonCount(5)) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(p => p.ID); model.Field(a => a.MeetingID).Editable(false); model.Field(a => a.PCRB).Editable(false); model.Field(a => a.ActionItemName).Editable(false); model.Field(a => a.ResponsiblePerson).Editable(false); model.Field(a => a.Gating).Editable(false); model.Field(a => a.DueDate).Editable(false); model.Field(a => a.ClosedDate).Editable(false); }) .PageSize(50) .Read(read => read.Action("GetMeetingActionItems_All", "ChangeControl", new { planNumber = Model.PlanNumber })) ) )
} @Html.Partial("_CCReassignOwner")