Ejemplo n.º 1
0
 private void btnAnular_Click(object sender, EventArgs e)
 {
     if (dgvOrdenes.CurrentRow != null && Convert.ToInt32(notaIngreso.CodNotaIngreso) != 0)
     {
         DialogResult dlgResult = MessageBox.Show("Esta seguro que desea anular la transferencia seleccionada", "Transferencia", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dlgResult == DialogResult.No)
         {
             return;
         }
         else
         {
             if (Application.OpenForms["frmVigenciaCotizacion"] != null)
             {
                 Application.OpenForms["frmVigenciaCotizacion"].Close();
             }
             else
             {
                 frmVigenciaCotizacion form = new frmVigenciaCotizacion();
                 form.Proceso           = 2;
                 form.Procede           = 2;
                 form.groupBox2.Visible = true;
                 form.groupBox1.Visible = false;
                 form.serie             = notaIngreso.CodSerie;
                 form.numeracion        = notaIngreso.NumDoc;
                 form.Show();
                 this.Close();
             }
         }
         CargaLista();
     }
 }
Ejemplo n.º 2
0
        private void btnrechazar_Click(object sender, EventArgs e)
        {
            if (dgvOrdenes.CurrentRow != null && Req.codAlmaDestino == frmLogin.iCodAlmacen && AtendidoReq == "VIGENTE")
            {
                DialogResult dlgResult = MessageBox.Show(
                    "Esta seguro que desea rechazar el Requerimiento seleccionado", "Requerimiento",
                    MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (dlgResult == DialogResult.No)
                {
                    return;
                }
                else
                {
                    if (Application.OpenForms["frmVigenciaCotizacion"] != null)
                    {
                        Application.OpenForms["frmVigenciaCotizacion"].Close();
                    }
                    else
                    {
                        frmVigenciaCotizacion form = new frmVigenciaCotizacion();
                        form.Proceso           = 2;
                        form.Procede           = 1;
                        form.groupBox2.Visible = true;
                        form.groupBox1.Visible = false;
                        form.CodRequerimiento  = Req.CodRequerimiento;
                        form.Show();


                        //if (tipo == 2)
                        //{
                        //    CargaListaHistorial(frmLogin.iCodAlmacen, tip);
                        //}
                    }
                }
            }
            else
            {
                MessageBox.Show("No se puede anular. Verifique");
            }
        }