/// <summary> /// Create a new TotalPerCustomerPerDistributor object. /// </summary> /// <param name="dSID">Initial value of the DSID property.</param> /// <param name="checkGDate">Initial value of the CheckGDate property.</param> /// <param name="dSName">Initial value of the DSName property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="provinceID">Initial value of the ProvinceID property.</param> /// <param name="salesQty">Initial value of the SalesQty property.</param> /// <param name="distID">Initial value of the DistID property.</param> /// <param name="distNameEnglish">Initial value of the DistNameEnglish property.</param> public static TotalPerCustomerPerDistributor CreateTotalPerCustomerPerDistributor(global::System.Int32 dSID, global::System.DateTime checkGDate, global::System.String dSName, global::System.Int32 productID, global::System.Int32 provinceID, global::System.Int32 salesQty, global::System.Int32 distID, global::System.String distNameEnglish) { TotalPerCustomerPerDistributor totalPerCustomerPerDistributor = new TotalPerCustomerPerDistributor(); totalPerCustomerPerDistributor.DSID = dSID; totalPerCustomerPerDistributor.CheckGDate = checkGDate; totalPerCustomerPerDistributor.DSName = dSName; totalPerCustomerPerDistributor.ProductID = productID; totalPerCustomerPerDistributor.ProvinceID = provinceID; totalPerCustomerPerDistributor.SalesQty = salesQty; totalPerCustomerPerDistributor.DistID = distID; totalPerCustomerPerDistributor.DistNameEnglish = distNameEnglish; return totalPerCustomerPerDistributor; }
private void FillDistributorNamesList(TotalPerCustomerPerDistributor dataItem) { if (_distributors == null) _distributors = new Dictionary<int, IdNameObj>(); if (!_distributors.ContainsKey(dataItem.DistID)) _distributors.Add(dataItem.DistID, new IdNameObj { Id = dataItem.DistID, Name = dataItem.DistNameEnglish }); }