con los titulares, en algun me estoy comiendo algo, mañana lo veo :P
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+ <property name="focus_on_map">True</property>
<property name="has_separator">True</property>
<child internal-child="vbox">
<property name="has_separator">True</property>
<child internal-child="vbox">
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
<property name="rules_hint">False</property>
<property name="reorderable">False</property>
<property name="enable_search">True</property>
+ <property name="fixed_height_mode">False</property>
+ <property name="hover_selection">False</property>
+ <property name="hover_expand">False</property>
</widget>
</child>
</widget>
</widget>
</child>
</widget>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+ <property name="focus_on_map">True</property>
<property name="has_separator">True</property>
<property name="has_separator">True</property>
+ <signal name="response" handler="OnDialogResponse" last_modification_time="Mon, 04 Jul 2005 04:52:47 GMT"/>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
+ <property name="add_tearoffs">False</property>
+ <property name="focus_on_click">True</property>
</widget>
<packing>
<property name="padding">0</property>
</widget>
<packing>
<property name="padding">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="type">label_item</property>
</widget>
<packing>
<property name="type">label_item</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">2</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">4</property>
</widget>
<packing>
<property name="left_attach">4</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="visible">True</property>
<property name="items" translatable="yes">Rio Negro
Neuquen</property>
<property name="visible">True</property>
<property name="items" translatable="yes">Rio Negro
Neuquen</property>
+ <property name="add_tearoffs">False</property>
+ <property name="focus_on_click">True</property>
</widget>
<packing>
<property name="left_attach">1</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">4</property>
</widget>
<packing>
<property name="left_attach">4</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
</widget>
<packing>
<property name="left_attach">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
</widget>
<packing>
<property name="type">label_item</property>
</widget>
<packing>
<property name="type">label_item</property>
query.descend("_pendiente").constrain(false);
query.descend("_titular").constrain(s);
query.descend("_pendiente").constrain(false);
query.descend("_titular").constrain(s);
- Console.WriteLine (query);
ObjectSet result = query.execute();
ObjectSet result = query.execute();
- Console.WriteLine (result);
ArrayList lst = ObjectSetToArrayList (result);
return lst;
ArrayList lst = ObjectSetToArrayList (result);
return lst;
public void CargarFamiliar (
ETipoDocumento tipoTitular, int nroTitular, ETipoDocumento tipoDoc, int nroDoc, string nombre, string apellido, string email,
DateTime fechaNac, string calle, int numero, int piso, string dpto, string telefono,
public void CargarFamiliar (
ETipoDocumento tipoTitular, int nroTitular, ETipoDocumento tipoDoc, int nroDoc, string nombre, string apellido, string email,
DateTime fechaNac, string calle, int numero, int piso, string dpto, string telefono,
+ Console.WriteLine ("Se guarda {0} {1}", s.TipoDocumento, s.NroDocumento);
c.SaveSolicitante (s);
c.Dispose ();
}
c.SaveSolicitante (s);
c.Dispose ();
}
using Glade;
using Dominio.Afiliados;
using Dominio.Planes;
using Glade;
using Dominio.Afiliados;
using Dominio.Planes;
+using com.db4o;
+using com.db4o.query;
static public void Main (string[] args)
{
static public void Main (string[] args)
{
+ ObjectContainer db;
+ db = Db4o.openFile("os.yap");
+
+ Query query = db.query();
+ query.constrain(typeof(Persona));
+ ObjectSet result = query.execute();
+
+ Persona s;
+ Console.WriteLine (result);
+ Console.WriteLine ("--");
+ while ((s = (Persona)result.next ()) != null) {
+ Console.Write (" -- ");
+ Console.WriteLine ("{0} {1} {2} {3}", s.TipoDocumento, s.NroDocumento, s.Nombre, s.Apellido);
+ }
+ Console.WriteLine ("--");
+
+ db.close ();
if ( args.Length > 0) {
if (args[0].Equals ("--test")) {
EjecutarTests();
if ( args.Length > 0) {
if (args[0].Equals ("--test")) {
EjecutarTests();
{
TreeStore store = (TreeStore)lista.Model;
ArrayList familiares = c.ObtenerFamiliaresAfiliar (spadre);
{
TreeStore store = (TreeStore)lista.Model;
ArrayList familiares = c.ObtenerFamiliaresAfiliar (spadre);
- Console.WriteLine ("{0} {1} -> {2}", spadre.TipoDocumento, spadre.NroDocumento, familiares.Count);
foreach (Solicitante s in familiares) {
TreeIter iter = store.AppendValues (padre, s.TipoDocumento.ToString (), s.NroDocumento, s.Nombre, s.Apellido);
foreach (Solicitante s in familiares) {
TreeIter iter = store.AppendValues (padre, s.TipoDocumento.ToString (), s.NroDocumento, s.Nombre, s.Apellido);
ETipoDocumento tipoTitular;
int nroTitular;
ETipoDocumento tipoTitular;
int nroTitular;
+ RegistrarVisitasController c;
- public VAgregarFamiliar(int n, int t, ETipoDocumento td_titular, int doc_titular)
+ public VAgregarFamiliar(int n, int t, ETipoDocumento td_titular, int doc_titular, RegistrarVisitasController c)
xml = new Glade.XML (null, "registrar_visitas.glade", "agregar_familiar", null);
xml.Autoconnect (this);
actual = n;
xml = new Glade.XML (null, "registrar_visitas.glade", "agregar_familiar", null);
xml.Autoconnect (this);
actual = n;
public void OnDialogResponse (object o, ResponseArgs args)
{
TreeIter iter;
public void OnDialogResponse (object o, ResponseArgs args)
{
TreeIter iter;
- if (args.ResponseId == ResponseType.Cancel)
- return;
+ /*if (args.ResponseId == ResponseType.Cancel)
+ return; */
ETipoDocumento _tipoDoc;
int _nroDoc;
ETipoDocumento _tipoDoc;
int _nroDoc;
EProvincia _provincia;
string _telefono;
EProvincia _provincia;
string _telefono;
- /* Acept presionado, guardo */
- RegistrarVisitasController c = new RegistrarVisitasController (null);
-
tipoDoc.GetActiveIter (out iter);
_tipoDoc = (ETipoDocumento)Enum.Parse (typeof (ETipoDocumento), (string)tipoDoc.Model.GetValue (iter, 0), true);
_nroDoc = Int32.Parse (nroDoc.Text);
tipoDoc.GetActiveIter (out iter);
_tipoDoc = (ETipoDocumento)Enum.Parse (typeof (ETipoDocumento), (string)tipoDoc.Model.GetValue (iter, 0), true);
_nroDoc = Int32.Parse (nroDoc.Text);
tipoTitular, nroTitular, _tipoDoc, _nroDoc, _nombre, _apellido, _email,
_fechaNac, _calle, _numero, _piso, _dpto, _telefono,
_sexo);
tipoTitular, nroTitular, _tipoDoc, _nroDoc, _nombre, _apellido, _email,
_fechaNac, _calle, _numero, _piso, _dpto, _telefono,
_sexo);
}
public void OnSeleccionarFechaClicked (object o, EventArgs args)
}
public void OnSeleccionarFechaClicked (object o, EventArgs args)
if (familiares > 0) {
for (int i=0; i<familiares; i++) {
if (familiares > 0) {
for (int i=0; i<familiares; i++) {
- AgregarFamiliar (i+1, familiares, tipoDoc, nroDoc);
+ AgregarFamiliar (i+1, familiares, tipoDoc, nroDoc, c);
store.Remove (ref iter);
}
store.Remove (ref iter);
}
- private void AgregarFamiliar (int n, int total, ETipoDocumento tipo, int nro)
+ private void AgregarFamiliar (int n, int total, ETipoDocumento tipo, int nro, RegistrarVisitasController c)
- VAgregarFamiliar w = new VAgregarFamiliar (n, total, tipo, nro);
+ VAgregarFamiliar w = new VAgregarFamiliar (n, total, tipo, nro, c);