private void btn_selec_cli_Click(object sender, EventArgs e)
 {
     //llamada de nuevo producto
     if (upline == 0)
     {
         if (dataGrid_CLIENTES.VisibleRowCount != 0)
         {
             object selectedItem            = dataGrid_CLIENTES[dataGrid_CLIENTES.CurrentCell.RowNumber, 0];
             string codigo                  = selectedItem.ToString();
             Frm_Mantenimiento_Productos mp = new Frm_Mantenimiento_Productos();
             MantenimientoPro.LoadbyTxtCodigo(codigo);
             this.Close();
             this.Dispose();
         }
     }
     //llamada de boleta
     if (upline == 1)
     {
         if (dataGrid_CLIENTES.VisibleRowCount != 0)
         {
             object selectedItem = dataGrid_CLIENTES[dataGrid_CLIENTES.CurrentCell.RowNumber, 0];
             string codigo       = selectedItem.ToString();
             Nboleta.Show();
             Nboleta.LoadbyTxtCodigo(codigo, "Productos");
             this.Dispose();
             upline = 0;
         }
     }
     //llamada de nuevo stock
     if (upline == 2)
     {
         if (dataGrid_CLIENTES.VisibleRowCount != 0)
         {
             object selectedItem = dataGrid_CLIENTES[dataGrid_CLIENTES.CurrentCell.RowNumber, 0];
             string codigo       = selectedItem.ToString();
             ingresoalmacen_obj.Show();
             ingresoalmacen_obj.LoadbyTxtCodigo(codigo);
             this.Dispose();
             upline = 0;
         }
     }
     //llamada de nuevo factura
     if (upline == 3)
     {
         if (dataGrid_CLIENTES.VisibleRowCount != 0)
         {
             object selectedItem = dataGrid_CLIENTES[dataGrid_CLIENTES.CurrentCell.RowNumber, 0];
             string codigo       = selectedItem.ToString();
             NFactura.Show();
             NFactura.LoadbyTxtCodigo(codigo, "Productos");
             this.Dispose();
             upline = 0;
         }
     }
 }
 private void ingresoAlmacenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ingresoalmacen_obj = new Frm_Ingreso_Producto_Almacen(this);
     ingresoalmacen_obj.MdiParent = this;
     ingresoalmacen_obj.Show();
 }
Exemple #3
0
 private void ingresoAlmacenToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ingresoalmacen_obj           = new Frm_Ingreso_Producto_Almacen(this);
     ingresoalmacen_obj.MdiParent = this;
     ingresoalmacen_obj.Show();
 }