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

📄 appealtyperesult.jsp

📁 电信的网厅的整站代码
💻 JSP
字号:
<%@page contentType="text/html;charset=gb2312" pageEncoding="GBK"%>
<%@page import="java.util.*"%>
<%@page import="com.doone.fj1w.fjmgr.useroperinfo.Operappealtype"%>
<%@page import="com.doone.data.DacClient"%>
<%@page import="com.doone.data.DataTable" %>
<%@page import="com.doone.util.FileLogger" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>申请处理</title>
</head>
<%

  //type的值用来判断调转到哪个页面
   String strtype=request.getParameter("TYPE");
   if(strtype==null || strtype.equals("")){
     response.sendRedirect("Appealtypeframe.jsp");
   }

  //获取地市编号
  Operappealtype cshowinfo=new Operappealtype();
  String strcitycode=(String)session.getAttribute("citycodeadd");
  if(strcitycode==null || strcitycode.equals("")){
    strcitycode=request.getParameter("CITYCODE");
    if(strcitycode==null || strcitycode.equals("")){
       String strinfo="资源忙,请稍等!";
       session.setAttribute("OPERRESULT",strinfo);
       response.sendRedirect("resultinter.jsp");
    }
  }
  cshowinfo.setcitycode(strcitycode);


  //业务类别名称
  String strappealtypename=request.getParameter("APPEALTYPENAME");;
  if(strappealtypename!=null && !strappealtypename.equals("")){
    cshowinfo.setappealtypename(strappealtypename);
  }
     //详见系统参数配置表
  String strappealmode=request.getParameter("APPEALMODE");;
  if(strappealmode!=null && !strappealmode.equals("")){
    cshowinfo.setappealmode(strappealmode);
  }
  
  String procud_type=request.getParameter("procud_type");;
  if(procud_type!=null && !procud_type.equals("")){
    cshowinfo.setFAULTTYPE(procud_type);
  }
  
//上级序号
  String strupappealtypeid=request.getParameter("UPAPPEALTYPEID");;
  if(strupappealtypeid!=null && !strupappealtypeid.equals("")){
    cshowinfo.setupappealtypeid(strupappealtypeid);
  }

  int itype=Integer.parseInt(strtype);
  int iinsert=0;
  int iupdate=0;
  int idelete=0;
  int iexist=0;

  switch(itype){
    case 1:
      String sqrynum=cshowinfo.qryexistappealtype();
      int iqrynum=Integer.parseInt(sqrynum);
      if(iqrynum<1){
        iinsert=cshowinfo.insertappealtype();
      }else{
        iexist=1;
      }

     if(iinsert>0){
       String strinfo="您的当前的操作已经成功!";
       session.setAttribute("OPERRESULT",strinfo);
       response.sendRedirect("resultinter.jsp");
     }else{
       if(iexist==1){
       String strinfo="您配置的类别已经存在,请先删除!";
       session.setAttribute("OPERRESULT",strinfo);
       response.sendRedirect("resultinter.jsp");
       }else{
         String strinfo="您的当前的操作失败,可能没有正确提交信息!";
         session.setAttribute("OPERRESULT",strinfo);
         response.sendRedirect("resultinter.jsp");
       }
     }
    break;
    case 2:
      String sappealtypeid=(String)session.getAttribute("APPEALTYPEID");

      if(sappealtypeid==null || sappealtypeid.equals("")){
       String strinfo="资源忙,请稍等!";
       session.setAttribute("OPERRESULT",strinfo);
       response.sendRedirect("resultinter.jsp");
      }else{
       cshowinfo.setappealtypeid(sappealtypeid);
      }

      iupdate=cshowinfo.updateappealtype();
      if(iupdate<1){
       String strinfo="您的当前的操作失败,可能没有正确提交信息!";
       session.setAttribute("OPERRESULT",strinfo);
       response.sendRedirect("resultinter.jsp");
      }else{
         String strinfo="您的当前的操作已经成功!";
         session.setAttribute("OPERRESULT",strinfo);
         response.sendRedirect("resultinter.jsp");
      }
    break;
    case 3:
      String sdelappealtypeid=(String)session.getAttribute("APPEALTYPEID");

      if(sdelappealtypeid==null || sdelappealtypeid.equals("")){
        sdelappealtypeid=request.getParameter("APPEALTYPEID");
        if(sdelappealtypeid==null || sdelappealtypeid.equals("")){
         String strinfo="资源忙,请稍等!";
         session.setAttribute("OPERRESULT",strinfo);
         response.sendRedirect("resultinter.jsp");
        }
      }
      cshowinfo.setappealtypeid(sdelappealtypeid);
      idelete=cshowinfo.deleteappealtype("Td_AppealType","APPEALTYPEID");
    if(idelete>0){
      //触发更新的操作
       String strinfo="您的当前的操作已经成功!";
       session.setAttribute("OPERRESULT",strinfo);
       response.sendRedirect("resultinter.jsp");
    }else{
         String strinfo="您的当前的操作失败,可能没有正确提交信息!";
         session.setAttribute("OPERRESULT",strinfo);
         response.sendRedirect("resultinter.jsp");
    }

//      String[] arrayshowinfo=request.getParameterValues("SHOWINFOIDFORM");
//
//     int delresut=0;
//     if(arrayshowinfo.length>0){
//       for(int t=0;t<arrayshowinfo.length;t++){
//          String strid=arrayshowinfo[t];
//          cshowinfo.setshowinfoid(strid);
//          delresut=cshowinfo.deleteshowinfo("td_showinfo",strid);
//          if(delresut>0){
//            idelete+=1;
//          }
//       }
//     }
//    if(idelete>1){
//      //触发更新的操作
//       String strinfo="您的当前的操作已经成功!";
//       session.setAttribute("OPERRESULT",strinfo);
//       response.sendRedirect("resultinter.jsp");
//    }else{
//         String strinfo="您的当前的操作失败,可能没有正确提交信息!";
//         session.setAttribute("OPERRESULT",strinfo);
//         response.sendRedirect("resultinter.jsp");
//    }

    break;
  }


//FileLogger.getLogger().info(insresut+":000insresut");
%>
<body>
</body>
</html>

⌨️ 快捷键说明

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