Пример #1
0
  public ArrayList<NoProjectEvaluationBean> searchNoProjectByEvaluation(
      String evaluationId, String departmentId) {
    ArrayList<NoProjectEvaluationBean> list = new ArrayList<NoProjectEvaluationBean>();

    String selectSQL =
        "select evaid,evaluationcontent,leaddepartmentid,dept1.departmentname as leaddept,evadepartmentid,dept2.departmentname as evadept,evamonth,monthfinish,submittime,status,firstview,secondview,thirdview  "
            + "from((select evaluationform.evaluationid as evaid,evaluationcontent,leaddepartmentid,evadepartmentid,evamonth,monthfinish,submittime,status,firstview,secondview,thirdview  "
            + "from evaluationform join noprojectevaluation on evaluationform.evaluationid = noprojectevaluation.evaluationid) t  "
            + "join department as dept1 on (t.leaddepartmentid=dept1.departmentid) join department as dept2 on (t.evadepartmentid=dept2.departmentid))  "
            + "where evadepartmentid='"
            + departmentId
            + "' and  evaid='"
            + evaluationId
            + "';";
    /*evaid
    evaluationcontent
    leaddepartmentid
    leaddept
    evadepartmentid

    evadept
    evamonth
    monthfinish
    submittime
    status

    firstview
    secondview
    thirdview*/
    ResultSet rs = this.SelectDB(selectSQL);

    try {
      while (rs.next()) {
        NoProjectEvaluationBean npe = new NoProjectEvaluationBean();
        npe.setEvaluationId(rs.getString("evaid"));
        npe.setEvaluationContent(rs.getString("evaluationcontent"));
        npe.setLeadDepartmentId(rs.getString("leaddepartmentid"));
        npe.setLeadDepartmentName(rs.getString("leaddept"));
        npe.setEvaDepartmentId(rs.getString("evadepartmentid"));

        npe.setLeadDepartmentName(rs.getString("evadept"));
        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;
  }
Пример #2
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;
  }
Пример #3
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;
  }