tiseza_oss_live/Views/NewCOI/ProjectDetails.cshtml

630 lines
83 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using OSS.Models
@model ProjectProfileExternal
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@functions {
public bool HasErrorFor(String FieldName)
{
if (TempData != null) {
var messages = TempData["validation_errors"] as Dictionary<string, string[]>;
return messages != null && messages.ContainsKey(FieldName) && messages[FieldName].Length > 0;
}
return false;
}
public string GetErrorFor(String FieldName, string errorMessage = "Invalid input")
{
if (TempData != null) {
var messages = TempData["validation_errors"] as Dictionary<string, string[]>;
var error = messages != null && messages.ContainsKey(FieldName) ? messages[FieldName] : null;
if(error != null && error.Length > 0) {
errorMessage = error[0];
}
}
return errorMessage;
}
}
<link href="~/Content/assets/css/components/tabs-accordian/custom-tabs.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="~/Content/assets/css/forms/theme-checkbox-radio.css">
<link href="~/Content/assets/css/components/tabs-accordian/custom-accordions.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="~/Content/assets/css/elements/alert.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; 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 </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 active" id="border-top-profile-tab" re href="@Url.Action("CompanyMembersInfor","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-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 disabled" id="border-top-profile-tab" re href="@Url.Action("ShareDistributionInfo","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>Financing</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" 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" id="borderTopContent">
<div class="tab-pane fade show active" id="border-top-home" role="tabpanel" aria-labelledby="border-top-home-tab">
@using (Html.BeginForm("PostProjectProfile", "NewCOI", FormMethod.Post, new { id = "social", @novalidate = "novalidate", @class = "needs-validation text-left section social" }))
{
@Html.AntiForgeryToken()
<div class="alert alert-outline-primary mb-4" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#FF0000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x-circle"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg></button>
New is for registration of new project qualifies for TICs registration
</div>
<div class="info">
<div style="color:red">@ViewBag.Error</div>
<h6 class="text-primary"> &nbsp;&nbsp;&nbsp;&nbsp; <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;Details of the Project</h6>
<hr />
<div class="row">
<div class="col-md-11 mx-auto">
<div class="row">
<div class="col-md-12 mb-4">
<label for="validationCustom05" class="text-black">Project Name</label>
@Html.TextBoxFor(m => m.ProjectName, new { @name = "ProjectName", @class = HasErrorFor("ProjectName")? "form-control is-invalid":"form-control", @id = "ProjectName", @type = "text", @required = "true", @pattern = "^[a-zA-Z0-9 &'\\(\\)\\-\\/_.,]+", @placeholder="Enter the name of your project" })
<div class="invalid-feedback">
@GetErrorFor("ProjectName", "Only non-empty input with words, numbers and [&'()-/_.,] is allowed")
</div>
</div>
<div class="col-md-12 mb-4">
<label for="validationCustom05" class="text-black">Main Activity</label>
@Html.TextBoxFor(m => m.MainActivity, new { @pattern = "^[a-zA-Z0-9 &'\\(\\)\\-\\/_.,]+", @class = HasErrorFor("MainActivity")? "form-control is-invalid":"form-control", @name = "MainActivity", @id = "MainActivity", @type = "text", @required = "true", @placeholder="Enter the description of your project" })
<div class="invalid-feedback">
@GetErrorFor("MainActivity", "Only non-empty input with words, numbers and [&'()-/_.,] is allowed")
</div>
</div>
<div class="col-md-3">
<label for="validationCustom05" class="text-black">Sector</label>
@Html.DropDownListFor(m => m.Sector, new SelectList(Model.ListofSectors, "Value", "Text"), new { @class = "selectpicker form-control", @id = "Sector", @name = "Sector" })
<div class="invalid-feedback">
@GetErrorFor("Sector", "Invalid Input")
</div>
</div>
<div class="col-md-3">
<label for="validationCustom05" class="text-black">Sub Sector</label>
@Html.DropDownListFor(m => m.SubSector, new SelectList(Model.ListofSubectors, "Value", "Text"), new { @class = "selectpicker form-control", @id = "SubSector", @name = "SubSector" })
<div class="invalid-feedback">
@GetErrorFor("SubSector", "Invalid Input")
</div>
</div>
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Production Capacity</label>
@Html.TextBoxFor(m => m.ProductionCapacity, new { @name = "ProductionCapacity", @class = HasErrorFor("ProductionCapacity")? "form-control is-invalid":"form-control", @id = "LastName", @type = "number", @required = "true" })
<div class="invalid-feedback">
@GetErrorFor("ProductionCapacity", "Enter numbers only")
</div>
</div>
<div class="col-md-3">
<label for="validationCustom05" class="text-black">Unit of Measure</label>
@Html.DropDownListFor(m => m.UnitMeasure, new List<SelectListItem>{
new SelectListItem{ Text="tones/year", Value = "tones/year" },
new SelectListItem{ Text="liters/year", Value = "liters/year" },
new SelectListItem{ Text="grams/year", Value = "grams/year" },
new SelectListItem{ Text="kilograms/year", Value = "kilograms/year" },
new SelectListItem{ Text="numbers of units/year", Value = "numbers of units/year" },
new SelectListItem{ Text="acreages/year", Value = "acreages/year" },
new SelectListItem{ Text="Hectors/year", Value = "Hectors/year" },
}, new { @class = "selectpicker form-control", @id = "UnitMeasure", @name = "UnitMeasure", @placeholder = "Unit of measure", @required = "true", @value = "Please Select" }) <div class="invalid-feedback">
Invalid Input
</div>
</div>
<div class="col-md-3">
<label for="validationCustom05" class="text-black">Type of Ownership</label>
@Html.DropDownListFor(m => m.TypeofOwnership, new List<SelectListItem>{
new SelectListItem{ Text="Foreigners Only", Value = "Foreign" },
new SelectListItem{ Text="Tanzanians Only", Value = "Local" },
new SelectListItem{ Text="Mixed (Foreigners & Tanzanians)", Value = "JV" },
}, new { @class = "selectpicker form-control", @id = "CompanyType", @name = "TypeofOwnership", @placeholder = "Sex Type", @required = "true", @value = "Please Select" }) <div class="invalid-feedback">
Invalid Input
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<h6 class="text-primary">&nbsp;&nbsp;&nbsp;&nbsp;<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;Employment Details</h6>
<hr />
<div class="info">
<div class="row">
<div class="col-md-11 mx-auto">
<div class="row">
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Foreign (Men)</label>
@Html.TextBoxFor(m => m.MenForeign, new { @name = "MenForeign", @class = HasErrorFor("MenForeign")? "form-control is-invalid":"form-control", @id = "LastName", @type = "number", @required = "true", @placeholder = "Enter foreign men" })
<div class="invalid-feedback">
@GetErrorFor("MenForeign", "Enter numbers only")
</div>
</div>
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Foreign (Women)</label>
@Html.TextBoxFor(m => m.WomenForeign, new { @name = "WomenForeign", @class = HasErrorFor("WomenForeign")? "form-control is-invalid":"form-control", @id = "LastName", @type = "number", @required = "true", @placeholder = "Enter foreign women" })
<div class="invalid-feedback">
@GetErrorFor("WomenForeign", "Enter numbers only")
</div>
</div>
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Tanzanians (Men)</label>
@Html.TextBoxFor(m => m.MenLocal, new { @name = "MenLocal", @class = HasErrorFor("MenLocal")? "form-control is-invalid":"form-control", @id = "LastName", @type = "number", @required = "true", @placeholder = "Enter local men" })
<div class="invalid-feedback">
@GetErrorFor("MenLocal", "Enter numbers only")
</div>
</div>
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Tanzanians (Women)</label>
@Html.TextBoxFor(m => m.WomenLocal, new { @name = "WomenLocal", @class = HasErrorFor("WomenLocal")? "form-control is-invalid":"form-control", @id = "LastName", @type = "number", @required = "true", @placeholder = "Enter local women" })
<div class="invalid-feedback">
@GetErrorFor("WomenLocal", "Enter numbers only")
</div>
</div>
</div>
</div>
</div>
</div>
<h6 class="text-primary">&nbsp;&nbsp;&nbsp;&nbsp;<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;Project Location</h6>
<hr />
<div class="info">
<div class="row">
<div class="col-md-11 mx-auto">
<div class="row">
<div class="col-md-4">
<label for="validationCustom05" class="text-black">Region</label>
@Html.DropDownListFor(m => m.Region, new SelectList(Model.ListofRegions
, "Value", "Text"), new { @class = "selectpicker form-control", @id = "Region", @name = "Region", @Required = "true" })
<div class="invalid-feedback">
Enter Region.
</div>
</div>
<div class="col-md-4">
<label for="phone" class="text-black">District</label>
<div class="input-group social-tweet mb-3">
@Html.DropDownListFor(m => m.District, new SelectList(Model.ListofDistricts
, "Value", "Text"), new { @class = "selectpicker form-control", @id = "District", @name = "District", @Required = "true" })
</div>
</div>
<div class="col-md-4">
<label for="phone" class="text-black"> Ward </label>
<div class="input-group social-tweet mb-3">
@Html.DropDownListFor(m => m.Ward, new SelectList(Model.ListofWards
, "Value", "Text"), new { @class = "selectpicker form-control", @id = "Ward", @name = "Ward", @Required = "true" })
</div>
</div>
<div class="col-md-4 mb-4">
<label for="validationCustom05" class="text-black">Telephone</label>
@Html.TextBoxFor(m => m.Telephone, new { @name = "Telephone", @class = HasErrorFor("Telephone")? "form-control is-invalid":"form-control", @id = "Telephone", @type = "text", @required = "true" })
<div class="invalid-feedback">
@GetErrorFor("Telephone", "Invalid telephone number")
</div>
</div>
<div class="col-md-4 mb-4">
<label for="validationCustom05" class="text-black">Street</label>
@Html.TextBoxFor(m => m.Street, new { @pattern = "^[a-zA-Z0-9 &'\\-\\/.,]+", @name = "Street", @class = HasErrorFor("Street")? "form-control is-invalid":"form-control", @id = "LastName", @type = "text", @required = "true", @placeholder="Enter street name" })
<div class="invalid-feedback">
@GetErrorFor("Street", "Invalid street name")
</div>
</div>
<div class="col-md-4 mb-4">
<label for="validationCustom05" class="text-black">P.O.BOX</label>
@Html.TextBoxFor(m => m.PostalAddress, new { @name = "PostalAddress", @class = HasErrorFor("PostalAddress")? "form-control is-invalid":"form-control", @id = "PostalAddress", @type = "number", @required = "true", @placeholder="Enter postal address" })
<div class="invalid-feedback">
@GetErrorFor("PostalAddress", "Invalid postal address")
</div>
</div>
<div class="col-md-4">
<label for="validationCustom05" class="text-black">Area Type</label>
@Html.DropDownListFor(m => m.AreaType, new List<SelectListItem>{
new SelectListItem{ Text="Select Area Type", Value = "" },
new SelectListItem{ Text="Surveyed", Value = "Surveyed" },
new SelectListItem{ Text="UnSurveyed", Value = "UnSurveyed" },
}, new { @class = "selectpicker form-control", @id = "AreaType", @name = "AreaType", @placeholder = "Sex Type", @required = "true", @value = "Please Select" }) <div class="invalid-feedback">
Invalid Input
</div>
</div>
<div class="col-md-4 mb-4" id="AreaL">
<label for="validationCustom05" class="text-black">Area</label>
@Html.TextBoxFor(m => m.Area, new { @maxlenght = "20", @pattern = "^[a-zA-Z0-9-'\\(\\)&._\\/ ]+", @name = "Area", @class = HasErrorFor("Area")? "form-control is-invalid":"form-control", @id = "Area", @type = "text" })
<div class="invalid-feedback">
@GetErrorFor("Area", "Invalid area description")
</div>
</div>
<div class="col-md-4" id="LandMarkTypeL">
<label for="validationCustom05" class="text-black">Land Mark Type</label>
@Html.DropDownListFor(m => m.LandMarkType, new List<SelectListItem>{
new SelectListItem{ Text="Near By", Value = "Near By" },
new SelectListItem{ Text="Opposite to", Value = "Opposite to" },
}, new { @class = "selectpicker form-control", @id = "LandMarkType", @name = "LandMarkType", @placeholder = "Sex Type", @value = "Please Select" }) <div class="invalid-feedback">
Invalid Input
</div>
</div>
<div class="col-md-4 mb-4" id="LandMarkDescriptionL">
<label for="validationCustom05" class="text-black">Land Mark Name</label>
@Html.TextBoxFor(m => m.LandMarkDescription, new { @maxlenght = "20", @pattern = "^[a-zA-Z0-9-'\\(\\)&._\\/ ]+", @name = "LandMarkDescription", @class = HasErrorFor("LandMarkDescription")? "form-control is-invalid":"form-control", @id = "LandMarkDescription", @type = "text" })
<div class="invalid-feedback">
@GetErrorFor("LandMarkDescription", "Invalid landmark description")
</div>
</div>
<div class="col-md-4 mb-4" id="PlotNoL">
<label for="validationCustom05" class="text-black">Plot No</label>
@Html.TextBoxFor(m => m.PlotNumber, new { @maxlenght = "10", @pattern = "^[a-zA-Z0-9-\\/]+", @name = "PlotNumber", @class = HasErrorFor("PlotNumber")? "form-control is-invalid":"form-control", @id = "PlotNumber", @type = "text" })
<div class="invalid-feedback">
@GetErrorFor("PlotNumber", "Invalid plot number")
</div>
</div>
<div class="col-md-4 mb-4" id="BlockPlotNumberL">
<label for="validationCustom05" class="text-black">Block No</label>
@Html.TextBoxFor(m => m.BlockPlotNumber, new { @maxlenght = "10", @pattern = "^[a-zA-Z0-9-\\/]+", @name = "BlockPlotNumber", @class = HasErrorFor("BlockPlotNumber")? "form-control is-invalid":"form-control", @id = "BlockPlotNumber", @type = "text" })
<div class="invalid-feedback">
@GetErrorFor("BlockPlotNumber", "Invalid block number")
</div>
</div>
<div class="col-md-4 mb-4" id="HouseNoL">
<label for="validationCustom05" class="text-black">House No</label>
@Html.TextBoxFor(m => m.HouseNo, new { @maxlenght = "10", @pattern = "^[a-zA-Z0-9-\\/]+", @name = "HouseNo", @class = HasErrorFor("HouseNo")? "form-control is-invalid":"form-control", @id = "HouseNo", @type = "text" })
<div class="invalid-feedback">
@GetErrorFor("HouseNo", "Invalid house number")
</div>
</div>
</div>
</div>
</div>
</div>
<h6 class="text-primary">&nbsp;&nbsp;&nbsp;&nbsp;<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;Contact Person</h6>
<hr />
<div class="info">
<div class="row">
<div class="col-md-11 mx-auto">
<div class="row">
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Full Name </label>
@Html.TextBoxFor(m => m.ContactPerson, new { @maxlenght = "30", @name = "ContactPerson", @class = HasErrorFor("ContactPerson")? "form-control is-invalid":"form-control", @id = "ContactPerson", @pattern = "^[a-zA-Z-' ]+$", @type = "text", @required = "true", @placeholder="Enter person name" })
<div class="invalid-feedback">
@GetErrorFor("ContactPerson", "Invalid person name")
</div>
</div>
<div class="col-md-3">
<label for="validationCustom05" class="text-black">Title</label>
@Html.DropDownListFor(m => m.Title,
new List<SelectListItem>{ new SelectListItem{ Text="Select Position", Value = "" },
new SelectListItem{ Text="CEO", Value = "CEO" },
new SelectListItem{ Text="Director", Value = "Director" },
new SelectListItem{ Text="Shareholder", Value = "Shareholder" },
new SelectListItem{ Text="HR Manager", Value = "HR Manager" },
new SelectListItem{ Text="Finance Manager", Value = "Finance Manager" },
new SelectListItem{ Text="Auditor", Value = "Auditor" },
new SelectListItem{ Text="Agent", Value = "Agent" },
}, new { @class = "selectpicker form-control", @id = "Position", @name = "Title", @placeholder = "", @required = "true", @value = "Please Select" })
</div>
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Mobile No</label>
@Html.TextBoxFor(m => m.ContactMobile, new { @name = "ContactMobile", @class = HasErrorFor("ContactMobile")? "form-control is-invalid":"form-control", @id = "ContactMobile", @type = "text", @required = "true", @placeholder="Enter mobile number" })
<div class="invalid-feedback">
@GetErrorFor("ContactMobile", "Invalid mobile number")
</div>
</div>
<div class="col-md-3 mb-4">
<label for="validationCustom05" class="text-black">Email</label>
@Html.TextBoxFor(m => m.ContactEmail, new { @name = "ContactEmail", @class = HasErrorFor("LastName")? "form-control is-invalid":"form-control", @id = "LastName", @type = "email", @required = "true", @placeholder="Enter email address" })
<div class="invalid-feedback">
@GetErrorFor("ContactEmail", "Invalid email address")
</div>
</div>
</div>
</div>
</div>
</div>
<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/RedirectCompany/">Previous</a>
</div>
</div>
<div class="col-md-6">
<div class="d-flex justify-content-end">
<button class="btn btn-primary btn-lg mt-2 text-center" type="submit">Next</button>
</div>
</div>
</div>
</div>
<br />
}
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function () {
var selectedCountry = 180;
var regionsSelect = $('#Region');
regionsSelect.empty();
if (selectedCountry != null && selectedCountry != '') {
$.getJSON('@Url.Action("GetRegions")', { CountryID: selectedCountry }, function (regions) {
if (regions != null && !jQuery.isEmptyObject(regions))
{
regionsSelect.append($('<option/>', {
value: "",
text: "Select Region"
}));
$.each(regions, function (index, region) {
regionsSelect.append($('<option/>', {
value: region.Value,
text: region.Text
}));
});
};
});
}
});
$('#Region').change(function () {
var selectedRegion = $("#Region").val();
var selectedDistrict = $('#District');
selectedDistrict.empty();
if (selectedRegion != null && selectedRegion != '') {
$.getJSON('@Url.Action("GetDistricts")', { RegionName: selectedRegion }, function (district) {
if (district != null && !jQuery.isEmptyObject(district))
{
selectedDistrict.append($('<option/>', {
value: "",
text: "Select District"
}));
$.each(district, function (index,district) {
selectedDistrict.append($('<option/>', {
value: district.Value,
text: district.Text
}));
});
};
});
}
});
$('#District').change(function () {
var selectedDistrict = $("#District").val();
var selectedWard = $('#Ward');
selectedWard.empty();
if (selectedWard != null && selectedWard != '') {
$.getJSON('@Url.Action("GetWard")', { DistrictName: selectedDistrict }, function (ward) {
if (ward != null && !jQuery.isEmptyObject(ward))
{
selectedWard.append($('<option/>', {
value: "",
text: "List of Ward"
}));
$.each(ward, function (index,ward) {
selectedWard.append($('<option/>', {
value: ward.Value,
text: ward.Text
}));
});
};
});
}
});
$('#Sector').change(function () {
var selectedDistrict = $("#Sector").val();
var selectedWard = $('#SubSector');
selectedWard.empty();
if (selectedWard != null && selectedWard != '') {
$.getJSON('@Url.Action("GetSubSector")', { SectorName: selectedDistrict }, function (ward) {
if (ward != null && !jQuery.isEmptyObject(ward))
{
selectedWard.append($('<option/>', {
value: "",
text: "Select Sub-Sector"
}));
$.each(ward, function (index,ward) {
selectedWard.append($('<option/>', {
value: ward.Value,
text: ward.Text
}));
});
};
});
}
});
$(function () {
$("#AreaL").hide();
$("#LandMarkTypeL").hide();
$("#LandMarkDescriptionL").hide();
$("#PlotNoL").hide();
$("#BlockPlotNumberL").hide();
$("#HouseNoL").hide();
$('#AreaType').change(function () {
var value = $('#AreaType').val();
if (value == "Surveyed") {
$("#AreaL").hide();
$("#LandMarkTypeL").hide();
$("#LandMarkDescriptionL").hide();
$("#PlotNoL").show();
$("#BlockPlotNumberL").show();
$("#HouseNoL").show();
$("#BlockPlotNumber").attr("required", true);
$("#Area").attr("required", false);
$("#LandMarkDescription").attr("required", false);
$("#LandMarkType").attr("required", false);
$("#PlotNumber").attr("required", true);
$("#HouseNo").attr("required", true);
}
else if (value == "UnSurveyed") {
$("#AreaL").show();
$("#LandMarkTypeL").show();
$("#LandMarkDescriptionL").show();
$("#PlotNoL").hide();
$("#BlockPlotNumberL").hide();
$("#HouseNoL").hide();
$("#BlockPlotNumber").attr("required", false);
$("#PlotNumber").attr("required", false);
$("#HouseNo").attr("required", false);
$("#Area").attr("required", true);
$("#LandMarkDescription").attr("required", true);
$("#LandMarkType").attr("required", true);
}
else {
$("#AreaL").hide();
$("#LandMarkTypeL").hide();
$("#LandMarkDescriptionL").hide();
$("#PlotNoL").hide();
$("#BlockPlotNumberL").hide();
$("#HouseNoL").hide();
}
});
});
$(function () {
$('#CompanyType').change(function () {
var value = $('#CompanyType').val();
if (value == "Private") {
$("#incopl").show();
$("#incopdatel").show();
}
else {
$("#incopl").hide();
$("#incopdatel").hide();
}
});
});
</script>
<script type="text/javascript" src="~/Content/plugins/input-mask/jquery.inputmask.bundle.min.js"></script>
<script type="text/javascript" src="~/Content/plugins/input-mask/input-mask.js"></script>
<script type="text/javascript" src="~/Scripts/jquery.min.js"></script>
<link type="text/css" rel="stylesheet" href="~/Content/jquery-ui.css" />
<script type="text/javascript" src="~/Scripts/jquery-ui.js"></script>
<script>
var j = jQuery.noConflict();
j(function () {
j("#IssuedDate").datepicker({
dateFormat: "mm-dd-yy",
maxDate: 0,
changeYear: true,
yearRange: "-100:+0",
changeMonth: true
});
});
$(":input").inputmask();
$("#ContactMobile").inputmask({ mask: "9999999999" });
</script>