public EntityDetallePedido SelectByKey(KeyDetallePedido oKeyDetallePedido) { try { return(DetallePedidoApp.SelectByKey(oKeyDetallePedido)); } catch (Exception) { throw new FaultException("Error al seleccionar DetallePedidos"); } }
public EntityDetallePedido SelectByKey(KeyDetallePedido okey, CTransaction oCTransaction) { try { DataDetallePedidoRepository data = new DataDetallePedidoRepository(EntityDetallePedido.Empty, "detalle_pedido"); return(data.SelectByKey(okey, oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityDetallePedido SelectByKey(KeyDetallePedido oKeyDetallePedido) { try { CTransaction oCTransaction = CTransaction.Empty; return(Repo.SelectByKey(oKeyDetallePedido, oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityDetallePedido( KeyDetallePedido oKey, int oCantidad, decimal oTotalBruto, decimal oRetencion, decimal oTotalNeto, int oEstado) { this.key = oKey; this.cantidad = oCantidad; this.totalBruto = oTotalBruto; this.retencion = oRetencion; this.totalNeto = oTotalNeto; this.estado = oEstado; }
public EntityDetallePedido SelectByKey(KeyDetallePedido okey, CTransaction oCTransaction) { DataProcedure run = new DataProcedure(); run.CollectionParams.AddInputParameter("IDPedido", Entity.Key.IDPedido); run.CollectionParams.AddInputParameter("IDProducto", Entity.Key.IDProducto); using (IDataReader reader = run.ExecuteReader(oCTransaction, Procedimientos.DetallePedido_Select)) { if (reader.Read()) { return(EntityDetallePedido.Create(reader)); } } return(EntityDetallePedido.Empty); }
public EntityDetallePedidoPaginacion( KeyDetallePedido oKey, int oCantidad, decimal oTotalBruto, decimal oRetencion, decimal oTotalNeto, int oEstado, String oEstadoNombre, EntityPaginacion oEntityPaginacion) : base( oKey, oCantidad, oTotalBruto, oRetencion, oTotalNeto, oEstado ) { this.entityPaginacion = oEntityPaginacion; this.estadoNombre = oEstadoNombre; }