353 lines
17 KiB
Plaintext
353 lines
17 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="~/Content/plugins/table/datatable/datatables.css">
|
|
<link rel="stylesheet" type="text/css" href="~/Content/plugins/table/datatable/custom_dt_html5.css">
|
|
<link rel="stylesheet" type="text/css" href="~/Content/plugins/table/datatable/dt-global_style.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 />
|
|
<h4 class="text-primary font-weight-bold"> PROJECTS <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> New Certificate </h4>
|
|
<hr class="text-primary">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
|
|
|
|
<div class="widget-content widget-content-area br-6">
|
|
|
|
|
|
|
|
<!--<div class="d-flex justify-content-end">
|
|
<a href="https://teiw.tic.go.tz" class="btn btn-info btn-lg mt-2 text-right" type="submit">Click here to apply for New Project. This will direct to TIC Single Window For Investment, you will register and apply for New Project </a>
|
|
</div>-->
|
|
|
|
<div class="d-flex justify-content-end">
|
|
<a href="/NewCOI/LoadgeNewCOI/" class="btn btn-info btn-lg mt-2 text-right" type="submit">Apply for New </a>
|
|
</div>
|
|
|
|
|
|
|
|
<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> Lodged Applications</h4>
|
|
|
|
<hr class="text-black/ ">
|
|
|
|
<br />
|
|
@(Html.DevExtreme().DataGrid<OSS.Models.ApplicationManager>
|
|
()
|
|
.DataSource(ds => ds.WebApi()
|
|
.RouteName("CompanyProfile")
|
|
.LoadAction("GetProjectsByUser")
|
|
.Key("ProjectCode")
|
|
//.InsertAction("Post")
|
|
.LoadParams(new { Username = (Session["CompanyEmail"] as string ?? string.Empty) })
|
|
)
|
|
.RemoteOperations(true)
|
|
.AllowColumnResizing(true)
|
|
.ShowRowLines(true)
|
|
.Sorting(sorting => sorting.Mode(GridSortingMode.Multiple))
|
|
|
|
|
|
.Columns(columns =>
|
|
{
|
|
columns.AddFor(m => m.ApplicationID).SortOrder(SortOrder.Desc).Visible(false).SortOrder(SortOrder.Desc);
|
|
columns.AddFor(m => m.ProjectName).Visible(true).SortOrder(SortOrder.Desc);
|
|
columns.AddFor(m => m.CreatedDate).Visible(true).AllowEditing(false);
|
|
columns.AddFor(m => m.ControlNo).Width(200).Caption("Control Number").CellTemplate(@<text>
|
|
<% if( data.ControlNo =="0" || data.ControlNo == null )
|
|
{%>
|
|
<a href="/NewCOI/RegenerateCN?TrackingNo=<%= data.ProjectCode%>" ><div class="btn btn-outline-danger">Regerate Control Number</div></a>
|
|
|
|
<% }
|
|
|
|
|
|
if( data.ControlNo !=null && data.ControlNo != "0" )
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-danger"><%= data.ControlNo%></div></a>
|
|
<% }
|
|
|
|
|
|
%>
|
|
</text>);
|
|
columns.AddFor(m => m.PaymentStatus).DataField("PaymentStatus").Caption("Print Receipt").CellTemplate(@<text>
|
|
<% if( data.PaymentStatus==null)
|
|
{%>
|
|
<a href="#"><div ></div></a>
|
|
<% }
|
|
if( data.PaymentStatus=="Paid")
|
|
{%>
|
|
<a href="/NewCOI/ProcessReceipt?ID=<%= data.InvoiceID%>"><div class="btn btn-outline-black"><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-printer"><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></div></a>
|
|
<% }
|
|
|
|
|
|
%>
|
|
</text>);
|
|
columns.AddFor(m => m.Expiredate).Visible(false);
|
|
columns.AddFor(m => m.PaymentStatus).Width(200).DataField("PaymentStatus").Caption("Payment Status").CellTemplate(@<text>
|
|
<% if( data.PaymentStatus==null)
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-danger">Waiting Payment</div></a>
|
|
<% }
|
|
if( data.PaymentStatus=="Paid")
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-success">Payment Received</div></a>
|
|
<% }
|
|
|
|
|
|
%>
|
|
</text>);
|
|
columns.AddFor(m => m.PaymentStatus).DataField("PaymentStatus").Caption("Invoice").CellTemplate(@<text>
|
|
<%
|
|
if(data.ControlNo!=null)
|
|
{%>
|
|
<a href="/NewCOI/Regenerate?Id=<%= data.ProjectCode%>" target="_blank"><div class="btn btn-outline-danger"><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-file-plus"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></svg></div></a>
|
|
<% }
|
|
|
|
|
|
%>
|
|
</text>);
|
|
columns.AddFor(m => m.EvaluationStatus).Width(100).DataField("EvaludationStatus").Caption("Progress").CellTemplate(@<text>
|
|
<% if(data.EvaluationStatus==null)
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-danger">0%</div></a>
|
|
<% }
|
|
if(data.EvaluationStatus=="Officers")
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-danger">10%</div></a>
|
|
<% }
|
|
if(data.EvaluationStatus=="DIF")
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-danger">80%</div></a>
|
|
<% }
|
|
if(data.EvaluationStatus=="Deffered")
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-danger">80%</div></a>
|
|
<% }
|
|
if(data.EvaluationStatus=="Managers")
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-danger">60%</div></a>
|
|
<% }
|
|
if(data.EvaluationStatus=="Approved")
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-success">100%</div></a>
|
|
<% }
|
|
|
|
%>
|
|
</text>);
|
|
|
|
|
|
columns.AddFor(m => m.EvaluationStatus).Width(220).DataField("EvaluationStatus").Caption("Comments").CellTemplate(@<text>
|
|
<% if(data.EvaluationStatus!="Deffered" && data.PaymentStatus=="Paid" && data.EvaluationStatus!="Approved" )
|
|
{%>
|
|
<a href="#"><div class="btn btn-outline-primary">On Progress</div></a>
|
|
<% }
|
|
if(data.EvaluationStatus=="Deffered" && data.PaymentStatus=="Paid")
|
|
{%>
|
|
<a href="/NewCOI/ApplicationStatus?Id=<%= data.ApplicationID%>"><div class="btn btn-outline-danger">Returned for correction</div></a>
|
|
<% }
|
|
|
|
if(data.EvaluationStatus=="Approved")
|
|
{%>
|
|
<a href="/NewCOI/ApplicationStatus?Id=<%= data.ApplicationID%>"><div class="btn btn-outline-primary">View Details</div></a>
|
|
<% }
|
|
%>
|
|
</text>);
|
|
|
|
}).SearchPanel(f => f.Visible(true)
|
|
.SearchVisibleColumnsOnly(true)
|
|
.HighlightSearchText(true)
|
|
|
|
).Paging(p => p.PageSize(10))
|
|
.HeaderFilter(f => f.Visible(true))
|
|
.SearchPanel(t => t.SearchVisibleColumnsOnly(true).Visible(true))
|
|
.Editing(e => e
|
|
.AllowAdding(false)
|
|
.AllowUpdating(false)
|
|
|
|
|
|
.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")
|
|
|
|
.ColCount(2)
|
|
.Items(items =>
|
|
{
|
|
items.AddGroup()
|
|
|
|
.Items(groupItems =>
|
|
{
|
|
|
|
|
|
groupItems.AddSimpleFor(m => m.ProjectName);
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
|
|
|
|
});
|
|
|
|
items.AddGroup()
|
|
.Items(groupItems =>
|
|
{
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
groupItems.AddSimpleFor(m => m.ProjectName);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
})
|
|
|
|
)
|
|
)
|
|
)
|
|
</div>
|
|
</div>
|
|
|
|
<hr />
|
|
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
|
|
<div class="widget-content widget-content-area br-6">
|
|
<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> Incomplete Applications</h4>
|
|
<hr class="text-black" />
|
|
@(Html.DevExtreme().DataGrid<OSS.Models.StepsManagement>
|
|
()
|
|
.DataSource(ds => ds.WebApi()
|
|
.RouteName("CompanyProfile")
|
|
.LoadAction("GetIncompleteApp")
|
|
|
|
.Key("StepID")
|
|
//.InsertAction("Post")
|
|
.LoadParams(new { Username = (Session["CompanyEmail"] as string ?? string.Empty) })
|
|
)
|
|
.RemoteOperations(true)
|
|
.AllowColumnResizing(true)
|
|
.ShowRowLines(true)
|
|
|
|
.Columns(columns =>
|
|
{
|
|
columns.AddFor(m => m.CompanyName).Visible(true).SortOrder(SortOrder.Desc);
|
|
columns.AddFor(m => m.ProjectCode).AllowEditing(false);
|
|
columns.AddFor(m => m.CreatedDate);
|
|
|
|
|
|
|
|
columns.AddFor(m => m.StepNo).DataField("StepNo").Caption("Last Step").CellTemplate(@<text>
|
|
<% if(data.StepNo=="1")
|
|
{%>
|
|
<div class="btn btn-outline-primary">Company Details </div>
|
|
<% }
|
|
if(data.StepNo=="2")
|
|
{%>
|
|
<div class="btn btn-outline-primary">Project Details</div>
|
|
<% }
|
|
if(data.StepNo=="3")
|
|
{%>
|
|
<div class="btn btn-outline-primary">Financial Details</div>
|
|
<% }
|
|
if(data.StepNo=="4")
|
|
{%>
|
|
<div class="btn btn-outline-primary">Upload Attachments</div>
|
|
<% }
|
|
%>
|
|
</text>);
|
|
columns.AddFor(m => m.StepNo).DataField("StepNo")
|
|
.Caption("Form").CellTemplate(@Html.ActionLink(" Proceed", "ProceedNext", "NewCOI",
|
|
new { TrackingNo = "APP_ID"}, new { @class = "btn btn-outline-danger" })
|
|
.ToHtmlString()
|
|
|
|
.Replace("APP_ID", "<%= data.ProjectCode %>"));
|
|
|
|
}).SearchPanel(f => f.Visible(true)
|
|
.SearchVisibleColumnsOnly(true)
|
|
.HighlightSearchText(true)
|
|
).Paging(p => p.PageSize(10))
|
|
.HeaderFilter(f => f.Visible(true))
|
|
.SearchPanel(t => t.SearchVisibleColumnsOnly(true).Visible(true))
|
|
.Editing(e => e
|
|
.AllowAdding(false)
|
|
.AllowUpdating(false)
|
|
.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")
|
|
|
|
.ColCount(2)
|
|
.Items(items =>
|
|
{
|
|
items.AddGroup()
|
|
|
|
.Items(groupItems =>
|
|
{
|
|
|
|
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
|
|
});
|
|
|
|
items.AddGroup()
|
|
.Items(groupItems =>
|
|
{
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
})
|
|
|
|
)
|
|
) )
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|