示例#1
0
 public SupplierPrice getSupplierPriceGF(string itemId,string supplierId)
 {
     supplierPrice s = ctx.supplierPrices.FirstOrDefault(o => o.itemId == itemId && o.supplierId == supplierId);
        SupplierPrice sp = new SupplierPrice();
        sp.ItemId = s.itemId;
        sp.SupplierId = s.supplierId;
        sp.Price =Convert.ToDouble(s.price);
        sp.ItemName = s.item.description;
        return sp;
 }
 // modify in 3/11
 public List<SupplierPrice> acceptSupplierPriceList(string supplierId)
 {
     List<supplierPrice> s = supplierFacade.getAllItemPrice_Lingna(supplierId);
     List<SupplierPrice> l = new List<SupplierPrice>();
     foreach (supplierPrice i in s)
     {
         SupplierPrice n = new SupplierPrice();
         n.ItemName = i.item.description;
         n.ItemId = i.itemId;
         n.Price = Convert.ToDouble(i.price);
         l.Add(n);
     }
     return l;
 }