/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-08-02 03:14:15 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import wiseoa.*;
import wiseoa.mail.jstl.*;
import wiseoa.news.jstl.*;
import wiseoa.util.*;
import jun.db.util.*;
import org.json.*;
import wiseoa.mail.jstl.*;
import IM.server.*;
import weixin.*;
import wiseoa.home.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.mail.jstl.*;

public final class m_002dwork_002dhome_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(1);
    _jspx_dependants.put("/rightverify_login.jsp", Long.valueOf(1517794822543L));
  }

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
  }

  public void _jspDestroy() {
  }

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

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	// æ ¡éªææ OAçæé
	User user_1211 = User.getUserFromRequest(request);

	if (user_1211.getId() < 0) //å¦ææ²¡æç»å½ä¿¡æ¯ï¼é£ä¹çä¸ä¸cookie
	{

		javax.servlet.http.Cookie ck[] = request.getCookies();
		String username_ = "";
		String password_ = "";

		if (ck != null)
		{
			for (int i = 0; i < ck.length; i++)
			{

				if (ck[i].getName().equalsIgnoreCase("username")) username_ = wiseoa.util.Escape.unescape(ck[i].getValue());
				if (ck[i].getName().equalsIgnoreCase("password")) password_ = FF.DecryptString (ck[i].getValue());

			}
		}

		String pass = Login.Validate(username_, password_, "", request, response, getServletContext(), "");
		if (! pass.equals(""))
		{

		 
			String subpath = (String) session.getAttribute("wiseoaappsubpath");
			if (subpath == null) subpath = "";
			response.sendRedirect(subpath + "/SystemTip.jsp?info=" + URLEncoder.encode(pass, "UTF-8"));
			return;
		}
	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");


	 MyselfInfo mi= new MyselfInfo ( request);
	
 	User user = User.getUserFromRequest(request);
	
	String  action=  FF.GetStringFromRequest(request,"action", "" );
	
	String  old=  FF.GetStringFromRequest(request,"old", "" );
	
 	if(  FF.GetIntFromRequest(request,"old",0 )==0)
 	{
 		
	if( action.equals("") && old.equals("")) 	response.sendRedirect("index.html?userid="+user.getId()+"&ver="+ System.currentTimeMillis()); //前台需要用它来取用户信息
	
	if( action.equals("todo_bytype") && old.equals(""))  response.sendRedirect("index.html?userid="+user.getId()+"&ver="+ System.currentTimeMillis()+"#/taskManage?id=getWorkCountByFlowType"); //前台需要用

	if( action.equals("donedoing") && old.equals(""))  response.sendRedirect("index.html?userid="+user.getId()+"&ver="+ System.currentTimeMillis()+"#/taskList?box=donedoing"); //前台需要用
 	}
	
//	return ;
	


      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("<head>\r\n");
      out.write("<title>我的工作</title>\r\n");
      out.write("\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\r\n");
      out.write(" \r\n");
      out.write("    ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "global2.jsp?swipeout=1", out, true);
      out.write(" \r\n");
      out.write("    ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "qa_toolbar2.jsp?work=active&v=1", out, true);
      out.write(" \r\n");
      out.write("  \r\n");
      out.write(" <style>\r\n");
      out.write("\r\n");
      out.write("  .content-block-title {font-size:16px;}\r\n");
      out.write("   li {font-size:14px;}\r\n");
      out.write("  \r\n");
      out.write("   \r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("$(document).ready(function() {\r\n");
      out.write(" \r\n");
      out.write("\t$rpc('weixin.MyWork', 'getWorkCount', {\r\n");
      out.write("\t\t \r\n");
      out.write("\t}, function(ret) {\r\n");
      out.write("\r\n");
      out.write("\t\t \r\n");
      out.write("\t\tvar data = JSON.parse(ret);\r\n");
      out.write("\t\t$('#count_todo').text( data.todo);\r\n");
      out.write("\t\t$('#count_donedoing').text( data.donedoing);\r\n");
      out.write("\t\t$('#count_doneend').text( data.doneend);\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t});\r\n");
      out.write("\t\t \r\n");
      out.write("\t \r\n");
      out.write("});\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("    </SCRIPT>\r\n");
      out.write("    </head>\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("<!-- Views -->\r\n");
      out.write("<div class=\"page\">\r\n");
      out.write("    \r\n");
      out.write(" <header class=\"bar bar-nav\">\r\n");
      out.write("<span class=\"  pull-left \"> \r\n");
      out.write(" <img src=\"");
      out.print(mi.myFace);
      out.write("\"  style=\" display:none; height:40px; border-radius:25% \">\r\n");
      out.write("</span>\r\n");
      out.write("\r\n");
      out.write("<a class=\" button pull-right  external\"  style=\"border:0;\"  href='javascript:$.alert(\"暂时不能起草\");'   ><i class=\"fa fa-plus-circle\"></i></a>\r\n");
      out.write("\r\n");
      out.write("<h1 class=\"title\">我的工作</h1>\r\n");
      out.write("<!-- \r\n");
      out.write("<a class=\"button pull-right  external\"   href='m-innermail_edit.jsp' ><span><i class=\"fa fa-plus\"></i>新邮件</span></a>\r\n");
      out.write("  -->\r\n");
      out.write("\r\n");
      out.write("</header>\r\n");
      out.write(" \r\n");
      out.write("<div class=\"content\"> \r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("  \r\n");
      out.write("\t\t\r\n");
      out.write("  \r\n");
      out.write("<div class=\"content-block\" style=\"margin:0;padding:0\">\r\n");
      out.write("           \r\n");
      out.write("  <div class=\"content-block-title\">待办工作</div>\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("  \r\n");
      out.write("  <div class=\"list-block\">\r\n");
      out.write("    <ul>\r\n");
      out.write("    \r\n");
      out.write("      <li><a href=\"m-work-list.jsp?box=todo\" class=\"external item-link item-content\">\r\n");
      out.write("              <div class=\"item-media\"><i class=\"icon fa  fa-inbox fa-lg fa-fw\"></i></div>\r\n");
      out.write("              <div class=\"item-inner\"> \r\n");
      out.write("                <div class=\"item-title\">所有待办工作清册</div>\r\n");
      out.write("                <div class=\"item-after\" ><span id=count_todo class=\"badge \" style='color:white;background-color:red;'></span></div>\r\n");
      out.write("              </div>\r\n");
      out.write("              </a>\r\n");
      out.write("              </li>\r\n");
      out.write("              \r\n");
      out.write("       <li><a href=\"m-work-home-bytype.jsp?limit=flow\" class=\"external item-link item-content\">\r\n");
      out.write("              <div class=\"item-media\"><i class=\"icon fa  fa-cubes fa-lg fa-fw\"></i></div>\r\n");
      out.write("              <div class=\"item-inner\"> \r\n");
      out.write("                <div class=\"item-title\">按类型列示待办清册</div>\r\n");
      out.write("                <div class=\"item-after\" >  </div>\r\n");
      out.write("              </div>\r\n");
      out.write("              </a>\r\n");
      out.write("              </li>\r\n");
      out.write("               <li><a href=\"m-work-home-bytype.jsp?limit=group\" class=\"external item-link item-content\">\r\n");
      out.write("              <div class=\"item-media\"><i class=\"icon fa  fa-sitemap fa-lg fa-fw\"></i></div>\r\n");
      out.write("              <div class=\"item-inner\"> \r\n");
      out.write("                <div class=\"item-title\">按来源部门列示待办清册</div>\r\n");
      out.write("                <div class=\"item-after\" > </div>\r\n");
      out.write("              </div>\r\n");
      out.write("              </a>\r\n");
      out.write("              </li>\r\n");
      out.write("              \r\n");
      out.write("        \r\n");
      out.write("      \r\n");
      out.write("       \r\n");
      out.write("      \r\n");
      out.write("    </ul>\r\n");
      out.write("  </div>\r\n");
      out.write("  \r\n");
      out.write("    <div class=\"content-block-title\">工作查询</div>\r\n");
      out.write("  <div class=\"list-block\">\r\n");
      out.write("    <ul>\r\n");
      out.write("    \r\n");
      out.write("     \r\n");
      out.write("              \r\n");
      out.write("       <li><a href=\"m-work-list.jsp?box=donedoing\" class=\"external item-link item-content\">\r\n");
      out.write("              <div class=\"item-media\"><i class=\"icon fa  fa-send-o fa-lg fa-fw\"></i></div>\r\n");
      out.write("              <div class=\"item-inner\"> \r\n");
      out.write("                <div class=\"item-title\">已办未结工作</div>\r\n");
      out.write("                <div class=\"item-after\" ><span id=count_donedoing class=\"badge \" style='color:white;background-color:green;'></span></div>\r\n");
      out.write("              </div>\r\n");
      out.write("              </a>\r\n");
      out.write("              </li>\r\n");
      out.write("               <li><a href=\"m-work-list.jsp?box=doneend\" class=\"external item-link item-content\">\r\n");
      out.write("              <div class=\"item-media\"><i class=\"icon fa  fa-bars fa-lg fa-fw\"></i></div>\r\n");
      out.write("              <div class=\"item-inner\"> \r\n");
      out.write("                <div class=\"item-title\">已办结工作</div>\r\n");
      out.write("                <div class=\"item-after\" ><span id=count_doneend class=\"badge \" style='color:white;background-color:green;'></span></div>\r\n");
      out.write("              </div>\r\n");
      out.write("              </a>\r\n");
      out.write("              </li>\r\n");
      out.write("              \r\n");
      out.write("     \r\n");
      out.write("       \r\n");
      out.write("      \r\n");
      out.write("    </ul>\r\n");
      out.write("  </div>\r\n");
      out.write("  \r\n");
      out.write("</div>\r\n");
      out.write("   \r\n");
      out.write("</div><!-- end of content -->\r\n");
      out.write("\r\n");
      out.write("   \r\n");
      out.write(" \r\n");
      out.write("</div>\r\n");
      out.write(" </div>\r\n");
      out.write("    \r\n");
      out.write("  </body>\r\n");
      out.write("</html>    \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
