예제 #1
0
 private void LoadDate()
 {
     CD_DomainContext context = new CD_DomainContext();
     string cdIds = DBUtils.Get_CD_ProductIDs(Utils.GetBrandCode(_productBrand));
     if (GetDosageSaCodes() != "")
         cdIds = DBUtils.GetCdProductIds(GetDosageSaCodes());
     if (_regionType == SanofiRegionTypes.TotalIR)
     {
         context.Load<TotalSalesPerDSDaily>(context.GetTotalSales_PerDS_DailyQuery(cdIds, _startDate, _endDate), TotalSalesPerDSDaily_ResultCallBack, null);
     }
     else if (_regionType == SanofiRegionTypes.Province)
     {
         context.Load<ProvinceSalesPerDSDaily>(context.GetProvinceSales_PerDS_DailyQuery(cdIds, _startDate, _endDate, DBUtils.Get_CD_ProvinceIds(_groupRegionMapId, _productBrand)), ProvinceSalesPerDSDaily_ResultCallBack, null);
     }
 }