Explorar o código

git-svn-id: https://192.168.57.71/svn/jsgkj@1731 931142cf-59ea-a443-aa0e-51397b428577

ld_zhoutl %!s(int64=8) %!d(string=hai) anos
pai
achega
38758bd292

+ 0 - 16
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/fjsc.jsp

@@ -1,16 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-    <div class="form-group">
-         <label class="col-sm-2 control-label" for="groupid">ÎļþÀàÐÍ</label>
-         <div class="col-sm-4">
-             <select class="selectpicker form-control" id="groupid" name="groupid" title="ÇëÑ¡Ôñ..."></select>
-         </div>
-         <div class="col-sm-6">
-             <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-plus"></i>ä¯ÀÀ
-            </button>
-         </div>
-    </div>
-	<div class="gridmanager">
-	    <table grid-manager="fjscGrid" id="fjscGrid"></table>
-	</div>

+ 0 - 67
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/fzzxx.jsp

@@ -1,67 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-    <input type="hidden" id="id" name="id">
-    <div class="form-group">
-         <label class="col-sm-2 control-label" for="szd">所在地</label>
-         <div class="col-sm-4">
-             <select id="szd" name="szd" title="请选择..."></select>
-         </div>
-         <label class="col-sm-2 control-label" for="ssgq">所属港区</label>
-         <div class="col-sm-4">
-             <select id="ssgq" name="ssgq" title="请选择..."></select>
-         </div>
-    </div>
-    <div class="form-group">
-         <label class="col-sm-2 control-label" for="jyr">港口经营人名称</label>
-         <div class="col-sm-4">
-             <select class="selectpicker form-control" id="jyr" name="jyr" title="请选择..." onchange="getJyrInfo(this);"></select>
-         </div>
-        <label class="col-sm-2 control-label" for="gkjyxkz">港口经营许可证号</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="gkjyxkz" name="gkjyxkz" type="text" />
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="dz">地址</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="dz" name="dz" type="text" />
-        </div>
-        <label class="col-sm-2 control-label" for="fddbr">法定代表人</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="fddbr" name="fddbr" type="text" />
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="aqgljg">安全管理机构</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="aqgljg" name="aqgljg" type="text" />
-        </div>
-        <label class="col-sm-2 control-label" for="aqfz">安全副总</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="aqfz" name="aqfz" type="text" />
-        </div>
-    </div>
-    <div class="form-group">
-        <div><b>安全管理机构负责人信息</b></div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="gqgljgfzrxm">姓名</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="gqgljgfzrxm" name="gqgljgfzrxm" type="text" />
-        </div>
-        <label class="col-sm-2 control-label" for="gqgljgfzrzc">职称</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="gqgljgfzrzc" name="gqgljgfzrzc" type="text" />
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="gqgljgfzrlxdh">联系电话</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="gqgljgfzrlxdh" name="gqgljgfzrlxdh" type="text" />
-        </div>
-        <label class="col-sm-2 control-label" for="gqgljgfzrdzyx">电子邮箱</label>
-        <div class="col-sm-4">
-            <input class="form-control" id="gqgljgfzrdzyx" name="gqgljgfzrdzyx" type="text" />
-        </div>
-    </div>
-	  	 

+ 0 - 172
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/main.jsp

