예제 #1
0
  /** 该函数筛选出牵头领导审核的非项目记录!! */
  public ArrayList<NoProjectEvaluationBean> QianTouLeaderNoProjectViewList(String leadarName) {

    ArrayList<NoProjectEvaluationBean> list = new ArrayList<NoProjectEvaluationBean>();

    String selectSQL =
        "select ed.evaDepartmentid,resDep.departmentName as resDeptName,ef.evaluationId,ef.evaluationContent,ef.leadDepartmentId, leadDep.departmentName as leadDeptName,ef.separateLeader,npe.evaluationId, npe.evaMonth,npe.monthFinish,npe.submitTime,npe.status,npe.firstView,npe.secondView,npe.thirdView   "
            + "from  ((((EvaluationDepartment as ed LEFT JOIN NoProjectEvaluation AS npe ON ed.evaDepartmentId=npe.evaDepartmentId  AND  ed.evaluationId=npe.evaluationId ) JOIN Department AS resDep ON resDep.departmentId=ed.evaDepartmentid ) JOIN EvaluationForm as ef on  ef.evaluationId=ed.evaluationId) JOIN Department AS leadDep ON  leadDep.departmentId=ef.leadDepartmentId) where status='T00' and  ef.separateLeader='"
            + leadarName
            + "';";

    System.out.println(selectSQL);
    ResultSet rs = this.SelectDB(selectSQL);

    try {
      while (rs.next()) {
        /*projectId	projectName	isMoney	evaluationContent	totalProgress
         * departmentName	evaContent	taskMonth	status	monthFinish
         * monthMoney	monthProgress	submitTime	firstView	secondView
         * thirdView	currentFinish	firstClassify	secondClassify
         */

        NoProjectEvaluationBean pmrb = new NoProjectEvaluationBean();

        pmrb.setEvaluationId(rs.getString("evaluationId"));
        pmrb.setEvaluationContent(rs.getString("evaluationContent"));
        pmrb.setLeadDepartmentId(rs.getString("leadDepartmentId"));
        pmrb.setLeadDepartmentName(rs.getString("leadDeptName"));
        pmrb.setEvaDepartmentId(rs.getString("evaDepartmentid"));

        //					System.out.println(rs.getString("resDeptName"));
        //					System.out.println(rs.getString("leadDeptName"));
        pmrb.setEvaDepartmentName(rs.getString("resDeptName"));
        pmrb.setEvaMonth(rs.getInt("evaMonth"));
        pmrb.setMonthFinish(rs.getString("monthFinish"));
        pmrb.setSubmitTime(rs.getString("submitTime"));
        pmrb.setStatus(rs.getString("status"));

        pmrb.setFirstView(rs.getString("firstview"));
        pmrb.setSecondView(rs.getString("secondview"));
        pmrb.setThirdView(rs.getString("thirdview"));

        list.add(pmrb);
      }

    } catch (SQLException e) {
      e.printStackTrace();
    }
    return list;
  }
예제 #2
0
  /** 该函数筛选出某牵头部门审核的非项目信息 */
  public ArrayList<NoProjectEvaluationBean> searchNoProjectByLeadDepatrment(
      String leadDeparmtentId) {
    ArrayList<NoProjectEvaluationBean> list = new ArrayList<NoProjectEvaluationBean>();

    String selectSQL =
        "select ed.evaDepartmentid,resDep.departmentName as resDeptName,ef.evaluationId,ef.evaluationContent,ef.leadDepartmentId, leadDep.departmentName as leadDeptName,ef.separateLeader,npe.evaluationId, npe.evaMonth,npe.monthFinish,npe.submitTime,npe.status,npe.firstView,npe.secondView,npe.thirdView   "
            + "from  ((((EvaluationDepartment as ed LEFT JOIN NoProjectEvaluation AS npe ON ed.evaDepartmentId=npe.evaDepartmentId  AND  ed.evaluationId=npe.evaluationId ) JOIN Department AS resDep ON resDep.departmentId=ed.evaDepartmentid ) JOIN EvaluationForm as ef on  ef.evaluationId=ed.evaluationId) JOIN Department AS leadDep ON  leadDep.departmentId=ef.leadDepartmentId) where status='000' and  leadDep.departmentId='"
            + leadDeparmtentId
            + "' ;";

    System.out.println(selectSQL);
    ResultSet rs = this.SelectDB(selectSQL);

    try {
      while (rs.next()) {
        // evaDepartmentid	departmentName	evaluationId	evaluationContent	leadDepartmentId
        // departmentName	separateLeader	evaluationId	evaMonth	monthFinish	submitTime
        // status	firstView	secondView	thirdView

        NoProjectEvaluationBean npe = new NoProjectEvaluationBean();

        npe.setEvaluationId(rs.getString("evaluationId"));
        npe.setEvaluationContent(rs.getString("evaluationContent"));
        npe.setLeadDepartmentId(rs.getString("leadDepartmentId"));

        npe.setLeadDepartmentName(rs.getString("leadDeptName"));
        npe.setEvaDepartmentId(rs.getString("evaDepartmentid"));

        //				System.out.println(rs.getString("resDeptName"));
        //				System.out.println(rs.getString("leadDeptName"));
        npe.setEvaDepartmentName(rs.getString("resDeptName"));
        npe.setEvaMonth(rs.getInt("evaMonth"));
        npe.setMonthFinish(rs.getString("monthFinish"));
        npe.setSubmitTime(rs.getString("submitTime"));
        npe.setStatus(rs.getString("status"));

        npe.setFirstView(rs.getString("firstview"));
        npe.setSecondView(rs.getString("secondview"));
        npe.setThirdView(rs.getString("thirdview"));

        list.add(npe);
      }

    } catch (SQLException e) {
      e.printStackTrace();
    }

    return list;
  }