private DailySalesGridObj Create_GridObj(TotalSalesPerDSDaily dataItem)
 {
     DailySalesGridObj gridObj = new DailySalesGridObj();
     gridObj.DSID = dataItem.DSID + "";
     gridObj.City = dataItem.CityName;
     gridObj.Date = GetDateTimeString(dataItem.CheckGDate);
     gridObj.Pharmacy = dataItem.DSName;
     gridObj.Product = dataItem.ProductName;
     gridObj.Province = dataItem.ProvinceName;
     gridObj.SalesQty = DBUtils.Get_Equivalented_QTY((int)dataItem.SalesQty, (int)dataItem.ProductID) + "";
     gridObj.SalesVal = DBUtils.Get_Value_AccTo_PricePerTypeList((int)dataItem.SalesQty, (int)dataItem.ProductID, dataItem.CheckGDate.Value, "") + "";
     gridObj.Dist = dataItem.DistName;
     return gridObj;
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new TotalSalesPerDSDaily object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static TotalSalesPerDSDaily CreateTotalSalesPerDSDaily(global::System.Int32 id)
 {
     TotalSalesPerDSDaily totalSalesPerDSDaily = new TotalSalesPerDSDaily();
     totalSalesPerDSDaily.ID = id;
     return totalSalesPerDSDaily;
 }
Esempio n. 3
0
 public static bool Null_Handled(TotalSalesPerDSDaily dataItem)
 {
     if (dataItem == null)
         return false;
     if (dataItem.ProductID == null)
         return false;
     return true;
 }