@model Fab2ApprovalSystem.Models.CCMeeting @{ ViewBag.Title = "Meeting"; } @using (Html.BeginForm()) { if (Model.Status == 0) {
@**@
} else {
}
Meeting Summary (@(Model.Decision == -1 ? "Open": (Model.Decision == 0 ? "Closed- NotApproved" : "Closed-Approved")))
@*
@(Html.Kendo().DropDownList() .Name("MeetingList") .BindTo(new SelectList(ViewBag.MeetingList, "MeetingID", "MeetingInfo")) .OptionLabel("Select") .HtmlAttributes(new { style = "width: 300px; font-size:10px" }) )
*@
@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.ChangeLevel, new { id = "txtChangeLevel", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue;width:100%" })
@*@Html.TextBoxFor(model => model.PCRB, new { id = "txtPCRB", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })*@ @(Html.Kendo().MultiSelect() .Name("PCRValueIDs") .BindTo(new SelectList(ViewBag.PCRValues, "PCRValueID", "PCRValueName")) .Value(ViewBag.Nothing) )
@Html.TextBoxFor(model => model.MeetingDate, "{0:MM/dd/yyy}", new { id = "txtMeetingDate", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
Attendees
@(Html.Kendo().Grid() .Name("MeetingAttendees") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.MeetingID).Visible(false); columns.Bound(a => a.AttendeeName).Width("300px"); columns.Bound(a => a.JobTitle).Width("100px"); columns.Bound(a => a.Location).Width("200px"); // columns.Command(c => c.Destroy()).Width("40px"); }) //.ToolBar(toolbar => toolbar.Create().Text("Add Item")) .Sortable() .Scrollable() .Resizable(resize => resize.Columns(true)) .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.MeetingID).DefaultValue(Model.MeetingID); model.Field(a => a.JobTitle).Editable(false); }) .PageSize(50) .Read(read => read.Action("GetMeetingAttendees", "ChangeControl", new { meetingID = Model.MeetingID })) ) )
@(Html.Kendo().Grid() .Name("MeetingAttachmentGrid") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.MeetingID).Visible(false); columns.Bound(a => a.FileGUID).Visible(false); columns.Bound(a => a.FileName).Width("100px"); columns.Bound(a => a.Title).Width("100px"); columns.Bound(a => a.UploadedByName).Width("50px").Title("Uploaded By"); columns.Bound(a => a.UploadDateTime).Format("{0:MM/dd/yy hh:mm:ss}").Width("50px").Title("Uploaded Date"); ; //columns.Command(c => c.Edit()).Width("80px"); //columns.Command(c => c.Destroy()).Width("40px"); columns.Command(c => c.Custom("View Doc").Click("DownloadMeetingAttachment")).Width("40px"); //columns.Command(c => c.Custom("Upload Doc").Click("UploadMeetingAttachment")).Width("70px"); }) .Events(e => e.DataBound("onDataBoundAttachmentGrid")) .Resizable(resize => resize.Columns(true)) .ToolBar(toolbar => toolbar.Create().Text("Add Item")) .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.MeetingID).DefaultValue(Model.MeetingID); 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("GetMeetingAttachments", "ChangeControl", new { meetingID = Model.MeetingID })) .Create(create => create.Action("InsertMeetingAttachmentItemAttrib", "ChangeControl")) //.Destroy(destroy => destroy.Action("DeleteMeetingAttachment", "ChangeControl")) //.Update(update => update.Action("UpdateMeetingAttachmentAttrib", "ChangeControl")) ) )
Decisions:    Approved    Not Approved
@(Html.Kendo().Grid() .Name("DecisionSummary") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.DecisionNotes).ClientTemplate("#=changeNewLine(DecisionNotes)#").Width("500px"); ; columns.Bound(a => a.ECNLinks).ClientTemplate("#=buildECNLinks(ECNLinks)#").Width("100px"); columns.Bound(a => a.LotDispoLinks).ClientTemplate("#=buildLotDispoLinks(LotDispoLinks)#").Width("100px"); //columns.Command(c => c.Edit()).Width("80px"); //columns.Command(c => c.Destroy()).Width("40px"); columns.Command(c => c.Custom("Edit ECN-LotDispo Links").Click("EditECNLotDispoLinks")).Width("70px"); }) //.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.MeetingID).DefaultValue(Model.MeetingID); model.Field(a => a.ECNLinks).Editable(false); model.Field(a => a.LotDispoLinks).Editable(false); }) .PageSize(50) .Read(read => read.Action("GetDecisionsSummaryList", "ChangeControl", new { meetingID = Model.MeetingID })) //.Create(create => create.Action("InsertDecisionsSummary", "ChangeControl")) //.Destroy(destroy => destroy.Action("DeleteDecisionsSummary", "ChangeControl")) //.Update(update => update.Action("UpdateDecisionsSummary", "ChangeControl")) ) )
Notes
@Html.TextAreaFor(model => model.Notes, 8, 50, new { id = "txtNotes", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue;width:100%;" })
Action Items
@(Html.Kendo().Grid() .Name("MeetingActionItems") .Columns(columns => { columns.Bound(a => a.ID).Visible(false); columns.Bound(a => a.MeetingID).Visible(false); 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("150px"); if (GlobalVars.IsAdminValueNotNull(Session)) columns.Command(c => c.Custom("Edit").Click("EditMeetingActionItem")).Width("70px"); //columns.Command(c => c.Destroy()).Width("40px"); }) .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.MeetingID).DefaultValue(Model.MeetingID); }) .PageSize(50) .Read(read => read.Action("GetMeetingActionItems", "ChangeControl", new { meetingID = Model.MeetingID })) //.Create(create => create.Action("InsertMeetingActionItem", "ChangeControl")) //.Destroy(destroy => destroy.Action("DeleteMeetingActionItem", "ChangeControl")) //.Update(update => update.Action("UpdateMeetingActionItem", "ChangeControl")) ) )
}