]> git.llucax.com Git - z.facultad/75.10/miklolife.git/commitdiff
Para que compile
authorRicardo Markiewicz <gazer.arg@gmail.com>
Wed, 6 Jul 2005 20:55:01 +0000 (20:55 +0000)
committerRicardo Markiewicz <gazer.arg@gmail.com>
Wed, 6 Jul 2005 20:55:01 +0000 (20:55 +0000)
demo/glade/consultar_afiliado.glade
demo/glade/main.glade
demo/glade/pedido_autorizacion_manual.glade
demo/src/Controlador/AfiliadoSolicitanteController.cs
demo/src/Dominio/Afiliado.cs
demo/src/Main.cs
demo/src/Makefile

index c5c644f4fa7d6a56d643ac54db1ecdde7678948a..3de2c963ab7a722331be11c0c99203ed9c791a60 100644 (file)
@@ -3,7 +3,7 @@
 
 <glade-interface>
 
 
 <glade-interface>
 
-<widget class="GtkDialog" id="consultarAfiliado">
+<widget class="GtkDialog" id="consultar_afiliado">
   <property name="visible">True</property>
   <property name="title" translatable="yes">Consultar Afiliado</property>
   <property name="type">GTK_WINDOW_TOPLEVEL</property>
   <property name="visible">True</property>
   <property name="title" translatable="yes">Consultar Afiliado</property>
   <property name="type">GTK_WINDOW_TOPLEVEL</property>
@@ -40,7 +40,6 @@
              <property name="relief">GTK_RELIEF_NORMAL</property>
              <property name="focus_on_click">True</property>
              <property name="response_id">-7</property>
              <property name="relief">GTK_RELIEF_NORMAL</property>
              <property name="focus_on_click">True</property>
              <property name="response_id">-7</property>
-             <signal name="clicked" handler="OnConsultarAfiliadoClose" last_modification_time="Thu, 09 Jun 2005 04:57:08 GMT"/>
            </widget>
          </child>
        </widget>
            </widget>
          </child>
        </widget>
@@ -778,7 +777,7 @@ CI</property>
                                <widget class="GtkEntry" id="nroDoc">
                                  <property name="visible">True</property>
                                  <property name="can_focus">True</property>
                                <widget class="GtkEntry" id="nroDoc">
                                  <property name="visible">True</property>
                                  <property name="can_focus">True</property>
-                                 <property name="editable">True</property>
+                                 <property name="editable">False</property>
                                  <property name="visibility">True</property>
                                  <property name="max_length">0</property>
                                  <property name="text" translatable="yes"></property>
                                  <property name="visibility">True</property>
                                  <property name="max_length">0</property>
                                  <property name="text" translatable="yes"></property>
@@ -842,7 +841,7 @@ CI</property>
                            <widget class="GtkEntry" id="email">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                            <widget class="GtkEntry" id="email">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -864,7 +863,7 @@ CI</property>
                            <widget class="GtkEntry" id="apellido">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                            <widget class="GtkEntry" id="apellido">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -886,7 +885,7 @@ CI</property>
                            <widget class="GtkEntry" id="nombre">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                            <widget class="GtkEntry" id="nombre">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -959,7 +958,7 @@ CI</property>
                      <child>
                        <widget class="GtkTable" id="table3">
                          <property name="visible">True</property>
                      <child>
                        <widget class="GtkTable" id="table3">
                          <property name="visible">True</property>
-                         <property name="n_rows">5</property>
+                         <property name="n_rows">4</property>
                          <property name="n_columns">4</property>
                          <property name="homogeneous">False</property>
                          <property name="row_spacing">8</property>
                          <property name="n_columns">4</property>
                          <property name="homogeneous">False</property>
                          <property name="row_spacing">8</property>
@@ -1054,7 +1053,7 @@ CI</property>
                              <property name="width_request">75</property>
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                              <property name="width_request">75</property>
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -1128,7 +1127,7 @@ CI</property>
                              <property name="width_request">75</property>
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                              <property name="width_request">75</property>
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -1223,7 +1222,7 @@ Neuquen</property>
                            <widget class="GtkEntry" id="codigopostal">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                            <widget class="GtkEntry" id="codigopostal">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -1272,7 +1271,7 @@ Neuquen</property>
                            <widget class="GtkEntry" id="telefono">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                            <widget class="GtkEntry" id="telefono">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -1293,7 +1292,7 @@ Neuquen</property>
                            <widget class="GtkEntry" id="calle">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                            <widget class="GtkEntry" id="calle">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
-                             <property name="editable">True</property>
+                             <property name="editable">False</property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
                              <property name="visibility">True</property>
                              <property name="max_length">0</property>
                              <property name="text" translatable="yes"></property>
@@ -1346,7 +1345,163 @@ Neuquen</property>
              </child>
 
              <child>
              </child>
 
              <child>
-               <placeholder/>
+               <widget class="GtkFrame" id="frame6">
+                 <property name="visible">True</property>
+                 <property name="label_xalign">0</property>
+                 <property name="label_yalign">0.5</property>
+                 <property name="shadow_type">GTK_SHADOW_NONE</property>
+
+                 <child>
+                   <widget class="GtkAlignment" id="alignment6">
+                     <property name="visible">True</property>
+                     <property name="xalign">0.5</property>
+                     <property name="yalign">0.5</property>
+                     <property name="xscale">1</property>
+                     <property name="yscale">1</property>
+                     <property name="top_padding">0</property>
+                     <property name="bottom_padding">0</property>
+                     <property name="left_padding">12</property>
+                     <property name="right_padding">0</property>
+
+                     <child>
+                       <widget class="GtkTable" id="table4">
+                         <property name="visible">True</property>
+                         <property name="n_rows">3</property>
+                         <property name="n_columns">2</property>
+                         <property name="homogeneous">False</property>
+                         <property name="row_spacing">8</property>
+                         <property name="column_spacing">8</property>
+
+                         <child>
+                           <widget class="GtkLabel" id="label24">
+                             <property name="visible">True</property>
+                             <property name="label" translatable="yes">Estado de Cuenta : </property>
+                             <property name="use_underline">False</property>
+                             <property name="use_markup">False</property>
+                             <property name="justify">GTK_JUSTIFY_LEFT</property>
+                             <property name="wrap">False</property>
+                             <property name="selectable">False</property>
+                             <property name="xalign">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>
+                             <property name="right_attach">1</property>
+                             <property name="top_attach">0</property>
+                             <property name="bottom_attach">1</property>
+                             <property name="x_options">fill</property>
+                             <property name="y_options"></property>
+                           </packing>
+                         </child>
+
+                         <child>
+                           <widget class="GtkEntry" id="deuda">
+                             <property name="visible">True</property>
+                             <property name="can_focus">True</property>
+                             <property name="editable">False</property>
+                             <property name="visibility">True</property>
+                             <property name="max_length">0</property>
+                             <property name="text" translatable="yes"></property>
+                             <property name="has_frame">True</property>
+                             <property name="invisible_char">*</property>
+                             <property name="activates_default">False</property>
+                           </widget>
+                           <packing>
+                             <property name="left_attach">1</property>
+                             <property name="right_attach">2</property>
+                             <property name="top_attach">0</property>
+                             <property name="bottom_attach">1</property>
+                             <property name="y_options"></property>
+                           </packing>
+                         </child>
+
+                         <child>
+                           <widget class="GtkLabel" id="label25">
+                             <property name="visible">True</property>
+                             <property name="label" translatable="yes">Código : </property>
+                             <property name="use_underline">False</property>
+                             <property name="use_markup">False</property>
+                             <property name="justify">GTK_JUSTIFY_LEFT</property>
+                             <property name="wrap">False</property>
+                             <property name="selectable">False</property>
+                             <property name="xalign">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>
+                             <property name="right_attach">1</property>
+                             <property name="top_attach">1</property>
+                             <property name="bottom_attach">2</property>
+                             <property name="x_options">fill</property>
+                             <property name="y_options"></property>
+                           </packing>
+                         </child>
+
+                         <child>
+                           <widget class="GtkEntry" id="codigo">
+                             <property name="visible">True</property>
+                             <property name="can_focus">True</property>
+                             <property name="editable">False</property>
+                             <property name="visibility">True</property>
+                             <property name="max_length">0</property>
+                             <property name="text" translatable="yes"></property>
+                             <property name="has_frame">True</property>
+                             <property name="invisible_char">*</property>
+                             <property name="activates_default">False</property>
+                           </widget>
+                           <packing>
+                             <property name="left_attach">1</property>
+                             <property name="right_attach">2</property>
+                             <property name="top_attach">1</property>
+                             <property name="bottom_attach">2</property>
+                             <property name="y_options"></property>
+                           </packing>
+                         </child>
+                       </widget>
+                     </child>
+                   </widget>
+                 </child>
+
+                 <child>
+                   <widget class="GtkLabel" id="label23">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">&lt;b&gt;Otros&lt;/b&gt;</property>
+                     <property name="use_underline">False</property>
+                     <property name="use_markup">True</property>
+                     <property name="justify">GTK_JUSTIFY_LEFT</property>
+                     <property name="wrap">False</property>
+                     <property name="selectable">False</property>
+                     <property name="xalign">0.5</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>
+                   </packing>
+                 </child>
+               </widget>
+               <packing>
+                 <property name="padding">0</property>
+                 <property name="expand">True</property>
+                 <property name="fill">True</property>
+               </packing>
              </child>
            </widget>
            <packing>
              </child>
            </widget>
            <packing>
