/// <summary> /// 查询所有的检验项目类别 /// </summary> /// <param name="p_objResultArr"></param> /// <returns></returns> public long m_lngGetCheckCategory(out clsCheckCategory_VO[] p_objResultArr) { p_objResultArr = new clsCheckCategory_VO[0]; long lngRes = 0; System.Security.Principal.IPrincipal p_objPrincipal = null; com.digitalwave.iCare.middletier.LIS.clsQueryAdvis2120Svc objCheckItemSvc = (com.digitalwave.iCare.middletier.LIS.clsQueryAdvis2120Svc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.LIS.clsQueryAdvis2120Svc)); lngRes = objCheckItemSvc.m_lngGetCheckCategory(p_objPrincipal, out p_objResultArr); return(lngRes); }
public long m_lngGetCheckCategory(System.Security.Principal.IPrincipal p_objPrincipal, out clsCheckCategory_VO[] p_objResultArr) { long lngRes = 0; p_objResultArr = new clsCheckCategory_VO[0]; clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.LIS.clsAdvis2120Svc", "m_lngGetCheckCategory"); if (lngRes < 0) { return(-1); } lngRes = 0; string strSQL = @"select check_category_id_chr,check_category_desc_vchr from t_bse_lis_check_category"; try { DataTable dtbResult = new DataTable(); com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService(); lngRes = objHRPSvc.lngGetDataTableWithoutParameters(strSQL, ref dtbResult); objHRPSvc.Dispose(); if (lngRes > 0 && dtbResult.Rows.Count > 0) { p_objResultArr = new clsCheckCategory_VO[dtbResult.Rows.Count]; for (int i1 = 0; i1 < p_objResultArr.Length; i1++) { p_objResultArr[i1] = new clsCheckCategory_VO(); p_objResultArr[i1].m_strCheck_Category_ID = dtbResult.Rows[i1]["check_category_id_chr"].ToString().Trim(); p_objResultArr[i1].m_strCheck_Category_Name = dtbResult.Rows[i1]["check_category_desc_vchr"].ToString().Trim(); } } } catch (Exception objEx) { string strTmp = objEx.Message; com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }