📄 node_update.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.property.*" %>
<%@ page import="com.ijipin.system.*" %>
<%@ include file="/userinfor.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 = "";
String sCond = "";
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;
//获取本模块信息
Module module = new Module(dataConn);
moduleInfor_session = (ModuleInfor)module.getInfor(iModuleID);
////////////////获得事物类别
SWLB SWLBclass = new SWLB(dataConn);
String strSWLB = "";
strSWLB = SWLBclass.getSWLB(iSecond_barid);
/////办理类型
NameInfor nameInfor = null;
Name nameClass = new Name(dataConn);
Iterator iterName = nameClass.getList("SWLB='"+strSWLB+ "'").iterator();
%>
<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">
<%
stmt = dataConn.getConnection().createStatement();
dataList = new DataList(stmt);
String sMBID = Convert.toZeroStr(request.getParameter("MBID"));
String sJDID = Convert.toZeroStr(request.getParameter("JDID"));
String sJDSX = Convert.toZeroStr(request.getParameter("JDSX"));
String strACTION = Convert.toSpaceStr(request.getParameter("ACTION"));
//选中的人的id;
String id_selected = Convert.toZeroStr(request.getParameter("id_selected"));
String name_selected = "";
//参数
Node nodeClass = new Node(dataConn);
NodeInfor nodeInfor = null;
User user = new User(dataConn);
String BLLXMC = "";
String name = "";
String desc = "";
String lastday = "";
String person = "";
String personName = "";
String personDesc = "";
int meetCheck = 0;
int sjldCheck = 0;
int JSBM = 0;
int JSID = 0;
int ZWBM = 0;
int ZWID = 0;
if (strACTION.equals("UPDATE")) {
nodeInfor = (NodeInfor)nodeClass.getInfor(Integer.parseInt(sJDID));
BLLXMC = nodeInfor.getJDLXMC();
name = nodeInfor.getJDMC();
desc = nodeInfor.getJDSM();
lastday = Integer.toString(nodeInfor.getJDBLQX());
person = nodeInfor.getJDBLRY();
personDesc = nodeInfor.getJDBLSM();
meetCheck = nodeInfor.getJDHQ();
JSBM = nodeInfor.getJSBM();
JSID = nodeInfor.getJSID();
ZWBM = nodeInfor.getZWBM();
ZWID = nodeInfor.getZWID();
sjldCheck = nodeInfor.getSJLD();
personName = user.getYGXMS(person);
}
%>
<br>
<form name="form" method="post" action="node_control.jsp">
<input type="hidden" name="ACTION" value="<%=strACTION%>">
<input type="hidden" name="JDID" value="<%=sJDID%>">
<input type="hidden" name="MBID" value="<%=sMBID%>">
<input type="hidden" name="person" value="<%=person%>">
<input type="hidden" name="SWLB" value="<%=strSWLB%>">
<input type="hidden" name="JDSX" value="<%=sJDSX%>">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr >
<td align="center">
<table width="96%" border="1" align="center" cellpadding="2" cellspacing="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
<tr class="toptr">
<td> </td>
<td width="319" align="right" > </td>
</tr>
<tr>
<td>
<p align="right">办理类型:</p>
</td>
<td>
<select name="name" class="search" style="width:280">
<option selected value=""> --请选择-- </option>
<%
int id_type = 0;
String name_type = "";
while (iterName.hasNext()) {
nameInfor = (NameInfor)iterName.next();
id_type = nameInfor.getBLLXID();
name_type = nameInfor.getBLLXMC();
%>
<option <% if (name_type.equals(BLLXMC)) { %> selected <% } %> value="<%=name_type%>"><%=name_type%> </option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td valign="top">
<p align="right">流程节点说明:</p>
</td>
<td><textarea name="description" rows="4" class="drpdwn" style="width:280" cols="20"><%=desc%></textarea></td>
</tr>
<tr>
<td valign="top">
<p align="right">办理期限:</p>
</td>
<td><input type="text" name="lastday" class="tex1" <% if (!lastday.equals("0")) { %> value="<%=lastday%>" <% } %> style="width:240">
</td>
</tr>
<tr>
<td valign="top">
<p align="right">办理人员:</p>
</td>
<td>
<textarea name="personName" rows="4" class="drpdwn" disabled="true" style="width:280" readonly cols="20"><%=personName%></textarea>
<input type="button" name="Submit2" value="∨" onClick="javascript:winOpen();" class="minbttn">
</td>
</tr>
<tr>
<td valign="top">
<p align="right"> 办理角色:</p>
</td>
<td> <table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<%
sTable = "XT_BMB";
sField = "BMID,BMBH,BMMC";
sCond = " 1=1 ORDER BY BMBH";
ResultSet rsDept = dataList.getResultSet(sTable, sField, sCond);
int iBMID = 0;
String sBMMC = "";
String sBMBH = "";
String sListTip = "";
%>
<td width="44%"><select name="JSBM" onChange="javaScript:changeJsbm(document.form.JSBM.options[document.form.JSBM.selectedIndex].value);" class="search" id="bm1" style="width:95%">
<option value="" selected>==所有部门==</option>
<%
while (rsDept.next()){
iBMID = rsDept.getInt("BMID");
sBMBH = rsDept.getString("BMBH");
sBMMC = rsDept.getString("BMMC");
int j = 1 ;
sListTip = "" ;
while (j < (sBMBH.length()/2)){
sListTip = sListTip + " " ;
j = j + 1;
}
%>
<option value="<%=iBMID%>" <%if(iBMID==JSBM){%>selected<%}%> ><%=sListTip + sBMMC%></option>
<% } %>
</select></td>
<td width="44%">
<%
sTable = "XT_ZWB a, XT_JSB b";
sField = "distinct(a.ZWJS), b.JSMC";
sCond = "a.ZWJS <>0 and a.ZWJS = b.JSID";
ResultSet jsRs = dataList.getResultSet(sTable, sField, sCond);
%>
<select name="SPJS" class="search" style="width:95%">
<option value="" selected> ==请选择角色== </option>
<%
int sJSID = 0;
String sJSMC = "";
while(jsRs.next()){
sJSID = jsRs.getInt(1);
sJSMC = jsRs.getString(2);
%>
<option value="<%=sJSID%>"<%if(sJSID==JSID){%>selected<%}%>><%=sJSMC%></option>
<%}%>
</select></td>
<td width="1%"><input type="button" name="Submit10" value="∨" onClick="javascript:openJsView();" class="minbttn"></td>
</tr>
</table></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -