📄 senddoclog.java
字号:
/*
* SendDocLog.java
* Generated using xgen and texen from bean.vm
* Sat Mar 06 12:10:08 CST 2004
*/
package com.sure.oa.senddoc;
import java.util.*;
import com.sure.util.*;
import com.sure.oa.orgnization.*;
import com.sure.dataabstraction.*;
import com.sure.businesslogic.NotFoundException;
import com.sure.dataabstraction.DBPoolException;
import java.sql.*;
/**
* 存放发文日志信息
* @author mailto:datonghuiren@sohu.com
*/
public class SendDocLog extends SendDocLogBase {
/**
* 获得操作ID所对应的步骤名称
* OrperateId编号:0:登记 1:修改 2:登记完毕 3:盖章 4:发送 5:重发
*/
public String getOperateName(){
String retValue="";
if(operateId.equals("0")) retValue="登记";
if(operateId.equals("1")) retValue="修改";
if(operateId.equals("2")) retValue="登记完毕";
if(operateId.equals("3")) retValue="盖章";
if(operateId.equals("4")) retValue="发送";
if(operateId.equals("5")) retValue="重发";
return retValue;
}
/**
* 如果操作ID为发送或重发(4或5)则返回本步操作所对应的收文单位
*/
public String getReceiveUnitName() throws SQLException,DBPoolException, NotFoundException {
String retValue="";
Connection cn=DBManager.getConnection();
Unit u;
try{
if(operateId.equals("4") || operateId.equals("5")){
String strIds1[] = StringUtils.split(memo,";");
String printnumber[] = StringUtils.split(strIds1[1],",");
String strIds[] = StringUtils.split(strIds1[0], ",");
for (int i = 0; i < strIds.length; i++) {
String where = "Where unitId = " + strIds[i] + "";
Vector beans = UnitPersistent.load(cn, where);
if (beans.size() > 0) {
u = (Unit) beans.firstElement();
retValue += u.getUnitQuancheng()+"("+printnumber[i]+");";
}
}
}
}
finally{
cn.close();
return retValue;
}
}
/**
* 返回本步操作所对应的文件标题(docTitle)
*/
public String getDocTitle() throws SQLException,DBPoolException, NotFoundException {
String retValue="";
try{
SendDocForm form = SendDocFormManager.getDoc(docId);
retValue=form.getDocTitle();
}
catch(Exception e){
e.printStackTrace();
}
return retValue;
}
/**
* 返回本步操作所对应的文件文号(docNo)
*/
public String getDocNo() throws SQLException,DBPoolException, NotFoundException {
String retValue="";
try{
SendDocForm form = SendDocFormManager.getDoc(docId);
retValue=form.getDocNo();
}
catch(Exception e){
e.printStackTrace();
}
return retValue;
}
/**
*如果本步操作为盖章(orperateId:3)则返回所用印章名称,否则返回空串
*/
public String getSealName(){
String retValue="";
if(operateId.equals("3")){
retValue=memo.substring(0,memo.length()-1);
}
return retValue;
}
/**
*返回操作单位的名称
*/
public String getOperateUnitName()throws SQLException,DBPoolException, NotFoundException {
String retValue="";
Unit u=UnitManager.getUnits(unitId);
retValue=u.getUnitName();
return retValue;
}
public String getSealConfirm(){
String returnValue = "";
try{
SendDocForm form = SendDocFormManager.getDoc(docId);
returnValue=form.getSealConfirm();
}
catch(Exception e){
e.printStackTrace();
}
return returnValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -