private void LoadNumberOfClientsFromCdDatabase() { string cdIds = DBUtils.Get_CD_ProductIDs(Utils.GetBrandCode(_productBrand)); if (GetDosageSaCodes() != "") cdIds = DBUtils.GetCdProductIds(GetDosageSaCodes()); if (_regionType == SanofiRegionTypes.TotalIR) { CD_DomainContext context = new CD_DomainContext(); context.Load(context.GetTotal_Clients_PerDist_PerQuarterQuery(cdIds, _startDate, _endDate), TotalClientsPerDistPerQuarter_ResultCallBack, null); } else if (_regionType == SanofiRegionTypes.Province) { CD_DomainContext context = new CD_DomainContext(); context.Load(context.GetProvince_Clients_PerDist_PerQuarterQuery(cdIds, _startDate, _endDate, DBUtils.Get_CD_ProvinceIds(_groupRegionMapId, _productBrand)), ProvinceClientsPerDistPerQuarter_ResultCallBack, null); } }