Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 private void LoadObjective_Async()
 {
     DAT_DomainContext context = new DAT_DomainContext();
     context.Load(context.GetPosObjectiveQuery(Utils.GetBrandCode(_productBrand), 1, _endYear -1, 12, _endYear, _dsIdsString), PosObjective_ResultCallBack, null);
 }
Exemplo n.º 3
0
 public static void Load_Available_ObjectiveTypes()
 {
     DAT_DomainContext context = new DAT_DomainContext();
     LoadOperation<AvailableObjective> loadOp = context.Load<AvailableObjective>(context.GetAvailableObjectiveQuery(), AvailableObjectives_Loaded, null);
 }
Exemplo n.º 4
0
        public static void Load_DAT_DataRange()
        {
            try
            {
                DAT_DomainContext context = new DAT_DomainContext();
                LoadOperation<DATDataRange> loadOp = context.Load(context.GetDataRangeQuery(), DAT_DataRange_Loaded, null);
            }
            catch (Exception ex)
            {


                string msg = ex.Message;
                if (ex.InnerException != null)
                    msg += ("Inner: \n" + ex.InnerException.Message);
                System.IO.File.WriteAllText(@"C:\inetpub\wwwroot\snfgis\load_dat_datarange1_error.txt", msg);
            }
        }
Exemplo n.º 5
0
 public static void Load_PriceList()
 {
     DAT_DomainContext context = new DAT_DomainContext();
     LoadOperation<PricePerDate> loadOp = context.Load<PricePerDate>(context.Get_PriceListQuery(), PriceList_Loaded, null);
 }
Exemplo n.º 6
0
 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);
     }
 }
Exemplo n.º 7
0
 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);
 }