index 0a034b7635be2416f3982b7aa8e4b1e602f4ca55..fd0761f4058d03c56e46425ab3d35b274132c4cc 100644 (file)
              </child>
            </widget>
          </child>
              </child>
            </widget>
          </child>
+
+         <child>
+           <widget class="GtkMenuItem" id="autorizaciones1">
+             <property name="visible">True</property>
+             <property name="label" translatable="yes">Autorizaciones</property>
+             <property name="use_underline">True</property>
+
+             <child>
+               <widget class="GtkMenu" id="autorizaciones1_menu">
+
+                 <child>
+                   <widget class="GtkMenuItem" id="pedido_autorización_manual1">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">Pedido Autorización Manual</property>
+                     <property name="use_underline">True</property>
+                     <signal name="activate" handler="OnPedidoAutorizacionManual" last_modification_time="Wed, 06 Jul 2005 08:11:11 GMT"/>
+                   </widget>
+                 </child>
+               </widget>
+             </child>
+           </widget>
+         </child>
+
+         <child>
+           <widget class="GtkMenuItem" id="consultas1">
+             <property name="visible">True</property>
+             <property name="label" translatable="yes">Consultas</property>
+             <property name="use_underline">True</property>
+
+             <child>
+               <widget class="GtkMenu" id="consultas1_menu">
+
+                 <child>
+                   <widget class="GtkMenuItem" id="consultar_afiliado1">
+                     <property name="visible">True</property>
+                     <property name="label" translatable="yes">Consultar Afiliado</property>
+                     <property name="use_underline">True</property>
+                     <signal name="activate" handler="OnConsultarAfiliado" last_modification_time="Wed, 06 Jul 2005 08:26:17 GMT"/>
+                   </widget>
+                 </child>
+               </widget>
+             </child>
+           </widget>
+         </child>
        </widget>
        <packing>
          <property name="padding">0</property>
        </widget>
        <packing>
          <property name="padding">0</property>
index bb51bf651f089da710936487018a6250ec1752a7..ca0ec4b6aa602de224e7f0d8bafdfd4e69342bad 100644 (file)
@@ -18,6 +18,7 @@
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
   <property name="focus_on_map">True</property>
   <property name="has_separator">True</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
   <property name="focus_on_map">True</property>
   <property name="has_separator">True</property>
+  <signal name="response" handler="OnResponse" last_modification_time="Wed, 06 Jul 2005 08:09:02 GMT"/>
 
   <child internal-child="vbox">
     <widget class="GtkVBox" id="dialog-vbox1">
 
   <child internal-child="vbox">
     <widget class="GtkVBox" id="dialog-vbox1">
                      </child>
 
                      <child>
                      </child>
 
                      <child>
-                       <widget class="GtkEntry" id="entry1">
+                       <widget class="GtkEntry" id="afiliado">
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="editable">True</property>
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="editable">True</property>
                          <property name="has_frame">True</property>
                          <property name="invisible_char">*</property>
                          <property name="activates_default">False</property>
                          <property name="has_frame">True</property>
                          <property name="invisible_char">*</property>
                          <property name="activates_default">False</property>
+                         <signal name="changed" handler="OnAfiliadoChanged" last_modification_time="Wed, 06 Jul 2005 08:06:36 GMT"/>
                        </widget>
                        <packing>
                          <property name="left_attach">1</property>
                        </widget>
                        <packing>
                          <property name="left_attach">1</property>
                      </child>
 
                      <child>
                      </child>
 
                      <child>
-                       <widget class="GtkEntry" id="entry2">
+                       <widget class="GtkEntry" id="cuit">
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="editable">True</property>
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="editable">True</property>
                      </child>
 
                      <child>
                      </child>
 
                      <child>
-                       <widget class="GtkEntry" id="entry3">
+                       <widget class="GtkEntry" id="prestacion">
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="editable">True</property>
                          <property name="visible">True</property>
                          <property name="can_focus">True</property>
                          <property name="editable">True</property>
                          <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
 
                          <child>
                          <property name="window_placement">GTK_CORNER_TOP_LEFT</property>
 
                          <child>
-                           <widget class="GtkTextView" id="textview1">
+                           <widget class="GtkTextView" id="observaciones">
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                              <property name="editable">True</property>
                              <property name="visible">True</property>
                              <property name="can_focus">True</property>
                              <property name="editable">True</property>
                      <property name="spacing">0</property>
 
                      <child>
                      <property name="spacing">0</property>
 
                      <child>
-                       <widget class="GtkLabel" id="label6">
+                       <widget class="GtkLabel" id="lbl_deuda">
                          <property name="visible">True</property>
                          <property name="label" translatable="yes">El afiliado [no] presenta deuda</property>
                          <property name="use_underline">False</property>
                          <property name="visible">True</property>
                          <property name="label" translatable="yes">El afiliado [no] presenta deuda</property>
                          <property name="use_underline">False</property>
                      </child>
 
                      <child>
                      </child>
 
                      <child>
