基于web service的中小企业管理工作流系统源代码

上传人:bao****ty 文档编号:117195380 上传时间:2019-11-18 格式:DOC 页数:58 大小:234.50KB
返回 下载 相关 举报
基于web service的中小企业管理工作流系统源代码_第1页
第1页 / 共58页
基于web service的中小企业管理工作流系统源代码_第2页
第2页 / 共58页
基于web service的中小企业管理工作流系统源代码_第3页
第3页 / 共58页
基于web service的中小企业管理工作流系统源代码_第4页
第4页 / 共58页
基于web service的中小企业管理工作流系统源代码_第5页
第5页 / 共58页
点击查看更多>>
资源描述

《基于web service的中小企业管理工作流系统源代码》由会员分享,可在线阅读,更多相关《基于web service的中小企业管理工作流系统源代码(58页珍藏版)》请在金锄头文库上搜索。

1、基于Web Service的中企业管理工作流系统源代码目 录一、工作流引擎部分代码11、Department.java12、HistoryManage.java43、nodeInstance.java84、Node.java155、Workflow.java19二、服务类代码261、DepartmentService.java262、HistoryRecordService.java273、InstanceNodeService.java274、InstanceWorkfolwService.java285、Login.java326、UserService.java327、WorkflowS

2、ervice.java33三、客户端部分代码351、CreateNodeInfoPage.jsp352、Record.jsp393、UserService.wsdl424、InstanceNodeService.wsdl465、Login.wsdl53基于Web Service的中小企业管理工作流系统第56页一、工作流引擎部分代码1、Department.javapackage workflow;import CSS.PoolBean;import java.io.Serializable;import java.sql.ResultSet;public class Department im

3、plements Serializable private static final long serialVersionUID = -6919998195498831828L;public static PoolBean pool = null; public int nId; public int getnId() return nId;public void setnId( int nId ) this.nId = nId;public String getName() return nName; public void setName(String nName) this.nName

4、= nName; public String nName; public void Init(PoolBean poolBean) this.refresh(); pool = poolBean; public void refresh() this.nId = 0; this.nName = ; /* * 创建一个部门 * * return boolean */ public boolean CreateDepartment() boolean flag; String sql; try sql = insert into department (d_name) values( + this

5、.getName() + ); nId = pool.Insert(sql); flag = true; catch (Exception e) flag = false; e.getMessage(); return flag; /* * param i 部门的ID * return boolean */ public boolean open(int i) boolean flag = false; String sql; sql = select d_name from department where id= + i; try ResultSet rs = pool.ExecuteQu

6、ery(sql); while (rs.next() nName = rs.getString(d_name); flag = true; rs.close(); catch (Exception e) flag = false; refresh(); e.getMessage(); return flag; /* * * return Department */ public Department openAll() String sql=; sql=select id from department; int i=0; Department departments=null; Depart

7、ment department=new Department(); try int cnt=pool.GetCountVal(sql); if(cnt=0) return null; departments=new Departmentcnt; ResultSet rs=pool.ExecuteQuery(sql); try while (rs.next() departmentsi=department.openDepartment(rs.getInt(id); i+; catch (Exception ex) ex.getMessage(); finally try rs.close();

8、 catch (Exception exception) exception.getMessage(); catch (Exception e) e.getMessage(); return departments; /* * * param id 部门的ID * return 一个部门实例 */ public Department openDepartment(int id) Department department = new Department(); String sql = select d_name from department where id= + id; try Resu

9、ltSet rs = pool.ExecuteQuery(sql); if (rs.next() department.nId = id; department.nName = rs.getString(d_name); rs.close(); catch (Exception e) this.refresh(); e.getMessage(); return null; return department; public boolean Delete(int departmentId) boolean flag=false; String sql=delete from department

10、 where id=+departmentId; try flag=pool.execute( sql ); catch( Exception e ) / TODO: handle exceptionSystem.out.print( e.getMessage()+ delete department error! );flag=false; return flag; 2、HistoryManage.javapackage workflow;/* * Created with IntelliJ IDEA. * User: lixiang * Date: 13-3-7 * Time: 下午1:2

11、8 * To change this template use File | Settings | File Templates. */import java.sql.*;import CSS.Pool;public class HistoryManage PoolBean pool = new PoolBean(); public int getnID() return nID;public void setnID( int nID ) this.nID = nID;public int getnInstanceid() return nInstanceid;public void setnInstanceid( int nInstanceid ) this.nInstanceid = nInstanceid;public int getnInstanceNodeid() return nInstanceNodeid;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号