</child>
</widget>
</child>
+
+ <child>
+ <widget class="GtkMenuItem" id="afiliaciones1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Afiliaciones</property>
+ <property name="use_underline">True</property>
+
+ <child>
+ <widget class="GtkMenu" id="afiliaciones1_menu">
+
+ <child>
+ <widget class="GtkMenuItem" id="ingresar_solicitud1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Ingresar Solicitud</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="OnIngresarSolicitud" last_modification_time="Sun, 26 Jun 2005 00:09:38 GMT"/>
+ </widget>
+ </child>
+
+ <child>
+ <widget class="GtkMenuItem" id="emitir_hoja_de_ruta1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Emitir Hoja de Ruta</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="OnEmitirHojaDeRuta" last_modification_time="Sun, 26 Jun 2005 00:09:38 GMT"/>
+ </widget>
+ </child>
+
+ <child>
+ <widget class="GtkMenuItem" id="registrar_visitas1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Registrar Visitas</property>
+ <property name="use_underline">True</property>
+ <signal name="activate" handler="OnRegistrarVisitas" last_modification_time="Sun, 26 Jun 2005 00:09:38 GMT"/>
+ </widget>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="padding">0</property>
</child>
<child>
- <widget class="GtkToolButton" id="ConsultarAfiliado">
+ <widget class="GtkSeparatorToolItem" id="separatortoolitem1">
<property name="visible">True</property>
- <property name="label" translatable="yes">Ingresar
-Solicitud</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-open</property>
+ <property name="draw">False</property>
<property name="visible_horizontal">True</property>
<property name="visible_vertical">True</property>
- <property name="is_important">False</property>
- <signal name="clicked" handler="OnConsultarAfiliado" last_modification_time="Thu, 09 Jun 2005 04:51:58 GMT"/>
</widget>
<packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkToolButton" id="toolbutton4">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Emitir Hoja
- de Ruta</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-open</property>
- <property name="visible_horizontal">True</property>
- <property name="visible_vertical">True</property>
- <property name="is_important">False</property>
- <signal name="clicked" handler="OnEmitirHojaDeRuta" last_modification_time="Tue, 14 Jun 2005 04:18:14 GMT"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
- </packing>
- </child>
-
- <child>
- <widget class="GtkToolButton" id="toolbutton5">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Registrar
- Visitas</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-open</property>
- <property name="visible_horizontal">True</property>
- <property name="visible_vertical">True</property>
- <property name="is_important">False</property>
- <signal name="clicked" handler="OnRegistrarVisitas" last_modification_time="Thu, 16 Jun 2005 02:29:25 GMT"/>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="homogeneous">True</property>
+ <property name="expand">True</property>
+ <property name="homogeneous">False</property>
</packing>
</child>
Application.Quit ();
}
- public void OnConsultarAfiliado (object o, EventArgs args)
+ public void OnIngresarSolicitud(object o, EventArgs args)
{
VIngresarSolicitud v = new VIngresarSolicitud ();
v.Run ();
VRegistrarVisitas v = new VRegistrarVisitas ();
v.Run ();
}
-
- public void OnConsultarAfiliadoClose (object o, EventArgs args)
- {
- wConsultarAfiliado.Destroy ();
- }
-
- public void OnVerAfiliado (object o, EventArgs args)
- {
- }
-
- public void OnBuscarAfiliado (object o, EventArgs args)
- {
- Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
- TreeView lista = (TreeView)xmla.GetWidget ("lista");
- TreeStore store = (TreeStore)lista.Model;
- foreach (Afiliado a in lst) {
- if (a.Codigo == Int32.Parse (codigo.Text))
- store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);
- }
- }
}