Beispiel #1
0
        private void AbrirSolicitud(int?codigo)
        {
            ReqCambios rc = new ReqCambios();

            rc.getCodigo.Text = "" + codigo;
            rc.Show();
        }
Beispiel #2
0
        private void btnbuscar_Click(object sender, EventArgs e)
        {
            DTORfc  rfc = new DTORfc();
            DAORFC  dao = new DAORFC();
            DataSet ds  = new DataSet();

            txtcodbuscar.Text = txtcodbuscar.Text.Trim();
            int buscador = comboBox1.SelectedIndex;

            switch (buscador)
            {
            case 0:

                try
                {
                    rfc.Codigo = (Int32)Int32.Parse(txtcodbuscar.Text);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Solo ingresa la parte númerica del código.");
                    return;
                }

                ds = dao.select(rfc);
                break;

            case 1:
                rfc.Codatenciontercero = txtcodbuscar.Text;
                ds = dao.buscarTicket(rfc, 1);
                break;

            case 2:
                rfc.Codatenciontercero = txtcodbuscar.Text;
                ds = dao.buscarTicket(rfc, 2);
                break;
            }


            if (ds != null && ds.Tables[0].Rows.Count != 0)
            {
                ReqCambios rc = new ReqCambios();
                rc.getCodigo.Text = "" + ds.Tables[0].Rows[0]["codigo"];
                rc.Show();

                Consultar k = this;
                k.Close();
            }
            else
            {
                MessageBox.Show("No existe RFC para el código ingresado.");
                return;
            }
        }
Beispiel #3
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int rowIndex = e.RowIndex;

            if (rowIndex != -1)
            {
                DataGridViewRow row = dataGridView1.Rows[rowIndex];
                ReqCambios      rc  = new ReqCambios();
                rc.getCodigo.Text = "" + row.Cells[0].Value;
                rc.Show();
            }
        }
Beispiel #4
0
 public CalProbabilidad(ReqCambios rq)
 {
     InitializeComponent();
     this.rq = rq;
 }
Beispiel #5
0
 public FormRechazo(ReqCambios rq)
 {
     InitializeComponent();
     this.rq = rq;
 }
Beispiel #6
0
 public CalImpacto(ReqCambios rq)
 {
     InitializeComponent();
     this.rq = rq;
 }
Beispiel #7
0
 public cac(ReqCambios rq)
 {
     InitializeComponent();
     this.rq = rq;
 }