Пример #1
0
        private void formHistorial_Load(object sender, EventArgs e)
        {
            classHistorial historial = new classHistorial();

            string[] lines = System.IO.File.ReadAllLines(@"" + System.Windows.Forms.Application.StartupPath + "\\paths.txt");
            historial.setStringBD(lines[9]);
            DataTable tablaHistorial = historial.selectAll();

            dataGridHistorial.DataSource = tablaHistorial;
        }
Пример #2
0
        private void limpiarFormulario()
        {
            registroHistorial          = new classHistorial();
            comboBoxTurno.SelectedItem = null;
            comboBoxInspectorDeCalidadEnTurno.SelectedItem = null;
            comboBoxOperadorEnTurno.SelectedItem           = null;
            comboBoxSupervisorEnTurno.SelectedItem         = null;
            comboBoxUnidadesFinal.SelectedItem             = null;
            comboBoxIdentificadoPor.Text           = "";
            comboBoxAyudanteEnTurno.Text           = "";
            comboBoxResponsables.Text              = "";
            textBoxCantidadFinal.Text              = "";
            richTextBoxInspeccionesRealizadas.Text = "";
            comboBoxDisposicion.SelectedItem       = null;



            comboBoxEnterado.SelectedItem = null;
            textBoxCantidadDeLotes.Text   = "";
            arregloLotes        = null;
            textBoxPrefijo.Text = "";
            comboBoxResponsables.SelectedItem = null;
            textBoxPedido.Text                   = "PMM ";
            textBoxCantidadInicial.Text          = "";
            comboBoxDisposicion.Text             = "";
            comboBoxUnidadesInicial.SelectedItem = null;
            textBoxClave.Text                 = "";
            textBoxCliente.Text               = "";
            textBoxCalibre.Text               = "";
            textBoxMaterial.Text              = "";
            textBoxColor.Text                 = "";
            textBoxPerfil.Text                = "";
            textBoxCorte.Text                 = "";
            checkBoxCausaDesconocida.Checked  = false;
            richTextBoxObservaciones.Text     = "";
            richTextBoxCausa.Text             = "";
            richTextBoxDescripcion.Text       = "";
            comboBoxResponsables.SelectedItem = null;
        }