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