Beispiel #1
0
        private void btnBuscarCondicionPago_Click(object sender, EventArgs e)
        {
            FrmBusquedaAsistida winBuscar = new FrmBusquedaAsistida(condicionPagos);

            winBuscar.ShowDialog();
            if (winBuscar.DialogResult == DialogResult.OK)
            {
                txtCoCond.Text  = winBuscar.grdDatos.Rows[winBuscar.grdDatos.CurrentRow.Index].Cells[0].Value.ToString();
                txtDesCond.Text = winBuscar.grdDatos.Rows[winBuscar.grdDatos.CurrentRow.Index].Cells[1].Value.ToString();
            }
        }
Beispiel #2
0
        private void btnBuscarTransporte_Click(object sender, EventArgs e)
        {
            FrmBusquedaAsistida winBuscar = new FrmBusquedaAsistida(transportes);

            winBuscar.ShowDialog();
            if (winBuscar.DialogResult == DialogResult.OK)
            {
                txtCoTran.Text  = winBuscar.grdDatos.Rows[winBuscar.grdDatos.CurrentRow.Index].Cells[0].Value.ToString();
                txtDesTran.Text = winBuscar.grdDatos.Rows[winBuscar.grdDatos.CurrentRow.Index].Cells[1].Value.ToString();
            }
        }
Beispiel #3
0
        private void btnBucarEmpresa_Click(object sender, EventArgs e)
        {
            FrmBusquedaAsistida winBuscar = new FrmBusquedaAsistida(empresas.Where(e => e.Producto.Trim() == "ADMI").ToList());

            winBuscar.ShowDialog();

            if (winBuscar.DialogResult == DialogResult.OK)
            {
                txtCodEmpresa.Text  = winBuscar.grdDatos.Rows[winBuscar.grdDatos.CurrentRow.Index].Cells[0].Value.ToString();
                txtDescEmpresa.Text = winBuscar.grdDatos.Rows[winBuscar.grdDatos.CurrentRow.Index].Cells[1].Value.ToString();

                db = txtCodEmpresa.Text.Trim();

                CargarTablas();
            }
        }