@@ -1,172 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-<!DOCTYPE html>
-<html>
-<head>
-<title>作业附证申请</title>
-<%@ include file="../layouts/header.jsp"%>
-<script src="<%=base%>/static/js/zyfzsq/index.js"></script>
-<script src="<%=base%>/static/js/zyfzsq/fzzxx.js"></script>
-<script src="<%=base%>/static/js/zyfzsq/whxx.js"></script>
-<script src="<%=base%>/static/js/zyfzsq/zdhqd.js"></script>
-<script src="<%=base%>/static/js/zyfzsq/zyryhz.js"></script>
-<script src="<%=base%>/static/js/zyfzsq/yjsbqd.js"></script>
-<script src="<%=base%>/static/js/zyfzsq/sgyahz.js"></script>
-<script src="<%=base%>/static/js/zyfzsq/fjsc.js"></script>
-<style type="text/css">
-	.chk{
-		vertical-align:top;
-		width:16px;
-		height:16px;
-	}
-</style>
-</head>
-<body class="p_body">
-	<div class="p_all">
-	<div class="p_headdiv">
-		<div class="p_headnav">
-			<img class="p_headnavimg" onclick="gotoHome()" src="<%=base%>/static/images/list/home.png"/>
-		</div>
-		<div class="p_headblock">
-			<div class="p_headleft">安全审批管理 > 作业附证申请</div>
-		</div>
-	</div>
-	<div class="p_block">
-		<div class="p_fucdiv">
-			<div class="p_titlediv">
-				<div class="p_titlename">作业附证申请</div>
-				<div id="totalRecord" class="p_titlerecord">共0条记录</div>
-			</div>
-			<div class="p_buttondiv">
-				<div class="p_buttonbg">
-					<img class="p_buttonimg" src="<%=base%>/static/images/list/print.png" 
-						onclick="printInfo()" title="打印"/>
-				</div>
-				<div class="p_buttonbg">
-					<img class="p_buttonimg" src="<%=base%>/static/images/list/search.png" 
-						onclick="showSearch()" title="查询"/>
-				</div>
-				<div class="p_buttonbg">
-					<img class="p_buttonimg" src="<%=base%>/static/images/list/edit.png" 
-						onclick="editInfo()" title="修改"/>
-				</div>
-				<div class="p_buttonbg">
-					<img class="p_buttonimg" src="<%=base%>/static/images/list/delete.png" 
-						onclick="delInfo()" title="删除"/>
-				</div>
-				<div class="p_buttonbg">
-					<img class="p_buttonimg" src="<%=base%>/static/images/list/add.png" 
-						onclick="addInfo()" title="新增"/>
-				</div>
-			</div>
-		</div>
-		<div class="p_searchdiv">
-			<table class="tabsearch">
-				<tr class="trsearch">
-					<td class="tdname">所在地</td>
-					<td class="tdcontent">
-						<select class="p_txt" id="srchDdlSzd" name="srchDdlSzd" title="请选择..."></select>
-					</td>
-					<td class="tdname">所属港区</td>
-					<td class="tdcontent">
-						<select class="p_txt" id="srchDdlQq" name="srchDdlQq" title="请选择..."></select>
-					</td>
-					<td class="tdname">港口经营人名称 </td>
-					<td class="tdcontent">
-						<input type="text" id="srchGkjyr" name="srchGkjyr" 
-							class="p_txt" value=""></td>
-					<td class="tdname">
-					</td>
-				</tr>
-				<tr class="trsearch">
-					<td class="tdname">危货等级</td>
-					<td class="tdcontent">
-						<select class="p_txt" id="srchDdlWhdj" name="srchDdlWhdj" title="请选择..."></select>
-					</td>
-					<td class="tdname">法定代表人</td>
-					<td class="tdcontent">
-						<input type="text" id="srchFddbr" name="srchFddbr" 
-							class="p_txt" value=""></td>
-					<td class="tdname">任务状态 </td>
-					<td class="tdcontent">
-						<select class="p_txt" id="srchRwzt" name="srchRwzt" title="请选择..."></select>
-					</td>
-					<td class="tdname">
-						<img class="p_searchbtn" src="<%=base%>/static/images/list/btn_query.png" title="查询"
-							onclick="searchRecord()"/>
-					</td>
-				</tr>
-			</table>
-		</div>
-		<div class="gridmanager">
-		    <table grid-manager="mainGrid" id="mainGrid"></table>
-		</div>
-	</div>
-	<%@ include file="../layouts/footer.jsp"%>
-	</div>
-	<div class="modal fade" id="myModal" tabindex="99999999" role="dialog"
-		aria-labelledby="myModalLabel" aria-hidden="true">
-		<div class="modal-dialog" style="width:900px;height:650px;">
-			<div class="modal-content">
-				<div class="modal-header">
-					<button type="button" class="close" data-dismiss="modal" onclick="closeWin()">
-						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
-					</button>
-					<h6 class="modal-title" id="myModalLabel"></h6>
-				</div>
-				<!-- form 表单信息 -->
-				<div class="modal-body">
-					<!-- fzzxx.jsp 港口危险作业附证申请 -->
-					<!-- whxx.jsp 危险货物港口作业附证申请表 -->
-					<!-- zdhqd.jsp 安全管理制度和操作规程清单 -->
-					<!-- zyryhz.jsp 特种设备作业人员汇总表 -->
-					<!-- yjsbqd.jsp 应急设备设施清单 -->
-					<!-- sgyahz.jsp 事故应急预案汇总表 -->
-					<!-- fjsc.jsp 附件上传 -->
-
-					<form class="form-horizontal" id="zyfzsqform" method="post" >
-					<div id="tt" class="easyui-tabs" data-options="" style="width:870px;"> 
-					    <div id="div_fzzxx" title="危险作业附证申请" data-options=""  style="display:block;padding:10px;">
-					    	<%@ include file="fzzxx.jsp"%>
-					    </div>
-					    <div id="div_whxx" title="危险货物申请" data-options="" style="overflow:auto;padding:20px;display:none;">   
-					        <%@ include file="whxx.jsp"%>
-					    </div>   
-					    <div title="安全管理和操作规程" data-options="" style="padding:20px;display:none;">   
-					         <%@ include file="zdhqd.jsp"%>
-					    </div> 
-					    <div title="特种设备作业人员" data-options="" style="padding:20px;display:none;">   
-					         <%@ include file="zyryhz.jsp"%>
-					    </div>
-					    <div title="应急设备设施" data-options="" style="padding:20px;display:none;">   
-					         <%@ include file="yjsbqd.jsp"%>  
-					    </div>
-					    <div title="事故应急预案" data-options="" style="padding:20px;display:none;">   
-					         <%@ include file="sgyahz.jsp"%>  
-					    </div>
-					    <div title="附件上传" data-options="" style="padding:20px;display:none;">   
-					         <%@ include file="fjsc.jsp"%>  
-					    </div>
-					</div>
-					</form>
-				</div>
-				<!-- form 表单信息 -->
-				
-	            <div class="modal-footer">
-	                    <div class="row">
-	                        <div class="center-block" style="width: 160px;">
-	                            <button id="btnSave" class="btn btn-custom btn-round btn-sm" onclick="save()">
-	                                <i class="glyphicon glyphicon-ok"></i> 保存
-	                            </button>
-	                            <button type="button" class="btn btn-custom btn-round btn-sm" onclick="closeWin()">
-	                                <i class="glyphicon glyphicon-remove"></i> 关闭
-	                            </button>
-	                        </div>
-	                    </div>
-	            </div>
-			</div>
-		</div>
-	</div>
-	<%@ include file="../pop/pop_WxhwName.jsp"%>
-</body>
-</html>

+ 0 - 15
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/sgyahz.jsp

