code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-04-27 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/qyryxx/QyryxxAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/qyryxx/QyryxxAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxxx/qyryxx/qyryxxdetail.js
JavaScript
oos
2,205
<!-- /**************************************************** * <p>处理内容:职业病防护设施</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-24 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zyjk/pxjg/pxxx/qyryxx/qyryxx.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="jgno" id="jgno"/> <!-- grid区域 --> <div id="mainGrid"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxxx/qyryxx/qyryxx.jsp
Java Server Pages
oos
861
/**************************************************** * <p>处理内容:企业人员信息</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-24 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="700"; var openHeight="650"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' }, { line: true }, { text: '查看培训记录', click:f_lookjl, icon:'pager' } ]; var jgno=getUrlParam("strSysno"); if (jgno==null||jgno.length == 0){ //grid = Grid('pjbgjbqkGrid','检测机构评价报告管理',toolbar); grid = Grid('qyryxxGrid','培训信息',toolbar); }else{ grid = sub_Grid('qyryxxGrid','培训信息',toolbar," and pxjgno like '%" +jgno + "%' "); document.getElementById("jgno").value=jgno; } }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/QyryxxAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"企业人员信息", showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and pxjgno like '%" + getUrlParam("strSysno") + "%' "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"//UI/action/zyjk/QyryxxAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } //alert(getUrlParam("strSysno")); myWindow = top.$.ligerDialog.open({ url: webpath+"//UI/action/zyjk/QyryxxAction_findByKey.action?messageBean.method=add&enterno="+getUrlParam("strSysno")+"&strSysno="+strId, width: openWidth,height:openHeight, title: '企业人员信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/QyryxxAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '企业人员信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/zyjk/QyryxxAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '企业人员信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看培训记录*/ function f_lookjl() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/zyjk/QyryxxAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '企业人员信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxxx/qyryxx/qyryxx.js
JavaScript
oos
7,243
/**************************************************** * <p>处理内容:企业培训记录</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-24 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="650"; var openHeight="360"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' }, { line: true }, { text: '查看人员信息', click:f_lookxx, icon:'pager' } ]; $("#zcsj").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); $("#zcsje").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); var jgno=getUrlParam("strSysno"); if (jgno==null||jgno.length == 0){ grid = Grid('qypxjlGrid','培训信息',toolbar); }else{ grid = sub_Grid('qypxjlGrid','企业培训记录列表',toolbar," and pxjgno like '%" +jgno + "%' "); document.getElementById("jgno").value=jgno; } }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/QypxjlAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"企业培训信息", showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere=" "; var jgno=document.getElementById("jgno").value; if(jgno.length>0){ strWhere += " and pxjgno like '%" + jgno + "%' "; } var enternm = $("#enternm").val(); if(enternm.length>0) { strWhere += " and enternm like '%"+enternm+"%' "; } var pxlx = $("#pxlx").val(); if(pxlx.length>0) { strWhere += " and pxlx like '%"+pxlx+"%' "; } var ryxm = $("#ryxm").val(); if(ryxm.length>0) { strWhere += " and ryxm like '%"+ryxm+"%' "; } //开始时间 var zcsj = $("#zcsj").val(); if(zcsj.length>0) { strWhere += " and pxdate >= '"+zcsj+"' "; } //结束时间 var zcsje = $("#zcsje").val(); if(zcsj.length>0) { strWhere += " and pxdate <= '"+zcsje+"' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"//UI/action/zyjk/QypxjlAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } var jgno=document.getElementById("jgno").value; myWindow = top.$.ligerDialog.open({ url: webpath+"//UI/action/zyjk/QypxjlAction_findByKey.action?messageBean.method=add&enterno="+getUrlParam("strSysno")+"&strSysno="+strId+"&jgno="+jgno, width: openWidth,height:openHeight, title: '企业培训信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/zyjk/QypxjlAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '企业培训信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/zyjk/QypxjlAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '企业培训信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看人员信息*/ function f_lookxx() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/zyjk/QyryxxAction_findByKey.action?messageBean.method=look&strSysno="+selected.rybh, width: 700,height:650, title: '企业人员信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: '检测机构设备列表', url:webpath+"/UI/zyjk/jcjg/jcjgsb/jcjgsblist.jsp?strSysno="+selected.sysno }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxxx/qypxjl/qypxjl.js
JavaScript
oos
8,502
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-04-27 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.enterfile.QypxjlBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% QypxjlBean qypxjlBean = (QypxjlBean)request.getAttribute("qypxjlBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>UI/zyjk/pxjg/pxxx/qypxjl//qypxjldetail.js"></script> </head> <body class="menubody" style="width: 580"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 操作method --> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="qypxjlBean.sysno" value="<%=qypxjlBean.getSysno() %>"/> <!-- 隐藏域 企业id --> <input type="hidden" id="enterno" name="qypxjlBean.enterno" value="<%=qypxjlBean.getEnterno() %>"/> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <input name="qypxjlBean.rybh" type="hidden" id="rybh" value="<%=qypxjlBean.getRybh() %>" ltype="text" /> <input name="qypxjlBean.pxjgno" type="hidden" id="pxjgno" value="<%=qypxjlBean.getPxjgno() %>" ltype="text"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">所属单位:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.enternm" type="text" id="enternm" value="<%=qypxjlBean.getEnternm() %>" ltype="text" onkeyup="getEnterinfo(this.value)" /> <div id="_mainGrid" style="position:absolute;z-index: 1001;background: white; width: 200px;" ></div> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">人员姓名:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.ryxm" type="text" id="ryxm" value="<%=qypxjlBean.getRyxm() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">培训类型:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="qypxjlBean.pxlx" type="text" id="pxlx" value="<%=qypxjlBean.getPxlx() %>" ltype="text" validate="{required:true }" />--%> <% DBSelect dbsel = new DBSelect("qypxjlBean.pxlx","PXLX",qypxjlBean.getPxlx()); //dbsel.addAttr("style", "width: 202px;"); dbsel.addAttr("id", "pxlx"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addAttr("showName", "培训类型"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">车间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.cj" type="text" id="cj" value="<%=qypxjlBean.getCj() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">工种:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.gz" type="text" id="gz" value="<%=qypxjlBean.getGz() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">分级:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.fj" type="text" id="fj" value="<%=qypxjlBean.getFj() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">培训机构:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.pxjgmc" type="text" id="pxjgmc" value="<%=qypxjlBean.getPxjgmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">培训机构编号:</td> <td class="l-table-edit-td-left" style="width:160px"> </td> <td class="td_message"></td> --%></tr> <tr> <td class="l-table-edit-td-right">培训日期:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.pxdate" type="text" id="pxdate" value="<%=qypxjlBean.getPxdate() %>" ltype="date" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">培训学时:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.pxxs" type="text" id="pxxs" value="<%=qypxjlBean.getPxxs() %>" ltype="spinner" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">理论考核:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.llkh" type="text" id="llkh" value="<%=qypxjlBean.getLlkh() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">实操考核:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.sckh" type="text" id="sckh" value="<%=qypxjlBean.getSckh() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">补考情况:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.bkqk" type="text" id="bkqk" value="<%=qypxjlBean.getBkqk() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">课程名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qypxjlBean.kcmc" type="text" id="kcmc" value="<%=qypxjlBean.getKcmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxxx/qypxjl/qypxjldetail.jsp
Java Server Pages
oos
8,640
<!-- /**************************************************** * <p>处理内容:企业培训记录</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-24 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zyjk/pxjg/pxxx/qypxjl/qypxjl.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="jgno" id="jgno"/> <div id="layout"> <!-- TREE区域 --> <%--<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> --%><!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >企业名称:</td> <td class="l-table-edit-td-left" > <input name="enternm" type="text" id="enternm" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >培训类型:</td> <td class="l-table-edit-td-left" > <% DBSelect dbsel = new DBSelect("pxlx","PXLX",""); dbsel.addAttr("style", "width: 160px;"); dbsel.addAttr("id", "pxlx"); dbsel.addAttr("class","l-research-area-input"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addAttr("showName", "培训类型"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="l-table-edit-td-right" >人员姓名:</td> <td class="l-table-edit-td-left" > <input name="ryxm" type="text" id="ryxm" ltype="text" class="l-research-area-input"/> </td> </tr> <tr> <td class="l-table-edit-td-right" >自查时间段:</td> <td class="l-table-edit-td-left" colspan="3"> <table> <tr> <td><input name="zcsj" type="text" id="zcsj" ltype="date" /></td> <td>——</td> <td> <input name="zcsje" type="text" id="zcsje" ltype="date" /></td> </tr> </table> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxxx/qypxjl/qypxjl.jsp
Java Server Pages
oos
2,911
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-04-27 新規作成 ; ****************************************************/ var actionurl; var _grid; var grid; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { //初始化表格 $.post(webpath+"/st/system/action/table/table_getColumn.action",{key:'cxqyGrid'},function(data){ _grid = $("#_mainGrid").ligerGrid({checkbox: true, columns:data,pageSizeOptions:[15,20,30,40,50], rownumbers:true, checkbox: false, //parms:{strWhere:" and dwmc like '%"+name+"%'"}, dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=cxqyGrid", width: '200',height:'350',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :false,pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize', pageSize:15, onSelectRow:function (data, rowindex, rowobj) { $("#enterno").val(data.enterno); $("#enternm").val(data.dwmc); // $("#dwdz").val(data.zcdz); //$("#sex").val(data.sex); document.getElementById("_mainGrid").style.display="none"; }, onError:function(){ $.ligerDialog.error(MSG_LOAD_FALL); } }); document.getElementById("_mainGrid").style.display="none"; if(_grid!=null) { return _grid; } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); //初始化表格结束 $.post(webpath+"/st/system/action/table/table_getColumn.action",{key:"qyryxxGrid"},function(data){ grid = colselect.grid.ligerGrid({ checkbox: false, columns:data,pageSizeOptions:[15,20,30,40,50], parms:{strWhere:" and enterno like '%ssaasa%'"}, dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=qyryxxGrid", width: '100%',height:'100%',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :true, pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize', pageSize:10,isScroll: true, onError:function(){ $.ligerDialog.error(MSG_LOAD_FALL); }, onSelectRow:function (data, rowindex, rowobj) { $("#ryxm").val(data.name); $("#rybh").val(data.sysno); colselect.selectBox.hide(); } }); },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); var colselect = $("#ryxm").ligerComboBox({ width: 250, slide: false, selectBoxWidth: 500, selectBoxHeight: 240, valueField: 'name', textField: 'name', grid: { }, onBeforeOpen:function(){ var eno=$("#enterno").val(); if(eno==""||eno==null){ alert("请先选择企业!"); return false; }else{ var strWhere = " "; if(eno.length>0){ strWhere = " and enterno like '%"+eno+"%'"; } //var manager = $("#_mainGrid").ligerGetGridManager(); //初始化查询起始页 grid.set("newPage",1); //初始化查询条件 grid.set("parms",{"strWhere":strWhere}); grid.loadData(true); } } }); var columntree =colselect.grid.ligerGetGridManager(); var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/qypxjl/QypxjlAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/qypxjl/QypxjlAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } }); function getEnterinfo(name){ document.getElementById("_mainGrid").style.display=""; try{ var strWhere = " "; if(name.length>0){ strWhere = " and dwmc like '%"+name+"%'"; } var manager = $("#_mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxxx/qypxjl/qypxjldetail.js
JavaScript
oos
6,443
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*, st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.PxjgbaxxBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/pxjg/login/pxjginfo.js" type="text/javascript"></script> <title>检测机构基本信息</title> <% PxjgbaxxBean pxjgbaxxBean = (PxjgbaxxBean)request.getAttribute("pxjgbaxxBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==pxjgbaxxBean){ pxjgbaxxBean=new PxjgbaxxBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form" action="<%=webpath%>/UI/action/zyjk/PxjgbaAction_insert.action"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="pxjgbaxxBean.sysno" value="<%=pxjgbaxxBean.getSysno()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">机构名称:</td> <td class="l-table-edit-td-left" style="width:360px"> <input name="pxjgbaxxBean.pxjgmc" type="text" id="pxjgmc" value="<%=pxjgbaxxBean.getPxjgmc()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.distcode" type="text" id="distcode" value="<%=pxjgbaxxBean.getDistcode()%>" validate="{required:true}" /> </td> <td class="td_message"></td> --%> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.pxjgdz" type="text" id="pxjgdz" value="<%=pxjgbaxxBean.getPxjgdz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <%--<tr> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.pxjgdz" type="text" id="pxjgdz" value="<%=pxjgbaxxBean.getPxjgdz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> --%><tr> <td class="l-table-edit-td-right">法人代表:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.fddbr" type="text" id="fddbr" value="<%=pxjgbaxxBean.getFddbr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">法人联系电话:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="pxjgbaxxBean.frlxdh" type="text" id="frlxdh" value="<%=pxjgbaxxBean.getFrlxdh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">教务负责人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.jwfzr" type="text" id="jwfzr" value="<%=pxjgbaxxBean.getJwfzr()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">教务负责人联系电话:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.jwfzrlxdh" type="text" id="jwfzrlxdh" value="<%=pxjgbaxxBean.getJwfzrlxdh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">联系人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.jglxr" type="text" id="jglxr" value="<%=pxjgbaxxBean.getJglxr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="pxjgbaxxBean.jglxdh" type="text" id="jglxdh" value="<%=pxjgbaxxBean.getJglxdh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">传真:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.fax" type="text" id="fax" value="<%=pxjgbaxxBean.getFax()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">注册资金:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.Zczj" type="text" id="Zczj" value="<%=pxjgbaxxBean.getZczj()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">成立时间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.creatdate" type="text" id="creatdate" value="<%=pxjgbaxxBean.getCreatdate()%>"ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">职工人数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.zgrs" type="text" id="zgrs" value="<%=pxjgbaxxBean.getZgrs()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">教师(专):</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.zyjs" type="text" id="zyjs" value="<%=pxjgbaxxBean.getZyjs()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">教师(兼):</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.jzjs" type="text" id="jzjs" value="<%=pxjgbaxxBean.getJzjs()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">管理人员:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.glrs" type="text" id="glrs" value="<%=pxjgbaxxBean.getGlrs()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">其他:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.qt" type="text" id="qt" value="<%=pxjgbaxxBean.getQt()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">教学场地:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="pxjgbaxxBean.jxcd" type="text" id="jxcd" value="<%=pxjgbaxxBean.getJxcd()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">自有:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.zy" type="text" id="zy" value="<%=pxjgbaxxBean.getZy()%>" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">租赁:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.zl" type="text" id="zl" value="<%=pxjgbaxxBean.getZl()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">占地面积:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.zdmj" type="text" id="zdmj" value="<%=pxjgbaxxBean.getZdmj()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">电脑数量:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.dnsl" type="text" id="dnsl" value="<%=pxjgbaxxBean.getDnsl()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">发证机关:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.fzjg" type="text" id="fzjg" value="<%=pxjgbaxxBean.getFzjg()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">证书编号:</td> <td class="l-table-edit-td-left" style="width:160px" colspan="4"> <input name="pxjgbaxxBean.zsbh" type="text" id="zsbh" value="<%=pxjgbaxxBean.getZsbh()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">证书有效期始:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.zsyxqs" type="text" id="zsyxqs" value="<%=pxjgbaxxBean.getZsyxqs()%>"ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">证书有效期止:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pxjgbaxxBean.zsyxqz" type="text" id="zsyxqz" value="<%=pxjgbaxxBean.getZsyxqz()%>" ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <%--<input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> --%></td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/pxjg/login/pxjginfo.jsp
Java Server Pages
oos
13,331
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); //top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/PxjgbaAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/PxjgbaAction_update.action"; } $("#distcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 200, textField:'text', treeLeafOnly:true, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { } } }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/pxjg/login/pxjginfo.js
JavaScript
oos
2,814
<!-- /********************************************************************* *<p>处理内容:treemenu列表</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- jmx--------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.T_officerBean"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <% String sysno=request.getParameter("sysno"); T_officerBean officer=(T_officerBean)session.getAttribute(SystemAttributeNames.JCJG_INFO_NAME); //System.out.println("ssssssssssssssssssssss:"+messageBean); if(null==officer){ officer=new T_officerBean(); } %> <head> <title>职业危害防治信息平台-培训机构</title> <script src="<%=webpath%>/UI/zyjk/pxjg/login/pxjgmain.js" type="text/javascript"></script> <style> /* 顶部 */ .l-topmenu{ margin:0; padding:0; height:31px; line-height:31px; background:url('<%=webpath%>images/top.jpg') repeat-x bottom; position:relative; border-top:1px solid #1D438B; } .l-topmenu-logo{ color:#E7E7E7; padding-left:35px; line-height:26px;background:url('<%=webpath%>images/msn.gif') no-repeat 10px 5px;} .l-topmenu-welcome{ position:absolute; height:24px; line-height:24px; right:30px; top:2px;color:#070A0C;} .l-topmenu-welcome a{ color:#E7E7E7; text-decoration:underline} </style> </head> <body class="treemenubody" style="padding:10px"> <div id="topmenu" class="l-topmenu"> <div class="l-topmenu-logo">职业危害防治信息平台-培训机构</div> <div class="l-topmenu-welcome"> </div> </div> <div id="layout"> <div position="left" title="培训机构导航"> <ul id="tree" style="margin-top:3px;"> </div> <div position="center" id="navtab"> <div tabid="1" title="基本信息" > <iframe frameborder="0" name="showmessage" src="<%=webpath%>/UI/action/zyjk/PxjgbaAction_loginFindByKey.action?messageBean.method=edit&strSysno=<%=officer.getLogin_id()%>"></iframe> </div> </div> <div style="height:32px; line-height:32px; text-align:center;"> 信软科技 </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/pxjg/login/pxjgmain.jsp
Java Server Pages
oos
2,565
/********************************************************************* *<p>处理内容:menu列表js</p> *<p>Copyright: Copyright (c) 2013</p> * @author 贾明欣 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 贾明欣 --------- 新规作成<br> ***********************************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var tab; var openWidth="630"; var openHeight="300"; /*初始化*/ $(function (){ try { /*布局*/ $("#layout").ligerLayout({leftWidth: 200}); /*TAB*/ $("#navtab").ligerTab({height:'85%'}); /*TREE*/ $("#tree").ligerTree({ data:[{id:'1',pid:'0',children:[],text:'功能菜单',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', //url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PxjgLoginTree", nodeWidth : 200, checkbox: false, slide: false, onExpand:onExpand, onBeforeExpand: onBeforeExpand, onSelect: function (node) { t_enter(node); } }); tree = $("#tree").ligerGetTreeManager(); tab = $("#navtab").ligerGetTabManager(); }catch (e) { $.ligerDialog.error(e.message); } }); /*双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+data.menuid, width: openWidth,height:openHeight, title: '菜单管理', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } function onBeforeExpand(node){ var nodeid=node.data.id; //alert(node.data.pid); if(node.data.children && (node.data.children.length == 0)){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PxjgLoginTree"); } } /*查看*/ function t_enter(node){ try{ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&strSysno="+getUrlParam("sysno")); }catch (e) { $.ligerDialog.error(e.message); } } /*建立tab*/ function f_addTab(tabid,text, url) { tab.addTabItem({ tabid : tabid,text: text, url: url }); }
zyjk
trunk/WebRoot/UI/zyjk/pxjg/login/pxjgmain.js
JavaScript
oos
3,151
/********************************************************************* *<p>处理内容:menu列表js</p> *<p>Copyright: Copyright (c) 2013</p> * @author 贾明欣 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 贾明欣 --------- 新规作成<br> ***********************************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var tab; var openWidth="630"; var openHeight="300"; /*初始化*/ $(function (){ try { /*布局*/ $("#layout").ligerLayout({leftWidth: 200}); /*TAB*/ $("#navtab").ligerTab({height:'105%'}); /*TREE*/ $("#tree").ligerTree({ data:[{id:'1',pid:'0',children:[],text:'培训机构基本情况',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', nodeWidth : 200, checkbox: false, slide: false, onExpand:onExpand, onBeforeExpand: onBeforeExpand, onSelect: function (node) { t_enter(node); } }); tree = $("#tree").ligerGetTreeManager(); tab = $("#navtab").ligerGetTabManager(); }catch (e) { $.ligerDialog.error(e.message); } }); /*双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+data.menuid, width: openWidth,height:openHeight, title: '菜单管理', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } function onBeforeExpand(node){ var nodeid=node.data.id; //alert(node.data.pid); if(node.data.children && (node.data.children.length == 0)){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PxjginfoTree"); } } /*查看*/ function t_enter(node){ try{ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&strSysno="+getUrlParam("sysno")); }catch (e) { $.ligerDialog.error(e.message); } } /*建立tab*/ function f_addTab(tabid,text, url) { tab.addTabItem({ tabid : tabid,text: text, url: url }); }
zyjk
trunk/WebRoot/UI/zyjk/pxjg/pxjgmain.js
JavaScript
oos
3,060
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-17 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjglist.js"></script> </head> <body class="bodystyle"> <div id="layout"> <!-- TREE区域 <div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> --> <!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >单位名称:</td> <td class="l-table-edit-td-left" > <input name="dwmc" type="text" id="dwmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >资质证书编号:</td> <td class="l-table-edit-td-left" > <input name="zzzsbh" type="text" id="zzzsbh" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >法定代表人:</td> <td class="l-table-edit-td-left" > <input name="fddbr" type="text" id="fddbr" ltype="text" class="l-research-area-input"/> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> <tr> <td class="l-table-edit-td-right" >发证日期:</td> <td class="l-table-edit-td-left" > <input name="fzdate" type="text" id="fzdate" ltype="date" /> </td> <td class="l-table-edit-td-right" >有效期:</td> <td class="l-table-edit-td-left" > <input name="yxq" type="text" id="yxq" ltype="date" /> </td> <td class="l-table-edit-td-right" >联系电话:</td> <td class="l-table-edit-td-left" > <input name="lxdh" type="text" id="lxdh" ltype="text" class="l-research-area-input"/> </td> <td align="left"> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjglist.jsp
Java Server Pages
oos
2,558
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- jmx ---------- Note ------------------- * 1.0 2013-05-17 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="700"; var openHeight="560"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' }, { line: true }, { text: '查看人员', click:f_lookry, icon:'pager' }, { line: true }, { text: '查看评价报告', click:f_lookbg, icon:'pager' }, { line: true }, { text: '查看设备', click:f_looksb, icon:'pager' } ]; grid = Grid('JcjgGrid','检测机构列表',toolbar); $("#fzdate").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); $("#yxq").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { //myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/JcjgbaAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"检测机构列表", //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: data.dwmc+'信息', url: webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+data.sysno }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+data.sysno); }catch (e) { $.ligerDialog.error(e.message); } } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName="); } } /*Tree查看*/ function t_enter(nodeid){ try{ var strWhere = " "; if(nodeid.length>0){ strWhere = " and parentmenuid = '"+nodeid+"' or menuid='"+nodeid+"'"; } var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; //单位名称 var dwmc = $("#dwmc").val(); if(dwmc.length>0) { strWhere += " and dwmc like '%"+dwmc+"%' "; } //资质证书编号 var zzzsbh = $("#zzzsbh").val(); if(zzzsbh.length>0) { strWhere += " and zzzsbh like '%"+zzzsbh+"%' "; } //行政区划 //var distcode = $("#distcode").val(); //if(distcode.length>0) { // strWhere = " and distcode like '%"+distcode+"%' "; //} //发证日期 var fzdate = $("#fzdate").val(); if(fzdate.length>0) { strWhere += " and fzdate like '%"+fzdate+"%' "; } //有效期 var yxq = $("#yxq").val(); if(yxq.length>0) { strWhere += " and yxq like '%"+yxq+"%' "; } //法定代表人 var fddbr = $("#fddbr").val(); if(fddbr.length>0) { strWhere += " and fddbr like '%"+fddbr+"%' "; } //联系电话 var lxdh = $("#lxdh").val(); if(lxdh.length>0) { strWhere += " and lxdh like '%"+lxdh+"%' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } } $.post(webpath+"/UI/action/zyjk/JcjgbaAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; } //myWindow =top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcjgbaAction_findByKey.action?messageBean.method=add&strSysno="+strId, width: openWidth,height:openHeight, title: '检测机构列表', //showMax: true, showToggle: true, showMin: false, isResize: false, slide: false ,buttons: [ /// { text: '确定', onclick: f_selectContactOK }, // { text: '取消', onclick: f_selectContactCancel}] // }); myWindow =top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcjgbaAction_findByKey.action?messageBean.method=add&strSysno="+strId, width: openWidth,height:openHeight, title: '检测机构', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false}); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgbaAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '检测机构', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /// ///// function f_selectContactOK(item, dialog) { var fn=dialog.frame.submitForm || dialog.frame.window.submitForm; //alert(fn); //alert(fn()); //setTimeout(fn,10000) fn(); //f_search(); // dialog.close(); } function f_selectContactCancel(item, dialog) { dialog.close(); } //// /// /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ // myWindow =top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgmain.jsp?sysno="+selected.sysno, width: 1000,height:600, title: '检测机构列表', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.dwmc+'信息', url: webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.sysno }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.sysno); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看机构人员*/ function f_lookry() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ // myWindow =top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgry/jcjgrylist.jsp?strSysno="+selected.sysno, width: 900,height:openHeight, title: '检测机构列表', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: '检测机构人员列表', url:webpath+'/UI/zyjk/jcjg/jcjgry/jcjgrylist.jsp?strSysno='+selected.sysno }); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看机构报告*/ function f_lookbg() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ // myWindow =top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgbg/jcjgbglist.jsp?strSysno="+selected.sysno, width: 900,height:openHeight, title: '检测机构列表', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: '检测机构报告列表', url:webpath+'/UI/zyjk/jcjg/jcjgbg/jcjgbglist.jsp?strSysno='+selected.sysno }); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看机构设备*/ function f_looksb() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ // myWindow =top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgsb/jcjgsblist.jsp?strSysno="+selected.sysno, width: 900,height:openHeight, title: '检测机构列表', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: '检测机构设备列表', url:webpath+"/UI/zyjk/jcjg/jcjgsb/jcjgsblist.jsp?strSysno="+selected.sysno }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjglist.js
JavaScript
oos
12,033
/********************************************************************* *<p>处理内容:menu列表js</p> *<p>Copyright: Copyright (c) 2013</p> * @author 孙雁斌 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.29------------- 新规作成<br> ***********************************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var tab; var openWidth="630"; var openHeight="500"; /*初始化*/ $(function (){ //alert("dwbh:"+document.getElementById("dwbh").value); try { /*布局*/ $("#layout").ligerLayout({leftWidth: 200}); /*TAB*/ $("#navtab").ligerTab({height:'105%'}); /*TREE*/ $("#tree").ligerTree({ //data:[{id:'1',pid:'0',children:[],text:'检测、评价报告与记录',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', nodeWidth : 200, checkbox: false, slide: false, url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=JCReportTree", onExpand:onExpand, onBeforeExpand: onBeforeExpand, onSelect: function (node) { t_enter(node); } }); tree = $("#tree").ligerGetTreeManager(); tab = $("#navtab").ligerGetTabManager(); }catch (e) { $.ligerDialog.error(e.message); } }); /*双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+data.menuid, width: openWidth,height:openHeight, title: '菜单管理', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } function onBeforeExpand(node){ var nodeid=node.data.id; //alert(node.data.pid); if(node.data.children && (node.data.children.length == 0)){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=JCReportTree"); } } /*查看*/ function t_enter(node){ try{ //f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&strSysno="+getUrlParam("enterno")); //alert("sysno:"+getUrlParam("sysno")); //alert("enterno:"+getUrlParam("enterno")); if(node.data.id=='2'||node.data.id=='5'){ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=add&dwbh="+ getUrlParam("enterno") +"&strSysno="+getUrlParam("sysno")+"&bgbh="+getUrlParam("sysno")); }else{ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+getUrlParam("sysno")+"&bgbh="+getUrlParam("sysno")); } }catch (e) { $.ligerDialog.error(e.message); } } /*建立tab*/ function f_addTab(tabid,text, url) { tab.addTabItem({ tabid : tabid,text: text, url: url }); }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.js
JavaScript
oos
3,883
/**************************************************** * <p>处理内容:用人单位配备的防护设施及个人防护用品</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcyrdwfhssxxAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcyrdwfhssxxAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcyrdwfhssxx/jcyrdwfhssxxdetail.js
JavaScript
oos
2,283
/**************************************************** * <p>处理内容:用人单位配备的防护设施及个人防护用品</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="630"; var openHeight="240"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' } ]; var bgbh=getUrlParam("bgbh"); if (bgbh==null||bgbh.length == 0){ //grid = Grid('pjbgjbqkGrid','检测机构评价报告管理',toolbar); grid = Grid('yrdwfhGrid','用人单位配备的防护设施及个人防护用品',toolbar); }else{ //grid = sub_Grid('pjbgjbqkGrid','检测机构评价报告管理',toolbar," and wtdwbh like '%" + jgno+ "%' "); //grid = sub_Grid('jcqkGrid','检测情况',toolbar, " and bgbh like '%" + bgbh+ "%' "); grid = sub_Grid('yrdwfhGrid','用人单位配备的防护设施及个人防护用品',toolbar," and bgbh like '%" + bgbh+ "%' "); document.getElementById("bgbh").value=bgbh; } }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/JcyrdwfhssxxAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"用人单位配备的防护设施及个人防护用品", showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"/UI/action/zyjk/JcyrdwfhssxxAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } var bgbh=document.getElementById("bgbh").value; myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcyrdwfhssxxAction_findByKey.action?messageBean.method=add&enterno="+ getUrlParam("enterno") +"&bgbh="+bgbh+"&strSysno="+strId, width: openWidth,height:openHeight, title: '用人单位配备的防护设施及个人防护用品', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcyrdwfhssxxAction_findByKey.action?messageBean.method=update&enterno="+ getUrlParam("enterno") +"&strSysno="+strId, width: openWidth,height:openHeight, title: '用人单位配备的防护设施及个人防护用品', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcyrdwfhssxxAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '用人单位配备的防护设施及个人防护用品', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcyrdwfhssxx/jcyrdwfhssxx.js
JavaScript
oos
6,960
<!-- /**************************************************** * <p>处理内容:用人单位配备的防护设施及个人防护用品</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.enterfile.JcyrdwfhssxxBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% JcyrdwfhssxxBean jcyrdwfhssxxbean = (JcyrdwfhssxxBean)request.getAttribute("jcyrdwfhssxxbean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgbg/jcyrdwfhssxx/jcyrdwfhssxxdetail.js"></script> </head> <body class="menubody" style="width: 580"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcyrdwfhssxxbean.sysno" value="<%=jcyrdwfhssxxbean.getSysno() %>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <input type="hidden" id="bgbh" name="jcyrdwfhssxxbean.bgbh" value="<%=jcyrdwfhssxxbean.getBgbh() %>"/> <input type="hidden" id="dwbh" name="jcyrdwfhssxxbean.dwbh" value="<%=jcyrdwfhssxxbean.getDwbh() %>"/> <input type="hidden" id="sysno" name="jcyrdwfhssxxbean.jcdwbh" value="<%=jcyrdwfhssxxbean.getJcdwbh() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcyrdwfhssxxbean.dwmc" type="text" id="dwmc" value="<%=jcyrdwfhssxxbean.getDwmc()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">检测单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcyrdwfhssxxbean.jcdwmc" type="text" id="jcdwmc" value="<%=jcyrdwfhssxxbean.getJcdwmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">车间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcyrdwfhssxxbean.cj" type="text" id="cj" value="<%=jcyrdwfhssxxbean.getCj()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">生产工序:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcyrdwfhssxxbean.scgx" type="text" id="scgx" value="<%=jcyrdwfhssxxbean.getScgx() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">防护设施:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcyrdwfhssxxbean.fhss" type="text" id="fhss" value="<%=jcyrdwfhssxxbean.getFhss() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">个人防护用品:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcyrdwfhssxxbean.fhyp" type="text" id="fhyp" value="<%=jcyrdwfhssxxbean.getFhyp()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcyrdwfhssxx/jcyrdwfhssxxdetail.jsp
Java Server Pages
oos
5,118
<!-- /**************************************************** * <p>处理内容:用人单位配备的防护设施及个人防护用品</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zyjk/jcjg/jcjgbg/jcyrdwfhssxx/jcyrdwfhssxx.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="bgbh" id="bgbh"/> <!-- grid区域 --> <div id="mainGrid"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcyrdwfhssxx/jcyrdwfhssxx.jsp
Java Server Pages
oos
894
<!-- /**************************************************** * <p>处理内容:劳动者从业史</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 劳动者从业史 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.enterfile.JcqkBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% JcqkBean jcqkbean = (JcqkBean)request.getAttribute("jcqkbean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgbg/jcqk/jcqkdetail.js"></script> </head> <body class="menubody" style="width: 580"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcqkbean.sysno" value="<%=jcqkbean.getSysno() %>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <input name="jcqkbean.jcdwmc" type="hidden" id="jcdwmc" value="<%=jcqkbean.getJcdwmc() %>" ltype="text" /> <input name="jcqkbean.jcdwbh" type="hidden" id="jcdwbh" value="<%=jcqkbean.getJcdwbh() %>" ltype="text" /> <input type="hidden" id="bgbh" name="jcqkbean.bgbh" value="<%=jcqkbean.getBgbh() %>"/> <input type="hidden" id="dwbh" name="jcqkbean.dwbh" value="<%=jcqkbean.getDwbh() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <%--<td class="l-table-edit-td-right">检测单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.jcdwmc" type="text" id="jcdwmc" value="<%=jcqkbean.getJcdwmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> --%><td class="l-table-edit-td-right">检测类别:</td> <td class="l-table-edit-td-left" colspan="4"> <%--<input name="jcqkbean.jclb" type="text" id="jclb" value="<%=jcqkbean.getJclb() %>" ltype="text" validate="{required:true }" /> --%> <% DBSelect dbsel = new DBSelect("jcqkbean.jclb","JCLB",jcqkbean.getJclb()); dbsel.addAttr("style", "width: 260px;"); dbsel.addAttr("id", "jclb"); // dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addAttr("showName", "检测类别"); dbsel.addOption("请选择",""); dbsel.addAttr("onchange","onChange(this)"); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">车间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.cj" type="text" id="cj" value="<%=jcqkbean.getCj() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">接触工种:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.jcgz" type="text" id="jcgz" value="<%=jcqkbean.getJcgz() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.dwmc" type="text" id="dwmc" value="<%=jcqkbean.getDwmc() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">检测项目:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.jcxm" type="text" id="jcxm" value="<%=jcqkbean.getJcxm() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">作业点:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.zyd" type="text" id="zyd" value="<%=jcqkbean.getZyd() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">接触时间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.jcsj" type="text" id="jcsj" value="<%=jcqkbean.getJcsj() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="01" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">CSTEL:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.cstel" type="text" id="cstel" value="<%=jcqkbean.getCstel()%>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">PCSTEL:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.pcstel" type="text" id="pcstel" value="<%=jcqkbean.getPcstel()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">STEL判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.stelpd" type="text" id="stelpd" value="<%=jcqkbean.getStelpd()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="0205" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">CTWA:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.ctwa" type="text" id="ctwa" value="<%=jcqkbean.getCtwa()%>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">PCTWA:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.pcwta" type="text" id="pcwta" value="<%=jcqkbean.getPcwta() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">TWA判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.twapd" type="text" id="twapd" value="<%=jcqkbean.getTwapd()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="030406" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">接触浓度:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.jcnd" type="text" id="jcnd" value="<%=jcqkbean.getJcnd() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">超限倍数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.cxbs" type="text" id="cxbs" value="<%=jcqkbean.getCxbs()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">浓度判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.ndpd" type="text" id="ndpd" value="<%=jcqkbean.getNdpd() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="07" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">LEX8H:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.lex8h" type="text" id="lex8h" value="<%=jcqkbean.getLex8h() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">噪声标准限值:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.zsbzxz" type="text" id="zsbzxz" value="<%=jcqkbean.getZsbzxz() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">噪声判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.zspd" type="text" id="zspd" value="<%=jcqkbean.getZspd()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="08" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">测量结果:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.cljg" type="text" id="cljg" value="<%=jcqkbean.getCljg() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">震动标准限值:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.zdbzxz" type="text" id="zdbzxz" value="<%=jcqkbean.getZdbzxz() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">震动判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.zdpd" type="text" id="zdpd" value="<%=jcqkbean.getZdpd() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="09" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">电场强度:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.dcqd" type="text" id="dcqd" value="<%=jcqkbean.getDcqd() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">工频标准限值:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.gpbzxz" type="text" id="gpbzxz" value="<%=jcqkbean.getGpbzxz()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">工频判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.gppd" type="text" id="gppd" value="<%=jcqkbean.getGppd()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="10" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">WBGT:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.wbgt" type="text" id="wbgt" value="<%=jcqkbean.getWbgt() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">高温标准限值:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.gwbzxz" type="text" id="gwbzxz" value="<%=jcqkbean.getGwbzxz() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">高温判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.gwpd" type="text" id="gwpd" value="<%=jcqkbean.getGwpd() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <table id="11" style="display:none" class="form-l-table-edit" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="l-table-edit-td-right">辐照度值:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.fzdz" type="text" id="fzdz" value="<%=jcqkbean.getFzdz() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">标准限值:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.bzxz" type="text" id="bzxz" value="<%=jcqkbean.getBzxz() %>" ltype="text" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">单项判定:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcqkbean.dxpd" type="text" id="dxpd" value="<%=jcqkbean.getDxpd() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcqk/jcqkdetail.jsp
Java Server Pages
oos
16,214
/**************************************************** * <p>处理内容:劳动者从业史</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } /* 下拉框选择事件*/ function onChange(obj){ var objid=obj.value; //alert(objid); if(objid=="05"||objid=="02"){ objid="0205"; }else if(objid=="03"||objid=="04"||objid=="06"){ objid="030406"; } //alert(objid); if(null!=document.getElementById(objid)){ document.getElementById("01").style.display="none"; document.getElementById("0205").style.display="none"; document.getElementById("030406").style.display="none"; document.getElementById("07").style.display="none"; document.getElementById("08").style.display="none"; document.getElementById("09").style.display="none"; document.getElementById("10").style.display="none"; document.getElementById("11").style.display="none"; document.getElementById(objid).style.display="block"; } } $(function () { try { /*初始判断下拉框 */ var objid=$("#jclb").val(); //alert(objid); if(objid=="05"||objid=="02"){ objid="0205"; }else if(objid=="03"||objid=="04"||objid=="06"){ objid="030406"; } if(null!=document.getElementById(objid)){ document.getElementById("01").style.display="none"; document.getElementById("0205").style.display="none"; document.getElementById("030406").style.display="none"; document.getElementById("07").style.display="none"; document.getElementById("08").style.display="none"; document.getElementById("09").style.display="none"; document.getElementById("10").style.display="none"; document.getElementById("11").style.display="none"; document.getElementById(objid).style.display="block"; } var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/jcqk/JcqkAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/jcqk/JcqkAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcqk/jcqkdetail.js
JavaScript
oos
4,230
/**************************************************** * <p>处理内容:劳动者从业史</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="650"; var openHeight="325"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' } ]; var bgbh=getUrlParam("bgbh"); if (bgbh==null||bgbh.length == 0){ //grid = Grid('pjbgjbqkGrid','检测机构评价报告管理',toolbar); grid = Grid('jcqkGrid','检测情况',toolbar); }else{ //grid = sub_Grid('pjbgjbqkGrid','检测机构评价报告管理',toolbar," and wtdwbh like '%" + jgno+ "%' "); grid = sub_Grid('jcqkGrid','检测情况',toolbar, " and bgbh like '%" + bgbh+ "%' "); document.getElementById("bgbh").value=bgbh; } }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/jcqk/JcqkAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"检测情况", showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and bgbh like '%" + bgbh+ "%' "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"/UI/action/jcqk/JcqkAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } var bgbh=document.getElementById("bgbh").value; myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcqkAction_findByKey.action?messageBean.method=add&enterno="+ getUrlParam("enterno") +"&bgbh="+bgbh+"&strSysno="+strId, width: openWidth,height:openHeight, title: '检测情况', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcqkAction_findByKey.action?messageBean.method=update&enterno="+ getUrlParam("enterno") +"&strSysno="+strId, width: openWidth,height:openHeight, title: '检测情况', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcqkAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '检测情况', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcqk/jcqk.js
JavaScript
oos
6,560
<!-- /**************************************************** * <p>处理内容:劳动者从业史</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zyjk/jcjg/jcjgbg/jcqk/jcqk.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="bgbh" id="bgbh"/> <!-- grid区域 --> <div id="mainGrid"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcqk/jcqk.jsp
Java Server Pages
oos
865
<!-- /**************************************************** * <p></p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.enterfile.JcpjjyxxBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% JcpjjyxxBean jcpjjyxxbean = (JcpjjyxxBean)request.getAttribute("jcpjjyxxbean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgbg/jcpjjyxx/jcpjjyxxdetail.js"></script> </head> <body class="menubody" style="width: 580"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcpjjyxxbean.sysno" value="<%=jcpjjyxxbean.getSysno() %>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <input type="hidden" id="bgbh" name="jcpjjyxxbean.bgbh" value="<%=jcpjjyxxbean.getBgbh() %>"/> <input type="hidden" id="dwbh" name="jcpjjyxxbean.dwbh" value="<%=jcpjjyxxbean.getDwbh() %>"/> <input type="hidden" id="jcdwbh" name="jcpjjyxxbean.jcdwbh" value="<%=jcpjjyxxbean.getJcdwbh() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcpjjyxxbean.dwmc" type="text" id="dwmc" value="<%=jcpjjyxxbean.getDwmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">检测单位:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcpjjyxxbean.jcdwmc" type="text" id="jcdwmc" value="<%=jcpjjyxxbean.getJcdwmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">组织管理:</td> <td class="l-table-edit-td-left" colspan="4" > <textarea cols="110" rows="4" class="l-textarea" id="zzgl" name="jcpjjyxxbean.zzgl" style="width:475px" validate="{required:true}" ><%=jcpjjyxxbean.getZzgl()%></textarea> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">工程技术:</td> <td class="l-table-edit-td-left" colspan="4" > <textarea cols="110" rows="4" class="l-textarea" id="gcjs" name="jcpjjyxxbean.gcjs" style="width:475px" validate="{required:true}" ><%=jcpjjyxxbean.getGcjs()%></textarea> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">个体防护:</td> <td class="l-table-edit-td-left" colspan="4" > <textarea cols="110" rows="4" class="l-textarea" id="gtfh" name="jcpjjyxxbean.gtfh" style="width:475px" validate="{required:true}" ><%=jcpjjyxxbean.getGtfh()%></textarea> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">卫生保健:</td> <td class="l-table-edit-td-left" colspan="4" > <textarea cols="110" rows="4" class="l-textarea" id="wsbj" name="jcpjjyxxbean.wsbj" style="width:475px" validate="{required:true}" ><%=jcpjjyxxbean.getWsbj()%></textarea> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">应急救援:</td> <td class="l-table-edit-td-left" colspan="4" > <textarea cols="110" rows="4" class="l-textarea" id="yjjy" name="jcpjjyxxbean.yjjy" style="width:475px" validate="{required:true}" ><%=jcpjjyxxbean.getYjjy()%></textarea> </td> <td class="td_message"></td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /><%-- <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> --%></td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcpjjyxx/jcpjjyxxdetail.jsp
Java Server Pages
oos
5,685
/**************************************************** * <p>处理内容:劳动者从业史</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 孙雁斌 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="630"; var openHeight="300"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' } ]; grid = sub_Grid('pcpjjyGrid','检测评价建议',toolbar,""); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/jcpjjyxx/LdzcysAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"检测评价建议", showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and ldzbh like '%" + getUrlParam("strSysno") + "%' "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"//UI/action/ldzcys/LdzcysAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/jcpjjyxx/JcpjjyxxAction_findByKey.action?messageBean.method=add&enterno="+ getUrlParam("enterno") +"&ldzbh="+getUrlParam("strSysno")+"&strSysno="+strId, width: openWidth,height:openHeight, title: '检测评价建议', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/ldzcys/LdzcysAction_findByKey.action?messageBean.method=update&enterno="+ getUrlParam("enterno") +"&strSysno="+strId, width: openWidth,height:openHeight, title: '检测评价建议', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/ldzcys/LdzcysAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '检测评价建议', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcpjjyxx/jcpjjyxx.js
JavaScript
oos
6,215
<!-- /**************************************************** * <p>处理内容:劳动者从业史</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/enterfile/jcpjjyxx/jcpjjyxx.js"></script> </head> <body class="bodystyle"> <!-- grid区域 --> <div id="mainGrid"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcpjjyxx/jcpjjyxx.jsp
Java Server Pages
oos
818
/**************************************************** * <p></p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcpjjyxxAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcpjjyxxAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcpjjyxx/jcpjjyxxdetail.js
JavaScript
oos
2,205
<!-- /********************************************************************* *<p>处理内容:treemenu列表</p> *<p>Copyright: Copyright (c) 2013</p> * @author 孙雁斌 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.29---- 孙雁斌 --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <% String enterno=request.getParameter("enterno"); String sysno=request.getParameter("sysno"); //System.out.println("********************企业编号:"+enterno); %> <head> <script src="<%=webpath%>/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.js" type="text/javascript"></script> </head> <body class="treemenubody" style="padding:10px"> <div id="layout"> <div position="left" title="检测、评价报告与记录"> <ul id="tree" style="margin-top:3px;"> </div> <div position="center" id="navtab"> <div tabid="1" title="检测、评价报告与记录" > <iframe style="height:100%" frameborder="0" name="showmessage" src="<%=webpath%>/UI/action/zyjk/JcjgbgAction_findByKey.action?messageBean.method=look&enterno=<%=enterno%>&strSysno=<%=sysno%>"></iframe> </div> </div></body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.jsp
Java Server Pages
oos
1,522
/**************************************************** * <p>处理内容:评价报告基本情况</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ var actionurl; var _grid ; /* 提交*/ function submitHandler() { uploadImage(); } function sss(){ $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } function bodyload(){ var mess=$("#message").val(); if(mess!=null&&mess!=""&&mess.length>0){ alert(mess); top.tab.reload(top.tab.getSelectedTabItemID()); } } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcjgbgAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"//UI/action/zyjk/JcjgbgAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); $.post(webpath+"/st/system/action/table/table_getColumn.action",{key:'cxqyGrid'},function(data){ _grid = $("#_mainGrid").ligerGrid({checkbox: true, columns:data,pageSizeOptions:[15,20,30,40,50], rownumbers:true, checkbox: false, //parms:{strWhere:" and dwmc like '%"+name+"%'"}, dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=cxqyGrid", width: '200',height:'350',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :false,pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize', pageSize:15, onSelectRow:function (data, rowindex, rowobj) { $("#jsdwbh").val(data.enterno); $("#jsdwmc").val(data.dwmc); //$("#sex").val(data.sex); document.getElementById("_mainGrid").style.display="none"; }, onError:function(){ $.ligerDialog.error(MSG_LOAD_FALL); } }); document.getElementById("_mainGrid").style.display="none"; if(_grid!=null) { return _grid; } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } }); function getEnterinfo(name){ document.getElementById("_mainGrid").style.display=""; try{ //parent.document.getElementById("dwbh").value=name; var strWhere = " "; if(name.length>0){ strWhere = " and dwmc like '%"+name+"%'"; } var manager = $("#_mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); //alert("name:"+name); }catch (e) { $.ligerDialog.error(e.message); } } function uploadImage() { document.getElementById("form").action=actionurl; document.getElementById("form").submit(); }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcjgbginfo.js
JavaScript
oos
4,691
/**************************************************** * <p>处理内容:评价报告基本情况</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 孙雁斌 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="700"; var openHeight="400"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '详细信息', click:f_look, icon:'pager' }, { line: true }, { text: '查看机构信息', click:f_lookjg, icon:'pager' } ]; var jgno=getUrlParam("strSysno"); if (jgno==null||jgno.length == 0){ grid = Grid('pjbgjbqkGrid','检测机构评价报告管理',toolbar); }else{ grid = sub_Grid('pjbgjbqkGrid','检测机构评价报告管理',toolbar," and wtdwbh like '%" + jgno+ "%' "); document.getElementById("jgno").value=jgno; } }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { //myWindow = top.$.ligerDialog.open({url:webpath+"/UI/enterfile/jcjgpjbgjbqk/jcjgpjbgjbqkmain.jsp?sysno="+ data.sysno +"&enterno="+data.enterno, width: openWidth,height:openHeight, title:"劳动者基本信息", //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: data.jsdwmc+'报告信息', url:webpath+'/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.jsp?sysno='+ data.sysno +'&enterno='+data.enterno }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.jsp?sysno='+ data.sysno +'&enterno='+data.enterno); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere =" "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); var jgno = $("#jgno").val(); if(jgno.length>0) { strWhere += " and wtdwbh like '%"+jgno+"%' "; } var jgmc = $("#jgmc").val(); if(jgmc.length>0) { strWhere += " and wtdwmc like '%"+jgmc+"%' "; } var pjlx = $("#pjlx").val(); if(pjlx.length>0) { strWhere += " and pjlx like '%"+pjlx+"%' "; } var jsdwmc = $("#jsdwmc").val(); if(jsdwmc.length>0) { strWhere += " and jsdwmc like '%"+jsdwmc+"%' "; } //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"/UI/action/zyjk/JcjgbgAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcjgbgAction_findByKey.action?messageBean.method=add&jgbh="+getUrlParam("strSysno")+"&strSysno="+strId, width: openWidth,height:openHeight, title: '检测、评价报告与记录', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); //f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgbgAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:450, title: '检测、评价报告与记录', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.jsp?sysno="+ selected.sysno +"&enterno="+selected.enterno, width: 960,height:600, title: '检测、评价报告与记录', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.jsdwmc+'报告信息', url:webpath+'/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.jsp?sysno='+ selected.sysno +'&enterno='+selected.jsdwbh }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgbg/jcjgbgmain.jsp?sysno='+ selected.sysno +'&enterno='+selected.jsdwbh); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看机构信息*/ function f_lookjg() { try { //alert("查看机构信息"); var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '检测机构人员列表', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgmain.jsp?sysno="+selected.wtdwbh, width: 960,height:600, title: '检测机构信息', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.wtdwmc+'机构信息', url:webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.wtdwbh }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.wtdwbh); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcjgbglist.js
JavaScript
oos
8,978
/**************************************************** * <p>处理内容:被检测单位基本信息</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ var actionurl; var _grid ; /* 提交*/ function submitHandler() { uploadImage(); } function ssss(){ $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcdwjbxxAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcdwjbxxAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); //初始化表格 $.post(webpath+"/st/system/action/table/table_getColumn.action",{key:'cxqyGrid'},function(data){ _grid = $("#_mainGrid").ligerGrid({checkbox: true, columns:data,pageSizeOptions:[15,20,30,40,50], rownumbers:true, checkbox: false, //parms:{strWhere:" and dwmc like '%"+name+"%'"}, dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=cxqyGrid", width: '200',height:'350',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :false,pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize', pageSize:15, onSelectRow:function (data, rowindex, rowobj) { $("#dwbh").val(data.enterno); $("#dwmc").val(data.dwmc); $("#dwdz").val(data.zcdz); //$("#sex").val(data.sex); document.getElementById("_mainGrid").style.display="none"; }, onError:function(){ $.ligerDialog.error(MSG_LOAD_FALL); } }); document.getElementById("_mainGrid").style.display="none"; if(_grid!=null) { return _grid; } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); //初始化表格结束 }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } }); function getEnterinfo(name){ document.getElementById("_mainGrid").style.display=""; try{ var strWhere = " "; if(name.length>0){ strWhere = " and dwmc like '%"+name+"%'"; } var manager = $("#_mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } function uploadImage() { document.getElementById("form").action=actionurl; document.getElementById("form").submit(); }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcdwjbxx/jcdwjbxxdetail.js
JavaScript
oos
4,470
/**************************************************** * <p>处理内容:被检测单位基本信息</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="630"; var openHeight="300"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' } ]; grid = sub_Grid('bjcdwjbxxGrid','检测单位基本信息',toolbar,""); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/ldzcys/LdzcysAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"被检测单位基本信息", showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and ldzbh like '%" + getUrlParam("strSysno") + "%' "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"/UI/action/jcdwjbxx/JcdwjbxxAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/jcdwjbxx/JcdwjbxxAction_findByKey.action?messageBean.method=add&enterno="+ getUrlParam("enterno") +"&ldzbh="+getUrlParam("strSysno")+"&strSysno="+strId, width: openWidth,height:openHeight, title: '被检测单位基本信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/jcdwjbxx/JcdwjbxxAction_findByKey.action?messageBean.method=update&enterno="+ getUrlParam("enterno") +"&strSysno="+strId, width: openWidth,height:openHeight, title: '被检测单位基本信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/ldzcys/LdzcysAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '被检测单位基本信息', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcdwjbxx/jcdwjbxx.js
JavaScript
oos
6,254
<!-- /**************************************************** * <p>处理内容:被检测单位基本信息</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/enterfile/jcdwjbxx/jcdwjbxx.js"></script> </head> <body class="bodystyle"> <!-- grid区域 --> <div id="mainGrid"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcdwjbxx/jcdwjbxx.jsp
Java Server Pages
oos
805
<!-- /**************************************************** * <p>处理内容:被检测单位基本信息</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.enterfile.JcdwjbxxBean"/> <jsp:directive.page import="UI.dao.enterfile.QyjbqkBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% JcdwjbxxBean jcdwjbxxbean = (JcdwjbxxBean)request.getAttribute("jcdwjbxxbean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgbg/jcdwjbxx/jcdwjbxxdetail.js"></script> </head> <body class="menubody" style="width: 580"> <div class="searchtitle"> <%--<img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form" enctype="multipart/form-data"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcdwjbxxbean.sysno" value="<%=jcdwjbxxbean.getSysno() %>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <input type="hidden" id="bgbh" name="jcdwjbxxbean.bgbh" value="<%=jcdwjbxxbean.getBgbh() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.dwbh" type="hidden" id="dwbh" value="<%=jcdwjbxxbean.getDwbh() %>" ltype="text" /> <input name="jcdwjbxxbean.dwmc" type="text" id="dwmc" value="<%=jcdwjbxxbean.getDwmc() %>" ltype="text" onkeyup="getEnterinfo(this.value)" validate="{required:true }" /> <div id="_mainGrid" style="position:absolute;z-index: 1001;background: white; width: 200px;" ></div> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">单位地址:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.dwdz" type="text" id="dwdz" value="<%=jcdwjbxxbean.getDwdz() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">所属行业:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.sshy" type="text" id="sshy" value="<%=jcdwjbxxbean.getSshy() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.lxr" type="text" id="lxr" value="<%=jcdwjbxxbean.getLxr() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.lxdh" type="text" id="lxdh" value="<%=jcdwjbxxbean.getLxdh() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">企业规模:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.qygm" type="text" id="qygm" value="<%=jcdwjbxxbean.getQygm() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">企业性质:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.qyxz" type="text" id="qyxz" value="<%=jcdwjbxxbean.getQyxz()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">现有员工人数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.ygrs" type="text" id="ygrs" value="<%=jcdwjbxxbean.getYgrs()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">现有设备总数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.sbzs" type="text" id="sbzs" value="<%=jcdwjbxxbean.getSbzs()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">是否组织职工体检:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcdwjbxxbean.sftj" type="text" id="sftj" value="<%=jcdwjbxxbean.getSftj() %>" ltype="text" validate="{required:true }" />--%> <% DBSelect dbsel = new DBSelect("jcdwjbxxbean.sftj","SF",jcdwjbxxbean.getSftj()); //dbsel.addAttr("style", "width: 130px;"); dbsel.addAttr("id", "sftj"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">体检单位:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.tjdwmc" type="text" id="tjdwmc" value="<%=jcdwjbxxbean.getTjdwmc()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">是否做过预评价:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcdwjbxxbean.sfypj" type="text" id="sfypj" value="<%=jcdwjbxxbean.getSfypj() %>" ltype="text" validate="{required:true }" />--%> <% dbsel = new DBSelect("jcdwjbxxbean.sfypj","SF",jcdwjbxxbean.getSfypj()); //dbsel.addAttr("style", "width: 130px;"); dbsel.addAttr("id", "sfypj"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">是否做过控制效果评价:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcdwjbxxbean.sfkzxgpj" type="text" id="sfkzxgpj" value="<%=jcdwjbxxbean.getSfkzxgpj() %>" ltype="text" validate="{required:true }" />--%> <% dbsel = new DBSelect("jcdwjbxxbean.sfkzxgpj","SF",jcdwjbxxbean.getSfkzxgpj()); //dbsel.addAttr("style", "width: 130px;"); dbsel.addAttr("id", "sfkzxgpj"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">是否做过职业病危害检测:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcdwjbxxbean.sfzywhjc" type="text" id="sfzywhjc" value="<%=jcdwjbxxbean.getSfzywhjc()%>" ltype="text" validate="{required:true }" />--%> <% dbsel = new DBSelect("jcdwjbxxbean.sfzywhjc","SF",jcdwjbxxbean.getSfzywhjc()); //dbsel.addAttr("style", "width: 130px;"); dbsel.addAttr("id", "sfzywhjc"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">是否有立项批复文件:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcdwjbxxbean.sflxpf" type="text" id="sflxpf" value="<%=jcdwjbxxbean.getSflxpf() %>" ltype="text" validate="{required:true }" />--%> <% dbsel = new DBSelect("jcdwjbxxbean.sflxpf","SF",jcdwjbxxbean.getSflxpf()); //dbsel.addAttr("style", "width: 130px;"); dbsel.addAttr("id", "sflxpf"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">是否设有管理机构与管理制度:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcdwjbxxbean.sfslgl" type="text" id="sfslgl" value="<%=jcdwjbxxbean.getSfslgl()%>" ltype="text" validate="{required:true }" />--%> <% dbsel = new DBSelect("jcdwjbxxbean.sfslgl","SF",jcdwjbxxbean.getSfslgl()); //dbsel.addAttr("style", "width: 130px;"); dbsel.addAttr("id", "sfslgl"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">工艺流程:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.gylc" type="hidden" id="gylc" value="<%=jcdwjbxxbean.getGylc() %>" ltype="text" /> <input type="file" name="file" id="file"/> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">现场检测布点图:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.jcbdt" type="hidden" id="jcbdt" value="<%=jcdwjbxxbean.getJcbdt() %>" ltype="text" /> <input type="file" name="bdfile" id="bdfile" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">专家意见:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcdwjbxxbean.zjyj" type="text" id="zjyj" value="<%=jcdwjbxxbean.getZjyj() %>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td colspan="6" align="center" style="font-size: 16px;font-weight: bold;"> <%if(jcdwjbxxbean.getGylc()!=null&&!jcdwjbxxbean.getGylc().equals("null")&&!jcdwjbxxbean.getGylc().equals("")){ %> <a href="<%=webpath+jcdwjbxxbean.getGylc()%>">工艺流程图下载</a> <%} %> </td> </tr> <tr> <td colspan="6" align="center" style="font-size: 16px;font-weight: bold;"> <%if(jcdwjbxxbean.getJcbdt()!=null&&!jcdwjbxxbean.getJcbdt().equals("null")&&!jcdwjbxxbean.getJcbdt().equals("")){ %> <a href="<%=webpath+jcdwjbxxbean.getJcbdt()%>">现场布点图下载</a> <%} %> </td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <%--<input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> --%></td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcdwjbxx/jcdwjbxxdetail.jsp
Java Server Pages
oos
14,194
<!-- /**************************************************** * <p>处理内容:评价报告基本情况</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*, st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.enterfile.JcjgpjbgjbqkBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% JcjgpjbgjbqkBean jcjgpjbgjbqkbean = (JcjgpjbgjbqkBean)request.getAttribute("jcjgpjbgjbqkbean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==jcjgpjbgjbqkbean){ jcjgpjbgjbqkbean=new JcjgpjbgjbqkBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgbg/jcjgbginfo.js"></script> </head> <body class="menubody" style="width:90%;text-align: center;" onload="bodyload()"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form" enctype="multipart/form-data"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcjgpjbgjbqkbean.sysno" value="<%=jcjgpjbgjbqkbean.getSysno() %>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <input type="hidden" id="wtdwbh" name="jcjgpjbgjbqkbean.wtdwbh" value="<%=jcjgpjbgjbqkbean.getWtdwbh() %>"/> <input name="jcjgpjbgjbqkbean.bgfj" type="hidden" id="bgfj" value="<%=jcjgpjbgjbqkbean.getBgfj() %>" ltype="text"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">委托单位:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.wtdwmc" type="text" id="wtdwmc" value="<%=jcjgpjbgjbqkbean.getWtdwmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">建设单位:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.jsdwbh" type="hidden" id="jsdwbh" value="<%=jcjgpjbgjbqkbean.getJsdwbh() %>" /> <input name="jcjgpjbgjbqkbean.jsdwmc" type="text" id="jsdwmc" value="<%=jcjgpjbgjbqkbean.getJsdwmc() %>" onkeyup="getEnterinfo(this.value)" ltype="text"/> <div id="_mainGrid" style="position:absolute;z-index: 1001;background: white; width: 200px;" ></div> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">项目地址:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.xmdz" type="text" id="xmdz" value="<%=jcjgpjbgjbqkbean.getXmdz() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">项目总投资额:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.xmztze" type="text" id="xmztze" value="<%=jcjgpjbgjbqkbean.getXmztze() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">样品数量:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.ypsl" type="text" id="ypsl" value="<%=jcjgpjbgjbqkbean.getYpsl() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">评价类型:</td> <td class="l-table-edit-td-left" style="width:160px"><%-- <input name="jcjgpjbgjbqkbean.pjlx" type="text" id="pjlx" value="<%=jcjgpjbgjbqkbean.getPjlx() %>" ltype="text" validate="{required:true }" /> --%><% DBSelect dbsel = new DBSelect("jcjgpjbgjbqkbean.pjlx","PJLX",jcjgpjbgjbqkbean.getPjlx()); //dbsel.addAttr("style", "width: 202px;"); dbsel.addAttr("id", "pjlx"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addAttr("showName", "评价类型"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">样品采集时间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.ypcjsj" type="text" id="ypcjsj" value="<%=jcjgpjbgjbqkbean.getYpcjsj() %>" ltype="date" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">实验室分析时间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.sysfxsj" type="text" id="sysfxsj" value="<%=jcjgpjbgjbqkbean.getSysfxsj()%>" ltype="date" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">编制人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.bzr" type="text" id="bzr" value="<%=jcjgpjbgjbqkbean.getBzr()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">编制日期:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.bzrq" type="text" id="bzrq" value="<%=jcjgpjbgjbqkbean.getBzrq()%>" ltype="date" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">审核人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.shrxm" type="text" id="shrxm" value="<%=jcjgpjbgjbqkbean.getShrxm() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">审核日期:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.shrq" type="text" id="shrq" value="<%=jcjgpjbgjbqkbean.getShrq() %>" ltype="date" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">授权签字:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.sqqz" type="text" id="sqqz" value="<%=jcjgpjbgjbqkbean.getSqqz()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">签字日期:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.qzrq" type="text" id="qzrq" value="<%=jcjgpjbgjbqkbean.getQzrq() %>" ltype="date" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">符合项数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.fhxs" type="text" id="fhxs" value="<%=jcjgpjbgjbqkbean.getFhxs() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">不符合项数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.bfhxs" type="text" id="bfhxs" value="<%=jcjgpjbgjbqkbean.getBfhxs()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr><%-- <tr> <td class="l-table-edit-td-right">报告收费</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.bgsf" type="text" id="bgsf" value="<%=jcjgpjbgjbqkbean.getBgsf() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">合同附件</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.htfj" type="text" id="htfj" value="<%=jcjgpjbgjbqkbean.getHtfj()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> --%><tr> <td class="l-table-edit-td-right">报告附件:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcjgpjbgjbqkbean.bgfj" type="text" id="bgfj" value="<%=jcjgpjbgjbqkbean.getBgfj() %>" ltype="text" validate="{required:true }" />--%> <input type="file" name="file" id="file" title="报告附件"/> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">报告是否合格:</td> <td class="l-table-edit-td-left" style="width:160px"> <%--<input name="jcjgpjbgjbqkbean.sfhg" type="text" id="sfhg" value="<%=jcjgpjbgjbqkbean.getSfhg()%>" ltype="text" validate="{required:true }" /> --%><% dbsel = new DBSelect("jcjgpjbgjbqkbean.sfhg","SFHG",jcjgpjbgjbqkbean.getSfhg()); //dbsel.addAttr("style", "width: 202px;"); dbsel.addAttr("id", "sfhg"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addAttr("showName", "是否合格"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td colspan="6" align="center" style="font-size: 16px;font-weight: bold;"> <%if(jcjgpjbgjbqkbean.getBgfj()!=null&&!jcjgpjbgjbqkbean.getBgfj().equals("null")&&!jcjgpjbgjbqkbean.getBgfj().equals("")){ %> <a href="<%=webpath+jcjgpjbgjbqkbean.getBgfj()%>">检测报告下载</a> <%} %> </td> </tr> <%--<tr> <td class="l-table-edit-td-right">全拼</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.qp" type="text" id="qp" value="<%=jcjgpjbgjbqkbean.getQp() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">简拼</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjbgjbqkbean.jp" type="text" id="jp" value="<%=jcjgpjbgjbqkbean.getJp() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> --%></table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcjgbginfo.jsp
Java Server Pages
oos
13,536
<!-- /**************************************************** * <p>处理内容:评价报告基本情况</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-14 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgbg/jcjgbglist.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="jgno" id="jgno"/> <div id="layout"> <!-- TREE区域 --> <%--<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> --%><!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >机构名称:</td> <td class="l-table-edit-td-left" > <input name="jgmc" type="text" id="jgmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >评价类型:</td> <td class="l-table-edit-td-left" > <% DBSelect dbsel = new DBSelect("pjlx","PJLX",""); //dbsel.addAttr("style", "width: 202px;"); dbsel.addAttr("class","l-research-area-input"); dbsel.addAttr("id", "pjlx"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addAttr("showName", "评价类型"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="l-table-edit-td-right" >建设单位:</td> <td class="l-table-edit-td-left" > <input name="jsdwmc" type="text" id="jsdwmc" ltype="text" class="l-research-area-input"/> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgbg/jcjgbglist.jsp
Java Server Pages
oos
2,526
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcjgsbAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcjgsbAction_update.action"; } /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { //parent.myWindow.close(); top.$.ligerDialog.close(); top.$.ligerDialog.hide() //top.$.ligerDialog.close(); }); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgsb/jcjgsbinfo.js
JavaScript
oos
2,296
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-27 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgsb/jcjgsblist.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="jgno" id="jgno"/> <div id="layout"> <!-- TREE区域 --> <%--<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> --%><!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >机构名称:</td> <td class="l-table-edit-td-left" > <input name="jgmc" type="text" id="jgmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >设备名称:</td> <td class="l-table-edit-td-left" > <input name="sbmc" type="text" id="sbmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >规格型号:</td> <td class="l-table-edit-td-left" > <input name="ggxh" type="text" id="ggxh" ltype="text" class="l-research-area-input"/> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> <tr> <td class="l-table-edit-td-right" >购买日期:</td> <td class="l-table-edit-td-left" > <input name="gmrq" type="text" id="gmrq" ltype="date" /> </td> <td class="l-table-edit-td-right" >主管姓名:</td> <td class="l-table-edit-td-left" > <input name="zgxm" type="text" id="zgxm" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" ></td> <td class="l-table-edit-td-left" > <%--<input name="yt" type="text" id="yt" ltype="text" /> --%></td> <td align="left"> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgsb/jcjgsblist.jsp
Java Server Pages
oos
2,604
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*, st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.JcjgyqsbglBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/jcjg/jcjgsb/jcjgsbinfo.js" type="text/javascript"></script> <title>检测机构基本信息</title> <% JcjgyqsbglBean jcjgyqsbglBean = (JcjgyqsbglBean)request.getAttribute("jcjgyqsbglBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==jcjgyqsbglBean){ jcjgyqsbglBean=new JcjgyqsbglBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form" action="<%=webpath%>/UI/action/zyjk/JcjgbaAction_insert.action"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcjgyqsbglBean.sysno" value="<%=jcjgyqsbglBean.getSysno()%>"/> <!-- 隐藏域 机构编号jgbh --> <input type="hidden" id="jgbh" name="jcjgyqsbglBean.jgbh" value="<%=jcjgyqsbglBean.getJgbh()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">设备名称:</td> <td class="l-table-edit-td-left"> <input name="jcjgyqsbglBean.sbmc" type="text" id="sbmc" value="<%=jcjgyqsbglBean.getSbmc()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgyqsbglBean.distcode" type="text" id="distcode" value="<%=jcjgyqsbglBean.getDistcode()%>" validate="{required:true}" /> </td> <td class="td_message"></td> --%> <td class="l-table-edit-td-right">规格型号:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.ggxh" type="text" id="ggxh" value="<%=jcjgyqsbglBean.getGgxh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <%--<tr> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.pxjgdz" type="text" id="pxjgdz" value="<%=jcjgyqsbglBean.getPxjgdz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> --%><tr> <td class="l-table-edit-td-right">数量:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.sl" type="text" id="sl" value="<%=jcjgyqsbglBean.getSl()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">铭牌编号:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.mpbh" type="text" id="mpbh" value="<%=jcjgyqsbglBean.getMpbh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">生产厂家:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.sccj" type="text" id="sccj" value="<%=jcjgyqsbglBean.getSccj()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">购买日期:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.gmrq" type="text" id="gmrq" value="<%=jcjgyqsbglBean.getGmrq()%>" ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">精度:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.jd" type="text" id="jd" value="<%=jcjgyqsbglBean.getJd()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">用途:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.yt" type="text" id="yt" value="<%=jcjgyqsbglBean.getYt()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">最近检定日期:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.zjjdrq" type="text" id="zjjdrq" value="<%=jcjgyqsbglBean.getZjjdrq()%>" ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">检定周期:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.jdzq" type="text" id="jdzq" value="<%=jcjgyqsbglBean.getJdzq()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">状态:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.state" type="text" id="state" value="<%=jcjgyqsbglBean.getState()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">主管姓名:</td> <td class="l-table-edit-td-left" > <input name="jcjgyqsbglBean.zgxm" type="text" id="zgxm" value="<%=jcjgyqsbglBean.getZgxm()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgsb/jcjgsbinfo.jsp
Java Server Pages
oos
8,108
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.JcjgyqsbglBean"/> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; String strSysno=request.getParameter("strSysno"); //String jgbh=request.getParameter("jgbh"); //将设备编号转为机构编号 String jgbh=""; JcjgyqsbglBean jgsbBean=new JcjgyqsbglBean(); jgsbBean=jgsbBean.findFirst(" where sysno='"+ strSysno +"'"); if(null!=jgsbBean){ jgbh=jgsbBean.getJgbh(); } %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ include file="/global.jsp"%> <html> <head> <base href="<%=basePath%>"> <title>查看人员信息</title> </head> <script type="text/javascript"> var tab; $(function () { $("#navtab1").ligerTab( { //打开tab页 onAfterSelectTabItem: onAfterSelectTabItem } ); tab = $("#navtab1").ligerGetTabManager(); }); function onAfterSelectTabItem(tabid){ tab.reload(tab.getSelectedTabItemID()); } </script> <body style="padding:10px"> <div id="navtab1" style="width:100%;height:100%;overflow:hidden; border:1px solid #A3C0E8; "> <div tabid="home" title="设备信息" lselected="true" style="height:580px"> <iframe style="width:100%;height:600px;" frameborder="0" name="showmessagex" src="<%=basePath %>/UI/action/zyjk/JcjgsbAction_findByKey.action?messageBean.method=look&strSysno=<%=strSysno %>"></iframe> </div> <div title="检测机构信息" > <iframe style="width:100%;height:600px;" frameborder="0" name="showmessagec" src="<%=basePath %>/UI/zyjk/jcjg/jcjgmain.jsp?sysno=<%=jgbh %>"></iframe> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgsb/jcjgsbmain.jsp
Java Server Pages
oos
2,029
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- jmx ---------- Note ------------------- * 1.0 2013-05-27 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="640"; var openHeight="350"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' }, { line: true }, { text: '查看机构信息', click:f_lookjg, icon:'pager' } ]; var jgno=getUrlParam("strSysno"); if (jgno==null||jgno.length == 0){ grid = Grid('JcjgsbGrid','检测机构设备管理',toolbar); }else{ grid = sub_Grid('JcjgsbGrid','检测机构设备管理',toolbar," and jgbh like '%" + jgno+ "%' "); document.getElementById("jgno").value=jgno; } $("#gmrq").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { // myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/JcjgsbAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"检测机构设备管理", //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); var jgbh=document.getElementById("jgno").value; //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: data.sbmc+'信息', url:webpath+'/UI/zyjk/jcjg/jcjgsb/jcjgsbmain.jsp?strSysno='+data.sysno+'&jgbh='+jgbh }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgsb/jcjgsbmain.jsp?strSysno='+data.sysno+'&jgbh='+jgbh); }catch (e) { $.ligerDialog.error(e.message); } } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName="); } } /*Tree查看*/ function t_enter(nodeid){ try{ var strWhere = " "; if(nodeid.length>0){ strWhere = " and parentmenuid = '"+nodeid+"' or menuid='"+nodeid+"'"; } var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; //机构名称 var jgbh = $("#jgno").val(); if(jgbh.length>0) { strWhere += " and jgbh like '%"+jgbh+"%' "; } //机构名称 var jgmc = $("#jgmc").val(); if(jgmc.length>0) { strWhere += " and jgmc like '%"+jgmc+"%' "; } //设备名称 var sbmc = $("#sbmc").val(); if(sbmc.length>0) { strWhere += " and sbmc like '%"+sbmc+"%' "; } //规格型号 var ggxh = $("#ggxh").val(); if(ggxh.length>0) { strWhere += " and ggxh like '%"+ggxh+"%' "; } //购买日期 var gmrq = $("#gmrq").val(); if(gmrq.length>0) { strWhere += " and gmrq like '%"+gmrq+"%' "; } //用途 // var yt = $("#yt").val(); //if(yt.length>0) { // strWhere = " and yt like '%"+yt+"%' "; // } //主管姓名 var zgxm = $("#zgxm").val(); if(zgxm.length>0) { strWhere += " and zgxm like '%"+zgxm+"%' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"/UI/action/zyjk/JcjgsbAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; // if(selected==null){ // $.ligerDialog.warn(MSG_NORECORD_SELECT); // }else if(selected !=null){ // strId=selected.sysno; // } var jgbh=$("#jgno").val(); myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcjgsbAction_findByKey.action?messageBean.method=add&strSysno="+strId+"&jgbh="+jgbh, width: openWidth,height:openHeight, title: '检测机构设备管理', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgsbAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '检测机构设备管理', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { var jgbh=document.getElementById("jgno").value; try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //alert(11); // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgsb/jcjgsbmain.jsp?strSysno="+selected.sysno+"&jgbh="+jgbh, width: 900,height:700, title: '检测机构设备管理', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.sbmc+'信息', url:webpath+'/UI/zyjk/jcjg/jcjgsb/jcjgsbmain.jsp?strSysno='+selected.sysno+'&jgbh='+jgbh }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgsb/jcjgsbmain.jsp?strSysno='+selected.sysno+'&jgbh='+jgbh ); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看机构信息*/ function f_lookjg() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '检测机构人员列表', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgmain.jsp?sysno="+selected.jgbh, width: 960,height:600, title: '机构信息', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.jgmc+'机构信息', url:webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.jgbh }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.jgbh); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgsb/jcjgsblist.js
JavaScript
oos
10,512
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } function ssss(){ $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcjgbaAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcjgbaAction_update.action"; } var colselect = $("#enuditcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:true, tree: { idFieldName :'id', parentIDFieldName :'pid', url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ", nodeWidth : 200, checkbox: false, slide: false, method:"post", //parms:{"strWhere":" and Depth in (1,2) "}, // onExpand:onExpand, // onBeforeExpand: onBeforeExpand, onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2,3) "}); } } }, onClick:function(node){ $("#distcode").val(node.data.id); $("#enuditcode").val(node.data.text); } } }); var tree = colselect.tree.ligerGetTreeManager(); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { //parent.myWindow.close(); top.$.ligerDialog.close(); top.$.ligerDialog.hide() //top.$.ligerDialog.close(); }); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjginfo.js
JavaScript
oos
5,162
/********************************************************************* *<p>处理内容:menu列表js</p> *<p>Copyright: Copyright (c) 2013</p> * @author 贾明欣 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 贾明欣 --------- 新规作成<br> ***********************************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var tab; var openWidth="630"; var openHeight="300"; /*初始化*/ $(function (){ try { /*布局*/ $("#layout").ligerLayout({leftWidth: 200}); /*TAB*/ $("#navtab").ligerTab({height:'105%'}); /*TREE*/ $("#tree").ligerTree({ // data:[{id:'1',pid:'0',children:[],text:'检测机构基本情况',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', nodeWidth : 200, checkbox: false, slide: false, url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=JcjginfoTree", onExpand:onExpand, onBeforeExpand: onBeforeExpand, onSelect: function (node) { t_enter(node); } }); tree = $("#tree").ligerGetTreeManager(); tab = $("#navtab").ligerGetTabManager(); var message=document.getElementById("message").value; if(message!="null"||message!=""){ //alert(message); // top.tab.reload(top.tab.getSelectedTabItemID()); } }catch (e) { $.ligerDialog.error(e.message); } }); /*双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+data.menuid, width: openWidth,height:openHeight, title: '菜单管理', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } function onBeforeExpand(node){ var nodeid=node.data.id; //alert(node.data.pid); if(node.data.children && (node.data.children.length == 0)){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=JcjginfoTree"); } } /*查看*/ function t_enter(node){ try{ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&strSysno="+getUrlParam("sysno")); }catch (e) { $.ligerDialog.error(e.message); } } /*建立tab*/ function f_addTab(tabid,text, url) { tab.addTabItem({ tabid : tabid,text: text, url: url }); }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgmain.js
JavaScript
oos
3,403
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { //document.getElementById("form").submit(); //top.tab.refresh(top.tab.getSelectedTabItemID()); $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); // top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } function ssss(){ $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); // top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcjgbaAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcjgbaAction_update.action"; } var colselect =$("#enuditcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { data:[{id:'01',pid:'0',children:[],text:'行政区划',isexpand:'false'}], //url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function (node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick:function(node){ if(node.data.id=='01'){ $("#distcode").val(""); $("#enuditcode").val(""); }else{ $("#distcode").val(node.data.id); } } } }); var columntree = colselect.tree.ligerGetTreeManager(); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } // }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/login/jcjginfo.js
JavaScript
oos
5,332
/********************************************************************* *<p>处理内容:menu列表js</p> *<p>Copyright: Copyright (c) 2013</p> * @author 贾明欣 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 贾明欣 --------- 新规作成<br> ***********************************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var tab; var openWidth="630"; var openHeight="300"; var jgbh=null; /*初始化*/ $(function (){ try { /*布局*/ $("#layout").ligerLayout({leftWidth: 200}); /*TAB*/ $("#navtab").ligerTab({height:'100%'}); /*TREE*/ $("#tree").ligerTree({ data:[{id:'1',pid:'0',children:[],text:'功能菜单',isexpand:'true'}], idFieldName :'id', parentIDFieldName :'pid', nodeWidth : 200, checkbox: false, slide: false, url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=JcjgLoginTree", onExpand:onExpand, //onBeforeExpand: onBeforeExpand, onSelect: function (node) { t_enter(node); } }); tree = $("#tree").ligerGetTreeManager(); tab = $("#navtab").ligerGetTabManager(); jgbh=document.getElementById("jgbh").value; }catch (e) { $.ligerDialog.error(e.message); } }); /*双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+data.menuid, width: openWidth,height:openHeight, title: '菜单管理', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } function onBeforeExpand(node){ var nodeid=node.data.id; //alert(node.data.pid); if(node.data.children && (node.data.children.length == 0)){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=JcjgLoginTree"); } } /*查看*/ function t_enter(node){ try{ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&strSysno="+jgbh); }catch (e) { $.ligerDialog.error(e.message); } } /*建立tab*/ function f_addTab(tabid,text, url) { tab.addTabItem({ tabid : tabid,text: text, url: url }); }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/login/jcjgmain.js
JavaScript
oos
3,228
<!-- /********************************************************************* *<p>处理内容:treemenu列表</p> *<p>Copyright: Copyright (c) 2013</p> * @author jmx 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="st.portal.action.MessageBean"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <jsp:directive.page import="UI.dao.zyjk.T_officerBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <% String sysno=request.getParameter("sysno"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); T_officerBean officer=(T_officerBean)session.getAttribute(SystemAttributeNames.JCJG_INFO_NAME); //System.out.println("ssssssssssssssssssssss:"+messageBean); if(null==officer){ officer=new T_officerBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> <head> <title>职业危害防治信息平台-检测机构</title> <script src="<%=webpath%>/UI/zyjk/jcjg/login/jcjgmain.js" type="text/javascript"></script> <style> /* 顶部 */ .l-topmenu{ margin:0; padding:0; height:31px; line-height:31px; background:url('<%=webpath%>images/top.jpg') repeat-x bottom; position:relative; border-top:1px solid #1D438B; } .l-topmenu-logo{ color:#E7E7E7; padding-left:35px; line-height:26px;background:url('<%=webpath%>images/msn.gif') no-repeat 10px 5px;} .l-topmenu-welcome{ position:absolute; height:24px; line-height:24px; right:30px; top:2px;color:#070A0C;} .l-topmenu-welcome a{ color:#E7E7E7; text-decoration:underline} </style> </head> <body class="treemenubody" style="padding:10px"> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <!-- 机构编号 --> <input type="hidden" id="jgbh" name="jgbh" value="<%=officer.getLogin_id() %>"/> <div id="topmenu" class="l-topmenu"> <div class="l-topmenu-logo">职业危害防治信息平台-检测机构</div> <div class="l-topmenu-welcome"> </div> </div> <div id="layout"> <div position="left" title="检测机构信息导航"> <ul id="tree" style="margin-top:3px;"> </div> <div position="center" id="navtab"> <div tabid="1" title="基本信息" > <iframe frameborder="0" name="showmessage" src="<%=webpath%>/UI/action/zyjk/JcjgbaAction_loginFindByKey.action?messageBean.method=update&strSysno=<%=officer.getLogin_id()%>"></iframe> </div> </div> <div style="height:32px; line-height:32px; text-align:center;"> 信软科技 </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/login/jcjgmain.jsp
Java Server Pages
oos
3,287
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.JcjgbaxxBean"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/jcjg/login/jcjginfo.js" type="text/javascript"></script> <title>检测机构基本信息</title> <% JcjgbaxxBean jcjgbaxxBean = (JcjgbaxxBean)request.getAttribute("jcjgbaxxBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==jcjgbaxxBean){ jcjgbaxxBean=new JcjgbaxxBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody"> <form name="form" method="post" id="form" > <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcjgbaxxBean.sysno" value="<%=jcjgbaxxBean.getSysno()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <br /> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">单位名称:</td> <td class="l-table-edit-td-left" style="width:360px"> <input name="jcjgbaxxBean.dwmc" type="text" id="dwmc" value="<%=jcjgbaxxBean.getDwmc()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.distcode" type="hidden" id="distcode" value="<%=jcjgbaxxBean.getDistcode()%>" /> <input type="text" ltype="text" name="" id="enuditcode" value="<%=DistcodeUtil.getDistName(jcjgbaxxBean.getDistcode())%>" style="width: 95%" validate="{required:true}"/> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">资质证书编号:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.zzzsbh" type="text" id="zzzsbh" value="<%=jcjgbaxxBean.getZzzsbh()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">发证日期:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.fzdate" type="text" id="fzdate" value="<%=jcjgbaxxBean.getFzdate()%>" ltype="date" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">发证机关:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.fzjg" type="text" id="fzjg" value="<%=jcjgbaxxBean.getFzjg()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">有效日期:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="jcjgbaxxBean.yxq" type="text" id="yxq" value="<%=jcjgbaxxBean.getYxq()%>" ltype="date" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">资质级别:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.zzjb" type="text" id="zzjb" value="<%=jcjgbaxxBean.getZzjb()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">技术负责人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.jsfzr" type="text" id="jsfzr" value="<%=jcjgbaxxBean.getJsfzr()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">质量负责人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.zlfzr" type="text" id="zlfzr" value="<%=jcjgbaxxBean.getZlfzr()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">职工人数:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="jcjgbaxxBean.zgrs" type="text" id="zgrs" value="<%=jcjgbaxxBean.getZgrs()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">专业技术人员数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.zyjsrys" type="text" id="zyjsrys" value="<%=jcjgbaxxBean.getZyjsrys()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">取得资质人员数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.qdzszyrs" type="text" id="qdzszyrs" value="<%=jcjgbaxxBean.getQdzszyrs()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">计量认证证书号:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.jlrzzsh" type="text" id="jlrzzsh" value="<%=jcjgbaxxBean.getJlrzzsh()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">仪器设备数:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.yqsbs" type="text" id="yqsbs" value="<%=jcjgbaxxBean.getYqsbs()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">法人执照编号:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.frzzbh" type="text" id="frzzbh" value="<%=jcjgbaxxBean.getFrzzbh()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">注册资金:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.zczj" type="text" id="zczj" value="<%=jcjgbaxxBean.getZczj()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">颁发机关:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.bfjg" type="text" id="bfjg" value="<%=jcjgbaxxBean.getBfjg()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">单位性质:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.dwxz" type="text" id="dwxz" value="<%=jcjgbaxxBean.getDwxz()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">注册地址:</td> <td class="l-table-edit-td-left" style="width:360px" colspan="4"> <input name="jcjgbaxxBean.zcdz" type="text" id="zcdz" value="<%=jcjgbaxxBean.getZcdz()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.distcode" type="text" id="distcode" value="<%=jcjgbaxxBean.getDistcode()%>" validate="{required:false}" /> </td> <td class="td_message"></td> --%></tr> <tr> <td class="l-table-edit-td-right">办公地址:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.bgdz" type="text" id="bgdz" value="<%=jcjgbaxxBean.getBgdz()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">邮政编码:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.zpcode" type="text" id="zpcode" value="<%=jcjgbaxxBean.getZpcode()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">法定代表人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.fddbr" type="text" id="fddbr" value="<%=jcjgbaxxBean.getFddbr()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.dbrlxdh" type="text" id="dbrlxdh" value="<%=jcjgbaxxBean.getDbrlxdh()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">联系人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.lxr" type="text" id="lxr" value="<%=jcjgbaxxBean.getLxr()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.lxdh" type="text" id="lxdh" value="<%=jcjgbaxxBean.getLxdh()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">传真:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.fax" type="text" id="fax" value="<%=jcjgbaxxBean.getFax()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">电子邮箱:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgbaxxBean.email" type="text" id="email" value="<%=jcjgbaxxBean.getEmail()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <%--<input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> --%></td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/login/jcjginfo.jsp
Java Server Pages
oos
13,726
<!-- /********************************************************************* *<p>处理内容:treemenu列表</p> *<p>Copyright: Copyright (c) 2013</p> * @author jmx 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="st.portal.action.MessageBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <% String sysno=request.getParameter("sysno"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==messageBean){ messageBean=new MessageBean(); } //System.out.println("打印编号主键:"+sysno); //sysno="20130609-20130001455"; %> <head> <script src="<%=webpath%>/UI/zyjk/jcjg/jcjgmain.js" type="text/javascript"></script> </head> <body class="treemenubody" style="padding:10px"> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <div id="layout"> <div position="left" title="检测机构信息导航"> <ul id="tree" style="margin-top:3px;"> </div> <div position="center" id="navtab"> <div tabid="1" title="基本信息" > <iframe style="height:100%" frameborder="0" name="showmessage" src="<%=webpath%>/UI/action/zyjk/JcjgbaAction_findByKey.action?messageBean.method=look&strSysno=<%=sysno%>"></iframe> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgmain.jsp
Java Server Pages
oos
2,012
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-08 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="660"; var openHeight="400"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' } ]; var jgno=getUrlParam("strSysno"); if (jgno==null||jgno.length == 0){ grid = Grid('JcjgnjGrid','检测机构年检列表',toolbar); }else { grid = sub_Grid('JcjgnjGrid','检测机构年检列表',toolbar, " and jgbh like '%" + jgno+ "%' "); //$("#jgno").val()=jgno; document.getElementById("jgno").value=jgno; } }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/JcjgnjAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"检测机构年检列表", showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName="); } } /*Tree查看*/ function t_enter(nodeid){ try{ var strWhere = " "; if(nodeid.length>0){ strWhere = " and parentmenuid = '"+nodeid+"' or menuid='"+nodeid+"'"; } var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } } $.post(webpath+"/UI/action/zyjk/JcjgnjAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; var jgbh=$("#jgno").val(); myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcjgnjAction_findByKey.action?messageBean.method=add&strSysno="+strId+"&jgbh="+jgbh, width: openWidth,height:openHeight, title: '检测机构年检列表', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgnjAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '检测机构年检列表', showMax: false, showToggle: true, showMin: false, isResize: false, slide: false }); // f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgnjAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '检测机构年检列表', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgnj/jcjgnjList.js
JavaScript
oos
7,172
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.JcjgnjglBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/jcjg/jcjgnj/jcjgnjinfo.js" type="text/javascript"></script> <title>检测机构人员基本信息</title> <% JcjgnjglBean jcjgnjglBean = (JcjgnjglBean)request.getAttribute("jcjgnjglBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); //String jgbh=request.getParameter("jgbh"); //System.out.println("----------------------------------"+jgbh); if(null==jcjgnjglBean){ jcjgnjglBean=new JcjgnjglBean(); //jcjgnjglBean.setJgbh(jgbh); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody" style="width:615px"> <br /> <form name="form" method="post" id="form" action="<%=webpath%>/UI/action/zyjk/JcjgbaAction_insert.action"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcjgnjglBean.sysno" value="<%=jcjgnjglBean.getSysno()%>"/> <!-- 隐藏域 机构编号jgbh --> <input type="hidden" id="jgbh" name="jcjgnjglBean.jgbh" value="<%=jcjgnjglBean.getJgbh()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">单位名称:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="jcjgnjglBean.jgmc" type="text" id="jgmc" value="<%=jcjgnjglBean.getJgmc()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">单位性质:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgnjglBean.dwxz" type="text" id="dwxz" value="<%=jcjgnjglBean.getDwxz()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgnjglBean.distcode" type="text" id="distcode" value="<%=jcjgnjglBean.getDistcode()%>" validate="{required:true}" /> </td> <td class="td_message"></td> --%> </tr> <tr> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgnjglBean.dz" type="text" id="dz" value="<%=jcjgnjglBean.getDz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">法定代表人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgnjglBean.fddbr" type="text" id="fddbr" value="<%=jcjgnjglBean.getFddbr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系人:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="jcjgnjglBean.lxr" type="text" id="lxr" value="<%=jcjgnjglBean.getLxr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgnjglBean.lxdh" type="text" id="lxdh" value="<%=jcjgnjglBean.getLxdh()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">传真:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgnjglBean.fax" type="text" id="fax" value="<%=jcjgnjglBean.getFax()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">资质证书号:</td> <td class="l-table-edit-td-left" style="width:160px" colspan="4"> <input name="jcjgnjglBean.zzzsbh" type="text" id="zzzsbh" value="<%=jcjgnjglBean.getZzzsbh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">证书级别:</td> <td class="l-table-edit-td-left" style="width:160px" > <input name="jcjgnjglBean.jb" type="text" id="jb" value="<%=jcjgnjglBean.getJb()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">有效期:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgnjglBean.yxqjs" type="text" id="yxqjs" value="<%=jcjgnjglBean.getYxqjs()%>" ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">服务项目:</td> <td class="l-table-edit-td-left" style="width:160px" colspan="4"> <textarea rows="4" style="width: 100%" name="jcjgnjglBean.fwxm" id="fwxm"><%=jcjgnjglBean.getFwxm()%></textarea> <%--<input name="jcjgnjglBean.zzzsbh" type="text" id="fwxm" value="<%=jcjgnjglBean.getFwxm()%>" ltype="text" validate="{required:true}" />--%> </td> <td class="td_message"></td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgnj/jcjgnjinfo.jsp
Java Server Pages
oos
7,757
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-08 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zyjk/jcjg/jcjgnj/jcjgnjList.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="jgno" id="jgno"/> <div id="layout"> <!-- TREE区域 --> <%--<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> --%><!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div><%-- <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >机构名称:</td> <td class="l-table-edit-td-left" > <input name="jgmc" type="text" id="jgmc" ltype="text" /> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="l-button l-button-submit" value=" 查询 " onclick="f_search()" /> </td> </tr> </table> --%></div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgnj/jcjgnjList.jsp
Java Server Pages
oos
1,597
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcjgnjAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcjgnjAction_update.action"; } /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { //parent.myWindow.close(); top.$.ligerDialog.close(); top.$.ligerDialog.hide() //top.$.ligerDialog.close(); }); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgnj/jcjgnjinfo.js
JavaScript
oos
2,295
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.JcjgpjryglBean"/> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; String strSysno=request.getParameter("strSysno"); //将机构人员编号转为机构编号 String jgbh=""; JcjgpjryglBean jgryBean=new JcjgpjryglBean(); jgryBean=jgryBean.findFirst(" where sysno='"+ strSysno +"'"); if(null!=jgryBean){ jgbh=jgryBean.getJgbh(); } %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ include file="/global.jsp"%> <html> <head> <base href="<%=basePath%>"> <title>查看人员信息</title> </head> <script type="text/javascript"> var tab; $(function () { $("#navtab1").ligerTab( { //打开tab页 onAfterSelectTabItem: onAfterSelectTabItem } ); tab = $("#navtab1").ligerGetTabManager(); }); function onAfterSelectTabItem(tabid){ tab.reload(tab.getSelectedTabItemID()); } </script> <body style="padding:10px"> <input type="hidden" id="strSysno" name="strSysno" value="<%=strSysno %>"/> <div id="navtab1" style="width:100%;height:100%;overflow:hidden; border:1px solid #A3C0E8; "> <div tabid="home" title="人员信息" lselected="true" style="height:580px"> <iframe style="width:100%;height:600px;" frameborder="0" name="showmessagex" src="<%=basePath %>/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=look&strSysno=<%=strSysno %>"></iframe> </div> <div tabid="jcjgxx" title="检测机构信息"> <iframe style="width:100%;height:600px;" frameborder="0" name="showmessagec" src="<%=basePath %>/UI/zyjk/jcjg/jcjgmain.jsp?sysno=<%=jgbh %>"></iframe> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgry/jcjgrymain.jsp
Java Server Pages
oos
2,085
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-24 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>/UI/zyjk/jcjg/jcjgry/jcjgrylist.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="jgno" id="jgno"/> <div id="layout"> <!-- TREE区域 --> <%--<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> --%><!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >机构名称:</td> <td class="l-table-edit-td-left" > <input name="jgmc" type="text" id="jgmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >姓名:</td> <td class="l-table-edit-td-left" > <input name="name" type="text" id="name" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >资质证书编号:</td> <td class="l-table-edit-td-left" > <input name="zzzsbh" type="text" id="zzzsbh" ltype="text" class="l-research-area-input"/> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> <tr> <td class="l-table-edit-td-right" >职务:</td> <td class="l-table-edit-td-left" > <input name="zw" type="text" id="zw" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >岗位:</td> <td class="l-table-edit-td-left" > <input name="gw" type="text" id="gw" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >发证日期:</td> <td class="l-table-edit-td-left" > <input name="fzdate" type="text" id="fzdate" ltype="text" /> </td> <td align="left"> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgry/jcjgrylist.jsp
Java Server Pages
oos
2,626
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); //alert( top.tab); $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/JcjgryglAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/JcjgryglAction_update.action"; } /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { //parent.myWindow.close(); top.$.ligerDialog.close(); top.$.ligerDialog.hide() //top.$.ligerDialog.close(); }); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgry/jcjgryinfo.js
JavaScript
oos
2,313
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.JcjgpjryglBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/jcjg/jcjgry/jcjgryinfo.js" type="text/javascript"></script> <title>检测机构人员基本信息</title> <% JcjgpjryglBean jcjgpjryglBean = (JcjgpjryglBean)request.getAttribute("jcjgpjryglBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); //String jgbh=request.getParameter("jgbh"); //System.out.println("----------------------------------"+jgbh); if(null==jcjgpjryglBean){ jcjgpjryglBean=new JcjgpjryglBean(); //jcjgpjryglBean.setJgbh(jgbh); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody" style="width: 550"> <br /> <form name="form" method="post" id="form" action="<%=webpath%>/UI/action/zyjk/JcjgbaAction_insert.action"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcjgpjryglBean.sysno" value="<%=jcjgpjryglBean.getSysno()%>"/> <!-- 隐藏域 机构编号jgbh --> <input type="hidden" id="jgbh" name="jcjgpjryglBean.jgbh" value="<%=jcjgpjryglBean.getJgbh()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">姓名:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.name" type="text" id="name" value="<%=jcjgpjryglBean.getName()%>" ltype="text" validate="{required:true}" /> </td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="jcjgpjryglBean.distcode" type="text" id="distcode" value="<%=jcjgpjryglBean.getDistcode()%>" validate="{required:true}" /> </td> --%> <td class="l-table-edit-td-right">性别:</td> <td class="l-table-edit-td-left" > <% DBSelect dbsel = new DBSelect("sex", "SEX",jcjgpjryglBean.getSex()); dbsel.addAttr("style", "width: 160px"); dbsel.addAttr("notnull", "true"); dbsel.addAttr("name", "jcjgpjryglBean.sex"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> </tr> <%--<tr> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.pxjgdz" type="text" id="pxjgdz" value="<%=jcjgpjryglBean.getPxjgdz()%>"ltype="text" validate="{required:true}" /> </td> </tr> --%><tr> <td class="l-table-edit-td-right">出生年月:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.birthday" type="text" id="birthday" value="<%=jcjgpjryglBean.getBirthday()%>" ltype="date" validate="{required:true}" /> </td> <td class="l-table-edit-td-right">学历:</td> <td class="l-table-edit-td-left" > <% dbsel = new DBSelect("xl", "EDUDEGREE",jcjgpjryglBean.getXl()); dbsel.addAttr("style", "width: 160px"); dbsel.addAttr("notnull", "true"); dbsel.addAttr("name", "jcjgpjryglBean.xl"); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> </tr> <tr> <td class="l-table-edit-td-right">所学专业:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.sxzy" type="text" id="sxzy" value="<%=jcjgpjryglBean.getSxzy()%>"ltype="text" validate="{required:true}" /> </td> <td class="l-table-edit-td-right">职务:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.zw" type="text" id="zw" value="<%=jcjgpjryglBean.getZw()%>" ltype="text" validate="{required:true}" /> </td> </tr> <tr> <td class="l-table-edit-td-right">职称:</td> <td class="l-table-edit-td-left" colspan="4"> <input name="jcjgpjryglBean.zc" type="text" id="zc" value="<%=jcjgpjryglBean.getZc()%>" ltype="text" validate="{required:true}" /> </td> </tr> <tr> <td class="l-table-edit-td-right">岗位:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.gw" type="text" id="gw" value="<%=jcjgpjryglBean.getGw()%>" ltype="text" validate="{required:true}" /> </td> <td class="l-table-edit-td-right">工作年限:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.gznx" type="text" id="gznx" value="<%=jcjgpjryglBean.getGznx()%>" ltype="text" validate="{required:true}" /> </td> </tr> <tr> <td class="l-table-edit-td-right">资质证书编号:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.zzzsbh" type="text" id="zzzsbh" value="<%=jcjgpjryglBean.getZzzsbh()%>"ltype="text" validate="{required:true}" /> </td> <td class="l-table-edit-td-right">发证时间:</td> <td class="l-table-edit-td-left" > <input name="jcjgpjryglBean.fzdate" type="text" id="fzdate" value="<%=jcjgpjryglBean.getFzdate()%>" ltype="date" validate="{required:true}" /> </td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgry/jcjgryinfo.jsp
Java Server Pages
oos
7,815
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-24 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="620"; var openHeight="350"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' }, { line: true }, { text: '查看机构信息', click:f_lookjg, icon:'pager' } ]; var jgno=getUrlParam("strSysno"); if (jgno==null||jgno.length == 0){ grid = Grid('JcjgryGrid','检测机构人员',toolbar); }else { grid = sub_Grid('JcjgryGrid','检测机构人员',toolbar, " and jgbh like '%" + jgno+ "%' "); //$("#jgno").val()=jgno; document.getElementById("jgno").value=jgno; } $("#fzdate").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { //myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"检测机构人员列表", //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: data.name+'职业卫生信息', url:webpath+'/UI/zyjk/jcjg/jcjgry/jcjgrymain.jsp?strSysno='+data.sysno }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgry/jcjgrymain.jsp?strSysno='+data.sysno); }catch (e) { $.ligerDialog.error(e.message); } } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName="); } } /*Tree查看*/ function t_enter(nodeid){ try{ var strWhere = " "; if(nodeid.length>0){ strWhere = " and parentmenuid = '"+nodeid+"' or menuid='"+nodeid+"'"; } var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; //机构编号 var jgbh = $("#jgno").val(); if(jgbh.length>0) { strWhere += " and jgbh like '%"+jgbh+"%' "; } //机构名称 var jgmc = $("#jgmc").val(); if(jgmc.length>0) { strWhere += " and jgmc like '%"+jgmc+"%' "; } //姓名 var name = $("#name").val(); if(name.length>0) { strWhere += " and name like '%"+name+"%' "; } //职务 var zw = $("#zw").val(); if(zw.length>0) { strWhere += " and zw like '%"+zw+"%' "; } //岗位 var gw = $("#gw").val(); if(gw.length>0) { strWhere += " and gw like '%"+gw+"%' "; } //资质证书编号 var zzzsbh = $("#zzzsbh").val(); if(zzzsbh.length>0) { strWhere += " and zzzsbh like '%"+zzzsbh+"%' "; } //发证日期 var fzdate = $("#fzdate").val(); if(fzdate.length>0) { strWhere += " and fzdate like '%"+fzdate+"%' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"/UI/action/zyjk/JcjgryglAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { //alert("11111111111111111"); var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; var jgbh=$("#jgno").val(); myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=add&strSysno="+strId+"&jgbh="+jgbh, width: openWidth,height:openHeight, title: '检测机构人员', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '检测机构人员', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '检测机构人员列表', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgry/jcjgrymain.jsp?strSysno="+selected.sysno, width: 900,height:700, title: '检测机构人员列表', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.name+'职业卫生信息', url:webpath+'/UI/zyjk/jcjg/jcjgry/jcjgrymain.jsp?strSysno='+selected.sysno }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgry/jcjgrymain.jsp?strSysno='+selected.sysno); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看机构信息*/ function f_lookjg() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/JcjgryglAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '检测机构人员列表', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/jcjg/jcjgmain.jsp?sysno="+selected.jgbh, width: 980,height:600, title: '检测机构信息', //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.jgmc+'机构信息', url:webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.jgbh }); loadSubWindow(webpath+'/UI/zyjk/jcjg/jcjgmain.jsp?sysno='+selected.jgbh); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjgry/jcjgrylist.js
JavaScript
oos
10,611
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.JcjgbaxxBean"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/jcjg/jcjginfo.js" type="text/javascript"></script> <title>检测机构基本信息</title> <% JcjgbaxxBean jcjgbaxxBean = (JcjgbaxxBean)request.getAttribute("jcjgbaxxBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==jcjgbaxxBean){ jcjgbaxxBean=new JcjgbaxxBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody" style="width:650"> <form name="form" method="post" id="form" action="<%=webpath%>/UI/action/zyjk/JcjgbaAction_insert.action"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="jcjgbaxxBean.sysno" value="<%=jcjgbaxxBean.getSysno()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">单位名称:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.dwmc" type="text" id="dwmc" value="<%=jcjgbaxxBean.getDwmc()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" > <input type="text" ltype="text" name="enuditcode" id="enuditcode" value="<%=DistcodeUtil.getDistName(jcjgbaxxBean.getDistcode())%>" style="width: 95%" validate="{required:true}"/> <input name="jcjgbaxxBean.distcode" type="hidden" id="distcode" value="<%=jcjgbaxxBean.getDistcode()%>" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">资质证书编号:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.zzzsbh" type="text" id="zzzsbh" value="<%=jcjgbaxxBean.getZzzsbh()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">发证日期:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.fzdate" type="text" id="fzdate" value="<%=jcjgbaxxBean.getFzdate()%>" ltype="date" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">发证机关:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.fzjg" type="text" id="fzjg" value="<%=jcjgbaxxBean.getFzjg()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">有效日期:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.yxq" type="text" id="yxq" value="<%=jcjgbaxxBean.getYxq()%>" ltype="date" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">资质级别:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.zzjb" type="text" id="zzjb" value="<%=jcjgbaxxBean.getZzjb()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">技术负责人:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.jsfzr" type="text" id="jsfzr" value="<%=jcjgbaxxBean.getJsfzr()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">质量负责人:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.zlfzr" type="text" id="zlfzr" value="<%=jcjgbaxxBean.getZlfzr()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">职工人数:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.zgrs" type="text" id="zgrs" value="<%=jcjgbaxxBean.getZgrs()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">专业技术人员数:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.zyjsrys" type="text" id="zyjsrys" value="<%=jcjgbaxxBean.getZyjsrys()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">取得资质人员数:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.qdzszyrs" type="text" id="qdzszyrs" value="<%=jcjgbaxxBean.getQdzszyrs()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">计量认证证书号:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.jlrzzsh" type="text" id="jlrzzsh" value="<%=jcjgbaxxBean.getJlrzzsh()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">仪器设备数:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.yqsbs" type="text" id="yqsbs" value="<%=jcjgbaxxBean.getYqsbs()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">法人执照编号:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.frzzbh" type="text" id="frzzbh" value="<%=jcjgbaxxBean.getFrzzbh()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">注册资金:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.zczj" type="text" id="zczj" value="<%=jcjgbaxxBean.getZczj()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">颁发机关:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.bfjg" type="text" id="bfjg" value="<%=jcjgbaxxBean.getBfjg()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">单位性质:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.dwxz" type="text" id="dwxz" value="<%=jcjgbaxxBean.getDwxz()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">注册地址:</td> <td class="l-table-edit-td-left" style="width:360px" colspan="4"> <input name="jcjgbaxxBean.zcdz" type="text" id="zcdz" value="<%=jcjgbaxxBean.getZcdz()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.distcode" type="text" id="distcode" value="<%=jcjgbaxxBean.getDistcode()%>" validate="{required:false}" /> </td> --%></tr> <tr> <td class="l-table-edit-td-right">办公地址:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.bgdz" type="text" id="bgdz" value="<%=jcjgbaxxBean.getBgdz()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">邮政编码:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.zpcode" type="text" id="zpcode" value="<%=jcjgbaxxBean.getZpcode()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">法定代表人:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.fddbr" type="text" id="fddbr" value="<%=jcjgbaxxBean.getFddbr()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.dbrlxdh" type="text" id="dbrlxdh" value="<%=jcjgbaxxBean.getDbrlxdh()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">联系人:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.lxr" type="text" id="lxr" value="<%=jcjgbaxxBean.getLxr()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.lxdh" type="text" id="lxdh" value="<%=jcjgbaxxBean.getLxdh()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">传真:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.fax" type="text" id="fax" value="<%=jcjgbaxxBean.getFax()%>"ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">电子邮箱:</td> <td class="l-table-edit-td-left" > <input name="jcjgbaxxBean.email" type="text" id="email" value="<%=jcjgbaxxBean.getEmail()%>" ltype="text" validate="{required:false}" /> </td> <td class="td_message"></td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/jcjg/jcjginfo.jsp
Java Server Pages
oos
13,318
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/WsjgbaAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/WsjgbaAction_update.action"; } $("#distcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 200, textField:'text', treeLeafOnly:true, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { } } }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { //parent.myWindow.close(); top.$.ligerDialog.close(); top.$.ligerDialog.hide() //top.$.ligerDialog.close(); }); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/wsjg/wsjginfo.js
JavaScript
oos
3,047
/**************************************************** * <p>处理内容:劳动者健康检查结果</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="670"; var openHeight="400"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' }, { line: true }, { text: '人员', click:f_lookry, icon:'pager' }, { line: true }, { text: '单位', click:f_lookdw, icon:'pager' }, { line: true }, { text: '体检机构', click:f_looktj, icon:'pager' } ]; $("#zcsj").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); $("#zcsje").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); grid = sub_Grid('qyzywsjkjcjgGrid','劳动者健康检查结果',toolbar," and tjdwbh like '%" + getUrlParam("tjdwbh") + "%' "); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/ldzjkjcjg/LdzjkjcjgAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"劳动者健康检查结果", showMax: false, showToggle: false, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and tjdwbh like '%" + getUrlParam("tjdwbh") + "%' "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); var jgmc = $("#jgmc").val(); if(jgmc.length>0) { strWhere += " and jgmc like '%"+jgmc+"%' "; } var jcdwmc = $("#jcdwmc").val(); if(jcdwmc.length>0) { strWhere += " and entername like '%"+jcdwmc+"%' "; } var ldzxm = $("#ldzxm").val(); if(ldzxm.length>0) { strWhere += " and ldzxm like '%"+ldzxm+"%' "; } //开始时间 var zcsj = $("#zcsj").val(); if(zcsj.length>0) { strWhere += " and jcdate >= '"+zcsj+"' "; } //结束时间 var zcsje = $("#zcsje").val(); if(zcsj.length>0) { strWhere += " and jcdate <= '"+zcsje+"' "; } //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"//UI/action//ldzjkjcjg/LdzjkjcjgAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.enterno; }else{ strId=""; } myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/ldzjkjcjg/LdzjkjcjgAction_loginFindByKey.action?messageBean.method=add&tjdwbh="+ getUrlParam("enterno") +"&ldzbh="+getUrlParam("strSysno")+"&strSysno="+strId, width: openWidth,height:openHeight, title: '劳动者健康检查结果', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); //f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.sysno; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/ldzjkjcjg/LdzjkjcjgAction_findByKey.action?messageBean.method=update&enterno="+ getUrlParam("enterno") +"&strSysno="+strId, width: openWidth,height:openHeight, title: '劳动者健康检查结果', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"//UI/action/ldzjkjcjg/LdzjkjcjgAction_findByKey.action?messageBean.method=look&enterno="+ getUrlParam("enterno") +"&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '劳动者健康检查结果', showMax: false, showToggle: false, showMin: false, isResize: true, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } } /*人员*/ function f_lookry(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //alert("selected.ldzbh:"+selected.ldzbh); // top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.ldzxm+'基本信息', url: webpath+'/UI/enterfile/ldzjbxx/ldzjbxxmain.jsp?sysno='+ selected.ldzbh +'&enterno='+selected.enterno }); loadSubWindow(webpath+'/UI/enterfile/ldzjbxx/ldzjbxxmain.jsp?sysno='+ selected.ldzbh +'&enterno='+selected.enterno); } }catch (e) { $.ligerDialog.error(e.message); } } /*单位*/ function f_lookdw(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.entername+'档案库', url: webpath+'UI/enterfile/info/enterinfomain.jsp?enterno='+selected.enterno }); loadSubWindow(webpath+'UI/enterfile/info/enterinfomain.jsp?enterno='+selected.enterno); } }catch (e) { $.ligerDialog.error(e.message); } } /*体检*/ function f_looktj(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //alert("selected.tjdwbh:"+selected.tjdwbh); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.tjdwmc+'信息', url:webpath+'/UI/zyjk/wsjg/wsjgmain.jsp?messageBean.method=look&sysno='+selected.tjdwbh }); loadSubWindow(webpath+'/UI/zyjk/wsjg/wsjgmain.jsp?messageBean.method=look&sysno='+selected.tjdwbh); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/wsjg/tjqk/tjqklist.js
JavaScript
oos
9,996
<!-- /**************************************************** * <p>处理内容:劳动者健康检查结果</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>/UI/zyjk/wsjg/tjqk/tjqklist.js"></script> </head> <body class="bodystyle"> <div id="layout"> <!-- TREE区域 --> <%--<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> --%><!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >机构名称:</td> <td class="l-table-edit-td-left" > <input name="jgmc" type="text" id="jgmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >检查单位名称:</td> <td class="l-table-edit-td-left" > <input name="jcdwmc" type="text" id="jcdwmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >劳动者姓名:</td> <td class="l-table-edit-td-left" > <input name="ldzxm" type="text" id="ldzxm" ltype="text" class="l-research-area-input"/> </td> </tr> <tr> <td class="l-table-edit-td-right" >自查时间段:</td> <td class="l-table-edit-td-left" colspan="3"> <table> <tr> <td><input name="zcsj" type="text" id="zcsj" ltype="date" /></td> <td>——</td> <td> <input name="zcsje" type="text" id="zcsje" ltype="date" /></td> </tr> </table> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/wsjg/tjqk/tjqklist.jsp
Java Server Pages
oos
2,367
<!-- /**************************************************** * <p>处理内容:劳动者健康检查结果</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.enterfile.QyzywsjkjcjgBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% QyzywsjkjcjgBean qyzywsjkjcjgbean = (QyzywsjkjcjgBean)request.getAttribute("qyzywsjkjcjgbean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>/UI/zyjk/wsjg/tjqk/tjqkinfo.js"></script> </head> <body class="menubody" style="width: 600"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="qyzywsjkjcjgbean.sysno" value="<%=qyzywsjkjcjgbean.getSysno() %>"/> <!-- 隐藏域 劳动者 id --> <input type="hidden" id="ldzbh" name="qyzywsjkjcjgbean.ldzbh" value="<%=qyzywsjkjcjgbean.getLdzbh() %>"/> <!-- 隐藏域 体检单位编号 id --> <input type="hidden" id="tjdwbh" name="qyzywsjkjcjgbean.tjdwbh" value="<%=qyzywsjkjcjgbean.getTjdwbh() %>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">劳动者姓名:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.ldzxm" type="text" id="ldzxm" value="<%=qyzywsjkjcjgbean.getLdzxm() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">检查单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.entername" type="text" id="entername" value="<%=qyzywsjkjcjgbean.getEntername() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">检查时间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.jcdate" type="text" id="jcdate" value="<%=qyzywsjkjcjgbean.getJcdate() %>" ltype="date" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">粉尘:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.fc" type="text" id="fc" value="<%=qyzywsjkjcjgbean.getFc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">毒物:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.dw" type="text" id="dw" value="<%=qyzywsjkjcjgbean.getDw() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">物理因素:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.wl" type="text" id="wl" value="<%=qyzywsjkjcjgbean.getWl() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">上岗前:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.gq" type="text" id="gq" value="<%=qyzywsjkjcjgbean.getGq() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">在岗期间:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.gz" type="text" id="gz" value="<%=qyzywsjkjcjgbean.getGz() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">离岗时:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.lg" type="text" id="lg" value="<%=qyzywsjkjcjgbean.getLg() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">正常:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.normal" type="text" id="normal" value="<%=qyzywsjkjcjgbean.getNormal()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">复查:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.recheck" type="text" id="recheck" value="<%=qyzywsjkjcjgbean.getRecheck() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">病人:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.patient" type="text" id="patient" value="<%=qyzywsjkjcjgbean.getPatient() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">禁忌症:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.jjz" type="text" id="jjz" value="<%=qyzywsjkjcjgbean.getJjz()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">其他疾患:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.qtjh" type="text" id="qtjh" value="<%=qyzywsjkjcjgbean.getQtjh()%>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">体检单位名称:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="qyzywsjkjcjgbean.tjdwmc" type="text" id="tjdwmc" value="<%=qyzywsjkjcjgbean.getTjdwmc() %>" ltype="text" validate="{required:true }" /> </td> <td class="td_message"></td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/wsjg/tjqk/tjqkinfo.jsp
Java Server Pages
oos
8,572
/**************************************************** * <p>处理内容:劳动者健康检查结果</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-29 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { $.post(webpath+"/st/system/action/table/table_getColumn.action",{key:"qyryxxGrid"},function(data){ grid = colselect.grid.ligerGrid({ checkbox: false, columns:data,pageSizeOptions:[15,20,30,40,50], parms:{strWhere:" and enterno like '%"+ getUrlParam("enterno") +"%'"}, dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=qyryxxGrid", width: '100%',height:'100%',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :true, pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize', pageSize:10,isScroll: true, onError:function(){ $.ligerDialog.error(MSG_LOAD_FALL); }, onSelectRow:function (data, rowindex, rowobj) { $("#ldzxm").val(data.name); colselect.selectBox.hide(); } }); },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); var colselect = $("#ldzxm").ligerComboBox({ width: 250, slide: false, selectBoxWidth: 500, selectBoxHeight: 240, valueField: 'name', textField: 'name', grid: { } }); var columntree =colselect.grid.ligerGetGridManager(); var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/ldzjkjcjg/LdzjkjcjgAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/ldzjkjcjg/LdzjkjcjgAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/wsjg/tjqk/tjqkinfo.js
JavaScript
oos
3,676
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-05-23 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp" %> <head> <title></title> <script language="javascript" src="<%=webpath%>/UI/zyjk/wsjg/wsjglist.js"></script> </head> <body class="bodystyle"> <div id="layout"> <!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >机构名称:</td> <td class="l-table-edit-td-left" > <input name="jgmc" type="text" id="jgmc" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >地址:</td> <td class="l-table-edit-td-left" > <input name="jgdz" type="text" id="jgdz" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-left" ></td> <td class="l-table-edit-td-left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> <tr> <td class="l-table-edit-td-right" >批准文号:</td> <td class="l-table-edit-td-left" > <input name="pzwh" type="text" id="pzwh" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >批准单位:</td> <td class="l-table-edit-td-left" > <input name="pzdw" type="text" id="pzdw" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >批准时间:</td> <td class="l-table-edit-td-left" > <input name="pzsj" type="text" id="pzsj" ltype="date" /> </td> <td align="left"> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/wsjg/wsjglist.jsp
Java Server Pages
oos
2,317
<!-- /********************************************************************* *<p>处理内容:treemenu列表</p> *<p>Copyright: Copyright (c) 2013</p> * @author 孙雁斌 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 孙雁斌 --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <% String sysno=request.getParameter("sysno"); %> <head> <script src="<%=webpath%>/UI/zyjk/wsjg/wsjgmain.js" type="text/javascript"></script> </head> <body class="treemenubody" style="padding:10px"> <div id="layout"> <div position="left" title="检测机构信息导航"> <ul id="tree" style="margin-top:3px;"> </div> <div position="center" id="navtab"> <div tabid="1" title="基本信息" > <iframe style="height:100%" frameborder="0" name="showmessage" src="<%=webpath%>/UI/action/zyjk/WsjgbaAction_findByKey.action?messageBean.method=look&strSysno=<%=sysno%>"></iframe> </div> </div></body> </html>
zyjk
trunk/WebRoot/UI/zyjk/wsjg/wsjgmain.jsp
Java Server Pages
oos
1,336
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- jmx ---------- Note ------------------- * 1.0 2013-05-23 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="660"; var openHeight="440"; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' } ]; grid = Grid('WsjgGrid','卫生机构列表',toolbar); $("#pzsj").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { //myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/WsjgbaAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"卫生机构列表", //showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: data.jgmc+'信息', url:webpath+'/UI/zyjk/wsjg/wsjgmain.jsp?messageBean.method=look&sysno='+data.sysno }); loadSubWindow(webpath+'/UI/zyjk/wsjg/wsjgmain.jsp?messageBean.method=look&sysno='+data.sysno); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; //机构名称 var jgmc = $("#jgmc").val(); if(jgmc.length>0) { strWhere += " and jgmc like '%"+jgmc+"%' "; } //地址 var jgdz = $("#jgdz").val(); if(jgdz.length>0) { strWhere += " and jgdz like '%"+jgdz+"%' "; } //批准文号 var pzwh = $("#pzwh").val(); if(pzwh.length>0) { strWhere += " and pzwh like '%"+pzwh+"%' "; } //批准单位 var pzdw = $("#pzdw").val(); if(pzdw.length>0) { strWhere += " and pzdw like '%"+pzdw+"%' "; } //批准时间 var pzsj = $("#pzsj").val(); if(pzsj.length>0) { strWhere += " and pzsj like '%"+pzsj+"%' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"/UI/action/zyjk/WsjgbaAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ //$.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/WsjgbaAction_findByKey.action?messageBean.method=add&strSysno="+strId, width: openWidth,height:openHeight, title: '职业卫生机构', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/WsjgbaAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '职业卫生机构', showMax: false, showToggle: false, showMin: false, isResize: false, slide: false }); f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/wsjg/wsjgmain.jsp?messageBean.method=look&sysno="+selected.sysno, width: 900,height:600, title: '卫生机构信息查看', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.jgmc+'信息', url:webpath+'/UI/zyjk/wsjg/wsjgmain.jsp?messageBean.method=look&sysno='+selected.sysno }); loadSubWindow(webpath+'/UI/zyjk/wsjg/wsjgmain.jsp?messageBean.method=look&sysno='+selected.sysno); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zyjk/wsjg/wsjglist.js
JavaScript
oos
7,409
/********************************************************************* *<p>处理内容:menu列表js</p> *<p>Copyright: Copyright (c) 2013</p> * @author 贾明欣 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 贾明欣 --------- 新规作成<br> ***********************************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var tab; var openWidth="630"; var openHeight="300"; /*初始化*/ $(function (){ try { /*布局*/ $("#layout").ligerLayout({leftWidth: 200}); /*TAB*/ $("#navtab").ligerTab({height:'105%'}); /*TREE*/ $("#tree").ligerTree({ data:[{id:'1',pid:'0',children:[],text:'体检机构基本情况',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', nodeWidth : 200, checkbox: false, slide: false, onExpand:onExpand, onBeforeExpand: onBeforeExpand, onSelect: function (node) { t_enter(node); } }); tree = $("#tree").ligerGetTreeManager(); tab = $("#navtab").ligerGetTabManager(); }catch (e) { $.ligerDialog.error(e.message); } }); /*双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+data.menuid, width: openWidth,height:openHeight, title: '菜单管理', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } function onBeforeExpand(node){ var nodeid=node.data.id; //alert(node.data.pid); if(node.data.children && (node.data.children.length == 0)){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=WsjginfoTree"); } } /*查看*/ function t_enter(node){ try{ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&strSysno="+getUrlParam("sysno")); }catch (e) { $.ligerDialog.error(e.message); } } /*建立tab*/ function f_addTab(tabid,text, url) { tab.addTabItem({ tabid : tabid,text: text, url: url }); }
zyjk
trunk/WebRoot/UI/zyjk/wsjg/wsjgmain.js
JavaScript
oos
3,060
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.WsjgbaxxBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/wsjg/wsjginfo.js" type="text/javascript"></script> <title>检测机构基本信息</title> <% WsjgbaxxBean wsjgbaxxBean = (WsjgbaxxBean)request.getAttribute("wsjgbaxxBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==wsjgbaxxBean){ wsjgbaxxBean=new WsjgbaxxBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody" style="width:95%"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form" action="<%=webpath%>/UI/action/zyjk/JcjgbaAction_insert.action"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="wsjgbaxxBean.sysno" value="<%=wsjgbaxxBean.getSysno()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">机构名称:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.jgmc" type="text" id="jgmc" value="<%=wsjgbaxxBean.getJgmc()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="wsjgbaxxBean.distcode" type="text" id="distcode" value="<%=wsjgbaxxBean.getDistcode()%>" validate="{required:true}" /> </td> <td class="td_message"></td> --%> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.jgdz" type="text" id="jgdz" value="<%=wsjgbaxxBean.getJgdz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <%--<tr> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pxjgdz" type="text" id="pxjgdz" value="<%=wsjgbaxxBean.getPxjgdz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> --%><tr> <td class="l-table-edit-td-right">法定代表人:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.fddbr" type="text" id="fddbr" value="<%=wsjgbaxxBean.getFddbr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系人:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.lxr" type="text" id="lxr" value="<%=wsjgbaxxBean.getLxr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.lxdh" type="text" id="lxdh" value="<%=wsjgbaxxBean.getLxdh()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">传真:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.fax" type="text" id="fax" value="<%=wsjgbaxxBean.getFax()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">批准文号:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pzwh" type="text" id="pzwh" value="<%=wsjgbaxxBean.getPzwh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">资质级别:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.zzjb" type="text" id="zzjb" value="<%=wsjgbaxxBean.getZzjb()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">批准单位:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pzdw" type="text" id="pzdw" value="<%=wsjgbaxxBean.getPzdw()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">批准时间:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pzsj" type="text" id="pzsj" value="<%=wsjgbaxxBean.getPzsj()%>" ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">体检项目:</td> <td class="l-table-edit-td-left" colspan="4"> <textarea cols="110" rows="4" class="l-textarea" id="jcxm" name="wsjgbaxxBean.jcxm" style="width:475px" validate="{required:true}" ><%=wsjgbaxxBean.getJcxm()%></textarea> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">备注:</td> <td class="l-table-edit-td-left" colspan="4"> <textarea cols="110" rows="4" class="l-textarea" id="bz" name="wsjgbaxxBean.bz" style="width:475px" ><%=wsjgbaxxBean.getBz()%></textarea> </td> <td class="td_message"></td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/wsjg/wsjginfo.jsp
Java Server Pages
oos
8,059
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjk/WsjgbaAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjk/WsjgbaAction_update.action"; } $("#distcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 200, textField:'text', treeLeafOnly:true, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { } } }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { //parent.myWindow.close(); top.$.ligerDialog.close(); top.$.ligerDialog.hide() //top.$.ligerDialog.close(); }); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zyjk/wsjg/login/wsjginfo.js
JavaScript
oos
3,047
<!-- /********************************************************************* *<p>处理内容:treemenu列表</p> *<p>Copyright: Copyright (c) 2013</p> * @author 孙雁斌 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 孙雁斌 --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <% String sysno=request.getParameter("sysno"); %> <head> <script src="<%=webpath%>/UI/zyjk/wsjg/wsjgmain.js" type="text/javascript"></script> </head> <body class="treemenubody" style="padding:10px"> <div id="layout"> <div position="left" title="检测机构信息导航"> <ul id="tree" style="margin-top:3px;"> </div> <div position="center" id="navtab"> <div tabid="1" title="基本信息" > <iframe frameborder="0" name="showmessage" src="<%=webpath%>/UI/action/zyjk/WsjgbaAction_findByKey.action?messageBean.method=look&strSysno=<%=sysno%>"></iframe> </div> </div></body> </html>
zyjk
trunk/WebRoot/UI/zyjk/wsjg/login/wsjgmain.jsp
Java Server Pages
oos
1,316
/********************************************************************* *<p>处理内容:menu列表js</p> *<p>Copyright: Copyright (c) 2013</p> * @author 贾明欣 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.3.2---- 贾明欣 --------- 新规作成<br> ***********************************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var tab; var openWidth="630"; var openHeight="300"; /*初始化*/ $(function (){ try { /*布局*/ $("#layout").ligerLayout({leftWidth: 200}); /*TAB*/ $("#navtab").ligerTab({height:'85%'}); /*TREE*/ $("#tree").ligerTree({ data:[{id:'1',pid:'0',children:[],text:'检测机构基本情况',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', nodeWidth : 200, checkbox: false, slide: false, onExpand:onExpand, onBeforeExpand: onBeforeExpand, onSelect: function (node) { t_enter(node); } }); tree = $("#tree").ligerGetTreeManager(); tab = $("#navtab").ligerGetTabManager(); }catch (e) { $.ligerDialog.error(e.message); } }); /*双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+data.menuid, width: openWidth,height:openHeight, title: '菜单管理', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } function onBeforeExpand(node){ var nodeid=node.data.id; //alert(node.data.pid); if(node.data.children && (node.data.children.length == 0)){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=WsjginfoTree"); } } /*查看*/ function t_enter(node){ try{ f_addTab(node.data.id,node.data.text,webpath+node.data.url+"?messageBean.method=look&strSysno="+getUrlParam("sysno")); }catch (e) { $.ligerDialog.error(e.message); } } /*建立tab*/ function f_addTab(tabid,text, url) { tab.addTabItem({ tabid : tabid,text: text, url: url }); }
zyjk
trunk/WebRoot/UI/zyjk/wsjg/login/wsjgmain.js
JavaScript
oos
3,059
<!-- /********************************************************************* *<p>处理内容:ptdept 表单域</p> *<p>Copyright: Copyright (c) 2013</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17----jmx --------- 新规作成<br> ***********************************************************************/ --> <%@ page language="java" import="st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.WsjgbaxxBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <script src="<%=webpath%>/UI/zyjk/wsjg/wsjginfo.js" type="text/javascript"></script> <title>检测机构基本信息</title> <% WsjgbaxxBean wsjgbaxxBean = (WsjgbaxxBean)request.getAttribute("wsjgbaxxBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); if(null==wsjgbaxxBean){ wsjgbaxxBean=new WsjgbaxxBean(); } if(null==messageBean){ messageBean=new MessageBean(); } %> </head> <body class="menubody" style="width:95%"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form" action="<%=webpath%>/UI/action/zyjk/JcjgbaAction_insert.action"> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="wsjgbaxxBean.sysno" value="<%=wsjgbaxxBean.getSysno()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center"> <tr> <td class="l-table-edit-td-right">机构名称:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.jgmc" type="text" id="jgmc" value="<%=wsjgbaxxBean.getJgmc()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <%--<td class="l-table-edit-td-right">行政区划:</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="wsjgbaxxBean.distcode" type="text" id="distcode" value="<%=wsjgbaxxBean.getDistcode()%>" validate="{required:true}" /> </td> <td class="td_message"></td> --%> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.jgdz" type="text" id="jgdz" value="<%=wsjgbaxxBean.getJgdz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <%--<tr> <td class="l-table-edit-td-right">地址:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pxjgdz" type="text" id="pxjgdz" value="<%=wsjgbaxxBean.getPxjgdz()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> --%><tr> <td class="l-table-edit-td-right">法定代表人:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.fddbr" type="text" id="fddbr" value="<%=wsjgbaxxBean.getFddbr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">联系人:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.lxr" type="text" id="lxr" value="<%=wsjgbaxxBean.getLxr()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">联系电话:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.lxdh" type="text" id="lxdh" value="<%=wsjgbaxxBean.getLxdh()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">传真:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.fax" type="text" id="fax" value="<%=wsjgbaxxBean.getFax()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">批准文号:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pzwh" type="text" id="pzwh" value="<%=wsjgbaxxBean.getPzwh()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">资质级别:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.zzjb" type="text" id="zzjb" value="<%=wsjgbaxxBean.getZzjb()%>"ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">批准单位:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pzdw" type="text" id="pzdw" value="<%=wsjgbaxxBean.getPzdw()%>" ltype="text" validate="{required:true}" /> </td> <td class="td_message"></td> <td class="l-table-edit-td-right">批准时间:</td> <td class="l-table-edit-td-left" > <input name="wsjgbaxxBean.pzsj" type="text" id="pzsj" value="<%=wsjgbaxxBean.getPzsj()%>" ltype="date" validate="{required:true}" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">体检项目:</td> <td class="l-table-edit-td-left" colspan="4"> <textarea cols="110" rows="4" class="l-textarea" id="jcxm" name="wsjgbaxxBean.jcxm" style="width:475px" validate="{required:true}" ><%=wsjgbaxxBean.getJcxm()%></textarea> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">备注:</td> <td class="l-table-edit-td-left" colspan="4"> <textarea cols="110" rows="4" class="l-textarea" id="bz" name="wsjgbaxxBean.bz" style="width:475px" ><%=wsjgbaxxBean.getBz()%></textarea> </td> <td class="td_message"></td> </tr> </table> <br /><%-- <input type="submit" value="提交"/><input type="button" value="gettab" onclick="getTab()"/><input type="submit" value="提交"/> --%><table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <%--<input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> --%></td> </tr> </table> </form> <div style="display:none"></div> </body> </html>
zyjk
trunk/WebRoot/UI/zyjk/wsjg/login/wsjginfo.jsp
Java Server Pages
oos
8,067
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.T_yhzc_bzbBean"/> <jsp:directive.page import="st.portal.action.MessageBean"/> <jsp:directive.page import="UI.dao.zyjk.ZczjqyxxzbBean"/> <jsp:directive.page import="UI.dao.zyjk.ZczjdfbBean"/> <jsp:directive.page import="UI.dao.enterfile.QyjbqkBean"/> <jsp:directive.page import="UI.util.*"/> <jsp:directive.page import="UI.dao.zyjk.T_officerBean"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <%@ page import="st.portal.html.*"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); ZczjqyxxzbBean zczjqyxxzbBean=(ZczjqyxxzbBean)request.getAttribute("zczjqyxxzbBean"); QyjbqkBean qyjbqkBean=new QyjbqkBean(); qyjbqkBean=qyjbqkBean.findFirst(" where enterno='"+ zczjqyxxzbBean.getEnterno() +"'"); if(null==qyjbqkBean){ qyjbqkBean=new QyjbqkBean(); } if(null==zczjqyxxzbBean){ zczjqyxxzbBean=new ZczjqyxxzbBean(); } if(null==messageBean){ messageBean=new MessageBean(); } String state="1"; T_officerBean officer=(T_officerBean )session.getAttribute(SystemAttributeNames.CORP_INFO_NAME); if(null!=officer){ state="0"; } //String login_id=request.getParameter("login_id"); //QyjbqkBean qyjbqkbean=new QyjbqkBean(); //qyjbqkbean=qyjbqkbean.findFirst(" where corpkey='"+ login_id +"'"); //if(null!=qyjbqkbean&&!"".equals(qyjbqkbean)){ //Reflect.setVOFromForm(zczjqyxxzbBean, qyjbqkbean); //} List<T_yhzc_bzbBean> list=(List<T_yhzc_bzbBean>)request.getAttribute("list"); Map<Object,Object> nrmap=(Map<Object,Object>)request.getAttribute("nrmap"); Map<Object,Object> ffmap=(Map<Object,Object>)request.getAttribute("ffmap"); Map<Object,Object> dfmap=(Map<Object,Object>)request.getAttribute("dfmap"); int con=0; %> <%@ include file="/webpath.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>自查自纠表</title> <link href="<%=webpath%>/js/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" /> <link href="<%=webpath%>/js/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" /> <link href="<%=webpath%>/css/zpf.css" rel="stylesheet" type="text/css" /> <!--全文jquery引用 --> <script src="<%=webpath%>/js/jquery/jquery-1.5.2.min.js" type="text/javascript"></script> <!-- ligerUI控件 --> <script src="<%=webpath%>/js/ligerUI/js/core/base.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerMenuBar.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerButton.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerAccordion.js" type="text/javascript"></script> <!-- validation控件 --> <script src="<%=webpath%>/js/jquery-validation/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=webpath%>/js/jquery-validation/jquery.metadata.js" type="text/javascript"></script> <script src="<%=webpath%>/js/jquery-validation/messages_cn.js" type="text/javascript"></script> <!-- JS全局变量 --> <script src="<%=webpath%>/js/jsConstant.js" type="text/javascript"></script> <script src="<%=webpath%>/js/zbasic.js" type="text/javascript"></script> <script src="<%=webpath%>/js/zgrid.js" type="text/javascript"></script> <script src="<%=webpath%>/js/zform.js" type="text/javascript"></script> <script src="<%=webpath%>/UI/zczj/zywhzczjbn.js" type="text/javascript"></script> <style> body,td,th {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;color: #1d1007; line-height:24px} .table{border:solid #B0C4DE; border-width:1px 0px 0px 1px;} .tableth{border:solid #B0C4DE; border-width:0px 1px 1px 0px; padding-left:10px;} .tabletd{border:solid #B0C4DE; border-width:0px 1px 1px 0px; padding-left:10px;} </style> </head> <body> <form name="form" id="form" action=""> <div> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="zczjqyxxzbBean.sysno" value="<%=zczjqyxxzbBean.getSysno()%>"/> <!-- 隐藏域 主键id --> <input type="hidden" id="zbid" name="zczjqyxxzbBean.zbid" value="<%=zczjqyxxzbBean.getZbid()%>"/> <!-- 操作method --> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod()%>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <!--区划 --> <input type="hidden" id="ditcode" name="zczjqyxxzbBean.ditcode" value="<%=zczjqyxxzbBean.getDitcode()%>"/> <!-- --> <input type="hidden" id="state" value="<%=state %>"/> <!-- --> <input type="hidden" id="bak1" name="zczjqyxxzbBean.bak1" value="<%=zczjqyxxzbBean.getBak1() %>"/> <!--国家数据库主键 --> <input type="hidden" id="corpkey" name="zczjqyxxzbBean.corpkey" value="<%=zczjqyxxzbBean.getCorpkey() %>"/> <!--企业主键 --> <input type="hidden" id="" name="" value="<%=zczjqyxxzbBean.getEnterno() %>"/> </div> <table width="90%" align="center"> <tr> <td colspan="10" height="50" align="center" style="font-size: 25px;padding-top: 5px;">用人单位职业卫生基础建设自查自纠表</td> </tr> <tr> <td class="l-table-edit-td-right">企业名称:</td> <td ><input type="text" id="dwmc" readonly name="zczjqyxxzbBean.dwmc" value="<%=zczjqyxxzbBean.getDwmc()%>"/></td> <td class="l-table-edit-td-right">单位地址:</td> <td> <input type="text" id="dwdz" name="" readonly value="<%=qyjbqkBean.getZcdz() %>"/></td> <td class="l-table-edit-td-right">所在地区:</td> <td> <input type="text" id="enuditcode" name="" value="<%=DistcodeUtil.getDistName(zczjqyxxzbBean.getDitcode())%>"/></td> </tr> <tr> <td class="l-table-edit-td-right">联系人:</td> <td><input type="text" id="lxr" name="zczjqyxxzbBean.lxr" value="<%=zczjqyxxzbBean.getLxr()%>"/></td> <td class="l-table-edit-td-right">电话:</td> <td><input type="text" id="lxdh" name="zczjqyxxzbBean.lxdh" value="<%=zczjqyxxzbBean.getLxdh()%>"/></td> <td class="l-table-edit-td-right">自查日期:</td> <td><input type="text" id="zcsj" name="zczjqyxxzbBean.zcsj" value="<%=zczjqyxxzbBean.getZcsj()%>" ltype="date"/></td> </tr> </table> <br> <table width="90%" border="1" align="center" class="table"> <tr> <th class="tableth" style="width: 10%;text-align: center;">项目</th> <th class="tableth" style="width: 20%;text-align: center;">主要内容</th> <th class="tableth" style="width: 70%;text-align: center;">方法</th> <th class="tableth" style="width: 10%;text-align: center;">自查结果</th> </tr> <%for(int i=0;i<list.size();i++){ T_yhzc_bzbBean zb=list.get(i); List<T_yhzc_bzbBean> nrlist=(List<T_yhzc_bzbBean>)nrmap.get(zb); %> <tr onMouseOver=this.style.backgroundColor:'#eaf2ff';this.style.cursor='hand' onMouseOut=this.style.backgroundColor=''> <td class="tabletd" rowspan="<%=zb.getBz() %>"> <%=zb.getBzmc() %> </td> <%for(int j=0;j<nrlist.size();j++){ T_yhzc_bzbBean nrbz=nrlist.get(j); List<T_yhzc_bzbBean> fflist=(List<T_yhzc_bzbBean>)ffmap.get(nrbz); %> <td class="tabletd" rowspan="<%=nrbz.getBz()%>"> <%=nrbz.getBzmc() %> </td> <%for(int c=0;c<fflist.size();c++){ T_yhzc_bzbBean ffbz=fflist.get(c); ZczjdfbBean df=(ZczjdfbBean)dfmap.get(ffbz); if(null==df){ df=new ZczjdfbBean(); } %> <td class="tabletd" rowspan="<%=ffbz.getBz()%>"> <%=ffbz.getBzmc() %> </td> <%if(df.getFs().equals("2")){ %> <td class="tabletd" rowspan="<%=ffbz.getBz()%>" style="color: #FFFF;"> <%}else{ %> <td class="tabletd" rowspan="<%=ffbz.getBz()%>"> <%} %> <input type="hidden" id="zlsysno<%=con %>" name="beans[<%=con %>].zlsysno" value="<%=zb.getZbid() %>"/> <input type="hidden" id="xmsysno<%=con %>" name="beans[<%=con %>].xmsysno" value="<%=zb.getId() %>"/> <input type="hidden" id="nrsysno<%=con %>" name="beans[<%=con %>].nrsysno" value="<%=nrbz.getId() %>"/> <input type="hidden" id="ffsysno<%=con %>" name="beans[<%=con %>].ffsysno" value="<%=ffbz.getId() %>"/> <% //DBSelect dbsel = new DBSelect("beans["+con+"].fs","SFHG",df.getFs()); //dbsel.addAttr("style", "width: 202px;"); //dbsel.addAttr("check", "notBlank"); //dbsel.addAttr("required", "true"); //dbsel.addAttr("showName", "是否合格"); //dbsel.setDisplayAll(false); //out.print(dbsel); DBRadio check = new DBRadio("beans["+con+"].fs","beans["+con+"].fs","SFHG",df.getFs()); out.print(check.toString()); %> </td> </tr> <% con++; //System.out.println(con++); } %> <%} %> <%} %> <tr> <td class="tabletd"> <center> 总计</br> (60项) </center> </td> <td colspan="3" height="40px" class="tabletd"> <table > <tr> <td>合格</td><td><input type="text" readonly="readonly" name="zczjqyxxzbBean.hgx" id="hgx" validate="{required:true}" value="<%=zczjqyxxzbBean.getHgx() %>" style="width: 25px"/></td><td>项,</td> <td>不合格</td><td><input type="text" readonly="readonly" name="zczjqyxxzbBean.bhgx" id="bhgx" validate="{required:true}" value="<%=zczjqyxxzbBean.getBhgx() %>" style="width: 25px"/></td><td>项,</td> <td>合格率</td><td><input type="text" readonly="readonly" name="zczjqyxxzbBean.hgl" id="hgl" validate="{required:true}" value="<%=zczjqyxxzbBean.getHgl() %>" style="width: 25px"/></td><td>%</td> <td><input type="button" value="计算结果" onclick="getResult()" class="l-button l-button-test"/></td> </tr> </table> </td> </tr> </table> <br> <table align="center"> <tr> <td> <input type="button" value="暂存" id="zcButton" onclick="zc()" class="l-button l-button-submit" /> </td> <td> <input type="submit" value="上报" id="subButton" class="l-button l-button-submit" /> </td> </tr> </table> <br> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zywhzczjbn.jsp
Java Server Pages
oos
13,195
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- ---------- Note ------------------- * 1.0 2013-06-21 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="st.system.dao.PtdeptBean"/> <jsp:directive.page import="UI.dao.zyjk.ZczjdfbBean"/> <jsp:directive.page import="UI.dao.zyjk.ZczjqyxxzbBean"/> <jsp:directive.page import="java.util.*"/> <jsp:directive.page import="org.apache.struts2.ServletActionContext"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <% //PtdeptBean dept=(PtdeptBean)ServletActionContext.getContext().getSession().get(SystemAttributeNames.DEPT_INFO_NAME); //String distcode=dept.getDistcode(); ZczjdfbBean dfbBean=new ZczjdfbBean(); ZczjqyxxzbBean xxbBean=new ZczjqyxxzbBean(); //List<ZczjqyxxzbBean> xxblist=new ArrayList<ZczjqyxxzbBean>(); String enterno=request.getParameter("enterno"); xxbBean=xxbBean.findFirst(" where (enterno='"+ enterno +"' or corpkey='"+enterno +"') and bak1 in ('1','3') order by zcsj desc"); //xxblist=xxbBean.find(" where enterno='"+ enterno +"' and bak1 in ('1','3') order by zcsj desc"); String sysno; if(null==xxbBean){ sysno=""; }else{ sysno=xxbBean.getSysno(); } //System.out.println("企业的编号:"+enterno); %> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zczj/bhglist.js"></script> </head> <body class="bodystyle" style="height:600px"> <input type="hidden" name="zbid" id="zbid"/> <input type="hidden" name="" id="sysno" value="<%=sysno %>"/> <input type="hidden" name="distcode" id="distcode" value=""/> <div id="layout"> <!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/bhglist.jsp
Java Server Pages
oos
2,307
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.util.DataTable"/> <jsp:directive.page import="st.platform.system.cache.EnumerationType"/> <jsp:directive.page import="UI.util.BusinessDate"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; DataTable dt=(DataTable)request.getAttribute("table"); String discode=(String)request.getAttribute("distcode"); String hylb=(String)request.getAttribute("hylb"); String whys=(String)request.getAttribute("whys"); if(null==discode){ discode=""; }else{ if(discode.equals("3702")){ discode="370200000000"; } } if(null==hylb){ hylb=""; } if(null==whys){ whys=""; } %> <%@ include file="/global.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>按危害因素对企业基础建设情况统计</title> </head> <link href="<%=request.getContextPath()%>/css/analyze.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="<%=request.getContextPath()%>/css/base.css" type="text/css" /> <script type="text/javascript" src="<%=request.getContextPath()%>/js/index.js"></script> <!-- form util --> <script language="javascript" src="<%=request.getContextPath() %>/js/formutils.js"></script> <!-- 时间控件 --> <script language="javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js" defer="defer"></script> <script type="text/javascript"> var zbid="T_YHZC_BZZB370000130605000001"; var myWindow=null; var openWidth="1000"; var openHeight="650"; function queryClick(){ document.all.tform.submit(); } function load(xcode,ycode){ if(ycode=="AA"){ ycode="0"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYBWHLB='+ycode+'&hylb='+hylb+'&whys='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadhg(xcode,ycode){ if(ycode=="A"){ ycode="1"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYWSGLDJ='+ycode+'&hylb='+hylb+'&whys='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadbhg(xcode,ycode){ if(ycode=="B"){ ycode="2"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&HDGLDJ='+ycode+'&hylb='+hylb+'&whys='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } $(function () { var colselect=$("#distcodename").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick: function (node) { $("#distcode").val(node.data.id); $("#distcodename").val(node.data.text); } } }); var columntree = colselect.tree.ligerGetTreeManager(); $("#hylbname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=HYFLTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#hylbname").val(node.data.text); $("#hylb").val(node.data.id); } } }); $("#prjName").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=BzbTree&strTreeID=T_YHZC_BZZB370000130605000001', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#prjName").val(node.data.text); $("#prj").val(node.data.id); } } }); $("#whysname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=WHYSTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#whysname").val(node.data.text); $("#whys").val(node.data.id); } } }); }) </script> <body> <form action="<%=basePath %>/UI/action/zczjtj/ZCZJTjAction_getWhysTable.action" id="tform" name="tform"> <input type="hidden" name="year" id="year" value="<%=BusinessDate.getYear() %>"/> <table style=" width:100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr height="20"> <td align="center" ><span id="hy"></span>行业分类</td> <td align="center" width="18%"> <input type="hidden" id="hylb" name="hylb" style="width:10px;" fieldname="hylb" value="<%=hylb %>" alerttitle="行业类别" fieldType="text" > <input id="hylbname" style="width:65%;" fieldname="hylbname" alerttitle="行政区划" type="text" value="<%=EnumerationType.getEnu("HYLB", hylb)%>"> </td> <td align="center" >行政区划</td> <td align="center" width="20%"> <input type="hidden" id="distcode" name="distcode" style="width:10px;" fieldname="ssdq" value="<%=discode %>" alerttitle="行政区划" fieldType="text" > <input id="distcodename" style="width:70%;" fieldname="DISTCODENAME" alerttitle="行政区划" type="text" value="<%=DistcodeUtil.getDistName(discode)%>"> </td> <td align="center"><input class="l-button l-button-submit" id="savebut" type="button" value="查看" onClick="queryClick();"> </td> </tr> <tr height="20"> <td align="center" >危害因素</td> <td align="center" width="20%"> <input type="hidden" id="whys" name="whys" style="width:10px;" fieldname="whys" alerttitle="危害因素" value="<%=whys %>" fieldType="text" > <input id="whysname" style="width:70%;" fieldname="whysname" alerttitle="危害因素名称" type="text" value="<%=EnumerationType.getEnu("WHYS", whys)%>"> </td> <td align="center" >项目类别</td> <td align="center" width="20%"> <input type="hidden" id="prj" name="whys" style="width:10px;" fieldname="prj" alerttitle="项目类别" value="" fieldType="text" > <input id="prjName" style="width:70%;" fieldname="prjName" alerttitle="项目类别" type="text" value=""> </td> <td align="center"> <input class="l-button l-button-submit" type="reset" value="重置"> </td> </tr> </table> </form> <br> <center><font size="5">按危害因素对企业基础建设情况统计</font></center> <br> <table class="analyzetbl" width="100%" align="center" border="0"> <tr> <th width="15%">危害因素</th> <th>企业数</th> <th>合格</th> <th>不合格</th> </tr> <% for(int i=0;i<dt.getRows();i++){ %> <tr> <td align="center"> <%=dt.getRowMetaCaption(i) %> </td> <%for(int j=1;j<dt.getCols();j++){ if(j==1){ %> <td align="center"><a href="javascript:load('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else if(j==2){%> <td align="center"><a href="javascript:loadhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else{ %> <td align="center"><a href="javascript:loadbhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <% } } %> </tr> <%} %> </table> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/tj/whysTj.jsp
Java Server Pages
oos
12,909
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.util.DataTable"/> <jsp:directive.page import="UI.util.BusinessDate"/> <jsp:directive.page import="st.platform.system.cache.EnumerationType"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; DataTable dt=(DataTable)request.getAttribute("table"); String discode=(String)request.getAttribute("distcode"); String hylb=(String)request.getAttribute("hylb"); String whys=(String)request.getAttribute("whys"); if(null==discode){ discode=""; }else{ if(discode.equals("3702")){ discode="370200000000"; } } if(null==hylb){ hylb=""; } if(null==whys){ whys=""; } %> <%@ include file="/global.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>按注册类型统对企业基础建设情况统计</title> </head> <link href="<%=request.getContextPath()%>/css/analyze.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="<%=request.getContextPath()%>/css/base.css" type="text/css" /> <script type="text/javascript" src="<%=request.getContextPath()%>/js/index.js"></script> <!-- form util --> <script language="javascript" src="<%=request.getContextPath() %>/js/formutils.js"></script> <!-- 时间控件 --> <script language="javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js" defer="defer"></script> <script type="text/javascript"> var zbid="T_YHZC_BZZB370000130605000001"; var myWindow=null; var openWidth="1000"; var openHeight="650"; function queryClick(){ document.all.tform.submit(); } function load(xcode,ycode){ if(ycode=="AA"){ ycode="0"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYBWHLB='+ycode+'&hylb='+hylb+'&whys='+whys+'&zclx='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&zclx="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadhg(xcode,ycode){ if(ycode=="A"){ ycode="1"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYWSGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+'&zclx='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&zclx="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadFj(xcode,ycode){ if(ycode=="B"){ ycode="2"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&HDGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+'&zclx='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&zclx="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } $(function () { var colselect=$("#distcodename").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick: function (node) { $("#distcode").val(node.data.id); $("#distcodename").val(node.data.text); } } }); var columntree = colselect.tree.ligerGetTreeManager(); $("#hylbname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=HYFLTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#hylbname").val(node.data.text); $("#hylb").val(node.data.id); } } }); $("#prjName").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=BzbTree&strTreeID=T_YHZC_BZZB370000130605000001', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#prjName").val(node.data.text); $("#prj").val(node.data.id); } } }); $("#whysname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=WHYSTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#whysname").val(node.data.text); $("#whys").val(node.data.id); } } }); }) </script> <body> <form action="<%=basePath %>/UI/action/zczjtj/ZCZJTjAction_getzclxTable.action" id="tform" name="tform"> <input type="hidden" name="year" id="year" value="<%=BusinessDate.getYear() %>"/> <table style=" width:100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr height="20"> <td align="center" ><span id="hy"></span>行业分类</td> <td align="center" width="18%"> <input type="hidden" id="hylb" name="hylb" style="width:10px;" fieldname="hylb" value="<%=hylb %>" alerttitle="行业类别" fieldType="text" > <input id="hylbname" style="width:65%;" fieldname="hylbname" alerttitle="行政区划" type="text" value="<%=EnumerationType.getEnu("HYLB", hylb)%>"> </td> <td align="center" >行政区划</td> <td align="center" width="20%"> <input type="hidden" id="distcode" name="distcode" style="width:10px;" fieldname="ssdq" value="<%=discode %>" alerttitle="行政区划" fieldType="text" > <input id="distcodename" style="width:70%;" fieldname="DISTCODENAME" alerttitle="行政区划" type="text" value="<%=DistcodeUtil.getDistName(discode)%>"> </td> <td align="center"><input class="l-button l-button-submit" id="savebut" type="button" value="查看" onClick="queryClick();"> </td> </tr> <tr height="20"> <td align="center" >危害因素</td> <td align="center" width="20%"> <input type="hidden" id="whys" name="whys" style="width:10px;" fieldname="whys" alerttitle="危害因素" value="<%=whys %>" fieldType="text" > <input id="whysname" style="width:70%;" fieldname="whysname" alerttitle="危害因素名称" type="text" value="<%=EnumerationType.getEnu("WHYS", whys)%>"> </td> <td align="center" >项目类别</td> <td align="center" width="20%"> <input type="hidden" id="prj" name="whys" style="width:10px;" fieldname="prj" alerttitle="项目类别" value="" fieldType="text" > <input id="prjName" style="width:70%;" fieldname="prjName" alerttitle="项目类别" type="text" value=""> </td> <td align="center"> <input class="l-button l-button-submit" type="reset" value="重置"> </td> </tr> </table> </form> <br> <center><font size="5">按注册类型对企业基础建设情况统计</font></center> <br> <table class="analyzetbl" width="100%" align="center" border="0"> <tr> <th width="15%">注册类型</th> <th>企业数</th> <th>合格</th> <th>不合格</th> </tr> <% for(int i=0;i<dt.getRows();i++){ %> <tr> <td align="center"> <%=dt.getRowMetaCaption(i) %> </td> <%for(int j=1;j<dt.getCols();j++){ if(j==1){ %> <td align="center"><a href="javascript:load('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else if(j==2){%> <td align="center"><a href="javascript:loadhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else{ %> <td align="center"><a href="javascript:loadbhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <% } } %> </tr> <%} %> </table> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/tj/zclxTj.jsp
Java Server Pages
oos
13,000
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.util.DataTable"/> <jsp:directive.page import="UI.util.BusinessDate"/> <jsp:directive.page import="st.platform.system.cache.EnumerationType"/> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; DataTable dt=(DataTable)request.getAttribute("table"); String discode=(String)request.getAttribute("distcode"); String hylb=(String)request.getAttribute("hylb"); String whys=(String)request.getAttribute("whys"); if(null==discode){ discode=""; }else{ if(discode.equals("3702")){ discode="370200"; } } if(null==hylb){ hylb=""; } if(null==whys){ whys=""; } %> <%@ include file="/global.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>按行政区域统计分类分级情况</title> </head> <link href="<%=request.getContextPath()%>/css/analyze.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="<%=request.getContextPath()%>/css/base.css" type="text/css" /> <script type="text/javascript" src="<%=request.getContextPath()%>/js/index.js"></script> <!-- form util --> <script language="javascript" src="<%=request.getContextPath() %>/js/formutils.js"></script> <!-- 时间控件 --> <script language="javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js" defer="defer"></script> <script type="text/javascript"> var zbid="T_YHZC_BZZB370000130605000001"; var myWindow=null; var openWidth="1000"; var openHeight="650"; function queryClick(){ document.all.tform.submit(); } function load(xcode,ycode){ if(ycode=="AA"){ ycode="0"; } var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+xcode+'&ZYBWHLB='+ycode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+xcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadhg(xcode,ycode){ if(ycode=="A"){ ycode="1"; } var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+xcode+'&ZYWSGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+xcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadbhg(xcode,ycode){ if(ycode=="B"){ ycode="2"; } var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+xcode+'&HDGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+xcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function openZjTj(distcode){ var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; window.open('<%=basePath%>UI/action/zczjtj/ZCZJTjAction_getZjDistcodeTable.action?distcode='+distcode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); } $(function () { $("#hylbname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=HYFLTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#hylbname").val(node.data.text); $("#hylb").val(node.data.id); } } }); $("#whysname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=WHYSTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#whysname").val(node.data.text); $("#whys").val(node.data.id); } } }); }) </script> <body> <form action="<%=basePath %>/UI/action/zczjtj/ZCZJTjAction_getZjDistcodeTable.action" id="tform" name="tform"> <input type="hidden" name="year" id="year" value="<%=BusinessDate.getYear() %>"/> <input type="hidden" id="distcode" name="distcode" style="width:10px;" fieldname="ssdq" value="<%=discode %>" alerttitle="行政区划" fieldType="text" > <table style=" width:100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr height="20"> <td align="center" ><span id="hy"></span>行业分类</td> <td align="center" width="18%"> <input type="hidden" id="hylb" name="hylb" style="width:10px;" fieldname="hylb" value="<%=hylb %>" alerttitle="行业类别" fieldType="text" > <input id="hylbname" style="width:65%;" fieldname="hylbname" alerttitle="行业分类" type="text" value="<%=EnumerationType.getEnu("HYLB", hylb)%>"> </td> <td align="center" >危害因素</td> <td align="center" width="20%"> <input type="hidden" id="whys" name="whys" style="width:10px;" fieldname="whys" alerttitle="危害因素" value="<%=whys %>" fieldType="text" > <input id="whysname" style="width:70%;" fieldname="whysname" alerttitle="危害因素名称" type="text" value="<%=EnumerationType.getEnu("WHYS", whys)%>"> </td> <td align="center"><input class="l-button l-button-submit" id="savebut" type="button" value="查看" onClick="queryClick();"> <input class="l-button l-button-submit" type="reset" value="重置"></td> </tr> </table> </form> <br> <center><font size="5">按行政区域对企业基础建设情况统计</font></center> <br> <table class="analyzetbl" width="100%" align="center" border="0"> <tr> <th width="15%">行政区域</th> <th>企业数</th> <th>合格</th> <th>不合格</th> </tr> <% for(int i=0;i<dt.getRows();i++){ %> <tr> <td align="center"> <%if(dt.getRowMeta(i).equals("")||(dt.getRowMeta(i).indexOf("00000000")<0&&dt.getRowMeta(i).indexOf("000000")<0&&dt.getRowMeta(i).indexOf("000")<0)){ %> <%=dt.getRowMetaCaption(i) %> <%}else{%> <a href="javascript:openZjTj('<%=dt.getRowMeta(i) %>')" ><%=dt.getRowMetaCaption(i) %></a> <%}%> </td> <%for(int j=1;j<dt.getCols();j++){ if(j==1){ %> <td align="center"><a href="javascript:load('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else if(j==2){ %> <td align="center"><a href="javascript:loadhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else{ %> <td align="center"><a href="javascript:loadbhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <% } } %> </tr> <%} %> </table> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/tj/distcodeZjTj.jsp
Java Server Pages
oos
9,520
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.util.DataTable"/> <jsp:directive.page import="UI.util.BusinessDate"/> <jsp:directive.page import="st.platform.system.cache.EnumerationType"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; DataTable dt=(DataTable)request.getAttribute("table"); String discode=(String)request.getAttribute("distcode"); String hylb=(String)request.getAttribute("hylb"); String whys=(String)request.getAttribute("whys"); if(null==discode){ discode=""; }else{ if(discode.equals("3702")){ discode="370200000000"; } } if(null==hylb){ hylb=""; } if(null==whys){ whys=""; } %> <%@ include file="/global.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>按行政区域统计分类分级情况</title> </head> <link href="<%=request.getContextPath()%>/css/analyze.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="<%=request.getContextPath()%>/css/base.css" type="text/css" /> <script type="text/javascript" src="<%=request.getContextPath()%>/js/index.js"></script> <!-- form util --> <script language="javascript" src="<%=request.getContextPath() %>/js/formutils.js"></script> <!-- 时间控件 --> <script language="javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js" defer="defer"></script> <script type="text/javascript"> var zbid="T_YHZC_BZZB370000130605000001"; var myWindow=null; var openWidth="1000"; var openHeight="650"; function queryClick(){ document.all.tform.submit(); } function load(xcode,ycode){ if(ycode=="AA"){ ycode="0"; } var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+xcode+'&ZYBWHLB='+ycode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+xcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadhg(xcode,ycode){ if(ycode=="A"){ ycode="1"; } var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+xcode+'&ZYWSGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+xcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadbhg(xcode,ycode){ if(ycode=="B"){ ycode="2"; } var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+xcode+'&HDGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+xcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function openZjTj(distcode){ var hylb=document.getElementById("hylb").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; window.open('<%=basePath%>UI/action/zczjtj/ZCZJTjAction_getZjDistcodeTable.action?distcode='+distcode+'&hylb='+hylb+'&whys='+whys+"&nianfen="+year+"&distj=3"); } $(function () { var colselect=$("#distcodename").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick: function (node) { $("#distcode").val(node.data.id); $("#distcodename").val(node.data.text); } } }); var columntree = colselect.tree.ligerGetTreeManager(); $("#hylbname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=HYFLTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#hylbname").val(node.data.text); $("#hylb").val(node.data.id); } } }); $("#prjName").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=BzbTree&strTreeID=T_YHZC_BZZB370000130605000001', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#prjName").val(node.data.text); $("#prj").val(node.data.id); } } }); $("#whysname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=WHYSTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#whysname").val(node.data.text); $("#whys").val(node.data.id); } } }); }) </script> <body> <form action="<%=basePath %>/UI/action/zczjtj/ZCZJTjAction_getDistcodeTable.action" id="tform" name="tform"> <input type="hidden" name="year" id="year" value="<%=BusinessDate.getYear() %>"/> <table style=" width:100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr height="20"> <td align="center" ><span id="hy"></span>行业分类</td> <td align="center" width="18%"> <input type="hidden" id="hylb" name="hylb" style="width:10px;" fieldname="hylb" value="<%=hylb %>" alerttitle="行业类别" fieldType="text" > <input id="hylbname" style="width:65%;" fieldname="hylbname" alerttitle="行政区划" type="text" value="<%=EnumerationType.getEnu("HYLB", hylb)%>"> </td> <td align="center" >行政区划</td> <td align="center" width="20%"> <input type="hidden" id="distcode" name="distcode" style="width:10px;" fieldname="ssdq" value="<%=discode %>" alerttitle="行政区划" fieldType="text" > <input id="distcodename" style="width:70%;" fieldname="DISTCODENAME" alerttitle="行政区划" type="text" value="<%=DistcodeUtil.getDistName(discode)%>"> </td> <td align="center"><input class="l-button l-button-submit" id="savebut" type="button" value="查看" onClick="queryClick();"> </td> </tr> <tr height="20"> <td align="center" >危害因素</td> <td align="center" width="20%"> <input type="hidden" id="whys" name="whys" style="width:10px;" fieldname="whys" alerttitle="危害因素" value="<%=whys %>" fieldType="text" > <input id="whysname" style="width:70%;" fieldname="whysname" alerttitle="危害因素名称" type="text" value="<%=EnumerationType.getEnu("WHYS", whys)%>"> </td> <td align="center" >项目类别</td> <td align="center" width="20%"> <input type="hidden" id="prj" name="whys" style="width:10px;" fieldname="prj" alerttitle="项目类别" value="" fieldType="text" > <input id="prjName" style="width:70%;" fieldname="prjName" alerttitle="项目类别" type="text" value=""> </td> <td align="center"> <input class="l-button l-button-submit" type="reset" value="重置"> </td> </tr> </table> </form> <br> <center><font size="5">按行政区域对企业基础建设情况统计</font></center> <br> <table class="analyzetbl" width="100%" align="center" border="0"> <tr> <th width="10%" >行政区划</th> <th >企业</th> <th >合格</th> <th >不合格</th> </tr> <% for(int i=0;i<dt.getRows();i++){ %> <tr> <td align="center"> <%if(dt.getRowMeta(i).contains("00000000")||dt.getRowMeta(i).equals("")){ %> <%=dt.getRowMetaCaption(i) %> <%}else{%> <a href="javascript:openZjTj('<%=dt.getRowMeta(i) %>')" ><%=dt.getRowMetaCaption(i) %></a> <%}%> </td> <%for(int j=1;j<dt.getCols();j++){ if(j<=1){ %> <td align="center"><a href="javascript:load('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else if(j==2){ %> <td align="center"><a href="javascript:loadhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else{ %> <td align="center"><a href="javascript:loadbhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <% } } %> </tr> <%} %> </table> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/tj/distcodeTj.jsp
Java Server Pages
oos
13,376
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.util.DataTable"/> <jsp:directive.page import="UI.util.BusinessDate"/> <jsp:directive.page import="st.platform.system.cache.EnumerationType"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; DataTable dt=(DataTable)request.getAttribute("table"); String discode=(String)request.getAttribute("distcode"); String hylb=(String)request.getAttribute("hylb"); String whys=(String)request.getAttribute("whys"); if(null==discode){ discode=""; }else{ if(discode.equals("3702")){ discode="370200000000"; } } if(null==hylb){ hylb=""; } if(null==whys){ whys=""; } %> <%@ include file="/global.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>按行业分类对企业基础建设情况统计</title> </head> <link href="<%=request.getContextPath()%>/css/analyze.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="<%=request.getContextPath()%>/css/base.css" type="text/css" /> <script type="text/javascript" src="<%=request.getContextPath()%>/js/index.js"></script> <!-- form util --> <script language="javascript" src="<%=request.getContextPath() %>/js/formutils.js"></script> <!-- 时间控件 --> <script language="javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js" defer="defer"></script> <script type="text/javascript"> var zbid="T_YHZC_BZZB370000130605000001"; var myWindow=null; var openWidth="1000"; var openHeight="650"; function queryClick(){ document.all.tform.submit(); } function load(xcode,ycode){ if(ycode=="AA"){ ycode="0"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYBWHLB='+ycode+'&hylb='+xcode+'&whys='+whys+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+xcode+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadhg(xcode,ycode){ if(ycode=="A"){ ycode="1"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYWSGLDJ='+ycode+'&hylb='+xcode+'&whys='+whys+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+xcode+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadbhg(xcode,ycode){ if(ycode=="B"){ ycode="2"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&HDGLDJ='+ycode+'&hylb='+xcode+'&whys='+whys+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+xcode+"&whys="+whys+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } $(function () { var colselect=$("#distcodename").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick: function (node) { $("#distcode").val(node.data.id); $("#distcodename").val(node.data.text); } } }); var columntree = colselect.tree.ligerGetTreeManager(); $("#hylbname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=HYFLTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#hylbname").val(node.data.text); $("#hylb").val(node.data.id); } } }); $("#prjName").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=BzbTree&strTreeID=T_YHZC_BZZB370000130605000001', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#prjName").val(node.data.text); $("#prj").val(node.data.id); } } }); $("#whysname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=WHYSTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#whysname").val(node.data.text); $("#whys").val(node.data.id); } } }); }) </script> <body> <form action="<%=basePath %>/UI/action/zczjtj/ZCZJTjAction_gethylbTable.action" id="tform" name="tform"> <input type="hidden" name="year" id="year" value="<%=BusinessDate.getYear() %>"/> <table style=" width:100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr height="20"> <td align="center" ><span id="hy"></span>行业分类</td> <td align="center" width="18%"> <input type="hidden" id="hylb" name="hylb" style="width:10px;" fieldname="hylb" value="<%=hylb %>" alerttitle="行业类别" fieldType="text" > <input id="hylbname" style="width:65%;" fieldname="hylbname" alerttitle="行政区划" type="text" value="<%=EnumerationType.getEnu("HYLB", hylb)%>"> </td> <td align="center" >行政区划</td> <td align="center" width="20%"> <input type="hidden" id="distcode" name="distcode" style="width:10px;" fieldname="ssdq" value="<%=discode %>" alerttitle="行政区划" fieldType="text" > <input id="distcodename" style="width:70%;" fieldname="DISTCODENAME" alerttitle="行政区划" type="text" value="<%=DistcodeUtil.getDistName(discode)%>"> </td> <td align="center"><input class="l-button l-button-submit" id="savebut" type="button" value="查看" onClick="queryClick();"> </td> </tr> <tr height="20"> <td align="center" >危害因素</td> <td align="center" width="20%"> <input type="hidden" id="whys" name="whys" style="width:10px;" fieldname="whys" alerttitle="危害因素" value="<%=whys %>" fieldType="text" > <input id="whysname" style="width:70%;" fieldname="whysname" alerttitle="危害因素名称" type="text" value="<%=EnumerationType.getEnu("WHYS", whys)%>"> </td> <td align="center" >项目类别</td> <td align="center" width="20%"> <input type="hidden" id="prj" name="whys" style="width:10px;" fieldname="prj" alerttitle="项目类别" value="" fieldType="text" > <input id="prjName" style="width:70%;" fieldname="prjName" alerttitle="项目类别" type="text" value=""> </td> <td align="center"> <input class="l-button l-button-submit" type="reset" value="重置"> </td> </tr> </table> </form> <br> <center><font size="5">按行业分类对企业基础建设情况统计</font></center> <br> <table class="analyzetbl" width="100%" align="center" border="0"> <tr> <th width="15%">行业分类</th> <th>企业数</th> <th>合格</th> <th>不合格</th> </tr> <% for(int i=0;i<dt.getRows();i++){ %> <tr> <td align="center"> <%=dt.getRowMetaCaption(i) %> </td> <%for(int j=1;j<dt.getCols();j++){ if(j==1){ %> <td align="center"><a href="javascript:load('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else if(j==2){ %> <td align="center"><a href="javascript:loadhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <% } else{ %> <td align="center"><a href="javascript:loadbhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <% } } %> </tr> <%} %> </table> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/tj/hyflTj.jsp
Java Server Pages
oos
12,752
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.util.DataTable"/> <jsp:directive.page import="UI.util.BusinessDate"/> <jsp:directive.page import="st.platform.system.cache.EnumerationType"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; DataTable dt=(DataTable)request.getAttribute("table"); String discode=(String)request.getAttribute("distcode"); String hylb=(String)request.getAttribute("hylb"); String whys=(String)request.getAttribute("whys"); if(null==discode){ discode=""; }else{ if(discode.equals("3702")){ discode="370200000000"; } } if(null==hylb){ hylb=""; } if(null==whys){ whys=""; } %> <%@ include file="/global.jsp"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>按企业规模对企业基础建设情况统计</title> </head> <link href="<%=request.getContextPath()%>/css/analyze.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="<%=request.getContextPath()%>/css/base.css" type="text/css" /> <script type="text/javascript" src="<%=request.getContextPath()%>/js/index.js"></script> <!-- form util --> <script language="javascript" src="<%=request.getContextPath() %>/js/formutils.js"></script> <!-- 时间控件 --> <script language="javascript" src="<%=request.getContextPath() %>/js/My97DatePicker/WdatePicker.js" defer="defer"></script> <script type="text/javascript"> var zbid="T_YHZC_BZZB370000130605000001"; var myWindow=null; var openWidth="1000"; var openHeight="650"; function queryClick(){ document.all.tform.submit(); } function load(xcode,ycode){ if(ycode=="AA"){ ycode="0"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYBWHLB='+ycode+'&hylb='+hylb+'&whys='+whys+'&qygm='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&qygm="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadhg(xcode,ycode){ if(ycode=="A"){ ycode="1"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&ZYWSGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+'&qygm='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&qygm="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } function loadbhg(xcode,ycode){ if(ycode=="B"){ ycode="2"; } var distcode=document.getElementById("distcode").value; var whys=document.getElementById("whys").value; var hylb=document.getElementById("hylb").value; var year=document.getElementById("year").value; //window.open('<%=basePath%>UI/enterinfo/flfj_listInfo.action?distcode='+distcode+'&HDGLDJ='+ycode+'&hylb='+hylb+'&whys='+whys+'&qygm='+xcode+"&nianfen="+year); try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/zczj/tjzczjlist.jsp?distcode="+distcode+"&lx="+ycode+"&hylb="+hylb+"&whys="+whys+"&qygm="+xcode+"&nianfen="+year+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠列表", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } $(function () { var colselect=$("#distcodename").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick: function (node) { $("#distcode").val(node.data.id); $("#distcodename").val(node.data.text); } } }); var columntree = colselect.tree.ligerGetTreeManager(); $("#hylbname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=HYFLTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#hylbname").val(node.data.text); $("#hylb").val(node.data.id); } } }); $("#prjName").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=BzbTree&strTreeID=T_YHZC_BZZB370000130605000001', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#prjName").val(node.data.text); $("#prj").val(node.data.id); } } }); $("#whysname").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=WHYSTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#whysname").val(node.data.text); $("#whys").val(node.data.id); } } }); }) </script> <body> <form action="<%=basePath %>/UI/action/zczjtj/ZCZJTjAction_getqygmTable.action" id="tform" name="tform"> <input type="hidden" name="year" id="year" value="<%=BusinessDate.getYear() %>"/> <table style=" width:100%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr height="20"> <td align="center" ><span id="hy"></span>行业分类</td> <td align="center" width="18%"> <input type="hidden" id="hylb" name="hylb" style="width:10px;" fieldname="hylb" value="<%=hylb %>" alerttitle="行业类别" fieldType="text" > <input id="hylbname" style="width:65%;" fieldname="hylbname" alerttitle="行政区划" type="text" value="<%=EnumerationType.getEnu("HYLB", hylb)%>"> </td> <td align="center" >行政区划</td> <td align="center" width="20%"> <input type="hidden" id="distcode" name="distcode" style="width:10px;" fieldname="ssdq" value="<%=discode %>" alerttitle="行政区划" fieldType="text" > <input id="distcodename" style="width:70%;" fieldname="DISTCODENAME" alerttitle="行政区划" type="text" value="<%=DistcodeUtil.getDistName(discode)%>"> </td> <td align="center"><input class="l-button l-button-submit" id="savebut" type="button" value="查看" onClick="queryClick();"> </td> </tr> <tr height="20"> <td align="center" >危害因素</td> <td align="center" width="20%"> <input type="hidden" id="whys" name="whys" style="width:10px;" fieldname="whys" alerttitle="危害因素" value="<%=whys %>" fieldType="text" > <input id="whysname" style="width:70%;" fieldname="whysname" alerttitle="危害因素名称" type="text" value="<%=EnumerationType.getEnu("WHYS", whys)%>"> </td> <td align="center" >项目类别</td> <td align="center" width="20%"> <input type="hidden" id="prj" name="whys" style="width:10px;" fieldname="prj" alerttitle="项目类别" value="" fieldType="text" > <input id="prjName" style="width:70%;" fieldname="prjName" alerttitle="项目类别" type="text" value=""> </td> <td align="center"> <input class="l-button l-button-submit" type="reset" value="重置"> </td> </tr> </table> </form> <br> <center><font size="5">按企业规模对企业基础建设情况统计</font></center> <br> <table class="analyzetbl" width="100%" align="center" border="0"> <tr> <th width="15%">企业规模</th> <th>企业数</th> <th>合格</th> <th>不合格</th> </tr> <% for(int i=0;i<dt.getRows();i++){ %> <tr> <td align="center"> <%=dt.getRowMetaCaption(i) %> </td> <%for(int j=1;j<dt.getCols();j++){ if(j==1){ %> <td align="center"><a href="javascript:load('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else if(j==2){%> <td align="center"><a href="javascript:loadhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <%}else{ %> <td align="center"><a href="javascript:loadbhg('<%=dt.getRowMeta(i) %>','<%=dt.getColMeta(j) %>')"> <%=dt.getCellValue(i,j) %></a></td> <% } } %> </tr> <%} %> </table> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/tj/qygmTj.jsp
Java Server Pages
oos
12,971
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-03 孙雁斌 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="650"; var openHeight="450"; //var zbid; var sqlc=""; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '判定', click:f_judge,icon:'msn' } ]; grid = sub_Grid('BzbGrid','自查自纠',toolbar," and zbid='"+ $("#zbid").val() +"'"); //document.getElementById("zbid").value=zbid; /*TREE*/ $("#tree").ligerTree({ data:[{id:'1',pid:'0',children:[],text:$("#bzzmc").val(),isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', //url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree", nodeWidth : 200, checkbox: false, //isexpand:true, slide: false, // onExpand:onExpand, onBeforeExpand: onBeforeExpand, onClick: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=" "; //tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere="+ strWhere); //tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=BzbTree"); } }, onSelect: function (node) { var nodeid=node.data.id; t_enter(nodeid); } }); tree = $("#tree").ligerGetTreeManager(); $("#zcsj").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ //tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree"); tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EBzbTree&strTreeID="+ $("#zbid").val()); } } /*Tree查看*/ function t_enter(nodeid){ try{ if(nodeid=="1"){ var strWhere = " and zbid='"+ $("#zbid").val() +"' and parentid in('0','1')"; }else{ var strWhere = " and zbid='"+ $("#zbid").val() +"' and parentid='"+nodeid+"'"; } //alert(strWhere); var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].id+"'"; } } $.post(webpath+"/UI/action/zyjkbzb/BzbAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ //f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var node = tree.getSelected(); var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(null==node){ $.ligerDialog.warn("请先选择上级结点"); }else{ myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjkbzb/BzbAction_findByKey.action?messageBean.method=add&parentid="+ node.data.id +"&zbid="+ $("#zbid").val(), width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.id; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkbzb/BzbAction_findByKey.action?messageBean.method=update&strSysno="+strId+"&zbid="+zbid, width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } function f_judge() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.id; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkpd/BzbAction_findByKey.action?messageBean.method=add&strSysno="+strId+"&zbid="+zbid, width: openWidth,height:openHeight, title: '评判标准', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zczj/zczjgl/zczjinfolist.js
JavaScript
oos
8,804
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-03 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="st.system.dao.PtdeptBean"/> <jsp:directive.page import="org.apache.struts2.ServletActionContext"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <jsp:directive.page import="UI.dao.zyjk.T_yhzc_bzzbBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% String zbid=request.getParameter("strSysno"); //System.out.println("打印主键:"+zbid); T_yhzc_bzzbBean bzzbBean=new T_yhzc_bzzbBean(); String bzzmc=bzzbBean.findFirst(" where id='"+ zbid +"'").getBzzmc(); %> <script language="javascript" src="<%=webpath%>UI/zczj/zczjgl/zczjinfolist.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="zbid" id="zbid" value="<%=zbid %>"/> <input type="hidden" name="bzzmc" id="bzzmc" value="<%=bzzmc %>"/> <div id="layout"> <!-- TREE区域 --> <div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;"> </div> <!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zczjgl/zczjinfolist.jsp
Java Server Pages
oos
1,683
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="st.system.dao.PtdeptBean"/> <jsp:directive.page import="org.apache.struts2.ServletActionContext"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zczj/zczjgl/zczjgllist.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="zbid" id="zbid"/> <div id="layout"> <!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >标准表名称:</td> <td class="l-table-edit-td-left" > <input name="bzzmc" type="text" id="bzzmc" ltype="text" class="l-research-area-input"/> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zczjgl/zczjgllist.jsp
Java Server Pages
oos
1,705
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-24 孙雁斌 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjkpd/BzbAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#zcButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjkpd/BzbAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/pddetail.js
JavaScript
oos
2,234
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.T_yhzc_bzzbBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% T_yhzc_bzzbBean bzzbBean=(T_yhzc_bzzbBean)request.getAttribute("bzzbBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>//UI/zczj/zczjgl/info/bzzbinfo.js"></script> </head> <body class="menubody" style="width: 580"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 操作method --> <!-- 隐藏域 主键id --> <input type="hidden" id="id" name="bzzbBean.id" value="<%=bzzbBean.getId() %>"/> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" > <tr> <td class="l-table-edit-td-right">检查表名称</td> <td class="l-table-edit-td-left" style="width:160px"> <input type="text" id="bzzmc" name="bzzbBean.bzzmc" value="<%=bzzbBean.getBzzmc() %>"/> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">监管分类</td> <td class="l-table-edit-td-left" style="width:160px"> <% DBSelect dbsel = new DBSelect("bzzbBean.jglx","",bzzbBean.getJglx()); dbsel.addAttr("style", "width: 202px;"); dbsel.addAttr("id", "jglx"); dbsel.addAttr("check", "notBlank"); dbsel.addAttr("required", "true"); dbsel.addAttr("showName", "监管分类"); dbsel.addOption("请选择",""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">标准描述</td> <td class="l-table-edit-td-left" style="width:160px" rowspan="3"> <textarea class="l-textarea" id="bzsm" name="bzzbBean.bzsm" style="width:475px" ><%=bzzbBean.getBzsm()%></textarea> </td> <td class="td_message"></td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/bzzbinfo.jsp
Java Server Pages
oos
3,774
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.reload(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } $(function () { try { var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjkgl/BzzbAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjkgl/BzzbAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/bzzbinfo.js
JavaScript
oos
2,213
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyleft: Copyleft (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.ZczjdfbBean"/> <jsp:directive.page import="UI.dao.zyjk.T_yhzc_bzbBean"/> <%@ include file="/webpath.jsp"%> <%@ page import="st.portal.html.*"%> <%@ taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd"> <html> <link href="<%=webpath%>/js/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" /> <link href="<%=webpath%>/js/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" /> <link href="<%=webpath%>/css/zpf.css" rel="stylesheet" type="text/css" /> <!--全文jquery引用 --> <script src="<%=webpath%>/js/jquery/jquery-1.4.4.min.js" type="text/javascript"></script> <!-- ligerUI控件 --> <script src="<%=webpath%>/js/ligerUI/js/core/base.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTextBox.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerMenu.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerMenuBar.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerButton.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerSpinner.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTip.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerLayout.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script> <script src="<%=webpath%>/js/ligerUI/js/plugins/ligerAccordion.js" type="text/javascript"></script> <!-- validation控件 --> <script src="<%=webpath%>/js/jquery-validation/jquery.validate.min.js" type="text/javascript"></script> <script src="<%=webpath%>/js/jquery-validation/jquery.metadata.js" type="text/javascript"></script> <script src="<%=webpath%>/js/jquery-validation/messages_cn.js" type="text/javascript"></script> <!-- JS全局变量 --> <script src="<%=webpath%>/js/jsConstant.js" type="text/javascript"></script> <script src="<%=webpath%>/js/zbasic.js" type="text/javascript"></script> <script src="<%=webpath%>/js/zgrid.js" type="text/javascript"></script> <script src="<%=webpath%>/js/zform.js" type="text/javascript"></script> <head> <title></title> <% T_yhzc_bzbBean bzbBean=(T_yhzc_bzbBean)request.getAttribute("bzbBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>/UI/zczj/zczjgl/info/bzbinfo.js"></script> </head> <body class="menubody" style="width: 580"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 操作method --> <!-- 隐藏域 主键id --> <input type="hidden" id="id" name="bzbBean.id" value="<%=bzbBean.getId() %>"/> <!-- 隐藏域 主表id --> <input type="hidden" id="zbid" name="bzbBean.zbid" value="<%=bzbBean.getZbid() %>"/> <!-- 隐藏域 父键id --> <input type="hidden" id="parentid" name="bzbBean.parentid" value="<%=bzbBean.getParentid()%>"/> <!-- 隐藏域 父键集合id --> <input type="hidden" id="allparentid" name="bzbBean.allparentid" value="<%=bzbBean.getAllparentid()%>"/> <!-- 隐藏域 等级level --> <input type="hidden" id="level" name="bzbBean.level" value="<%=bzbBean.getLevel()%>"/> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> </div> <table style="border-top: 0px;" cellpadding="0" cellspacing="0" class="form-l-table-edit"> <tr><td align="center">类型</td> <td><div> <% DBRdBox check = new DBRdBox("isleaf","","MOJI",bzbBean.getIsleaf()); out.print(check.toString()); %> </div> <input type="hidden" id="moji" name="bzbBean.isleaf" value="<%=bzbBean.getIsleaf()%>"/> </td></tr> <tr id="bzmcTr"> <td class="l-table-edit-td-left" align="center">标准名称</td> <td class="l-table-edit-td-left"> <input class="text" id="bzmc" name="bzbBean.bzmc" value="<%=bzbBean.getBzmc() %>" style="width: 99%" /> </td> </tr> <tr> <td class="l-table-edit-td-left" >顺序号</td> <td class="l-table-edit-td-left"> <input class="text" id="sxh" name="bzbBean.sxh" value="<%=bzbBean.getSxh()%>" style="width: 99%" /> </td> </tr> <tr> <td class="l-table-edit-td-left" >属性</td> <td class="l-table-edit-td-left"> <% DBSelect dbsel = new DBSelect("sx", "SX",""); dbsel.addAttr("style", "width: 150px"); dbsel.addAttr("id", "sx"); dbsel.addAttr("fieldType", "text"); dbsel.addAttr("alertTitle", "属性"); dbsel.addOption("请选择", ""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> </tr> <tr> <td class="l-table-edit-td-left" >行政区划</td> <td class="l-table-edit-td-left"> <% dbsel = new DBSelect("distcode", "",""); dbsel.addAttr("style", "width: 150px"); dbsel.addAttr("id", "distcode"); dbsel.addAttr("fieldType", "text"); dbsel.addAttr("alertTitle", "行政区划"); dbsel.addOption("请选择", ""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> </tr> </table> <table id="seltb" style="border-top: 0px;display: none" cellpadding="0" cellspacing="0" class="form-l-table-edit" > <tr> <td class="l-table-edit-td-left">责任部门</td> <td class="l-table-edit-td-left"> <% dbsel = new DBSelect("bzbBean.hybmid", "bulx",bzbBean.getHybmid()); dbsel.addAttr("style", "width: 150px"); dbsel.addAttr("id", "hybmid"); dbsel.addAttr("fieldType", "text"); dbsel.addAttr("alertTitle", "责任部门"); dbsel.addOption("请选择", ""); dbsel.setDisplayAll(false); out.print(dbsel); %> </td> </tr> <tr> <td class="l-table-edit-td-left">自查标准描述</td> <td class="l-table-edit-td-left"> <textarea style="width:99%" name="pdnr" id="pdnr" value="<%=bzbBean.getBzmc() %>"><%=bzbBean.getBzmc() %></textarea> </td> </tr> <tr> <td class="l-table-edit-td-left">参考依据</td> <td class="l-table-edit-td-left"> <textarea style="width:99%" name="bzbBean.ckyj" id="ckyj" value="<%=bzbBean.getCkyj() %>"></textarea> </td> </tr> </table> <br/> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/bzbinfo.jsp
Java Server Pages
oos
9,167
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="600"; var openHeight="350"; var zbid; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { line: true }, { text: '添加', click:f_add,icon: 'modify' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' } ]; zbid=getUrlParam("zbid"); grid = sub_Grid('ZczjpzbGrid','判定列表',toolbar," and ffsysn='"+ $("#sysno").val() +"'"); document.getElementById("zbid").value=zbid; }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ } /*根据条件查询*/ function f_search(){ try{ var strWhere = " "; var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*销除*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; //salert("fasfsafa"+); myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkpd/PdAction_findByKey.action?messageBean.method=add&sysno="+ $("#sysno").val(), width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); }catch (e) { $.ligerDialog.error(e.message); } } function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkpd/PdAction_findByKey.action?messageBean.method=update&sysno='"+ $("sysno").val() +"'&strSysno="+strId, width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/pdinfo.js
JavaScript
oos
3,324
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-24 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.ZczjpzbBean"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% ZczjpzbBean pzbBean=(ZczjpzbBean)request.getAttribute("pzbBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); %> <script language="javascript" src="<%=webpath%>//UI/zczj/zczjgl/info/pddetail.js"></script> </head> <body class="menubody" style="width: 580"> <%--<div class="searchtitle"> <img width="20" height="20" src="<%=webpath%>/js/ligerUI/skins/icons/customers.gif"/> </div> <div class="navline" ></div> --%><form name="form" method="post" id="form"> <div> <!-- 操作method --> <!-- 隐藏域 主键id --> <input type="hidden" id="sysno" name="pzbBean.sysno" value="<%=pzbBean.getSysno() %>"/> <input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/> <!-- 操作状态flag --> <input type="hidden" id="flag" name="flag" value="<%=messageBean.getCheckFlag() %>"/> <!-- 操作message信息 --> <input type="hidden" id="message" name="message" value="<%=messageBean.getCheckMessage() %>"/> <input type="hidden" id="ffsysn" name="pzbBean.ffsysn" value="<%=pzbBean.getFfsysn() %>"/> </div> <table cellpadding="0" cellspacing="0" class="form-l-table-edit" > <tr> <td class="l-table-edit-td-right">判定</td> <td class="l-table-edit-td-left" style="width:160px"> <input name="pzbBean.pd" type="text" id="pd" value="<%=pzbBean.getPd()%>" ltype="text" /> </td> <td class="td_message"></td> </tr> <tr> <td class="l-table-edit-td-right">判定标准</td> <td class="l-table-edit-td-left" style="width:160px"> <textarea class="l-textarea" id="zcjl" name="pzbBean.ppbz" style="width:475px" ><%=pzbBean.getPpbz()%></textarea> </td> <td class="td_message"></td> </tr> </table> <br /> <table align="center"> <tr> <td> <input type="submit" value="提交" id="subButton" class="l-button l-button-submit" /> <input type="button" value="关闭" id="colButton" class="l-button l-button-test"/> </td> </tr> </table> </form> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/pddetail.jsp
Java Server Pages
oos
3,139
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ var actionurl; /* 提交*/ function submitHandler() { $("#subButton").attr("disabled", true); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } function clicksel(obj){ if(obj.value=="1"){ document.getElementById("seltb").style.display="block"; document.getElementById("pdnr").isNull="false"; document.getElementById("pdnr").check="isString('#',1000)"; document.getElementById("ckyj").check="isString('#',200)"; document.getElementById("ckyj").isNull="false"; document.getElementById("bzmcTr").style.display="none"; document.getElementById("bzmc").isNull="true"; document.getElementById("moji").value="1"; }else{ document.getElementById("seltb").style.display="none"; document.getElementById("pdnr").check=""; document.getElementById("ckyj").check=""; document.getElementById("bzmc").isNull="false"; document.getElementById("pdnr").isNull="true"; document.getElementById("ckyj").isNull="true"; document.getElementById("bzmcTr").style.display="block"; document.getElementById("moji").value="0"; } } $(function () { try { //alert("是否叶子结点:"+$("#mj").val()); // if($("#mj").val()=='1') // { // document.getElementById("moji").checked="true"; //$("#moji").attr("checked", true); // }else if($("#mj").val()=='0') // { // document.getElementById("notmoji").checked="true"; //$("#notmoji").checked="checked" //$("#notmoji").attr("checked", true); // } if(document.getElementById("moji").value=="1"){ document.getElementById("seltb").style.display="block"; document.getElementById("pdnr").isNull="false"; document.getElementById("pdnr").check="isString('#',1000)"; document.getElementById("ckyj").check="isString('#',200)"; document.getElementById("ckyj").isNull="false"; document.getElementById("bzmcTr").style.display="none"; document.getElementById("bzmc").isNull="true"; }else { document.getElementById("seltb").style.display="none"; document.getElementById("pdnr").check=""; document.getElementById("ckyj").check=""; document.getElementById("bzmc").isNull="false"; document.getElementById("pdnr").isNull="true"; document.getElementById("ckyj").isNull="true"; document.getElementById("bzmcTr").style.display="block"; } var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjkbzb/BzbAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjkbzb/BzbAction_update.action"; } /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } /*关闭按钮*/ $("#colButton").click(function () { top.$.ligerDialog.close(); top.$.ligerDialog.hide(); }); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/bzbinfo.js
JavaScript
oos
4,855
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%> <jsp:directive.page import="UI.dao.zyjk.ZczjpzbBean"/> <jsp:directive.page import="java.util.*"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <% //T_yhzc_bzbBean bzbBean=(T_yhzc_bzbBean)request.getAttribute("bzbBean"); //List<ZczjpzbBean> pzbBeanlist=(List<ZczjpzbBean>)request.getAttribute("pzbBeanlist"); ZczjpzbBean pzbBean=(ZczjpzbBean)request.getAttribute("pzbBean"); MessageBean messageBean = (MessageBean)request.getAttribute("messageBean"); String sysno=request.getParameter("strSysno"); %> <script language="javascript" src="<%=webpath%>//UI/zczj/zczjgl/info/pdinfo.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="zbid" id="zbid"/> <input type="hidden" name="" id="sysno" value="<%=sysno %>"/> <input type="hidden" name="distcode" id="distcode" value=""/> <div id="layout"> <!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zczjgl/info/pdinfo.jsp
Java Server Pages
oos
1,630
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-07-02 孙雁斌 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="1000"; var openHeight="650"; var zbid; var sqlc=""; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '新建', click:f_add,icon: 'add' }, { line: true }, { text: '修改', click:f_update,icon: 'modify' }, { line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '编辑标准项', click:f_edit, icon:'msn' }, { line: true } ]; grid = sub_Grid('YhzcBzzbGrid','检查表管理',toolbar,""); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjkgl/BzzbAction_findByKey.action?messageBean.method=update&strSysno="+data.id, width:"600",height:"450", title:"检查表管理", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = ""; //单位名称 var bzzmc = $("#bzzmc").val(); if(bzzmc.length>0) { strWhere = " and bzzmc like '%"+bzzmc+"%' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].id+"'"; } } $.post(webpath+"/UI/action/zyjkgl/BzzbAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjkgl/BzzbAction_findByKey.action?messageBean.method=add&strSysno="+strId+"&zbid="+zbid, width: "600",height:"450", title: '检查表管理', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.id; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkgl/BzzbAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: "600",height:"450", title: '检查表管理', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*核查*/ function f_edit(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.id; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkgl/BzbAction_findByKey.action?messageBean.method=update&strSysno="+strId+"&zbid="+zbid, width: openWidth,height:openHeight, title: '编辑标准项列表', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zczj/zczjgl/zczjgllist.js
JavaScript
oos
6,214
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-04-27 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="980"; var openHeight="650"; var discode=""; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '查看', click:f_look, icon:'pager' } ]; discode=$("#discode").val(); var strWhere = " and corpkey not in(select corpkey from zczjqyxxzb)"; if(discode.length>=8){ if(discode.indexOf("0000")>=0){ strWhere+=" and DQ4 like '"+discode.substring(0, 4)+"%'"; }else if(discode.indexOf("00")>=0&&discode.indexOf("0000")<0){ strWhere+=" and DQ4 like '"+discode.substring(0, 6)+"%'"; }else if(discode.indexOf("00")<0&&discode.indexOf("0000")<0){ strWhere+=" and DQ4 like '"+discode+"%'"; } }else if(discode.length>=6){ if(discode.indexOf("00")>=0){ strWhere+=" and DQ3 like '"+discode.substring(0, 4)+"%'"; }else if(discode.indexOf("00")<0){ strWhere+=" and DQ3 like '"+discode+"%'"; } } grid = sub_Grid('ZcorGrid','申报企业列表',toolbar,strWhere); /*TREE $("#tree").ligerTree({ data:[{id:'1',pid:'0',children:[],text:'行政区划',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', nodeWidth : 200, checkbox: false, slide: false, onExpand:onExpand, onBeforeExpand: onBeforeExpand, onSelect: function (node) { var nodeid=node.data.id; t_enter(nodeid); }, onContextmenu: function (node, e) { actionNodeID = node.data.text; menu.show({ top: e.pageY, left: e.pageX }); return false; } }); tree = $("#tree").ligerGetTreeManager(); */ var colselect=$("#distcodename").ligerComboBox({ width: 130, selectBoxWidth: 200, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=TDQTree&strWhere= and Depth in (1,2,3) ', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function(node) { var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=TDQTree"); } }, // onSelect: function (node) //{ // alert("11111"); // var nodeid=node.data.id; // t_enter(nodeid); //}, onClick: function (node) { //var nodeid=node.data.id; //t_enter(nodeid); //alert(node.data.id); //t_enter(node.data.id); $("#distcode").val(node.data.id); //alert(node.data.text); $("#distcodename").val(node.data.text); f_search(); } } }); var columntree = colselect.tree.ligerGetTreeManager(); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/cor/info/enterinfomain.jsp?corpkey="+data.corpkey, width: openWidth,height:openHeight, title: '申报企业列表', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); // top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: data.dwmc+'申报信息', url:webpath+"/UI/zyjk/cor/info/enterinfomain.jsp?corpkey="+data.corpkey }); loadSubWindow(webpath+"/UI/zyjk/cor/info/enterinfomain.jsp?corpkey="+data.corpkey); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=TDQTree"); } } /*Tree查看*/ function t_enter(nodeid){ try{ var strWhere = " "; if(nodeid.length>=8){ if(nodeid.indexOf("0000")>=0){ strWhere+=" and DQ4 like '"+nodeid.substring(0, 4)+"%'"; }else if(nodeid.indexOf("00")>=0&&nodeid.indexOf("0000")<0){ strWhere+=" and DQ4 like '"+nodeid.substring(0, 6)+"%'"; }else if(nodeid.indexOf("00")<0&&nodeid.indexOf("0000")<0){ strWhere+=" and DQ4 like '"+nodeid+"%'"; } }else if(nodeid.length>=6){ if(nodeid.indexOf("00")>=0){ strWhere+=" and DQ3 like '"+nodeid.substring(0, 4)+"%'"; }else if(nodeid.indexOf("00")<0){ strWhere+=" and DQ3 like '"+nodeid+"%'"; } } var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and corpkey not in(select corpkey from zczjqyxxzb where bak1 in ('1','3') and zbid='T_YHZC_BZZB370000130605000001')"; //企业编号 var corpkey = $("#corpkey").val(); if(corpkey.length>0) { strWhere += " and corpkey like '%"+corpkey+"%' "; } //区划 var ditcode = $("#distcode").val(); if(ditcode.length>0) { if(ditcode.length>=8){ if(ditcode.indexOf("0000")>=0){ strWhere+=" and DQ4 like '"+ditcode.substring(0, 4)+"%'"; }else if(ditcode.indexOf("00")>=0&&ditcode.indexOf("0000")<0){ strWhere+=" and DQ4 like '"+ditcode.substring(0, 6)+"%'"; }else if(ditcode.indexOf("00")<0&&ditcode.indexOf("0000")<0){ strWhere+=" and DQ4 like '"+ditcode+"%'"; } }else if(ditcode.length>=6){ if(ditcode.indexOf("00")>=0){ strWhere+=" and DQ3 like '"+ditcode.substring(0, 4)+"%'"; }else if(ditcode.indexOf("00")<0){ strWhere+=" and DQ3 like '"+ditcode+"%'"; } } } //单位名称 var dwmc = $("#dwmc").val(); if(dwmc.length>0) { strWhere += " and dwmc like '%"+dwmc+"%' "; } //注册地址 var zcdz = $("#zcdz").val(); if(zcdz.length>0) { strWhere += " and zcdz like '%"+zcdz+"%' "; } //负责人 var leader = $("#leader").val(); if(leader.length>0) { strWhere += " and leader like '%"+leader+"%' "; } //联系电话 //var lxdh = $("#lxdh").val(); //if(lxdh.length>0) { // strWhere = " and lxdh like '%"+lxdh+"%' "; //} var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var node = tree.getSelected(); var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null&&node==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].corpkey+"'"; } }else{ strId = strId+",'"+node.data.id+"'"; } $.post(webpath+"//UI/action/zyjk/ZcorAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); //去掉节点 tree.remove(node.target); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { // var node = tree.getSelected(); // var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.corpkey; }else{ strId=""; } myWindow = $.ligerDialog.open({ url: webpath+"/UI/action/zyjk/ZcorAction_findByKey.action?messageBean.method=add&strSysno="+strId, width: openWidth,height:openHeight, title: '申报企业列表', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { // var node = tree.getSelected(); // var parent=tree.getParent(node); var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected !=null){ strId=selected.corpkey; }else{ strId=""; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = $.ligerDialog.open({url: webpath+"/UI/action/zyjk/ZcorAction_findByKey.action?messageBean.method=update&strSysno="+strId, width: openWidth,height:openHeight, title: '申报企业列表', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ // myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zyjk/cor/info/enterinfomain.jsp?corpkey="+selected.corpkey, width: openWidth,height:openHeight, title: '申报企业列表', // showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); //top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: selected.dwmc+'申报信息', url:webpath+"/UI/zyjk/cor/info/enterinfomain.jsp?corpkey="+selected.corpkey }); loadSubWindow(webpath+"/UI/zyjk/cor/info/enterinfomain.jsp?corpkey="+selected.corpkey); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zczj/zcorlist.js
JavaScript
oos
13,319
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-06 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="1000"; var openHeight="650"; var zbid; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ { text: '查看', click:f_look, icon:'pager' }, { line: true } ]; zbid=getUrlParam("zbid"); grid = sub_Grid('ZczjGrid','自查自纠',toolbar," and (enterno='"+ getUrlParam("enterno") +"' or corpkey='"+ getUrlParam("enterno") +"' )and zbid='" + getUrlParam("zbid") + "'"); document.getElementById("zbid").value=zbid; }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/ZczjAction_getZczjList.action?messageBean.method=look&strSysno="+data.sysno+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree"); } } /*Tree查看*/ function t_enter(nodeid){ try{ var strWhere = " "; if(nodeid.indexOf("00000000")>=0){ nodeid=nodeid.substring(0, 4); }else if(nodeid.indexOf("000000")>=0&&nodeid.indexOf("00000000")<0){ nodeid=nodeid.substring(0, 6); }else if(nodeid.indexOf("000000")<0&&nodeid.indexOf("00000000")<0&&nodeid.indexOf("000")>=0){ nodeid=nodeid.substring(0, 9); } strWhere+=" and ditcode like '"+nodeid+"%'"; //alert(strWhere); var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and bak1<>'0' and zbid='" + getUrlParam("zbid") + "'"; //单位名称 var dwmc = $("#dwmc").val(); if(dwmc.length>0) { strWhere = " and dwmc like '%"+dwmc+"%' "; } //区划 // var ditcode = $("#ditcode").val(); // if(ditcode.length>0) { // strWhere = " and ditcode like '%"+ditcode+"%' "; // } //自查时间 var zcsj = $("#zcsj").val(); if(zcsj.length>0) { strWhere = " and zcsj like '%"+zcsj+"%' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //alert("Grid查看"); myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/ZczjAction_getZczjList.action?messageBean.method=look&strSysno="+selected.sysno+"&zbid="+zbid, width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zczj/qyzczjlist.js
JavaScript
oos
4,782
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { if($("#dwmc").val()==""||$("#dwdz").val()==""){ $.ligerDialog.error("请先到《用人单位基本信息》菜单中完善企业信息!"); } else if($("#zcsj").val()==""){ $.ligerDialog.error("自查日期不能为空!"); }else if($("#enuditcode").val()==""){ $.ligerDialog.error("所在地区不能为空!"); }else if($("#lxr").val()==""){ $.ligerDialog.error("联系人不能为空!"); }else if($("#lxdh").val()==""){ $.ligerDialog.error("电话不能为空!"); }else if($("#ditcode").val()=="01"){ $.ligerDialog.error("请正确选择行政区划!"); } else{ $("#subButton").attr("disabled", true); $("#zcButton").attr("disabled", true); $("#bak1").val("1"); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); $("#zcButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); actionurl=webpath+"/UI/action/zyjk/ZczjAction_insert.action"; $("#sysno").val(""); $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } } function getResult(){ var arr = document.getElementsByTagName('input'); var objs; var hgcount=0; var bhgcount=0; var i=0; for(var n=0;n<arr.length;n++){ //alert("value:"+arr[n].value); if(arr[n].type=='radio'&&arr[n].checked==true&&arr[n].value==1){ hgcount++; }else if(arr[n].type=='radio'&&arr[n].checked==true&&arr[n].value==2){ bhgcount++; } } //var objs=document.getElementsByTagName("select"); //var hgcount=0; //var bhgcount=0; //for(var i=0;i<objs.length;i++){ //var obj=objs[i]; //var val=obj.value; //alert(val); //if(val==1){ //hgcount++; //}else if(val==2){ //bhgcount++; //} //} document.getElementById("hgx").value=hgcount; document.getElementById("bhgx").value=bhgcount; var str_percent = Math.round( hgcount / 60 *100); document.getElementById("hgl").value=str_percent; //alert("合格:"+hgcount+"不合格:"+bhgcount); } $(function () { try { var colselect =$("#enuditcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { data:[{id:'01',pid:'0',children:[],text:'行政区划',isexpand:'false'}], //url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function (node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick:function(node){ if(node.data.id=='01'){ $("#ditcode").val(""); $("#enuditcode").val(""); }else{ $("#ditcode").val(node.data.id); } } } }); var columntree = colselect.tree.ligerGetTreeManager(); //var columntree =colselect.grid.ligerGetGridManager(); var method = $("#method").val(); // var bak1 = $("#bak1").val(); if(method=="add"){ var bak1=$("#bak1").val(); if(bak1=="2"){ actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; }else{ actionurl=webpath+"/UI/action/zyjk/ZczjAction_insert.action"; } }else if(method=="look"){ $("#subButton").hide(); $("#zcButton").hide(); }else if(method=="update"){ var bak1=$("#bak1").val(); if(bak1=="2"){ actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; }else{ actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; } } /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } if($("#state").val()=="0"){ //document.getElementById("dwmc").disabled=true; //document.getElementById("lxr").disabled=true; //document.getElementById("enuditcode").disabled=true; //document.getElementById("lxdh").disabled=true; //document.getElementById("hcjg").style.display = "none"; //document.getElementsByName("hcjgc").style.display = "none"; } }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } }); function zc(){ $("#subButton").attr("disabled", true); $("#zcButton").attr("disabled", true); $("#bak1").val("2"); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); $("#zcButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $("#sysno").val(data.widgetName); actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; $.ligerDialog.success(data.checkMessage); // top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); }
zyjk
trunk/WebRoot/UI/zczj/zywhzczjbn.js
JavaScript
oos
8,816
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-04-27 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="st.system.dao.PtdeptBean"/> <jsp:directive.page import="org.apache.struts2.ServletActionContext"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <jsp:directive.page import="UI.util.DistcodeUtil"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <% String discode=""; PtdeptBean dept=(PtdeptBean)ServletActionContext.getContext().getSession().get(SystemAttributeNames.DEPT_INFO_NAME); String dqcode=dept.getDeptno(); String[] dises=dqcode.split("-"); if(dises[1].length()>8){ if(dises[1].indexOf("0000")>=0){ dqcode=dqcode.substring(3, 7); discode=dqcode+"00"; }else if(dises[1].indexOf("00")>=0&&dqcode.indexOf("0000")<0){ dqcode=dqcode.substring(3, 9); discode=dqcode; }else if(dises[1].indexOf("00")<0&&dqcode.indexOf("0000")<0){ dqcode=dqcode.substring(3, 11); discode=dqcode; } }else{ if(dises[1].substring(0,6).indexOf("0000")>=0){ dqcode=dqcode.substring(3, 5); discode=dqcode+"0000"; }else if(dises[1].substring(0,6).indexOf("00")>=0&&dises[1].substring(0,6).indexOf("0000")<0){ dqcode=dqcode.substring(3, 7); discode=dqcode+"00"; }else if(dises[1].substring(0,6).indexOf("00")<0&&dises[1].substring(0,6).indexOf("0000")<0){ dqcode=dqcode.substring(3, 9); discode=dqcode; } } if(discode.equals("370200")){ discode="3702"; } %> <head> <title></title> <script language="javascript" src="<%=webpath%>/UI/zczj/zcorlist.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="discode" id="discode" value="<%=discode %>"/> <div id="layout"> <!-- TREE区域 --> <%--s --%><!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- 查询区域 --> <div> <table class="table_search_layout_1" cellpadding="0" cellspacing="0" > <tr> <td class="l-table-edit-td-right" >行政区划:</td> <td class="l-table-edit-td-left" > <input type="hidden" id="distcode" name="distcode" style="width:10px;" value="<%=discode %>" /> <input id="distcodename" style="width:70%;" type="text" value="<%=DistcodeUtil.getDisName(discode)%>"/> </td> <td class="l-table-edit-td-right" >企业编号:</td> <td class="l-table-edit-td-left" > <input name="corpkey" type="text" id="corpkey" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >单位名称:</td> <td class="l-table-edit-td-left" > <input name="dwmc" type="text" id="dwmc" ltype="text" class="l-research-area-input"/> </td> </tr> <tr> <td class="l-table-edit-td-right" >负责人:</td> <td class="l-table-edit-td-left" > <input name="leader" type="text" id="leader" ltype="text" class="l-research-area-input"/> </td> <td class="l-table-edit-td-right" >注册地址:</td> <td class="l-table-edit-td-left" > <input name="zcdz" type="text" id="zcdz" ltype="text" class="l-research-area-input"/> </td> <td align="left"> <input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" /> </td> <td align="left"> </td> </tr> </table> </div> <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zcorlist.jsp
Java Server Pages
oos
3,928
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.6.17---- 孙雁斌--------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { // getResult(); $("#subButton").attr("disabled", true); $("#bak1").val("3"); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } function getResult(){ // var objs=document.getElementsByTagName("select"); // var hgcount=0; // var bhgcount=0; // for(var i=0;i<objs.length;i++){ // var obj=objs[i]; // var val=obj.value; // //alert(val); // if(val==1){ // hgcount++; // }else if(val==2){ // bhgcount++; // } //} var arr = document.getElementsByTagName('input'); var hgcount=0; var bhgcount=0; var i=0; for(var n=0;n<arr.length;n++){ if(arr[n].type=='radio' &&arr[n].checked==true&&arr[n].name.indexOf("jdhc")<0&&arr[n].value==1){ hgcount++; }else if(arr[n].type=='radio' &&arr[n].checked==true&&arr[n].name.indexOf("jdhc")<0&&arr[n].value==2){ bhgcount++; } } document.getElementById("hgx").value=hgcount; document.getElementById("bhgx").value=bhgcount; var str_percent = Math.round( hgcount / 60 *100); document.getElementById("hgl").value=str_percent; //alert("合格:"+hgcount+"不合格:"+bhgcount); } function getHCResult(){ var arr = document.getElementsByTagName('input'); var hgcount=0; var bhgcount=0; var i=0; for(var n=0;n<arr.length;n++){ if(arr[n].type=='radio' &&arr[n].checked==true&&arr[n].name.indexOf("jdhc")>0&&arr[n].value==1){ hgcount++; }else if(arr[n].type=='radio' &&arr[n].checked==true&&arr[n].name.indexOf("jdhc")>0&&arr[n].value==2){ bhgcount++; } } document.getElementById("fhgx").value=hgcount; document.getElementById("fbhgx").value=bhgcount; var str_percent = Math.round( hgcount / 60 *100); document.getElementById("fhgl").value=str_percent; //alert("合格:"+hgcount+"不合格:"+bhgcount); } $(function () { try { // var arr = document.getElementsByTagName('input'); // var i=0; // for(var n=0;n<arr.length;n++){ // if(arr[n].type=='radio'&&arr[n].name.indexOf("hcyj")<0){ // arr[n].disabled="disabled"; // } // } var method = $("#method").val(); if(method=="add"){ actionurl=webpath+"/UI/action/zyjkck/ZczjAction_insert.action"; }else if(method=="look"){ $("#subButton").hide(); $("#colButton").hide(); }else if(method=="update"){ actionurl=webpath+"/UI/action/zyjkck/ZczjAction_update.action"; } var colselect =$("#enuditcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 200, textField:'text', treeLeafOnly:false, tree: { data:[{id:'01',pid:'0',children:[],text:'行政区划',isexpand:'false'}], //url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function (node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick:function(node){ if(node.data.id=='01'){ $("#ditcode").val(""); $("#enuditcode").val(""); }else{ $("#ditcode").val(node.data.id); } } } }); /*关闭按钮*/ $("#colButton").click(function () { //parent.myWindow.close(); top.$.ligerDialog.close(); top.$.ligerDialog.hide() //top.$.ligerDialog.close(); }); var columntree = colselect.tree.ligerGetTreeManager(); //var columntree =colselect.grid.ligerGetGridManager(); /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } if($("#state").val()=="0"){ document.getElementById("dwmc").disabled=true; //document.getElementById("lxr").disabled=true; //document.getElementById("enuditcode").disabled=true; //document.getElementById("lxdh").disabled=true; //document.getElementById("hcjg").style.display = "none"; //document.getElementsByName("hcjgc").style.display = "none"; } }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } });
zyjk
trunk/WebRoot/UI/zczj/zywhzczjbc.js
JavaScript
oos
7,821
/**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2013</p>; * @author ; * 改版履历; * Rev - Date ------- Name ---------- Note ------------------- * 1.0 2013-06-06 新規作成 ; ****************************************************/ var grid = null; var tree = null; var myWindow = null; var menu=null; var openWidth="1000"; var openHeight="650"; var zbid; var sqlc=""; var zgsql=""; var dtsql=""; //初始; $(function (){ try{ /*布局*/ $("#layout").ligerLayout({leftWidth: 200 }); /*grid*/ var toolbar = [ //{ text: '新建', click:f_add,icon: 'add' }, //{ line: true }, //{ text: '修改', click:f_update,icon: 'modify' }, //{ line: true }, { text: '删除', click:f_remove,icon:'delete' }, { line: true }, { text: '查看', click:f_look, icon:'pager' }, { line: true }, { text: '自改情况', click:f_zgqk, icon:'msn' }, { line: true }, { text: '核查', click:f_check, icon:'msn' } ]; zbid=getUrlParam("zbid"); var distcode=document.getElementById("distcode").value; if(distcode!=null&&distcode.length>0){ if(distcode.indexOf("00000000")>=0){ distcode=distcode.substring(0, 4); }else if(distcode.indexOf("000000")>=0&&distcode.indexOf("00000000")<0){ distcode=distcode.substring(0, 6); }else if(distcode.indexOf("000000")<0&&distcode.indexOf("00000000")<0&&distcode.indexOf("000")>=0){ distcode=distcode.substring(0, 9); } sqlc+=" and ditcode like '"+distcode+"%'"; } //判断是否县属以上企业 if(getUrlParam("zhuguan")=='04'){ zgsql+=" and enterno in (select enterno from qyjbqk where zhuguan<>'04')"; } grid = sub_Grid('ZczjGrid','自查自纠',toolbar," and bak1 in ('1','3') and zbid='" + getUrlParam("zbid") + "'"+sqlc+zgsql); document.getElementById("zbid").value=zbid; /*TREE*/ /* tree=$("#tree").ligerTree({ //data:[{id:'1',pid:'0',children:[],text:'行政区划',isexpand:'false'}], idFieldName :'id', parentIDFieldName :'pid', url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ", nodeWidth : 200, checkbox: false, slide: false, method:"post", //parms:{"strWhere":" and Depth in (1,2) "}, // onExpand:onExpand, // onBeforeExpand: onBeforeExpand, onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2,3) "}); } } }, onSelect: function (node) { var nodeid=node.data.id; t_enter(nodeid); } }); tree = $("#tree").ligerGetTreeManager(); */ $("#zcsj").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); $("#zcsje").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' }); $("#hyflname").ligerComboBox({ width: 130, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=HYFLTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#hyflname").val(node.data.text); $("#hyfl").val(node.data.id); } } }); $("#prjName").ligerComboBox({ width: 130, selectBoxWidth: 180, selectBoxHeight: 250, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=BzbTree&strTreeID=T_YHZC_BZZB370000130605000001', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onClick: function (node) { $("#prjName").val(node.data.text); $("#prjLevel").val(node.data.level); $("#prj").val(node.data.id); } } }); var colselect=$("#distcodename").ligerComboBox({ width: 130, selectBoxWidth: 200, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree&strWhere= and Depth in (1,2,3) ', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function(node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, //onSelect: function (node) // { // var nodeid=node.data.id; // t_enter(nodeid); //}, onClick: function (node) { //t_enter(node.data.id); $("#distcode").val(node.data.id); $("#distcodename").val(node.data.text); f_search(); } } }); var columntree = colselect.tree.ligerGetTreeManager(); }catch (e) { $.ligerDialog.error(e.message); } }); /*grid双击事件*/ function onDblClickRow (data, rowindex, rowobj){ try { myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zyjk/ZczjAction_getZczjList.action?messageBean.method=look&strSysno="+data.sysno+"&zbid="+zbid, width: openWidth,height:openHeight, title:"自查自纠", showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); }catch (e) { $.ligerDialog.error(e.message); } } /*展开事件*/ function onExpand(node){ var nodeid=node.data.id; } /*Tree展开事件*/ function onBeforeExpand(node){ var nodeid=node.data.id; if(node.data.children && node.data.children.length == 0){ tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree"); } } /*Tree查看*/ function t_enter(nodeid){ try{ var strWhere = " "; if(nodeid.indexOf("00000000")>=0){ nodeid=nodeid.substring(0, 4); }else if(nodeid.indexOf("000000")>=0&&nodeid.indexOf("00000000")<0){ nodeid=nodeid.substring(0, 6); }else if(nodeid.indexOf("000000")<0&&nodeid.indexOf("00000000")<0&&nodeid.indexOf("000")>=0){ nodeid=nodeid.substring(0, 9); } strWhere+=" and ditcode like '"+nodeid+"%' and bak1 in ('1','3')"+zgsql; dtsql=strWhere; //alert(strWhere); var manager = $("#mainGrid").ligerGetGridManager(); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*根据条件查询*/ function f_search(){ try{ var strWhere = " and bak1 in ('1','3') and zbid='" + getUrlParam("zbid") + "'"+zgsql; //单位名称 var dwmc = $("#dwmc").val(); if(dwmc.length>0) { strWhere += " and dwmc like '%"+dwmc+"%' "; } //区划 var ditcode = $("#distcode").val(); if(ditcode.length>0) { if(ditcode.indexOf("00000000")>=0){ ditcode=ditcode.substring(0, 4); }else if(ditcode.indexOf("000000")>=0&&ditcode.indexOf("00000000")<0){ ditcode=ditcode.substring(0, 6); }else if(ditcode.indexOf("000000")<0&&ditcode.indexOf("00000000")<0&&ditcode.indexOf("000")>=0){ ditcode=ditcode.substring(0, 9); } strWhere += " and ditcode like '%"+ditcode+"%' "; } //行业分类 var hyfl = $("#hyfl").val(); if(hyfl.length>0) { strWhere += " and enterno in(select enterno from qyjbqk where hyfl = '"+ hyfl +"') "; } //项目类别 var prj = $("#prj").val(); if(prj.length>0) { var prjLevel = $("#prjLevel").val(); if(prjLevel=='1'){ $.ligerDialog.warn("请选择详细检查项目"); }else{ strWhere += " and zbid in(select zbsysno from zczjdfb where fs='1' and nrsysno like '%"+ prj +"%') "; } } //自查开始时间 var zcsj = $("#zcsj").val(); if(zcsj.length>0) { strWhere += " and zcsj >= '"+zcsj+"' "; } //自查结束时间 var zcsje = $("#zcsje").val(); if(zcsj.length>0) { strWhere += " and zcsj <= '"+zcsje+"' "; } var manager = $("#mainGrid").ligerGetGridManager(); //manager.loadServerData({strWhere:strWhere},function (countmain) { // alert(countmain); //}); //初始化查询起始页 manager.set("newPage",1); //初始化查询条件 manager.set("parms",{"strWhere":strWhere}); manager.loadData(true); }catch (e) { $.ligerDialog.error(e.message); } } /*删除*/ function f_remove(){ try { var strId ="''"; var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRows(); if (selected==null) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ $.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state) { if(state) { if(selected!=null&&selected.length>0){ for(var i=0;i<selected.length;i++){ strId = strId+",'"+selected[i].sysno+"'"; } } $.post(webpath+"/UI/action/zyjk/ZczjAction_delete.action",{strSysno:strId},function(data){ if(data.checkFlag==MSG_SUCCESS){ f_search(); $.ligerDialog.success(data.checkMessage); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $.ligerDialog.error(MSG_LOAD_FALL)}); } }); } }catch (e) { $.ligerDialog.error(e.message); } } /*新建*/ function f_add(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; myWindow = top.$.ligerDialog.open({ url: webpath+"/UI/action/zyjk/ZczjAction_getZczjList.action?messageBean.method=add&strSysno="+strId+"&zbid="+zbid, width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); // f_search(); }catch (e) { $.ligerDialog.error(e.message); } } /*修改*/ function f_update(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/ZczjAction_getZczjList.action?messageBean.method=update&strSysno="+strId+"&zbid="+zbid, width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*核查*/ function f_check(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkck/ZczjAction_getZczjList.action?messageBean.method=update&strSysno="+strId+"&zbid="+zbid, width: openWidth,height:openHeight, title: '自查自纠', showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*自改情况*/ function f_zgqk(){ try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); var strId; if(selected==null){ $.ligerDialog.warn(MSG_NORECORD_SELECT); }else if(selected !=null){ strId=selected.sysno; } if (strId==null||strId.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ //myWindow = top.$.ligerDialog.open({url: webpath+"/UI/zczj/zglist.jsp?zbid="+strId, width: openWidth,height:openHeight, title: '自查自纠', //showMax: true, showToggle: true, showMin: false, isResize: false, slide: false }); top.tab.addTabItem ({tabid : top.tab.getNewTabid(),text: '自改情况', url:webpath+"/UI/zczj/zglist.jsp?zbid="+strId }); //f_search(); } }catch (e) { $.ligerDialog.error(e.message); } } /*Grid查看*/ function f_look() { try { var manager = $("#mainGrid").ligerGetGridManager(); var selected = manager.getSelectedRow(); if (selected==null||selected.length == 0) { $.ligerDialog.warn(MSG_NORECORD_SELECT); }else{ myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/zyjk/ZczjAction_getZczjList.action?messageBean.method=look&strSysno="+selected.sysno+"&zbid="+zbid, width: openWidth,height:openHeight, title: '自查自纠列表', showMax: true, showToggle: true, showMin: false, isResize: true, slide: false }); } }catch (e) { $.ligerDialog.error(e.message); } }
zyjk
trunk/WebRoot/UI/zczj/zczjlist.js
JavaScript
oos
18,413
<!-- /**************************************************** * <p>处理内容:</p> * <p>Copyright: Copyright (c) 2010</p>; * @author ; * 改版履历; * Rev - Date ------- ---------- Note ------------------- * 1.0 2013-06-21 孙雁斌 新規作成 ; ****************************************************/ --> <%@ page language="java" pageEncoding="UTF-8"%> <jsp:directive.page import="st.system.dao.PtdeptBean"/> <jsp:directive.page import="UI.dao.zyjk.ZczjdfbBean"/> <jsp:directive.page import="UI.dao.zyjk.ZczjqyxxzbBean"/> <jsp:directive.page import="org.apache.struts2.ServletActionContext"/> <jsp:directive.page import="st.platform.security.SystemAttributeNames"/> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <%@ include file="/global.jsp"%> <head> <title></title> <script language="javascript" src="<%=webpath%>UI/zczj/zglist.js"></script> </head> <body class="bodystyle"> <input type="hidden" name="zbid" id="zbid"/> <input type="hidden" name="distcode" id="distcode" value=""/> <div id="layout"> <!-- 中间区域 --> <div class="lay-center-out" position="center" style="border: 0" > <!-- grid区域 --> <div id="mainGrid"></div> </div> </div> </body> </html>
zyjk
trunk/WebRoot/UI/zczj/zglist.jsp
Java Server Pages
oos
1,347
/********************************************************************* *<p>处理内容:ptdept form js</p> *<p>Copyright: Copyright (c) 2011</p> * @author 改版履历<br> * @version Rev - Date ------- Name ---------- Note<br> * @------- 1.0 --2013.5.17---- --------- 新规作成<br> ***********************************************************************/ var actionurl; /* 提交*/ function submitHandler() { if($("#dwmc").val()==""||$("#dwdz").val()==""){ $.ligerDialog.error("请先到《用人单位基本信息》菜单中完善企业信息!"); } else if($("#zcsj").val()==""){ $.ligerDialog.error("自查日期不能为空!"); }else if($("#enuditcode").val()==""){ $.ligerDialog.error("所在地区不能为空!"); }else if($("#lxr").val()==""){ $.ligerDialog.error("联系人不能为空!"); }else if($("#lxdh").val()==""){ $.ligerDialog.error("电话不能为空!"); }else if($("#ditcode").val()=="01"){ $.ligerDialog.error("请正确选择行政区划!"); } else{ $("#subButton").attr("disabled", true); $("#zcButton").attr("disabled", true); $("#bak1").val("1"); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); $("#zcButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); actionurl=webpath+"/UI/action/zyjk/ZczjAction_insert.action"; $("#sysno").val(""); $.ligerDialog.success(data.checkMessage); top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); } } function getResult(){ var arr = document.getElementsByTagName('input'); var objs; var hgcount=0; var bhgcount=0; var i=0; for(var n=0;n<arr.length;n++){ //alert("value:"+arr[n].value); if(arr[n].type=='radio'&&arr[n].checked==true&&arr[n].value==1){ hgcount++; }else if(arr[n].type=='radio'&&arr[n].checked==true&&arr[n].value==2){ bhgcount++; } } //var objs=document.getElementsByTagName("select"); //var hgcount=0; //var bhgcount=0; //for(var i=0;i<objs.length;i++){ //var obj=objs[i]; //var val=obj.value; //alert(val); //if(val==1){ //hgcount++; //}else if(val==2){ //bhgcount++; //} //} document.getElementById("hgx").value=hgcount; document.getElementById("bhgx").value=bhgcount; var str_percent = Math.round( hgcount / 60 *100); document.getElementById("hgl").value=str_percent; //alert("合格:"+hgcount+"不合格:"+bhgcount); } $(function () { try { var colselect =$("#enuditcode").ligerComboBox({ width: 180, selectBoxWidth: 180, selectBoxHeight: 400, textField:'text', treeLeafOnly:false, tree: { data:[{id:'01',pid:'0',children:[],text:'行政区划',isexpand:'false'}], //url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false, textFieldName:'text', idFieldName:'id', parentIDFieldName:'pid', onBeforeExpand: function (node) { if(node.data.children && node.data.children.length == 0){ var strWhere=""; //alert(node.data.depth); if(node.data.depth=='2'){ strWhere=" and code like '"+node.data.id.substring(0, 6)+"%' and depth=3 "; columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else if(node.data.depth=='3'){ strWhere=" and code like '"+node.data.id.substring(0, 9)+"%' and depth=4 "; //alert(strWhere); columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":strWhere}); }else{ columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=EDistCodeTree",{"strWhere":" and Depth in (1,2) "}); } } }, onClick:function(node){ if(node.data.id=='01'){ $("#ditcode").val(""); $("#enuditcode").val(""); }else{ $("#ditcode").val(node.data.id); } } } }); var columntree = colselect.tree.ligerGetTreeManager(); //var columntree =colselect.grid.ligerGetGridManager(); var method = $("#method").val(); // var bak1 = $("#bak1").val(); if(method=="add"){ var bak1=$("#bak1").val(); if(bak1=="2"){ actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; }else{ actionurl=webpath+"/UI/action/zyjk/ZczjAction_insert.action"; } }else if(method=="look"){ $("#subButton").hide(); $("#zcButton").hide(); }else if(method=="update"){ var bak1=$("#bak1").val(); if(bak1=="2"){ actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; }else{ actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; } } /*验证样式提交*/ var v = Form(); $("form").ligerForm(); /*返回信息状态*/ var strFlag = $("#flag").val(); var strMessage = $("#message").val(); if(strFlag!=MSG_SUCCESS) { $.ligerDialog.error(strMessage); } if($("#state").val()=="0"){ //document.getElementById("dwmc").disabled=true; //document.getElementById("lxr").disabled=true; //document.getElementById("enuditcode").disabled=true; //document.getElementById("lxdh").disabled=true; //document.getElementById("hcjg").style.display = "none"; //document.getElementsByName("hcjgc").style.display = "none"; } }catch (e) { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(e.message); } }); function zc(){ $("#subButton").attr("disabled", true); $("#zcButton").attr("disabled", true); $("#bak1").val("2"); $.post(actionurl,$("form:first").serialize(),function(data){ $("#subButton").removeAttr('disabled'); $("#zcButton").removeAttr('disabled'); if(data.checkFlag==MSG_SUCCESS) { // parent.f_search(); $("#sysno").val(data.widgetName); actionurl=webpath+"/UI/action/zyjk/ZczjAction_update.action"; $.ligerDialog.success(data.checkMessage); // top.tab.refresh(top.tab.getSelectedTabItemID()); }else{ $.ligerDialog.error(data.checkMessage); } },"json").error(function() { $("#subButton").removeAttr('disabled'); $.ligerDialog.error(MSG_LOAD_FALL); }); }
zyjk
trunk/WebRoot/UI/zczj/zywhzczjb.js
JavaScript
oos
8,816