Пример #1
0
        /// <summary>
        /// 加载所有部门记录
        /// </summary>
        /// <returns></returns>
        public DataTable findAllAttribute()
        {
            com.digitalwave.iCare.middletier.baseInfo.clsDepartmentSvc objSvc =
                (com.digitalwave.iCare.middletier.baseInfo.clsDepartmentSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.baseInfo.clsDepartmentSvc));
            DataTable dtbResult = null;

            try
            {
                dtbResult = objSvc.findAllAttribute(null);
            }
            catch
            {
                return(null);
            }
            objSvc.Dispose();
            return(dtbResult);
        }
Пример #2
0
        /// <summary>
        /// 加载一条部门记录
        /// </summary>
        /// <param name="id"></param>
        /// <param name="item"></param>
        /// <returns></returns>
        public long m_lngGetItem(string id, out clsDepart_VO item)
        {
            long lngRes = 0;

            item = null;
            System.Security.Principal.IPrincipal p_objPrincipal = null;
            com.digitalwave.iCare.middletier.baseInfo.clsDepartmentSvc objSvc =
                (com.digitalwave.iCare.middletier.baseInfo.clsDepartmentSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.baseInfo.clsDepartmentSvc));
            try
            {
                lngRes = objSvc.m_lngGetItem(p_objPrincipal, id, out item);
            }
            catch
            {
                return(0);
            }
            objSvc.Dispose();
            return(lngRes);
        }