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

  COMPANY Attachments

@using (Html.BeginForm("PostAppoloadedFile", "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="Application Form", Value = "Application Form" }, new SelectListItem{ Text="Application Letter", Value = "Application Letter" }, new SelectListItem{ Text="Bank Statement", Value = "Bank Statement" }, new SelectListItem{ Text="Board Resolution", Value = "Board Resolution" }, new SelectListItem{ Text="Business Plan", Value = "Business Plan" }, new SelectListItem{ Text="CERT. OF INCORPORATION", Value = "INCORPORATION" }, new SelectListItem{ Text="Evidence of Land", Value = "EVIDENCE OF LAND" }, new SelectListItem{ Text="Memorandum", Value = "MEMORANDUM" }, new SelectListItem{ Text="TIN Certificate", Value = "TIN CERTIFICATE" }, 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") ) ) )


}