|
@@ -83,6 +83,8 @@
|
|
|
$(function(){
|
|
|
//alert(0);
|
|
|
getData(g_pageNo,g_pageSize);
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
/**初始时通过向后台传递排序id、排序顺序、初始页码、每页条数**/
|
|
|
function getData(pageNo,pageSize){
|
|
@@ -124,6 +126,52 @@
|
|
|
$("#pageSize").val(pageSize);
|
|
|
return $("#searchForm").formToArray();
|
|
|
}
|
|
|
+ function replyOfWaterInput(e) {
|
|
|
+ var newVal = e.target.value;
|
|
|
+ newVal = parseInt(newVal);
|
|
|
+ var reply = Math.round(newVal / 12);
|
|
|
+ $("#janReply").val(reply);
|
|
|
+ $("#febReply").val(reply);
|
|
|
+ $("#marReply").val(reply);
|
|
|
+ $("#aprReply").val(reply);
|
|
|
+ $("#mayReply").val(reply);
|
|
|
+ $("#junReply").val(reply);
|
|
|
+ $("#julReply").val(reply);
|
|
|
+ $("#augReply").val(reply);
|
|
|
+ $("#septReply").val(reply);
|
|
|
+ $("#octReply").val(reply);
|
|
|
+ $("#novReply").val(reply);
|
|
|
+ $("#decReply").val(reply);
|
|
|
+ }
|
|
|
+ function replyMonth() {
|
|
|
+ var janReply=$("#janReply").val();
|
|
|
+ var febReply=$("#febReply").val();
|
|
|
+ var marReply=$("#marReply").val();
|
|
|
+ var aprReply=$("#aprReply").val();
|
|
|
+ var mayReply=$("#mayReply").val();
|
|
|
+ var junReply=$("#junReply").val();
|
|
|
+ var julReply=$("#julReply").val();
|
|
|
+ var augReply=$("#augReply").val();
|
|
|
+ var septReply=$("#septReply").val();
|
|
|
+ var octReply=$("#octReply").val();
|
|
|
+ var novReply=$("#novReply").val();
|
|
|
+ var decReply=$("#decReply").val();
|
|
|
+ var newVal =
|
|
|
+ parseInt(janReply)+
|
|
|
+ parseInt(febReply)+
|
|
|
+ parseInt(marReply)+
|
|
|
+ parseInt(aprReply)+
|
|
|
+ parseInt(mayReply)+
|
|
|
+ parseInt(junReply)+
|
|
|
+ parseInt(julReply)+
|
|
|
+ parseInt(augReply)+
|
|
|
+ parseInt(septReply)+
|
|
|
+ parseInt(octReply)+
|
|
|
+ parseInt(novReply)+
|
|
|
+ parseInt(decReply);
|
|
|
+ $("#replyOfWater").val(newVal);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
</script>
|
|
|
<body onload="load()">
|
|
@@ -204,10 +252,10 @@
|
|
|
<td>全年计划用水指标:</td>
|
|
|
<td><input type="text" id="planOfWater" name="planOfWater"
|
|
|
value="${plan.planOfWater?string(" 0")}" datatype="n"
|
|
|
- readonly="readonly" /></td>
|
|
|
+ /></td>
|
|
|
<td>全年实际批复指标:</td>
|
|
|
- <td><input type="text" id="replyOfWater"
|
|
|
- name="replyOfWater" value='${plan.replyOfWater?string("0")}' datatype="n" readonly="readonly" /></td>
|
|
|
+ <td><input type="number" id="replyOfWater" oninput="replyOfWaterInput(event)" onpropertychange="replyOfWaterInput(event)"
|
|
|
+ name="replyOfWater" class="textinput" value='${plan.replyOfWater?string("0")}' datatype="n" /></td>
|
|
|
</tr>
|
|
|
<!---<tr>
|
|
|
<td>一季度计划用水指标:</td>
|
|
@@ -261,10 +309,10 @@
|
|
|
value="${plan.janPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>一月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="janReply"
|
|
|
- name="janReply"
|
|
|
+ <td><input type="number" id="janReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="janReply" class="textinput"
|
|
|
<#if plan.janReply??>
|
|
|
- value="${plan.janReply?string(" 0")}" datatype="n" </#if> /></td>
|
|
|
+ value="${plan.janReply!"0"}" datatype="n" </#if> /></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>二月份计划用水指标:</td>
|
|
@@ -274,10 +322,10 @@
|
|
|
value="${plan.febPlan?string(" 0")}" datatype="n"</#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>二月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="febReply"
|
|
|
- name="febReply"
|
|
|
+ <td><input type="number" id="febReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="febReply" class="textinput"
|
|
|
<#if plan.febReply??>
|
|
|
- value="${plan.febReply?string(" 0")}" datatype="n"</#if> /></td>
|
|
|
+ value="${plan.febReply!"0"}" datatype="n"</#if> /></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>三月份计划用水指标:</td>
|
|
@@ -287,10 +335,10 @@
|
|
|
value="${plan.marPlan?string(" 0")}" datatype="n"</#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>三月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="marReply"
|
|
|
- name="marReply"
|
|
|
+ <td><input type="number" id="marReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="marReply" class="textinput"
|
|
|
<#if plan.marReply??>
|
|
|
- value="${plan.marReply?string(" 0")}" datatype="n" </#if> /></td>
|
|
|
+ value="${plan.marReply!"0"}" datatype="n" </#if> /></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>四月份计划用水指标:</td>
|
|
@@ -300,10 +348,10 @@
|
|
|
value="${plan.aprPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>四月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="aprReply"
|
|
|
- name="aprReply"
|
|
|
+ <td><input type="number" id="aprReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="aprReply" class="textinput"
|
|
|
<#if plan.aprReply??>
|
|
|
- value="${plan.aprReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.aprReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>五月份计划用水指标:</td>
|
|
@@ -313,10 +361,10 @@
|
|
|
value="${plan.mayPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>五月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="mayReply"
|
|
|
- name="mayReply"
|
|
|
+ <td><input type="number" id="mayReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="mayReply" class="textinput"
|
|
|
<#if plan.mayReply??>
|
|
|
- value="${plan.mayReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.mayReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>六月份计划用水指标:</td>
|
|
@@ -326,10 +374,10 @@
|
|
|
value="${plan.junPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>六月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="junReply"
|
|
|
- name="junReply"
|
|
|
+ <td><input type="number" id="junReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="junReply" class="textinput"
|
|
|
<#if plan.junReply??>
|
|
|
- value="${plan.junReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.junReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>七月份计划用水指标:</td>
|
|
@@ -339,10 +387,10 @@
|
|
|
value="${plan.julPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>七月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="julReply"
|
|
|
- name="julReply"
|
|
|
+ <td><input type="number" id="julReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="julReply" class="textinput"
|
|
|
<#if plan.julReply??>
|
|
|
- value="${plan.julReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.julReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>八月份计划用水指标:</td>
|
|
@@ -352,10 +400,10 @@
|
|
|
value="${plan.augPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>八月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="augReply"
|
|
|
- name="augReply"
|
|
|
+ <td><input type="number" id="augReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="augReply" class="textinput"
|
|
|
<#if plan.augReply??>
|
|
|
- value="${plan.augReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.augReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>九月份计划用水指标:</td>
|
|
@@ -365,10 +413,10 @@
|
|
|
value="${plan.septPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>九月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="septReply"
|
|
|
- name="septReply"
|
|
|
+ <td><input type="number" id="septReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="septReply" class="textinput"
|
|
|
<#if plan.septReply??>
|
|
|
- value="${plan.septReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.septReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>十月份计划用水指标:</td>
|
|
@@ -378,10 +426,10 @@
|
|
|
value="${plan.janPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>十月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="octReply"
|
|
|
- name="octReply"
|
|
|
+ <td><input type="number" id="octReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="octReply" class="textinput"
|
|
|
<#if plan.octReply??>
|
|
|
- value="${plan.octReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.octReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>十一月份计划用水指标:</td>
|
|
@@ -391,10 +439,10 @@
|
|
|
value="${plan.novPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>十一月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="novReply"
|
|
|
- name="novReply"
|
|
|
+ <td><input type="number" id="novReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="novReply" class="textinput"
|
|
|
<#if plan.novReply??>
|
|
|
- value="${plan.novReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.novReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>十二月份计划用水指标:</td>
|
|
@@ -404,10 +452,10 @@
|
|
|
value="${plan.decPlan?string(" 0")}" datatype="n" </#if>
|
|
|
readonly="readonly" /></td>
|
|
|
<td>十二月份实际批复用水指标:</td>
|
|
|
- <td><input type="text" id="decReply"
|
|
|
- name="decReply"
|
|
|
+ <td><input type="number" id="decReply" oninput="replyMonth()" onpropertychange="replyMonth()"
|
|
|
+ name="decReply" class="textinput"
|
|
|
<#if plan.decReply??>
|
|
|
- value="${plan.decReply?string(" 0")}" datatype="n" </#if>/></td>
|
|
|
+ value="${plan.decReply!"0"}" datatype="n" </#if>/></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td><span class="star"></span>状态:</td>
|
|
@@ -456,121 +504,121 @@
|
|
|
</tr>--->
|
|
|
<tr>
|
|
|
<td>一月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="janAdjust"
|
|
|
- name="janAdjust"<#if
|
|
|
+ <td><input type="number" id="janAdjust"
|
|
|
+ class="textinput" name="janAdjust"<#if
|
|
|
plan.janAdjust??>
|
|
|
- value="${plan.janAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.janAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="janAdjust1"
|
|
|
name="janAdjust1"<#if
|
|
|
plan.janAdjust??>
|
|
|
- value="${plan.janAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.janAdjust!"0"}" </#if> />
|
|
|
<td>二月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="febAdjust"
|
|
|
- name="febAdjust"<#if
|
|
|
+ <td><input type="number" id="febAdjust"
|
|
|
+ class="textinput" name="febAdjust"<#if
|
|
|
plan.febAdjust??>
|
|
|
- value="${plan.febAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.febAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="febAdjust1"
|
|
|
name="febAdjust1"<#if
|
|
|
plan.febAdjust??>
|
|
|
- value="${plan.febAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.febAdjust!"0"}" </#if> />
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>三月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="marAdjust"
|
|
|
- name="marAdjust"<#if
|
|
|
+ <td><input type="number" id="marAdjust"
|
|
|
+ class="textinput" name="marAdjust"<#if
|
|
|
plan.marAdjust??>
|
|
|
- value="${plan.marAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.marAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="marAdjust1"
|
|
|
name="marAdjust1"<#if
|
|
|
plan.marAdjust??>
|
|
|
- value="${plan.marAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.marAdjust!"0"}" </#if> />
|
|
|
<td>四月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="aprAdjust"
|
|
|
- name="aprAdjust"<#if
|
|
|
+ <td><input type="number" id="aprAdjust"
|
|
|
+ class="textinput" name="aprAdjust"<#if
|
|
|
plan.aprAdjust??>
|
|
|
- value="${plan.aprAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.aprAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="aprAdjust1"
|
|
|
name="aprAdjust1"<#if
|
|
|
plan.aprAdjust??>
|
|
|
- value="${plan.aprAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.aprAdjust!"0"}" </#if> />
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>五月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="mayAdjust"
|
|
|
- name="mayAdjust"<#if
|
|
|
+ <td><input type="number" id="mayAdjust"
|
|
|
+ class="textinput" name="mayAdjust"<#if
|
|
|
plan.mayAdjust??>
|
|
|
- value="${plan.mayAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.mayAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="mayAdjust1"
|
|
|
name="mayAdjust1"<#if
|
|
|
plan.mayAdjust??>
|
|
|
- value="${plan.mayAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.mayAdjust!"0"}" </#if> />
|
|
|
<td>六月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="junAdjust"
|
|
|
- name="junAdjust"<#if plan.junAdjust??>
|
|
|
- value="${plan.junAdjust?string("0")}" </#if> /></td>
|
|
|
+ <td><input type="number" id="junAdjust"
|
|
|
+ class="textinput" name="junAdjust"<#if plan.junAdjust??>
|
|
|
+ value="${plan.junAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="junAdjust1"
|
|
|
name="junAdjust1"<#if
|
|
|
plan.junAdjust??>
|
|
|
- value="${plan.junAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.junAdjust!"0"}" </#if> />
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>七月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="julAdjust"
|
|
|
- name="julAdjust"<#if plan.julAdjust??>
|
|
|
- value="${plan.julAdjust?string("0")}" </#if> /></td>
|
|
|
+ <td><input type="number" id="julAdjust"
|
|
|
+ class="textinput" name="julAdjust"<#if plan.julAdjust??>
|
|
|
+ value="${plan.julAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="julAdjust1"
|
|
|
name="julAdjust1"<#if
|
|
|
plan.julAdjust??>
|
|
|
- value="${plan.julAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.julAdjust!"0"}" </#if> />
|
|
|
<td>八月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="augAdjust"
|
|
|
- name="augAdjust"<#if
|
|
|
+ <td><input type="number" id="augAdjust"
|
|
|
+ class="textinput" name="augAdjust"<#if
|
|
|
plan.augAdjust??>
|
|
|
- value="${plan.augAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.augAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="augAdjust1"
|
|
|
name="augAdjust1"<#if
|
|
|
plan.augAdjust??>
|
|
|
- value="${plan.augAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.augAdjust!"0"}" </#if> />
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>九月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="septAdjust"
|
|
|
- name="septAdjust"<#if
|
|
|
+ <td><input type="number" id="septAdjust"
|
|
|
+ class="textinput" name="septAdjust"<#if
|
|
|
plan.septAdjust??>
|
|
|
- value="${plan.septAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.septAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="septAdjust1"
|
|
|
name="septAdjust1"<#if
|
|
|
plan.septAdjust??>
|
|
|
- value="${plan.septAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.septAdjust!"0"}" </#if> />
|
|
|
<td>十月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="octAdjust"
|
|
|
- name="octAdjust"<#if
|
|
|
+ <td><input type="number" id="octAdjust"
|
|
|
+ class="textinput" name="octAdjust"<#if
|
|
|
plan.octAdjust??>
|
|
|
- value="${plan.octAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.octAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="octAdjust1"
|
|
|
name="octAdjust1"<#if
|
|
|
plan.octAdjust??>
|
|
|
- value="${plan.octAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.octAdjust!"0"}" </#if> />
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>十一月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="novAdjust"
|
|
|
- name="novAdjust"<#if
|
|
|
+ <td><input type="number" id="novAdjust"
|
|
|
+ class="textinput" name="novAdjust"<#if
|
|
|
plan.novAdjust??>
|
|
|
- value="${plan.novAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.novAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="novAdjust1"
|
|
|
name="novAdjust1"<#if
|
|
|
plan.novAdjust??>
|
|
|
- value="${plan.novAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.novAdjust!"0"}" </#if> />
|
|
|
<td>十二月份临时用水指标:</td>
|
|
|
- <td><input type="text" id="decAdjust"
|
|
|
- name="decAdjust"<#if
|
|
|
+ <td><input type="number" id="decAdjust"
|
|
|
+ class="textinput" name="decAdjust"<#if
|
|
|
plan.decAdjust??>
|
|
|
- value="${plan.decAdjust?string("0")}" </#if> /></td>
|
|
|
+ value="${plan.decAdjust!"0"}" </#if> /></td>
|
|
|
<input type="hidden" id="decAdjust1"
|
|
|
name="decAdjust1"<#if
|
|
|
plan.decAdjust??>
|
|
|
- value="${plan.decAdjust?string("0")}" </#if> />
|
|
|
+ value="${plan.decAdjust!"0"}" </#if> />
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>备注</td>
|