|
|
@ -97,8 +97,8 @@ |
|
|
<div class="col-md-3 mb-3"> |
|
|
<div class="col-md-3 mb-3"> |
|
|
<label for="areaname" class="form-label">Area Name<span |
|
|
<label for="areaname" class="form-label">Area Name<span |
|
|
class="text-danger">*</span></label> |
|
|
class="text-danger">*</span></label> |
|
|
<input type="text" class="form-control" id="areaname" |
|
|
|
|
|
name="areaname" required="required"> |
|
|
|
|
|
|
|
|
<input type="text" class="form-control" id="areaname" name="areaname" |
|
|
|
|
|
required="required"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-3 mb-3"> |
|
|
<div class="col-md-3 mb-3"> |
|
|
@ -137,13 +137,15 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-3 mb-3"> |
|
|
<div class="col-md-3 mb-3"> |
|
|
<label for="row_width" class="form-label">Right of Way(ROW) Width of Road (m)</label> |
|
|
|
|
|
|
|
|
<label for="row_width" class="form-label">Right of Way(ROW) Width of |
|
|
|
|
|
Road (m)</label> |
|
|
<input type="text" class="form-control decimal-only" id="row_width" |
|
|
<input type="text" class="form-control decimal-only" id="row_width" |
|
|
name="row_width" placeholder="e.g. 200.5"> |
|
|
name="row_width" placeholder="e.g. 200.5"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-3 mb-3"> |
|
|
<div class="col-md-3 mb-3"> |
|
|
<label for="averageWidth" class="form-label">Average Carriageway Width of Road (m)</label> |
|
|
|
|
|
|
|
|
<label for="averageWidth" class="form-label">Average Carriageway Width |
|
|
|
|
|
of Road (m)</label> |
|
|
<input type="text" class="form-control decimal-only" id="averageWidth" |
|
|
<input type="text" class="form-control decimal-only" id="averageWidth" |
|
|
name="averageWidth" placeholder="e.g. 6.5"> |
|
|
name="averageWidth" placeholder="e.g. 6.5"> |
|
|
</div> |
|
|
</div> |
|
|
@ -250,13 +252,15 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3"> |
|
|
<div class="col-md-4 mb-3"> |
|
|
<label for="fplength" class="form-label">LHS Length of Footpath (m)<span class="text-danger">*</span> </label> |
|
|
|
|
|
|
|
|
<label for="fplength" class="form-label">LHS Length of Footpath |
|
|
|
|
|
(m)<span class="text-danger">*</span> </label> |
|
|
<input type="text" class="form-control decimal-only" id="fplength" |
|
|
<input type="text" class="form-control decimal-only" id="fplength" |
|
|
name="fplength" required="required" placeholder="e.g. 180.0"> |
|
|
name="fplength" required="required" placeholder="e.g. 180.0"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3"> |
|
|
<div class="col-md-4 mb-3"> |
|
|
<label for="fpwidth" class="form-label">LHS Average Width of Footpath (m)<span class="text-danger">*</span> </label> |
|
|
|
|
|
|
|
|
<label for="fpwidth" class="form-label">LHS Average Width of |
|
|
|
|
|
Footpath (m)<span class="text-danger">*</span> </label> |
|
|
<input type="text" class="form-control decimal-only" id="fpwidth" |
|
|
<input type="text" class="form-control decimal-only" id="fpwidth" |
|
|
name="fpwidth" required="required" placeholder="e.g. 1.5"> |
|
|
name="fpwidth" required="required" placeholder="e.g. 1.5"> |
|
|
</div> |
|
|
</div> |
|
|
@ -280,15 +284,19 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3"> |
|
|
<div class="col-md-4 mb-3"> |
|
|
<label for="rhs_fplength" class="form-label">RHS Length of Footpath (m)<span class="text-danger">*</span> </label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" id="rhs_fplength" |
|
|
|
|
|
name="rhs_fplength" required="required" placeholder="e.g. 180.0"> |
|
|
|
|
|
|
|
|
<label for="rhs_fplength" class="form-label">RHS Length of Footpath |
|
|
|
|
|
(m)<span class="text-danger">*</span> </label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" |
|
|
|
|
|
id="rhs_fplength" name="rhs_fplength" required="required" |
|
|
|
|
|
placeholder="e.g. 180.0"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-4 mb-3"> |
|
|
<div class="col-md-4 mb-3"> |
|
|
<label for="rhs_fpwidth" class="form-label">RHS Average Width of Footpath (m)<span class="text-danger">*</span> </label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" id="rhs_fpwidth" |
|
|
|
|
|
name="rhs_fpwidth" required="required" placeholder="e.g. 1.5"> |
|
|
|
|
|
|
|
|
<label for="rhs_fpwidth" class="form-label">RHS Average Width of |
|
|
|
|
|
Footpath (m)<span class="text-danger">*</span> </label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" |
|
|
|
|
|
id="rhs_fpwidth" name="rhs_fpwidth" required="required" |
|
|
|
|
|
placeholder="e.g. 1.5"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
@ -345,13 +353,17 @@ |
|
|
<div class="col-md-6 mb-3" id="lhs_swd" style="display: none;"> |
|
|
<div class="col-md-6 mb-3" id="lhs_swd" style="display: none;"> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-md-6 mb-3"> |
|
|
<div class="col-md-6 mb-3"> |
|
|
<label for="swdlength">LHS SWD Length (m)<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" id="swdlength"> |
|
|
|
|
|
|
|
|
<label for="swdlength">LHS SWD Length (m)<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" |
|
|
|
|
|
id="swdlength"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-6 mb-3"> |
|
|
<div class="col-md-6 mb-3"> |
|
|
<label for="swdsize">LHS SWD Size (m)<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" id="size"> |
|
|
|
|
|
|
|
|
<label for="swdsize">LHS SWD Size (m)<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" |
|
|
|
|
|
id="size"> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -359,13 +371,17 @@ |
|
|
<div class="col-md-6 mb-3" id="rhs_swd" style="display: none;"> |
|
|
<div class="col-md-6 mb-3" id="rhs_swd" style="display: none;"> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-md-6 mb-3"> |
|
|
<div class="col-md-6 mb-3"> |
|
|
<label for="rhs_swdlength">RHS SWD Length (m)<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" id="rhs_swdlength"> |
|
|
|
|
|
|
|
|
<label for="rhs_swdlength">RHS SWD Length (m)<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" |
|
|
|
|
|
id="rhs_swdlength"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-6 mb-3"> |
|
|
<div class="col-md-6 mb-3"> |
|
|
<label for="rhs_swdsize">RHS SWD Size (m)<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" id="rhs_swdsize"> |
|
|
|
|
|
|
|
|
<label for="rhs_swdsize">RHS SWD Size (m)<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control decimal-only" |
|
|
|
|
|
id="rhs_swdsize"> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -395,18 +411,26 @@ |
|
|
<div id="scpSection" style="display:none; margin-top:15px;"> |
|
|
<div id="scpSection" style="display:none; margin-top:15px;"> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<label for="scp_at"> Slit catch pit Present at ?</label> |
|
|
|
|
|
<select class="form-control" id="scp_at" name="scp_at"> |
|
|
|
|
|
|
|
|
<label for="scp_at"> Slit catch pit Present at |
|
|
|
|
|
?</label> |
|
|
|
|
|
<select class="form-control" id="scp_at" |
|
|
|
|
|
name="scp_at"> |
|
|
<option value="">Select </option> |
|
|
<option value="">Select </option> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-3" id="lhs_scp" style="display: none;"> |
|
|
|
|
|
<label for="scpCount"> LHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="scpCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="lhs_scp" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="scpCount"> LHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="scpCount"> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-3" id="rhs_scp" style="display: none;"> |
|
|
|
|
|
<label for="rhs_scpCount"> RHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="rhs_scpCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="rhs_scp" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="rhs_scpCount"> RHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="rhs_scpCount"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
@ -429,20 +453,28 @@ |
|
|
<div id="mhSection" style="display:none; margin-top:15px;"> |
|
|
<div id="mhSection" style="display:none; margin-top:15px;"> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<label for="mhType">Manhole / Machine hole present at?</label> |
|
|
|
|
|
<select class="form-control" id="mhType" name="mhType"> |
|
|
|
|
|
|
|
|
<label for="mhType">Manhole / Machine hole present |
|
|
|
|
|
at?</label> |
|
|
|
|
|
<select class="form-control" id="mhType" |
|
|
|
|
|
name="mhType"> |
|
|
<option value="">Select </option> |
|
|
<option value="">Select </option> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="lhs_mh" style="display: none;"> |
|
|
|
|
|
<label for="mhCount">LHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="mhCount" name="mhCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="lhs_mh" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="mhCount">LHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="mhCount" name="mhCount"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="rhs_mh" style="display: none;"> |
|
|
|
|
|
<label for="r_mhCount">RHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="r_mhCount" name="r_mhCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="rhs_mh" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="r_mhCount">RHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="r_mhCount" name="r_mhCount"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
@ -466,17 +498,24 @@ |
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<label for="cp_at">ChutPipe present at?</label> |
|
|
<label for="cp_at">ChutPipe present at?</label> |
|
|
<select class="form-control" id="cp_at" name="cp_at"> |
|
|
|
|
|
|
|
|
<select class="form-control" id="cp_at" |
|
|
|
|
|
name="cp_at"> |
|
|
<option value="">Select </option> |
|
|
<option value="">Select </option> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-3" id="lhs_cp" style="display: none;"> |
|
|
|
|
|
<label for="cpCount">LHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="cpCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="lhs_cp" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="cpCount">LHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="cpCount"> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-3" id="rhs_cp" style="display: none;"> |
|
|
|
|
|
<label for="r_cpCount">RHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="r_cpCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="rhs_cp" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="r_cpCount">RHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="r_cpCount"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
@ -499,17 +538,24 @@ |
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
<div class="col-md-6"> |
|
|
<label for="rwh_at">RWH present at?</label> |
|
|
<label for="rwh_at">RWH present at?</label> |
|
|
<select class="form-control" id="rwh_at" name="rwh_at"> |
|
|
|
|
|
|
|
|
<select class="form-control" id="rwh_at" |
|
|
|
|
|
name="rwh_at"> |
|
|
<option value="">Select </option> |
|
|
<option value="">Select </option> |
|
|
</select> |
|
|
</select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-3" id="lhs_rwh" style="display: none;"> |
|
|
|
|
|
<label for="rwCount">LHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="rwCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="lhs_rwh" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="rwCount">LHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="rwCount"> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-3" id="rhs_rwh" style="display: none;"> |
|
|
|
|
|
<label for="r_rwCount">RHS Count<span class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" id="r_rwCount"> |
|
|
|
|
|
|
|
|
<div class="col-md-3" id="rhs_rwh" |
|
|
|
|
|
style="display: none;"> |
|
|
|
|
|
<label for="r_rwCount">RHS Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
|
|
|
<input type="text" class="form-control integer-only" |
|
|
|
|
|
id="r_rwCount"> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -572,7 +618,8 @@ |
|
|
</label> |
|
|
</label> |
|
|
</div> |
|
|
</div> |
|
|
<div id="slpSection" style="display:none; margin-top:15px;"> |
|
|
<div id="slpSection" style="display:none; margin-top:15px;"> |
|
|
<label for="slpCount">Count<span class="text-danger">*</span></label> |
|
|
|
|
|
|
|
|
<label for="slpCount">Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
<input type="text" class="form-control integer-only" id="slpCount"> |
|
|
<input type="text" class="form-control integer-only" id="slpCount"> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -590,7 +637,8 @@ |
|
|
</label> |
|
|
</label> |
|
|
</div> |
|
|
</div> |
|
|
<div id="hmlSection" style="display:none; margin-top:15px;"> |
|
|
<div id="hmlSection" style="display:none; margin-top:15px;"> |
|
|
<label for="hmlCount">Count<span class="text-danger">*</span></label> |
|
|
|
|
|
|
|
|
<label for="hmlCount">Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
<input type="text" class="form-control integer-only" id="hmlCount"> |
|
|
<input type="text" class="form-control integer-only" id="hmlCount"> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -609,7 +657,8 @@ |
|
|
</label> |
|
|
</label> |
|
|
</div> |
|
|
</div> |
|
|
<div id="mmlSection" style="display:none; margin-top:15px;"> |
|
|
<div id="mmlSection" style="display:none; margin-top:15px;"> |
|
|
<label for="mmlCount">Count<span class="text-danger">*</span></label> |
|
|
|
|
|
|
|
|
<label for="mmlCount">Count<span |
|
|
|
|
|
class="text-danger">*</span></label> |
|
|
<input type="text" class="form-control integer-only" id="mmlCount"> |
|
|
<input type="text" class="form-control integer-only" id="mmlCount"> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -651,7 +700,8 @@ |
|
|
<div class="col-md-3 mb-3"> |
|
|
<div class="col-md-3 mb-3"> |
|
|
<label for="noofcb" class="form-label">No of Culverts & |
|
|
<label for="noofcb" class="form-label">No of Culverts & |
|
|
Bridges</label> |
|
|
Bridges</label> |
|
|
<input type="text" class="form-control integer-only" id="noofcb" name="noofcb"> |
|
|
|
|
|
|
|
|
<input type="text" class="form-control integer-only" id="noofcb" |
|
|
|
|
|
name="noofcb"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-12 mb-3"> |
|
|
<div class="col-md-12 mb-3"> |
|
|
@ -707,10 +757,11 @@ |
|
|
|
|
|
|
|
|
<div class="col-md-3 mb-3"> |
|
|
<div class="col-md-3 mb-3"> |
|
|
<label class="form-label"> |
|
|
<label class="form-label"> |
|
|
Completion Report Value (CR) |
|
|
|
|
|
|
|
|
Amount Value |
|
|
<span class="text-danger">*</span> |
|
|
<span class="text-danger">*</span> |
|
|
</label> |
|
|
</label> |
|
|
<input type="text" class="form-control decimal-only" name="crValue[]"> |
|
|
|
|
|
|
|
|
<input type="text" class="form-control decimal-only" |
|
|
|
|
|
name="crValue[]"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-3 mb-3"> |
|
|
<div class="col-md-3 mb-3"> |
|
|
@ -958,7 +1009,7 @@ |
|
|
$('#roadDropdown').append( |
|
|
$('#roadDropdown').append( |
|
|
$('<option>', { |
|
|
$('<option>', { |
|
|
value: road.road_id, |
|
|
value: road.road_id, |
|
|
text: road.road_name+","+road.locality+","+road.area_name+","+"("+road.road_id+")" |
|
|
|
|
|
|
|
|
text: road.road_name + "," + road.locality + "," + road.area_name + "," + "(" + road.road_id + ")" |
|
|
}).attr('data-road-name', road.road_name) |
|
|
}).attr('data-road-name', road.road_name) |
|
|
); |
|
|
); |
|
|
}); |
|
|
}); |
|
|
@ -996,19 +1047,19 @@ |
|
|
$('#lhs_section').find('input, select').val(''); |
|
|
$('#lhs_section').find('input, select').val(''); |
|
|
|
|
|
|
|
|
let fpat = $(this).val(); |
|
|
let fpat = $(this).val(); |
|
|
if (fpat==='1') { |
|
|
|
|
|
|
|
|
if (fpat === '1') { |
|
|
$('#lhs_section').slideDown(); |
|
|
$('#lhs_section').slideDown(); |
|
|
$('#rhs_section').hide(); |
|
|
$('#rhs_section').hide(); |
|
|
} |
|
|
} |
|
|
else if(fpat==='2'){ |
|
|
|
|
|
|
|
|
else if (fpat === '2') { |
|
|
$('#rhs_section').slideDown(); |
|
|
$('#rhs_section').slideDown(); |
|
|
$('#lhs_section').hide(); |
|
|
$('#lhs_section').hide(); |
|
|
} |
|
|
} |
|
|
else if(fpat==='3'){ |
|
|
|
|
|
|
|
|
else if (fpat === '3') { |
|
|
$('#rhs_section').slideDown(); |
|
|
$('#rhs_section').slideDown(); |
|
|
$('#lhs_section').slideDown(); |
|
|
$('#lhs_section').slideDown(); |
|
|
} |
|
|
} |
|
|
else{ |
|
|
|
|
|
|
|
|
else { |
|
|
$('#rhs_section').slideUp(); |
|
|
$('#rhs_section').slideUp(); |
|
|
$('#lhs_section').slideUp(); |
|
|
$('#lhs_section').slideUp(); |
|
|
} |
|
|
} |
|
|
@ -1022,19 +1073,19 @@ |
|
|
$('#lhs_swd').find('input, select').val(''); |
|
|
$('#lhs_swd').find('input, select').val(''); |
|
|
|
|
|
|
|
|
let swdat = $(this).val(); |
|
|
let swdat = $(this).val(); |
|
|
if (swdat==='1') { |
|
|
|
|
|
|
|
|
if (swdat === '1') { |
|
|
$('#lhs_swd').slideDown(); |
|
|
$('#lhs_swd').slideDown(); |
|
|
$('#rhs_swd').hide(); |
|
|
$('#rhs_swd').hide(); |
|
|
} |
|
|
} |
|
|
else if(swdat==='2'){ |
|
|
|
|
|
|
|
|
else if (swdat === '2') { |
|
|
$('#rhs_swd').slideDown(); |
|
|
$('#rhs_swd').slideDown(); |
|
|
$('#lhs_swd').hide(); |
|
|
$('#lhs_swd').hide(); |
|
|
} |
|
|
} |
|
|
else if(swdat==='3'){ |
|
|
|
|
|
|
|
|
else if (swdat === '3') { |
|
|
$('#rhs_swd').slideDown(); |
|
|
$('#rhs_swd').slideDown(); |
|
|
$('#lhs_swd').slideDown(); |
|
|
$('#lhs_swd').slideDown(); |
|
|
} |
|
|
} |
|
|
else{ |
|
|
|
|
|
|
|
|
else { |
|
|
$('#rhs_swd').slideUp(); |
|
|
$('#rhs_swd').slideUp(); |
|
|
$('#lhs_swd').slideUp(); |
|
|
$('#lhs_swd').slideUp(); |
|
|
} |
|
|
} |
|
|
@ -1047,20 +1098,20 @@ |
|
|
$('#lhs_scp').find('input, select').val(''); |
|
|
$('#lhs_scp').find('input, select').val(''); |
|
|
|
|
|
|
|
|
let scpat = $(this).val(); |
|
|
let scpat = $(this).val(); |
|
|
if (scpat==='1') { |
|
|
|
|
|
|
|
|
if (scpat === '1') { |
|
|
$('#lhs_scp').slideDown(); |
|
|
$('#lhs_scp').slideDown(); |
|
|
$('#rhs_scp').hide(); |
|
|
$('#rhs_scp').hide(); |
|
|
} |
|
|
} |
|
|
else if(scpat==='2'){ |
|
|
|
|
|
|
|
|
else if (scpat === '2') { |
|
|
$('#rhs_scp').slideDown(); |
|
|
$('#rhs_scp').slideDown(); |
|
|
$('#lhs_scp').hide(); |
|
|
$('#lhs_scp').hide(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else if(scpat==='3'){ |
|
|
|
|
|
|
|
|
else if (scpat === '3') { |
|
|
$('#rhs_scp').slideDown(); |
|
|
$('#rhs_scp').slideDown(); |
|
|
$('#lhs_scp').slideDown(); |
|
|
$('#lhs_scp').slideDown(); |
|
|
} |
|
|
} |
|
|
else{ |
|
|
|
|
|
|
|
|
else { |
|
|
$('#rhs_scp').slideUp(); |
|
|
$('#rhs_scp').slideUp(); |
|
|
$('#lhs_scp').slideUp(); |
|
|
$('#lhs_scp').slideUp(); |
|
|
} |
|
|
} |
|
|
@ -1074,20 +1125,20 @@ |
|
|
$('#rhs_mh').find('input, select').val(''); |
|
|
$('#rhs_mh').find('input, select').val(''); |
|
|
|
|
|
|
|
|
let mhat = $(this).val(); |
|
|
let mhat = $(this).val(); |
|
|
if (mhat==='1') { |
|
|
|
|
|
|
|
|
if (mhat === '1') { |
|
|
$('#lhs_mh').slideDown(); |
|
|
$('#lhs_mh').slideDown(); |
|
|
$('#rhs_mh').hide(); |
|
|
$('#rhs_mh').hide(); |
|
|
} |
|
|
} |
|
|
else if(mhat==='2'){ |
|
|
|
|
|
|
|
|
else if (mhat === '2') { |
|
|
$('#rhs_mh').slideDown(); |
|
|
$('#rhs_mh').slideDown(); |
|
|
$('#lhs_mh').hide(); |
|
|
$('#lhs_mh').hide(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else if(mhat==='3'){ |
|
|
|
|
|
|
|
|
else if (mhat === '3') { |
|
|
$('#rhs_mh').slideDown(); |
|
|
$('#rhs_mh').slideDown(); |
|
|
$('#lhs_mh').slideDown(); |
|
|
$('#lhs_mh').slideDown(); |
|
|
} |
|
|
} |
|
|
else{ |
|
|
|
|
|
|
|
|
else { |
|
|
$('#rhs_mh').slideUp(); |
|
|
$('#rhs_mh').slideUp(); |
|
|
$('#lhs_mh').slideUp(); |
|
|
$('#lhs_mh').slideUp(); |
|
|
} |
|
|
} |
|
|
@ -1100,20 +1151,20 @@ |
|
|
$('#rhs_cp').find('input, select').val(''); |
|
|
$('#rhs_cp').find('input, select').val(''); |
|
|
|
|
|
|
|
|
let cpat = $(this).val(); |
|
|
let cpat = $(this).val(); |
|
|
if (cpat==='1') { |
|
|
|
|
|
|
|
|
if (cpat === '1') { |
|
|
$('#lhs_cp').slideDown(); |
|
|
$('#lhs_cp').slideDown(); |
|
|
$('#rhs_cp').hide(); |
|
|
$('#rhs_cp').hide(); |
|
|
} |
|
|
} |
|
|
else if(cpat==='2'){ |
|
|
|
|
|
|
|
|
else if (cpat === '2') { |
|
|
$('#rhs_cp').slideDown(); |
|
|
$('#rhs_cp').slideDown(); |
|
|
$('#lhs_cp').hide(); |
|
|
$('#lhs_cp').hide(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else if(cpat==='3'){ |
|
|
|
|
|
|
|
|
else if (cpat === '3') { |
|
|
$('#rhs_cp').show(); |
|
|
$('#rhs_cp').show(); |
|
|
$('#lhs_cp').show(); |
|
|
$('#lhs_cp').show(); |
|
|
} |
|
|
} |
|
|
else{ |
|
|
|
|
|
|
|
|
else { |
|
|
$('#rhs_cp').hide(); |
|
|
$('#rhs_cp').hide(); |
|
|
$('#lhs_cp').hide(); |
|
|
$('#lhs_cp').hide(); |
|
|
} |
|
|
} |
|
|
@ -1126,20 +1177,20 @@ |
|
|
$('#rhs_rwh').find('input, select').val(''); |
|
|
$('#rhs_rwh').find('input, select').val(''); |
|
|
|
|
|
|
|
|
let rwhat = $(this).val(); |
|
|
let rwhat = $(this).val(); |
|
|
if (rwhat==='1') { |
|
|
|
|
|
|
|
|
if (rwhat === '1') { |
|
|
$('#lhs_rwh').slideDown(); |
|
|
$('#lhs_rwh').slideDown(); |
|
|
$('#rhs_rwh').hide(); |
|
|
$('#rhs_rwh').hide(); |
|
|
} |
|
|
} |
|
|
else if(rwhat==='2'){ |
|
|
|
|
|
|
|
|
else if (rwhat === '2') { |
|
|
$('#rhs_rwh').slideDown(); |
|
|
$('#rhs_rwh').slideDown(); |
|
|
$('#lhs_rwh').hide(); |
|
|
$('#lhs_rwh').hide(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else if(rwhat==='3'){ |
|
|
|
|
|
|
|
|
else if (rwhat === '3') { |
|
|
$('#rhs_rwh').show(); |
|
|
$('#rhs_rwh').show(); |
|
|
$('#lhs_rwh').show(); |
|
|
$('#lhs_rwh').show(); |
|
|
} |
|
|
} |
|
|
else{ |
|
|
|
|
|
|
|
|
else { |
|
|
$('#rhs_rwh').hide(); |
|
|
$('#rhs_rwh').hide(); |
|
|
$('#lhs_rwh').hide(); |
|
|
$('#lhs_rwh').hide(); |
|
|
} |
|
|
} |
|
|
@ -1266,7 +1317,7 @@ |
|
|
|
|
|
|
|
|
if (response.status) { |
|
|
if (response.status) { |
|
|
|
|
|
|
|
|
fpMaterialList=response.data; |
|
|
|
|
|
|
|
|
fpMaterialList = response.data; |
|
|
|
|
|
|
|
|
populatefootpathmaterialDropdown($("#footpathDropdown")); |
|
|
populatefootpathmaterialDropdown($("#footpathDropdown")); |
|
|
populatefootpathmaterialDropdown($("#rhs_footpathDropdown")); |
|
|
populatefootpathmaterialDropdown($("#rhs_footpathDropdown")); |
|
|
@ -1607,25 +1658,25 @@ |
|
|
|
|
|
|
|
|
let fpVal = $('input[name="fpAvailable"]:checked').val(); |
|
|
let fpVal = $('input[name="fpAvailable"]:checked').val(); |
|
|
|
|
|
|
|
|
let footpathfrom=$("#footPathFrom").val().trim(); |
|
|
|
|
|
let footpathto=$("#footPathTo").val().trim(); |
|
|
|
|
|
|
|
|
let footpathfrom = $("#footPathFrom").val().trim(); |
|
|
|
|
|
let footpathto = $("#footPathTo").val().trim(); |
|
|
|
|
|
|
|
|
let footpathat =$("#fpat").val() ; |
|
|
|
|
|
|
|
|
let footpathat = $("#fpat").val(); |
|
|
|
|
|
|
|
|
let footpathDropdown =$("#footpathDropdown").val() ; |
|
|
|
|
|
|
|
|
let footpathDropdown = $("#footpathDropdown").val(); |
|
|
let fpLen = $("#fplength").val().trim(); |
|
|
let fpLen = $("#fplength").val().trim(); |
|
|
let fpWidth = $("#fpwidth").val().trim(); |
|
|
let fpWidth = $("#fpwidth").val().trim(); |
|
|
|
|
|
|
|
|
let rhs_footpathDropdown =$("#rhs_footpathDropdown").val() ; |
|
|
|
|
|
|
|
|
let rhs_footpathDropdown = $("#rhs_footpathDropdown").val(); |
|
|
let rhs_fplength = $("#rhs_fplength").val().trim(); |
|
|
let rhs_fplength = $("#rhs_fplength").val().trim(); |
|
|
let rhs_fpwidth = $("#rhs_fpwidth").val().trim(); |
|
|
let rhs_fpwidth = $("#rhs_fpwidth").val().trim(); |
|
|
|
|
|
|
|
|
let swdVal = $('input[name="swdAvailable"]:checked').val(); |
|
|
let swdVal = $('input[name="swdAvailable"]:checked').val(); |
|
|
let swd_at =$("#swd_at").val(); |
|
|
|
|
|
let scp_at=$("#scp_at").val(); |
|
|
|
|
|
let mhType=$("#mhType").val(); |
|
|
|
|
|
let cp_at=$("#cp_at").val(); |
|
|
|
|
|
let rwh_at=$("#rwh_at").val(); |
|
|
|
|
|
|
|
|
let swd_at = $("#swd_at").val(); |
|
|
|
|
|
let scp_at = $("#scp_at").val(); |
|
|
|
|
|
let mhType = $("#mhType").val(); |
|
|
|
|
|
let cp_at = $("#cp_at").val(); |
|
|
|
|
|
let rwh_at = $("#rwh_at").val(); |
|
|
|
|
|
|
|
|
let scpVal = $('input[name="scpAvailable"]:checked').val() || ""; |
|
|
let scpVal = $('input[name="scpAvailable"]:checked').val() || ""; |
|
|
let mhVal = $('input[name="mhAvailable"]:checked').val(); |
|
|
let mhVal = $('input[name="mhAvailable"]:checked').val(); |
|
|
@ -1636,12 +1687,12 @@ |
|
|
let epVal = $('input[name="epAvailable"]:checked').val(); |
|
|
let epVal = $('input[name="epAvailable"]:checked').val(); |
|
|
let bsVal = $('input[name="bsAvailable"]:checked').val(); |
|
|
let bsVal = $('input[name="bsAvailable"]:checked').val(); |
|
|
|
|
|
|
|
|
let hmlVal= $('input[name="hmlAvailable"]:checked').val(); |
|
|
|
|
|
let mmlVal= $('input[name="mmlAvailable"]:checked').val(); |
|
|
|
|
|
let slpVal= $('input[name="slpAvailable"]:checked').val(); |
|
|
|
|
|
|
|
|
let hmlVal = $('input[name="hmlAvailable"]:checked').val(); |
|
|
|
|
|
let mmlVal = $('input[name="mmlAvailable"]:checked').val(); |
|
|
|
|
|
let slpVal = $('input[name="slpAvailable"]:checked').val(); |
|
|
|
|
|
|
|
|
let sewerLength=$("#sewerLength").val().trim(); |
|
|
|
|
|
let sewerSize=$("#sewerSize").val().trim(); |
|
|
|
|
|
|
|
|
let sewerLength = $("#sewerLength").val().trim(); |
|
|
|
|
|
let sewerSize = $("#sewerSize").val().trim(); |
|
|
|
|
|
|
|
|
// Zone |
|
|
// Zone |
|
|
if (!$("#zoneDropdown").val()) { |
|
|
if (!$("#zoneDropdown").val()) { |
|
|
@ -1704,7 +1755,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* if (!rowWidth) { |
|
|
|
|
|
|
|
|
/* if (!rowWidth) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
Swal.fire("Missing Field", "Please enter Right of Way Width.", "warning"); |
|
|
Swal.fire("Missing Field", "Please enter Right of Way Width.", "warning"); |
|
|
return; |
|
|
return; |
|
|
@ -1731,8 +1782,8 @@ |
|
|
if (!validate(minWidth, "Road Min Width")) return; |
|
|
if (!validate(minWidth, "Road Min Width")) return; |
|
|
if (!validate(maxWidth, "Road Max Width")) return; |
|
|
if (!validate(maxWidth, "Road Max Width")) return; |
|
|
|
|
|
|
|
|
if(footpathat){ |
|
|
|
|
|
if(footpathat==='1'){ |
|
|
|
|
|
|
|
|
if (footpathat) { |
|
|
|
|
|
if (footpathat === '1') { |
|
|
if (!footpathDropdown) { |
|
|
if (!footpathDropdown) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
Swal.fire("Missing Field", "Please select LHS Footpath Material Type", "warning"); |
|
|
Swal.fire("Missing Field", "Please select LHS Footpath Material Type", "warning"); |
|
|
@ -1749,7 +1800,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(footpathat==='2'){ |
|
|
|
|
|
|
|
|
if (footpathat === '2') { |
|
|
if (!rhs_footpathDropdown) { |
|
|
if (!rhs_footpathDropdown) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
Swal.fire("Missing Field", "Please select RHS Footpath Material Type", "warning"); |
|
|
Swal.fire("Missing Field", "Please select RHS Footpath Material Type", "warning"); |
|
|
@ -1766,7 +1817,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(footpathat==='3'){ |
|
|
|
|
|
|
|
|
if (footpathat === '3') { |
|
|
if (!footpathDropdown) { |
|
|
if (!footpathDropdown) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
Swal.fire("Missing Field", "Please select LHS Footpath Material Type", "warning"); |
|
|
Swal.fire("Missing Field", "Please select LHS Footpath Material Type", "warning"); |
|
|
@ -1808,14 +1859,14 @@ |
|
|
if (swdVal === "yes") { |
|
|
if (swdVal === "yes") { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let swdlength=$("#swdlength").val().trim(); |
|
|
|
|
|
let swdsize=$("#size").val().trim(); |
|
|
|
|
|
let rhs_swdlength=$("#rhs_swdlength").val().trim(); |
|
|
|
|
|
let rhs_swdsize=$("#rhs_swdsize").val().trim(); |
|
|
|
|
|
|
|
|
let swdlength = $("#swdlength").val().trim(); |
|
|
|
|
|
let swdsize = $("#size").val().trim(); |
|
|
|
|
|
let rhs_swdlength = $("#rhs_swdlength").val().trim(); |
|
|
|
|
|
let rhs_swdsize = $("#rhs_swdsize").val().trim(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(swd_at){ |
|
|
|
|
|
if(swd_at==='1'){ |
|
|
|
|
|
|
|
|
if (swd_at) { |
|
|
|
|
|
if (swd_at === '1') { |
|
|
|
|
|
|
|
|
if (!swdlength) { |
|
|
if (!swdlength) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1828,7 +1879,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(swd_at==='2'){ |
|
|
|
|
|
|
|
|
if (swd_at === '2') { |
|
|
|
|
|
|
|
|
if (!rhs_swdlength) { |
|
|
if (!rhs_swdlength) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1841,7 +1892,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(swd_at==='3'){ |
|
|
|
|
|
|
|
|
if (swd_at === '3') { |
|
|
|
|
|
|
|
|
if (!swdlength) { |
|
|
if (!swdlength) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1880,13 +1931,13 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(scpVal==="yes"){ |
|
|
|
|
|
|
|
|
if (scpVal === "yes") { |
|
|
|
|
|
|
|
|
let scpCount =$("#scpCount").val().trim(); |
|
|
|
|
|
let rhs_scpCount =$("#rhs_scpCount").val().trim(); |
|
|
|
|
|
|
|
|
let scpCount = $("#scpCount").val().trim(); |
|
|
|
|
|
let rhs_scpCount = $("#rhs_scpCount").val().trim(); |
|
|
|
|
|
|
|
|
if(scp_at){ |
|
|
|
|
|
if(scp_at==='1'){ |
|
|
|
|
|
|
|
|
if (scp_at) { |
|
|
|
|
|
if (scp_at === '1') { |
|
|
|
|
|
|
|
|
if (!scpCount) { |
|
|
if (!scpCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1894,7 +1945,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(scp_at==='2'){ |
|
|
|
|
|
|
|
|
if (scp_at === '2') { |
|
|
|
|
|
|
|
|
if (!rhs_scpCount) { |
|
|
if (!rhs_scpCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1902,7 +1953,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(scp_at==='3'){ |
|
|
|
|
|
|
|
|
if (scp_at === '3') { |
|
|
|
|
|
|
|
|
if (!scpCount) { |
|
|
if (!scpCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1923,14 +1974,14 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(mhVal==="yes"){ |
|
|
|
|
|
|
|
|
if (mhVal === "yes") { |
|
|
|
|
|
|
|
|
let mhCount =$("#mhCount").val().trim(); |
|
|
|
|
|
let r_mhCount =$("#r_mhCount").val().trim(); |
|
|
|
|
|
|
|
|
let mhCount = $("#mhCount").val().trim(); |
|
|
|
|
|
let r_mhCount = $("#r_mhCount").val().trim(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mhType){ |
|
|
|
|
|
if(mhType==='1'){ |
|
|
|
|
|
|
|
|
if (mhType) { |
|
|
|
|
|
if (mhType === '1') { |
|
|
|
|
|
|
|
|
if (!mhCount) { |
|
|
if (!mhCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1938,7 +1989,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(mhType==='2'){ |
|
|
|
|
|
|
|
|
if (mhType === '2') { |
|
|
|
|
|
|
|
|
if (!r_mhCount) { |
|
|
if (!r_mhCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1946,7 +1997,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(mhType==='3'){ |
|
|
|
|
|
|
|
|
if (mhType === '3') { |
|
|
|
|
|
|
|
|
if (!mhCount) { |
|
|
if (!mhCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1967,14 +2018,14 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(cpVal === "yes"){ |
|
|
|
|
|
|
|
|
if (cpVal === "yes") { |
|
|
|
|
|
|
|
|
let cpCount =$("#cpCount").val().trim(); |
|
|
|
|
|
let r_cpCount=$("#r_cpCount").val().trim(); |
|
|
|
|
|
|
|
|
let cpCount = $("#cpCount").val().trim(); |
|
|
|
|
|
let r_cpCount = $("#r_cpCount").val().trim(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(cp_at){ |
|
|
|
|
|
if(cp_at==='1'){ |
|
|
|
|
|
|
|
|
if (cp_at) { |
|
|
|
|
|
if (cp_at === '1') { |
|
|
|
|
|
|
|
|
if (!cpCount) { |
|
|
if (!cpCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1982,7 +2033,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(cp_at==='2'){ |
|
|
|
|
|
|
|
|
if (cp_at === '2') { |
|
|
|
|
|
|
|
|
if (!r_cpCount) { |
|
|
if (!r_cpCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -1990,7 +2041,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(cp_at==='3'){ |
|
|
|
|
|
|
|
|
if (cp_at === '3') { |
|
|
|
|
|
|
|
|
if (!cpCount) { |
|
|
if (!cpCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2010,13 +2061,13 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(rwVal === "yes"){ |
|
|
|
|
|
|
|
|
if (rwVal === "yes") { |
|
|
|
|
|
|
|
|
let rwCount =$("#rwCount").val().trim(); |
|
|
|
|
|
let r_rwCount =$("#r_rwCount").val().trim(); |
|
|
|
|
|
|
|
|
let rwCount = $("#rwCount").val().trim(); |
|
|
|
|
|
let r_rwCount = $("#r_rwCount").val().trim(); |
|
|
|
|
|
|
|
|
if(rwh_at){ |
|
|
|
|
|
if(rwh_at==='1'){ |
|
|
|
|
|
|
|
|
if (rwh_at) { |
|
|
|
|
|
if (rwh_at === '1') { |
|
|
|
|
|
|
|
|
if (!rwCount) { |
|
|
if (!rwCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2024,7 +2075,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(rwh_at==='2'){ |
|
|
|
|
|
|
|
|
if (rwh_at === '2') { |
|
|
|
|
|
|
|
|
if (!r_rwCount) { |
|
|
if (!r_rwCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2032,7 +2083,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(rwh_at==='3'){ |
|
|
|
|
|
|
|
|
if (rwh_at === '3') { |
|
|
|
|
|
|
|
|
if (!rwCount) { |
|
|
if (!rwCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2053,9 +2104,9 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(epVal === "yes"){ |
|
|
|
|
|
|
|
|
if (epVal === "yes") { |
|
|
|
|
|
|
|
|
let epCount =$("#epCount").val().trim(); |
|
|
|
|
|
|
|
|
let epCount = $("#epCount").val().trim(); |
|
|
|
|
|
|
|
|
if (!epCount) { |
|
|
if (!epCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2069,9 +2120,9 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(bsVal === "yes"){ |
|
|
|
|
|
|
|
|
if (bsVal === "yes") { |
|
|
|
|
|
|
|
|
let bsCount =$("#bsCount").val().trim(); |
|
|
|
|
|
|
|
|
let bsCount = $("#bsCount").val().trim(); |
|
|
|
|
|
|
|
|
if (!bsCount) { |
|
|
if (!bsCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2082,9 +2133,9 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(slpVal === "yes"){ |
|
|
|
|
|
|
|
|
if (slpVal === "yes") { |
|
|
|
|
|
|
|
|
let slpCount =$("#slpCount").val().trim(); |
|
|
|
|
|
|
|
|
let slpCount = $("#slpCount").val().trim(); |
|
|
|
|
|
|
|
|
if (!slpCount) { |
|
|
if (!slpCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2095,9 +2146,9 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(hmlVal === "yes"){ |
|
|
|
|
|
|
|
|
if (hmlVal === "yes") { |
|
|
|
|
|
|
|
|
let hmlCount =$("#hmlCount").val().trim(); |
|
|
|
|
|
|
|
|
let hmlCount = $("#hmlCount").val().trim(); |
|
|
|
|
|
|
|
|
if (!hmlCount) { |
|
|
if (!hmlCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2108,9 +2159,9 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(mmlVal === "yes"){ |
|
|
|
|
|
|
|
|
if (mmlVal === "yes") { |
|
|
|
|
|
|
|
|
let mmlCount =$("#mmlCount").val().trim(); |
|
|
|
|
|
|
|
|
let mmlCount = $("#mmlCount").val().trim(); |
|
|
|
|
|
|
|
|
if (!mmlCount) { |
|
|
if (!mmlCount) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
@ -2125,7 +2176,7 @@ |
|
|
if (!validate(sewerSize, "Sewer Size")) return; |
|
|
if (!validate(sewerSize, "Sewer Size")) return; |
|
|
|
|
|
|
|
|
let noofcb = $("#noofcb").val().trim(); |
|
|
let noofcb = $("#noofcb").val().trim(); |
|
|
if(noofcb){ |
|
|
|
|
|
|
|
|
if (noofcb) { |
|
|
if (!validate(noofcb, "No of Culverts & Bridges ")) return; |
|
|
if (!validate(noofcb, "No of Culverts & Bridges ")) return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -2174,8 +2225,7 @@ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (crValue !== '' &&(isNaN(crValue) ||parseFloat(crValue) <= 0)) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
if (crValue !== '' && (isNaN(crValue) || parseFloat(crValue) <= 0)) { |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
$('#saveBtn').prop('disabled', false); |
|
|
relayingError = true; |
|
|
relayingError = true; |
|
|
Swal.fire( |
|
|
Swal.fire( |
|
|
@ -2204,7 +2254,7 @@ |
|
|
relayingDetails.push({ |
|
|
relayingDetails.push({ |
|
|
relay_month: month, |
|
|
relay_month: month, |
|
|
relay_year: year, |
|
|
relay_year: year, |
|
|
road_type_material:rrmtype, |
|
|
|
|
|
|
|
|
road_type_material: rrmtype, |
|
|
cr_value: crValue, |
|
|
cr_value: crValue, |
|
|
road_type: roadType, |
|
|
road_type: roadType, |
|
|
remarks: remarks |
|
|
remarks: remarks |
|
|
@ -2216,7 +2266,7 @@ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log("road id>>>>>",$("#roadDropdown").val()); |
|
|
|
|
|
|
|
|
console.log("road id>>>>>", $("#roadDropdown").val()); |
|
|
|
|
|
|
|
|
let payload = { |
|
|
let payload = { |
|
|
|
|
|
|
|
|
@ -2227,44 +2277,44 @@ |
|
|
road_id: $("#roadDropdown").val(), |
|
|
road_id: $("#roadDropdown").val(), |
|
|
|
|
|
|
|
|
road_name: $("#roadDropdown option:selected").data("road-name"), |
|
|
road_name: $("#roadDropdown option:selected").data("road-name"), |
|
|
areaname:$("#areaname").val(), |
|
|
|
|
|
localityname:$("#localityname").val(), |
|
|
|
|
|
|
|
|
areaname: $("#areaname").val(), |
|
|
|
|
|
localityname: $("#localityname").val(), |
|
|
road_type: $("#roadTypeDropdown").val(), |
|
|
road_type: $("#roadTypeDropdown").val(), |
|
|
|
|
|
|
|
|
road_type_material: $("#roadTypeMaterialDropdown").val(), |
|
|
road_type_material: $("#roadTypeMaterialDropdown").val(), |
|
|
|
|
|
|
|
|
road_length: $("#length").val(), |
|
|
road_length: $("#length").val(), |
|
|
road_row_width: $("#row_width").val().trim()|| null, |
|
|
|
|
|
road_avg_width: $("#averageWidth").val().trim()|| null, |
|
|
|
|
|
|
|
|
road_row_width: $("#row_width").val().trim() || null, |
|
|
|
|
|
road_avg_width: $("#averageWidth").val().trim() || null, |
|
|
|
|
|
|
|
|
road_min_width: $("#minWidth").val().trim()|| null, |
|
|
|
|
|
road_max_width: $("#maxWidth").val().trim()|| null, |
|
|
|
|
|
|
|
|
road_min_width: $("#minWidth").val().trim() || null, |
|
|
|
|
|
road_max_width: $("#maxWidth").val().trim() || null, |
|
|
|
|
|
|
|
|
road_area: $("#area").val(), |
|
|
road_area: $("#area").val(), |
|
|
|
|
|
|
|
|
roadfrom:$("#roadFrom").val().trim()|| null, |
|
|
|
|
|
roadto:$("#roadTo").val().trim()|| null, |
|
|
|
|
|
|
|
|
roadfrom: $("#roadFrom").val().trim() || null, |
|
|
|
|
|
roadto: $("#roadTo").val().trim() || null, |
|
|
|
|
|
|
|
|
is_footpath:$('input[name="fpAvailable"]:checked').val(), |
|
|
|
|
|
footpath_from_location: $("#footPathFrom").val()|| null, |
|
|
|
|
|
footpath_to_location: $("#footPathTo").val()|| null, |
|
|
|
|
|
|
|
|
is_footpath: $('input[name="fpAvailable"]:checked').val(), |
|
|
|
|
|
footpath_from_location: $("#footPathFrom").val() || null, |
|
|
|
|
|
footpath_to_location: $("#footPathTo").val() || null, |
|
|
|
|
|
|
|
|
footpathat: $("#fpat").val()|| null, |
|
|
|
|
|
|
|
|
footpathat: $("#fpat").val() || null, |
|
|
|
|
|
|
|
|
footpath_material: $("#footpathDropdown").val()|| null, |
|
|
|
|
|
footpath_length: $("#fplength").val()|| null, |
|
|
|
|
|
footpath_width: $("#fpwidth").val()|| null, |
|
|
|
|
|
|
|
|
footpath_material: $("#footpathDropdown").val() || null, |
|
|
|
|
|
footpath_length: $("#fplength").val() || null, |
|
|
|
|
|
footpath_width: $("#fpwidth").val() || null, |
|
|
|
|
|
|
|
|
rhs_footpathDropdown :$("#rhs_footpathDropdown").val() || null, |
|
|
|
|
|
rhs_fplength : $("#rhs_fplength").val().trim()|| null, |
|
|
|
|
|
rhs_fpwidth :$("#rhs_fpwidth").val().trim()|| null, |
|
|
|
|
|
|
|
|
rhs_footpathDropdown: $("#rhs_footpathDropdown").val() || null, |
|
|
|
|
|
rhs_fplength: $("#rhs_fplength").val().trim() || null, |
|
|
|
|
|
rhs_fpwidth: $("#rhs_fpwidth").val().trim() || null, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
is_swd: $('input[name="swdAvailable"]:checked').val() || "", |
|
|
is_swd: $('input[name="swdAvailable"]:checked').val() || "", |
|
|
swd_from: $("#fromswd").val() || null, |
|
|
swd_from: $("#fromswd").val() || null, |
|
|
swd_to:$("#toswd").val() || null, |
|
|
|
|
|
|
|
|
swd_to: $("#toswd").val() || null, |
|
|
|
|
|
|
|
|
swd_at :$("#swd_at").val()|| null, |
|
|
|
|
|
|
|
|
swd_at: $("#swd_at").val() || null, |
|
|
|
|
|
|
|
|
swd_length: $("#swdlength").val() || null, |
|
|
swd_length: $("#swdlength").val() || null, |
|
|
swd_size: $("#size").val() || null, |
|
|
swd_size: $("#size").val() || null, |
|
|
@ -2272,42 +2322,42 @@ |
|
|
rhs_swdsize: $("#rhs_swdsize").val() || null, |
|
|
rhs_swdsize: $("#rhs_swdsize").val() || null, |
|
|
|
|
|
|
|
|
is_scp: $('input[name="scpAvailable"]:checked').val() || "", |
|
|
is_scp: $('input[name="scpAvailable"]:checked').val() || "", |
|
|
scp_at:$("#scp_at").val()|| null, |
|
|
|
|
|
|
|
|
scp_at: $("#scp_at").val() || null, |
|
|
scp_count: $("#scpCount").val().trim() || null, |
|
|
scp_count: $("#scpCount").val().trim() || null, |
|
|
rhs_scpCount: $("#rhs_scpCount").val().trim() || null, |
|
|
rhs_scpCount: $("#rhs_scpCount").val().trim() || null, |
|
|
|
|
|
|
|
|
is_manhole: $('input[name="mhAvailable"]:checked').val() || "", |
|
|
is_manhole: $('input[name="mhAvailable"]:checked').val() || "", |
|
|
manhole_at :$("#mhType").val()|| null, |
|
|
|
|
|
|
|
|
manhole_at: $("#mhType").val() || null, |
|
|
manhole_count: $("#mhCount").val().trim() || null, |
|
|
manhole_count: $("#mhCount").val().trim() || null, |
|
|
r_mhCount: $("#r_mhCount").val().trim() || null, |
|
|
r_mhCount: $("#r_mhCount").val().trim() || null, |
|
|
|
|
|
|
|
|
is_cpipe: $('input[name="cpAvailable"]:checked').val() || "", |
|
|
is_cpipe: $('input[name="cpAvailable"]:checked').val() || "", |
|
|
cp_at:$("#cp_at").val()|| null, |
|
|
|
|
|
cpipe_count:$("#cpCount").val().trim() || null, |
|
|
|
|
|
r_cpCount:$("#r_cpCount").val().trim() || null, |
|
|
|
|
|
|
|
|
cp_at: $("#cp_at").val() || null, |
|
|
|
|
|
cpipe_count: $("#cpCount").val().trim() || null, |
|
|
|
|
|
r_cpCount: $("#r_cpCount").val().trim() || null, |
|
|
|
|
|
|
|
|
is_rwh: $('input[name="rwAvailable"]:checked').val() || "", |
|
|
is_rwh: $('input[name="rwAvailable"]:checked').val() || "", |
|
|
rwh_at :$("#rwh_at").val()|| null, |
|
|
|
|
|
rwh_count:$("#rwCount").val().trim() || null, |
|
|
|
|
|
r_rwCount:$("#r_rwCount").val().trim() || null, |
|
|
|
|
|
|
|
|
rwh_at: $("#rwh_at").val() || null, |
|
|
|
|
|
rwh_count: $("#rwCount").val().trim() || null, |
|
|
|
|
|
r_rwCount: $("#r_rwCount").val().trim() || null, |
|
|
|
|
|
|
|
|
sewer_length: $("#sewerLength").val().trim()|| null, |
|
|
|
|
|
sewer_size: $("#sewerSize").val().trim()|| null, |
|
|
|
|
|
|
|
|
sewer_length: $("#sewerLength").val().trim() || null, |
|
|
|
|
|
sewer_size: $("#sewerSize").val().trim() || null, |
|
|
|
|
|
|
|
|
is_electric_poles: $('input[name="epAvailable"]:checked').val() || "", |
|
|
is_electric_poles: $('input[name="epAvailable"]:checked').val() || "", |
|
|
ep_count: $('input[name="epAvailable"]:checked').val() === "yes" ? ($("#epCount").val().trim() || null) : null, |
|
|
ep_count: $('input[name="epAvailable"]:checked').val() === "yes" ? ($("#epCount").val().trim() || null) : null, |
|
|
|
|
|
|
|
|
is_streetlight_poles: $('input[name="slpAvailable"]:checked').val() || "", |
|
|
is_streetlight_poles: $('input[name="slpAvailable"]:checked').val() || "", |
|
|
streetlight_poles_count:$('input[name="slpAvailable"]:checked').val() === "yes" ? ($("#slpCount").val().trim() || null) : null, |
|
|
|
|
|
|
|
|
streetlight_poles_count: $('input[name="slpAvailable"]:checked').val() === "yes" ? ($("#slpCount").val().trim() || null) : null, |
|
|
|
|
|
|
|
|
is_hml: $('input[name="hmlAvailable"]:checked').val() || "", |
|
|
is_hml: $('input[name="hmlAvailable"]:checked').val() || "", |
|
|
hml_count:$('input[name="hmlAvailable"]:checked').val() === "yes" ? ($("#hmlCount").val().trim() || null) : null, |
|
|
|
|
|
|
|
|
hml_count: $('input[name="hmlAvailable"]:checked').val() === "yes" ? ($("#hmlCount").val().trim() || null) : null, |
|
|
|
|
|
|
|
|
is_mml:$('input[name="mmlAvailable"]:checked').val() || "", |
|
|
|
|
|
mml_count:$('input[name="mmlAvailable"]:checked').val() === "yes" ? ($("#mmlCount").val().trim() || null) : null, |
|
|
|
|
|
|
|
|
is_mml: $('input[name="mmlAvailable"]:checked').val() || "", |
|
|
|
|
|
mml_count: $('input[name="mmlAvailable"]:checked').val() === "yes" ? ($("#mmlCount").val().trim() || null) : null, |
|
|
|
|
|
|
|
|
culvert_bridge_count: $("#noofcb").val().trim()|| null, |
|
|
|
|
|
details: $("#detailsofcb").val().trim()|| null, |
|
|
|
|
|
|
|
|
culvert_bridge_count: $("#noofcb").val().trim() || null, |
|
|
|
|
|
details: $("#detailsofcb").val().trim() || null, |
|
|
|
|
|
|
|
|
is_busshelter: $('input[name="bsAvailable"]:checked').val() || "", |
|
|
is_busshelter: $('input[name="bsAvailable"]:checked').val() || "", |
|
|
busshelter_count: $('input[name="bsAvailable"]:checked').val() === "yes" ? ($("#bsCount").val().trim() || null) : null, |
|
|
busshelter_count: $('input[name="bsAvailable"]:checked').val() === "yes" ? ($("#bsCount").val().trim() || null) : null, |
|
|
|