示例#1
0
 /// <summary>
 /// Create a new ProvincePerCustomerPerDistributor object.
 /// </summary>
 /// <param name="distNameEnglish">Initial value of the DistNameEnglish property.</param>
 /// <param name="distID">Initial value of the DistID property.</param>
 /// <param name="checkGDate">Initial value of the CheckGDate 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="provinceID">Initial value of the ProvinceID property.</param>
 /// <param name="salesQty">Initial value of the SalesQty property.</param>
 public static ProvincePerCustomerPerDistributor CreateProvincePerCustomerPerDistributor(global::System.String distNameEnglish, global::System.Int32 distID, global::System.DateTime checkGDate, global::System.Int32 dSID, global::System.String dSName, global::System.Int32 productID, global::System.Int32 provinceID, global::System.Int32 salesQty)
 {
     ProvincePerCustomerPerDistributor provincePerCustomerPerDistributor = new ProvincePerCustomerPerDistributor();
     provincePerCustomerPerDistributor.DistNameEnglish = distNameEnglish;
     provincePerCustomerPerDistributor.DistID = distID;
     provincePerCustomerPerDistributor.CheckGDate = checkGDate;
     provincePerCustomerPerDistributor.DSID = dSID;
     provincePerCustomerPerDistributor.DSName = dSName;
     provincePerCustomerPerDistributor.ProductID = productID;
     provincePerCustomerPerDistributor.ProvinceID = provinceID;
     provincePerCustomerPerDistributor.SalesQty = salesQty;
     return provincePerCustomerPerDistributor;
 }
 private void FillDistributorNamesList(ProvincePerCustomerPerDistributor 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 });
 }