tiseza_oss_live/Views/NewCOI/AttachmentsNew.cshtml

264 lines
47 KiB
Plaintext

@using OSS.Models
@model Attachments
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/Content/assets/css/tables/table-basic.css" rel="stylesheet" type="text/css" />
<link href="~/Content/assets/css/components/tabs-accordian/custom-tabs.css" rel="stylesheet" type="text/css" />
<div class="col-lg-12 layout-spacing">
<div class="statbox widget box box-shadow">
<div class="widget-header">
<div class="row">
<div class="col-md-12 col-sm-12 col-12">
<br />
<h5 class="text-primary"> &nbsp; COMPANY <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>Attachments </h5>
<hr />
</div>
</div>
<div class="widget-content widget-content-area border-top-tab">
<ul class="nav nav-tabs mb-3 mt-3" id="borderTop" role="tablist">
<li class="nav-item">
<a class="nav-link" id="" data-toggle="" role="tab" href="@Url.Action("RedirectCompany","NewCOI")" aria-controls="border-top-home" aria-selected="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg> &nbsp; Company Details </a>
</li>
<li class="nav-item">
<a class="nav-link" id="border-top-profile-tab" re href="@Url.Action("RedirectProject","NewCOI")" role="tab" aria-controls="border-top-profile" aria-selected="false"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>Project Details </a>
</li>
<li class="nav-item">
<a class="nav-link" id="border-top-profile-tab" re href="@Url.Action("RedirectFinancing","NewCOI")" role="tab" aria-controls="border-top-profile" aria-selected="false"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-paperclip"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>Financing</a>
</li>
<li class="nav-item">
<a class="nav-link active" id="border-top-profile-tab" re href="@Url.Action("CompanyAttachments","Company")" role="tab" aria-controls="border-top-profile" aria-selected="false"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-paperclip"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg> Attachments</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" id="border-top-profile-tab" re href="@Url.Action("AttachmentsAmendments","Company")" role="tab" aria-controls="border-top-profile" aria-selected="false"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-shopping-cart"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg> Pick-up Office</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" id="border-top-profile-tab" re href="@Url.Action("PostCMInvoice","PublicCompany")" role="tab" aria-controls="border-top-profile" aria-selected="false"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-paperclip"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>Payment</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="border-top-home" role="tabpanel" aria-labelledby="border-top-home-tab">
@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()
<div class="d-flex justify-content-left">
</div>
<div class="info" id="showActivityForm">
<div style="color:red">@ViewBag.Error</div>
<br />
<h4 class="text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line></svg> &nbsp;Upload Attachments</h4>
<hr />
<div class="row">
<div class="col-md-11 mx-auto">
<div class="row">
<div class="col-md-7">Preview your application form for signature and upload to the system</div>
<div class="col-md-5">
<a class="btn btn-success btn-lg mt-2 text-right" href="https://www.tiseza.go.tz/uploads/documents/en-1755237316-TISEZA%20REGISTRATION%20FORM.pdf" target="_blank"> <svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="#417505" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect></svg> Print Application Form </a>
</div>
<div class="col-md-12"><hr /></div>
<div class="col-md-6">
<label for="validationCustom05" class="text-black">Type of Attachments</label>
@Html.DropDownListFor(m => m.AttachmentName, new List<SelectListItem>{
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" })
<div class="invalid-feedback">
Please Select.
</div>
</div>
<div class="col-md-6">
<label for="validationCustom05" class="text-black">Upload document</label>
@Html.TextBoxFor(m => m.UploadedPdf, new { @id = "UploadedPdf", @name = "UploadedPdf", @placeholder = "Uplaod", @class = "form-control", @required = "true", value = "", @type = "file" })
<div class="invalid-feedback">
Please Select File.
</div>
</div>
</div>
<div class="d-flex justify-content-end">
<button class="btn btn-primary btn-lg mt-2 text-center" type="submit">Upload</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
</div>
</div>
<br />
<div class="widget-content widget-content-area">
<h4 class="text-primary"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line></svg> &nbsp;List of uploaded dcoument</h4>
<div class="table-responsive">
<div>
<br />
@(Html.DevExtreme().DataGrid<OSS.Models.Attachments>
()
.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(@<text>
<% if(data.AttachmentName!= null)
{%>
<a href="http://41.59.86.37/Attachments/<%= data.AttachmentPath%>" target="_blank"><div class="btn btn-outline-primary">Preview</div></a>
<% }
%>
</text>);
}).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")
)
)
)
</div>
</div>
</div>
</div>
<br />
<hr />
}
</div>
</div>
</div>
<script type="text/javascript">
$('#ActivityTypeId').change(function () {
var selectedRegion = $("#ActivityTypeId").val();
var selectedDistrict = $('#ActivityClassId');
selectedDistrict.empty();
if (selectedRegion != null && selectedRegion != '') {
$.getJSON('@Url.Action("GetActiv")', { ActivityTypeCode: selectedRegion }, function (district) {
if (district != null && !jQuery.isEmptyObject(district))
{
selectedDistrict.append($('<option/>', {
value: "",
text: "Select Activity"
}));
$.each(district, function (index,district) {
selectedDistrict.append($('<option/>', {
value: district.Value,
text: district.Text
}));
});
};
});
}
});
</script>
<div class="col-md-11 mx-auto">
<div class="row">
<div class="col-md-6">
<div class="d-flex justify-content-left">
<a class="btn btn-primary btn-lg mt-2 " href="/NewCOI/RedirectFinancing/">Previous</a>
</div>
</div>
<div class="col-md-6">
<div class="d-flex justify-content-end">
<a class="btn btn-primary btn-lg mt-2 " href="/NewCOI/ValidateAttachments">Go to payment</a>
</div>
</div>
</div>
<br />
</div>