public long m_lngQueryOccupyBed(string p_strRegisterid, out DataTable dtbResult) { long lngRes = 0; dtbResult = null; com.digitalwave.iCare.middletier.HIS.clsBedManageSvc objSvc = (com.digitalwave.iCare.middletier.HIS.clsBedManageSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsBedManageSvc)); try { lngRes = objSvc.m_lngQueryOccupyBed(p_strRegisterid, out dtbResult); } catch { return(0); } objSvc.Dispose(); return(lngRes); }