Example #1
0
        public int New_(string p_usuario, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum p_estado, double p_importe, string p_direccion, CervezUAGenNHibernate.Enumerated.CervezUA.MetodoPagoEnum p_attribute)
        {
            PedidoEN pedidoEN = null;
            int      oid;

            //Initialized PedidoEN
            pedidoEN = new PedidoEN();

            if (p_usuario != null)
            {
                // El argumento p_usuario -> Property usuario es oid = false
                // Lista de oids id
                pedidoEN.Usuario          = new CervezUAGenNHibernate.EN.CervezUA.UsuarioEN();
                pedidoEN.Usuario.NUsuario = p_usuario;
            }

            pedidoEN.Estado = p_estado;

            pedidoEN.Importe = p_importe;

            pedidoEN.Direccion = p_direccion;

            pedidoEN.Attribute = p_attribute;

            //Call to PedidoCAD

            oid = _IPedidoCAD.New_(pedidoEN);
            return(oid);
        }
Example #2
0
        public void Modify(int p_Pedido_OID, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum p_estado)
        {
            PedidoEN pedidoEN = null;

            //Initialized PedidoEN
            pedidoEN        = new PedidoEN();
            pedidoEN.Id     = p_Pedido_OID;
            pedidoEN.Estado = p_estado;
            //Call to PedidoCAD

            _IPedidoCAD.Modify(pedidoEN);
        }
Example #3
0
        public void Modify(int p_Pedido_OID, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum p_estado, double p_importe, string p_direccion, CervezUAGenNHibernate.Enumerated.CervezUA.MetodoPagoEnum p_attribute)
        {
            PedidoEN pedidoEN = null;

            //Initialized PedidoEN
            pedidoEN           = new PedidoEN();
            pedidoEN.Id        = p_Pedido_OID;
            pedidoEN.Estado    = p_estado;
            pedidoEN.Importe   = p_importe;
            pedidoEN.Direccion = p_direccion;
            pedidoEN.Attribute = p_attribute;
            //Call to PedidoCAD

            _IPedidoCAD.Modify(pedidoEN);
        }
Example #4
0
        private void init(int id
                          , CervezUAGenNHibernate.EN.CervezUA.UsuarioEN usuario, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum estado, System.Collections.Generic.IList <CervezUAGenNHibernate.EN.CervezUA.LineaPedidoEN> lineas, double importe, string direccion, CervezUAGenNHibernate.Enumerated.CervezUA.MetodoPagoEnum attribute)
        {
            this.Id = id;


            this.Usuario = usuario;

            this.Estado = estado;

            this.Lineas = lineas;

            this.Importe = importe;

            this.Direccion = direccion;

            this.Attribute = attribute;
        }
Example #5
0
        private void init(int id
                          , System.Collections.Generic.IList <CervezUAGenNHibernate.EN.CervezUA.LineaPedidoEN> lineas, CervezUAGenNHibernate.EN.CervezUA.UsuarioEN usuario, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum estado, CervezUAGenNHibernate.EN.CervezUA.FacturaEN factura)
        {
            this.Id = id;


            this.Lineas = lineas;

            this.Usuario = usuario;

            this.Estado = estado;

            this.Factura = factura;
        }
Example #6
0
 public PedidoEN(int id, System.Collections.Generic.IList <CervezUAGenNHibernate.EN.CervezUA.LineaPedidoEN> lineas, CervezUAGenNHibernate.EN.CervezUA.UsuarioEN usuario, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum estado, CervezUAGenNHibernate.EN.CervezUA.FacturaEN factura
                 )
 {
     this.init(Id, lineas, usuario, estado, factura);
 }
Example #7
0
 public PedidoEN(int id, CervezUAGenNHibernate.EN.CervezUA.UsuarioEN usuario, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum estado, System.Collections.Generic.IList <CervezUAGenNHibernate.EN.CervezUA.LineaPedidoEN> lineas, double importe, string direccion, CervezUAGenNHibernate.Enumerated.CervezUA.MetodoPagoEnum attribute
                 )
 {
     this.init(Id, usuario, estado, lineas, importe, direccion, attribute);
 }
Example #8
0
        public int New_(System.Collections.Generic.IList <CervezUAGenNHibernate.EN.CervezUA.LineaPedidoEN> p_lineas, string p_usuario, CervezUAGenNHibernate.Enumerated.CervezUA.EstadoPedidoEnum p_estado)
        {
            /*PROTECTED REGION ID(CervezUAGenNHibernate.CEN.CervezUA_Pedido_new__customized) START*/

            PedidoEN pedidoEN = null;

            int oid;

            //Initialized PedidoEN
            pedidoEN        = new PedidoEN();
            pedidoEN.Lineas = p_lineas;


            if (p_usuario != null)
            {
                pedidoEN.Usuario          = new CervezUAGenNHibernate.EN.CervezUA.UsuarioEN();
                pedidoEN.Usuario.NUsuario = p_usuario;
            }

            pedidoEN.Estado = p_estado;

            //Call to PedidoCAD

            oid = _IPedidoCAD.New_(pedidoEN);
            return(oid);
            /*PROTECTED REGION END*/
        }