[Alba-desarrollo] SVN Alba r4596 - in prosistem/alba/trunk/alba/apps/principal/modules/responsable: actions templates

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Abr 30 22:15:27 CEST 2007


Author: hsanchez
Date: 2007-04-30 17:15:24 -0300 (Mon, 30 Apr 2007)
New Revision: 4596

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/responsable/templates/editSuccess.php
Log:
Agregando relacion del responsable con el rol Ticket:#55

Modified: prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php	2007-04-30 20:03:02 UTC (rev 4595)
+++ prosistem/alba/trunk/alba/apps/principal/modules/responsable/actions/actions.class.php	2007-04-30 20:15:24 UTC (rev 4596)
@@ -143,7 +143,10 @@
     {
       $this->responsable->setFkCuentaId($responsable['fk_cuenta_id']);
     }
-        
+    if (isset($responsable['fk_rolresponsable_id']))
+    {
+      $this->responsable->setFkRolresponsableId($responsable['fk_rolresponsable_id']);
+    }    
     $this->responsable->setAutorizacionRetiro(isset($responsable['autorizacion_retiro']) ? $responsable['autorizacion_retiro'] : 0);
   }
   

Modified: prosistem/alba/trunk/alba/apps/principal/modules/responsable/templates/editSuccess.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/responsable/templates/editSuccess.php	2007-04-30 20:03:02 UTC (rev 4595)
+++ prosistem/alba/trunk/alba/apps/principal/modules/responsable/templates/editSuccess.php	2007-04-30 20:15:24 UTC (rev 4596)
@@ -248,6 +248,11 @@
   'control_name' => 'responsable[relacion]',
 )) ?>
     </div>
+    
+   <?php echo object_select_tag($responsable, 'getFkRolresponsableId', array (
+  'related_class' => 'RolResponsable',
+  'control_name' => 'responsable[fk_rolresponsable_id]',
+)) ?>   
 </div>
 
 <div class="form-row">
@@ -281,8 +286,9 @@
         echo object_input_hidden_tag($responsable,'getFkCuentaId',array('control_name' =>'responsable[fk_cuenta_id]'));
     ?>
 
-</fieldset>
+        </fieldset>
 
+
 <?php echo include_partial('edit_actions', array('responsable' => $responsable)) ?>
 
 </form>




Más información sobre la lista de distribución Alba-desarrollo