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) 2010</p>;
* @author ;
* 改版履历;
* Rev - Date ------- jmx ---------- Note -------------------
* 1.0 2013-06-06 新規作成 ;
****************************************************/
-->
<%@ 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/zczj//tjzczjlist.js"></script>
</head>
<body class="bodystyle">
<input type="hidden" name="zbid" id="zbid"/>
<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="zcsj" type="text" id="zcsj" ltype="text" />
</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/tjzczjlist.jsp | Java Server Pages | oos | 1,758 |
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2013</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-06-21 孙雁斌 新規作成 ;
****************************************************/
var grid = null;
var tree = null;
var myWindow = null;
var menu=null;
var openWidth="630";
var openHeight="330";
var zbid;
//初始;
$(function (){
try{
/*布局*/
$("#layout").ligerLayout({leftWidth: 200 });
/*grid*/
var toolbar = [
// { line: true },
//{ text: '快捷自改', click:f_cancel,icon: 'modify' },
{ line: true },
{ text: '自改', click:f_update,icon: 'modify' }
];
zbid=getUrlParam("zbid");
grid = sub_Grid('zczjdfbGrid','整改情况',toolbar," and zbsysno='"+ $("#sysno").val() +"' and fs='2'");
document.getElementById("zbid").value=zbid;
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*grid双击事件*/
function onDblClickRow (data, rowindex, rowobj){
}
/*根据条件查询*/
function f_search(){
try{
var strWhere = " and zbsysno='"+ $("#sysno").val() +"' and fs='2'";
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_cancel(){
try {
var strId ="''";
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRows();
if (selected==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_OPERATE_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/zyjkck/ZczjAction_cancel.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_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{
//alert("销除");
myWindow =top.$.ligerDialog.open({url: webpath+"/UI/action/zyjkck/ZczjAction_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);
}
} | zyjk | trunk/WebRoot/UI/zczj/bhglist.js | JavaScript | oos | 4,140 |
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2013</p>;
* @author ;
* 改版履历;
* Rev - Date ------- jmx ---------- 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 depth=4;
var distcode;
//初始;
$(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_check, icon:'msn' }
];
zbid=getUrlParam("zbid");
distcode=getUrlParam("distcode");
var lx= getUrlParam("lx");
var hyfl=getUrlParam("hylb");
var whys=getUrlParam("whys");
var qygm=getUrlParam("qygm");
var zclx=getUrlParam("zclx");
var sqlc=" and bak1='1'";
var xsql=" and 1=1";
if(distcode!=null&&distcode.length>0){
if(distcode.indexOf("00000000")>=0){
distcode=distcode.substring(0, 4);
depth=1;
xsql+=" and code like '"+distcode+"%' and depth in (1,2)";
}else if(distcode.indexOf("000000")>=0&&distcode.indexOf("00000000")<0){
distcode=distcode.substring(0, 6);
xsql+=" and code like '"+distcode+"%' and depth in (2,3)";
depth=2;
}else if(distcode.indexOf("000000")<0&&distcode.indexOf("00000000")<0&&distcode.indexOf("000")>=0){
distcode=distcode.substring(0, 9);
xsql+=" and code like '"+distcode+"%' and depth in (3,4)";
depth=3;
}
sqlc+=" and ditcode like '"+distcode+"%'";
}
if(lx==1){
sqlc+=" and hgx>30";
}else if(lx==2){
sqlc+=" and hgx<=30";
}else if(lx==0){
sqlc+=" and 1=1 ";
}
//危害分类
if(hyfl!=null&&hyfl.length>0){
sqlc+=" and a.enterno in (select qyjbqk.enterno from qyjbqk where hyfl like '"+hyfl+"%')";
}
//危害因素
if(whys!=null&&whys.length>0){
sqlc+=" and a.corpkey in (select Z_wh.corpkey from Z_wh where whDM like '"+whys+"%' )";
}
//企业规模
if(qygm!=null&&qygm.length>0){
sqlc+=" and a.enterno in (select qyjbqk.enterno from qyjbqk where chanzhi ='"+qygm+"')";
}
//注册类型
if(zclx!=null&&zclx.length>0){
sqlc+=" and a.enterno in (select qyjbqk.enterno from qyjbqk where zclx ='"+zclx+"')";
}
grid = sub_Grid('ZczjGrid','自查自纠',toolbar," and zbid='" + getUrlParam("zbid") + "'"+sqlc);
document.getElementById("zbid").value=zbid;
/*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="+xsql,
nodeWidth : 200,
checkbox: false,
slide: false,
// onExpand:onExpand,
// onBeforeExpand: onBeforeExpand,
onClick: function(node)
{
},
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 {
myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/zczj/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 = " ";
//单位名称
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);
}
}
/*删除*/
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);
}
}
/*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/tjzczjlist.js | JavaScript | oos | 11,489 |
/*********************************************************************
*<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($("#zcsj").val()==""||$("#enuditcode").val()==""){
$.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: 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){
columntree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree");
}
},
onClick:function(node){
$("#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/ah/zywhzczjb.js | JavaScript | oos | 7,021 |
<%@ 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.*"%>
<jsp:directive.page import="UI.dao.zyjk.ZczjpzbBean"/>
<%
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");
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");
Map<Object,Object> sxmap=(Map<Object,Object>)request.getAttribute("sxmap");
Map<Object,Object> pzmap=(Map<Object,Object>)request.getAttribute("pzmap");
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/zywhzczjb.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() %>"/>
</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>企业名称</td>
<td ><input type="text" id="dwmc" name="zczjqyxxzbBean.dwmc" value="<%=zczjqyxxzbBean.getDwmc()%>"/></td>
<td>联系人</td>
<td><input type="text" id="lxr" name="zczjqyxxzbBean.lxr" value="<%=zczjqyxxzbBean.getLxr()%>"/></td>
<td>所在地区</td>
<td>
<input type="text" id="enuditcode" name="" value="<%=DistcodeUtil.getDistName(zczjqyxxzbBean.getDitcode())%>"/></td>
</tr>
<tr>
<td>电话</td>
<td><input type="text" id="lxdh" name="zczjqyxxzbBean.lxdh" value="<%=zczjqyxxzbBean.getLxdh()%>"/></td>
<td>自检日期</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" rowspan="2" style="width: 10%;text-align: center;">项目</th>
<th class="tableth" rowspan="2" style="width: 20%;text-align: center;">主要内容</th>
<th class="tableth" rowspan="2" style="width: 40%;text-align: center;">方法</th>
<th class="tableth" colspan="3" style="width: 30%;text-align: center;">评定标准</th>
<th class="tableth" rowspan="2" style="width: 10%;text-align: center;">自查结果</th>
</tr>
<tr>
<th class="tableth" style="text-align: center;">符合</th>
<th class="tableth" style="text-align: center;">基本符合</th>
<th class="tableth" style="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='#EEEEEE';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>
<%
List<ZczjpzbBean> pzlist=(List<ZczjpzbBean>)pzmap.get(ffbz);
if(null==pzlist||pzlist.size()<=0){
%>
<td class="tabletd"></td>
<td class="tabletd"></td>
<td class="tabletd"></td>
<%}else{
for(int s=0;s<pzlist.size();s++){
ZczjpzbBean pz=pzlist.get(s);
%>
<td class="tabletd"><%=pz.getPpbz() %></td>
<%}
}
%>
<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">
总计(60项)
</td>
<td colspan="6" 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/ah/zywhzczjb.jsp | Java Server Pages | oos | 13,365 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author ;
* 改版履历;
* Rev - Date ------- jmx ---------- Note -------------------
* 1.0 2013-06-06 新規作成 ;
****************************************************/
-->
<%@ 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">
<%
//PtdeptBean dept=(PtdeptBean)ServletActionContext.getContext().getSession().get(SystemAttributeNames.DEPT_INFO_NAME);
//String distcode=dept.getDistcode();
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&&dises[1].indexOf("0000")<0){
dqcode=dqcode.substring(3, 9);
discode=dqcode;
}else if(dises[1].indexOf("00")<0&&dises[1].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="370200000000";
}
%>
<html>
<%@ include file="/global.jsp"%>
<head>
<title></title>
<script language="javascript" src="<%=webpath%>UI/zczj//zczjlist.js"></script>
</head>
<body class="bodystyle">
<input type="hidden" name="zbid" id="zbid"/>
<input type="hidden" name="distcode" id="distcode" value="<%=discode %>"/>
<div id="layout">
<!-- TREE区域 -->
<%--<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;overflow:scroll;height:500px;width:200px"> </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 type="hidden" id="distcode" name="distcode" style="width:10px;" value="<%=discode %>" />
<input id="distcodename" style="width:70%;" type="text" value="<%=DistcodeUtil.getDistName(discode)%>"/>
</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>
<td class="l-table-edit-td-right" >行业分类:</td>
<td class="l-table-edit-td-left" >
<input name="hyflname" type="text" id="hyflname" ltype="text" />
<input name="hyfl" type="hidden" id="hyfl" ltype="text" />
</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 class="l-table-edit-td-right" >项目类别:</td>
<td class="l-table-edit-td-left" >
<input name="prjName" type="text" id="prjName" ltype="text" />
<input name="prjLevel" type="hidden" id="prjLevel" ltype="text" />
<input name="prj" type="hidden" id="prj" ltype="text" />
</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/zczjlist.jsp | Java Server Pages | oos | 4,557 |
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2013</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-06-21 孙雁斌 新規作成 ;
****************************************************/
var grid = null;
var tree = null;
var myWindow = null;
var menu=null;
var openWidth="630";
var openHeight="270";
var zbid;
//初始;
$(function (){
try{
/*布局*/
$("#layout").ligerLayout({leftWidth: 200 });
/*grid*/
var toolbar = [
{ line: true },
//{ text: '快捷自改', click:f_cancel,icon: 'modify' },
//{ line: true },
{ text: '查看', click:f_update,icon: 'modify' }
];
zbid=getUrlParam("zbid");
grid = sub_Grid('zczjdfbGrid','整改项目列表',toolbar," and zbsysno='"+ zbid +"' and fs='2'");
document.getElementById("zbid").value=zbid;
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*grid双击事件*/
function onDblClickRow (data, rowindex, rowobj){
}
/*根据条件查询*/
function f_search(){
try{
var strWhere = " and zbsysno='"+ $("#sysno").val() +"' and fs='2'";
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_cancel(){
try {
var strId ="''";
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRows();
if (selected==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_OPERATE_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/zyjkck/ZczjAction_cancel.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_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/zyjkck/ZczjAction_findByKey.action?messageBean.method=look&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);
}
} | zyjk | trunk/WebRoot/UI/zczj/zglist.js | JavaScript | oos | 4,087 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author ;
* 改版履历;
* Rev - Date ------- jmx ---------- Note -------------------
* 1.0 2013-06-06 新規作成 ;
****************************************************/
-->
<%@ 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//qyzczjlist.js"></script>
</head>
<body class="bodystyle" style="height:600px">
<input type="hidden" name="zbid" id="zbid"/>
<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/qyzczjlist.jsp | Java Server Pages | oos | 1,303 |
<!--
/****************************************************
* <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.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"/>
<!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>
<%
ZczjdfbBean zczjdfbBean = (ZczjdfbBean)request.getAttribute("zczjdfbBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
T_yhzc_bzbBean bzbBean=new T_yhzc_bzbBean();
bzbBean=bzbBean.findFirst(" where id='"+ zczjdfbBean.getNrsysno() +"'");
String value=bzbBean.getBzmc();
%>
<script language="javascript" src="<%=webpath%>//UI/zczj/bhgdetail.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="zczjdfbBean.sysno" value="<%=zczjdfbBean.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() %>"/>
</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">
<textarea class="l-textarea" readonly id="" name="" rows="2" style="width:475px" ><%=value%></textarea>
</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="zczjdfbBean.zgrq" type="text" id="zgrq" value="<%=zczjdfbBean.getZgrq()%>" ltype="date" />
</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" rows="4" id="zcjl" name="zczjdfbBean.zcjl" style="width:475px" ><%=zczjdfbBean.getZcjl()%></textarea>
</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("zczjdfbBean.zghc","SFHG",zczjdfbBean.getZghc());
dbsel.addAttr("style", "width: 202px;");
dbsel.addAttr("id", "zghc");
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>
</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/bhgdetail.jsp | Java Server Pages | oos | 4,419 |
<%@ 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/zywhzczjb.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>
<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/zywhzczjb.jsp | Java Server Pages | oos | 13,008 |
<%@ 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.*"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
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==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";
}
if(null==qyjbqkBean){
qyjbqkBean=new QyjbqkBean();
}
//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/zywhzczjbc.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="corpkey" name="zczjqyxxzbBean.corpkey" value="<%=zczjqyxxzbBean.getCorpkey() %>"/>
<!--企业主键 -->
<input type="hidden" id="" name="" value="<%=zczjqyxxzbBean.getEnterno() %>"/>
<!--自查自纠状态 -->
<input type="hidden" id="bak1" name="zczjqyxxzbBean.bak1" value="<%=zczjqyxxzbBean.getBak1() %>"/>
<input type="hidden" id="state" value="<%=state %>"/>
</div>
<table width="90%" align="center">
<tr>
<td colspan="8" height="50" align="center" style="font-size: 25px">用人单位职业卫生基础建设自查自纠表</td>
</tr>
<tr>
<td class="l-table-edit-td-right">企业名称:</td>
<td><input type="text" id="dwmc" name="zczjqyxxzbBean.dwmc" value="<%=zczjqyxxzbBean.getDwmc()%>"/></td>
<td class="l-table-edit-td-right">单位地址:</td>
<td>
<input type="text" id="" 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: 5%;text-align: center;">自查结果</th>
<th class="tableth" style="width: 5%;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>
<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="background: #FF3030">
--%>
<td class="tabletd" rowspan="<%=ffbz.getBz()%>">
<%}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>
<td class="tabletd" rowspan="<%=ffbz.getBz()%>">
<%
//dbsel = new DBSelect("beansc["+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);
DBRadioC checkc=new DBRadioC("beans["+con+"].jdhc","beans["+con+"].jdhc","SFHG",df.getJdhc());
//check = new DBRadio("beans["+con+"].jdhc","beans["+con+"].jdhc","SFHG",df.getJdhc());
out.print(checkc.toString());
%>
</td>
</tr>
<%
con++;
//System.out.println(con++);
} %>
<%} %>
<%} %>
<tr>
<td class="tabletd">
<center>
总计</br>
(60项)
</center>
</td>
<td class="tabletd" colspan="4" height="40px">
<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>
<tr>
<td class="tabletd">
<center>
总计</br>
(60项)
</center>
</td>
<td class="tabletd" colspan="4" height="40px">
<table >
<tr>
<td>合格</td><td><input type="text" readonly="readonly" name="zczjqyxxzbBean.fhgx" id="fhgx" validate="{required:true}" value="<%=zczjqyxxzbBean.getFhgx() %>" style="width: 25px"/></td><td>项,</td>
<td>不合格</td><td><input type="text" readonly="readonly" name="zczjqyxxzbBean.fbhgx" id="fbhgx" validate="{required:true}" value="<%=zczjqyxxzbBean.getFbhgx() %>" style="width: 25px"/></td><td>项,</td>
<td>符合率</td><td><input type="text" readonly="readonly" name="zczjqyxxzbBean.fhgl" id="fhgl" validate="{required:true}" value="<%=zczjqyxxzbBean.getFhgl() %>" style="width: 25px"/></td><td>%</td>
<td><input type="button" value="核查结果" onclick="getHCResult()" class="l-button l-button-test"/></td>
</tr>
</table>
</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>
<br>
</form>
</body>
</html>
| zyjk | trunk/WebRoot/UI/zczj/zywhzczjbc.jsp | Java Server Pages | oos | 15,121 |
/****************************************************
* <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();
actionurl=webpath+"/UI/action/zyjkck/ZczjAction_cancelx.action";
if(method=="look"){
$("#subButton").hide();
$("#colButton").hide();
}
/*返回信息状态*/
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/bhgdetail.js | JavaScript | oos | 2,057 |
/*********************************************************************
*<p>处理内容:enudetail form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.20---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
var strEnutype = $("#enutype").val();
parent.f_search(strEnutype);
$.ligerDialog.success(data.checkMessage);
}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+"/st/system/action/enudetail/enudetail_insert.action";
}else if(method=="look"){
$("#subButton").hide();
}else if(method=="update"){
actionurl=webpath+"/st/system/action/enudetail/enudetail_update.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
}); | zyjk | trunk/WebRoot/UI/system/enum/enudetailinfo.js | JavaScript | oos | 2,127 |
<!--
/*********************************************************************
*<p>处理内容:enudetail 表单域</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.20---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/enum/enudetailinfo.js" type="text/javascript"></script>
<title>信息</title>
<%
PtenudetailBean ptEnuDetailBean = (PtenudetailBean)request.getAttribute("ptEnuDetailBean");
PtenumainBean ptEnuMainBean = (PtenumainBean)request.getAttribute("ptEnuMainBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</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>
<!-- 操作 -->
<input type="hidden" id="enutype" name="ptEnuMainBean.enutype" value="<%=ptEnuMainBean.getEnutype() %>"/>
<!-- 操作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" >
<tr>
<td class="l-table-edit-td-right">枚举值:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptEnuDetailBean.enuitemvalue" type="text" id="enuitemvalue" value="<%=ptEnuDetailBean.getEnuitemvalue() %>" 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="ptEnuDetailBean.enuitemlabel" type="text" id="enuitemlabel" value="<%=ptEnuDetailBean.getEnuitemlabel() %>" 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="ptEnuDetailBean.enuitemdesc" type="text" id="enuitemdesc" value="<%=ptEnuDetailBean.getEnuitemdesc() %>" 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="ptEnuDetailBean.dispno" type="text" id="dispno" value="<%=ptEnuDetailBean.getDispno() %>" 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/system/enum/enudetailinfo.jsp | Java Server Pages | oos | 3,908 |
<!--
/*********************************************************************
*<p>处理内容:enum 表单域</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.19---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/enum/enuminfo.js" type="text/javascript"></script>
<title>信息</title>
<%
PtenumainBean ptEnuMainBean = (PtenumainBean)request.getAttribute("ptEnuMainBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</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 -->
<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 name="ptEnuMainBean.enutype" type="text" id="enutype" value="<%=ptEnuMainBean.getEnutype() %>" 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="ptEnuMainBean.enuname" type="text" id="enuname" value="<%=ptEnuMainBean.getEnuname() %>" 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/system/enum/enuminfo.jsp | Java Server Pages | oos | 2,806 |
/*********************************************************************
*<p>处理内容:枚举列表js</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.19---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var maintree=null;
var detailtree=null;
var openWidth="630";
var openHeight="300";
/*初始化*/
$(function (){
try {
/*布局*/
$("#layout").ligerLayout({leftWidth: 200});
/*查询按钮*/
$("#searchButton").click(function(){
f_search();
});
/*GRID*/
var toolbar = [
{ text: '新建', click:grid_add,icon: 'add' },
{ line: true },
{ text: '修改', click:grid_modi,icon: 'modify' },
{ line: true },
{ text: '删除', click:grid_del,icon:'delete' }
];
grid = Grid("EnumGrid","枚举管理",toolbar);
/*TREE*/
$("#maintree").ligerTree({
data:[{id:'system',pid:'0',children:[],text:'枚举管理',isexpand:'false'}],
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
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 = $("#maintree").ligerGetTreeManager();
/*右键菜单*/
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[
{ text: '增加', click: f_add, icon: 'add' },
{ text: '修改', click: f_update, icon: 'modify' },
{ line: true },
{ text: '删除', click: f_remove, icon: 'delete' }
]
});
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*双击事件*/
function onDblClickRow(data, rowindex, rowobj){
}
/*展开前事件*/
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=EnumTree");
}
}
/*左侧树删除方法*/
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].menuid+"'";
}
}else{
strId = strId+",'"+node.data.id+"'";
}
$.post(webpath+"/st/system/action/enum/enum_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(node==null&&selected==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else if(selected !=null){
strId=selected.menuid;
}else{
strId=node.data.id;
}
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/enum/enum_findByKey.action?messageBean.method=add", 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(node==null&&selected==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else if(selected !=null){
strId=selected.menuid;
}else{
strId=node.data.id;
}
if (strId==null||strId.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/enum/enum_findByKey.action?messageBean.method=update&enutype="+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 node_add(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"EnumTree",strTreeID:strId},function(data){
if (node){
var nodedata = data
//var i=data.length-1;
nodes.push(data[0]);
tree.append(node.target, nodes);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*修改结点*/
function node_modi(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"EnumTree",strTreeID:strId,isFlag:"leafpoint"},function(data){
if (node){
var nodedata = data;
tree.update(node.target,data[0]);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*查看*/
function t_enter(nodeid){
try{
var strWhere = " ";
if(nodeid.length>0){
strWhere = " and enutype = '"+nodeid+"'";
}
//初始化查询起始页
var manager = $("#mainGrid").ligerGetGridManager();
manager.set("newPage",1);
//初始化查询条件
manager.set("parms",{"strWhere":strWhere});
manager.loadData(true);
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*右侧grid增加方法*/
function grid_add(){
try {
var node = tree.getSelected();
if(node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
var nodeid=node.data.id;
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/enudetail/enudetail_findByKey.action?messageBean.method=add&ptEnuMainBean.enutype="+nodeid, width: openWidth,height:openHeight, title: '枚举管理',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*右侧grid修改方法*/
function grid_modi(){
try {
var node = tree.getSelected();
var nodeid=node.data.id;
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
var strId;
if(selected==null||node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=selected.enuitemvalue;
}
if (strId==null||strId.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
alert("strId:"+strId);
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/enudetail/enudetail_findByKey.action?messageBean.method=update&strSysno="+strId+"&ptEnuMainBean.enutype="+nodeid, width: openWidth,height:openHeight, title: '菜单管理',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
f_search(nodeid);
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*右侧grid删除方法*/
function grid_del(){
try {
var node = tree.getSelected();
var nodeid=node.data.id;
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].enuitemvalue+"'";
}
}
$.post(webpath+"/st/system/action/enudetail/enudetail_delete.action",{strSysno:strId,enutype:nodeid},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
f_search(nodeid);
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*右侧grid查询*/
function f_search(strEnutype)
{
try{
var strWhere = " and enutype='"+ strEnutype +"'";
//初始化查询起始页
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/system/enum/enumlist.js | JavaScript | oos | 12,508 |
/*********************************************************************
*<p>处理内容:enum form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.19---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
var enutype=$("#enutype").val();
var enuname=$("#enuname").val();
var method=$("#method").val();
/*判断增加修改状态*/
if(method=="add"){
parent.node_add(enutype);
}else if(method=="update"){
parent.node_modi(enutype);
}
parent.f_search();
$.ligerDialog.success(data.checkMessage);
}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+"/st/system/action/enum/enum_insert.action";
}else if(method=="look"){
$("#subButton").hide();
}else if(method=="update"){
actionurl=webpath+"/st/system/action/enum/enum_update.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
}); | zyjk | trunk/WebRoot/UI/system/enum/enuminfo.js | JavaScript | oos | 2,384 |
<!--
/*********************************************************************
*<p>处理内容:枚举列表</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.19---- 孙雁斌 --------- 新规作成<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"%>
<head>
<script src="enumlist.js" type="text/javascript"></script>
</head>
<body class="treemenubody" style="padding:10px">
<div id="layout">
<div position="left" title="菜单" > <ul id="maintree" style="margin-top:3px;overflow:scroll;height:530px;width:200px" > </div>
<div class="lay-center-out" position="center" id="mainGrid"></div>
</div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/enum/enumlist.jsp | Java Server Pages | oos | 1,043 |
/*********************************************************************
*<p>处理内容:ptdept form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.6.18---- 孙雁斌--------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
var pass=document.all.unitpwd.value;
if(pass.length>14||pass.length<6)
{
$.ligerDialog.error("密码要介于6到14位之间");
}else if(!(document.all.unitpwd.value==document.all.passwd.value))
{
$.ligerDialog.error("两次输入的密码不一致");
}else
{
$("#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 () {
try {
var method = $("#method").val();
actionurl=webpath+"/st/system/action/login/LoginAction_editPassWord.action";
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*重置按钮*/
$("#colButton").click(function () {
$("#unitpwd").val("");
$("#passwd").val("");
});
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/user/modifypass.js | JavaScript | oos | 2,447 |
/*********************************************************************
*<p>处理内容:ptdept form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.6.18---- 孙雁斌--------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
var pass=document.all.unitpwd.value;
if(pass.length>14||pass.length<6)
{
$.ligerDialog.error("密码要介于6到14位之间");
}else if(!(document.all.unitpwd.value==document.all.passwd.value))
{
$.ligerDialog.error("两次输入的密码不一致");
}else
{
$("#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 () {
try {
var method = $("#method").val();
actionurl=webpath+"/UI/zyjk/pxlogin/PxLoginAction_editPassWord.action";
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*重置按钮*/
$("#colButton").click(function () {
$("#unitpwd").val("");
$("#passwd").val("");
});
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/user/pxmodifypass.js | JavaScript | oos | 2,442 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author 孙雁斌;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-06-18 孙雁斌 新規作成 ;
****************************************************/
-->
<%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="st.system.dao.PtoperBean"/>
<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"%>
<head>
<title></title>
<%
T_officerBean officerBean = (T_officerBean)request.getAttribute("officerBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
if(null==messageBean){
messageBean=new MessageBean();
}
if(null==officerBean){
officerBean=(T_officerBean )session.getAttribute(SystemAttributeNames.USER_INFO_NAME);
}
%>
<script language="javascript" src="<%=webpath%>/UI/system/user/pxmodifypass.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="officer_id" name="officerBean.officer_id" value="<%=officerBean.getOfficer_id()%>"/>
<!-- 操作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" >
<tr>
<td class="l-table-edit-td-right">输入新密码:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="unitpwd" type="password" id="unitpwd" 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="officerBean.passwd" type="password" id="passwd" 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/system/user/pxmodifypass.jsp | Java Server Pages | oos | 3,346 |
/*********************************************************************
*<p>处理内容:ptdept form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.6.18---- 孙雁斌--------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
var pass=document.all.unitpwd.value;
if(pass.length>14||pass.length<6)
{
$.ligerDialog.error("密码要介于6到14位之间");
}else if(!(document.all.unitpwd.value==document.all.passwd.value))
{
$.ligerDialog.error("两次输入的密码不一致");
}else
{
$("#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 () {
try {
var method = $("#method").val();
actionurl=webpath+"/UI/zyjk/jclogin/JcLoginAction_editPassWord.action";
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*重置按钮*/
$("#colButton").click(function () {
$("#unitpwd").val("");
$("#passwd").val("");
});
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/user/jcmodifypass.js | JavaScript | oos | 2,442 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author 孙雁斌;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-06-18 孙雁斌 新規作成 ;
****************************************************/
-->
<%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="st.system.dao.PtoperBean"/>
<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>
<%
PtoperBean ptoperBean = (PtoperBean)request.getAttribute("ptoperBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
if(null==messageBean){
messageBean=new MessageBean();
}
if(null==ptoperBean){
ptoperBean=(PtoperBean )session.getAttribute(SystemAttributeNames.USER_INFO_NAME);
}
%>
<script language="javascript" src="<%=webpath%>/UI/system/user/modifypass.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="ptoperBean.sysno" value="<%=ptoperBean.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:160px">
<input name="unitpwd" type="password" id="unitpwd" 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="ptoperBean.passwd" type="password" id="passwd" 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/system/user/modifypass.jsp | Java Server Pages | oos | 3,281 |
/*********************************************************************
*<p>处理内容:ptdept form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.6.18---- 孙雁斌--------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
var pass=document.all.unitpwd.value;
if(pass.length>14||pass.length<6)
{
$.ligerDialog.error("密码要介于6到14位之间");
}else if(!(document.all.unitpwd.value==document.all.c_pwd.value))
{
$.ligerDialog.error("两次输入的密码不一致");
}else
{
$("#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 () {
try {
var method = $("#method").val();
actionurl=webpath+"/st/system/action/enterlogin/LoginAction_editPassWord.action";
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*重置按钮*/
$("#colButton").click(function () {
$("#unitpwd").val("");
$("#c_pwd").val("");
});
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/user/qymodifypass.js | JavaScript | oos | 2,450 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author 孙雁斌;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-06-18 孙雁斌 新規作成 ;
****************************************************/
-->
<%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="st.system.dao.PtoperBean"/>
<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"%>
<head>
<title></title>
<%
T_officerBean officerBean = (T_officerBean)request.getAttribute("officerBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
if(null==messageBean){
messageBean=new MessageBean();
}
if(null==officerBean){
officerBean=(T_officerBean )session.getAttribute(SystemAttributeNames.CORP_INFO_NAME);
}
%>
<script language="javascript" src="<%=webpath%>/UI/system/user/qymodifypass.js"></script>
</head>
<body class="menubody" style="width: 580;height:380">
<%--<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="sysno" value="<%=officerBean.getOfficer_id()%>"/>
<!-- 操作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="unitpwd" type="password" id="unitpwd" 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="officerBean.c_pwd" type="password" id="c_pwd" 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/system/user/qymodifypass.jsp | Java Server Pages | oos | 3,359 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author 孙雁斌;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-06-18 孙雁斌 新規作成 ;
****************************************************/
-->
<%@ page language="java" import="UI.dao.*,st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="st.system.dao.PtoperBean"/>
<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"%>
<head>
<title></title>
<%
T_officerBean officerBean = (T_officerBean)request.getAttribute("officerBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
if(null==messageBean){
messageBean=new MessageBean();
}
if(null==officerBean){
officerBean=(T_officerBean )session.getAttribute(SystemAttributeNames.USER_INFO_NAME);
}
%>
<script language="javascript" src="<%=webpath%>/UI/system/user/jcmodifypass.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="officer_id" name="officerBean.officer_id" value="<%=officerBean.getOfficer_id()%>"/>
<!-- 操作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" >
<tr>
<td class="l-table-edit-td-right">输入新密码:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="unitpwd" type="password" id="unitpwd" 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="officerBean.passwd" type="password" id="passwd" 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/system/user/jcmodifypass.jsp | Java Server Pages | oos | 3,346 |
<!--
/*********************************************************************
*<p>处理内容:safeoper列表</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<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"%>
<head>
<script src="<%=webpath%>/UI/system/safeoper/safeoperlist.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;overflow:scroll;height:530px;width:200px"> </div>
<div class="lay-center-out" position="center" id="mainGrid"></div>
</div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/safeoper/safeoperlist.jsp | Java Server Pages | oos | 1,077 |
<!--
/*********************************************************************
*<p>处理内容:opertree列表</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.22---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/safeoper/opertree.js" type="text/javascript"></script>
<title>信息</title>
<%
PtoperroleBean ptOPerRoleBean = (PtoperroleBean)request.getAttribute("ptOPerRoleBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</head>
<body class="treemenubody" style="padding:10px">
<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="operid" name="ptOPerRoleBean.operid" value="<%=ptOPerRoleBean.getOperid() %>"/>
<!-- 操作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">
<tr>
<td style="height:300px">
<ul id="tree"></ul>
</td>
<td class="td_message"></td>
</tr>
</table>
<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/system/safeoper/opertree.jsp | Java Server Pages | oos | 2,354 |
/*********************************************************************
*<p>处理内容:safeoper列表js</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var grid = null;
var tree = null;
var myWindow = null;
var menu=null;
var openWidth="630";
var openHeight="500";
/*初始化*/
$(function (){
try {
/*布局*/
$("#layout").ligerLayout({leftWidth: 200});
/*查询按钮*/
$("#searchButton").click(function(){
f_search();
});
/*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_grant, icon:'msn' }
];
grid = Grid("SafeOperGrid","人员管理",toolbar);
/*TREE*/
$("#tree").ligerTree({
data:[{id:'1',pid:'0',children:[],text:'部门列表',isexpand:'false'}],
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onBeforeExpand: onBeforeExpand,
onExpand:onExpand,
onSelect: function (node)
{
var nodeid=node.data.id;
t_enter(nodeid);
}
});
tree = $("#tree").ligerGetTreeManager();
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*双击事件*/
function onDblClickRow(data, rowindex, rowobj){
try {
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/safeoper/safeoper_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title: '人员管理',
showMax: true, showToggle: true, showMin: false, isResize: true, slide: false });
}catch (e) {
$.ligerDialog.error(e.message);
}
}
function onBeforeExpand(node){
}
/*展开事件*/
function onExpand(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=PtdeptTree");
}
}
/*查看*/
function t_enter(nodeid){
try{
var strWhere = " ";
if(nodeid.length>0){
strWhere = " and deptid = '"+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.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+"/st/system/action/safeoper/safeoper_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 strId;
if(node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=node.data.id;
}
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/safeoper/safeoper_findByKey.action?messageBean.method=add&ptOperBean.deptid="+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 manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
var strId;
if(selected==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=selected.sysno;
}
if (strId==null||strId.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/safeoper/safeoper_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);
}
}
/*查看*/
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 = $.ligerDialog.open({url: webpath+"/st/system/action/safeoper/safeoper_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '人员管理',
showMax: true, showToggle: true, showMin: false, isResize: true, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*人员授权*/
function f_grant(){
try {
var node = tree.getSelected();
var strId;
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
if(selected==null||selected.length == 0){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=selected.sysno;
}
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/ptoper/ptoper_findByKey.action?messageBean.method=add&ptOPerRoleBean.operid="+strId, width: 300,height:600, title: '人员授权',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
}catch (e) {
$.ligerDialog.error(e.message);
}
}
| zyjk | trunk/WebRoot/UI/system/safeoper/safeoperlist.js | JavaScript | oos | 9,163 |
/*********************************************************************
*<p>处理内容:opertree列表js</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.22---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var tree = null;
var actionurl;
$(function (){
try{
var method = $("#method").val();
if(method=="add"){
actionurl=webpath+"/st/system/action/ptoper/ptoper_insert.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag==MSG_SUCCESS)
{
}else{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
var strOperId=$("#operid").val();
if(strOperId.indexOf(",")>0){
var limit=strOperId.indexOf(",");
strOperId=strOperId.substring(0,limit);
}
/*TREE*/
$("#tree").ligerTree({
//data:[{id:'1',pid:'0',children:[],text:'角色列表',isexpand:'true'}],
url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PtOperTree&strTreeID="+strOperId,
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: true,
slide: false,
// onBeforeExpand: onBeforeExpand,
// onExpand:onExpand,
onSelect: function (node)
{
}
});
tree = $("#tree").ligerGetTreeManager();
$("#subButton").click(function () {
var notes = tree.getChecked();
var strroletext = "";
for (var i = 0; i < notes.length; i++)
{
strroletext += notes[i].data.id + ",";
}
var strRoleId=$("#operid").val();
/*提交删除方法*/
alert("删除");
$.post(webpath+"/st/system/action/ptoper/ptoper_delete.action",{strRoleno:strRoleId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
/*提交增加方法*/
alert("增加");
$.post(actionurl,{strSysno:strroletext,strRoleno:strRoleId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
var strRoleId=$("#operid").val();
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
});
}catch (e) {
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/safeoper/opertree.js | JavaScript | oos | 3,986 |
<!--
/*********************************************************************
*<p>处理内容:safeoper 表单域</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/safeoper/safeoperinfo.js" type="text/javascript"></script>
<title>信息</title>
<%
PtoperBean ptOperBean= (PtoperBean)request.getAttribute("ptOperBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</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="ptOperBean.sysno" value="<%=ptOperBean.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" >
<tr>
<td class="l-table-edit-td-right">人员证件号:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptOperBean.operid" type="text" id="operid" value="<%=ptOperBean.getOperid() %>" 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="ptOperBean.opernm" type="text" id="opernm" value="<%=ptOperBean.getOpernm() %>" 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="ptOperBean.sex" type="text" id="sex" value="<%=ptOperBean.getSex() %>"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="ptOperBean.nation" type="text" id="nation" value="<%=ptOperBean.getNation() %>" 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="ptOperBean.birthday" type="text" id="birthday" value="<%=ptOperBean.getBirthday() %>" 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" colspan="4" >
<input name="ptOperBean.deptid" type="text" id="deptid" value="<%=ptOperBean.getDeptid() %>" 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="ptOperBean.indt" type="text" id="indt" value="<%=ptOperBean.getIndt() %>"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="ptOperBean.duty" type="text" id="duty" value="<%=ptOperBean.getDuty() %>" 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="ptOperBean.edudegree" type="text" id="edudegree" value="<%=ptOperBean.getEdudegree() %>" 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="ptOperBean.telno" type="text" id="telno" value="<%=ptOperBean.getTelno() %>" 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="ptOperBean.mobileno" type="text" id="mobileno" value="<%=ptOperBean.getMobileno() %>"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="ptOperBean.email" type="text" id="email" value="<%=ptOperBean.getEmail() %>" 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="ptOperBean.passwd" type="text" id="passwd" value="<%=ptOperBean.getPasswd()%>" 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="ptOperBean.opersta" type="text" id="opersta" value="<%=ptOperBean.getOpersta() %>" 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">
<textarea cols="110" rows="3" class="l-textarea" id="resume" name="ptOperBean.resume" style="width:430px" validate="{required:true}" ><%=ptOperBean.getResume() %></textarea>
</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 cols="110" rows="3" class="l-textarea" id="memo" name="ptOperBean.memo" style="width:430px" validate="{required:true}" ><%=ptOperBean.getMemo() %></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/system/safeoper/safeoperinfo.jsp | Java Server Pages | oos | 8,557 |
/*********************************************************************
*<p>处理内容:safeoper form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<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);
}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+"/st/system/action/safeoper/safeoper_insert.action";
}else if(method=="look"){
$("#subButton").hide();
}else if(method=="update"){
actionurl=webpath+"/st/system/action/safeoper/safeoper_update.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
}); | zyjk | trunk/WebRoot/UI/system/safeoper/safeoperinfo.js | JavaScript | oos | 2,076 |
/*********************************************************************
*<p>处理内容:demo form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
var actionurl = null;
var columntree = null;
var colselect =null;
var grid = null;
$(function () {
try {
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag==MSG_SUCCESS)
{
}else{
$.ligerDialog.error(strMessage);
}
/*提交*/
$("#subButton").click(function(){
alert("123123");
f_submit();
});
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*枚举树*/
$("#enumnmae").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=MenuTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
onClick: function (node)
{
var nodeid=node.data.id;
f_getColumn(nodeid);
}
}
});
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
/*提交*/
function f_submit(){
actionurl=webpath+"/st/system/action/detail/DetailSetAction_submint.action";
alert(actionurl);
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"FormTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(MSG_LOAD_FALL);
});
$("form").ligerForm();
}
| zyjk | trunk/WebRoot/UI/system/resource/detail/detailset.js | JavaScript | oos | 2,904 |
<!--
/*********************************************************************
*<p>处理内容:detail 设置</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 方立文 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="UI.dao.*,st.portal.action.*,st.system.dao.PtgridscolumnBean" pageEncoding="UTF-8"%>
<jsp:directive.page import="st.system.dao.PtformlabelBean"/>
<!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>
<%
PtformlabelBean ptformlabelBean = (PtformlabelBean)request.getAttribute("ptformlabelBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
<script src="<%=webpath%>/UI/system/resource/grid/gridinfo.js" type="text/javascript"></script>
</head>
<body class="formbody" style="width: 550">
<div class="div_form">
<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">
<!-- 隐藏域 主键id -->
<input type="hidden" id="sysid" name="ptformlabelBean.sysid" value="<%=ptformlabelBean.getSysid() %>"/>
<input type="hidden" id="formid" name="ptformlabelBean.formid" value="<%=ptformlabelBean.getFormid() %>"/>
<table cellpadding="0" cellspacing="0" class="table-edit" >
<tr>
<td class="l-table-edit-td-right">form名称</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptformlabelBean.formname" type="text" readonly="readonly" id="formname" value="<%=ptformlabelBean.getFormname()%>" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">TABLE名称</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptformlabelBean.tablename" type="text" readonly="readonly" id="tablename" value="<%=ptformlabelBean.getTablename()%>" 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="ptformlabelBean.labelname" type="text" id="labelname" value="<%=ptformlabelBean.getLabelname()%>" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right" >标签id</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptformlabelBean.labelid" type="text" id="labelid" value="<%=ptformlabelBean.getLabelid()%>" 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="ptformlabelBean.columnlength" type="text" id="columnlength" value="<%=ptformlabelBean.getColumnlength()%>" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right" >标签id</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptformlabelBean.labelid" type="text" id="labelid" value="<%=ptformlabelBean.getLabelid()%>" 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" colspan="4" style="width:160px">
<%
DBSelect dbsel = new DBSelect("labeltype", "fieldtype",ptformlabelBean.getLabeltype());
dbsel.addAttr("style", "width: 100%");
dbsel.addAttr("notnull", "true");
dbsel.addAttr("name", "ptformlabelBean.labeltype");
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 type="text" id="enumnmae" name="ptformlabelBean.enumnmae" value="<%=ptformlabelBean.getEnumnmae()%>"/>
</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>
</table>
<br />
<table class="button_table">
<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>
<div style="display:none"></div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/resource/detail/detailset.jsp | Java Server Pages | oos | 5,524 |
<!--
/*********************************************************************
*<p>处理内容:detail info</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 方立文 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="UI.dao.*,st.portal.action.*,st.system.dao.*" 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>
<%
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
<style type="text/css">
input{
width: 60px;
}
.l-text-field{
width: 80px;
}
</style>
<script src="<%=webpath%>/UI/system/resource/detail/detailinfo.js" type="text/javascript"></script>
</head>
<body class="formbody" style="width: 550">
<div class="div_form">
<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">
<!-- 操作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="text" id="formid" name="strFormName" value="<%=request.getAttribute("strFormName") %>"/>
<table cellpadding="0" cellspacing="0" class="table-edit" >
<tr>
<td class="l-table-edit-td-right">隐藏</td>
<td class="l-table-edit-td-left" style="width:160px">
<%
DBSelect dbsel = new DBSelect("strHid", "BOOLTYPE","0");
dbsel.addAttr("style", "width: 100%");
dbsel.addAttr("notnull", "true");
dbsel.addAttr("name", "strHidden");
dbsel.setDisplayAll(false);
out.print(dbsel);
%>
</td>
<td class="l-table-edit-td-right">表信息</td>
<td class="l-table-edit-td-left" style="width:160px">
<input type="text" id="tableid" name="strTable"/>
</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 type="text" id="columnid" name="strColumn" />
</td>
<td class="td_message">
<input class="l-button l-button-submit" type="button" id="addcolumn" value="添加字段"/></td>
</tr>
</table>
<div id="textTable" style="width: 700px">
<% out.print(request.getAttribute("strContent")); %>
</div>
<br />
<table class="button_table">
<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>
<div style="display:none"></div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/resource/detail/detailinfo.jsp | Java Server Pages | oos | 3,525 |
/*********************************************************************
*<p>处理内容:detail list js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
var actionurl = null;
var openWidth="820";
var openHeight="570";
$(function (){
try {
$("#layout").ligerLayout({leftWidth: 250});
/*清空*/
$("#reset").click();
/*info修改*/
$("#addinfo").click(function(){
var formid = $("#formid").val();
if(formid!=null&&formid!="")
{
/*表单域设置*/
f_fab();
}else{
$.ligerDialog.error("请先选择form");
}
});
/*提交*/
$("#subButton").click(function(){
f_submit()
});
/*表单域tree*/
$("#tree").ligerTree({
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=FormTree',
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onSelect: function (node)
{
var nodeid=node.data.id;
f_grid(nodeid);
},onContextmenu: function (node, e)
{
actionNodeID = node.data.text;
menu.show({ top: e.pageY, left: e.pageX });
return false;
}
});
tree = $("#tree").ligerGetTreeManager();
//右键菜单
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[{ text: '删除', click: f_remove, icon: 'delete' },
{ text: '创建INFO', click: f_create, icon: 'add' } ]});
/*grid*/
$.post(webpath+"/st/system/action/table/table_getColumn.action",{key:"FormTable"},function(data){
grid = $("#mainGrid").ligerGrid({ checkbox: true,
columns:data,pageSizeOptions:[15,20,30,40,50],
parms:"",
dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=FormTable",
width: '100%',height:'100%',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :true,pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize',
pageSize:10, enabledEdit: true,clickToEdit: false, isScroll: true,
onError:function(){
$.ligerDialog.error(MSG_LOAD_FALL);
},
toolbar: {
items: [
{ text: '删除', click:f_columnrem,icon:'delete' }
]
}
});
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
/*表格selcet树*/
$("#actionname").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=ActionsTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
nodeWidth : 230,
parentIDFieldName:'pid',
onClick: function (node)
{
var nodeid=node.data.id;
f_getColumn(nodeid);
}
}
});
$("form").ligerForm();
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*提交*/
function f_submit(){
var sysid = $("#formid").val();
if(sysid==''){
actionurl=webpath+"/st/system/action/detail/DetailAction_insert.action";
}else {
actionurl=webpath+"/st/system/action/detail/DetailAction_update.action";
}
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"FormTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(MSG_LOAD_FALL);
});
$("form").ligerForm();
}
/*删除*/
function f_remove(){
try {
var node = tree.getSelected();
if (node==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
var strId = node.data.id;
$.post(webpath+"/st/system/action/detail/DetailAction_delete.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"FormTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*创建*/
function f_create(){
try {
var node = tree.getSelected();
if (node==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm("是否要覆盖原有文件", function (state)
{
if(state)
{
var strId = node.data.id;
$.post(webpath+"/st/system/action/detail/DetailAction_createJsp.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*查看*/
function f_grid(nodeid){
try {
var node = tree.getSelected();
if (node==null||node.data.id==1) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
var strId = node.data.id;
$.post(webpath+"/st/system/action/detail/DetailAction_findObjson.action",{strSysno:strId},function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
var obj = data.ptformBean;
$.each( obj, function(i, n){
var sname = "#"+i;
$(sname).val(n);
});
f_serch(strId);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json");
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
////////////////////////////////////////////////////////////////////////////////
/*grid查询*/
function f_serch(nodeid){
var strWhere = " ";
if(nodeid.length>0){
strWhere = " and formid = '"+nodeid+"'";
grid.loadServerData({strWhere:strWhere},function (countmain){
alert(countmain);});
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
}
/*column 删除*/
function f_columnrem()
{
try {
var strId ="''";
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRows();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
for(var i=0;i<selected.length;i++){
strId = strId+",'"+selected[i].sysid+"'";
}
$.post(webpath+"/st/system/action/detail/DetailSetAction_delete.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
f_serch($("#formid").val());
$.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_fab(){
try {
var node = tree.getSelected();
var strId = $("#formid").val();
if (strId=="") {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/detail/DetailSetAction_findInfo.action?strSysno="+strId, width: openWidth,height:openHeight, title: '表单域设计',
showMax: true, showToggle: true, showMin: false, isResize: true, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*column类型修改*/
function f_labelset(){
try {
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/detail/DetailSetAction_findByKey.action?strSysno="+selected.sysid, 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/system/resource/detail/detaillist.js | JavaScript | oos | 10,792 |
<!--
/*********************************************************************
*<p>处理内容:DETAIL 管理</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<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"%>
<head>
<script src="<%=webpath%>UI/system/resource/detail/detaillist.js" type="text/javascript"></script>
</head>
<body class="formbody" >
<div id="layout">
<!-- Tree区域 -->
<div position="left" title="表单名称">
<ul id="tree" style="margin-top:3px;">
</div>
<!-- Detailm区域 -->
<div class="lay-center-out" position="center" style="border: 0" >
<div>
<form name="form" method="post" id="form">
<div>
<input type="hidden" id="formid" name="ptformBean.formid" value=""/>
</div>
<table cellpadding="0" cellspacing="0" a class="form-l-table-edit" >
<tr>
<td class="l-table-edit-td-right">FORM名称:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptformBean.formname" type="text" id="formname" value="" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">JSP路径:</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptformBean.formpath" type="text" id="formpath" value="" ltype="text" />
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right">ACTION</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptformBean.actionname" type="text" id="actionname" value="" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right"></td>
<td class="l-table-edit-td-left" colspan="4" >
</td>
<td class="td_message"></td>
</tr>
</table>
<br />
<table align="center">
<tr>
<td>
<input type="reset" value="清空" id="reset" class="l-button l-button-submit" />
<input type="button" value="提交" id="subButton" class="l-button l-button-submit" />
<input type="button" value="设置info页面" id="addinfo" class="l-button l-button-submit" />
</td>
</tr>
</table>
<br />
</form>
</div>
<div id="mainGrid"></div>
</div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/resource/detail/detaillist.jsp | Java Server Pages | oos | 2,881 |
/*********************************************************************
*<p>处理内容:demo form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
var actionurl = null;
var columntree = null;
var colselect =null;
var grid = null;
$(function () {
try {
actionurl=webpath+"/st/system/action/detail/DetailSetAction_submint.action";
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*添加字段*/
$("#addcolumn").click(function(){
addrows();
});
/*提交*/
$("#subButton").click(function(){
f_submit();
});
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*表格selcet树*/
$("#tableid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
onClick: function (node)
{
var nodeid=node.data.id;
f_getColumn(nodeid);
}
}
});
/*字段select树*/
colselect =$("#columnid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
checkbox: true,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
}
});
columntree =colselect.tree.ligerGetTreeManager();
$("form").ligerForm();
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*提交*/
function f_submit(){
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
parent.f_serch($("#formid").val());
var strcont = data.strContent;
$("#textTable").html(strcont);
$.ligerDialog.success(data.messageBean.checkMessage);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json").error(function() {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(MSG_LOAD_FALL);
});
$("form").ligerForm();
}
/*联动取得column*/
function f_getColumn(nodeid)
{
if(nodeid!=""){
var strWhere =" where tableid='"+nodeid+"'";
columntree.clear();
columntree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableColumnTree', {strWhere:strWhere});
}
}
//添加内容的行
function addrows(){
var tableid = $("#tableid").val();
var columnid = $("#columnid").val();
var formid = $("#formid").val();
var strhid = $("#strHid").val();
if(tableid!=null&&tableid!=""&&columnid!=null&&columnid!="")
{
$.post(webpath+"/st/system/action/detail/DetailSetAction_insert.action",{strHidden:strhid,strTable:tableid,strFormName:formid,strColumn:columnid},
function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
//刷新grid
parent.f_grid($("#formid").val());
alert(data.strContent);
$("#textTable").html(data.strContent);
$.ligerDialog.success(data.messageBean.checkMessage);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
$("form").ligerForm();
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}else{
$.ligerDialog.warn("GridName 为空");
}
}
//删除当前行<tr>
function removerow(obj) {
var columnid = obj.id;
var formid = $("#formid").val();
alert(columnid);
$.post(webpath+"/st/system/action/detail/DetailSetAction_delcolumn.action",{strColumn:columnid,strFormName:formid},
function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
//刷新grid
parent.f_grid($("#formid"));
$("#textTable").html(data.strContent);
$.ligerDialog.success(data.messageBean.checkMessage);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
$("form").ligerForm();
},"json").error(function(){$.ligerDialog.error(MSG_LOAD_FALL)});
}
| zyjk | trunk/WebRoot/UI/system/resource/detail/detailinfo.js | JavaScript | oos | 5,732 |
/*********************************************************************
*<p>处理内容:TREE list js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
var actionurl = null;
var columntree = null;
var colselect =null;
$(function (){
try {
$("#layout").ligerLayout({leftWidth: 250});
/*清空*/
$("#reset").click();
/*提交*/
$("#subButton").click(function(){
f_submit()});
/*创建sql*/
$("#creatsql").click(function(){
f_creatsql()});
$("#tree").ligerTree({
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTree',
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onSelect: function (node)
{
var nodeid=node.data.id;
f_grid(nodeid);
},onContextmenu: function (node, e)
{
actionNodeID = node.data.text;
menu.show({ top: e.pageY, left: e.pageX });
return false;
}
});
tree = $("#tree").ligerGetTreeManager();
//右键菜单
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[{ text: '删除', click: f_remove, icon: 'delete' },
{ text: '创建', click: f_create, icon: 'add' } ]});
/*数据结构树*/
$("#tableid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
onClick: function (node)
{
var nodeid=node.data.id;
//f_getSQL(nodeid);
f_getColumn(nodeid);
}
}
});
/*数据结构树*/
colselect =$("#columnid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
checkbox: true,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
}
});
columntree =colselect.tree.ligerGetTreeManager();
$("form").ligerForm();
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*联动取得column*/
function f_getColumn(nodeid)
{
if(nodeid!=""){
var strWhere =" where tableid='"+nodeid+"'";
columntree.clear();
columntree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableColumnTree', {strWhere:strWhere});
}
}
/*查询sql*/
function f_getSQL(nodeid)
{
$.post(webpath+"/st/system/action/databasc/DataBasc_findByKey.action",{strSysno:nodeid},function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
$("#strsql").val(data.ptableBean.strsql);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json");
}
/*生成sql*/
function f_creatsql(){
var table = $("#tableid").val();
var column = $("#columnid").val();
re = new RegExp(";","g");
column = column.replace(re, ",");
var strsql = "select " +column+" from "+table;
$("#strsql").val(strsql);
}
/*创建*/
function f_create()
{
try {
var node = tree.getSelected();
if (node==null||node.data.id==1) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm("确定要创建,可能会覆盖原有文件", function (state)
{
if(state)
{
var strId = node.data.id;
$.post(webpath+"/st/system/action/tree/tree_getCreat.action",{strTreeID:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*提交*/
function f_submit(){
var sysid = $("#treeid").val();
if(sysid==null||sysid==""){
actionurl=webpath+"/st/system/action/tree/tree_insert.action";
}else {
actionurl=webpath+"/st/system/action/tree/tree_update.action";
}
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"PTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(MSG_LOAD_FALL);
});
$("form").ligerForm();
}
/*删除*/
function f_remove(){
try {
var node = tree.getSelected();
if (node==null||node.data.id==1) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
var strId = node.data.id;
$.post(webpath+"/st/system/action/tree/tree_delete.action",{strTreeID:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"PTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*查看*/
function f_grid(nodeid){
try {
var node = tree.getSelected();
if (node==null||node.data.id==1) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
var strId = node.data.id;
$.post(webpath+"/st/system/action/tree/tree_findByKey.action",{strTreeID:strId},function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
var obj = data.ptreesBean;
$.each( obj, function(i, n){
var sname = "#"+i;
$(sname).val(n);
});
//$.ligerDialog.success(data.messageBean.checkMessage);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json");
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
| zyjk | trunk/WebRoot/UI/system/resource/tree/treelist.js | JavaScript | oos | 8,361 |
<!--
/*********************************************************************
*<p>处理内容:TREE 管理</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<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"%>
<head>
<script src="<%=webpath%>UI/system/resource/tree/treelist.js" type="text/javascript"></script>
</head>
<body class="formbody" >
<div id="layout">
<!-- Tree区域 -->
<div position="left" title="TREE 名称">
<ul id="tree" style="margin-top:3px;">
</div>
<!-- info区域 -->
<div class="lay-center-out" position="center" style="border: 0" >
<form name="form" method="post" id="form">
<div>
<!-- 隐藏域 主键id -->
<input type="hidden" id="treeid" name="ptreesBean.treeid" value=""/>
</div>
<table cellpadding="0" cellspacing="0" a class="form-l-table-edit" >
<tr>
<td class="l-table-edit-td-right">Tree名称:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptreesBean.treename" type="text" id="treename" value="" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">Tree说明:</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptreesBean.treedesc" type="text" id="treedesc" value="" 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 type="text" id="tableid"/>
</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 type="text" id="columnid"/>
</td>
<td class="td_message">
<input class="l-button l-button-submit" type="button" id="creatsql" value="生成sql"/></td>
</tr>
<tr>
<td class="l-table-edit-td-right">sql</td>
<td class="l-table-edit-td-left" colspan="5">
<textarea rows="5" name="ptreesBean.strsql" type="text" id="strsql" style="width: 100%"></textarea>
</td>
</tr>
<tr>
<td class="l-table-edit-td-right">访问路径:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptreesBean.treepath" type="text" id="treepath" value="st.system.action.tree" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">树形id</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptreesBean.paramid" type="text" id="paramid" value="" 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="ptreesBean.parampid" type="text" id="parampid" value="" 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="ptreesBean.paramtext" type="text" id="paramtext" value="" ltype="text" />
</td>
<td class="td_message"></td>
</tr>
</table>
<br />
<table align="center">
<tr>
<td>
<input type="reset" value="清空" id="reset" class="l-button l-button-submit" />
<input type="button" value="提交" id="subButton" class="l-button l-button-submit" />
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/resource/tree/treelist.jsp | Java Server Pages | oos | 4,604 |
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'censuslist.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
This is my JSP page. <br>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/resource/census/censuslist.jsp | Java Server Pages | oos | 847 |
<!--
/*********************************************************************
*<p>处理内容:grid 管理</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<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"%>
<head>
<script src="<%=webpath%>UI/system/resource/grid/gridlist.js" type="text/javascript"></script>
</head>
<body class="formbody" >
<div id="layout">
<!-- Tree区域 -->
<div position="left" title="GridTree">
<ul id="tree" style="margin-top:3px;overflow:scroll;height:540px;width:250px">
</div>
<!-- info区域 -->
<div class="lay-center-out" position="center" style="border: 0" >
<div id="accordion1">
<div title="Grid列表">
<div id="mainGrid"></div>
</div>
<div title="Grid信息">
<form name="form" method="post" id="form">
<div style="margin-top: 10px">
<!-- 隐藏域 主键id -->
<input type="hidden" id="gridid" name="ptgridBean.gridid" value=""/>
</div>
<fieldset style="border-color: black;margin-left: 20px" >
<legend style="color: red;">第一步:</legend>
<table cellpadding="0" cellspacing="0" class="form-l-table-edit" >
<tr>
<td class="l-table-edit-td-right">grid名称:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptgridBean.gridname" type="text" id="gridname" value="" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">grid说明:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptgridBean.griddesc" type="text" id="griddesc" value="" ltype="text" />
</td>
<td class="td_message"><input type="button" value="提交" class="l-button l-button-submit" /> </td>
</tr>
</table>
</fieldset>
<br />
<fieldset style="border-color: black;margin-left: 20px" >
<legend style="color: red;">第二步:</legend>
<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="tableid"/>
</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 type="text" id="columnid"/>
</td>
<td class="td_message">
<input class="l-button l-button-submit" type="button" id="creatsql" value="添加字段"/></td>
</tr>
</table>
</fieldset>
<br />
<fieldset style="border-color: black;margin-left: 20px" >
<legend style="color: red;">第三步:</legend>
<table cellpadding="0" cellspacing="0" class="form-l-table-edit" >
<tr>
<td class="l-table-edit-td-right">sql</td>
<td class="l-table-edit-td-left" colspan="5">
<textarea rows="5" name="ptgridBean.sqlstr" type="text" id="sqlstr" style="width: 100%"></textarea>
</td>
</tr>
<tr>
<td class="l-table-edit-td-right">pagesize</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptgridBean.pagesize" type="text" id="pagesize" value="15" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">sqlWHERE</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptgridBean.wherestr" type="text" id="wherestr" value=" where(1=1)" ltype="text" />
</td>
<td class="td_message"> </td>
<td><input class="l-button l-button-submit" type="button" id="addsql" value="生成sql"/>
</td>
</tr>
</table>
</fieldset>
<br />
<fieldset style="border-color: black;margin-left: 20px" >
<legend style="color: red;">第四步:</legend>
<table cellpadding="0" cellspacing="0" class="form-l-table-edit" >
<tr>
<td class="l-table-edit-td-right">jsp名称</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptgridBean.fieldname" type="text" id="fieldname" value="15" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">jsp路径</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptgridBean.fieldpath" type="text" id="fieldpath" ltype="text" />
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right">是否tree查询</td>
<td class="l-table-edit-td-left" style="width:160px">
<%
DBSelect dbsel = new DBSelect("istree", "BOOLTYPE");
dbsel.addAttr("style", "width: 100%");
dbsel.addAttr("notnull", "true");
dbsel.addAttr("name", "ptgridcolumnBean.istree");
dbsel.setDisplayAll(false);
out.print(dbsel);
%>
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">tree名称</td>
<td class="l-table-edit-td-left" colspan="4" >
<input type="text" id="treename" name="ptgridBean.treename" />
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right">oderbystr</td>
<td class="l-table-edit-td-left" style="width:160px">
<input type="text" id="orderstr" name="ptgridBean.orderstr" />
</td>
<td class="l-table-edit-td-right">action</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptgridBean.actionname" style="width: 300px" id="actionname" />
</td>
<td class="td_message"></td>
</tr>
</table>
</fieldset>
<br />
<table align="center">
<tr>
<td>
<input type="reset" value="清空" id="reset" class="l-button l-button-submit" />
<input type="button" value="提交" id="subButton" class="l-button l-button-submit" />
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/resource/grid/gridlist.jsp | Java Server Pages | oos | 7,336 |
/*********************************************************************
*<p>处理内容:GIRD form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
var actionurl = null;
var columntree = null;
var colselect =null;
var grid = null;
$(function () {
try {
var method = $("#method").val();
if(method=="add"){
actionurl=webpath+"/st/system/action/grid/GridColumnAction_insert.action";
}else if(method=="look"){
$("#subButton").hide();
}else if(method=="update"){
actionurl=webpath+"/st/system/action/grid/GridColumnAction_update.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag==MSG_SUCCESS)
{
}else{
$.ligerDialog.error(strMessage);
}
/*添加字段*/
$("#addcolumn").click(function(){
var gridname = $("#gridn").val();
var tableid = $("#tableid").val();
var columnid = $("#columnid").val();
if(tableid!=null&&tableid!="")
{
$("#gridname").val(gridname);
$("#tablename").val(tableid);
$("#columnname").val(columnid);
$.post(webpath+"/st/system/action/databasc/DataBasc_findColumn.action",{strTableName:tableid,strColumnName:columnid},function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
$("#columndesc").val(data.ptableColumnBean.columndesc);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL);
});
}else{
$.ligerDialog.warn("GridName 为空");
}
});
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*表格selcet树*/
/* $("#columnmenu").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTenumTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid'
}
}); */
/*表格selcet树*/
$("#tableid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
onClick: function (node)
{
var nodeid=node.data.id;
f_getColumn(nodeid);
}
}
});
/*字段select树*/
colselect =$("#columnid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
}
});
columntree =colselect.tree.ligerGetTreeManager();
/*验证样式*/
$.metadata.setType("attr", "validate");
var v = $("form").validate({
//调试状态,不会提交数据的
debug: true,
errorPlacement: function (lable, element) {
if (element.hasClass("l-textarea")) {
element.addClass("l-textarea-invalid");
}
else if (element.hasClass("l-text-field")) {
element.parent().addClass("l-text-invalid");
}
var nextCell = element.parents("td:first").next("td");
nextCell.find("div.l-exclamation").remove();
$('<div class="l-exclamation" title="' + lable.html() + '"></div>').appendTo(nextCell)
element.parents("td:first").ligerTip();
},
success: function (lable) {
var element = $("#" + lable.attr("for"));
var nextCell = element.parents("td:first").next("td");
if (element.hasClass("l-textarea")) {
element.removeClass("l-textarea-invalid");
}
else if (element.hasClass("l-text-field")) {
element.parent().removeClass("l-text-invalid");
}
nextCell.find("div.l-exclamation").remove();
},
//调试状态,不会提交数据的
submitHandler: function () {
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
parent.f_serch($("#gridname").val());
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(MSG_LOAD_FALL);
});
}
});
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
/*联动取得column*/
function f_getColumn(nodeid)
{
if(nodeid!=""){
var strWhere =" where tableid='"+nodeid+"'";
columntree.clear();
columntree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableColumnTree', {strWhere:strWhere});
}
}
| zyjk | trunk/WebRoot/UI/system/resource/grid/gridinfo.js | JavaScript | oos | 7,155 |
<!--
/*********************************************************************
*<p>处理内容:grid info</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 方立文 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="UI.dao.*,st.portal.action.*,st.system.dao.PtgridscolumnBean" 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>
<%
PtgridscolumnBean ptgridcolumnBean = (PtgridscolumnBean)request.getAttribute("ptgridcolumnBean");
String strGridName = request.getParameter("gridname");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
<script src="<%=webpath%>/UI/system/resource/grid/gridinfo.js" type="text/javascript"></script>
</head>
<body class="formbody" style="width: 750px">
<div class="div_form">
<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">
<!-- 隐藏域 主键id -->
<input type="hidden" id="sysid" name="ptgridcolumnBean.sysid" value="<%=ptgridcolumnBean.getSysid() %>"/>
<!-- 操作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() %>"/>
<!-- Grid名称 -->
<input type="hidden" id="gridn" name="gridn" value="<%=ptgridcolumnBean.getGridname() %>"/>
<table cellpadding="0" cellspacing="0" class="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="tableid"/>
</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 type="text" id="columnid"/>
</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 class="l-button l-button-submit" type="button" id="addcolumn" value="添加字段"/>
</td><td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right">Grid名称:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptgridcolumnBean.gridname" type="text" id="gridname" value="<%=ptgridcolumnBean.getGridname()%>" 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="ptgridcolumnBean.tablename" type="text" id="tablename" value="<%=ptgridcolumnBean.getTablename()%>" 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">
</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="ptgridcolumnBean.columnname" type="text" id="columnname" value="<%=ptgridcolumnBean.getColumnname()%>" 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="ptgridcolumnBean.columndesc" type="text" id="columndesc" value="<%=ptgridcolumnBean.getColumndesc()%>" 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">
</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:180px">
<%
DBSelect dbsel = new DBSelect("columnhide", "BOOLTYPE",ptgridcolumnBean.getColumnhide());
dbsel.addAttr("style", "width: 100%");
dbsel.addAttr("notnull", "true");
dbsel.addAttr("name", "ptgridcolumnBean.columnhide");
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="ptgridcolumnBean.columnwidth" type="text" id="columnwidth" value="<%=ptgridcolumnBean.getColumnwidth()%>" />
</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:180px">
<%
dbsel = new DBSelect("isfind", "BOOLTYPE",ptgridcolumnBean.getIsfind());
dbsel.addAttr("style", "width: 100%");
dbsel.addAttr("notnull", "true");
dbsel.addAttr("name", "ptgridcolumnBean.isfind");
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 type="text" id="dispno" name="ptgridcolumnBean.dispno" value="<%=ptgridcolumnBean.getDispno()%>" />
</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" colspan="4" style="width:160px">
<%
dbsel = new DBSelect("columnstate", "fieldtype",ptgridcolumnBean.getColumnstate());
dbsel.addAttr("style", "width: 100%");
dbsel.addAttr("notnull", "true");
dbsel.addAttr("name", "ptgridcolumnBean.columnstate");
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">
</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 type="text" id="columnmenu" name="ptgridcolumnBean.columnmenu" value="<%=ptgridcolumnBean.getColumnmenu()%>"/>
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">字段对齐:</td>
<td class="l-table-edit-td-left" style="width:160px">
<%
dbsel = new DBSelect("columnalign", "fieldalign",ptgridcolumnBean.getColumnalign());
dbsel.addAttr("style", "width: 100%");
dbsel.addAttr("notnull", "true");
dbsel.addAttr("name", "ptgridcolumnBean.columnalign");
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">
</td><td class="td_message"></td>
</tr>
</table>
<br />
<table class="button_table">
<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>
<div style="display:none"></div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/resource/grid/gridinfo.jsp | Java Server Pages | oos | 9,316 |
/*********************************************************************
*<p>处理内容:GRID list js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
var actionurl = null;
var columntree = null;
var colselect =null;
var grid = null;
var strWhere = "";
var openWidth="770";
var openHeight="470";
$(function (){
try {
$("#layout").ligerLayout({leftWidth: 265});
$("#accordion1").ligerAccordion({ height:560});
/*清空*/
$("#reset").click();
/*提交*/
$("#subButton").click(function(){
f_submit()});
/*添加字段*/
$("#creatsql").click(function(){
var gridname = $("#gridname").val();
if(gridname!=null&&gridname!="")
{
f_addg();
}else{
$.ligerDialog.warn("GridName 为空");
}
});
/*创建sql*/
$("#addsql").click(function(){
var gridname = $("#gridname").val();
if(gridname!=null&&gridname!="")
{
f_columnsql();
}else{
$.ligerDialog.warn("GridName 为空");
}
});
//右键菜单
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[{ text: '删除', click: f_removes, icon: 'delete' },
{ text: '创建页面', click: f_create, icon: 'archives' }
]});
$("#tree").ligerTree({
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTGridTree',
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onSelect: function (node)
{
var nodeid=node.data.id;
f_grid(nodeid);
},onContextmenu: function (node, e)
{
actionNodeID = node.data.text;
menu.show({ top: e.pageY, left: e.pageX });
return false;
}
});
tree = $("#tree").ligerGetTreeManager();
/*表格selcet树*/
$("#tableid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
onClick: function (node)
{
var nodeid=node.data.id;
f_getColumn(nodeid);
}
}
});
/*grid*/
$.post(webpath+"/st/system/action/table/table_getColumn.action",{key:"GridColumnTable"},function(data){
grid = $("#mainGrid").ligerGrid({ checkbox: true,
columns:data,pageSizeOptions:[15,20,30,40,50],
parms:{"strWhere":strWhere},
dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=GridColumnTable",
width: '99%',height:'94%',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :true,pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize',
pageSize:15, enabledEdit: true,clickToEdit: false, isScroll: true,
onError:function(){
$.ligerDialog.error(MSG_LOAD_FALL);
},
toolbar: {
items: [
{ text: '新建', click:f_addNewRow,icon: 'add' },
{ line: true },
{ text: '修改', click:f_fab,icon: 'modify' },
{ line: true },
{ text: '删除', click:f_columnrem,icon:'delete' },
{ line: true },
{ text: '生成sql', click:f_columnsql,icon:'pager' },
{ line: true },
{ text: '升序', click:f_upgrid,icon:'up' },
{ line: true },
{ text: '降序', click:f_downgrid,icon:'back' }
]
}
});
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
/*字段select树*/
colselect =$("#columnid").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
checkbox: true,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
}
});
columntree =colselect.tree.ligerGetTreeManager();
/*表格selcet树*/
$("#actionname").ligerComboBox({
width: 500,
selectBoxWidth: 320,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=ActionsTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
nodeWidth : 230,
parentIDFieldName:'pid',
onClick: function (node)
{
var nodeid=node.data.id;
f_getColumn(nodeid);
}
}
});
$("form").ligerForm();
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*联动取得column*/
function f_getColumn(nodeid)
{
if(nodeid!=""){
strWhere =" where tableid='"+nodeid+"'";
columntree.clear();
columntree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableColumnTree', {strWhere:strWhere});
}
}
/*添加字段*/
function f_addg(){
var table = $("#tableid").val();
var column = $("#columnid").val();
var grid = $("#gridid").val();
if(grid==""||column=="")
{
$.ligerDialog.warn("先添加必要信息");
}
else{
$.post(webpath+"/st/system/action/grid/GridColumnAction_insertAll.action",{strTableName:table,strGridid:grid,strColumnName:column},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
f_serch(grid);
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL);
});
}
}
/*提交*/
function f_submit(){
var sysid = $("#gridid").val();
if(sysid==null||sysid==""){
actionurl=webpath+"/st/system/action/grid/GridAction_insert.action";
}else {
actionurl=webpath+"/st/system/action/grid/GridAction_update.action";
}
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"PTGridTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(MSG_LOAD_FALL);
});
$("form").ligerForm();
}
/*Grid删除*/
function f_removes(){
try {
var node = tree.getSelected();
if (node==null||node.data.id==1) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
var strId = node.data.id;
$.post(webpath+"/st/system/action/grid/GridAction_delete.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"PTGridTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*TREE查看*/
function f_grid(nodeid){
try {
if (nodeid==null||nodeid==1) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.post(webpath+"/st/system/action/grid/GridAction_findByKey.action",{strSysno:nodeid},function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
var obj = data.ptgridBean;
$.each( obj, function(i, n){
var sname = "#"+i;
$(sname).val(n);
});
var strWhere = " ";
if(nodeid.length>0){
strWhere = " and gridname = '"+nodeid+"'";
}
//初始化查询起始页
var manager = $("#mainGrid").ligerGetGridManager();
manager.set("newPage",1);
//初始化查询条件
manager.set("parms",{"strWhere":strWhere});
manager.loadData(true);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json");
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*创建页面*/
function f_create(){
try {
var node = tree.getSelected();
if (node==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
var strId = node.data.id;
$.post(webpath+"/st/system/action/grid/GridAction_creatJsp.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*grid查询*/
function f_serch(nodeid){
if(nodeid.length>0){
strWhere = " and gridname = '"+nodeid+"'";
grid.loadServerData({strWhere:strWhere},function (countmain){
alert(countmain);});
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
}
/**********************GridColumn********************************************/
/*column 删除*/
function f_columnrem()
{
try {
var strId ="''";
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRows();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
for(var i=0;i<selected.length;i++){
strId = strId+",'"+selected[i].sysid+"'";
}
$.post(webpath+"/st/system/action/grid/GridColumnAction_delete.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
f_serch($("#gridid").val());
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*column 增加行*/
function f_addNewRow()
{
try {
var gridname = $("#gridname").val();
if (gridname==null||gridname.length == 0) {
$.ligerDialog.warn("请先填写gridname");
return;
}
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/grid/GridColumnAction_findByKey.action?messageBean.method=add&strSysno="+gridname, width: openWidth,height:openHeight, title: 'DEMO编辑',
showMax: true, showToggle: true, showMin: false, isResize: true, slide: false });
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*column 修改行*/
function f_fab(){
try {
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/grid/GridColumnAction_findByKey.action?messageBean.method=update&strSysno="+selected.sysid, width: openWidth,height:openHeight, title: 'COLUMN编辑',
showMax: true, showToggle: true, showMin: false, isResize: true, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*column 生成sql*/
function f_columnsql(){
var sysid = $("#gridid").val();
if(sysid!=null&&sysid!=""){
$.post(webpath+"/st/system/action/grid/GridAction_createSQL.action",{strSysno:sysid},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
$("#sqlstr").val(data.method);
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL);
});
}
}
/*column 提交*/
function f_columnupdate()
{
try {
var strId ="''";
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRows();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
for(var i=0;i<selected.length;i++){
strId = strId+",'"+selected[i].customerid+"'";
}
$.post(webpath+"/st/system/action/grid/GridColumnAction_delete.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
f_serch($("#gridid").val());
$.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_upgrid(){
try {
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId = selected.sysid;
$.post(webpath+"/st/system/action/grid/GridColumnAction_order.action",{strSysno:strId,strOrder:'up'},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
f_serch($("#gridid").val());
$.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_downgrid(){
try {
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId = selected.sysid;
$.post(webpath+"/st/system/action/grid/GridColumnAction_order.action",{strSysno:strId,strOrder:'down'},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
f_serch($("#gridid").val());
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
| zyjk | trunk/WebRoot/UI/system/resource/grid/gridlist.js | JavaScript | oos | 18,035 |
<!--
/*********************************************************************
*<p>处理内容:ACTION 管理</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<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"%>
<head>
<script src="<%=webpath%>UI/system/resource/action/actionlist.js" type="text/javascript"></script>
</head>
<body class="formbody" >
<div id="layout">
<!-- Tree区域 -->
<div position="left" title="Action名称">
<ul id="tree" style="margin-top:3px;overflow:scroll;;height:630px;width:200px">
</div>
<!-- info区域 -->
<div class="lay-center-out" position="center" style="border: 0" >
<div>
<form name="form" method="post" id="form">
<div>
<!-- 隐藏域 主键id -->
<input type="hidden" id="sysid" name="ptactionBean.sysid" value=""/>
</div>
<table cellpadding="0" cellspacing="0" a class="form-l-table-edit" >
<tr>
<td class="l-table-edit-td-right">ACTION名称:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptactionBean.actionname" type="text" id="actionname" value="" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">ACTION 路径:</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptactionBean.actionpath" type="text" id="actionpath" value="" ltype="text" />
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right">ACTION说明:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptactionBean.actiondesc" type="text" id="actiondesc" ltype="text" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right">BEAN名称:</td>
<td class="l-table-edit-td-left" colspan="4" >
<input name="ptactionBean.beanname" type="text" id="beanname" value="" 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="ptactionBean.infopage" type="text" id="infopage" value="" ltype="text" />
</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>
</table>
<br />
<table align="center">
<tr>
<td>
<input type="reset" value="清空" id="reset" class="l-button l-button-submit" />
<input type="button" value="提交" id="subButton" class="l-button l-button-submit" />
<input type="button" value="初始化" id="initButton" class="l-button l-button-submit" />
</td>
</tr>
</table>
</form>
</div>
<br/>
<!-- GRID区域 -->
<div style="border: 0" id="mainGrid" >
</div>
</div>
</div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/resource/action/actionlist.jsp | Java Server Pages | oos | 3,686 |
/*********************************************************************
*<p>处理内容:actions list js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
var actionurl = null;
var grid =null;
$(function (){
try {
$("#layout").ligerLayout({leftWidth: 250});
$("form").ligerForm();
/*清空*/
$("#reset").click();
/*提交*/
$("#subButton").click(function(){
f_submit()});
/*init*/
$("#initButton").click(function(){
f_init()});
/*GRID*/
grid = Grid("ActionGrid","菜单");
$("#tree").ligerTree({
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=ActionsTree',
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onSelect: function (node)
{
var nodeid=node.data.id;
f_grid(nodeid);
},onContextmenu: function (node, e)
{
actionNodeID = node.data.text;
menu.show({ top: e.pageY, left: e.pageX });
return false;
}
});
tree = $("#tree").ligerGetTreeManager();
//右键菜单
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[{ text: '删除', click: f_remove, icon: 'delete' },
{ text: '创建ACTION', click: f_screate, icon: 'add' } ]});
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*表格selcet树*/
$("#beanname").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:true,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
}
});
/*双击事件*/
function onDblClickRow(data, rowindex, rowobj){
try {
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*提交*/
function f_submit(){
var sysid = $("#sysid").val();
if(sysid==null||sysid==""){
actionurl=webpath+"/st/system/action/actions/ResActions_insert.action";
}else {
actionurl=webpath+"/st/system/action/actions/ResActions_update.action";
}
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"ActionsTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(MSG_LOAD_FALL);
});
$("form").ligerForm();
}
/*删除*/
function f_remove(){
try {
var node = tree.getSelected();
if (node==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
var strId = node.data.id;
$.post(webpath+"/st/system/action/actions/ResActions_delete.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"ActionsTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
});
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*创建*/
function f_screate(){
try {
var node = tree.getSelected();
if (node==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
var strId = node.data.id;
$.post(webpath+"/st/system/action/actions/ResActions_create.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json");
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*查看*/
function f_grid(nodeid){
try {
var node = tree.getSelected();
if (node==null||node.data.id==1) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
var strId = node.data.id;
$.post(webpath+"/st/system/action/actions/ResActions_findByKey.action",{strSysno:strId},function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
var obj = data.ptactionBean;
$.each( obj, function(i, n){
var sname = "#"+i;
$(sname).val(n);
});
var strWhere = " ";
strWhere = " and actionid = '"+strId+"'";
//初始化查询起始页
grid.set("newPage",1);
//初始化查询条件
grid.set("parms",{"strWhere":strWhere});
grid.loadData(true);
$.ligerDialog.success(data.messageBean.checkMessage);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json");
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*初始化*/
function f_init(){
try {
$.post(webpath+"/st/system/action/actions/ResActions_init.action",function(data){
if(data.messageBean.checkFlag==MSG_SUCCESS)
{
$.ligerDialog.success(data.messageBean.checkMessage);
}else{
$.ligerDialog.error(data.messageBean.checkMessage);
}
},"json");
}catch (e) {
$.ligerDialog.error(e.message);
}
} | zyjk | trunk/WebRoot/UI/system/resource/action/actionlist.js | JavaScript | oos | 7,293 |
/*********************************************************************
*<p>处理内容:databasc list js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<br>
***********************************************************************/
var tree =null;
var menu=null;
$(function (){
try {
//布局
$("#layout").ligerLayout({leftWidth: 265 ,topHeight:25});
//menuBar
$("#menubar").ligerToolBar({ items: [
{ text: '初始化结构', click: f_initData },
{ text: '执行sql', click: f_runSQL },
{ line: true },
{ text: 'toSQLSERVER', click: f_tosqlserver },
{ text: 'toMySQL', click: f_tomysql }
]
});
//树形tree
$("#tree").ligerTree({
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=PTableTree',
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onSelect: function (node)
{
var nodeid=node.data.id;
f_grid(nodeid);
},
onContextmenu: function (node, e)
{
actionNodeID = node.data.text;
menu.show({ top: e.pageY, left: e.pageX });
return false;
}
});
tree = $("#tree").ligerGetTreeManager();
/*GRID*/
$.post(webpath+"/st/system/action/table/table_getColumn.action",{key:"DisctionaryGrid"},function(data){
grid = $("#mainGrid").ligerGrid({ checkbox: true,
columns:data,pageSizeOptions:[15,20,30,40,50],
rownumbers:true,parms:"",
dataAction: 'server',url: webpath+"/st/system/action/grid/Grid_findList.action?strSysno=DisctionaryGrid",
width: '100%',height:'100%',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :false,pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize',
pageSize:10,
onError:function(){
$.ligerDialog.error(MSG_LOAD_FALL);
}
},"json");
});
tree = $("#tree").ligerGetTreeManager();
//右键菜单
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[
{ text: '更新结构', click: f_update, icon: 'add' },
{ text: 'CreatBean', click: f_init, icon: 'modify' },
]});
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*初始化数据结构*/
function f_initData(){
$.post(webpath+"/st/system/action/databasc/DataBasc_initDataBasc.action",function(data){
if(data.checkFlag==MSG_SUCCESS){
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"PTableTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json")
}
/*向sqlserver移植数据*/
function f_tosqlserver(){
$.post(webpath+"/st/system/action/databasc/DataTransp_initDataBasc.action",function(data){
if(data.checkFlag==MSG_SUCCESS){
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"PTableTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json")
}
/*向mysql移植数据*/
function f_tomysql(){
$.post(webpath+"/st/system/action/databasc/DataTransp_initMysqlDataBasc.action",function(data){
if(data.checkFlag==MSG_SUCCESS){
tree.clear();
tree.loadData("1", webpath+'/st/system/action/tree/tree_getTree.action', {strTreeName:"PTableTree"});
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json")
}
/*执行sql*/
function f_runSQL(){
}
/*更改数据结构*/
function f_update(){
var node = tree.getSelected();
var text = node.data.text;
if(node==null&&selected==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.post(webpath+"/st/system/action/databasc/DataBasc_initDataBasc.action?strTableName="+text,function(data){
if(data.checkFlag==MSG_SUCCESS){
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json")
}
}
/*初始化对象*/
function f_init(){
var node = tree.getSelected();
var text = node.data.text;
if(node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
var path = $("#beanpath").val();
if(path==null)
{
$.ligerDialog.warn("路径不能为空");
}
$.post(webpath+"/st/system/action/databasc/DataBasc_creatBean.action?strTableName="+text+"&strBeanPath="+path,function(data){
if(data.checkFlag==MSG_SUCCESS){
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json")
}
}
/*查看*/
function f_grid(nodeid){
try{
var strWhere = " ";
if(nodeid.length>0){
strWhere = " and tableid = '"+nodeid+"'";
}
//初始化查询起始页
grid.set("newPage",1);
//初始化查询条件
grid.set("parms",{"strWhere":strWhere});
grid.loadData(true);
}catch (e) {
$.ligerDialog.error(e.message);
}
}
| zyjk | trunk/WebRoot/UI/system/resource/databasc/databasclist.js | JavaScript | oos | 6,240 |
<!--
/*********************************************************************
*<p>处理内容:DATABASC 列表</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<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"%>
<head>
<script src="<%=webpath%>UI/system/resource/databasc/databasclist.js" type="text/javascript"></script>
</head>
<body class="bodystyle">
<div style="margin-top: -5px;margin-left: 10px">
bean路径:<input type="text" id="beanpath" value="UI.dao"/>
</div>
<div id="layout">
<!-- 操作区域 -->
<div position="top">
<div id="menubar"></div>
</div>
<!-- Tree区域 -->
<div position="left" title="表名称">
<ul id="tree" style="margin-top:3px;overflow:scroll;height:480px;width:280px">
</div>
<!-- 中间区域 -->
<div class="lay-center-out" position="center" style="border: 0" >
<div>
<textarea rows="13" cols="" style="width: 100%"></textarea>
</div>
<div id="mainGrid"></div>
</div>
</div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/resource/databasc/databasclist.jsp | Java Server Pages | oos | 1,421 |
<%@ page language="java" import="java.util.*" 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>
<script type="text/javascript">
var selecttree = null;
var manger = null;
$(function ()
{
//select tree2
$("#txt2").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:false,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=MenuTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid'
}
});
selecttree=$("#txt1").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 200,
textField:'text',
treeLeafOnly:false,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=MenuTree&strTreeID=1',
idFieldName :'id',
parentIDFieldName :'pid',
textFieldName:'text',
nodeWidth :100,
checkbox: false,
slide: false,
onBeforeExpand:onBeforeExpand
}
});
getGridOptions(false);
manger =selecttree.tree.ligerGetTreeManager();
});
function onBeforeExpand(node){
var nodeid=node.data.id;
var cb = manger.getParent(node);
var flag=1;
var length=node.data.children.length;
if(node.data.children && node.data.children.length == 0){
manger.loadData(node.target,webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=MenuTree&strTreeID='+nodeid);
}
}
function getGridOptions(checkbox)
{
var grid ;
$.post(webpath+"/st/system/action/table/table_getColumn.action",{key:"DemoTable"},function(data){
grid ={checkbox: checkbox,
columns:data,pageSizeOptions:[15,20,30,40,50],
rownumbers:true,parms:"",
dataAction: 'server',url: webpath+"/UI/action/demo/demo_findList.action",
width: '100%',height:'100%',root:'dataSet',record:'total',usePager:'true',method:'post',resizable :false,pageParmName:'pageBean.page',pagesizeParmName:'pageBean.pageSize',
pageSize:15,
onError:function(){
$.ligerDialog.error(MSG_LOAD_FALL);
},
};
$("#txt3").ligerComboBox({
width: 250,
slide: false,
selectBoxWidth: 500,
selectBoxHeight: 240, valueField: 'customerid', textField: 'customerid'
, grid: grid
});
},"json");
return grid;
}
</script>
</head>
<body style="margin: 100px">
<div id="layout">
<div position="left">
select tree 全部展示<br/>
<input type="text" id="txt2"/>
<br />
</div>
<div >
select tree 点击展示<br/>
<input type="text" id="txt1"/>
<br />
</div>
<div position="center">
<br/>
select grid<br/>
<input type="text" id="txt3"/>
<br />
</div>
</div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/tree/combotree.jsp | Java Server Pages | oos | 3,695 |
/*********************************************************************
*<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 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 = Grid("MenuGrid","菜单管理",toolbar);
/*TREE*/
$("#tree").ligerTree({
data:[{id:'1',pid:'0',children:[],text:'菜单管理',isexpand:'false'}],
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onExpand:onExpand,
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();
/*右键菜单*/
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[
{ text: '增加', click: f_add, icon: 'add' },
{ text: '修改', click: f_update, icon: 'modify' },
{ line: true },
{ text: '删除', click: f_remove, icon: 'delete' }
]
});
}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;
if(node.data.children && node.data.children.length == 0){
var strWhere = " ";
//strWhere = " where menuid='"+nodeid+"'";
tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=MenuTree");
}
}
/*查看*/
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.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].menuid+"'";
}
}else{
strId = strId+",'"+node.data.id+"'";
}
$.post(webpath+"/st/system/action/menu/menu_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(node==null&&selected==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else if(selected !=null){
strId=selected.menuid;
}else{
strId=node.data.id;
}
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=add&ptMenuBean.parentmenuid="+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 manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
var strId;
if(node==null&&selected==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else if(selected !=null){
strId=selected.menuid;
}else{
strId=node.data.id;
}
if (strId==null||strId.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_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);
}
}
/*查看*/
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 = $.ligerDialog.open({url: webpath+"/st/system/action/menu/menu_findByKey.action?messageBean.method=look&strSysno="+selected.menuid, width: openWidth,height:openHeight, title: '菜单管理',
showMax: true, showToggle: true, showMin: false, isResize: true, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*增加结点*/
function node_add(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"MenuTree",strTreeID:strId,isFlag:"false"},function(data){
if (node){
var nodedata = data
var i=data.length-1;
// alert("length:"+data.length);
// for(var j=0;j<data.length;j++){
// alert(j+":"+data[j].text);
// }
nodes.push(data[i]);
tree.append(node.target, nodes);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*修改结点*/
function node_modi(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"MenuTree",strTreeID:strId,isFlag:"true"},function(data){
if (node){
var nodedata = data;
tree.update(node.target,data[0]);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
} | zyjk | trunk/WebRoot/UI/system/menu/menulist.js | JavaScript | oos | 10,432 |
/*********************************************************************
*<p>处理内容:menu form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
var parentmenuid=$("#parentmenuid").val();
var menuid=$("#menuid").val();
var method=$("#method").val();
/*判断增加修改状态*/
if(method=="add"){
parent.node_add(parentmenuid);
}else if(method=="update"){
parent.node_modi(menuid);
}
parent.f_search();
$.ligerDialog.success(data.checkMessage);
}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+"/st/system/action/menu/menu_insert.action";
}else if(method=="look"){
$("#subButton").hide();
}else if(method=="update"){
actionurl=webpath+"/st/system/action/menu/menu_update.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/menu/menuinfo.js | JavaScript | oos | 2,416 |
<!--
/*********************************************************************
*<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"%>
<head>
<script src="<%=webpath%>/UI/system/menu/menulist.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 class="lay-center-out" position="center" id="mainGrid"></div>
</div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/menu/menulist.jsp | Java Server Pages | oos | 1,026 |
<!--
/*********************************************************************
*<p>处理内容:menu 表单域</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.2---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/menu/menuinfo.js" type="text/javascript"></script>
<title>表信息</title>
<%
PtmenuBean ptMenuBean = (PtmenuBean)request.getAttribute("ptMenuBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</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="menuid" name="ptMenuBean.menuid" value="<%=ptMenuBean.getMenuid() %>"/>
<!-- 操作method -->
<input type="hidden" id="method" name="message.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() %>"/>
<!-- 隐藏域 父节点id -->
<input type="hidden" id="parentmenuid" name="ptMenuBean.parentmenuid" value="<%=ptMenuBean.getParentmenuid() %>"/>
</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="ptMenuBean.menulabel" type="text" id="menulabel" value="<%=ptMenuBean.getMenulabel() %>" 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="ptMenuBean.menudesc" type="text" id="menudesc" value="<%=ptMenuBean.getMenudesc() %>" 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="ptMenuBean.levelidx" type="text" id="levelidx" value="<%=ptMenuBean.getLevelidx() %>"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="ptMenuBean.menuaction" type="text" id="menuaction" value="<%=ptMenuBean.getMenuaction() %>" ltype="text" validate="{required:false}" />
</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/system/menu/menuinfo.jsp | Java Server Pages | oos | 3,877 |
/*********************************************************************
*<p>处理内容:ptdept form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.20---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
var parentdeptid=$("#parentdeptid").val();
var deptno=$("#deptno").val();
var deptnm=$("#deptnm").val();
/*判断增加修改状态*/
if(method=="add"){
parent.node_add(deptnm);
}else if(method=="update"){
parent.node_modi(deptnm);
}
parent.f_search();
$.ligerDialog.success(data.checkMessage);
}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+"/st/system/action/ptdept/ptdept_insert.action";
}else if(method=="look"){
$("#subButton").hide();
}else if(method=="update"){
actionurl=webpath+"/st/system/action/ptdept/ptdept_update.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
$("#distcodename").ligerComboBox({
width: 180,
selectBoxWidth: 180,
selectBoxHeight: 250,
textField:'text',
treeLeafOnly:false,
tree: {
url: webpath+'/st/system/action/tree/tree_getTree.action?strTreeName=DistCodeTree', checkbox: false,
textFieldName:'text',
idFieldName:'id',
parentIDFieldName:'pid',
onClick: function (node)
{
$("#distcode").val(node.data.id);
$("#distcodename").val(node.data.text);
}
}
});
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/ptdept/ptdeptinfo.js | JavaScript | oos | 3,287 |
<!--
/*********************************************************************
*<p>处理内容:ptdeptmenu列表</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.20---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="st.platform.utils.Config"/>
<!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/system/ptdept/ptdeptlist.js" type="text/javascript"></script>
</head>
<body class="treemenubody" style="padding:10px">
<input type="hidden" name="distcode" id="distcode" value="<%=Config.getProperty("distcode") %>"/>
<div id="layout">
<div position="left" title="菜单"> <ul id="tree" style="margin-top:3px;overflow:scroll;height:530px;width:200px"> </div>
<div class="lay-center-out" position="center" id="mainGrid"></div>
</div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/ptdept/ptdeptlist.jsp | Java Server Pages | oos | 1,229 |
<!--
/*********************************************************************
*<p>处理内容:ptdept 表单域</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.20---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" pageEncoding="UTF-8"%>
<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/system/ptdept/ptdeptinfo.js" type="text/javascript"></script>
<title>信息</title>
<%
PtdeptBean ptDeptBean = (PtdeptBean)request.getAttribute("ptDeptBean");
MessageBean messageBean = (MessageBean)request.getAttribute("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">
<div>
<!-- 隐藏域 主键id -->
<input type="hidden" id="deptno" name="ptDeptBean.deptno" value="<%=ptDeptBean.getDeptno()%>"/>
<!-- 操作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" >
<tr>
<td class="l-table-edit-td-right">机构名称:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptDeptBean.deptnm" type="text" id="deptnm" value="<%=ptDeptBean.getDeptnm()%>" 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="ptDeptBean.deptlvl" type="text" id="deptlvl" value="<%=ptDeptBean.getDeptlvl()%>" 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="distcodename" type="text" id="distcodename" value="<%=DistcodeUtil.getDistName(ptDeptBean.getDistcode())%>" ltype="text" validate="{required:true}" />
<input name="ptDeptBean.distcode" type="hidden" id="distcode" value="<%=ptDeptBean.getDistcode()%>" 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="ptDeptBean.createdt" type="text" id="createdt" value="<%=ptDeptBean.getCreatedt()%>" 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="ptDeptBean.normalpeos" type="text" id="normalpeos" value="<%=ptDeptBean.getNormalpeos()%>" 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="ptDeptBean.realpeos" type="text" id="realpeos" value="<%=ptDeptBean.getRealpeos()%>" 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="ptDeptBean.managernm" type="text" id="managernm" value="<%=ptDeptBean.getManagernm()%>"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="ptDeptBean.deptaddr" type="text" id="deptaddr" value="<%=ptDeptBean.getDeptaddr()%>" 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="ptDeptBean.descname" type="text" id="descname" value="<%=ptDeptBean.getDescname()%>" 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="ptDeptBean.bmjc" type="text" id="bmjc" value="<%=ptDeptBean.getBmjc()%>" 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="ptDeptBean.bmzt" type="text" id="bmzt" value="<%=ptDeptBean.getBmzt()%>"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="ptDeptBean.parentdeptid" type="text" id="parentdeptid" value="<%=ptDeptBean.getParentdeptid()%>" 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">
<textarea cols="110" rows="3" class="l-textarea" id="deptinfo" name="ptDeptBean.deptinfo" style="width:430px" validate="{required:false}" ><%=ptDeptBean.getDeptinfo()%></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>
<div style="display:none"></div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/system/ptdept/ptdeptinfo.jsp | Java Server Pages | oos | 7,648 |
/*********************************************************************
*<p>处理内容:ptdept列表js</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.20---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var grid = null;
var tree = null;
var myWindow = null;
var menu=null;
var openWidth="630";
var openHeight="500";
/*初始化*/
$(function (){
try {
/*布局*/
$("#layout").ligerLayout({leftWidth: 200});
/*查询按钮*/
$("#searchButton").click(function(){
f_search();
});
/*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_res, icon:'msn' }
];
var distcode=$("#distcode").val();
if(null!=distcode&&distcode!=""){
grid = sub_Grid("PtdeptGrid","部门管理",toolbar," and deptno like '%"+distcode+"%'");
}else {
grid = Grid("PtdeptGrid","部门管理",toolbar);
}
/*TREE*/
$("#tree").ligerTree({
data:[{id:'1',pid:'0',children:[],text:'部门管理',isexpand:'false'}],
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onExpand:onExpand,
onSelect: function (node)
{
var nodeid=node.data.id;
t_enter(nodeid);
}
});
tree = $("#tree").ligerGetTreeManager();
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*双击事件*/
function onDblClickRow(data, rowindex, rowobj){
try {
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/ptdept/ptdept_findByKey.action?messageBean.method=look&strSysno="+data.deptno, 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;
if(node.data.children && node.data.children.length == 0){
tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PtdeptTree");
}
}
/*查看*/
function t_enter(nodeid){
try{
var strWhere = " ";
if(nodeid.length>0){
strWhere = " and PARENTDEPTID = '"+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.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) {
$.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].deptno+"'";
}
}
$.post(webpath+"/st/system/action/ptdept/ptdept_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 strId;
if(node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=node.data.id;
}
alert("parentdeptid:"+strId);
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/ptdept/ptdept_findByKey.action?messageBean.method=add&ptDeptBean.parentdeptid="+strId,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{
strId=selected.deptno;
}
if (strId==null||strId.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/ptdept/ptdept_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);
}
}
/*查看*/
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 = $.ligerDialog.open({url: webpath+"/st/system/action/ptdept/ptdept_findByKey.action?messageBean.method=look&strSysno="+selected.deptno, width: openWidth,height:openHeight, title: '部门管理',
showMax: true, showToggle: true, showMin: false, isResize: true, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*增加结点*/
function node_add(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"PtdeptTree",strTreeID:strId},function(data){
if (node){
nodes.push(data[0]);
tree.append(node.target, nodes);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*修改结点*/
function node_modi(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"PtdeptTree",strTreeID:strId,isFlag:"leafpoint"},function(data){
if (node){
tree.update(node.target,data[0]);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*部门权限*/
function f_res(){
try {
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
if (selected==null||selected.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/role/deptres_findByKey.action?messageBean.method=add&strDeptid="+selected.deptno, width: 300,height:600, title: '角色授权',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
} | zyjk | trunk/WebRoot/UI/system/ptdept/ptdeptlist.js | JavaScript | oos | 10,172 |
<!--
/*********************************************************************
*<p>处理内容:roletree列表</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/ptdept/roletree.js" type="text/javascript"></script>
<title>信息</title>
<%
PtdeptresBean ptdeptresBean = (PtdeptresBean)request.getAttribute("ptdeptresBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</head>
<body class="treemenubody" style="padding:10px">
<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="deptid" name="ptdeptresBean.deptid" value="<%=ptdeptresBean.getDeptid() %>"/>
<!-- 操作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">
<tr>
<td style="height:300px">
<ul id="tree"></ul>
</td>
<td class="td_message"></td>
</tr>
</table>
<table align="center">
<tr>
<td>
<input type="button" 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/system/ptdept/roletree.jsp | Java Server Pages | oos | 2,255 |
/*********************************************************************
*<p>处理内容:部门资源列表js</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.22---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var tree = null;
var actionurl;
$(function (){
try{
var method = $("#method").val();
if(method=="add"){
actionurl=webpath+"/st/system/action/role/deptres_insert.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag==MSG_SUCCESS)
{
}else{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
var strOperId=$("#deptid").val();
if(strOperId.indexOf(",")>0){
var limit=strOperId.indexOf(",");
strOperId=strOperId.substring(0,limit);
}
/*TREE*/
$("#tree").ligerTree({
//data:[{id:'1',pid:'0',children:[],text:'资源列表',isexpand:'true'}],
url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PtDeptResTree&strTreeID="+strOperId,
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: true,
slide: false,
// onExpand:onExpand,
onSelect: function (node)
{
var nodeid=node.data.id;
}
});
tree = $("#tree").ligerGetTreeManager();
$("#subButton").click(function () {
var notes = tree.getChecked();
var strroletext = "";
for (var i = 0; i < notes.length; i++)
{
strroletext += notes[i].data.id + ",";
}
var strDeptid=$("#deptid").val();
/*提交增加方法*/
$.post(actionurl,{strSysno:strroletext,strDeptid:strDeptid},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
var strDeptid=$("#deptid").val();
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
});
}catch (e) {
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/ptdept/roletree.js | JavaScript | oos | 3,366 |
/*********************************************************************
*<p>处理内容:role form js</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
$("#subButton").attr("disabled", true);
$.post(actionurl,$("form:first").serialize(),function(data){
$("#subButton").removeAttr('disabled');
if(data.checkFlag==MSG_SUCCESS)
{
var roleid=$("#roleid").val();
var parroleid=$("#parroleid").val();
/*判断增加修改状态*/
if(method=="add"){
parent.node_add(parroleid);
}else if(method=="update"){
parent.node_modi(roleid);
}
$.ligerDialog.success(data.checkMessage);
}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+"/st/system/action/role/role_insert.action";
}else if(method=="look"){
$("#subButton").hide();
}else if(method=="update"){
actionurl=webpath+"/st/system/action/role/role_update.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag!=MSG_SUCCESS)
{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/system/role/roleinfo.js | JavaScript | oos | 2,335 |
/*********************************************************************
*<p>处理内容:role列表js</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var grid = null;
var tree = null;
var myWindow = null;
var menu=null;
var openWidth="630";
var openHeight="500";
/*初始化*/
$(function (){
try {
/*布局*/
$("#layout").ligerLayout({leftWidth: 200});
/*查询按钮*/
$("#searchButton").click(function(){
f_search();
});
/*GRID*/
var toolbar = [
{ text: '新建', click:grid_add,icon: 'add' },
{ line: true },
{ text: '删除', click:grid_remove,icon:'delete' },
{ line: true }
];
grid = Grid("RoleGrid","角色授权",toolbar);
/*TREE*/
$("#tree").ligerTree({
data:[{id:'1',pid:'0',children:[],text:'角色授权',isexpand:'false'}],
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: false,
slide: false,
onExpand:onExpand,
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();
/*右键菜单*/
menu = $.ligerMenu({ top: 100, left: 100, width: 120, items:
[
{ text: '增加', click: f_add, icon: 'add' },
{ text: '修改', click: f_update, icon: 'modify' },
{ line: true },
{ text: '删除', click: f_remove, icon: 'delete' }
]
});
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*双击事件*/
function onDblClickRow(data, rowindex, rowobj){
}
/*展开事件*/
function onExpand(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=RoleTree");
}
}
/*查看*/
function t_enter(nodeid){
try{
var strWhere = " ";
if(nodeid.length>0){
strWhere = " and a.roleid = '"+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.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 ="''";
if (node==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
strId = strId+",'"+node.data.id+"'";
$.post(webpath+"/st/system/action/role/role_delete.action",{strSysno:strId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
$.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 strId;
if(node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=node.data.id;
}
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/role/role_findByKey.action?messageBean.method=add&ptRoleBean.parroleid="+strId, width: 630,height:300, title: '角色授权',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*左侧树修改方法*/
function f_update(){
try {
var node = tree.getSelected();
var strId;
if(node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=node.data.id;
}
if (strId==null||strId.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({url: webpath+"/st/system/action/role/role_findByKey.action?messageBean.method=update&strSysno="+strId, width: 630,height:300, title: '角色授权',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*增加结点*/
function node_add(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"RoleTree",strTreeID:strId},function(data){
if (node){
var nodedata = data
var i=data.length-1;
nodes.push(data[i]);
tree.append(node.target, nodes);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*修改结点*/
function node_modi(strId){
try{
var node = tree.getSelected();
var nodes = [];
$.post(webpath+"/st/system/action/tree/tree_getTree.action",{strTreeName:"RoleTree",strTreeID:strId,isFlag:"leafpoint"},function(data){
if (node){
var nodedata = data;
tree.update(node.target,data[0]);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*右侧grid增加方法*/
function grid_add(){
try {
var node = tree.getSelected();
var strId;
if(node==null){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
strId=node.data.id;
}
if(strId==undefined){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = $.ligerDialog.open({ url: webpath+"/st/system/action/roleres/roleres_findByKey.action?messageBean.method=add&ptRoleResBean.roleid="+strId, width: 300,height:600, title: '角色授权',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
/*右侧grid删除方法*/
function grid_remove(){
try {
var node = tree.getSelected();
var strId ="''";
var strRoleId=node.data.id;
var manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRows();
for(var i=0;i<selected.length;i++){
strId = strId+",'"+selected[i].resid+"'";
}
if (node==null||strRoleId==null) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
if(strId==undefined){
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
$.ligerDialog.confirm(MSG_DELETE_CONFRIM, function (state)
{
if(state)
{
strId = strId+",'"+node.data.id+"'";
$.post(webpath+"/st/system/action/roleres/roleres_delete.action",{strSysno:strId,strRoleno:strRoleId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
t_enter(strRoleId);
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
}
});
}
}
}catch (e) {
$.ligerDialog.error(e.message);
}
} | zyjk | trunk/WebRoot/UI/system/role/rolelist.js | JavaScript | oos | 10,891 |
<!--
/*********************************************************************
*<p>处理内容:role列表</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<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"%>
<head>
<script src="<%=webpath%>/UI/system/role/rolelist.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 class="lay-center-out" position="center" id="mainGrid"></div>
</div>
</body>
</html> | zyjk | trunk/WebRoot/UI/system/role/rolelist.jsp | Java Server Pages | oos | 1,023 |
<!--
/*********************************************************************
*<p>处理内容:roletree列表</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/role/roletree.js" type="text/javascript"></script>
<title>信息</title>
<%
PtroleresBean ptRoleResBean = (PtroleresBean)request.getAttribute("ptRoleResBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</head>
<body class="treemenubody" style="padding:10px">
<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="roleid" name="ptRoleResBean.roleid" value="<%=ptRoleResBean.getRoleid() %>"/>
<!-- 操作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">
<tr>
<td style="height:300px">
<ul id="tree"></ul>
</td>
<td class="td_message"></td>
</tr>
</table>
<table align="center">
<tr>
<td>
<input type="button" 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/system/role/roletree.jsp | Java Server Pages | oos | 2,256 |
/*********************************************************************
*<p>处理内容:opertree列表js</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.22---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
var tree = null;
var actionurl;
$(function (){
try{
var method = $("#method").val();
if(method=="add"){
actionurl=webpath+"/st/system/action/roleres/roleres_insert.action";
}
/*返回信息状态*/
var strFlag = $("#flag").val();
var strMessage = $("#message").val();
if(strFlag==MSG_SUCCESS)
{
}else{
$.ligerDialog.error(strMessage);
}
/*关闭按钮*/
$("#colButton").click(function () {
parent.myWindow.close();
});
var strOperId=$("#roleid").val();
if(strOperId.indexOf(",")>0){
var limit=strOperId.indexOf(",");
strOperId=strOperId.substring(0,limit);
}
/*TREE*/
$("#tree").ligerTree({
//data:[{id:'1',pid:'0',children:[],text:'资源列表',isexpand:'true'}],
url:webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PtResTree&strTreeID="+strOperId,
idFieldName :'id',
parentIDFieldName :'pid',
nodeWidth : 200,
checkbox: true,
slide: false,
// onExpand:onExpand,
onSelect: function (node)
{
var nodeid=node.data.id;
}
});
tree = $("#tree").ligerGetTreeManager();
$("#subButton").click(function () {
var notes = tree.getChecked();
var strroletext = "";
for (var i = 0; i < notes.length; i++)
{
strroletext += notes[i].data.id + ",";
}
var strRoleId=$("#roleid").val();
/*提交增加方法*/
$.post(actionurl,{strSysno:strroletext,strRoleno:strRoleId},function(data){
if(data.checkFlag==MSG_SUCCESS)
{
var strRoleId=$("#roleid").val();
parent.t_enter(strRoleId);
$.ligerDialog.success(data.checkMessage);
}else{
$.ligerDialog.error(data.checkMessage);
}
},"json").error(function() {
$.ligerDialog.error(MSG_LOAD_FALL)});
});
}catch (e) {
$.ligerDialog.error(e.message);
}
});
// function onExpand(node){
// var nodeid=node.data.id;
// var strOperId=$("#roleid").val();
// if(strOperId.indexOf(",")>0){
// var limit=strOperId.indexOf(",");
// strOperId=strOperId.substring(0,limit);
// }
// if(node.data.children && node.data.children.length == 0){
// tree.loadData(node.target,webpath+"/st/system/action/tree/tree_getTree.action?strTreeName=PtResTree&strTreeID="+strOperId);
// }
// } | zyjk | trunk/WebRoot/UI/system/role/roletree.js | JavaScript | oos | 4,024 |
<!--
/*********************************************************************
*<p>处理内容:role表单域</p>
*<p>Copyright: Copyright (c) 2013</p>
* @author 孙雁斌 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.21---- 孙雁斌 --------- 新规作成<br>
***********************************************************************/
-->
<%@ page language="java" import="st.system.dao.*,st.portal.action.*" 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>
<script src="<%=webpath%>/UI/system/role/roleinfo.js" type="text/javascript"></script>
<title>信息</title>
<%
PtroleBean ptRoleBean = (PtroleBean)request.getAttribute("ptRoleBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
</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="roleid" name="ptRoleBean.roleid" value="<%=ptRoleBean.getRoleid() %>"/>
<!-- 隐藏域 父键id -->
<input type="hidden" id="parroleid" name="ptRoleBean.parroleid" value="<%=ptRoleBean.getParroleid() %>"/>
<!-- 操作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" >
<tr>
<td class="l-table-edit-td-right">角色描述:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="ptRoleBean.roledesc" type="text" id="roledesc" value="<%=ptRoleBean.getRoledesc() %>" 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="ptRoleBean.status" type="text" id="status" value="<%=ptRoleBean.getStatus() %>" 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/system/role/roleinfo.jsp | Java Server Pages | oos | 3,062 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-07-05 新規作成 ;
****************************************************/
-->
<%@ 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/qynews//newslist.js"></script>
</head>
<body class="bodystyle">
<!-- 查询 -->
<div>
<table class="table_search_layout_1" cellpadding="0" cellspacing="0" >
<tr>
<td class="l-table-edit-td-left" >标题:</td>
<td class="l-table-edit-td-left" >
<input name="title" type="text" id="title" ltype="text" class="l-research-area-input"/>
</td>
<td class="l-table-edit-td-left" >类型:</td>
<td class="l-table-edit-td-left" >
<%
DBSelect dbsel = new DBSelect("messagetype","XWLX","");
dbsel.addAttr("style", "width: 120px;");
dbsel.addAttr("id", "messagetype");
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-left" >时间:</td>
<td class="l-table-edit-td-left" >
<input name="isscuedate" type="text" id="isscuedate" ltype="date" />
</td>
<td align="left">
<input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" />
</td>
</tr>
</table>
</div>
<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/qynews/newslist.jsp | Java Server Pages | oos | 2,374 |
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2013</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-07-05 新規作成 ;
****************************************************/
var grid = null;
var tree = null;
var myWindow = null;
var menu=null;
var openWidth="900";
var openHeight="550";
//初始;
$(function (){
try{
/*布局*/
$("#layout").ligerLayout({leftWidth: 200 });
/*grid*/
var toolbar;
grid = sub_Grid('qynewsGrid','新闻列表',""," and MESSAGETYPE like '%" + getUrlParam("strSysno") + "%' ");
$("#isscuedate").ligerDateEditor({label: '', labelWidth: 100, labelAlign: 'center' });
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*grid双击事件*/
function onDblClickRow (data, rowindex, rowobj){
try {
myWindow = $.ligerDialog.open({url:webpath+"/UI/action/qynews/NewsAction_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 title = $("#title").val();
if(title.length>0) {
strWhere = " and title like '%"+title+"%' ";
}
//时间
var isscuedate = $("#isscuedate").val();
if(isscuedate.length>0) {
strWhere = " and isscuedate like '%"+isscuedate+"%' ";
}
//类型
var messagetype = $("#messagetype").val();
if(messagetype.length>0) {
strWhere = " and messagetype like '%"+messagetype+"%' ";
}
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/news/NewsAction_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/news/NewsAction_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/news/NewsAction_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/news/NewsAction_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/qynews/newslist.js | JavaScript | oos | 7,256 |
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="UI.dao.zyjk.NewsBean"/>
<jsp:directive.page import="st.portal.action.MessageBean"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
NewsBean newsBean=(NewsBean)request.getAttribute("newsBean");
if(newsBean==null){
newsBean=new NewsBean();
}
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
<%@ include file="/global.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>新闻列表</title>
<link rel=stylesheet type=text/css href="<%=webpath %>/css/corp.css"/>
<script type="text/javascript" src="<%=path%>/FCKeditor/fckeditor.js"></script>
<script language="javascript" src="<%=path%>/UI/news/newsinfo.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.form.js"></script>
</head>
<body style="background:#fff;" style="text-align: center">
<div>
<!-- 操作method -->
<!-- 隐藏域 主键id -->
<input type="hidden" id="sysno" name="newsBean.sysno" value="<%=newsBean.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() %>"/>
</div>
<center>
<div class="detail" style="text-align:center;">
<div class="detail_content">
<div style="TEXT-ALIGN: center" class="detail_title"><%=newsBean.getTitle() %></div>
</br>
<div class="detail_xx"> 发表日期:<font color="#919191"><%=newsBean.getIsscuedate() %> </font> 发布人:<%=newsBean.getIsscueperson() %>
来源:<%=newsBean.getMessageorigin()%></div>
</div>
</div>
<div style="border-bottom: 1px solid #AECAF0;width:85%;" ></div>
</center>
<div style="TEXT-ALIGN: left;margin:20px">
<%=newsBean.getContent() %>
</div>
</br>
<%--<div class="cz" style="margin-left: 400px">
<li style="text-align:left;"><a href="javascript:history.go(-1)">返回</a></li>
</div>
--%></body>
</html>
| zyjk | trunk/WebRoot/UI/qynews/newslookinfo.jsp | Java Server Pages | oos | 2,694 |
<!--
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2010</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-07-05 新規作成 ;
****************************************************/
-->
<%@ 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/news//newslist.js"></script>
</head>
<body class="bodystyle">
<!-- 查询 -->
<div>
<table class="table_search_layout_1" cellpadding="0" cellspacing="0" >
<tr>
<td class="l-table-edit-td-left" >标题:</td>
<td class="l-table-edit-td-left" >
<input name="title" type="text" id="title" ltype="text" class="l-research-area-input"/>
</td>
<td class="l-table-edit-td-left" >类型:</td>
<td class="l-table-edit-td-left" >
<%
DBSelect dbsel = new DBSelect("messagetype","XWLX","");
dbsel.addAttr("class","l-research-area-input");
//dbsel.addAttr("","");
dbsel.addAttr("style", "width: 120px;");
dbsel.addAttr("id", "messagetype");
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-left" >时间:</td>
<td class="l-table-edit-td-left" >
<input name="isscuedate" type="text" id="isscuedate" ltype="date" />
</td>
<td align="left">
<input id="searchButton" class="l-button l-button-submit" type="button" value=" 查询 " onclick="f_search()" />
</td>
</tr>
</table>
</div>
<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/news/newslist.jsp | Java Server Pages | oos | 2,431 |
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2013</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-07-05 新規作成 ;
****************************************************/
var grid = null;
var tree = null;
var myWindow = null;
var menu=null;
var openWidth="900";
var openHeight="550";
//初始;
$(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('NewsGrid','新闻列表',toolbar);
$("#isscuedate").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/news/NewsAction_findByKey.action?messageBean.method=look&strSysno="+data.sysno, width: openWidth,height:openHeight, title:"新闻信息",
showMax: true, showToggle: true, 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 title = $("#title").val();
if(title.length>0) {
strWhere += " and title like '%"+title+"%' ";
}
//时间
var isscuedate = $("#isscuedate").val();
if(isscuedate.length>0) {
strWhere += " and isscuedate like '%"+isscuedate+"%' ";
}
//类型
var messagetype = $("#messagetype").val();
if(messagetype.length>0) {
strWhere += " and messagetype like '%"+messagetype+"%' ";
}
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/news/NewsAction_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/news/NewsAction_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 manager = $("#mainGrid").ligerGetGridManager();
var selected = manager.getSelectedRow();
var strId=selected.sysno;
if (strId==null||strId.length == 0) {
$.ligerDialog.warn(MSG_NORECORD_SELECT);
}else{
myWindow = top.$.ligerDialog.open({url: webpath+"/UI/action/news/NewsAction_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/action/news/NewsAction_findByKey.action?messageBean.method=look&strSysno="+selected.sysno, width: openWidth,height:openHeight, title: '新闻信息',
showMax: true, showToggle: true, showMin: false, isResize: false, slide: false });
}
}catch (e) {
$.ligerDialog.error(e.message);
}
}
| zyjk | trunk/WebRoot/UI/news/newslist.js | JavaScript | oos | 7,179 |
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="UI.dao.zyjk.NewsBean"/>
<jsp:directive.page import="st.portal.action.MessageBean"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
NewsBean newsBean=(NewsBean)request.getAttribute("newsBean");
if(newsBean==null){
newsBean=new NewsBean();
}
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
<%@ include file="/global.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>新闻信息</title>
<script type="text/javascript" src="<%=path%>/FCKeditor/fckeditor.js"></script>
<script language="javascript" src="<%=path%>/UI/news/newsinfo.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.form.js"></script>
</head>
<body>
<form name="form" method="post" id="form" enctype="multipart/form-data">
<div>
<!-- 操作method -->
<!-- 隐藏域 主键id -->
<input type="hidden" id="id" name="newsBean.sysno" value="<%=newsBean.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="bak1" name="newsBean.bak1" value="<%=newsBean.getBak1() %>"/>
<!-- 隐藏域 发布人-->
<input type="hidden" id="isscueperson" name="newsBean.isscueperson" value="<%=newsBean.getIsscueperson() %>"/>
<!-- 隐藏域 来源-->
<input type="hidden" id="messageorigin" name="newsBean.messageorigin" value="<%=newsBean.getMessageorigin() %>"/>
</div>
<table cellpadding="0" cellspacing="0" align="center" border="1px" bordercolor="#B9D3EE" style="width:80%;"><%--
<tr>
<td colspan="3" align="center" style="font-size: 28">
新闻信息
</td>
</tr>
--%><tr>
<td class="l-table-edit-td-right" width="50px" style="width:50px;">新闻名称</td>
<td class="l-table-edit-td-left" style="width:160px">
<input type="text" id="bzzmc" ltype="text" style="width:160px" name="newsBean.title" value="<%=newsBean.getTitle() %>"/>
</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("newsBean.messagetype","XWLX",newsBean.getMessagetype());
dbsel.addAttr("style", "width: 202px;");
dbsel.addAttr("id", "Messagetype");
dbsel.addAttr("check", "notBlank");
dbsel.addAttr("required", "true");
dbsel.addAttr("showName", "新闻类型");
dbsel.addAttr("class","l-research-area-input");
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" style="width:160px">
<input type="text" id="isscuedate" ltype="date" name="newsBean.isscuedate" value="<%=newsBean.getIsscuedate() %>"/>
</td>
</tr>
<tr>
<td class="l-table-edit-td-right">内容</td>
<td class="l-table-edit-td-left" >
<input type="hidden" name="newsBean.content" id="content"/>
<textarea class="l-textarea" id="contentx" name="contentx" ltype="text" style="width:80%" ><%=newsBean.getContent()%></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('contentx') ;
oFCKeditor.BasePath = '<%=path%>/FCKeditor/' ;
oFCKeditor.ToolbarSet = 'Default';
oFCKeditor.Width='100%';
oFCKeditor.Height='400';
oFCKeditor.Value='';
oFCKeditor.ReplaceTextarea();
//oFCKeditor.Create() ;
</script>
</td>
</tr>
<tr>
<td class="l-table-edit-td-right">图片</td>
<td class="l-table-edit-td-left">
<input type="file" name="file" style="" id="file" title="照片">
<!-- <input type="button" onclick="upload()" value="上传" id="scbt">-->
</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/news/newsinfo.jsp | Java Server Pages | oos | 5,575 |
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2013</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-07-02 孙雁斌 新規作成 ;
****************************************************/
var actionurl;
/* 提交*/
function submitHandler() {
var oEditor = FCKeditorAPI.GetInstance("contentx");
$("#content").val(oEditor.GetXHTML(true));
uploadImage();
// $("#subButton").attr("disabled", true);
// uploadImage();
// $.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/news/NewsAction_insert.action";
}else if(method=="look"){
$("#subButton").hide();
$("#colButton").hide();
}else if(method=="update"){
actionurl=webpath+"/UI/action/news/NewsAction_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 uploadImagexx() {
$("#form").ajaxSubmit( {
// url : webpath+"/UI/action/photo/PhotoService_uploadImage.action",
target: '#UpIframe',
url : actionurl,
//type : "POST",
datatype : "script",
success : function(returnData) {
alert(returnData);
if(returnData.checkFlag==MSG_SUCCESS)
{
$.ligerDialog.success(returnData.checkMessage);
top.tab.reload(top.tab.getSelectedTabItemID());
}else{
$.ligerDialog.error(returnData.checkMessage);
}
} ,
error:function(returnData){
alert(returnData);
}
});
}
function uploadImage() {
document.getElementById("form").action=actionurl;
document.getElementById("form").submit();
top.tab.reload(top.tab.getSelectedTabItemID());
}
| zyjk | trunk/WebRoot/UI/news/newsinfo.js | JavaScript | oos | 3,727 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按规模续1)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th width="5%">规模 </th>
<th >合同告知职业病危害人数(人) </th>
<th >职业病危害告知率(%) </th>
<th >建立职业健康监护档案人数(人)</th>
<th >职业健康监护档案建立率(%) </th>
<th >职业病危害作业岗位数(个)</th>
<th >设置警示标识岗位数(个)</th>
<th >警示标识设置率(%) </th>
<th >主要负责人已职业卫生培训企业数(个) </th>
<th >主要负责人职业卫生培训率(%) </th>
<th >应职业卫生培训人数(人)</th>
<th >实际职业卫生培训人数(人)</th>
<th >职业卫生培训率(%)</th>
<th >配备专职职业卫生管理人员企业数(个 </th>
<th >专职职业卫生管理人员配备率(%) </th>
<th >配备兼职职业卫生管理人员企业数(个)</th>
<th >兼职职业卫生管理人员配备率(%) </th>
<th >专职职业卫生管理人数(人) </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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/qygmxaTj.jsp | Java Server Pages | oos | 15,147 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按注册类型续2)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="3">注册类型</th>
<th rowspan="3"><p>职业</p>
<p>病危</p>
<p>害因</p>
<p>素检</p>
<p>测企</p>
<p>业数</p>
<p>(个)</p></th>
<th rowspan="3"><p>检测</p>
<p>率(%)</p></th>
<th colspan="11">检测点数(个)</th>
<th colspan="11">达标点数(个) </th>
<th colspan="11">达标率(%) </th>
</tr>
<tr>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
</tr>
<tr>
<th><p>小计</p>
</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==33){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==34){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==35){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/zclxxbTj.jsp | Java Server Pages | oos | 18,726 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按地区续1)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th width="5%">地区 </th>
<th >合同告知职业病危害人数(人) </th>
<th >职业病危害告知率(%) </th>
<th >建立职业健康监护档案人数(人)</th>
<th >职业健康监护档案建立率(%) </th>
<th >职业病危害作业岗位数(个)</th>
<th >设置警示标识岗位数(个)</th>
<th >警示标识设置率(%) </th>
<th >主要负责人已职业卫生培训企业数(个) </th>
<th >主要负责人职业卫生培训率(%) </th>
<th >应职业卫生培训人数(人)</th>
<th >实际职业卫生培训人数(人)</th>
<th >职业卫生培训率(%)</th>
<th >配备专职职业卫生管理人员企业数(个 </th>
<th >专职职业卫生管理人员配备率(%) </th>
<th >配备兼职职业卫生管理人员企业数(个)</th>
<th >兼职职业卫生管理人员配备率(%) </th>
<th >专职职业卫生管理人数(人) </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="#" ><%=dt.getRowMetaCaption(i) %></a>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/distcodexaTj.jsp | Java Server Pages | oos | 15,181 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按行业续1)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th width="5%">行业 </th>
<th >合同告知职业病危害人数(人) </th>
<th >职业病危害告知率(%) </th>
<th >建立职业健康监护档案人数(人)</th>
<th >职业健康监护档案建立率(%) </th>
<th >职业病危害作业岗位数(个)</th>
<th >设置警示标识岗位数(个)</th>
<th >警示标识设置率(%) </th>
<th >主要负责人已职业卫生培训企业数(个) </th>
<th >主要负责人职业卫生培训率(%) </th>
<th >应职业卫生培训人数(人)</th>
<th >实际职业卫生培训人数(人)</th>
<th >职业卫生培训率(%)</th>
<th >配备专职职业卫生管理人员企业数(个 </th>
<th >专职职业卫生管理人员配备率(%) </th>
<th >配备兼职职业卫生管理人员企业数(个)</th>
<th >兼职职业卫生管理人员配备率(%) </th>
<th >专职职业卫生管理人数(人) </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="#" ><%=dt.getRowMetaCaption(i) %></a>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/hylbxaTj.jsp | Java Server Pages | oos | 15,180 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</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 rowspan="3" width="5%">行业</th>
<th rowspan="3" width="3%">企业数量(个)</th>
<th rowspan="3" width="4%">从业人数</th>
<th colspan="11" width="3%">接触职业病危害因素人数</th>
<th colspan="11" width="3%">职业病危害接触率</th>
<th rowspan="3" width="3%">申报职业病危害企业数</th>
<th rowspan="3" width="3%">职业病危害申报率</th>
<th rowspan="3" width="3%">应职业病危害预评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害预评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害预评价率</th>
<th rowspan="3" width="3%">应职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害控制效果评价率</th>
</tr>
<tr>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
</tr>
<tr>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</th>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,3),dt.getCellValue(i,2))%></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,4),dt.getCellValue(i,2))%></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,5),dt.getCellValue(i,2))%></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,6),dt.getCellValue(i,2))%></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,7),dt.getCellValue(i,2))%></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,8),dt.getCellValue(i,2))%></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,9),dt.getCellValue(i,2))%></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,10),dt.getCellValue(i,2))%></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,11),dt.getCellValue(i,2))%></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,12),dt.getCellValue(i,2))%></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,13),dt.getCellValue(i,2))%></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/hylbTj.jsp | Java Server Pages | oos | 18,049 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按地区续2)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="3">地区</th>
<th rowspan="3"><p>职业</p>
<p>病危</p>
<p>害因</p>
<p>素检</p>
<p>测企</p>
<p>业数</p>
<p>(个)</p></th>
<th rowspan="3"><p>检测</p>
<p>率(%)</p></th>
<th colspan="11">检测点数(个)</th>
<th colspan="11">达标点数(个) </th>
<th colspan="11">达标率(%) </th>
</tr>
<tr>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
</tr>
<tr>
<th><p>小计</p>
</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></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="#" ><%=dt.getRowMetaCaption(i) %></a>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==33){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==34){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==35){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/distcodexbTj.jsp | Java Server Pages | oos | 18,730 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</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 rowspan="3" width="5%">注册类型</th>
<th rowspan="3" width="3%">企业数量(个)</th>
<th rowspan="3" width="4%">从业人数</th>
<th colspan="11" width="3%">接触职业病危害因素人数</th>
<th colspan="11" width="3%">职业病危害接触率</th>
<th rowspan="3" width="3%">申报职业病危害企业数</th>
<th rowspan="3" width="3%">职业病危害申报率</th>
<th rowspan="3" width="3%">应职业病危害预评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害预评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害预评价率</th>
<th rowspan="3" width="3%">应职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害控制效果评价率</th>
</tr>
<tr>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
</tr>
<tr>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</th>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,3),dt.getCellValue(i,2))%></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,4),dt.getCellValue(i,2))%></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,5),dt.getCellValue(i,2))%></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,6),dt.getCellValue(i,2))%></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,7),dt.getCellValue(i,2))%></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,8),dt.getCellValue(i,2))%></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,9),dt.getCellValue(i,2))%></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,10),dt.getCellValue(i,2))%></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,11),dt.getCellValue(i,2))%></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,12),dt.getCellValue(i,2))%></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,13),dt.getCellValue(i,2))%></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/zclxTj.jsp | Java Server Pages | oos | 18,074 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按行业续3)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="2">行业</th>
<th colspan="4">应职业健康检查人数</th>
<th colspan="4">实际职业健康检查人数</th>
<th colspan="4">职业健康检查率</th>
<th colspan="5">新增职业病病例数</th>
<th colspan="5">累计职业病病例数</th>
</tr>
<tr>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>尘肺</th>
<th>职业中毒</th>
<th>噪声聋</th>
<th>职业性皮肤病</th>
<th>合计</th>
<th>尘肺</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="#" ><%=dt.getRowMetaCaption(i) %></a>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/hylbxcTj.jsp | Java Server Pages | oos | 15,049 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按规模续3)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="2">规模</th>
<th colspan="4">应职业健康检查人数</th>
<th colspan="4">实际职业健康检查人数</th>
<th colspan="4">职业健康检查率</th>
<th colspan="5">新增职业病病例数</th>
<th colspan="5">累计职业病病例数</th>
</tr>
<tr>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>尘肺</th>
<th>职业中毒</th>
<th>噪声聋</th>
<th>职业性皮肤病</th>
<th>合计</th>
<th>尘肺</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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/qygmxcTj.jsp | Java Server Pages | oos | 15,013 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</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 rowspan="3" width="5%">地区</th>
<th rowspan="3" width="3%">企业数量(个)</th>
<th rowspan="3" width="4%">从业人数</th>
<th colspan="11" width="3%">接触职业病危害因素人数</th>
<th colspan="11" width="3%">职业病危害接触率</th>
<th rowspan="3" width="3%">申报职业病危害企业数</th>
<th rowspan="3" width="3%">职业病危害申报率</th>
<th rowspan="3" width="3%">应职业病危害预评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害预评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害预评价率</th>
<th rowspan="3" width="3%">应职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害控制效果评价率</th>
</tr>
<tr>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
</tr>
<tr>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</th>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</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="#" ><%=dt.getRowMetaCaption(i) %></a>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,3),dt.getCellValue(i,2))%></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,4),dt.getCellValue(i,2))%></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,5),dt.getCellValue(i,2))%></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,6),dt.getCellValue(i,2))%></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,7),dt.getCellValue(i,2))%></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,8),dt.getCellValue(i,2))%></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,9),dt.getCellValue(i,2))%></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,10),dt.getCellValue(i,2))%></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,11),dt.getCellValue(i,2))%></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,12),dt.getCellValue(i,2))%></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,13),dt.getCellValue(i,2))%></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/distcodeTj.jsp | Java Server Pages | oos | 18,095 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按规模续2)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="3">规模</th>
<th rowspan="3"><p>职业</p>
<p>病危</p>
<p>害因</p>
<p>素检</p>
<p>测企</p>
<p>业数</p>
<p>(个)</p></th>
<th rowspan="3"><p>检测</p>
<p>率(%)</p></th>
<th colspan="11">检测点数(个)</th>
<th colspan="11">达标点数(个) </th>
<th colspan="11">达标率(%) </th>
</tr>
<tr>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
</tr>
<tr>
<th><p>小计</p>
</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==33){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==34){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==35){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/qygmxbTj.jsp | Java Server Pages | oos | 18,701 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按地区续3)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="2">地区</th>
<th colspan="4">应职业健康检查人数</th>
<th colspan="4">实际职业健康检查人数</th>
<th colspan="4">职业健康检查率</th>
<th colspan="5">新增职业病病例数</th>
<th colspan="5">累计职业病病例数</th>
</tr>
<tr>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>尘肺</th>
<th>职业中毒</th>
<th>噪声聋</th>
<th>职业性皮肤病</th>
<th>合计</th>
<th>尘肺</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="#" ><%=dt.getRowMetaCaption(i) %></a>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/distcodexcTj.jsp | Java Server Pages | oos | 15,033 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按注册类型续1)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th width="5%">注册类型 </th>
<th >合同告知职业病危害人数(人) </th>
<th >职业病危害告知率(%) </th>
<th >建立职业健康监护档案人数(人)</th>
<th >职业健康监护档案建立率(%) </th>
<th >职业病危害作业岗位数(个)</th>
<th >设置警示标识岗位数(个)</th>
<th >警示标识设置率(%) </th>
<th >主要负责人已职业卫生培训企业数(个) </th>
<th >主要负责人职业卫生培训率(%) </th>
<th >应职业卫生培训人数(人)</th>
<th >实际职业卫生培训人数(人)</th>
<th >职业卫生培训率(%)</th>
<th >配备专职职业卫生管理人员企业数(个 </th>
<th >专职职业卫生管理人员配备率(%) </th>
<th >配备兼职职业卫生管理人员企业数(个)</th>
<th >兼职职业卫生管理人员配备率(%) </th>
<th >专职职业卫生管理人数(人) </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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/zclxxaTj.jsp | Java Server Pages | oos | 15,172 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按注册类型续3)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="2">注册类型</th>
<th colspan="4">应职业健康检查人数</th>
<th colspan="4">实际职业健康检查人数</th>
<th colspan="4">职业健康检查率</th>
<th colspan="5">新增职业病病例数</th>
<th colspan="5">累计职业病病例数</th>
</tr>
<tr>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>岗前</th>
<th>在岗</th>
<th>离岗</th>
<th>合计</th>
<th>尘肺</th>
<th>职业中毒</th>
<th>噪声聋</th>
<th>职业性皮肤病</th>
<th>合计</th>
<th>尘肺</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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/zclxxcTj.jsp | Java Server Pages | oos | 15,040 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</td>
<td align="center">
<input class="l-button l-button-submit" type="reset" value="重置">
</td>
</tr>
</table>
</form>
<br>
<center><font size="5">工矿商贸企业职业卫生统计表(按行业续2)</font></center>
<br>
<table class="analyzetbl" width="100%" align="center" border="0">
<tr>
<th rowspan="3">行业</th>
<th rowspan="3"><p>职业</p>
<p>病危</p>
<p>害因</p>
<p>素检</p>
<p>测企</p>
<p>业数</p>
<p>(个)</p></th>
<th rowspan="3"><p>检测</p>
<p>率(%)</p></th>
<th colspan="11">检测点数(个)</th>
<th colspan="11">达标点数(个) </th>
<th colspan="11">达标率(%) </th>
</tr>
<tr>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
<th rowspan="2"><p>合</p>
<p>计</p></th>
<th colspan="3">粉尘</th>
<th colspan="2">化学毒物</th>
<th colspan="3">物理因素</th>
<th colspan="2">生物因素</th>
</tr>
<tr>
<th><p>小计</p>
</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></th>
<th>小计</th>
<th><p>矽</p>
<p>尘</p></th>
<th><p>石</p>
<p>棉</p>
<p>尘</p></th>
<th>小计</th>
<th><p>高毒和</p>
<p>极度、高</p>
<p>度危害</p>
<p>化学物</p>
<p>质</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>电</p>
<p>离</p>
<p>辐</p>
<p>射</p></th>
<th><p>噪</p>
<p>声</p></th>
<th><p>小</p>
<p>计</p></th>
<th><p>炭</p>
<p>疽</p>
<p>杆</p>
<p>菌</p></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="#" ><%=dt.getRowMetaCaption(i) %></a>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==33){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==34){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==35){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/hylbxbTj.jsp | Java Server Pages | oos | 18,734 |
<%@ 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"/>
<jsp:directive.page import="UI.util.CommenUtil"/>
<%
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);
}
}
});
$("#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">
</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 rowspan="3" width="5%">规模</th>
<th rowspan="3" width="3%">企业数量(个)</th>
<th rowspan="3" width="4%">从业人数</th>
<th colspan="11" width="3%">接触职业病危害因素人数</th>
<th colspan="11" width="3%">职业病危害接触率</th>
<th rowspan="3" width="3%">申报职业病危害企业数</th>
<th rowspan="3" width="3%">职业病危害申报率</th>
<th rowspan="3" width="3%">应职业病危害预评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害预评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害预评价率</th>
<th rowspan="3" width="3%">应职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">实际职业病危害控制效果评价项目数</th>
<th rowspan="3" width="3%">建设项目职业病危害控制效果评价率</th>
</tr>
<tr>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
<th rowspan="2" width="3%">合计</th>
<th colspan="3" width="3%">粉尘</th>
<th colspan="2" width="3%">化学毒物</th>
<th colspan="3" width="3%">物理因素</th>
<th colspan="2" width="3%">生物因素</th>
</tr>
<tr>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</th>
<th width="3%">小计</th>
<th width="3%">矽尘</th>
<th width="3%">石棉尘</th>
<th width="3%">小计</th>
<th width="3%">高毒和极度、高度危害化学物质</th>
<th width="3%">小计</th>
<th width="3%">电离辐射</th>
<th width="3%">噪声</th>
<th width="3%">小计</th>
<th width="3%">炭疽杆菌</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{%>
<%=dt.getRowMetaCaption(i) %>
<%}%>
</td>
<%for(int j=1;j<dt.getCols();j++){
if(j==1){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==2){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<%}else if(j==3){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==4){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==5){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==6){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==7){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==8){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==9){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==10){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==11){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==12){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==13){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j) %></a></td>
<% }else if(j==14){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,3),dt.getCellValue(i,2))%></a></td>
<% }else if(j==15){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,4),dt.getCellValue(i,2))%></a></td>
<% }else if(j==16){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,5),dt.getCellValue(i,2))%></a></td>
<% }else if(j==17){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,6),dt.getCellValue(i,2))%></a></td>
<% }else if(j==18){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,7),dt.getCellValue(i,2))%></a></td>
<% }else if(j==19){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,8),dt.getCellValue(i,2))%></a></td>
<% }else if(j==20){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,9),dt.getCellValue(i,2))%></a></td>
<% }else if(j==21){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,10),dt.getCellValue(i,2))%></a></td>
<% }else if(j==22){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,11),dt.getCellValue(i,2))%></a></td>
<% }else if(j==23){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,12),dt.getCellValue(i,2))%></a></td>
<% }else if(j==24){
%>
<td align="center"><a href=""> <%=CommenUtil.getPercent(dt.getCellValue(i,13),dt.getCellValue(i,2))%></a></td>
<% }else if(j==25){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==26){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==27){
%>
<td align="center"><a href=""><%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==28){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==29){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==30){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==31){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }else if(j==32){
%>
<td align="center"><a href=""> <%=dt.getCellValue(i,j)%></a></td>
<% }
} %>
</tr>
<%} %>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tj/qygmTj.jsp | Java Server Pages | oos | 18,061 |
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link href="<%=basePath%>css/gkstyle.css" rel="stylesheet" type="text/css" />
<title>工矿商贸相关统计</title>
</head>
<body>
<table class="gktable">
<tr>
<th colspan="4" style="height: 45;text-align: center;font-size: 16"> 工矿商贸企业职业卫生统计表</th>
</tr>
<tr>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmTjAction_getDistcodeTable.action')">工矿商贸企业职业卫生统计表(按地区)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmXaTjAction_getDistcodeTable.action')">工矿商贸企业职业卫生统计表(按地区续1)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmXbTjAction_getDistcodeTable.action')">工矿商贸企业职业卫生统计表(按地区续2)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmXcTjAction_getDistcodeTable.action')">工矿商贸企业职业卫生统计表(按地区续2)</a></td>
</tr>
<tr>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmHylbTjAction_getHylbTable.action')">工矿商贸企业职业卫生统计表(按行业类别)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmHylbXaTjAction_getHylbTable.action')">工矿商贸企业职业卫生统计表(按行业续1)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmHylbXbTjAction_getHylbTable.action')">工矿商贸企业职业卫生统计表(按行业续2)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmHylbXcTjAction_getHylbTable.action')">工矿商贸企业职业卫生统计表(按行业续2)</a></td>
</tr>
<tr>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmQygmTjAction_getQygmTable.action')">工矿商贸企业职业卫生统计表(按规模)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmQygmXaTjAction_getQygmTable.action')">工矿商贸企业职业卫生统计表(按规模续1)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmQygmXbTjAction_getQygmTable.action')">工矿商贸企业职业卫生统计表(按规模续2)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmQygmXcTjAction_getQygmTable.action')">工矿商贸企业职业卫生统计表(按规模续2)</a></td>
</tr>
<tr>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmZclxTjAction_getZclxTable.action')">工矿商贸企业职业卫生统计表(按注册类型)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmZclxXaTjAction_getZclxTable.action')">工矿商贸企业职业卫生统计表(按类型续1)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmZclxXbTjAction_getZclxTable.action')">工矿商贸企业职业卫生统计表(按类型续2)</a></td>
<td><a href="javascript:window.open('<%=basePath %>UI/action/gksmtj/GksmZclxXcTjAction_getZclxTable.action')">工矿商贸企业职业卫生统计表(按类型续2)</a></td>
</tr>
</table>
</body>
</html>
| zyjk | trunk/WebRoot/UI/gksm/tjhz.jsp | Java Server Pages | oos | 3,725 |
<!--
/*********************************************************************
*<p>处理内容:图片墙</p>
*<p>Copyright: Copyright (c) 2011</p>
* @author 方立文 改版履历<br>
* @version Rev - Date ------- Name ---------- Note<br>
* @------- 1.0 --2013.3.14---- 方立文 --------- 新规作成<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"%>
<head>
<link rel="stylesheet" type="text/css" href="<%=webpath%>/js/jmFullWall/res/css/jmFullWall.css" />
<script type="text/javascript" src="<%=webpath%>/js/jmFullWall/res/js/lib/jquery.imgpreload.js"></script>
<script type="text/javascript" src="<%=webpath%>/js/jmFullWall/res/js/lib/jquery.imagepanner.js"></script>
<script type="text/javascript" src="<%=webpath%>/js/jmFullWall/res/js/lib/jquery.jmFullWall.js"></script>
<script type="text/javascript">
$(function(){
$('#wall').jmFullWall({
itemsForRow : 5
});
});
</script>
</head>
<body style="margin: 0px;padding: 0px">
<div id="wall-top"></div>
<div id="wall-container">
<div id="wall-loading"></div>
<div id="wall-detail"></div>
<div id="wall">
<div id="wall-items">
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/1.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/1.jpg</span>
<span class="tooltip hide">Audi Locus</span>
<a href="#"><span class="title">Audi Locus</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/2.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/2.jpg</span>
<span class="tooltip hide">Porsche Supercar</span>
<a href="#"><span class="title">Porsche Supercar</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/3.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/3.jpg</span>
<span class="tooltip hide">Ford GT</span>
<a href="#"><span class="title">Ford GT</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/4.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/4.jpg</span>
<span class="tooltip hide">Lamborghini Murcielago</span>
<a href="#"><span class="title">Lamborghini Murcielago</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/5.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/5.jpg</span>
<span class="tooltip hide">Nissan R390 GT1</span>
<a href="#"><span class="title">Nissan R390 GT1</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/6.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/6.jpg</span>
<span class="tooltip hide">Porsche 911 GT3 RS</span>
<a href="#"><span class="title">Porsche 911 GT3 RS</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/7.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/7.jpg</span>
<span class="tooltip hide">Pagani Zonda F</span>
<a href="#"><span class="title">Pagani Zonda F</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/8.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/8.jpg</span>
<span class="tooltip hide">Maybach Exelero</span>
<a href="#"><span class="title">Maybach Exelero</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/9.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/9.jpg</span>
<span class="tooltip hide">Dodge Challenger</span>
<a href="#"><span class="title">Dodge Challenger</span></a>
</div>
<div class="wall-item">
<span class="bg hide"><%=webpath%>/js/jmFullWall/res/img/slide/10.jpg</span>
<span class="img_detail hide"><%=webpath%>/js/jmFullWall/res/img/slide/10.jpg</span>
<span class="tooltip hide">Porsche 918 Spyder</span>
<a href="#"><span class="title">Porsche 918 Spyder</span></a>
</div>
</div>
</div>
</div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/desktop/imgwall/imgwall.jsp | Java Server Pages | oos | 4,743 |
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="st.portal.html.DBSelect"/>
<jsp:directive.page import="st.platform.system.cache.EnumerationType"/>
<jsp:directive.page import="st.portal.action.MessageBean"/>
<jsp:directive.page import="UI.dao.enterfile.QyjbqkBean"/>
<jsp:directive.page import="st.platform.db.SerialNumber"/>
<jsp:directive.page import="st.platform.security.SystemAttributeNames"/>
<jsp:directive.page import="UI.util.*"/>
<jsp:directive.page import="UI.dao.enterfile.*"/>
<jsp:directive.page import="UI.dao.zyjk.*"/>
<jsp:directive.page import="st.system.dao.PtenudetailBean"/>
<!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 state=request.getParameter("state");
String strSysno=request.getParameter("strSysno");
QyjbqkBean qyjbqkBean =new QyjbqkBean();
//企业用户
T_officerBean officer=(T_officerBean )session.getAttribute(SystemAttributeNames.CORP_INFO_NAME);
//此处判断是否企业初次登陆系统
if(null!=officer){
qyjbqkBean=qyjbqkBean.findFirst(" where corpkey='"+officer.getLogin_id()+"'");
if(null==qyjbqkBean){
Z_corBean zcorebean=new Z_corBean();
zcorebean=zcorebean.findFirst(" where corpkey='"+ strSysno +"'");
qyjbqkBean=new QyjbqkBean();
Reflect.setVOFromForm(qyjbqkBean, zcorebean);
qyjbqkBean.setFddbr(zcorebean.getLeader());
//转换主管单位
PtenudetailBean detailBean=new PtenudetailBean();
detailBean=detailBean.findFirst(" where enutype='ZGDW' and enuitemlabel like '%"+ zcorebean.getZhuguan() +"%'");
if(null!=detailBean&&!"".equals(detailBean)){
//国属省属县属企业
qyjbqkBean.setZhuguan(detailBean.getEnuitemvalue());
}else{
//其他主管类型企业
qyjbqkBean.setZhuguan("05");
qyjbqkBean.setOtherzg(zcorebean.getZhuguan());
}
qyjbqkBean.setZczb(zcorebean.getZichan());
qyjbqkBean.setZywsfzr(zcorebean.getZywsleader());
}else{
qyjbqkBean = (QyjbqkBean)request.getAttribute("qyjbqkBean");
}
}
//点击登陆页面右侧的表单打开单位信息表时去掉最下的提交按钮
String showButton=request.getParameter("showButton");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
<style>
#leftitem {
background-color:#eaf2ff;
}
</style>
<script language="javascript" src="<%=webpath%>/UI/enterfile/qyenterinfo.js"></script>
</head>
<body class="menubody" style="width: 780">
<%--<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">
<!-- 隐藏域 主键id -->
<input type="hidden" id="enterno" name="qyjbqkBean.enterno" value="<%=qyjbqkBean.getEnterno() %>"/>
<input type="hidden" id="corpkey" name="qyjbqkBean.corpkey" value="<%=qyjbqkBean.getCorpkey() %>"/>
<!-- -->
<input type="hidden" id="method" name="messageBean.method" value="<%=messageBean.getMethod() %>"/>
<!-- 操作method -->
<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="distcode" name="qyjbqkBean.distcode" value="<%=qyjbqkBean.getDistcode()%>"/>
<!-- 判断提交按钮是否存在的标志位-->
<input type="hidden" id="showButton" name="showButton" value="<%=showButton%>"/>
<!-- strSysno-->
<input type="hidden" id="strSysno" name="strSysno" value="<%=strSysno%>"/>
<br/>
<table cellpadding="0" cellspacing="0" class="form-l-table-edit" align="center" >
<tr>
<td class="l-table-edit-td-left" id="leftitem">单位名称:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.dwmc" id="dwmc" value="<%= qyjbqkBean.getDwmc()%>" style="width: 97%" validate="{required:true}"/></td>
<td class="td_message" style="width:100px"></td>
<td class="l-table-edit-td-left" id="leftitem">企业工商注册号:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.gszch" id="gszch" value="<%=qyjbqkBean.getGszch() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">组织机构代码:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.zzjgdm" id="zzjgdm" value="<%= qyjbqkBean.getZzjgdm()%>" style="width: 97%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">行政区划:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="" id="enuditcode" value="<%=DistcodeUtil.getDistName(qyjbqkBean.getDistcode())%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">单 位 注 册 地 址:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.zcdz" id="zcdz" value="<%=qyjbqkBean.getZcdz()%>" style="width: 97%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">建厂日期:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="date" name="qyjbqkBean.jcdate" id="jcdate" value="<%=qyjbqkBean.getJcdate() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">注册地址邮政编码:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.zcyzbm" id="zcyzbm" value="<%=qyjbqkBean.getZcyzbm() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">作 业 场 所 地 址:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.csdz" id="csdz" value="<%=qyjbqkBean.getCsdz() %>" style="width: 97%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">作业场所邮政编码:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.csyzbm" id="csyzbm" value="<%=qyjbqkBean.getCsyzbm() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">法定代表人:</td>
<td class="l-table-edit-td-left" style="width:13%"><input type="text" ltype="text" name="qyjbqkBean.fddbr" id="fddbr" value="<%=qyjbqkBean.getFddbr() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" width="15%" id="leftitem">联系电话:</td>
<td class="l-table-edit-td-left" width="12%"><input type="text" ltype="text" name="qyjbqkBean.lxdh" id="lxdh" value="<%=qyjbqkBean.getLxdh() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem" >注册资本(万元):</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.zczb" id="zczb" value="<%=qyjbqkBean.getZczb() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<%--<tr>
<td class="l-table-edit-td-left" >法人代表身份证号</td>
<td class="l-table-edit-td-left" style="width:13%"><input type="text" ltype="text" name="qyjbqkBean.frdbsfzh" id="frdbsfzh" value="<%=qyjbqkBean.getFrdbsfzh() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" width="15%" >法人邮箱</td>
<td class="l-table-edit-td-left" width="12%"><input type="text" ltype="text" name="qyjbqkBean.ddremail" id="ddremail" value="<%=qyjbqkBean.getDdremail() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
--%><tr>
<td class="l-table-edit-td-left" id="leftitem">注册类型:</td>
<td class="l-table-edit-td-left" >
<%
DBSelect dbsel = new DBSelect("qyjbqkBean.zclx","ZCLX",qyjbqkBean.getZclx());
//dbsel.addAttr("style", "width: 202px;");
dbsel.addAttr("id", "zclx");
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-left" id="leftitem">行业分类:</td>
<td class="l-table-edit-td-left" ><input type="hidden" name="qyjbqkBean.hyfl" id="hyfl" value="<%=qyjbqkBean.getHyfl()%>" />
<input type="hidden" name="qyjbqkBean.hyfl1" id="hyfl1" value="<%=qyjbqkBean.getHyfl1()%>" />
<input type="hidden" name="qyjbqkBean.hyfl2" id="hyfl2" value="<%=qyjbqkBean.getHyfl2()%>" />
<input id="hyflname" type="text" value="<%=EnumerationType.getEnu("HYLB", qyjbqkBean.getHyfl())%>"/>
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">企业年度产值(万元):</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.chanzhi" id="chanzhi" value="<%=qyjbqkBean.getChanzhi() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">资产总额(万元):</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" name="qyjbqkBean.zichan" id="zichan" value="<%=qyjbqkBean.getZichan() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">主管单位:</td>
<td class="l-table-edit-td-left" >
<%
dbsel = new DBSelect("qyjbqkBean.zhuguan","ZGDW",qyjbqkBean.getZhuguan());
dbsel.addAttr("style", "width: 202px;");
dbsel.addAttr("id", "zhuguan");
dbsel.addAttr("check", "notBlank");
dbsel.addAttr("required", "true");
dbsel.addAttr("onchange","addTd(this)");
dbsel.addAttr("showName", "主管单位");
dbsel.addOption("请选择","");
dbsel.setDisplayAll(false);
out.print(dbsel);
%>
</td>
<td class="td_message"></td>
</tr>
<tr id="othertype" style="display:none">
<td class="l-table-edit-td-right" style="color:red ">其他主管单位类型: </td>
<td class="l-table-edit-td-left" >
<input type="text" id="otherzg" name="qyjbqkBean.otherzg" value="<%=qyjbqkBean.getOtherzg() %>"/>
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">是否有专门职业卫生管理机构:</td>
<td class="l-table-edit-td-left" >
<%
dbsel = new DBSelect("qyjbqkBean.zywsjgshu","SF",qyjbqkBean.getZywsjgshu());
dbsel.addAttr("style", "width: 202px;");
dbsel.addAttr("id", "zywsjgshu");
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-left" id="leftitem">职业卫生管理机构:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.zywsjg" id="zywsjg" value="<%=qyjbqkBean.getZywsjg() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">职业卫生管理负责人:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.zywsfzr" id="zywsfzr" value="<%=qyjbqkBean.getZywsfzr() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">职业卫生机构联系电话:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.zywslxdh" id="zywslxdh" value="<%=qyjbqkBean.getZywslxdh() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<%--
<tr>
<td class="l-table-edit-td-left" >填报类别</td>
<td class="l-table-edit-td-left">
<%
dbsel = new DBSelect("qyjbqkBean.tblb","TBLB",qyjbqkBean.getTblb());
dbsel.addAttr("style", "width: 202px;");
dbsel.addAttr("id", "tblb");
dbsel.addAttr("check", "notBlank");
dbsel.addAttr("required", "true");
dbsel.addAttr("showName", "填报类别");
dbsel.setDisplayAll(false);
out.print(dbsel);
%>
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" >变更原因</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.bgyy" id="bgyy" value="<%=qyjbqkBean.getBgyy() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
--%>
<tr>
<td class="l-table-edit-td-left" id="leftitem">职业卫生管理人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.zywsgl" id="zywsgl" value="<%=qyjbqkBean.getZywsgl()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">职业病危害因素:</td>
<td class="l-table-edit-td-left" >
<input type="hidden" id="whys" name="qyjbqkBean.whys" style="width:10px;" fieldname="whys" alerttitle="危害因素" value="<%=qyjbqkBean.getWhys() %>" fieldType="text" />
<input id="whysname" name="qyjbqkBean.whysname" style="width:100%;" fieldname="whysname" alerttitle="危害因素名称" type="text" value="<%=qyjbqkBean.getWhysname() %>" />
</td>
<td class="td_message"></td>
</tr><%--
<tr>
<td class="l-table-edit-td-left" >其他原因具体说明</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.qtbgyy" id="qtbgyy" value="<%=qyjbqkBean.getQtbgyy()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left">是否存在重大危险源</td>
<td class="l-table-edit-td-left" >
<%
dbsel = new DBSelect("qyjbqkBean.sfczzdwxy","SF",qyjbqkBean.getSfczzdwxy());
dbsel.addAttr("style", "width: 202px;");
dbsel.addAttr("id", "sfczzdwxy");
dbsel.addAttr("check", "notBlank");
dbsel.addAttr("required", "true");
dbsel.addAttr("showName", "是否存在重大危险源");
dbsel.setDisplayAll(false);
out.print(dbsel);
%>
</td>
<td class="td_message"></td>
</tr>
--%><tr>
<td class="l-table-edit-td-left" id="leftitem">在岗职工总人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.nmzgrs" id="nmzgrs" value="<%=qyjbqkBean.getNmzgrs()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem" >其中:女工</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.scwomen" id="scwomen" value="<%=qyjbqkBean.getScwomen()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" width="12%" id="leftitem">农民工</td>
<td class="l-table-edit-td-left" width="8%" ><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.scnongmin" id="scnongmin" value="<%=qyjbqkBean.getScnongmin() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">接触职业危害总人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.whrenshu" id="whrenshu" value="<%=qyjbqkBean.getWhrenshu() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">其中:女工</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.whwomen" id="whwomen" value="<%=qyjbqkBean.getWhwomen() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" width="12%" id="leftitem">农民工</td>
<td class="l-table-edit-td-left" width="8%" ><input type="text" ligerui="{type:'int'}" ltype="spinner" name="qyjbqkBean.whnongmin" id="whnongmin" value="<%=qyjbqkBean.getWhnongmin()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">职业病累计人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.zybrenshu" id="zybrenshu" value="<%=qyjbqkBean.getZybrenshu()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">新增职业病人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.zybrenshuxz" id="zybrenshuxz" value="<%=qyjbqkBean.getZybrenshuxz()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">疑似职业病人数:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.zybrenshuys" id="zybrenshuys" value="<%=qyjbqkBean.getZybrenshuys() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" width="20%" id="leftitem">调离人数:</td>
<td class="l-table-edit-td-left" width="8%"><input type="text" ltype="text" name="qyjbqkBean.dlrenshu" id="dlrenshu" value="<%=qyjbqkBean.getDlrenshu() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" width="20%" id="leftitem" >参加职业危害培训总人数:</td>
<td class="l-table-edit-td-left" width="8%" ><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.pxrenshu" id="pxrenshu" value="<%=qyjbqkBean.getPxrenshu() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">岗前体检人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.tjrenshu" id="tjrenshu" value="<%=qyjbqkBean.getTjrenshu() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">在岗体检人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.tjrenshu2" id="tjrenshu2" value="<%=qyjbqkBean.getTjrenshu2() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">离岗体检人数:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="spinner" ligerui="{type:'int'}" name="qyjbqkBean.tjrenshu3" id="tjrenshu3" value="<%=qyjbqkBean.getTjrenshu3()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">职业病危害检测机构:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.ysjiancejg" id="ysjiancejg" value="<%=qyjbqkBean.getYsjiancejg()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">职业卫生培训机构:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.glpeixunjg" id="glpeixunjg" value="<%=qyjbqkBean.getGlpeixunjg() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">职业健康查体机构:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.gltijianjg" id="gltijianjg" value="<%=qyjbqkBean.getGltijianjg()%>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<%--<td class="l-table-edit-td-left" >检测日期</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="date" name="qyjbqkBean.ysjiancedate" id="ysjiancedate" value="<%=qyjbqkBean.getYsjiancedate() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>--%>
</tr>
<%--<tr>
<td class="l-table-edit-td-left" >体检日期</td>
<td class="l-table-edit-td-left"><input type="text" ltype="date" name="qyjbqkBean.gltijiandate" id="gltijiandate" value="<%=qyjbqkBean.getGltijiandate() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" >培训日期</td>
<td class="l-table-edit-td-left"><input type="text" ltype="date" name="qyjbqkBean.glpeixundate" id="glpeixundate" value="<%=qyjbqkBean.getGlpeixundate() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
--%><tr>
<td class="l-table-edit-td-left" id="leftitem">接触粉尘的人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" name="qyjbqkBean.jcfcren" id="jcfcren" value="<%=qyjbqkBean.getJcfcren() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem" >接触化学毒物的人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" name="qyjbqkBean.jchxren" id="jchxren" value="<%=qyjbqkBean.getJchxren() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">接触物理因素的人数:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="spinner" name="qyjbqkBean.jcwlren" id="jcwlren" value="<%=qyjbqkBean.getJcwlren() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">接触辐射的人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" name="qyjbqkBean.jcfsren" id="jcfsren" value="<%=qyjbqkBean.getJcfsren() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">接触其他职业危害因素的人数:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="spinner" name="qyjbqkBean.jcqtren" id="jcqtren" value="<%=qyjbqkBean.getJcqtren() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<%--<td class="l-table-edit-td-left">合同内告知职业病危害人数</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="text" name="qyjbqkBean.htngzzywhrs" id="htngzzywhrs" value="<%=qyjbqkBean.getHtngzzywhrs() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
--%></tr>
<%--<tr>
<td class="l-table-edit-td-left" >职业病危害作业岗位数</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.zybzygws" id="zybzygws" value="<%=qyjbqkBean.getZybzygws() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" >设置警示标识岗位数</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.szjsbzgws" id="szjsbzgws" value="<%=qyjbqkBean.getSzjsbzgws() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" >应职业卫生培训数</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.yzywspxs" id="yzywspxs" value="<%=qyjbqkBean.getZybzygws() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" >应职业健康检查人数</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.yzyjkjcs" id="yzyjkjcs" value="<%=qyjbqkBean.getSzjsbzgws() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
--%><tr>
<td class="l-table-edit-td-left" id="leftitem">联系人:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.ystbren" id="ystbren" value="<%=qyjbqkBean.getYstbren() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<td class="l-table-edit-td-left" id="leftitem">联系电话:</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.sbrendh" id="sbrendh" value="<%=qyjbqkBean.getSbrendh() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-left" id="leftitem">填表日期:</td>
<td class="l-table-edit-td-left" ><input type="text" ltype="date" name="qyjbqkBean.ystbdate" id="ystbdate" value="<%=qyjbqkBean.getYstbdate() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
<%--<td class="l-table-edit-td-left" >当前填报部门</td>
<td class="l-table-edit-td-left"><input type="text" ltype="text" name="qyjbqkBean.ystbbm" id="ystbbm" value="<%=qyjbqkBean.getYstbbm() %>" style="width: 95%" validate="{required:true}"/></td>
<td class="td_message"></td>
--%></tr>
</table>
<br/>
<table class="button_table">
<tr>
<td>
<input type="submit" value="提交" id="subButton" class="l-button l-button-submit" />
</tr>
</table>
</form>
</body>
</html>
| zyjk | trunk/WebRoot/UI/enterfile/qyenterinfo.jsp | Java Server Pages | oos | 29,503 |
/****************************************************
* <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="335";
//初始;
$(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('qyzybfhssGrid','职业病防护设施',toolbar," and enterno like '%" + getUrlParam("strSysno") + "%' ");
}catch (e) {
$.ligerDialog.error(e.message);
}
});
/*grid双击事件*/
function onDblClickRow (data, rowindex, rowobj){
try {
myWindow = top.$.ligerDialog.open({url:webpath+"/UI/action/qyzybfhss/QyzybfhssAction_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 enterno 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/qyzybfhss/QyzybfhssAction_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/qyzybfhss/QyzybfhssAction_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/qyzybfhss/QyzybfhssAction_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/qyzybfhss/QyzybfhssAction_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/enterfile/zybfhss/zybfhss.js | JavaScript | oos | 6,161 |
/****************************************************
* <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/qyzybfhss/QyzybfhssAction_insert.action";
}else if(method=="look"){
$("#subButton").hide();
$("#colButton").hide();
}else if(method=="update"){
actionurl=webpath+"/UI/action/qyzybfhss/QyzybfhssAction_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/enterfile/zybfhss/zybfhssdetail.js | JavaScript | oos | 2,209 |
<!--
/****************************************************
* <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/enterfile/zybfhss/zybfhss.js"></script>
</head>
<body class="bodystyle">
<!-- grid区域 -->
<div id="mainGrid"></div>
</body>
</html>
| zyjk | trunk/WebRoot/UI/enterfile/zybfhss/zybfhss.jsp | Java Server Pages | oos | 810 |
<!--
/****************************************************
* <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.QyzybfhssBean"/>
<!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>
<%
QyzybfhssBean qyzybfhssBean = (QyzybfhssBean)request.getAttribute("qyzybfhssBean");
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
%>
<script language="javascript" src="<%=webpath%>//UI/enterfile/zybfhss//zybfhssdetail.js"></script>
</head>
<body class="menubody" style="width: 630"><%--
<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="qyzybfhssBean.sysno" value="<%=qyzybfhssBean.getSysno() %>"/>
<!-- 隐藏域 企业id -->
<input type="hidden" id="enterno" name="qyzybfhssBean.enterno" value="<%=qyzybfhssBean.getEnterno() %>"/>
<!-- 操作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="qyzybfhssBean.no" type="text" id="no" value="<%=qyzybfhssBean.getNo() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
--%>
<td class="l-table-edit-td-right" style="width:160px">防护设施名称:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="qyzybfhssBean.fhssmc" type="text" id="fhssmc" value="<%=qyzybfhssBean.getFhssmc() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right" style="width:160px">投用日期:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="qyzybfhssBean.tyrq" type="text" id="tyrq" value="<%=qyzybfhssBean.getTyrq() %>" 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="qyzybfhssBean.sbbh" type="text" id="sbbh" value="<%=qyzybfhssBean.getSbbh() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
--%><td class="l-table-edit-td-right" style="width:160px">型号:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="qyzybfhssBean.xh" type="text" id="xh" value="<%=qyzybfhssBean.getXh() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right" style="width:160px">所在部位:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="qyzybfhssBean.szbw" type="text" id="szbw" value="<%=qyzybfhssBean.getSzbw() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right" style="width:160px">维护检修周期:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="qyzybfhssBean.whzq" type="text" id="whzq" value="<%=qyzybfhssBean.getWhzq() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right" style="width:160px">所在车间:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="qyzybfhssBean.szcj" type="text" id="szcj" value="<%=qyzybfhssBean.getSzcj() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
<td class="l-table-edit-td-right" style="width:160px">维护检修人员:</td>
<td class="l-table-edit-td-left" style="width:160px">
<input name="qyzybfhssBean.whry" type="text" id="whry" value="<%=qyzybfhssBean.getWhry() %>" ltype="text" validate="{required:true }" />
</td>
<td class="td_message"></td>
</tr>
<tr>
<td class="l-table-edit-td-right" style="width:160px">防护功能:</td>
<td class="l-table-edit-td-left" colspan="4">
<textarea class="l-textarea" cols="110" rows="4" id="ffgn" name="qyzybfhssBean.ffgn"
style="width:500px" ><%=qyzybfhssBean.getFfgn()%></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/enterfile/zybfhss/zybfhssdetail.jsp | Java Server Pages | oos | 6,700 |
<!--
/****************************************************
* <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.QyjbqkBean"/>
<%@ include file="/global.jsp"%>
<%
QyjbqkBean qyjbqkBean=(QyjbqkBean)request.getAttribute("qyjbqkBean");
if(null==qyjbqkBean){
qyjbqkBean=new QyjbqkBean();
}
MessageBean messageBean = (MessageBean)request.getAttribute("messageBean");
if(null==messageBean){
messageBean=new MessageBean();
}
%>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html>
<head>
<title>职业卫生许可证</title>
<script language="javascript" src="<%=webpath%>//UI/enterfile/zywsxkz/zywsxkz.js"></script>
</head>
<body class="menubody" style="width: 580" onload="bodyload();">
<form name="form" id="form" method="post" action="<%=webpath %>/UI/enterfile/zywsxkz/ZywsxkzUpAction_update.action" enctype="multipart/form-data">
<div>
<!-- 隐藏域 主键id -->
<input type="hidden" id="enterno" name="qyjbqkBean.enterno" value="<%=qyjbqkBean.getEnterno() %>"/>
<input type="hidden" id="zywsxkzz" name="qyjbqkBean.zywsxkzz" value="<%=qyjbqkBean.getZywsxkzz() %>"/>
<input type="hidden" id="zywsxkzf" name="qyjbqkBean.zywsxkzf" value="<%=qyjbqkBean.getZywsxkzf() %>"/>
<!-- 操作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" >
<tr>
<td class="l-table-edit-td-right">职业卫生安全许可证</td>
<td class="l-table-edit-td-left" style="width:160px">
正本:<input type="file" name="file" style="" id="file" title="正"/>
<%--<input type="button" onclick="upload()" value="上传" id="scbt"/>
--%>
</td>
<td class="l-table-edit-td-left" style="width:160px">
副本:<input type="file" name="filef" style="" id="filef" title="副"/>
</td>
</tr>
<tr>
<td colspan="2" align="center" style="font-size: 16px;font-weight: bold;">
<%if(qyjbqkBean.getZywsxkzz()!=null&&!qyjbqkBean.getZywsxkzz().equals("null")&&!qyjbqkBean.getZywsxkzz().equals("")){
%>
职业卫生安全许可证正本:<br />
<img src="<%=webpath+qyjbqkBean.getZywsxkzz()%>" alt="职业卫生许可证正本" width="300px" height="300px"/>
<%} %>
</td>
</tr>
<tr>
<td colspan="2" align="center" style="font-size: 16px;font-weight: bold;">
<%if(qyjbqkBean.getZywsxkzf()!=null&&!qyjbqkBean.getZywsxkzf().equals("null")&&!qyjbqkBean.getZywsxkzf().equals("")){
%>
职业卫生安全许可证副本:<br />
<img src="<%=webpath+qyjbqkBean.getZywsxkzf()%>" alt="职业卫生许可证副本" width="300px" height="300px"/>
<%} %>
</td>
</tr>
</table>
<br />
<table align="center">
<tr>
<td>
<input type="submit" value="提交" id="subButton" class="l-button l-button-submit" />
</td>
</tr>
</table>
</form>
</body>
</html>
| zyjk | trunk/WebRoot/UI/enterfile/zywsxkz/zywsxkz.jsp | Java Server Pages | oos | 4,041 |
/****************************************************
* <p>处理内容:</p>
* <p>Copyright: Copyright (c) 2013</p>;
* @author ;
* 改版履历;
* Rev - Date ------- Name ---------- Note -------------------
* 1.0 2013-04-27 新規作成 ;
****************************************************/
function submitHandler() {
document.getElementById("form").submit();
}
function bodyload(){
var mess=$("#message").val();
if(mess!=null&&mess!=""&&mess.length>0){
alert(mess);
}
}
$(function () {
try {
/*验证样式提交*/
var v = Form();
$("form").ligerForm();
}catch (e) {
$("#subButton").removeAttr('disabled');
$.ligerDialog.error(e.message);
}
});
| zyjk | trunk/WebRoot/UI/enterfile/zywsxkz/zywsxkz.js | JavaScript | oos | 920 |
<!--
/****************************************************
* <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/enterfile/ldzjkjcjg//ldzjkjcjgdetail.js"></script>
</head>
<body class="menubody" style="width: 625">
<%--<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="enterno" name="qyzywsjkjcjgbean.enterno" value="<%=qyzywsjkjcjgbean.getEnterno()%>"/>
<!-- 操作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="tjdwbh" name="qyzywsjkjcjgbean.tjdwbh" value="<%=qyzywsjkjcjgbean.getTjdwbh() %>"/>
</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" readonly 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" readonly 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" 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>
</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/enterfile/ldzjkjcjg/ldzjkjcjgdetail.jsp | Java Server Pages | oos | 8,906 |
/****************************************************
* <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:'cxtjjgGrid'},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=cxtjjgGrid",
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)
{
$("#tjdwbh").val(data.sysno);
$("#tjdwmc").val(data.jgmc);
// $("#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 '%"+ 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);
}
});
function getEnterinfo(name){
document.getElementById("_mainGrid").style.display="";
try{
var strWhere = " ";
if(name.length>0){
strWhere = " and jgmc 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/enterfile/ldzjkjcjg/ldzjkjcjgdetail.js | JavaScript | oos | 5,707 |