public void Get(DCBatchRecord dcbr) { CompanyBiz cb = new CompanyBiz(); VendorBiz vb = new VendorBiz(); RecordHistory rh = new RecordHistory(); try { GMUtilities.GMReflectionUtils.Copy(m_biz.Get(dcbr.ID), dcbr); dcbr.DSActionID = m_optbiz.GetActionTypes(); dcbr.DSCaseTypeID = m_optbiz.GetCaseTypes(); dcbr.DSCompanyID = cb.Get(); dcbr.DSContactTypeID = m_optbiz.GetContactTypes(); dcbr.DSRecordStatusID = m_optbiz.GetRecordStatusTypes(); dcbr.DSCountyID = m_optbiz.GetCounties(); dcbr.DSVendorID = vb.GetActive(); dcbr.History = rh.Get(dcbr.ID); if (dcbr.CaseTypeID.HasValue) { DataRow rv = m_optbiz.GetCaseTypes(dcbr.CaseTypeID.Value); if (rv != null) { dcbr.IsCivil = Convert.ToBoolean(rv[GMConstants.OptionsMap.IsCivil]); } } } catch (Exception exp) { throw exp; } finally { cb.Dispose(); vb.Dispose(); } }
public override void Dispose() { base.Dispose(); m_biz.Dispose(); m_crf.Dispose(); }