public lista_ordenes_compra()
        {
            Glade.XML gxml = new Glade.XML(null, "almacen_costos_compras.glade", "envio_almacenes", null);
            gxml.Autoconnect(this);

            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;

            envio_almacenes.Title = "LISTA ORDENES DE COMPRA";
            entry_dia_inicio.Text = DateTime.Now.ToString("dd");
            entry_mes_inicio.Text = DateTime.Now.ToString("MM");
            entry_ano_inicio.Text = DateTime.Now.ToString("yyyy");

            entry_dia_termino.Text = DateTime.Now.ToString("dd");
            entry_mes_termino.Text = DateTime.Now.ToString("MM");
            entry_ano_termino.Text = DateTime.Now.ToString("yyyy");

            //hbox1.Hide();
            label3.Hide();
            checkbutton2.Hide();
            label1.Text = "Proveedor ";
            entry_codigo_producto.Hide();
            entry_desc_producto.Hide();
            button_buscar_prodreq.Hide();

            checkbutton_seleccion_presupuestos.Hide();

            button_salir.Clicked             += new EventHandler(on_cierraventanas_clicked);
            button_buscar.Clicked            += new EventHandler(on_buscar_ordencompra_clicked);
            button_rep.Clicked               += new EventHandler(on_button_rep_clicked);
            checkbutton_todos_envios.Clicked += new EventHandler(on_checkbutton_todos_envios);
            button_buscar1.Clicked           += new EventHandler(on_button_buscar_proveedor_clicked);

            crea_treeview_ordendecompra();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 static void one_act(Gtk.Entry entry, Gtk.ToggleButton butn)
 {
     if (butn.Active == true)
     {
         entry.Sensitive = false;
         entry.Hide();
     }
     else
     {
         entry.Sensitive = true;
         entry.Show();
     }
 }
 void hideWidgets()
 {
     hbox_error.Hide();
     entry.Hide();
     hbox_entry2.Hide();
     hbox_entry3.Hide();
     hbox_spin_int.Hide();
     hbox_spin_int2.Hide();
     hbox_spin_int3.Hide();
     spin_double.Hide();
     hbox_spin_double2.Hide();
     hbox_height_metric.Hide();
     hbox_edit_row.Hide();
     hbox_all_none_selected.Hide();
     hbox_combo_all_none_selected.Hide();
     hbuttonbox_middle.Hide();
     scrolled_window_textview.Hide();
     scrolled_window_treeview.Hide();
 }
Beispiel #5
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();
        }
Beispiel #6
0
    protected void fillDialog(Event myEvent)
    {
        fillWindowTitleAndLabelHeader();

        string id = myEvent.UniqueID.ToString();

        if (myEvent.Simulated == Constants.Simulated)
        {
            label_simulated.Show();
        }

        label_event_id_value.Text      = id;
        label_event_id_value.UseMarkup = true;

        if (showTv)
        {
            fillTv(myEvent);
        }
        else
        {
            label_tv_title.Hide();
            entry_tv_value.Hide();
            label_tv_units.Hide();
        }

        if (showTc)
        {
            fillTc(myEvent);
        }
        else
        {
            label_tc_title.Hide();
            entry_tc_value.Hide();
            label_tc_units.Hide();
        }

        if (showFall)
        {
            fillFall(myEvent);
        }
        else
        {
            label_fall_title.Hide();
            entry_fall_value.Hide();
            label_fall_units.Hide();
        }

        if (showDistance)
        {
            fillDistance(myEvent);
        }
        else
        {
            label_distance_title.Hide();
            entry_distance_value.Hide();
            label_distance_units.Hide();
        }

        if (showTime)
        {
            fillTime(myEvent);
        }
        else
        {
            label_time_title.Hide();
            entry_time_value.Hide();
            label_time_units.Hide();
        }

        if (showSpeed)
        {
            fillSpeed(myEvent);
        }
        else
        {
            label_speed_title.Hide();
            label_speed_value.Hide();
            label_speed_units.Hide();
        }

        if (showWeight)
        {
            fillWeight(myEvent);
        }
        else
        {
            label_weight_title.Hide();
            entry_weight_value.Hide();
            label_weight_units.Hide();
        }

        if (showLimited)
        {
            fillLimited(myEvent);
        }
        else
        {
            label_limited_title.Hide();
            label_limited_value.Hide();
        }

        if (showAngle)
        {
            fillAngle(myEvent);
        }
        else
        {
            label_angle_title.Hide();
            entry_angle_value.Hide();
            label_angle_units.Hide();
        }

        if (!showMistakes)
        {
            label_mistakes.Hide();
            spin_mistakes.Hide();
        }


        //also remove new line for old descriptions that used a textview
        string temp = Util.RemoveTildeAndColonAndDot(myEvent.Description);

        entry_description.Text = Util.RemoveNewLine(temp, true);

        createComboEventType(myEvent);

        if (!showType)
        {
            label_type_title.Hide();
            combo_eventType.Hide();
        }

        if (showRunStart)
        {
            fillRunStart(myEvent);
        }
        else
        {
            label_run_start_title.Hide();
            label_run_start_value.Hide();
        }

        ArrayList persons = SqlitePersonSession.SelectCurrentSessionPersons(
            myEvent.SessionID,
            false);                     //means: do not returnPersonAndPSlist

        string [] personsStrings = new String[persons.Count];
        int       i = 0;

        foreach (Person person in persons)
        {
            personsStrings[i++] = person.IDAndName(":");
        }

        combo_persons = ComboBox.NewText();
        UtilGtk.ComboUpdate(combo_persons, personsStrings, "");
        combo_persons.Active = UtilGtk.ComboMakeActive(personsStrings, myEvent.PersonID + ":" + myEvent.PersonName);

        oldPersonID = myEvent.PersonID;

        hbox_combo_person.PackStart(combo_persons, true, true, 0);
        hbox_combo_person.ShowAll();

        //show video if available
        videoFileName = Util.GetVideoFileName(myEvent.SessionID, typeOfTest, myEvent.UniqueID);
        if (File.Exists(videoFileName))
        {
            label_video_yes.Visible      = true;
            label_video_no.Visible       = false;
            button_video_watch.Sensitive = true;
            button_video_url.Sensitive   = true;
        }
        else
        {
            label_video_yes.Visible      = false;
            label_video_no.Visible       = true;
            button_video_watch.Sensitive = false;
            button_video_url.Sensitive   = false;
        }
    }
Beispiel #7
0
        private void CreateFindbar()
        {
            // FindEntry
            find_entry = new Gtk.Entry ();
            //find_entry.Activated += new EventHandler(on_uri_activate);

            Gtk.ToolItem find_item = new Gtk.ToolItem ();
            //find_item.Expand = false;
            find_item.Add (find_entry);

            // Toolbar
            findbar = new Toolbar ();
            findbar.ToolbarStyle = ToolbarStyle.Icons;
            findbar.Orientation = Orientation.Horizontal;
            findbar.ShowArrow = true;

            // Toolbar Items
            findbar.Add (action_stop.CreateToolItem());
            findbar.Add (find_item);
            findbar.Add (action_back.CreateToolItem());
            findbar.Add (action_forward.CreateToolItem());
            find_entry.Hide();
        }