public List <FreightWarehouse> GetListImportItem(string code, DateTime date) { const string url = "Utility/GetListImportFrei?key="; var urlJson = string.Format("{0}{1}", UrlG + url, code); var list = Utility.GetObjJson <List <FreightWarehouseNewItem> >(urlJson); return(list.Select(item => new FreightWarehouse() { Quantity = item.Quantity, Price = item.Price, ProductID = item.ProductID, IsDelete = false, Date = ConvertDate.StringToDecimal(item.DateS), TotalPrice = item.Quantity * item.Price }).ToList()); }
public List <FreightWareHouse_Active> GetListImportItemActive(string code, DateTime date) { const string url = "Utility/GetListImportFreiActive?key="; var urlJson = string.Format("{0}{1}", UrlG + url, code); var list = Utility.GetObjJson <List <FreightWarehouseActiveNewItem> >(urlJson); return(list.Select(item => new FreightWareHouse_Active() { Quantity = item.Quantity, Price = item.Price, //ProductID = item.ProductID, IsDelete = false, Date = ConvertDate.StringToDecimal(item.DateS), DateEnd = ConvertDate.StringToDecimal(item.DateE), BarCode = item.BarCode, ValueWeight = item.ValueWeight, ImportProductGID = item.Idimport, }).ToList()); }