Beispiel #1
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary取得一级单位列表<br>
  * Return: List<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-4 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static List getDeptList() {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   List custList = null;
   List deptList = new ArrayList();
   try {
     custList = dao.getDeptList();
     int custsize = custList.size();
     for (int i = 0; i < custsize; i++) {
       Object[] objects = (Object[]) custList.get(i);
       HashMap confMap = new HashMap();
       confMap.put("deptCode", new Integer(convent(objects[0])));
       confMap.put("deptName", convent(objects[1]));
       // confMap.put("pym",GetCh2Spell.getBeginCharacter(convent(objects[1])));
       confMap.put("pym", new GetCh2Spell().String2Alpha(convent(objects[1])));
       deptList.add(confMap);
     }
   } catch (HibernateException he) {
     he.printStackTrace();
   } finally {
     closeSession();
   }
   Collections.sort(deptList, new SortListColl());
   // Arrays.sort(deptList);
   // System.out.println("++++++++++++++++++++++++++++++++++++++++++++++++++"+deptList);
   return deptList;
 }
Beispiel #2
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary根据操作员登录号取得其部门编号<br>
  * Return: String<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-26 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static String getDeptByOperCode(String opercode) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   try {
     return ((TOperator) dao.findByPrimaryKey(TOperator.class, opercode)).getDeptId();
   } catch (HibernateException he) {
     return null;
   } finally {
     closeSession();
   }
 }
Beispiel #3
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary根据员工编号取得姓名<br>
  * Return: String<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-21 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static String getCustNameById(int custid) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   try {
     return ((TCifCustomer) dao.findByPrimaryKey(TCifCustomer.class, new Integer(custid)))
         .getCutName();
   } catch (HibernateException he) {
     return null;
   } finally {
     closeSession();
   }
 }
Beispiel #4
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary根据会议编号取得会议名称<br>
  * Return: String<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-25 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static String getConfNameById(int confid) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   try {
     return ((TConference) dao.findByPrimaryKey(TConference.class, new Integer(confid)))
         .getConName();
   } catch (HibernateException he) {
     return null;
   } finally {
     closeSession();
   }
 }
Beispiel #5
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary取会议类型列表<br>
  * Return: List<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-3 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static List getConfType() {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   List typeList = new ArrayList();
   try {
     typeList = dao.getConfType();
   } catch (HibernateException he) {
     he.printStackTrace();
   } finally {
     closeSession();
   }
   return typeList;
 }
Beispiel #6
0
  /**
   * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
   * File name: .java<br>
   * Description: GetDictionary与会人员状态<br>
   * Return: String<br>
   * Modify History: <br>
   * 操作类型 操作人 操作时间 操作内容<br>
   * ======================================<br>
   * 创建 韩纪伟 2006-4-30 <br>
   *
   * @author 韩纪伟
   * @version
   * @since 1.0
   */
  public static String getAttendeeStatus(String statusid) {
    DictionaryDAO dao = DictionaryDAO.getInstance();
    String attStatus = "";
    try {
      attStatus = dao.getAttendeeStatus(statusid);
    } catch (HibernateException he) {

    } finally {
      closeSession();
    }
    return attStatus;
  }
Beispiel #7
0
  /**
   * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
   * File name: .java<br>
   * Description: OperatorUtil会议状态<br>
   * Return: boolean<br>
   * Modify History: <br>
   * 操作类型 操作人 操作时间 操作内容<br>
   * ======================================<br>
   * 创建 韩纪伟 2006-4-24 <br>
   *
   * @author 韩纪伟
   * @version
   * @since 1.0
   */
  public static String getConfStatus(String typeid) {
    DictionaryDAO dao = DictionaryDAO.getInstance();
    String confStatus = "";
    try {
      confStatus = dao.getConfStatus(typeid);
    } catch (HibernateException he) {

    } finally {
      closeSession();
    }
    return confStatus;
  }
Beispiel #8
0
  public static TPifDictionary getCustType(String dictValue) {
    DictionaryDAO dao = DictionaryDAO.getInstance();
    TPifDictionary custType = null;
    try {
      custType = dao.getCustType(dictValue);
    } catch (HibernateException he) {

    } finally {
      closeSession();
    }
    return custType;
  }
