Example #1
0
 private static void Add_to_LoadedData(CommonRawDataCollection loadedData, ProvinceObjective_PerMonth dataItem, double qty, double val)
 {
     if (loadedData == null)
         return;
     if (DBUtils.IsBudget(dataItem.TypeT))
         loadedData.Add(new CommonRawData() { IsBudget = true, Date = new DateTime(dataItem.YearT, dataItem.MonthT, 1), QTY = qty, VAL = val });
     if (DBUtils.IsF1(dataItem.TypeT))
         loadedData.Add(new CommonRawData() { IsF1 = true, Date = new DateTime(dataItem.YearT, dataItem.MonthT, 1), QTY = qty, VAL = val });
     if (DBUtils.IsF2(dataItem.TypeT))
         loadedData.Add(new CommonRawData() { IsF2 = true, Date = new DateTime(dataItem.YearT, dataItem.MonthT, 1), QTY = qty, VAL = val });
 }
 /// <summary>
 /// Create a new ProvinceObjective_PerMonth object.
 /// </summary>
 /// <param name="monthT">Initial value of the MonthT property.</param>
 /// <param name="yearT">Initial value of the YearT property.</param>
 /// <param name="typeT">Initial value of the TypeT property.</param>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="brandCode">Initial value of the BrandCode property.</param>
 /// <param name="sAProductCode">Initial value of the SAProductCode property.</param>
 public static ProvinceObjective_PerMonth CreateProvinceObjective_PerMonth(global::System.Int32 monthT, global::System.Int32 yearT, global::System.String typeT, global::System.Int32 id, global::System.String brandCode, global::System.String sAProductCode)
 {
     ProvinceObjective_PerMonth provinceObjective_PerMonth = new ProvinceObjective_PerMonth();
     provinceObjective_PerMonth.MonthT = monthT;
     provinceObjective_PerMonth.YearT = yearT;
     provinceObjective_PerMonth.TypeT = typeT;
     provinceObjective_PerMonth.ID = id;
     provinceObjective_PerMonth.BrandCode = brandCode;
     provinceObjective_PerMonth.SAProductCode = sAProductCode;
     return provinceObjective_PerMonth;
 }