赣州市洪水风险预警系统二维版本
xiebin
2023-03-02 b39483c96ae572121d3c619c0b9d37634e682cc4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<%@ 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>