예제 #1
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();
   }
 }
예제 #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-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();
   }
 }
예제 #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();
   }
 }
예제 #4
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;
  }
예제 #5
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();
 }
예제 #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-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();
 }
예제 #7
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();
 }