public void SetCliente(int p_PedidoCliente_OID, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN nuevoCliente)
        {
            /*PROTECTED REGION ID(InfoCosteProgramaGenNHibernate.CEN.InfoCoste_PedidoCliente_setCliente_customized) START*/

            //Call to PedidoClienteCAD

            _IPedidoClienteCAD.SetCliente (p_PedidoCliente_OID, nuevoCliente);

            /*PROTECTED REGION END*/
        }
Example #2
0
        private void init(int id, Nullable<DateTime> fecha, string datosPago, InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoClienteEN pedidoCliente)
        {
            this.Id = id;

            this.Fecha = fecha;

            this.DatosPago = datosPago;

            this.PedidoCliente = pedidoCliente;
        }
        public void SetTrabajador(int p_oid, InfoCosteProgramaGenNHibernate.EN.InfoCoste.TrabajadorEN nuevoTrabajador)
        {
            /*PROTECTED REGION ID(InfoCosteProgramaGenNHibernate.CEN.InfoCoste_ParteIntervencion_setTrabajador) ENABLED START*/

            // Write here your custom code...

            throw new NotImplementedException ("Method SetTrabajador() not yet implemented.");

            /*PROTECTED REGION END*/
        }
 public LineaPedidoProveedorEN(string id, int numero, int cantidad, double descuento, double precioCoste, InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoProveedorEN pedidoProveedor, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ProductoEN producto)
 {
     this.init (id, numero, cantidad, descuento, precioCoste, pedidoProveedor, producto);
 }
        private void init(string id, int numero, int cantidad, double descuento, double precioCoste, InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoProveedorEN pedidoProveedor, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ProductoEN producto)
        {
            this.Id = id;

            this.Numero = numero;

            this.Cantidad = cantidad;

            this.Descuento = descuento;

            this.PrecioCoste = precioCoste;

            this.PedidoProveedor = pedidoProveedor;

            this.Producto = producto;
        }
Example #6
0
 public PedidoClienteEN(int id, Nullable<DateTime> fecha, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN cliente, InfoCosteProgramaGenNHibernate.EN.InfoCoste.TipoFacturaEN tipoFactura, System.Collections.Generic.IList<InfoCosteProgramaGenNHibernate.EN.InfoCoste.LineaPedidoEN> lineaPedido)
 {
     this.init (id, fecha, cliente, tipoFactura, lineaPedido);
 }
Example #7
0
        private void init(int id, Nullable<DateTime> fecha, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN cliente, InfoCosteProgramaGenNHibernate.EN.InfoCoste.TipoFacturaEN tipoFactura, System.Collections.Generic.IList<InfoCosteProgramaGenNHibernate.EN.InfoCoste.LineaPedidoEN> lineaPedido)
        {
            this.Id = id;

            this.Fecha = fecha;

            this.Cliente = cliente;

            this.TipoFactura = tipoFactura;

            this.LineaPedido = lineaPedido;
        }
Example #8
0
        public void SetCliente(int p_PedidoCliente_OID, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN nuevoCliente)
        {
            InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoClienteEN pedidoClienteEN = null;
            try
            {
                SessionInitializeTransaction ();
                pedidoClienteEN = (PedidoClienteEN)session.Load (typeof(PedidoClienteEN), p_PedidoCliente_OID);
                pedidoClienteEN.Cliente = (InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN)session.Load (typeof(InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN), nuevoCliente);

                pedidoClienteEN.Cliente.PedidoCliente.Add (pedidoClienteEN);

                session.Update (pedidoClienteEN);
                SessionCommit ();
            }

            catch (Exception ex) {
                SessionRollBack ();
                if (ex is InfoCosteProgramaGenNHibernate.Exceptions.ModelException)
                        throw ex;
                throw new InfoCosteProgramaGenNHibernate.Exceptions.DataLayerException ("Error in PedidoClienteCAD.", ex);
            }

            finally
            {
                SessionClose ();
            }
        }
Example #9
0
 public LineaPedidoEN(int id, int numero, int cantidad, double descuento, InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoClienteEN pedidoCliente, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ProductoEN producto)
 {
     this.init (id, numero, cantidad, descuento, pedidoCliente, producto);
 }
Example #10
0
        private void init(int id, int numero, int cantidad, double descuento, InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoClienteEN pedidoCliente, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ProductoEN producto)
        {
            this.Id = id;

            this.Numero = numero;

            this.Cantidad = cantidad;

            this.Descuento = descuento;

            this.PedidoCliente = pedidoCliente;

            this.Producto = producto;
        }
Example #11
0
 public PresupuestoEN(int id, Nullable<DateTime> fecha, string datosPago, InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoClienteEN pedidoCliente)
 {
     this.init (id, fecha, datosPago, pedidoCliente);
 }
Example #12
0
 public ParteIntervencionEN(int id, Nullable<DateTime> fecha, string datosPc, string accionesRealizadas, InfoCosteProgramaGenNHibernate.EN.InfoCoste.TrabajadorEN trabajador, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN cliente)
 {
     this.init (id, fecha, datosPc, accionesRealizadas, trabajador, cliente);
 }
Example #13
0
        private void init(int id, Nullable<DateTime> fecha, string datosPc, string accionesRealizadas, InfoCosteProgramaGenNHibernate.EN.InfoCoste.TrabajadorEN trabajador, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ClienteEN cliente)
        {
            this.Id = id;

            this.Fecha = fecha;

            this.DatosPc = datosPc;

            this.AccionesRealizadas = accionesRealizadas;

            this.Trabajador = trabajador;

            this.Cliente = cliente;
        }
Example #14
0
 public FacturaEN(int id, bool pagada, Nullable<DateTime> fecha, string datosPago, InfoCosteProgramaGenNHibernate.EN.InfoCoste.PedidoClienteEN pedidoCliente)
 {
     this.init (id, pagada, fecha, datosPago, pedidoCliente);
 }
Example #15
0
        private void init(int id, Nullable<DateTime> fecha, System.Collections.Generic.IList<InfoCosteProgramaGenNHibernate.EN.InfoCoste.LineaPedidoProveedorEN> lineaPedidoProveedor, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ProveedorEN proveedor)
        {
            this.Id = id;

            this.Fecha = fecha;

            this.LineaPedidoProveedor = lineaPedidoProveedor;

            this.Proveedor = proveedor;
        }
Example #16
0
 public PedidoProveedorEN(int id, Nullable<DateTime> fecha, System.Collections.Generic.IList<InfoCosteProgramaGenNHibernate.EN.InfoCoste.LineaPedidoProveedorEN> lineaPedidoProveedor, InfoCosteProgramaGenNHibernate.EN.InfoCoste.ProveedorEN proveedor)
 {
     this.init (id, fecha, lineaPedidoProveedor, proveedor);
 }