@@ -1,15 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-    <div class="row">
-        <div class="left-block" style="width: 160px;padding:0px 0px 5px 16px;">
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-plus"></i>ÐÂÔö
-            </button>
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-search"></i>²éѯ
-            </button>
-        </div>
-    </div>
-	<div class="gridmanager">
-	    <table grid-manager="sgyahzGrid" id="sgyahzGrid"></table>
-	</div>

+ 0 - 47
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/whxx.jsp

@@ -1,47 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="ifMapviewChk">作业场所</label>
-        <div id="div_zycs" class="col-sm-10" style="padding-top:7px;">
-            <!-- <input type="checkbox" id="zycs" name="zycs" class="chk" value="Y">码头泊位
-            <input type="checkbox" id="zycs" name="zycs" class="chk" value="Y">储罐
-            <input type="checkbox" id="zycs" name="zycs" class="chk" value="Y">堆场
-            <input type="checkbox" id="zycs" name="zycs" class="chk" value="Y">仓库
-            <input type="checkbox" id="zycs" name="zycs" class="chk" value="Y">过驳区 -->
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="ifMapviewChk">产权</label>
-        <div id="div_cq" class="col-sm-10" style="padding-top:7px;">
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="zyfs">作业方式</label>
-        <div class="col-sm-10">
-            <input class="form-control" id="zyfs" name="zyfs" type="text" />
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="ifMapviewChk">危货等级</label>
-        <div id="div_whdj" class="col-sm-10" style="padding-top:7px;">
-        </div>
-    </div>
-    <div class="form-group">
-        <label class="col-sm-2 control-label" for="ifMapviewChk">作业危险货物品名</label>
-        <div class="col-sm-10" style="padding-top:7px;">
-        	<textarea class="form-control" id="zywxhwpm" name="zywxhwpm"/></textarea>
-        </div>
-    </div>
-    <div class="row">
-        <div class="left-block" style="width: 160px;padding:0px 0px 5px 16px;">
-            <button  type="button" id="btnAddWhxx" class="btn btn-custom btn-round btn-sm" onclick="return showWhxx()">
-                <i class="glyphicon glyphicon-plus"></i>新增
-            </button>
-            <button  type="button" id="btnUpdateWhxx" class="btn btn-custom btn-round btn-sm" onclick="return updateWhxxRow()">
-                <i class="glyphicon glyphicon-plus"></i>修改
-            </button>
-        </div>
-    </div>
-	<div class="gridmanager">
-	    <table grid-manager="whxxGrid" id="whxxGrid"></table>
-	</div>

+ 0 - 15
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/yjsbqd.jsp

@@ -1,15 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-    <div class="row">
-        <div class="left-block" style="width: 160px;padding:0px 0px 5px 16px;">
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-plus"></i>ÐÂÔö
-            </button>
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-search"></i>²éѯ
-            </button>
-        </div>
-    </div>
-	<div class="gridmanager">
-	    <table grid-manager="yjsbqdGrid" id="yjsbqdGrid"></table>
-	</div>

+ 0 - 15
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/zdhqd.jsp

@@ -1,15 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-    <div class="row">
-        <div class="left-block" style="width: 160px;padding:0px 0px 5px 16px;">
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-plus"></i>ÐÂÔö
-            </button>
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-search"></i>²éѯ
-            </button>
-        </div>
-    </div>
-	<div class="gridmanager">
-	    <table grid-manager="zdhqdGrid" id="zdhqdGrid"></table>
-	</div>

+ 0 - 15
gkaqv2/trunk/modules/web/src/main/webapp/WEB-INF/view/zyfzsq/zyryhz.jsp

@@ -1,15 +0,0 @@
-<%@ page language="java" contentType="text/html;charset=GBK"
-	pageEncoding="GBK"%>
-    <div class="row">
-        <div class="left-block" style="width: 160px;padding:0px 0px 5px 16px;">
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-plus"></i>ÐÂÔö
-            </button>
-            <button id="btnSave" class="btn btn-success btn-round btn-sm" onclick="save()">
-                <i class="glyphicon glyphicon-search"></i>²éѯ
-            </button>
-        </div>
-    </div>
-	<div class="gridmanager">
-	    <table grid-manager="zyryhzGrid" id="zyryhzGrid"></table>
-	</div>

+ 0 - 48
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/fjsc.js

@@ -1,48 +0,0 @@
-/**
- * js
- */
-
-var fjscGrid = "#fjscGrid";
-
-jQuery(function($) {
-    
-});
-
-/**
- * 初始化Grid
- */
-function initFjscGrid() {
-    //单列表简易渲染
-    var table = $(fjscGrid);
-    table.GM({
-        ajax_url: '',
-        ajax_type: 'POST'
-        ,totals:''// 如果该值不传,或者为无效的数字,将会无视supportAjaxPage的设定而默认为无分页
-        ,columnData: [{
-                key: 'qynbbh',
-                width: '200px',
-                align:'center',
-                text: '文件类型'
-            },{
-                key: 'wxhwm',
-                width: '120px',
-                text: '名称'
-            },{
-                key: 'id',
-                width: '80px',
-                text: '下载',
-                align:'center',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href="#" onclick="deleteWhxxRow(this)");>下载</a>';
-                }
-            }
-        ]
-        ,pagingBefore:function(query){}
-        ,pagingAfter: function(query){}
-        ,sortingBefore:function(query){}
-        ,sortingAfter: function(query){}
-        ,ajax_beforeSend: function(query){}
-        ,ajax_complete: function(data){}
-    },function(query){});
-};

+ 0 - 135
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/fzzxx.js

