コード例 #1
0
ファイル: RegistrarViaje.cs プロジェクト: AlexFalconR/TpGDD
        private void button1_Click(object sender, EventArgs e)
        {
            //ABRE EL FORM DE SELECCION DE PERSONA para cliente
            SeleccionPersonaActiva frm2 = new SeleccionPersonaActiva(this, "Cliente", 2);

            frm2.Show();
        }
コード例 #2
0
ファイル: RegistrarViaje.cs プロジェクト: AlexFalconR/TpGDD
        private void button_Buscar_Click(object sender, EventArgs e)
        {
            //ABRE EL FORM DE SELECCION DE PERSONA para chofer
            SeleccionPersonaActiva frm = new SeleccionPersonaActiva(this, "Chofer", 1);

            frm.Show();
        }
コード例 #3
0
        private void button_Buscar_Click(object sender, EventArgs e)
        {
            dateTimePicker1.Value          = Globals.getDateFechaSistema();
            dataGridView_Viajes.DataSource = new DataTable();
            textBox_montoTotal.Text        = "";
            textBox_Nombre.Text            = "";
            textBox_Apellido.Text          = "";
            textBox_DNI.Text = "";

            SeleccionPersonaActiva frm = new SeleccionPersonaActiva(this, "Chofer");

            frm.Show();
        }
コード例 #4
0
        private void button_Buscar_Click(object sender, EventArgs e)
        {
            foreach (var control in this.groupBox_Cliente.Controls.OfType <TextBox>())
            {
                control.Text = "";
            }

            dateTimePicker1.Value = new DateTime(Globals.getDateFechaSistema().Year, Globals.getDateFechaSistema().Month, 1);
            DateTime fechaI = new DateTime(Globals.getDateFechaSistema().Year, Globals.getDateFechaSistema().Month, 1);

            dateTimePicker_Inicio.Value = fechaI;
            DateTime fechaF = new DateTime(Globals.getDateFechaSistema().Year, Globals.getDateFechaSistema().Month, DateTime.DaysInMonth(Globals.getDateFechaSistema().Year, Globals.getDateFechaSistema().Month));

            dateTimePicker_Fin.Value       = fechaF;
            dataGridView_Viajes.DataSource = new DataTable();
            textBox_Numero.Text            = "A generar";
            textBox_montoTotal.Text        = "";

            SeleccionPersonaActiva frm = new SeleccionPersonaActiva(this, "Cliente");

            frm.Show();
        }