@model Fab2ApprovalSystem.Models.PartsRequest @{ ViewBag.Title = "Parts Request - Approval"; } @using (Html.BeginForm()) {
@if (Convert.ToBoolean(ViewBag.IsApprover)) { if (Convert.ToBoolean(ViewBag.AllowReject)) { } }
New/Repair Spare Parts Request
@Html.TextBoxFor(model => model.PRNumber, @Functions.ReturnPartsRequestNoStringFormat(@Model.PRNumber), new { id = "txtPRNumber", @class = "k-textbox form-control", Readonly = "Readonly", style = "background-color:lightblue" })
@Html.TextBoxFor(model => model.Title, new { id = "txtTitle", @class = "k-textbox form-control", Readonly = "Readonly" })
@Html.TextBoxFor(model => model.SubmitDate, "{0:MM/dd/yyyy}", new { id = "txSubmitDate", @class = "k-textbox", disabled = "disabled", style = "background-color:lightblue" })
@(Html.Kendo().DropDownList() .Name("TechLeadID") .BindTo(new SelectList(ViewBag.UserList, "UserID", "FullName")) .OptionLabel("Select") .Value(Model.TechLeadID.ToString()) .HtmlAttributes(new { disabled = "disabled" }) )
@(Html.Kendo().DropDownList() .Name("OriginatorID") .BindTo(new SelectList(ViewBag.UserList, "UserID", "FullName")) .Value(Model.OriginatorID.ToString()) .HtmlAttributes(new { disabled = "disabled" }) )
@(Html.Kendo().DropDownList() .Name("RequestorID") .BindTo(new SelectList(ViewBag.UserList, "UserID", "FullName")) .OptionLabel("Select") .Value(Model.RequestorID.ToString()) .HtmlAttributes(new { disabled = "disabled" }) )
@Html.TextBoxFor(model => model.Status, new { id = "txtStatus", @class = "k-textbox", Readonly = "Readonly", style = "background-color:lightblue" })
@(Html.Kendo().Grid() .Name("Attachments") .Columns(columns => { columns.Bound(a => a.AttachmentID).Visible(false); columns.Bound(a => a.PRNumber).Visible(false); columns.Bound(a => a.FileName).Template(@ @Html.ActionLink(@item.FileName.ToString(), null)); 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")); }) .Sortable() .Scrollable() .HtmlAttributes(new { style = "height:100px; width:100%; font-size: 10px" }) .DataSource(dataSource => dataSource .Ajax() .ServerOperation(false) .Events(events => events.Error("ErrorHandler")) .Model(model => { model.Id(p => p.AttachmentID); }) .PageSize(50) .Read(read => read.Action("Attachment_Read", "PartsRequest", new { PRNumber = Model.PRNumber })) ) )
Description
@Html.TextAreaFor(model => model.Description, 10, 60, new { id = "txtDescription", @class = "form-control", style = "font-size: 11px;width: 100%;", disabled = "disabled" })
@Html.Partial("_ApproversListPartial") } @Html.Partial("_ApprovalLogPartial")