@@ -1,135 +0,0 @@
-/**
- * js
- */
-
-var zdhqdgrid_selector = "#zdhqdTable";
-
-jQuery(function($) {
-    
-});
-
-/**
- * 初始化Grid
- */
-function initZdhqdGrid() {
-    // 数据表格初始化
-    jQuery(zdhqdgrid_selector).jqGrid({
-        url : basePath + '/zyfzsq/list',
-        mtype : "POST", //提交方式
-        datatype : "json",
-        autowidth: false,
-        height :"auto",
-        width: 828,
-        shrinkToFit: true,
-        sortname : "", //默认的排序列
-        sortorder : "", //默认的排序列
-        colNames : [ 'id','制度名称','文号','发布日期','修订日期','类型','操作'],
-        colModel : [ {
-            name : 'id',
-            index : 'id',
-            key : true,
-            hidden:true,
-            editable : false,
-            sortable : false
-        },{
-            name : 'blbh',
-            index : 'blbh',
-            width:120,
-            editable : false,
-            sortable : false
-        },{
-            name : 'qymc',
-            index : 'qymc',
-            width:120,
-            editable : false,
-            sortable : false
-        },{
-            name : 'realName',
-            index : 'realName',
-            width:120,
-            editable : false,
-            sortable : false
-        },{
-            name : 'loginName',
-            index : 'loginName',
-            width:120,
-            editable : false,
-            sortable : false
-        },{
-            name : 'qymc',
-            index : 'qymc',
-            width:120,
-            editable : false,
-            sortable : false
-        },{
-            name : 'realName',
-            index : 'realName',
-            width:80,
-            editable : false,
-            sortable : false
-        } ],
-        rowNum : _rowNum, //每页显示记录数
-        rowList : _rowList, //用于改变显示行数的下拉列表框的元素数组。
-        page : 1, //设置初始的页码,初始为1
-        rownumbers : true,
-        pagerpos : 'center', //指定分页栏的位置
-        altRows : true, //设置为交替行表格,默认为false
-        multiselect : true, //可以多选
-        multiboxonly : true, //只有选择checkbox才会起作用 
-        loadComplete : function() {
-            var table = this;
-            setTimeout(function() {
-                updatePagerIcons(table);
-                enableTooltips(table);
-            }, 0);
-        },
-        prmNames : {
-             oper : "oper",
-             page : "page",
-             rows : "rows",
-             sort : "sidx",
-             order : "sord"
-        },
-        postData :{
-            condition1 : function(){ return ""; },//查询条件1
-            condition2 : function(){ return ""; }//查询条件2
-        },
-        jsonReader : {
-            root : "list", // json中代表实际模型数据的入口
-            page : "page", // json中代表当前页码的数据
-            total : "pages", // json中代表页码总数的数据
-            records : "total", // json中代表数据行总数的数据
-            repeatitems : false// 如果设为false,则jqGrid在解析json时,会根据name来搜索对应的数据元素
-        },
-        gridComplete: function () {
-            comGridComplete("whxxTable", "editRecord");
-        }
-    });
-    // 隐藏水平垂直滚动条
-    jQuery(zdhqdgrid_selector).closest(".ui-jqgrid-bdiv").css({ 'overflow-x' : 'hidden' ,'overflow-y':'hidden'});
-};
-
-function getJyrInfo(obj){
-    var selVal = $(obj).val();
-    if(selVal != "") {
-        $.ajax({
-            type : "post",
-            url : basePath + "/jyr/initEdit",
-            data : {"id": selVal},
-            success : function (data) {
-                if(data) {
-                    var obj = data[0];
-                    $("#gkjyxkz").val(obj.gkjyxkzh);
-                    $("#dz").val(obj.bgdz);
-                    $("#fddbr").val(obj.fddbr);
-                    $("#aqgljg").val(obj.aqgljg);
-                    //$("#aqfz").val();
-                    $("#gqgljgfzrxm").val(obj.aqbmfzr);
-                    //$("#gqgljgfzrzc").val();
-                    $("#gqgljgfzrlxdh").val(obj.aqfzrlxdh);
-                    //$("#gqgljgfzryx").val();
-                }
-            }
-        });
-    }
-}

+ 0 - 472
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/index.js

