Example #1
0
        private void btnconsultar_Click(object sender, EventArgs e)
        {
            frmNotaIngreso form = new frmNotaIngreso();

            form.CodNota = nota.CodNotaIngreso;
            form.Proceso = 3;
            form.Tipo    = 2;
            form.Show();
        }
Example #2
0
 private void btGenVenta_Click(object sender, EventArgs e)
 {
     if (dgvOrdenes.Rows.Count >= 1 && dgvOrdenes.CurrentRow != null)
     {
         DataGridViewRow row  = dgvOrdenes.CurrentRow;
         frmNotaIngreso  form = new frmNotaIngreso();
         form.MdiParent      = this.MdiParent;
         form.CodOrdenCompra = Ord.CodOrdenCompra;
         form.Proceso        = 7; // 7 orden de compra
         form.Show();
     }
 }
Example #3
0
 private void btGenVenta_Click(object sender, EventArgs e)
 {
     if (nota.CodNotaIngreso != "")
     {
         if (Application.OpenForms["frmNotaIngreso"] != null)
         {
             Application.OpenForms["frmNotaIngreso"].Close();
         }
         else
         {
             frmNotaIngreso form = new frmNotaIngreso();
             form.MdiParent = this.MdiParent;
             form.CodNota   = Convert.ToString(codnotaI);
             form.Proceso   = 3;
             form.Show();
         }
     }
 }
Example #4
0
        private void btnIrNota_Click(object sender, EventArgs e)
        {
            int f = dgvDocumentos.CurrentRow.Index;

            if (dgvDocumentos.Rows.Count >= 1)
            {
                if (dgvDocumentos.Rows[f].Cells[tipo.Name].Value.ToString() == "NI")
                {
                    frmNotaIngreso form = new frmNotaIngreso();
                    form.MdiParent = this.MdiParent;
                    form.CodNota   = notaI.CodNotaIngreso;
                    form.Proceso   = this.Proceso;
                    form.Show();
                }
                else
                {
                    frmNotaSalida form = new frmNotaSalida();
                    form.MdiParent = this.MdiParent;
                    form.CodNota   = notaS.CodNotaSalida;
                    form.Proceso   = this.Proceso;
                    form.Show();
                }
            }
        }
Example #5
0
 private void dgvDocumentos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvDocumentos.Rows.Count >= 1 && e.RowIndex != -1)
     {
         if (dgvDocumentos.Rows[e.RowIndex].Cells[tipo.Name].Value.ToString() == "NI")
         {
             frmNotaIngreso form = new frmNotaIngreso();
             form.MdiParent = this.MdiParent;
             form.CodNota   = notaI.CodNotaIngreso;
             form.Proceso   = this.Proceso;
             form.Show();
             //form.ShowDialog();
         }
         else
         {
             frmNotaSalida form = new frmNotaSalida();
             form.MdiParent = this.MdiParent;
             form.CodNota   = notaS.CodNotaSalida;
             form.Proceso   = this.Proceso;
             form.Show();
             //form.ShowDialog();
         }
     }
 }