예제 #1
0
파일: vision.cs 프로젝트: nagyistge/osiris
        void on_button_reportes_clicked(object sender, EventArgs args)
        {
            Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null);
            gxml.Autoconnect(this);
            rango_de_fecha.Show();

            checkbutton_impr_todo_proce.Label   = "Imprime TODO";
            entry_referencia_inicial.IsEditable = false;
            entry_referencia_inicial.Text       = DateTime.Now.ToString("dd-MM-yyyy");
            entry_dia1.KeyPressEvent           += onKeyPressEvent;
            entry_mes1.KeyPressEvent           += onKeyPressEvent;
            entry_ano1.KeyPressEvent           += onKeyPressEvent;
            entry_dia2.KeyPressEvent           += onKeyPressEvent;
            entry_mes2.KeyPressEvent           += onKeyPressEvent;
            entry_ano2.KeyPressEvent           += onKeyPressEvent;
            entry_dia1.Text       = DateTime.Now.ToString("dd");
            entry_mes1.Text       = DateTime.Now.ToString("MM");
            entry_ano1.Text       = DateTime.Now.ToString("yyyy");
            entry_dia2.Text       = DateTime.Now.ToString("dd");
            entry_mes2.Text       = DateTime.Now.ToString("MM");
            entry_ano2.Text       = DateTime.Now.ToString("yyyy");
            button_salir.Clicked += new EventHandler(on_cierraventanas_clicked);
            button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte_vision);
            label_orden.Hide();
            label_nom_cliente.Hide();
            label142.Hide();
            radiobutton_cliente.Hide();
            radiobutton_fecha.Hide();
            checkbutton_todos_los_clientes.Hide();
            entry_referencia_inicial.Hide();
            entry_cliente.Hide();
            button_busca_cliente.Hide();
        }
예제 #2
0
        public reporte_de_abonos(string _nombrebd_, string tiporpt_, string LoginEmpleado_)
        {
            connectionString        = conexion_a_DB._url_servidor + conexion_a_DB._port_DB + conexion_a_DB._usuario_DB + conexion_a_DB._passwrd_user_DB;
            nombrebd                = conexion_a_DB._nombrebd;
            escala_en_linux_windows = classpublic.escala_linux_windows;
            tiporpt       = tiporpt_;
            LoginEmpleado = LoginEmpleado_;
            Glade.XML gxml = new Glade.XML(null, "caja.glade", "rango_de_fecha", null);
            gxml.Autoconnect(this);
            rango_de_fecha.Show();

            checkbutton_impr_todo_proce.Label   = "Imprime TODO";
            entry_referencia_inicial.IsEditable = false;
            entry_referencia_inicial.Text       = DateTime.Now.ToString("dd-MM-yyyy");
            entry_dia1.KeyPressEvent           += onKeyPressEvent;
            entry_mes1.KeyPressEvent           += onKeyPressEvent;
            entry_ano1.KeyPressEvent           += onKeyPressEvent;
            entry_dia2.KeyPressEvent           += onKeyPressEvent;
            entry_mes2.KeyPressEvent           += onKeyPressEvent;
            entry_ano2.KeyPressEvent           += onKeyPressEvent;
            entry_dia1.Text       = DateTime.Now.ToString("dd");
            entry_mes1.Text       = DateTime.Now.ToString("MM");
            entry_ano1.Text       = DateTime.Now.ToString("yyyy");
            entry_dia2.Text       = DateTime.Now.ToString("dd");
            entry_mes2.Text       = DateTime.Now.ToString("MM");
            entry_ano2.Text       = DateTime.Now.ToString("yyyy");
            button_salir.Clicked += new EventHandler(on_cierraventanas_clicked);
            button_imprime_rangofecha.Clicked += new EventHandler(imprime_reporte_abonos);
            label_orden.Hide();
            label_nom_cliente.Hide();
            label142.Hide();
            radiobutton_cliente.Hide();
            radiobutton_fecha.Hide();
            checkbutton_todos_los_clientes.Hide();
            entry_referencia_inicial.Hide();
            entry_cliente.Hide();
            button_busca_cliente.Hide();
        }