@@ -1,472 +0,0 @@
-/**
- * js
- */
-var tabName = "#tt"
-var mainGrid = "#mainGrid";
-jQuery(function($) {
-    // 增加模态框的拖拽功能
-//    $("#myModal").draggable();
-    // 初始化基本信息
-    initBasicData();
-    // 初始化Grid
-    initGrid();
-    // 危险货物
-    initWhxxGrid();
-    // 制度和操作规程清单
-    initZdhqdGrid();
-    // 特种设备作业人员汇总
-    initZyryhzGrid();
-    // 应急设施设备清单
-    initYjsbqdGrid();
-    // 事故应急预案汇总
-    initSgyahzGrid();
-    // 附件上传
-    initFjscGrid();
-    $(tabName).tabs({
-//        fit:true,
-        border:true, 
-        closable:false,
-        plain:true,
-        onSelect:function(title){
-            //alert(title+' is selected');
-        } 
-    });
-    // 设置tab滚动
-    /*$(".tabs-scroller-left").css("display","block");
-    $(".tabs-scroller-right").css("display","block");
-    $(".tabs-scroller-left").css("height","27");
-    $(".tabs-scroller-right").css("height","27");
-    $(".tabs-wrap").css("margin","0px 18px 0px 18px");
-    $(".tabs-wrap").css("width","834");*/
-});
-
-//初始化基本信息
-function initBasicData() {
-    // 初始化所在地下拉列表
-    $.ajax({
-        type : "post",
-        url : basePath + "/zyfzsq/getDdlData",
-        data : {"lx": "szd"},
-        success : function (data) {
-            var select = "#srchDdlSzd"
-            loadComboBox(data, select, true);
-            select = "#szd"
-            loadComboBox(data, select, true);
-            $(select).selectpicker('refresh');
-        }
-    });
-    // 初始化所属港区下拉列表
-    $.ajax({
-        type : "post",
-        url : basePath + "/zyfzsq/getDdlData",
-        data : {"lx": "gq"},
-        success : function (data) {
-            var select = "#srchDdlQq"
-            loadComboBox(data, select, true);
-            select = "#ssgq"
-            loadComboBox(data, select, true);
-            $(select).selectpicker('refresh');
-        }
-    });
-    // 初始化危货等级下拉列表
-    $.ajax({
-        type : "post",
-        url : basePath + "/zyfzsq/getDdlData",
-        data : {"lx": "whdj"},
-        success : function (data) {
-            var select = "#srchDdlWhdj";
-            loadComboBox(data, select, true);
-        }
-    });
-    // 初始化状态下拉列表
-    $.ajax({
-        type : "post",
-        url : basePath + "/zyfzsq/getDdlData",
-        data : {"lx": "rwzt"},
-        success : function (data) {
-            var select = "#srchRwzt";
-            loadComboBox(data, select, true);
-        }
-    });
-    // 初始化经营人下拉列表
-    $.ajax({
-        type : "post",
-        url : basePath + "/jyr/getSelect",
-        success : function (data) {
-            var select = "#jyr";
-            loadComboBox(data, select, true);
-            $(select).selectpicker('refresh');
-        }
-    });
-    // 初始化作业场所check框
-    $.ajax({
-        type : "post",
-        url : basePath + "/zyfzsq/getDdlData",
-        data : {"lx": "zycs"},
-        success : function (data) {
-            var chkDiv = "#div_zycs";
-            var chkStr = "";
-            $.each(data, function() {
-                chkStr += "<input type='checkbox' id='zycs' name='zycs' class='chk' value='" 
-                    + this.optVal + "'>" + this.optName+"&emsp;";
-            });
-            $(chkDiv).html(chkStr);
-            $(':checkbox[name=zycs]').each(function() {
-                $(this).click(function() {
-                    if ($(this).prop('checked')) {
-                        $(':checkbox[name=zycs]').removeAttr('checked');
-                        $(this).prop('checked',true);
-                    }
-                });
-            });
-        }
-    });
-    // 初始化产权check框
-    $.ajax({
-        type : "post",
-        url : basePath + "/zyfzsq/getDdlData",
-        data : {"lx": "cq"},
-        success : function (data) {
-            var chkDiv = "#div_cq";
-            var chkStr = "";
-            $.each(data, function() {
-                chkStr += "<input type='checkbox' id='cq' name='cq' class='chk' value='" 
-                    + this.optVal + "'>" + this.optName+"&emsp;";
-            });
-            $(chkDiv).html(chkStr);
-            $(':checkbox[name=cq]').each(function() {
-                $(this).click(function() {
-                    if ($(this).prop('checked')) {
-                        $(':checkbox[name=cq]').removeAttr('checked');
-                        $(this).prop('checked',true);
-                    }
-                });
-            });
-        }
-    });
-    // 初始化危货等级check框
-    $.ajax({
-        type : "post",
-        url : basePath + "/zyfzsq/getDdlData",
-        data : {"lx": "whdj"},
-        success : function (data) {
-            var chkDiv = "#div_whdj";
-            var chkStr = "";
-            $.each(data, function() {
-                chkStr += "<input type='checkbox' id='whdj' name='whdj' class='chk' value='" 
-                    + this.optVal + "'>" + this.optName+"&emsp;";
-            });
-            $(chkDiv).html(chkStr);
-            $(':checkbox[name=whdj]').each(function() {
-                $(this).click(function() {
-                    if ($(this).prop('checked')) {
-                        $(':checkbox[name=whdj]').removeAttr('checked');
-                        $(this).prop('checked',true);
-                    }
-                });
-            });
-        }
-    });
-}
-
-/**
- * 只启用主信息tab
- */
-function enableMain(){
-    //$(tabName).tabs('enableTab', 0);
-    for(var i=1;i<7;i++) {
-        $(tabName).tabs('disableTab', i);  
-    }
-}
-/**
- * 启用所有tab
- */
-function enableAll(){
-    for(var i=1;i<7;i++) {
-        $(tabName).tabs('enableTab', i);
-    }
-}
-
-/**
- * 初始化Grid
- */
-function initGrid() {
-    //单列表简易渲染
-    var table = $(mainGrid);
-    table.GM({
-        ajax_url: basePath + '/zyfzsq/list'
-        ,ajax_type: 'POST'
-        ,columnData: [{
-                key: 'blbh',
-                width: '100px',
-                align:'center',
-                text: '办理编号'
-            },{
-                key: 'jyr',
-                width: '100px',
-                align:'center',
-                text: '港口经营人名称'
-            },{
-                key: 'state',
-                width: '100px',
-                text: '任务状态'
-            },{
-                key: 'fzjg',
-                width: '100px',
-                text: '发证机关'
-            },{
-                key: 'gkjyxkz',
-                width: '100px',
-                text: '附证编号'
-            },{
-                key: 'wxhwpm',
-                width: '100px',
-                text: '危险货物品名'
-            },{
-                key: 'fddbr',
-                width: '60px',
-                text: '法定代表人'
-            },{
-                key: 'gqgljgfzrlxdh',
-                width: '80px',
-                text: '联系电话'
-            },{
-                key: 'ssgq',
-                width: '100px',
-                text: '所属港区'
-            },{
-                key: 'szd',
-                width: '100px',
-                text: '所在地'
-            },{
-                key: 'id',
-                width: '100px',
-                text: '操作',
-                align:'center',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href=javascript:alert(\''+rowObject["id"]+'\');>编辑</a>&emsp;'
-                    +'<a class="operation" href=javascript:alert(\''+rowObject["id"]+'\');>删除</a>';
-                }
-            },{
-                key: 'id',
-                width: '100px',
-                text: '',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href=javascript:alert("这是一个按纽");>'+operation+'</a>';
-                }
-            }
-        ]
-        ,pagingBefore:function(query){}
-        ,pagingAfter: function(query){}
-        ,sortingBefore:function(query){}
-        ,sortingAfter: function(query){}
-        ,ajax_beforeSend: function(query){}
-        ,ajax_complete: function(data){
-            // 显示总记录数
-            showTotalRecord(data);
-            $(mainGrid).GM('hideTh', 'blbh');
-        }
-    },function(query){
-//        console.log('init方法回调query参数', query);
-    });
-};
-
-
-/**
- * 查询事件
- */
-function searchRecord() {
-    showWhxx();
-    // 定义查询参数
-    var obj = {
-        'jyrmc':$("#srchGkjyr").val(),
-        'ssgq':$("#srchDdlQq").val(),
-        'szd':$("#srchDdlSzd").val()
-    };
-    // 设置gird参数
-    $(mainGrid).GM('setQuery',obj);
-    // 查询grid
-    $(mainGrid).GM('refreshGrid',true, null);
-};
-
-
-/**
- * 弹窗显示
- * @param 
- */
-function save() {
-    if($("#id").val() == "") {
-        $.ajax({
-            type : "post",
-            url : basePath + '/zyfzsq/save',
-            dataType:'json',
-            data : $('#zyfzsqform').serialize()
-            , //表单序列化,获取数据
-            success : function(data) {
-                // 成功删除后刷新页面
-                if (data && data.success != false) {
-                    console.info(data);
-                    $("#id").val(data.id);
-                    layer.alert("数据已成功保存!");
-                    searchRecord();
-                    enableAll();
-                } else {
-                    layer.alert("数据保存失败!");
-                }
-            }, //操作成功后的操作!data是后台传过来的值 
-            error: function (XMLHttpRequest, textStatus, errorThrown) {
-                layer.alert("error:" + errorThrown);
-            }
-        });
-    } else {
-        $.ajax({
-            type : "post",
-            url : basePath + '/zyfzsq/saveall',
-            dataType:'json',
-            data : $('#zyfzsqform').serialize()
-            , //表单序列化,获取数据
-            success : function(data) {
-                // 成功删除后刷新页面
-                if (data && data.success != false) {
-                    console.info(data);
-                    $("#id").val(data.id);
-                    layer.alert("数据已成功保存!");
-                    searchRecord();
-                } else {
-                    layer.alert("数据保存失败!");
-                }
-            }, //操作成功后的操作!data是后台传过来的值 
-            error: function (XMLHttpRequest, textStatus, errorThrown) {
-                layer.alert("error:" + errorThrown);
-            }
-        });
-    }
-}
-
-/**
- * 增加信息
- */
-function addInfo() {
-    // 清空表单信息
-    comClearFormData("form");
-    $("#szd").selectpicker('refresh');
-    $("#ssgq").selectpicker('refresh');
-    $("#jyr").selectpicker('refresh');
-    // 弹出模态框
-    showModelDialog("myModal", "新增");
-    enableMain();
-};
-
-/**
- * 删除信息
- */
-function delInfo() {
-    // 获取选择行
-    var ids = getMultiData(mainGrid);
-    if(!isNull(ids)) {
-        layer.confirm('确定删除吗?', {icon: 3, title:'提示'}, function(index){
-            $.ajax({
-                type : 'POST',
-                dataType : "json",
-                data : {"ids":ids},
-                url : basePath + '/zyfzsq/del',//请求的路径                
-                success : function(data) {
-                    layer.close(index);
-                    searchRecord();
-                },
-                error: function (XMLHttpRequest, textStatus, errorThrown) {
-                    layer.close(index);
-                }
-            });
-        });
-    } else {
-        layer.alert("请选择记录");
-    }
-};
-
-/**
- * 编辑信息
- */
-function editInfo() {
-    // 获取选择行
-    var ids = getMultiData(mainGrid);
-    if(isNull(ids) || ids.indexOf(",")!=-1) {
-        layer.alert("请选择且只选择一条记录");
-    } else {
-        // 设置主信息
-        $.ajax({
-            type : 'POST',
-            dataType : "json",
-            data : {"id":ids},
-            url : basePath + '/zyfzsq/initEdit',//请求的路径               
-            success : function(data) {
-                fillMainData(data);
-                showModelDialog("myModal", "编辑");
-                enableAll();
-            },
-            error: function (XMLHttpRequest, textStatus, errorThrown) {
-            }
-        });
-        // 设置危货信息
-        // 定义查询参数
-        var obj = {
-            'fzzyId':ids
-        };
-        // 设置gird参数
-        $(whxxGrid).GM('setQuery',obj);
-        $(whxxGrid).GM('get').ajax_url = basePath + '/zyfzsq/getWhxxByZyId';
-        // 查询grid
-        $(whxxGrid).GM('refreshGrid',true, null);
-    }
-};
-
-function fillMainData(data) {
-    var obj = data.zyfz;
-    $("#id").val(obj.id);
-    $("#szd").val(obj.szd);
-//    $("#szd").selectpicker('refresh');
-    $("#ssgq").val(obj.ssgq);
-//    $("#ssgq").selectpicker('refresh');
-    $("#jyr").val(obj.jyr);
-//    $("#jyr").selectpicker('refresh');
-    $("#gkjyxkz").val(obj.gkjyxkz);
-    $("#dz").val(obj.dz);
-    $("#fddbr").val(obj.fddbr);
-    $("#aqgljg").val(obj.aqgljg);
-    $("#aqfz").val(obj.aqfz);
-    $("#gqgljgfzrxm").val(obj.gqgljgfzrxm);
-    $("#gqgljgfzrzc").val(obj.gqgljgfzrzc);
-    $("#gqgljgfzrlxdh").val(obj.gqgljgfzrlxdh);
-    $("#gqgljgfzrdzyx").val(obj.gqgljgfzrdzyx);
-    // whxx
-    $("#zyfs").val(obj.zyfs);
-    $(':checkbox[name=zycs]').removeAttr('checked');
-    $(':checkbox[name=zycs]').each(function() {
-        if ($(this).val() == obj.zycs) {
-            $(this).prop('checked',true);
-        }
-    });
-    $(':checkbox[name=cq]').removeAttr('checked');
-    $(':checkbox[name=cq]').each(function() {
-        if ($(this).val() == obj.cq) {
-            $(this).prop('checked',true);
-        }
-    });
-    $(':checkbox[name=whdj]').removeAttr('checked');
-    $(':checkbox[name=whdj]').each(function() {
-        if ($(this).val() == obj.whdj) {
-            $(this).prop('checked',true);
-        }
-    });
-    $("#zywxhwpm").val(obj.zywxhwpm);
-}
-
-/**
- * 关闭当前窗口
- */
-function closeWin() {
-    $(tabName).tabs("select",0);
-    hideModelDialog("myModal");
-}

