/// <summary> /// Create a new TotalClientsPerDistPerQuarter object. /// </summary> /// <param name="quarter">Initial value of the Quarter property.</param> /// <param name="yearT">Initial value of the YearT property.</param> /// <param name="dISTRIBUTORNAME">Initial value of the DISTRIBUTORNAME property.</param> /// <param name="nUMOFCLIENTS">Initial value of the NUMOFCLIENTS property.</param> /// <param name="distID">Initial value of the DistID property.</param> public static TotalClientsPerDistPerQuarter CreateTotalClientsPerDistPerQuarter(global::System.Int32 quarter, global::System.Int32 yearT, global::System.String dISTRIBUTORNAME, global::System.Int32 nUMOFCLIENTS, global::System.Int32 distID) { TotalClientsPerDistPerQuarter totalClientsPerDistPerQuarter = new TotalClientsPerDistPerQuarter(); totalClientsPerDistPerQuarter.Quarter = quarter; totalClientsPerDistPerQuarter.YearT = yearT; totalClientsPerDistPerQuarter.DISTRIBUTORNAME = dISTRIBUTORNAME; totalClientsPerDistPerQuarter.NUMOFCLIENTS = nUMOFCLIENTS; totalClientsPerDistPerQuarter.DistID = distID; return totalClientsPerDistPerQuarter; }
private void FillDistributorNamesList(TotalClientsPerDistPerQuarter 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.DISTRIBUTORNAME }); }