public EntityPedidoPaginacion( KeyPedido oKey, int oIdEmpresa, string oCodigoPedido, DateTime oFechaPedido, DateTime oFechaPago, DateTime oFechaEntrega, int oIdEncargado, decimal oTotalBruto, decimal oRetencion, decimal oTotalNeto, int oEstado, String oEstadoNombre, EntityPaginacion oEntityPaginacion) : base( oKey, oIdEmpresa, oCodigoPedido, oFechaPedido, oFechaPago, oFechaEntrega, oIdEncargado, oTotalBruto, oRetencion, oTotalNeto, oEstado ) { this.entityPaginacion = oEntityPaginacion; this.estadoNombre = oEstadoNombre; }
public EntityPedido( KeyPedido oKey, int oIdEmpresa, string oCodigoPedido, DateTime oFechaPedido, DateTime oFechaPago, DateTime oFechaEntrega, int oIdEncargado, decimal oTotalBruto, decimal oRetencion, decimal oTotalNeto, int oEstado) { this.key = oKey; this.idEmpresa = oIdEmpresa; this.codigoPedido = oCodigoPedido; this.fechaPedido = oFechaPedido; this.fechaPago = oFechaPago; this.fechaEntrega = oFechaEntrega; this.idEncargado = oIdEncargado; this.totalBruto = oTotalBruto; this.retencion = oRetencion; this.totalNeto = oTotalNeto; this.estado = oEstado; }
public EntityPedido SelectByKey(KeyPedido oKeyPedido) { try { return(PedidoApp.SelectByKey(oKeyPedido)); } catch (Exception) { throw new FaultException("Error al seleccionar Pedidos"); } }
public EntityPedido SelectByKey(KeyPedido oKeyPedido) { try { return(PedidoService.SelectByKey(oKeyPedido)); } catch (Exception ex) { throw ex; } }
public EntityPedido SelectByKey(KeyPedido okey, CTransaction oCTransaction) { try { DataPedidoRepository data = new DataPedidoRepository(EntityPedido.Empty, "pedido"); return(data.SelectByKey(okey, oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityPedido SelectByKey(KeyPedido oKeyPedido) { try { CTransaction oCTransaction = CTransaction.Empty; return(Repo.SelectByKey(oKeyPedido, oCTransaction)); } catch (Exception ex) { throw ex; } }
public EntityPedido Insert(EntityPedido oEntityPedido, CTransaction oCTransaction) { try { DataPedidoRepository data = new DataPedidoRepository(oEntityPedido, "pedido"); oEntityPedido = data.Insert(oCTransaction); KeyPedido key = new KeyPedido(DataCreator.CreateInt32(data.CollectionParams.GetParameter("IDPedido").Value)); oEntityPedido.Key = key; return(oEntityPedido); } catch (Exception ex) { throw ex; } }
public EntityPedido SelectByKey(KeyPedido okey, CTransaction oCTransaction) { DataProcedure run = new DataProcedure(); run.CollectionParams.AddInputParameter("IDPedido", okey.IDPedido); using (IDataReader reader = run.ExecuteReader(oCTransaction, Procedimientos.Pedido_Select)) { if (reader.Read()) { return(EntityPedido.Create(reader)); } } return(EntityPedido.Empty); }