Beispiel #9
0
  /**
   * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
   * File name: .java<br>
   * Description: OperatorUtil人员列表<br>
   * Return: boolean<br>
   * Modify History: <br>
   * 操作类型 操作人 操作时间 操作内容<br>
   * ======================================<br>
   * 创建 韩纪伟 2006-4-24 <br>
   *
   * @author 韩纪伟
   * @version
   * @since 1.0
   */
  public static List getCustTypeList() {
    DictionaryDAO dao = DictionaryDAO.getInstance();
    List custType = null;
    try {
      custType = dao.getCustTypeList();
    } catch (HibernateException he) {

    } finally {
      closeSession();
    }
    return custType;
  }
Beispiel #10
0
  /**
   * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
   * File name: .java<br>
   * Description: OperatorUtil根据功能号取得功能名称<br>
   * Return: String<br>
   * Modify History: <br>
   * 操作类型 操作人 操作时间 操作内容<br>
   * ======================================<br>
   * 创建 韩纪伟 2006-4-20 <br>
   *
   * @author 韩纪伟
   * @version
   * @since 1.0
   */
  public static String getFuncName(String funcCode) {
    DictionaryDAO dao = DictionaryDAO.getInstance();
    String funcName = "";
    try {
      funcName = ((TFuncList) dao.findByPrimaryKey(TFuncList.class, funcCode)).getFuncName();
    } catch (HibernateException he) {

    } finally {
      closeSession();
    }
    return funcName;
  }
Beispiel #11
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary根据设备编号取得三九设备物理编号<br>
  * Return: String<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-20 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static String getDev999IdByDevId(int devId) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   TPifDevice dev = null;
   try {
     dev = (TPifDevice) dao.findByPrimaryKey(TPifDevice.class, new Integer(devId));
   } catch (HibernateException he) {
     return null;
   } finally {
     // closeSession();
   }
   return dev.getDev999Id().toString();
 }
Beispiel #12
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary根据部门编号取得部门名称<br>
  * Return: String<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-19 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static String getDeptNameByDeptCode(String deptcode) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   TCifDept dept = null;
   try {
     dept = (TCifDept) dao.findByPrimaryKey(TCifDept.class, deptcode);
   } catch (HibernateException he) {
     he.printStackTrace();
   } finally {
     closeSession();
   }
   return dept.getDeptName().toString();
 }
Beispiel #13
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary根据会议室编号取得会议室名称<br>
  * Return: String<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-19 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static String getAssemblyNameById(String assid) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   TAssemblyRoom assembly = null;
   try {
     assembly = (TAssemblyRoom) dao.findByPrimaryKey(TAssemblyRoom.class, assid);
   } catch (HibernateException he) {
     he.printStackTrace();
   } finally {
     closeSession();
   }
   return assembly.getRoomName().toString();
 }
Beispiel #14
0
 /**
  * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
  * File name: .java<br>
  * Description: GetDictionary根据操作员编号得到分组列表中的所有人员<br>
  * Return: List<br>
  * Modify History: <br>
  * 操作类型 操作人 操作时间 操作内容<br>
  * ======================================<br>
  * 创建 韩纪伟 2006-4-11 <br>
  *
  * @author 韩纪伟
  * @version
  * @since 1.0
  */
 public static List getAttendeeGroupListByOper(String username) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   List groupList = new ArrayList();
   try {
     groupList = dao.getAttendeeGroupListByOper(username);
   } catch (HibernateException he) {
     he.printStackTrace();
   } finally {
     closeSession();
   }
   return groupList;
 }
Beispiel #15
0
 public static List getConfListBeforeMeeting(String username) {
   DictionaryDAO dao = DictionaryDAO.getInstance();
   List confList = new ArrayList();
   try {
     confList = dao.getConfListBeforeMeeting(username);
   } catch (HibernateException he) {
     he.printStackTrace();
   } finally {
     closeSession();
   }
   return confList;
 }
Beispiel #16
0
  /**
   * Copyright (C), 2000-2006, Kingstar Co., Ltd.<br>
   * File name: .java<br>
   * Description: GetDictionary取得会议室列表<br>
   * Return: List<br>
   * Modify History: <br>
   * 操作类型 操作人 操作时间 操作内容<br>
   * ======================================<br>
   * 创建 韩纪伟 2006-4-3 <br>
   *
   * @author 韩纪伟
   * @version
   * @since 1.0
   */
  public static List getAssimblyRoom() {
    DictionaryDAO dao = DictionaryDAO.getInstance();
    List dictList = new ArrayList();
    try {
      dictList = dao.getAssimblyRoom();
    } catch (HibernateException he) {
      he.printStackTrace();

    } finally {
      closeSession();
    }
    return dictList;
  }