📄 changedocservlet.java
字号:
package com.jasson.presentation.document;
import com.jasson.integration.agentflow.AgentFlowWrapper;
import com.jasson.integration.agentflow.Task;
import com.flowring.struts.webapp.User;
import com.jasson.integration.agentflow.Department;
import com.jasson.business.document.ReceDocDAO;
import com.jasson.business.document.CreateDocDAO;
import com.jasson.business.document.DocSendDAO;
import com.jasson.business.document.DocNumberControlDAO;
import com.jasson.business.system.DocPhraseCategoryDAO;
import com.jasson.business.document.DocJudgementInfo;
import com.jasson.business.document.DocPhraseInfo;
import com.jasson.business.document.DocSendInfo;
import com.jasson.business.document.SendTargetInfo;
import com.jasson.business.document.SendTargetDAO;
import com.jasson.business.system.*;
import com.jasson.common.*;
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author cookie
* @version 1.0
*/
public class ChangeDocServlet extends HttpServlet{
ExtendString ExStr=new ExtendString();
public void service (HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
HttpSession session = (HttpSession)request.getSession();
SendTargetDAO sendTargetDAO = new SendTargetDAO();
SendTargetInfo sendTargetInfo=new SendTargetInfo();
try{
String[] strValues=(String[])request.getParameterValues("strValues");
if(strValues!=null)
{
System.out.println("len"+strValues.length);
for(int i=0; i<strValues.length;i++)
{
try{
String[] NOID=new String[2];
String SendNO="";
String RecipientID="";
if(ExStr.split(strValues[i],";",NOID)>0)
{
SendNO=NOID[0];
RecipientID=NOID[1];
sendTargetInfo.setSendNO(SendNO);
sendTargetInfo.setRecipientID(Integer.parseInt(RecipientID));
sendTargetDAO.addSendTargetInfo(sendTargetInfo);
}
if(!sendTargetDAO.transferByXml())
{
System.out.println("error msg "+SendNO+"-"+RecipientID);
System.out.println("error msg "+sendTargetDAO.getErrMsg());
}
}
catch (Exception ex)
{
System.out.println("error msg:"+ex.getMessage());
continue;
}
}
}
}
catch (Exception ex)
{
System.out.println("main");
System.out.println("error msg:"+ex.getMessage());
}
//System.out.println(sendTargetDAO.findByNotTran());
//System.out.println(sendTargetDAO.findByNotTran().length);
request.setAttribute("SendTargetDAO",sendTargetDAO.findByNotTran());
String strForward="/DMS/document/ChangeDoc.jsp";
forward(strForward,request,response);
return;
}
private void forward(String strForward, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
RequestDispatcher dispatcher = request.getRequestDispatcher(strForward);
dispatcher.forward((ServletRequest)request, (ServletResponse)response);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -