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