private void FillDistributorNamesList(TotalPerCustomerPerDistributorPerChannel 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 }); }
/// <summary> /// Create a new TotalPerCustomerPerDistributorPerChannel object. /// </summary> /// <param name="channel">Initial value of the Channel property.</param> /// <param name="channelType">Initial value of the ChannelType property.</param> /// <param name="checkGDate">Initial value of the CheckGDate property.</param> /// <param name="distID">Initial value of the DistID property.</param> /// <param name="distNameEnglish">Initial value of the DistNameEnglish property.</param> /// <param name="dSID">Initial value of the DSID property.</param> /// <param name="dSName">Initial value of the DSName property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="salesQty">Initial value of the SalesQty property.</param> /// <param name="id">Initial value of the ID property.</param> public static TotalPerCustomerPerDistributorPerChannel CreateTotalPerCustomerPerDistributorPerChannel(global::System.String channel, global::System.String channelType, global::System.DateTime checkGDate, global::System.Int32 distID, global::System.String distNameEnglish, global::System.Int32 dSID, global::System.String dSName, global::System.Int32 productID, global::System.Int32 salesQty, global::System.Int32 id) { TotalPerCustomerPerDistributorPerChannel totalPerCustomerPerDistributorPerChannel = new TotalPerCustomerPerDistributorPerChannel(); totalPerCustomerPerDistributorPerChannel.Channel = channel; totalPerCustomerPerDistributorPerChannel.ChannelType = channelType; totalPerCustomerPerDistributorPerChannel.CheckGDate = checkGDate; totalPerCustomerPerDistributorPerChannel.DistID = distID; totalPerCustomerPerDistributorPerChannel.DistNameEnglish = distNameEnglish; totalPerCustomerPerDistributorPerChannel.DSID = dSID; totalPerCustomerPerDistributorPerChannel.DSName = dSName; totalPerCustomerPerDistributorPerChannel.ProductID = productID; totalPerCustomerPerDistributorPerChannel.SalesQty = salesQty; totalPerCustomerPerDistributorPerChannel.ID = id; return totalPerCustomerPerDistributorPerChannel; }