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

📄 dms_0002freport_0002freportclient010_0002ejsp_jsp.java

📁 dgbas公文管理核心java源码
💻 JAVA
字号:
package DMS.report;

import com.jasson.integration.agentflow.AgentFlowWrapper;
import com.jasson.integration.agentflow.Task;
import com.jasson.integration.agentflow.Department;
import com.flowring.struts.webapp.User;
import si.wfcidata.AFTask;
import si.wfcidata.AFTaskList;
import si.wfcidata.*;
import si.wfinterface.WFCI;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class DMS_0002freport_0002fReportClient010_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/DMS/report/ReportClient010.jsp";from=(11,0);to=(11,77)]
    // end
    // begin [file="/DMS/report/ReportClient010.jsp";from=(12,0);to=(12,79)]
    // end

    static {
    }
    public DMS_0002freport_0002fReportClient010_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=Big5");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

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

            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(0,26);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(1,47);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(2,69);to=(3,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(3,57);to=(4,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(4,63);to=(5,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(5,51);to=(6,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(6,38);to=(7,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(7,42);to=(8,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(8,33);to=(9,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(9,39);to=(10,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(10,32);to=(11,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient010.jsp";from=(11,0);to=(11,77)]
                com.jasson.common.ExtendString ExStr = null;
                boolean _jspx_specialExStr  = false;
                 synchronized (pageContext) {
                    ExStr= (com.jasson.common.ExtendString)
                    pageContext.getAttribute("ExStr",PageContext.PAGE_SCOPE);
                    if ( ExStr == null ) {
                        _jspx_specialExStr = true;
                        try {
                            ExStr = (com.jasson.common.ExtendString) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jasson.common.ExtendString");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.jasson.common.ExtendString", exc);
                        }
                        pageContext.setAttribute("ExStr", ExStr, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialExStr == true) {
            // end
            // begin [file="/DMS/report/ReportClient010.jsp";from=(11,0);to=(11,77)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(11,77);to=(12,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient010.jsp";from=(12,0);to=(12,79)]
                com.jasson.common.ExtendCalendar ExCal = null;
                boolean _jspx_specialExCal  = false;
                 synchronized (pageContext) {
                    ExCal= (com.jasson.common.ExtendCalendar)
                    pageContext.getAttribute("ExCal",PageContext.PAGE_SCOPE);
                    if ( ExCal == null ) {
                        _jspx_specialExCal = true;
                        try {
                            ExCal = (com.jasson.common.ExtendCalendar) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.jasson.common.ExtendCalendar");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"com.jasson.common.ExtendCalendar", exc);
                        }
                        pageContext.setAttribute("ExCal", ExCal, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialExCal == true) {
            // end
            // begin [file="/DMS/report/ReportClient010.jsp";from=(12,0);to=(12,79)]
                }
            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(12,79);to=(13,0)]
                out.write("\r\n");

            // end
            // begin [file="/DMS/report/ReportClient010.jsp";from=(13,2);to=(31,0)]
                
                int year=ExCal.getYear(ExCal.getDate());
                int month=ExCal.getMonth(ExCal.getDate());
                int day=ExCal.getDay(ExCal.getDate());
                WFCI wfci=(WFCI)getServletContext().getAttribute("wfci");
                AgentFlowWrapper agentFlowWrapper = new AgentFlowWrapper(wfci);
                com.jasson.integration.agentflow.Department[] arrDeptLev1 = agentFlowWrapper.getSubDepartment(null);
                String MyDeptName="";
                User user = (User)session.getAttribute("user");
                if(user!=null)
                {
                	String strMemberID = ExStr.nullToSpace(user.getMemberId());
                	String strDepartmentID = agentFlowWrapper.getDepartmentID(strMemberID);
                	Department Dept=agentFlowWrapper.getDepartment(strDepartmentID); //取得部門infor
                	if(Dept!=null)
                		MyDeptName = Dept.getName();
                	
                }
            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(31,2);to=(65,8)]
                out.write("\r\n<html>\r\n<HEAD>\r\n<script src=\"../inc/toUpper.js\" content=\"text/javascript\"></script>\r\n<link rel=\"stylesheet\" href=\"../inc/cn.css\" type=\"text/css\">\r\n<LINK href=\"../inc/DatePicker.css\" rel=stylesheet type=text/css>\r\n<SCRIPT language=javascript src=\"../inc/DateObject.js\"></SCRIPT>\r\n<SCRIPT language=javascript src=\"../inc/DatePicker.js\"></SCRIPT>\r\n<SCRIPT language=javascript src=\"../inc/editlib.js\"></SCRIPT>\r\n<SCRIPT language=\"javascript\">\r\nfunction btnOK_onclick(PrintTag){\r\n    form1.submit();\r\n    return false;\r\n}\r\n\r\n</SCRIPT>\r\n\r\n</HEAD>\r\n\r\n<BODY>\r\n<form name=\"form1\" method=\"post\" action=\"ReportAct010.jsp\">\r\n  <table width=\"100%\" >\r\n    <tr>\r\n      <td  class=\"title\" width=\"2%\"><img src=\"../images/who.gif\"></td>\r\n      <td  class=\"title\" width=\"88%\"><label>公文時效統計表</label> </td>\r\n      <td  class=\"title\" width=\"10%\">&nbsp;</td>\r\n    </tr>\r\n  </table>\r\n  <br>\r\n  <table width=\"90%\">\r\n    <tr align=\"left\" > \r\n      <th  align=left nowrap width=\"29%\">請輸入單位:\r\n      <td align=left class=\"tr_bg1\" width=\"71%\"> \r\n        <SELECT id=DeptID name=DeptID style=\"HEIGHT: 22px; WIDTH: 155px\" class=\"select\" onclick=\"SelectDept()\">\r\n        ");

            // end
            // begin [file="/DMS/report/ReportClient010.jsp";from=(65,10);to=(84,1)]
                
                	if(arrDeptLev1!=null)
                	{
                	
                	    for( int i = 0 ; i< arrDeptLev1.length; i++)
                	    {
                	         out.print("<option value='"+arrDeptLev1[i].getID()+"'>"+arrDeptLev1[i].getName()+"</option>");
                	         Department[] arrDeptLev2 =agentFlowWrapper.getSubDepartment(arrDeptLev1[i].getID());
                	        if(arrDeptLev2!=null)
                	          for( int j = 0 ; j< arrDeptLev2.length; j++)
                	            out.print("<option value='"+arrDeptLev2[j].getID()+"'>"+arrDeptLev2[j].getName()+"</option>");
                	        else
                	            System.out.println("沒有得到二級單位");
                	    }//end for( int i = 0 ; i< arrDeptLev1.length; i++)
                	}//end if(arrDeptLev1!=null)
                	else
                	{
                	    System.out.println("沒有得到一級單位");
                	}
                	
            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(84,3);to=(114,46)]
                out.write("\r\n        </SELECT>\r\n      </td>\r\n    </tr>\r\n    <tr align=\"left\">\r\n      <th nowrap > 選擇收文或創稿年月:</th>\r\n      <td class=\"tr_bg1\">\r\n        <input type=\"text\" value=\"92\" name=\"Year\" size=\"4\" class=\"text\" onblur=\"return chkYear(this)\">\r\n        年\r\n        \r\n        <SELECT name=\"Month\" style=\"height: 23; width: 45\" size=\"1\" class=\"select\">\r\n        <option value='1' >1月</option>\r\n<option value='2' >2月</option>\r\n<option value='3' >3月</option>\r\n<option value='4' >4月</option>\r\n<option value='5'  selected>5月</option>\r\n<option value='6' >6月</option>\r\n<option value='7' >7月</option>\r\n<option value='8' >8月</option>\r\n<option value='9' >9月</option>\r\n<option value='10' >10月</option>\r\n<option value='11' >11月</option>\r\n<option value='12' >12月</option>\r\n\r\n        </SELECT>\r\n        月\r\n      </td>\r\n    </tr>\r\n  </table>\r\n  <br>\r\n  <INPUT type=hidden name=\"MyDeptName\" value=\"");

            // end
            // begin [file="/DMS/report/ReportClient010.jsp";from=(114,49);to=(114,59)]
                out.print(MyDeptName);
            // end
            // HTML // begin [file="/DMS/report/ReportClient010.jsp";from=(114,61);to=(127,0)]
                out.write("\">\r\n  <INPUT type=button value=列印 name=btnOK LANGUAGE=javascript onclick=\"return btnOK_onclick(1)\" class=\"button\">\r\n\r\n  <INPUT type=button value=預覽 name=btnOK LANGUAGE=javascript onclick=\"return btnOK_onclick(2)\" class=\"button\">\r\n\r\n  <input type=button value=\"返回\" id=btnReBack LANGUAGE=javascript onclick=\"window.history.back()\" class=\"button\">\r\n\r\n\r\n</form>\r\n\r\n</BODY>\r\n\r\n</HTML>\r\n");

            // end

        } catch (Throwable t) {
            if (out != null && out.getBufferSize() != 0)
                out.clearBuffer();
            if (pageContext != null) pageContext.handlePageException(t);
        } finally {
            if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
        }
    }
}

⌨️ 快捷键说明

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