+ 0 - 48
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/sgyahz.js

@@ -1,48 +0,0 @@
-/**
- * js
- */
-
-var sgyahzGrid = "#sgyahzGrid";
-
-jQuery(function($) {
-    
-});
-
-/**
- * 初始化Grid
- */
-function initSgyahzGrid() {//单列表简易渲染
-    var table = $(sgyahzGrid);
-    table.GM({
-        ajax_url: '',
-        ajax_type: 'POST'
-        ,totals:''// 如果该值不传,或者为无效的数字,将会无视supportAjaxPage的设定而默认为无分页
-        ,columnData: [{
-                key: 'qynbbh',
-                width: '',
-                align:'center',
-                text: '预案名称'
-            },{
-                key: 'wxhwm',
-                width: '200px',
-                align:'center',
-                text: '预案类别'
-            },{
-                key: 'id',
-                width: '80px',
-                text: '操作',
-                align:'center',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href="#" onclick="deleteWhxxRow(this)");>删除</a>';
-                }
-            }
-        ]
-        ,pagingBefore:function(query){}
-        ,pagingAfter: function(query){}
-        ,sortingBefore:function(query){}
-        ,sortingAfter: function(query){}
-        ,ajax_beforeSend: function(query){}
-        ,ajax_complete: function(data){}
-    },function(query){});
-};

