private void LoadProvinceObjectives(SanofiProductBrands product, int startM, int startY, int endM, int endY) { object[] state = { product, startM, startY, endM, endY }; if (!IsLoading("GetTotalObjective_PerProvince_PerMonthQuery", state)) { DAT_DomainContext context = new DAT_DomainContext(); AddtoLoadingList("GetTotalObjective_PerProvince_PerMonthQuery", state); context.Load(context.GetTotalObjective_PerProvince_PerMonthQuery(Utils.GetBrandCode(product), startM, startY, endM, endY,""), TotalObjective_PerProvince_PerMonth_ResultCallback, state); } }
private void LoadObjective_Async() { _provinceObjectiveQty = new Dictionary<int, double>(); _provinceObjectiveVal = new Dictionary<int, double>(); DAT_DomainContext context = new DAT_DomainContext(); LoadOperation<TotalObjective_PerProvince_PerMonth> loadOp = context.Load(context.GetTotalObjective_PerProvince_PerMonthQuery(Utils.GetBrandCode(_productBrand), _startDate.Month, _startDate.Year, _endDate.Month, _endDate.Year, GetDosageSaCodes()), TotalObjective_PerProvince_PerMonth_ResultCallBack, null); }
private void LoadObjective_Async() { DAT_DomainContext context = new DAT_DomainContext(); context.Load<TotalObjective_PerProvince_PerMonth>(context.GetTotalObjective_PerProvince_PerMonthQuery(Utils.GetBrandCode(_productBrand), 1, _endDate.Year - 1, 12, _endDate.Year, GetDosageSaCodes()), TotalObjective_PerProvince_PerMonth_ResultCallBack, null); }