⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pdf_locate_getpara.java

📁 ERO系统.针对生产型、分销型、服务型企业等不同的行业特点
💻 JAVA
字号:
/*
 *this file is part of nseer erp
 *Copyright (C)2006-2010 Nseer(Beijing) Technology co.LTD/http://www.nseer.com 
 *
 *This program is free software; you can redistribute it and/or
 *modify it under the terms of the GNU General Public License
 *as published by the Free Software Foundation; either
 *version 2 of the License, or (at your option) any later version.
 */
package intrmanufacture.export;
 
 
import javax.servlet.http.*;
import javax.servlet.*;
import java.util.* ;
import java.io.* ;
import include.excel_export.Masking;
import include.excel_export.Solid;
import include.nseer_cookie.*;

public class pdf_locate_getpara extends HttpServlet{

public synchronized void service(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException{

ServletContext application;
HttpSession session=request.getSession();
Masking mask = new Masking("xml/intrmanufacture/data_excel.xml");
Solid writer=new Solid("xml/intrmanufacture/pdf_export.xml");

try{
String timea=request.getParameter("timea");
String timeb=request.getParameter("timeb");
String first_kind_name="";
String second_kind_name="";
String third_kind_name="";
first_kind_name=request.getParameter("select1");
if(first_kind_name==null) first_kind_name="";
String select2=request.getParameter("select2");
if(select2!=null&&!select2.equals("")){
StringTokenizer tokenTO1 = new StringTokenizer(select2,"/");        
            while(tokenTO1.hasMoreTokens()) {
                first_kind_name = tokenTO1.nextToken();
				second_kind_name = tokenTO1.nextToken();
		}
}
String select3=request.getParameter("select3");
if(select3!=null&&!select3.equals("")){
StringTokenizer tokenTO2 = new StringTokenizer(select3,"/");        
            while(tokenTO2.hasMoreTokens()) {
                first_kind_name = tokenTO2.nextToken();
				second_kind_name = tokenTO2.nextToken();
				third_kind_name = tokenTO2.nextToken();
		}
}
String intrmanufacturer_ID=request.getParameter("intrmanufacturer_ID");
String intrmanufacture_ID=request.getParameter("intrmanufacture_ID");
String keyword=request.getParameter("keyword");
if(timea==null) timea="";
if(timeb==null) timeb="";
if(intrmanufacture_ID==null) intrmanufacture_ID="";
if(keyword==null) keyword="";
session.setAttribute("timea",timea);
session.setAttribute("timeb",timeb);
session.setAttribute("first_kind_name",first_kind_name);
session.setAttribute("second_kind_name",second_kind_name);
session.setAttribute("third_kind_name",third_kind_name);
session.setAttribute("intrmanufacturer_ID",intrmanufacturer_ID);
session.setAttribute("intrmanufacture_ID",intrmanufacture_ID);
session.setAttribute("keyword",keyword);
   String tablenick=request.getParameter("tablenick");
   session.setAttribute("table",tablenick);
   String tablename=mask.getTableNameFormNick(tablenick);
   String[] cols=request.getParameterValues("col");

   if(cols==null){
	response.sendRedirect("intrmanufacture/export/pdf_locate_getpara_a.jsp?tablenick="+toUtf8String.utf8String(exchange.toURL(tablenick))+"");
	}else{
	String[] colsName=new String[cols.length];
   for(int i=0;i<cols.length;i++) {
     colsName[i]=mask.getColumnName(tablenick,cols[i]);
   }
   writer.update(tablename,tablenick,colsName,cols);
   response.sendRedirect("intrmanufacture_export_pdf_ok");
}

}
catch (Exception ex){
ex.printStackTrace();
}
}
} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -