747 lines
28 KiB
Plaintext
747 lines
28 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Index";
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
|
|
function onInitNewRow(e, CompanyTIN) {
|
|
|
|
e.data.CompanyTIN = CompanyTIN;
|
|
|
|
}
|
|
|
|
</script>
|
|
<script type="text/javascript">
|
|
|
|
function onInitNewRow(e, ProjectID, CompanyTIN) {
|
|
e.data.ProjectID = ProjectID
|
|
|
|
}
|
|
|
|
</script>
|
|
<div class="row primary">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header primary">
|
|
<h1 class="card-title text-succes"><span class="text-blue"> <i class="fas fa-business-time text-blue"></i> Profiles of : @Session["CompanyName"].ToString()</span></h1>
|
|
|
|
<div class="card-tools">
|
|
<button type="button" class="btn btn-tool" data-card-widget="collapse">
|
|
<i class="fas fa-minus"></i>
|
|
</button>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-tool dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fas fa-wrench"></i>
|
|
</button>
|
|
<div class="dropdown-menu dropdown-menu-right" role="menu">
|
|
<a href="#" class="dropdown-item">Action</a>
|
|
<a href="#" class="dropdown-item">Another action</a>
|
|
<a href="#" class="dropdown-item">Something else here</a>
|
|
<a class="dropdown-divider"></a>
|
|
<a href="#" class="dropdown-item">Separated link</a>
|
|
</div>
|
|
</div>
|
|
<button type="button" class="btn btn-tool" data-card-widget="remove">
|
|
<i class="fas fa-times"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- /.card-header -->
|
|
<div class="card-body">
|
|
<div class="row">
|
|
|
|
@(Html.DevExtreme().DataGrid<Onestopshop.Models.CompanyProfile>
|
|
()
|
|
.DataSource(ds => ds.WebApi()
|
|
.RouteName("CompanyProfile")
|
|
.LoadAction("GetCompanyProfileByTIN")
|
|
.UpdateAction("UpdateProfile")
|
|
.LoadParams(new { CompanyTIN = Session["CompanyTIN"].ToString() })
|
|
|
|
|
|
.Key("CompanyTIN")
|
|
)
|
|
.RemoteOperations(true)
|
|
.ColumnAutoWidth(false)
|
|
.AllowColumnResizing(true)
|
|
|
|
.Columns(columns =>
|
|
{
|
|
|
|
|
|
|
|
|
|
columns.AddFor(m => m.CompanyID).Visible(false).SortOrder(SortOrder.Desc);
|
|
columns.AddFor(m => m.CompanyName);
|
|
columns.AddFor(m => m.CompanyEmail).Visible(false);
|
|
columns.AddFor(m => m.IncorpCertNo).Visible(false);
|
|
columns.AddFor(m => m.IncorpCertDate).Visible(true);
|
|
|
|
columns.AddFor(m => m.Telephone);
|
|
|
|
columns.AddFor(m => m.Region).Visible(false);
|
|
columns.AddFor(m => m.District);
|
|
columns.AddFor(m => m.CompanyType).Visible(false);
|
|
columns.AddFor(m => m.BlockPlotNumber).Visible(true);
|
|
columns.AddFor(m => m.PhysicalAddress);
|
|
columns.AddFor(m => m.CompanyMobile).Visible(false);
|
|
columns.AddFor(m => m.AddedBy).Visible(false);
|
|
columns.AddFor(m => m.CreatedDate);
|
|
columns.AddFor(m => m.CompanyTIN);
|
|
columns.AddFor(m => m.PhysicalAddress).Visible(true);
|
|
columns.AddFor(m => m.PostalAddress).Visible(false);
|
|
|
|
})
|
|
|
|
.SearchPanel(f => f.Visible(true))
|
|
.Paging(p => p.PageSize(10))
|
|
.HeaderFilter(f => f.Visible(true))
|
|
.Grouping(g => g.ContextMenuEnabled(true))
|
|
.Grouping(g => g.AutoExpandAll(true))
|
|
.Selection(s => s.Mode(SelectionMode.Multiple))
|
|
.Export(e => e.Enabled(true).FileName("ListofCompanies").AllowExportSelectedData(true))
|
|
.Editing(e => e
|
|
.AllowAdding(false).Popup(p => p
|
|
|
|
.ShowTitle(true)
|
|
.Width(900)
|
|
.Height(500)
|
|
|
|
.Position(pos => pos
|
|
.My(HorizontalAlignment.Center, VerticalAlignment.Center)
|
|
.At(HorizontalAlignment.Center, VerticalAlignment.Center)
|
|
.Of(new JS("window"))
|
|
)
|
|
)
|
|
|
|
.AllowUpdating(true)
|
|
.AllowDeleting(false)
|
|
.Mode(GridEditMode.Popup)
|
|
.UseIcons(true)
|
|
.Form(f => f
|
|
.ID("CompanyCreation")
|
|
.ColCount(2)
|
|
.Items(items =>
|
|
{
|
|
items.AddGroup()
|
|
.Caption("Company Details")
|
|
|
|
.Items(groupItems =>
|
|
{
|
|
|
|
groupItems.AddSimpleFor(m => m.CompanyEmail).ValidationRules(r => r
|
|
.AddEmail()
|
|
.Message("Use email address")
|
|
|
|
);
|
|
groupItems.AddSimpleFor(m => m.CompanyName);
|
|
groupItems.AddSimpleFor(m => m.CompanyTIN).Visible(false);
|
|
groupItems.AddSimpleFor(m => m.District).Visible(false);
|
|
groupItems.AddSimpleFor(m => m.IncorpCertDate);
|
|
groupItems.AddSimpleFor(m => m.IncorpCertNo); groupItems.AddSimpleFor(m => m.PostalAddress);
|
|
|
|
});
|
|
items.AddGroup()
|
|
.Caption("Company Location")
|
|
.Items(groupItems =>
|
|
{
|
|
groupItems.AddSimpleFor(m => m.Region);
|
|
groupItems.AddSimpleFor(m => m.CompanyMobile);
|
|
groupItems.AddSimpleFor(m => m.CompanyTIN);
|
|
groupItems.AddSimpleFor(m => m.Telephone);
|
|
groupItems.AddSimpleFor(m => m.PhysicalAddress);
|
|
|
|
|
|
|
|
});
|
|
|
|
})
|
|
|
|
)
|
|
).MasterDetail(m =>
|
|
{
|
|
m.Enabled(true);
|
|
|
|
m.Template(@<text>
|
|
@Html.Partial("_PartialGriShare")
|
|
</text>);
|
|
|
|
|
|
|
|
})
|
|
)
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row primary">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header primary">
|
|
<h1 class="card-title text-succes"><span class="text-blue"> <i class="fas fa-baby-carriage text-blue"></i> Registered Projects of : @Session["CompanyName"].ToString()</span></h1>
|
|
|
|
<div class="card-tools">
|
|
<button type="button" class="btn btn-tool" data-card-widget="collapse">
|
|
<i class="fas fa-minus"></i>
|
|
</button>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-tool dropdown-toggle" data-toggle="dropdown">
|
|
<i class="fas fa-wrench"></i>
|
|
</button>
|
|
<div class="dropdown-menu dropdown-menu-right" role="menu">
|
|
<a href="#" class="dropdown-item">Action</a>
|
|
<a href="#" class="dropdown-item">Another action</a>
|
|
<a href="#" class="dropdown-item">Something else here</a>
|
|
<a class="dropdown-divider"></a>
|
|
<a href="#" class="dropdown-item">Separated link</a>
|
|
</div>
|
|
</div>
|
|
<button type="button" class="btn btn-tool" data-card-widget="remove">
|
|
<i class="fas fa-times"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- /.card-header -->
|
|
<div class="card-body">
|
|
<div class="row">
|
|
|
|
@(Html.DevExtreme().DataGrid<Onestopshop.Models.ProjectProfile>
|
|
()
|
|
|
|
|
|
.RemoteOperations(true)
|
|
.Columns(columns =>
|
|
{
|
|
|
|
columns.AddFor(m => m.ProjectID).Name("ProjectID").Caption("ID").Visible(true).SortOrder(SortOrder.Desc);
|
|
columns.AddFor(m => m.SectorIcon).CellTemplate(@<text>
|
|
|
|
<div>
|
|
<img style="height:50px;width:50px;" src="<%= data.SectorIcon %>" alt="" />
|
|
</div>
|
|
|
|
</text>);
|
|
columns.AddFor(m => m.ProjectName).Caption("Project Name").Visible(false);
|
|
columns.AddFor(m => m.CompanyName).Caption("Company Name");
|
|
columns.AddFor(m => m.Telephone).Visible(false);
|
|
columns.AddFor(m => m.LodgedDate).Caption("Lodged Date");
|
|
columns.AddFor(m => m.LodgedBy).Visible(false)
|
|
|
|
.Lookup(r => r
|
|
.DataSource(new string[] {
|
|
Session["Username"].ToString()
|
|
|
|
|
|
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Please select type")); ;
|
|
columns.AddFor(m => m.SubSector).Lookup(r => r.DataSource(d => d.WebApi().Controller("UtilitySubSector").LoadAction("ShowSubSector").Key("SubSectorID")).DisplayExpr("SubSectorName")
|
|
.ValueExpr("SubSectorName")).AllowSearch(true)
|
|
;
|
|
columns.AddFor(m => m.Activity).Caption("Activity").Visible(false);
|
|
|
|
columns.AddFor(m => m.TypeofApplication).Visible(false).Caption("Type")
|
|
|
|
.Lookup(r => r
|
|
.DataSource(new string[] {
|
|
"Expansion",
|
|
|
|
|
|
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Please select type"));
|
|
columns.AddFor(m => m.Jobs).Caption("Jobs").Caption("Jobs").Visible(false);
|
|
|
|
columns.AddFor(m => m.PlotNumber).Visible(false);
|
|
columns.AddFor(m => m.ContactPerson).Visible(false).Caption("Contact Person");
|
|
columns.AddFor(m => m.Position).Lookup(r => r
|
|
.DataSource(new string[] {
|
|
"CEO",
|
|
"Finance Manager",
|
|
"HR Manager",
|
|
"Legal Manager" ,
|
|
"Agent"
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Position is required")
|
|
);
|
|
columns.AddFor(m => m.RegionName).SetCellValue("setStateValue")
|
|
.Lookup(r => r.DataSource(d => d.WebApi().Controller("UtilitiesData").LoadAction("ShowRegions").Key("RegionID")).DisplayExpr("RegionName")
|
|
.ValueExpr("RegionName"))
|
|
;
|
|
|
|
|
|
|
|
|
|
columns.AddFor(m => m.DistrictName).SetCellValue("setDistrictValue").Lookup(lookup => lookup
|
|
.DataSource("getCities").DisplayExpr("DistrictName")
|
|
.ValueExpr("DistrictName")
|
|
);
|
|
|
|
columns.AddFor(m => m.Mobile).Caption("Mobile").Visible(false);
|
|
|
|
columns.AddFor(m => m.MajorityShare).Caption("Majority Share")
|
|
|
|
.Lookup(r => r
|
|
.DataSource(new string[] {
|
|
"Foreign",
|
|
"Local",
|
|
"JV"
|
|
|
|
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Please select type"));
|
|
columns.AddFor(m => m.ProductionCapacity).Visible(false).Caption("Capacity");
|
|
columns.AddFor(m => m.Street).Visible(false).Caption("Street");
|
|
columns.AddFor(m => m.PlotNumber).Visible(false).Caption("Plot Number");
|
|
columns.AddFor(m => m.BlockNumber).Visible(false).Caption("Block Number");
|
|
columns.AddFor(m => m.Telephone).Visible(false).Caption("Telephone");
|
|
columns.AddFor(m => m.Email).Caption("Email").Visible(false);
|
|
columns.AddFor(m => m.ApprovedBy).Visible(false);
|
|
columns.AddFor(m => m.ApprovedDate).Visible(false);
|
|
columns.AddFor(m => m.Position).Visible(false);
|
|
columns.AddFor(m => m.ImplementationStartDate).Caption("Start Date")
|
|
.Visible(false);
|
|
columns.AddFor(m => m.ImplementationEndDate).Caption("End Date")
|
|
.Visible(false);
|
|
columns.AddFor(m => m.OperativeDate).Caption("Operative Date")
|
|
.Visible(false);
|
|
|
|
columns.AddFor(m => m.FileNo).Caption("File No").Visible(false);
|
|
columns.AddFor(m => m.latitude).Visible(false).Caption("Latitude");
|
|
|
|
columns.AddFor(m => m.Location).Visible(false);
|
|
columns.AddFor(m => m.longitude).Visible(false).Caption("Longitude");
|
|
columns.AddFor(m => m.BlockNumber).Visible(false);
|
|
columns.AddFor(m => m.WardName).Lookup(lookup => lookup
|
|
.DataSource("getWards").DisplayExpr("WardName")
|
|
.ValueExpr("WardName")
|
|
).Visible(false);
|
|
|
|
columns.AddFor(m => m.CertificateOfIncentiveNo).Caption("C/Incentive No").Visible(false);
|
|
columns.AddFor(m => m.CompanyTIN).Lookup(r => r
|
|
.DataSource(new string[] {
|
|
ViewData["CompanyTIN"].ToString()
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Select Status"));
|
|
columns.AddFor(m => m.Sector).DataField("Sector")
|
|
.CellTemplate(@Html.ActionLink(" Attachment", "BrowseApplicantDocuments", "ProjectEvaluation",
|
|
new { CompanyTIN = "TIN_ID", ProjectID = "PROJ_ID" }, new { target = "_blank", @class = "fa fa-folder-open text-primary" })
|
|
.ToHtmlString()
|
|
.Replace("TIN_ID", "<%= data.CompanyTIN%>")
|
|
.Replace("PROJ_ID", "<%= data.ProjectID%>")
|
|
|
|
)
|
|
|
|
.Lookup(r => r
|
|
.DataSource(new string[] {
|
|
"Agriculture",
|
|
"Manufacturing",
|
|
"Computers",
|
|
"Economic Infrastructure",
|
|
"Commercial Building/Construction",
|
|
"Broadcasting",
|
|
"Energy",
|
|
"Finance",
|
|
"Human Resource",
|
|
"Mining & Petroleum",
|
|
"Transportation",
|
|
"Tourism",
|
|
"Telecommunications",
|
|
"Services",
|
|
"Natural Resources"
|
|
|
|
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Please select sector"));
|
|
|
|
columns.AddFor(m => m.WomenLocal).Visible(false).Caption("Woman Local");
|
|
|
|
columns.AddFor(m => m.HouseNo).Visible(false);
|
|
|
|
columns.AddFor(m => m.Road).Visible(false);
|
|
|
|
columns.AddFor(m => m.MenLocal).Visible(false).Caption("Men Local");
|
|
columns.AddFor(m => m.MenForeign).Visible(false).Caption("Men Foreign");
|
|
columns.AddFor(m => m.OriginalCOI).Visible(false).ValidationRules(t => t.AddRequired()).Lookup(r => r.DataSource(d => d.WebApi().Controller("ListofProjectAPI").LoadAction("ShowProject").LoadParams(new { CompanyTIN = Session["CompanyTIN"].ToString() }).Key("ProjectID")).DisplayExpr("CertificateOfIncentiveNo")
|
|
.ValueExpr("CertificateOfIncentiveNo"))
|
|
;
|
|
columns.AddFor(m => m.LastExpansionDate).ValidationRules(t => t.AddRequired());
|
|
|
|
columns.AddFor(m => m.ExpansionNo).Visible(false).Lookup(r => r
|
|
.DataSource(new string[] {
|
|
"E1",
|
|
"E2",
|
|
"E3",
|
|
"E4",
|
|
"E5",
|
|
"E6",
|
|
"E8",
|
|
"E9",
|
|
"E10",
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Please select")
|
|
);
|
|
|
|
columns.AddFor(m => m.WomenForeign).Visible(false).Caption("Woman Foreign"); ;
|
|
columns.AddFor(m => m.PhysicalAddress).Caption("Physical Address").Visible(false);
|
|
columns.AddFor(m => m.AreaType).Visible(false).Lookup(r => r
|
|
.DataSource(new string[] {
|
|
"Surveyed",
|
|
"UnSurveyed",
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Select Status")
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
columns.AddFor(m => m.ProcessingStatus).Lookup(r => r
|
|
.DataSource(new string[] {
|
|
"Retain",
|
|
"Lodge",
|
|
|
|
}
|
|
)
|
|
)
|
|
.ValidationRules(r => r
|
|
.AddRequired()
|
|
.Message("Select Status")
|
|
).DataField("ProcessingStatus").Caption("Submit").CellTemplate(@<text>
|
|
<% if(data.ProcessingStatus=="Retain")
|
|
{%>
|
|
<div style="color:red">Retained</div>
|
|
<% }
|
|
if(data.ProcessingStatus=="Approved")
|
|
{%>
|
|
<div style="color:green"></div>
|
|
<% }
|
|
%>
|
|
</text>);
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
.SearchPanel(f => f.Visible(true).SearchVisibleColumnsOnly(true))
|
|
.AllowColumnResizing(true)
|
|
.Paging(p => p.PageSize(10))
|
|
.HeaderFilter(f => f.Visible(true))
|
|
.Grouping(g => g.ContextMenuEnabled(true))
|
|
.Grouping(g => g.AutoExpandAll(true))
|
|
.Selection(s => s.Mode(SelectionMode.Multiple))
|
|
.Export(e => e.Enabled(true).FileName("ListofProjectsPerCompany").AllowExportSelectedData(true))
|
|
.Editing(e => e
|
|
.AllowAdding(true)
|
|
.AllowDeleting(true)
|
|
.Popup(p => p
|
|
.Title("Investment Project Details")
|
|
.ShowTitle(true)
|
|
.Width(1250)
|
|
.Height(500)
|
|
|
|
.Position(pos => pos
|
|
.My(HorizontalAlignment.Center, VerticalAlignment.Center)
|
|
.At(HorizontalAlignment.Center, VerticalAlignment.Center)
|
|
.Of(new JS("window"))
|
|
)
|
|
)
|
|
|
|
.AllowUpdating(true)
|
|
.AllowDeleting(true)
|
|
|
|
.Mode(GridEditMode.Popup)
|
|
.UseIcons(true)
|
|
.Form(f => f
|
|
.ID("RegisterProject")
|
|
.ColCount(1)
|
|
|
|
|
|
.Items(items =>
|
|
{
|
|
items.AddGroup()
|
|
.ColCount(2)
|
|
.Items(groupItems =>
|
|
{
|
|
|
|
|
|
|
|
groupItems.AddSimpleFor(m => m.ProjectName);
|
|
groupItems.AddSimpleFor(m => m.CompanyName).Visible(false);
|
|
groupItems.AddSimpleFor(m => m.TypeofApplication);
|
|
groupItems.AddSimpleFor(m => m.Activity);
|
|
groupItems.AddSimpleFor(m => m.ProductionCapacity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
items.AddGroup()
|
|
.ColCount(2)
|
|
.Items(groupItems =>
|
|
{
|
|
|
|
|
|
|
|
groupItems.AddSimpleFor(m => m.Sector);
|
|
|
|
groupItems.AddSimpleFor(m => m.SubSector);
|
|
|
|
groupItems.AddSimpleFor(m => m.MajorityShare);
|
|
|
|
|
|
groupItems.AddSimpleFor(m => m.RegionName).IsRequired(true);
|
|
groupItems.AddSimpleFor(m => m.DistrictName);
|
|
|
|
|
|
groupItems.AddSimpleFor(m => m.WardName);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
items.AddGroup()
|
|
.ColCount(1)
|
|
|
|
.Caption("More details...")
|
|
|
|
.Items(groupItems =>
|
|
{
|
|
groupItems.AddTabbed().Tabs(tabItems =>
|
|
{
|
|
|
|
tabItems.Add().ColCount(4)
|
|
.Title("Employment Details")
|
|
.Items(tabItem =>
|
|
{
|
|
|
|
tabItem.AddSimpleFor(m => m.MenForeign);
|
|
tabItem.AddSimpleFor(m => m.WomenForeign);
|
|
tabItem.AddSimpleFor(m => m.MenLocal);
|
|
|
|
tabItem.AddSimpleFor(m => m.WomenLocal);
|
|
|
|
|
|
|
|
});
|
|
tabItems.Add().ColCount(3)
|
|
.Title("Project Details")
|
|
.Items(tabItem =>
|
|
{
|
|
|
|
tabItem.AddSimpleFor(m => m.PhysicalAddress).Editor(t=>t.TextArea().Height("100"));
|
|
tabItem.AddSimpleFor(m => m.Unsurveyedaddress).Editor(t => t.TextArea().Height("100"));
|
|
|
|
tabItem.AddSimpleFor(m => m.AreaType);
|
|
|
|
tabItem.AddSimpleFor(m => m.BlockNumber);
|
|
tabItem.AddSimpleFor(m => m.PlotNumber);
|
|
tabItem.AddSimpleFor(m => m.Road);
|
|
tabItem.AddSimpleFor(m => m.HouseNo);
|
|
tabItem.AddSimpleFor(m => m.Location).Visible(false);
|
|
tabItem.AddSimpleFor(m => m.Street);
|
|
tabItem.AddSimpleFor(m => m.Location);
|
|
tabItem.AddSimpleFor(m => m.ImplementationStartDate);
|
|
tabItem.AddSimpleFor(m => m.ImplementationEndDate).Visible(false);
|
|
tabItem.AddSimpleFor(m => m.OperativeDate).Visible(false);
|
|
tabItem.AddSimpleFor(m => m.CompanyTIN);
|
|
tabItem.AddSimpleFor(m => m.SectorIcon).Visible(false);
|
|
tabItem.AddSimpleFor(m => m.latitude);
|
|
tabItem.AddSimpleFor(m => m.longitude);
|
|
|
|
|
|
|
|
});
|
|
|
|
tabItems.Add().ColCount(3)
|
|
.Title("Expansion Details")
|
|
|
|
.Items(tabItem =>
|
|
{
|
|
|
|
tabItem.AddSimpleFor(m => m.OriginalCOI);
|
|
tabItem.AddSimpleFor(m => m.LastExpansionDate);
|
|
tabItem.AddSimpleFor(m => m.ExpansionNo);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
tabItems.Add().ColCount(3)
|
|
.Title("Contact Persons")
|
|
|
|
.Items(tabItem =>
|
|
{
|
|
|
|
tabItem.AddSimpleFor(m => m.ContactPerson);
|
|
tabItem.AddSimpleFor(m => m.Mobile);
|
|
|
|
tabItem.AddSimpleFor(m => m.Email);
|
|
tabItem.AddSimpleFor(m => m.Telephone);
|
|
tabItem.AddSimpleFor(m => m.Position);
|
|
|
|
|
|
|
|
|
|
});
|
|
tabItems.Add().ColCount(3)
|
|
.Title("Submit Application")
|
|
|
|
.Items(tabItem =>
|
|
{
|
|
|
|
tabItem.AddSimpleFor(m => m.ProcessingStatus);
|
|
tabItem.AddSimpleFor(m => m.LodgedBy);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
})
|
|
|
|
)
|
|
).MasterDetail(m =>
|
|
{
|
|
m.Enabled(true);
|
|
|
|
m.Template(@<text>
|
|
@Html.Partial("_FinancialDetails")
|
|
</text>);
|
|
|
|
|
|
|
|
}).DataSource(ds => ds.WebApi()
|
|
.RouteName("ProjectProfileAPI")
|
|
.LoadAction("GeProjectProfileByTIN")
|
|
.InsertAction("AddProjectProfile")
|
|
.UpdateAction("UpdateProjectProfile")
|
|
.DeleteAction("DeleteProject")
|
|
.LoadParams(new { CompanyTIN = Session["CompanyTIN"].ToString() })
|
|
.Key("ProjectID")
|
|
)
|
|
|
|
|
|
)
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
function getCities(options) {
|
|
return {
|
|
store: DevExpress.data.AspNet.createStore({
|
|
key: "DistrictName",
|
|
loadUrl: '@Url.Action("ShowDistrict", "UtilitiesDistrict", new { httproute = true })'
|
|
}),
|
|
filter: options.data?["RegionName", "=", options.data.RegionName] : null
|
|
};
|
|
}
|
|
function setStateValue(rowData, value) {
|
|
|
|
rowData.RegionName = value;
|
|
rowData.DistrictName = null;
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
<script>
|
|
|
|
|
|
|
|
|
|
function getWards(options) {
|
|
return {
|
|
store: DevExpress.data.AspNet.createStore({
|
|
key: "WardName",
|
|
loadUrl: '@Url.Action("ShowWards", "WardUtility", new { httproute = true })'
|
|
}),
|
|
filter: options.data ? ["DistrictName", "=", options.data.DistrictName] : null
|
|
};
|
|
}
|
|
function setDistrictValue(rowData, value) {
|
|
|
|
rowData.DistrictName = value;
|
|
rowData.WardName = null;
|
|
}
|
|
</script>
|