+ 0 - 115
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/whxx.js

@@ -1,115 +0,0 @@
-/**
- * js
- */
-
-var whxxGrid = "#whxxGrid";
-
-jQuery(function($) {
-    
-});
-
-/**
- * 初始化Grid
- */
-function initWhxxGrid() {
-    //单列表简易渲染
-    var table = $(whxxGrid);
-    table.GM({
-        ajax_url: '',
-        ajax_type: 'POST'
-        ,totals:''// 如果该值不传,或者为无效的数字,将会无视supportAjaxPage的设定而默认为无分页
-        ,columnData: [{
-                key: 'qynbbh',
-                width: '200px',
-                align:'center',
-                text: '企业内部编号'
-            },{
-                key: 'wxhwm',
-                width: '280px',
-                text: '允许作业的危险货物品名'
-            },{
-                key: 'id',
-                width: '80px',
-                text: '操作',
-                align:'center',
-                template: function(operation, rowObject){
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href="#" onclick="editWhxxRow(this)");>编辑</a>';
-                }
-            },{
-                key: 'id',
-                width: '80px',
-                text: '操作',
-                align:'center',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href="#" onclick="deleteWhxxRow(this)");>删除</a>';
-                }
-            }
-        ]
-        ,pagingBefore:function(query){}
-        ,pagingAfter: function(query){}
-        ,sortingBefore:function(query){}
-        ,sortingAfter: function(query){}
-        ,ajax_beforeSend: function(query){}
-        ,ajax_complete: function(data){}
-    },function(query){
-//        console.log('init方法回调query参数', query);
-    });
-};
-
-/**
- * 弹出危货新增窗口
- */
-function showWhxx() {
-    //showWxhwpmbPop();
-    // 定义查询参数insertRow
-    var m = Math.random();
-    var obj = {
-        'id':Math.random(),
-        'name':'mbw',
-        'qynbbh':'xxx'+m,
-        'wxhwm':'yyy'+m
-    };
-    $(whxxGrid).GM('insertRow', obj);
-}
-/**
- * 获取数据
- * @param data
- */
-function getPopWxhwpmbData(data) {
-    
-}
-
-/**
- * 删除危货信息
- * @param obj
- */
-function deleteWhxxRow(obj) {
-    $(whxxGrid).GM('deleteRow', obj);
-}
-
-/**
- * 编辑危货信息
- * @param obj
- */
-var linkObj = null;
-function editWhxxRow(obj) {
-    linkObj = obj;
-    var data = $(whxxGrid).GM('getRowData', $(obj).closest("tr"));
-    console.info(data);
-}
-
-/**
- * 编辑危货信息
- * @param obj
- */
-function updateWhxxRow() {
-    var m = Math.random();
-    var dataObj = {
-        'id':Math.random(),
-        'qynbbh':'aaa'+m,
-        'wxhwm':'bbb'+m
-    };
-    var data = $(whxxGrid).GM('updateRow', dataObj, linkObj);
-}

