📄 win_template_flow.jsp
字号:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.ijipin.tool.*" %>
<%@ page import="com.ijipin.database.*" %>
<%@ page import="com.ijipin.system.*" %>
<%@ page import="com.ijipin.property.*" %>
<%@ include file="/userinfor.jsp" %>
<%@ include file="/share/page/page_request.jsp"%>
<%@ page import="com.ijipin.flow.*" %>
<%
////////////////////////////列表页面所必须有的公共变量
final String strSkin = "../../" + userInfor_session.getPFLJ(); //皮肤路径
final String strLevel = Template.strLevel; //本页所在的层次
final String strLink = Template.strLink_update; //本页的地址
final String strLink_action = Template.strLink_action;
final String strLink_back = Template.strLink_list;
final int iModuleID= Template.iModuleID;
//////////////iSecond_barid
//设置查询参数
String sTable = "";
String sField = "";
String sCondition = "";
int iSpace = Message.SPACE; //空格的宽度
String sWidth = Message.WIDTH; //第一个td的百分比宽度
//新建一个连接
DataConn dataConn = new DataConn();
Statement stmt = null;
ResultSet rs = null;
DataList dataList = null;
//是否可以写,如果为false,必须要取消所有的按牛
boolean canWrite = true;
if (strACTION.equals("VIEW")) {
canWrite = false;
}
////////////////获得事物类别
SWLB SWLBclass = new SWLB(dataConn);
String strSWLB = "";
strSWLB = SWLBclass.getSWLB(iSecond_barid);
///
User user = new User(dataConn);
Position position = new Position(dataConn);
Role role = new Role(dataConn);
%>
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=Message.COMPANY_NAME%></title>
<link href="<%=strSkin%>css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
//获取本模块信息
Module module = new Module(dataConn);
moduleInfor_session = (ModuleInfor)module.getInfor(iModuleID);
stmt = dataConn.getConnection().createStatement();
dataList = new DataList(stmt);
String sMBID = Convert.toZeroStr(request.getParameter("MBID"));
//取得流程模板的信息
String MBMC = "";
rs = dataList.getResultSet("LC_MB","MBMC","MBID="+sMBID);
if (rs.next()) {
MBMC = Convert.toSpaceStr(rs.getString(1));
}
//参数
NodeInfor nodeInfor = null;
Node nodeClass = new Node(dataConn);
Iterator iterNode = nodeClass.getList("JDMB="+sMBID+ " ORDER BY JDSX ").iterator();
int id_before = 0; //插入节点时带的参数,以显示节点插入的位置
int id = 0;
String name = "";
String description = "";
String person = "";
String personName = "";
String personDescription = "";
int iMeetCheck = 0;
int iJDSX = 0;
String strZWMC = "";
String strZWID = "";
%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr class="toptr2">
<td>
<table width="100%" border=0 cellpadding=3 cellspacing=1 >
<tr>
<td width="5%"><input type="button" name="btnBack" value="" class="buttonClose" onClick="javaScript:window.close();"></td>
<td width="87%"> </td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" height="27">
<p align="left">流程名称:<%=MBMC%>
</td>
</tr>
<tr>
<td align="center">
<table width="330" border="1" cellpadding="3" cellspacing="0" bordercolor="#9999CC" >
<tr class="toptr3">
<td colspan=2>
<table width="100%" cellpadding="0" cellspacing="1">
<tr>
<td align="center" width="75%" >流程模板定制 </td>
</tr>
</table>
</td>
</tr>
</table>
<strong>↓</strong><br>
<table width="330" border="1" cellpadding="3" cellspacing="0" bordercolor="#9393C6">
<tr class="toptr3">
<td align="center" width="200">拟稿 </td>
<td align="right" width="100"> </td>
</tr>
<tr>
<td colspan=2>流程使用者 </td>
</tr>
<tr>
<td width="200"><font color="#669900">办理人员:使用者</font></td>
<td width="100"> </td>
</tr>
</table>
<a href="javascript:winOpen(<%=id%>,'<%=strSWLB%>','0','ADD');")><strong>↓</strong>←增加节点</a><br>
<%
//GylcSpPro gylcSpPro = new GylcSpPro();
while ( iterNode != null && iterNode.hasNext()) {
nodeInfor = (NodeInfor)iterNode.next();
id = nodeInfor.getJDID();
name = nodeInfor.getJDLXMC();
description = nodeInfor.getJDSM();
person = nodeInfor.getJDBLRY();
personDescription = nodeInfor.getJDBLSM();
iMeetCheck = nodeInfor.getJDHQ();
iJDSX = nodeInfor.getJDSX();
personName = "";
/**获取审批角色与审批职务*/
String SPJS = null;
String SPZW = null;
//SPJS = gylcSpPro.getJsmcByJdid(id);
//SPZW = gylcSpPro.getZwmcByJdid(id);
strZWMC = position.getZWMCS(String.valueOf(nodeInfor.getZWID()));
strZWID = role.getZWIDS(nodeInfor.getJSID(), nodeInfor.getJSBM());
strZWMC += position.getZWMCS(strZWID);
//人员
personName = user.getYGXMS(person) + " " + strZWMC;
if (nodeInfor.getSJLD() == 1) {
personName += " 上级领导";
}
%>
<table width="330" border="1" cellpadding="3" cellspacing="0" bordercolor="#9393C6">
<tr class="toptr3">
<td align="center" width="200"><%=name%> </td>
<td align="right" width="100"><a href="javascript:winOpen(<%=id%>,'<%=strSWLB%>','<%=iJDSX%>','UPDATE');">修改</a>
<a href="javaScript:goUrlConfirm('node_control.jsp?ACTION=DELETE&JDID=<%=id%>&MBID=<%=sMBID%>','确定要删除?');">删除 </a>
</td>
</tr>
<tr>
<td colspan=2><%=description%> </td>
</tr>
<tr>
<td width="200">
<font color="#669900">办理人员:</font><%=personName%>
<%
if(SPJS != null){
%>
<br>
<font color="#669900">办理角色:</font><%=SPJS%>
<%}%>
<%
if(SPZW != null){
%>
<br>
<font color="#669900">办理职务:</font><%=SPZW%>
<%}%>
</td>
<td width="100">是否会签:
<input type="checkbox" value="1" <%if (iMeetCheck==1) {%>checked="1"<%}%> disabled></td>
</tr>
</table>
<a href="javascript:winOpen(<%=id%>,'<%=strSWLB%>','<%=iJDSX%>','ADD');"><strong>↓</strong>←增加节点</a><br>
<%
}
%>
<table width="330" border="1" cellpadding="3" cellspacing="0" bordercolor="#9999CC" >
<tr class="toptr3">
<td colspan=2>
<table width="100%" cellpadding="0" cellspacing="1">
<tr>
<td align="center" width="75%" >流程模板结束 </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr class="toptr2">
<td>
<table width="100%" border=0 cellpadding=3 cellspacing=1 >
<tr>
<td width="5%"><input type="button" name="btnBack" value="" class="buttonClose" onClick="javaScript:window.close();"></td>
<td width="87%"> </td>
</tr>
</table>
</td>
</tr>
</table>
<%@ include file="/share/page/page_form.jsp" %>
<!--打开增加节点窗口-->
<SCRIPT LANGUAGE="JavaScript">
function winOpen(id, swlb, jdsx, ACTION) {
var MBID = <%=sMBID%>;
openWin=window.open('node_update.jsp?JDID=' + id + '&MBID=' + MBID + "&JDSX=" + jdsx + "&ACTION="+ ACTION,'','left=120,top=130,scrollbars=no,resizable=yes,status=no,width=450,height=500');
}
</SCRIPT>
<%
try {
if (dataConn != null) {
dataConn.close();
}
}
catch(Exception e) {}
%>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -