/[openfoncier]/trunk/obj/lot.class.php
ViewVC logotype

Annotation of /trunk/obj/lot.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1241 - (hide annotations)
Tue Feb 12 16:03:36 2013 UTC (11 years, 11 months ago) by vpihour
File size: 1541 byte(s)
Champ dossier_autorisation caché

1 vpihour 633 <?php
2     //$Id$
3     //gen openMairie le 08/11/2012 14:59
4    
5     require_once ("../gen/obj/lot.class.php");
6    
7     class lot extends lot_gen {
8    
9     function lot($id,&$db,$debug) {
10     $this->constructeur($id,$db,$debug);
11     }// fin constructeur
12    
13 nhaye 1240 function triggerAjouterApres($id, &$db, $val, $DEBUG) {
14     parent::triggerAjouterApres($id, $db, $val, $DEBUG);
15     // Insertion du lien dossier/lot
16     require_once ("../obj/lien_dossier_lot.class.php");
17     $ldl = new lien_dossier_lot("]", $db, $DEBUG);
18     $valLdl['lien_dossier_lot'] = "";
19     $valLdl['dossier'] = $this->getParameter("idxformulaire");
20     $valLdl['lot'] = $this->valF["lot"];
21     $ldl->ajouter($valLdl, $db, $DEBUG);
22    
23     // Insertion du lien demandeur/lot
24     require_once ("../obj/lien_lot_demandeur.class.php");
25     $lld = new lien_lot_demandeur("]", $db, $DEBUG);
26     $sqlDemandeur = "SELECT * FROM ".DB_PREFIXE."lien_dossier_demandeur
27     WHERE dossier='".$this->getParameter("idxformulaire")."'";
28     $res = $db->query($sqlDemandeur);
29     while($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) {
30     unset($row['lien_dossier_demandeur']);
31     unset($row['dossier']);
32     $row['lien_lot_demandeur'] = "";
33     $row['lot'] = $this->valF["lot"];
34     $lld->ajouter($row, $db, $DEBUG);
35     }
36    
37     }
38    
39 vpihour 1241 function setType(&$form,$maj) {
40     parent::setType($form,$maj);
41    
42     $form->setType('dossier_autorisation', 'hidden');
43     }
44 vpihour 633 }// fin classe
45     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26