示例#1
0
 public IU_ActualizarOrdenDeRemito1(Controlador_ActualizarOrdenRemito controladorInstanciado)
 {
     controladorAOR      = controladorInstanciado;
     marcadores          = new GMapOverlay("capaMarcador");
     validacion          = new Validaciones();
     InterfazVenta       = new IU_RegistrarVenta();
     InterfazNotaCredito = new IU_RegistrarNotaCredito();
     Entrega             = new Entrega();
     InitializeComponent();
 }
示例#2
0
 public IU_RegistrarOrden_4(Controlador_RegistrarOrden controlador)
 {
     InitializeComponent();
     controladorOR     = controlador;
     validar           = new Validaciones();
     listaRbtnManual   = new List <RadioButton>();
     listaLblManual    = new List <Label>();
     listaLblDistancia = new List <Label>();
     listaTxtManual    = new List <TextBox>();
     listaRbtnOpcion1  = new List <RadioButton>();
     listaRbtnOpcion2  = new List <RadioButton>();
     listaRbtnOpcion3  = new List <RadioButton>();
     listaRbtnOpcion4  = new List <RadioButton>();
     listaDeMapas      = new List <GMapControl>();
     InterfazVenta     = new IU_RegistrarVenta();
 }
示例#3
0
        public void iniciarVenta()
        {
            if (DateTime.Now > presupuesto.FechaVencimiento)
            {
                MessageBox.Show("El presupuesto esta vencido, los precios pueden variar", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            interfazVentaMostrador = new IU_RegistrarVenta();
            interfazVentaMostrador.gb_tipoCliente.Enabled = false;

            if (presupuesto.CodigoClienteMayorista != 0)
            {
                interfazVentaMostrador.rb_clienteMayorista.Checked = true;
                interfazVentaMostrador.txt_razonSocial.Text        = presupuesto.conocerClienteMayorista(presupuesto.CodigoClienteMayorista).RazonSocial;
            }

            int bandera = 0; //Se crea esta bandera para saber si se cargaron todos los articulos o no.

            foreach (var item in this.listaDetalle)
            {
                interfazVentaMostrador.controlador.codigoArticulo = item.CodigoArticulo;
                interfazVentaMostrador.controlador.cantidad       = item.Cantidad;
                interfazVentaMostrador.controlador.buscarDatosArticulos(interfazVentaMostrador.controlador.codigoArticulo);
                if (!interfazVentaMostrador.controlador.verificarStock())
                {
                    bandera = 1;
                }
            }

            interfazVentaMostrador.InterfazContenedora = interfazConsultarPresupuesto.InterfazContenedora;
            interfazVentaMostrador.Show();
            if (bandera != 0)
            {
                MessageBox.Show("Algunos de los articulos no se cargaron por falta de stock", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }