Exemplo n.º 1
0
 public WindowCarrier(UsuarioE u)
 {
     InitializeComponent();
     pl     = new PedidoL();
     this.u = u;
     prl    = new LProducto();
     sel    = new LServicio();
     tl     = new LTransporte();
     dgvTransportes.Columns[0].ValueType = typeof(object);
     CargarPedidosTransporte();
 }
 public WindowCashier(UsuarioE u)
 {
     InitializeComponent();
     pl     = new PedidoL();
     this.u = u;
     ul     = new LUsuario();
     prl    = new LProducto();
     sel    = new LServicio();
     dgvPedidos.Columns[0].ValueType = typeof(object);
     CargarPedidos();
 }
Exemplo n.º 3
0
 public bool ProductoExisteEnCompra(int id)
 {
     try
     {
         var listResult = new LProducto().ExisteEnCompra(id);
         return(listResult);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 4
0
 public List <VProductoLista> ProductoListar()
 {
     try
     {
         var listResult = new LProducto().Listar();
         return(listResult);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 5
0
 public bool ProductoEliminar(int id)
 {
     try
     {
         var result = new LProducto().Eliminar(id);
         return(result);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 6
0
 public bool ProductoModificar(VProducto Producto, int id)
 {
     try
     {
         var result = new LProducto().Modificar(Producto, id);
         return(result);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 7
0
 public bool ProductoGuardar(VProducto Producto, ref int id)
 {
     try
     {
         var result = new LProducto().Guardar(Producto, ref id);
         return(result);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
        public LineaFacturaCompra registrarLinea(LProducto lProducto, int cantidad)
        {
            LLineaFactura linea = new LLineaFactura();

            //lProducto.Stock = linea.Smstock;
            linea.Cantidad = cantidad;
            linea.Producto = lProducto;
            List <LLineaFactura> lineas = LineasFC;

            lineas.Add(linea);
            LineaFacturaCompra datoslineafactura = linea.getDataType();

            return(datoslineafactura);
        }
 public WindowClient()
 {
     InitializeComponent();
     pl        = new PedidoL();
     productos = new LinkedList <PedidoClienteProductoE>();
     servicios = new LinkedList <PedidoClienteServicioE>();
     prl       = new LProducto();
     sel       = new LServicio();
     tl        = new LTransporte();
     utilities = new UtilitiesL();
     iva       = 13;
     CargarCategoriaProducto();
     CargarCategoriaServicio();
     CargarNombreProducto();
     CargarNombreServicio();
     Limpiar();
 }
Exemplo n.º 10
0
 public WindowBuilder(UsuarioE u)
 {
     InitializeComponent();
     pl        = new PedidoL();
     servicios = new LinkedList <PedidoSoloServicioServicioE>();
     this.u    = u;
     prl       = new LProducto();
     sel       = new LServicio();
     tl        = new LTransporte();
     utilities = new UtilitiesL();
     lblCodigoConstructorT.Text = u.Codigo;
     lblNombreConstructorT.Text = u.Nombre;
     CargarCategoria();
     CargarServicios();
     Limpiar();
     Activar(false);
     dgvCarritoCompras.Columns[0].ValueType = typeof(ServicioE);
     dgvPedidos.Columns[0].ValueType        = typeof(object);
     CargarPedidos();
 }
 public WindowSeller(UsuarioE u)
 {
     InitializeComponent();
     pl        = new PedidoL();
     productos = new LinkedList <PedidoCompletoProductoE>();
     servicios = new LinkedList <PedidoCompletoServicioE>();
     this.u    = u;
     prl       = new LProducto();
     sel       = new LServicio();
     tl        = new LTransporte();
     utilities = new UtilitiesL();
     lblCodigoVendedorT.Text = u.Codigo;
     lblNombreVendedorT.Text = u.Nombre;
     CargarCategoriaProducto();
     CargarCategoriaServicio();
     CargarProductos();
     CargarServicios();
     Limpiar();
     Activar(false);
     dgvCarritoComprasProductos.Columns[0].ValueType = typeof(ProductoE);
     dgvCarritoComprasServicios.Columns[0].ValueType = typeof(ServicioE);
 }