Esempio n. 1
0
 /// <summary>
 /// Create a new TotalClientsPerDistributor object.
 /// </summary>
 /// <param name="qTY">Initial value of the QTY property.</param>
 /// <param name="nUMOFCLIENTS">Initial value of the NUMOFCLIENTS property.</param>
 /// <param name="dISTRIBUTORNAME">Initial value of the DISTRIBUTORNAME property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="monthT">Initial value of the MonthT property.</param>
 /// <param name="yearT">Initial value of the YearT property.</param>
 /// <param name="distID">Initial value of the DistID property.</param>
 public static TotalClientsPerDistributor CreateTotalClientsPerDistributor(global::System.Int32 qTY, global::System.Int32 nUMOFCLIENTS, global::System.String dISTRIBUTORNAME, global::System.Int32 productID, global::System.Int32 monthT, global::System.Int32 yearT, global::System.Int32 distID)
 {
     TotalClientsPerDistributor totalClientsPerDistributor = new TotalClientsPerDistributor();
     totalClientsPerDistributor.QTY = qTY;
     totalClientsPerDistributor.NUMOFCLIENTS = nUMOFCLIENTS;
     totalClientsPerDistributor.DISTRIBUTORNAME = dISTRIBUTORNAME;
     totalClientsPerDistributor.ProductID = productID;
     totalClientsPerDistributor.MonthT = monthT;
     totalClientsPerDistributor.YearT = yearT;
     totalClientsPerDistributor.DistID = distID;
     return totalClientsPerDistributor;
 }
 private void FillDistributorNamesList(TotalClientsPerDistributor 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});
 }