This commit is contained in:
mustafa.juma 2025-11-24 07:05:25 +03:00
parent d65a459b36
commit 0cc9917de2
12 changed files with 38 additions and 34 deletions

Binary file not shown.

View File

@ -138,38 +138,38 @@ namespace OSS.Controllers
} }
public ActionResult ValidateAttachments() public ActionResult ValidateAttachments()
{ {
// var ProjectCode = Session["ProjectCode"].ToString(); var ProjectCode = Session["ProjectCode"].ToString();
// var checkApplicationForm = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Application Form"); var checkApplicationForm = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Application Form");
// if (checkApplicationForm == null) if (checkApplicationForm == null)
// { {
// TempData["error"] = " Please upload Application form"; TempData["error"] = " Please upload Application form";
// return RedirectToAction("AttachmentsNew"); return RedirectToAction("AttachmentsNew");
// } }
// var checkAttachmentBank = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Bank Statement"); var checkAttachmentBank = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Bank Statement");
// if (checkAttachmentBank == null) if (checkAttachmentBank == null)
// { {
// TempData["error"] = " Please upload Bank Statement"; TempData["error"] = " Please upload Bank Statement";
// return RedirectToAction("AttachmentsNew"); return RedirectToAction("AttachmentsNew");
// } }
// var checkAttachmentBoard = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Board Resolution"); var checkAttachmentBoard = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Board Resolution");
// if (checkAttachmentBoard == null) if (checkAttachmentBoard == null)
// { {
// TempData["error"] = " Please upload Board Resolution"; TempData["error"] = " Please upload Board Resolution";
// return RedirectToAction("AttachmentsNew"); return RedirectToAction("AttachmentsNew");
// } }
// var checkAttachmentBusinesP = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Business Plan"); var checkAttachmentBusinesP = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "Business Plan");
// if (checkAttachmentBusinesP == null) if (checkAttachmentBusinesP == null)
// { {
// TempData["error"] = " Please upload Business Plan"; TempData["error"] = " Please upload Business Plan";
// return RedirectToAction("AttachmentsNew"); return RedirectToAction("AttachmentsNew");
// } }
// var checkAttachmentInc = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "INCORPORATION"); var checkAttachmentInc = myContext.AttachmentsList.SingleOrDefault(t => t.ProjectCode == ProjectCode && t.AttachmentName == "INCORPORATION");
// if (checkAttachmentInc == null) if (checkAttachmentInc == null)
// { {
// TempData["error"] = " Please upload Certificate of Incorporation"; TempData["error"] = " Please upload Certificate of Incorporation";
// return RedirectToAction("AttachmentsNew"); return RedirectToAction("AttachmentsNew");
// } }
return RedirectToAction("PickUpOfficeNew"); return RedirectToAction("PickUpOfficeNew");
} }

View File

@ -219,7 +219,7 @@
<% if(data.PaymentStatus == true) <% if(data.PaymentStatus == true)
{%> {%>
<a href="@Url.Action("ProcessReceipt", "NewCOI")?ID=<%= data.InvoiceID %>" target="_blank" class="btn btn-outline-success btn-sm"> <a href="@Url.Action("ProcessReceipt", "NewCOI")?ID=<%= data.InvoiceID %>" target="_blank" class="btn btn-outline-success btn-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg> Download <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg> Receipt
</a> </a>
<% } <% }
else else

View File

@ -67,7 +67,7 @@
<div class="row"> <div class="row">
<div class="col-md-7">Preview your application form for signature and upload to the system</div> <div class="col-md-7">Preview your application form for signature and upload to the system</div>
<div class="col-md-5"> <div class="col-md-5">
<a class="btn btn-success btn-lg mt-2 text-right" href="/NewCOI/BrowseApplicantDocumentsNew" 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> <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>
<div class="col-md-12"><hr /></div> <div class="col-md-12"><hr /></div>
<div class="col-md-6"> <div class="col-md-6">

View File

@ -51,7 +51,10 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="col-md-4"> <div class="col-md-4">
<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> <a class="btn btn-default btn-lg mt-2 " href="@Url.Action("Regenerate", "NewCOI", new { Id = Session["ProjectCode"] })" target="_blank">Print invoice </a> @if (Session["ProjectCode"] != null)
{
<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> <a class="btn btn-default btn-lg mt-2 " href="@Url.Action("Regenerate", "NewCOI", new { Id = Session["ProjectCode"] })" target="_blank">Print invoice </a>
}
</div> </div>
</div> </div>

View File

@ -185,6 +185,7 @@
<label for="validationCustom05" class="text-black">Currency</label> <label for="validationCustom05" class="text-black">Currency</label>
@Html.DropDownListFor(m => m.Currency, new List<SelectListItem> { @Html.DropDownListFor(m => m.Currency, new List<SelectListItem> {
//new SelectListItem{ Text="List of allowed currency", Value = "", Selected= true}, //new SelectListItem{ Text="List of allowed currency", Value = "", Selected= true},
new SelectListItem{ Text="TZS", Value = "TZS" }, new SelectListItem{ Text="TZS", Value = "TZS" },
// new SelectListItem{ Text="USD", Value = "USD" }, // new SelectListItem{ Text="USD", Value = "USD" },
}, new { @class = "selectpicker form-control", @id = "Currency", @required = "true" }) }, new { @class = "selectpicker form-control", @id = "Currency", @required = "true" })

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.