public long m_lngGetPatientLastestTransferInfo(string p_strRegisterID, out DataTable p_dtbResult) { long lngRes = 0; p_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_lngGetPatientLastestTransferInfo(objPrincipal, p_strRegisterID, out p_dtbResult); } catch { return(0); } objSvc.Dispose(); return(lngRes); }