@using OSS.Models @model Attachments @{ /**/ Layout = "~/Views/Shared/_Layout.cshtml"; }

  COMPANY Attachments

@using (Html.BeginForm("PostAppoloadedFileExtensionDeffered", "NewCOI", FormMethod.Post, new { id = "social", @novalidate = "novalidate", @class = "needs-validation text-left section social", enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
@ViewBag.Error

 Upload Attachments


Preview your application form for signature and upload to the system

@Html.DropDownListFor(m => m.AttachmentName, new List{ new SelectListItem{ Text="Please select ", Value = "" ,Selected= true}, new SelectListItem{ Text="Resubmit Application Letter", Value = "Application Letter" }, new SelectListItem{ Text="Resubmit Application form", Value = "Application form" }, new SelectListItem{ Text="Resubmit TIC Certificate", Value = "TIC Certificate" }, new SelectListItem{ Text="Resubmit Brela Offical Search", Value = "Brela Offical Search" }, new SelectListItem{ Text="Resubmit Progresss Report", Value = "Progresss Report" }, new SelectListItem{ Text="Resubmit Pictures of your Project", Value = "Pictures of your Project" }, new SelectListItem{ Text="Others", Value = "Others" }, }, new { @class = "selectpicker form-control", @id = "CompanyType", @name = "CompanyType", @placeholder = "Sex Type", @required = "true", @value = "Please Select" })
Please Select.
@Html.TextBoxFor(m => m.UploadedPdf, new { @id = "UploadedPdf", @name = "UploadedPdf", @placeholder = "Uplaod", @class = "form-control", @required = "true", value = "", @type = "file" })
Please Select File.
               

 List of uploaded dcoument


@(Html.DevExtreme().DataGrid () .DataSource(ds => ds.WebApi() .RouteName("CompanyProfile") .LoadAction("GetApplicationAttachments") .DeleteAction("Delete") .Key("AttachmentID") //.InsertAction("Post") .LoadParams(new { ApplicationCode = Session["ProjectCode"].ToString() }) ) .RemoteOperations(true) .AllowColumnResizing(true) .ShowRowLines(true) .Columns(columns => { columns.AddFor(m => m.AttachmentID).Visible(false); columns.AddFor(m => m.AttachmentName).Visible(true).SortOrder(SortOrder.Desc); columns.AddFor(m => m.UploadedDate).Visible(false).AllowEditing(false); columns.AddFor(m => m.AttachmentID).Width(180).DataField("EvaludationStatus").Caption("Preview").CellTemplate(@ <% if(data.AttachmentName!= null) {%>
Preview
<% } %>
); }).SearchPanel(f => f.Visible(true) .SearchVisibleColumnsOnly(true) .HighlightSearchText(true) ).Paging(p => p.PageSize(10)) .HeaderFilter(f => f.Visible(false)) .SearchPanel(t => t.SearchVisibleColumnsOnly(true).Visible(true)) .Editing(e => e .AllowAdding(false) .AllowDeleting(true) .AllowAdding(false).Mode(GridEditMode.Popup) .Popup(p => p .Title("Company Profile") .ShowTitle(true) .Width(800) .Height(300) .Position(pos => pos .My(HorizontalAlignment.Center, VerticalAlignment.Center) .At(HorizontalAlignment.Center, VerticalAlignment.Center) .Of(new JS("window")) ) ) .UseIcons(true) .Form(f => f .ID("GetControlNo") ) ) )


}