private DailySalesGridObj Create_GridObj(ProvinceSalesPerDSDaily 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; }
/// <summary> /// Create a new ProvinceSalesPerDSDaily object. /// </summary> /// <param name="id">Initial value of the ID property.</param> public static ProvinceSalesPerDSDaily CreateProvinceSalesPerDSDaily(global::System.Int32 id) { ProvinceSalesPerDSDaily provinceSalesPerDSDaily = new ProvinceSalesPerDSDaily(); provinceSalesPerDSDaily.ID = id; return provinceSalesPerDSDaily; }
public static bool Null_Handled(ProvinceSalesPerDSDaily dataItem) { if (dataItem == null) return false; if (dataItem.ProductID == null) return false; return true; }