Prechádzať zdrojové kódy

月统计模板+堆场用途

git-svn-id: https://192.168.57.71/svn/jsgkj@1479 931142cf-59ea-a443-aa0e-51397b428577
ld_zhangdong 8 rokov pred
rodič
commit
c3f9769b2a

+ 1 - 1
gkjsjy/trunk/WebContent/WEB-INF/pages/gkjygl/gkjyr/jyrdc/dcview.jsp

@@ -53,7 +53,7 @@
 						</td>
 					</tr>
 					<tr>
-						<th>堆场用途名称:&nbsp;</th>
+						<th>堆场用途:&nbsp;</th>
 						<td >
 							${record.zwdcyt }
 						</td>

+ 16 - 7
gkjsjy/trunk/WebContent/WEB-INF/pages/gkyxtjyfx/hxhbtj/hxhbtjpro.jsp

@@ -33,7 +33,13 @@
 		function edit(data){
 			location.href=$.app+"/hxhbtjpro/edit?id="+data;
 		}
-		
+		function toExport(){
+			var dq = document.getElementById('dq').value;
+			var rq = document.getElementById('rq').value;
+			var url = $.app+"/hxhbtjpro/export?dq="+dq+"&rq="+rq;
+			$("#hxhbtjproform2").attr('action',url);
+			$("#hxhbtjproform2").submit();
+		}
 		function saveMain(){
 			if(isEmpty($('#rq').val())){
 				$.alert({
@@ -156,18 +162,21 @@
 			                <td>
 			                	<input class="Wdate" id="rq" name="rq" value="${rq }" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM'})">
 			                </td>
-	                        <td class="right" >
+	                        <td class="right" style="width:40%">
 			                       	<a class="btn btn-default btn-sm" href="#" onclick="searchMain()">
 								   		<i class="glyphicon glyphicon-search"></i>查询
 							   		</a>
 							   		<c:if test="${dq == null}">
 							   			<a class="btn btn-default btn-sm" href="#" onclick="tjMain()">
-								   		<i class="glyphicon glyphicon-list-alt"></i>统计
-							   		</a>
+								   			<i class="glyphicon glyphicon-list-alt"></i>统计
+							   			</a>
 							   			<a class="btn btn-default btn-sm" href="#" onclick="saveMain()">
-								   		<i class="glyphicon glyphicon-floppy-disk"></i>保存
-							   		</a>
+								   			<i class="glyphicon glyphicon-floppy-disk"></i>保存
+							   			</a>
 							   		</c:if>
+							   		<a class="btn btn-default btn-sm" href="javascript:void(0)" onclick="toExport()">
+							   			<i class="glyphicon glyphicon-list-alt"></i>导出
+						   			</a>
 	                        </td>
 	                    </tr>
                     </table>
@@ -262,7 +271,7 @@
 	  			<jsp:include page="../../pageinfo.jsp"></jsp:include>
 				</c:if>
 				</form>
-				
+				<form id="hxhbtjproform2" method="post"></form>
 		</div>
 			
 		</div>