tiseza_oss_live/Views/NewCOI/ApplicationStatus.cshtml

239 lines
13 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 />
<h5 class="text-primary font-weight-bold"> &nbsp; Application Status <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> Project Profiles </h5>
<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">
<h6 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;Application Details
</h6>
<br />
<table class="table table-bordered table-condensed table-hover table-striped">
<thead>
<tr><td>Company Name</td><td>@Session["CompanyName"]</td></tr>
<tr><td>Project Name</td><td>@Session["ProjectName"]</td></tr>
<tr><td> Appication No </td><td>@Session["ProjectCode"]</td></tr>
<tr><td> Appication Type </td><td>@Session["ApplicationType"]</td></tr>
<tr><td>Submitted Date</td><td>@Session["ApplicationDate"]</td></tr>
<tr><td>Comment</td><td>@Session["Comment"]</td></tr>
<tr>
<td>
</td>
<td>
@{
var projCode = Session["ProjectCode"] as string;
}
@if (Session["EvaluationStatus"].ToString()=="Deffered")
{
<a class="btn btn-danger btn-lg mt-2 " href="/NewCOI/AttachmentsNewDeffered"><blink>Click here to rectify corrections and re-submit<blink></a>
}
&nbsp;<a class="btn btn-primary btn-lg mt-2 " href="/NewCOI/">Go back</a>
@if (!string.IsNullOrEmpty(projCode))
{
<a class="btn btn-danger btn-lg mt-2" href="@Url.Action("AdditionalPayment","NewCOI", new { projectCode = projCode })">Pay Additional Amount</a>
}
</td>
</tr>
@*@if (@ViewData["Attachment"].ToString() != "NA")
{
<tr><td>Attachment</td><td><a target="_blank" href="DisplayPDF?ApplicationID=@ViewData["ApplicationID"]&ServiceTypeID=@ViewData["ServiceTypeID"]">Download Attachment</a></td></tr>
}*@
</thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<h6 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; Deferement History
</h6>
<hr class="text-primary" />
@(Html.DevExtreme().DataGrid<OSS.Models.ApplicationManager>
()
.DataSource(ds => ds.WebApi()
.RouteName("CompanyProfile")
.LoadAction("GetApprovedProjectsByUser")
.Key("ProjectCode")
//.InsertAction("Post")
.LoadParams(new { Username = Session["CompanyEmail"].ToString() })
)
.RemoteOperations(true)
.AllowColumnResizing(true)
.ShowRowLines(true)
.Columns(columns =>
{
columns.AddFor(m => m.ProjectName).Visible(true).SortOrder(SortOrder.Desc);
columns.AddFor(m => m.ProjectCode).AllowEditing(false);
columns.AddFor(m => m.ServiceName);
columns.AddFor(m => m.Station);
columns.AddFor(m => m.EvaluationStatus).DataField("EvaluationStatus").Caption("Approved Status").CellTemplate(@<text>
<% if(data.EvaludationStatus=="Approved")
{%>
<a href="#"><div class="btn btn-outline-success">Apprved</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.CompanyName);
groupItems.AddSimpleFor(m => m.EvaluationStatus);
groupItems.AddSimpleFor(m => m.EvaluationStatus);
});
items.AddGroup()
.Items(groupItems =>
{
groupItems.AddSimpleFor(m => m.CompanyName);
groupItems.AddSimpleFor(m => m.EvaluationStatus);
});
})
)
)
)
</div>
</div>
<div class="col-xl-12 col-lg-12 col-sm-12 layout-spacing">
<div class="widget-content widget-content-area br-6">
<h6 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;Invoice List
</h6>
<hr class="text-primary" />
@(Html.DevExtreme().DataGrid<dynamic>()
.ID("invoiceListGrid")
.DataSource(ds => ds.WebApi()
.RouteName("CompanyProfile")
.LoadAction("GetInvoicesByApplicationCode")
.Key("InvoiceID")
.LoadParams(new { ProjectCode = (Session["ProjectCode"] as string ?? string.Empty) })
)
.RemoteOperations(true)
.AllowColumnResizing(true)
.ShowRowLines(true)
.Columns(columns =>
{
columns.Add().DataField("InvoiceID").Caption("Invoice ID").Visible(true);
columns.Add().DataField("SubServiceName").Caption("Service Name").Visible(true);
columns.Add().DataField("Amount").Caption("Amount").Visible(true).Format(Format.Currency);
columns.Add().DataField("Currency").Caption("Currency").Visible(true);
columns.Add().DataField("StartDate").Caption("Start Date").Visible(true).DataType(GridColumnDataType.Date).Format(Format.ShortDate);
columns.Add().DataField("Expiredate").Caption("Expiry Date").Visible(true).DataType(GridColumnDataType.Date).Format(Format.ShortDate);
columns.Add().DataField("BillItemRefNo").Caption("Bill Ref No").Visible(true);
columns.Add().DataField("ControlNo").Caption("Control No").Visible(true);
columns.Add().DataField("PaymentStatus").Caption("Payment Status").Visible(true).CellTemplate(@<text>
<% if(data.PaymentStatus == true)
{%>
<span class="badge badge-success">Paid</span>
<% }
else
{%>
<span class="badge badge-warning">Pending</span>
<% }
%>
</text>);
columns.Add().Caption("Download").Width(150).CellTemplate(@<text>
<% if(data.InvoiceID != null)
{%>
<a href="@Url.Action("DownloadInvoice", "NewCOI")?invoiceId=<%= data.InvoiceID %>" target="_blank" class="btn btn-outline-primary 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
</a>
<% }
%>
</text>);
})
.SearchPanel(f => f.Visible(true)
.SearchVisibleColumnsOnly(true)
.HighlightSearchText(true)
)
.Paging(p => p.PageSize(10))
.HeaderFilter(f => f.Visible(true))
)
</div>
</div>
</div>
</div>
</div>