public int InsertEOrderDetail(EOrderDetailModel model) { var entity = new EOrderDetail { OrderType = model.OrderType, OrderID = model.OrderID, Sn = model.Sn, Sku = model.Sku, Skudesc = model.Skudesc, WareId = model.WareId, Unit = model.Unit, UnitCost = model.UnitCost, UnitPrice = model.UnitPrice, QtyonSales = model.QtyonSales, Orderqty = model.Orderqty, Bkoqty = model.Bkoqty, Fullqty = model.Fullqty, Discount = model.Discount, Tax = model.Tax, OrderStats = model.OrderStats, CommText = model.CommText, FullDate = model.FullDate, CretDate = model.CretDate, ModiDate = model.ModiDate, CretID = model.CretID, Class1 = model.Class1, }; return(EOrderDetailRepository.Insert(entity)); }
public OperationResult Insert(EOrderDetailModel model) { var entity = new EOrderDetail { OrderType = model.OrderType, OrderID = model.OrderID, Sn = model.Sn, Sku = model.Sku, Skudesc = model.Skudesc, WareId = model.WareId, Unit = model.Unit, UnitCost = model.UnitCost, UnitPrice = model.UnitPrice, QtyonSales = model.QtyonSales, Orderqty = model.Orderqty, Bkoqty = model.Bkoqty, Fullqty = model.Fullqty, Discount = model.Discount, Tax = model.Tax, OrderStats = model.OrderStats, CommText = model.CommText, FullDate = model.FullDate, CretDate = model.CretDate, ModiDate = model.ModiDate, CretID = model.CretID, Class1 = model.Class1, }; EOrderDetailRepository.Insert(entity); return(new OperationResult(OperationResultType.Success, "Added successfully")); }