-                       <widget class="GtkLabel" id="label7">
+                       <widget class="GtkLabel" id="lbl_limite">
                          <property name="visible">True</property>
                          <property name="label" translatable="yes">[El afiliado ha superado el límite
 de prestaciones anuales]</property>
                          <property name="visible">True</property>
                          <property name="label" translatable="yes">[El afiliado ha superado el límite
 de prestaciones anuales]</property>
index 8d22e4a43141d99d74b68e466cc135a8eb3f1701..708dfc2621af1416dd44cb71a14cb91fc427e97e 100644 (file)
@@ -57,13 +57,14 @@ public class AfiliadoSolicitanteController : Controller
                return afil;
        }
 
                return afil;
        }
 
-       public bool ExisteAfiliado (int codigo)
+       public Afiliado ExisteAfiliado (int codigo)
        {
        {
-               foreach (Afiliado afil in _afiliados) {
-                       if (afil.Codigo == codigo)
-                               return true;
-               }
-               return false;
+               Afiliado afil = new Afiliado (ETipoDocumento.NONE, 0);
+               afil.Codigo = codigo;
+               ObjectSet result = Db.get (afil);
+               afil = (Afiliado)result.next ();
+
+               return afil;
        }
 
        public ArrayList ObtenerFamiliares (ETipoDocumento tipoDoc, int nroDoc)
        }
 
        public ArrayList ObtenerFamiliares (ETipoDocumento tipoDoc, int nroDoc)
index 31f8ebdef81a9300fb719c63a07b75d1cb0095ea..0e7321e308097e251e76ee08aa8c93dd47b057d5 100644 (file)
@@ -22,6 +22,7 @@ public class Afiliado : Persona
        }
        public int Codigo {
                get { return _codigo; }
        }
        public int Codigo {
                get { return _codigo; }
+               set { _codigo = value; }
        }
        public DateTime FechaBaja {
                get { return _fechaBaja; }
        }
        public DateTime FechaBaja {
                get { return _fechaBaja; }
index eefd34d6b4f0b33b87a23bb2eb513235a26be060..1b55c45aeffd037c065f90eee3d1a0a136284b54 100644 (file)
@@ -148,5 +148,17 @@ public class App
                VRegistrarVisitas v = new VRegistrarVisitas ();
                v.Run ();
        }
                VRegistrarVisitas v = new VRegistrarVisitas ();
                v.Run ();
        }
+
+       public void OnPedidoAutorizacionManual (object o, EventArgs args)
+       {
+               VPedidoAutorizacionManual v = new VPedidoAutorizacionManual ();
+               v.Run ();
+       }
+
+       public void OnConsultarAfiliado (object o, EventArgs args)
+       {
+               VConsultarAfiliado v = new VConsultarAfiliado ();
+               v.Run ();
+       }
 }
 
 }
 
index d06534ca82571a96736a210601f80abba74562e5..0af2dba9060e3b21f00c7ab410a7d8cd7a720cef 100644 (file)
@@ -6,8 +6,9 @@ SOURCE_CONTROLADOR=$(shell ls --color=none Controlador/*.cs)
 SOURCE_VISTAS=$(shell ls --color=none Vistas/*.cs)
 SOURCE_TEST=$(shell ls --color=none Tests/*.cs)
 SOURCE_REPORTES=$(shell ls --color=none Reportes/*.cs)
 SOURCE_VISTAS=$(shell ls --color=none Vistas/*.cs)
 SOURCE_TEST=$(shell ls --color=none Tests/*.cs)
 SOURCE_REPORTES=$(shell ls --color=none Reportes/*.cs)
+SOURCE_EXCEPCIONES=$(shell ls --color=none Excepciones/*.cs)
 
 
-SOURCE=$(SOURCE_DOMINIO) $(SOURCE_CONTROLADOR) $(SOURCE_EXTRA) $(SOURCE_VISTAS) $(SOURCE_TEST) $(SOURCE_REPORTES)
+SOURCE=$(SOURCE_DOMINIO) $(SOURCE_CONTROLADOR) $(SOURCE_EXTRA) $(SOURCE_VISTAS) $(SOURCE_TEST) $(SOURCE_REPORTES) $(SOURCE_EXCEPCIONES)
 
 LIBS=-pkg:glade-sharp-2.0 -pkg:gtk-sharp-2.0 -r:./bin/db4o.dll
 GLADE_FILES=$(shell ls --color=none ../glade/*.glade)
 
 LIBS=-pkg:glade-sharp-2.0 -pkg:gtk-sharp-2.0 -r:./bin/db4o.dll
 GLADE_FILES=$(shell ls --color=none ../glade/*.glade)