public EntityDetallePedido SelectByKey(KeyDetallePedido oKeyDetallePedido)
 {
     try
     {
         return(DetallePedidoApp.SelectByKey(oKeyDetallePedido));
     }
     catch (Exception)
     {
         throw new FaultException("Error al seleccionar DetallePedidos");
     }
 }
Esempio n. 2
0
 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;
     }
 }
Esempio n. 3
0
 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;
 }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
 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;
 }