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

📄 guanli_0005ftype_0005fqx_0002ejsp_jsp.java

📁 jsp数据库系统
💻 JAVA
字号:
package guanli;

import java.util.*;
import zhaobiao.db.*;
import zhaobiao.data.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class guanli_0005ftype_0005fqx_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public guanli_0005ftype_0005fqx_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
        throws java.io.IOException, ServletException {

        JspFactory _jspxFactory = null;
        PageContext pageContext = null;
        HttpSession session = null;
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html; charset=GBK");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin [file="/guanli/guanli_type_qx.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/guanli/guanli_type_qx.jsp";from=(1,31);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/guanli/guanli_type_qx.jsp";from=(2,49);to=(4,0)]
                out.write("\r\n\r\n");

            // end
            // begin [file="/guanli/guanli_type_qx.jsp";from=(4,2);to=(77,2)]
                
                
                  request.setCharacterEncoding("GBK");
                  long pjid=0;
                  if(request.getParameter("pjid")!=null)
                    pjid=Long.parseLong(request.getParameter("pjid").trim());
                
                  NewProject newpj=new NewProject();
                
                  String[] oldlist;
                  String[] typeidlist;
                  typeidlist=request.getParameterValues("typeidlist");
                  oldlist=request.getParameterValues("oldlist");
                
                  long type_id=0;
                  if(typeidlist!=null)
                  {
                    for(int i=0;i<typeidlist.length;i++)
                    {
                      boolean flag=false;
                      if(oldlist!=null)
                      {
                        for(int j=0;j<oldlist.length;j++)
                        {
                          if(oldlist[j].equals(typeidlist[i]))
                            flag=true;
                        }
                      }
                      if(!flag)
                      {
                        type_id=Long.parseLong(typeidlist[i]);
                        newpj.addProjectType(pjid,type_id);
                      }
                    }
                  }
                  if(oldlist!=null)
                  {
                    for(int i=0;i<oldlist.length;i++)
                    {
                      boolean flag1=false;
                      if(typeidlist!=null)
                      {
                        for(int j=0;j<typeidlist.length;j++)
                        {
                          if(typeidlist[j].equals(oldlist[i]))
                            flag1=true;
                        }
                      }
                      if(!flag1)
                      {
                        type_id=Long.parseLong(oldlist[i]);
                        newpj.delProjectidTypeid(pjid,type_id);//鍒犻櫎椤圭洰鈥斺

⌨️ 快捷键说明

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