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;
         }
     }
 }
Beispiel #2
0
 private void btn_selec_cli_Click(object sender, EventArgs e)
 {
     if (upline == 0)
     {
         if (dataGrid_CLIENTES.VisibleRowCount != 0)
         {
             object selectedItem = dataGrid_CLIENTES[dataGrid_CLIENTES.CurrentCell.RowNumber, 0];
             string codigo       = selectedItem.ToString();
             //codigo = dataTable.Rows[dataGrid_CLIENTES.CurrentRowIndex][0].ToString();
             // DisplayCliente a = new DisplayCliente();
             // a.MdiParent = contene;
             // a.Show();
             //this.Dispose();
             MantenimientoCli.LoadbyTxtCodigo(codigo);
             this.Close();
             this.Dispose();
         }
     }
     //Llama nuevo boleta
     if (upline == 1)
     {
         object selectedItem = dataGrid_CLIENTES[dataGrid_CLIENTES.CurrentCell.RowNumber, 0];
         string codigo       = selectedItem.ToString();
         Nboleta.Show();
         Nboleta.LoadbyTxtCodigo(codigo, "Clientes");
         this.Dispose();
         upline = 0;
     }
     //Llama nuevo factura
     if (upline == 2)
     {
         object selectedItem = dataGrid_CLIENTES[dataGrid_CLIENTES.CurrentCell.RowNumber, 0];
         string codigo       = selectedItem.ToString();
         NFactura.Show();
         NFactura.LoadbyTxtCodigo(codigo, "Clientes");
         this.Dispose();
         upline = 0;
     }
 }
 private void MenuFacturaNuevo_Click(object sender, EventArgs e)
 {
     NuevaFactura = new Frm_FacturaPrincipal(this);
     NuevaFactura.MdiParent = this;
     NuevaFactura.Show();
 }
Beispiel #4
0
 private void MenuFacturaNuevo_Click(object sender, EventArgs e)
 {
     NuevaFactura           = new Frm_FacturaPrincipal(this);
     NuevaFactura.MdiParent = this;
     NuevaFactura.Show();
 }