+ 0 - 53
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/yjsbqd.js

@@ -1,53 +0,0 @@
-/**
- * js
- */
-
-var yjsbqdGrid = "#yjsbqdGrid";
-
-jQuery(function($) {
-    
-});
-
-/**
- * 初始化Grid
- */
-function initYjsbqdGrid() {
-    //单列表简易渲染   设施名称','数量','存放场所','操作'
-    var table = $(yjsbqdGrid);
-    table.GM({
-        ajax_url: '',
-        ajax_type: 'POST'
-        ,totals:''// 如果该值不传,或者为无效的数字,将会无视supportAjaxPage的设定而默认为无分页
-        ,columnData: [{
-                key: 'qynbbh',
-                width: '120px',
-                align:'center',
-                text: '设施名称'
-            },{
-                key: 'wxhwm',
-                width: '140px',
-                align:'center',
-                text: '数量'
-            },{
-                key: 'wxhwm',
-                width: '140px',
-                text: '存放场所'
-            },{
-                key: 'id',
-                width: '80px',
-                text: '操作',
-                align:'center',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href="#" onclick="deleteWhxxRow(this)");>操作</a>';
-                }
-            }
-        ]
-        ,pagingBefore:function(query){}
-        ,pagingAfter: function(query){}
-        ,sortingBefore:function(query){}
-        ,sortingAfter: function(query){}
-        ,ajax_beforeSend: function(query){}
-        ,ajax_complete: function(data){}
-    },function(query){});
-};

+ 0 - 64
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/zdhqd.js

@@ -1,64 +0,0 @@
-/**
- * js
- */
-
-var zdhqdGrid = "#zdhqdGrid";
-
-jQuery(function($) {
-    
-});
-
-/**
- * 初始化Grid
- */
-function initZdhqdGrid() {
-    //单列表简易渲染
-    var table = $(zdhqdGrid);
-    table.GM({
-        ajax_url: '',
-        ajax_type: 'POST'
-        ,totals:''// 如果该值不传,或者为无效的数字,将会无视supportAjaxPage的设定而默认为无分页
-        ,columnData: [{
-                key: 'qynbbh',
-                width: '150px',
-                align:'center',
-                text: '制度名称'
-            },{
-                key: 'wxhwm',
-                width: '100px',
-                align:'center',
-                text: '文号'
-            },{
-                key: 'wxhwm',
-                width: '120px',
-                align:'center',
-                text: '发布日期'
-            },{
-                key: 'wxhwm',
-                width: '120px',
-                align:'center',
-                text: '修订日期'
-            },{
-                key: 'wxhwm',
-                width: '110px',
-                align:'center',
-                text: '类型'
-            },{
-                key: 'id',
-                width: '80px',
-                text: '操作',
-                align:'center',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href="#" onclick="deleteWhxxRow(this)");>删除</a>';
-                }
-            }
-        ]
-        ,pagingBefore:function(query){}
-        ,pagingAfter: function(query){}
-        ,sortingBefore:function(query){}
-        ,sortingAfter: function(query){}
-        ,ajax_beforeSend: function(query){}
-        ,ajax_complete: function(data){}
-    },function(query){});
-};

+ 0 - 59
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/zyryhz.js

@@ -1,59 +0,0 @@
-/**
- * js
- */
-
-var zyryhzGrid = "#zyryhzGrid";
-
-jQuery(function($) {
-    
-});
-
-/**
- * 初始化Grid
- */
-function initZyryhzGrid() {
-    //单列表简易渲染
-    var table = $(zyryhzGrid);
-    table.GM({
-        ajax_url: '',
-        ajax_type: 'POST'
-        ,totals:''// 如果该值不传,或者为无效的数字,将会无视supportAjaxPage的设定而默认为无分页
-        ,columnData: [{
-                key: 'qynbbh',
-                width: '120px',
-                align:'center',
-                text: '姓名'
-            },{
-                key: 'wxhwm',
-                width: '140px',
-                align:'center',
-                text: '身份证号'
-            },{
-                key: 'wxhwm',
-                width: '140px',
-                align:'center',
-                text: '职务'
-            },{
-                key: 'wxhwm',
-                width: '140px',
-                align:'center',
-                text: '联系电话'
-            },{
-                key: 'id',
-                width: '80px',
-                text: '操作',
-                align:'center',
-                template: function(operation, rowObject){  
-                    //operation:当前key所对应的单条数据;rowObject:单个一行完整数据
-                    return '<a class="operation" href="#" onclick="deleteWhxxRow(this)");>删除</a>';
-                }
-            }
-        ]
-        ,pagingBefore:function(query){}
-        ,pagingAfter: function(query){}
-        ,sortingBefore:function(query){}
-        ,sortingAfter: function(query){}
-        ,ajax_beforeSend: function(query){}
-        ,ajax_complete: function(data){}
-    },function(query){});
-};