<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<html>
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<title>监测要素配置</title>
|
<%@include file="/common/header.jsp" %>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/tour/wetlands/officeBusiness/substituteOffice/unitDispatchGridView.js" charset="UTF-8"></script>
|
<script type="text/javascript" src="<%=request.getContextPath()%>/tour/wetlands/officeBusiness/substituteOffice/unitDispatchWin.js" charset="UTF-8"></script>
|
<script type="text/javascript">
|
var aa = sessionStorage.getItem("user_buttonCode_session");
|
var bb = JSON.parse(aa);
|
console.log("user_buttonCode_session="+bb);
|
|
Ext.onReady(function() {
|
Ext.QuickTips.init();
|
var viewport = new Ext.Viewport({
|
layout : 'fit',
|
border : false,
|
items : [new ElementsGridView()]
|
});
|
});
|
//
|
if(sessionStorage.user_buttonCode_session){
|
var user_buttonCode_session = sessionStorage.user_buttonCode_session;
|
}
|
|
var queryDraffStaffPath = ROOT_PATH + "/unitDispatch/findAllUnitDisPatchDraftStaff.do?unitDispatchType=代厅发文";
|
|
var setStcdSelect={
|
select:function(conbo,record,index){
|
Ext.getCmp("stcd").setValue(record.data['stcd']);
|
}
|
}
|
var setYsSelect={
|
select:function(conbo,record,index){
|
Ext.getCmp("ysid").setValue(record.data['id']);
|
}
|
}
|
|
//选择要素类型联动框 监听器
|
var selectLevelCombo={
|
select: function(combo, record, index) {
|
debugger;
|
Ext.getCmp('mElementsName').clearValue();
|
Ext.getCmp('mElementsName').getStore().setBaseParam('code',combo.value);
|
Ext.getCmp('mElementsName').getStore().load();
|
}
|
}
|
//选择要素名称时给要素名称要提交的表单隐藏元素设值
|
var setLevelValue={
|
select: function(combo, record, index) {
|
Ext.getCmp('ysid').setValue(record.json['ysid']);
|
}
|
}
|
//Excel数据导入
|
function importDate(){
|
var uploadWin = new UpLoadExcelWindow({
|
uploadUrl:ROOT_PATH+"/unitDispatch/excelImportUnitFile.do?fileType=代厅发文",//导入mdb文件
|
templateUrl: ROOT_PATH+'/upload/代厅发文统计表.xls',//模板下载地址
|
templateName:'代厅发文统计表'//模板名称
|
}).show();
|
uploadWin.on("onUploadSuccess", function(form, action){
|
// 提示信息
|
g_showTip("导入成功!");
|
uploadWin.close();
|
}, this);
|
}
|
</script>
|
</head>
|
<body>
|
</body>
|
</html>
|