示例#1
0
 public int GetQtyByMonth(List<TrendForSupplierEntity> tfseList)
 {
     TrendForSupplierEntity tfse = new TrendForSupplierEntity();
     tfse = tfseList.FirstOrDefault();
     if (tfse != null)
     {
         return tfse.requestQty;
     }
     return 0;
 }
示例#2
0
        public int GetCategoryCostByMonth(List<TrendForSupplierEntity> tfseList)
        {
            TrendForSupplierEntity tfse = new TrendForSupplierEntity();
            tfse = tfseList.FirstOrDefault();

            if (tfse != null)
            {
                return (int)tfse.categoryCost;
            }
            return 0;
        }