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

Diff of /trunk/obj/demande.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1246 by nhaye, Wed Feb 13 10:19:51 2013 UTC revision 1262 by nhaye, Thu Feb 14 17:54:53 2013 UTC
# Line 221  class demande extends demande_gen { Line 221  class demande extends demande_gen {
221          $valInstr['terrain_superficie']=$this->valF['terrain_superficie'];          $valInstr['terrain_superficie']=$this->valF['terrain_superficie'];
222          $valInstr['description']="";          $valInstr['description']="";
223          $valInstr['dossier_autorisation']=$this->valF['dossier_autorisation'];          $valInstr['dossier_autorisation']=$this->valF['dossier_autorisation'];
224    
225            // Récupération du cerfa pour le type d'instruction sélectionnée et valide
226            $sql = "SELECT cerfa FROM ".DB_PREFIXE."cerfa
227                        WHERE now()<=om_validite_fin
228                            AND now()>=om_validite_debut
229                            AND dossier_instruction_type=".$dossier_instruction_type;
230            $valInstr['cerfa'] = $db->getOne($sql);
231            $this->addToLog("db->getone(\"".$sql."\");", VERBOSE_MODE);
232    
233          $dossier->ajouter($valInstr, $db, $DEBUG);          $dossier->ajouter($valInstr, $db, $DEBUG);
234          $this->f->isDatabaseError();          $this->f->isDatabaseError();
235          // Liaison du dossier ajouter à la demande          // Liaison du dossier ajouter à la demande
# Line 525  class demande extends demande_gen { Line 534  class demande extends demande_gen {
534              $valLot['libelle'] = $rowLot['libelle'];              $valLot['libelle'] = $rowLot['libelle'];
535              $valLot['dossier_autorisation'] = NULL;              $valLot['dossier_autorisation'] = NULL;
536              $lot -> ajouter($valLot, $db, $DEBUG);              $lot -> ajouter($valLot, $db, $DEBUG);
537  print_r($rowLot);  
538              //Insertion du lien entre le lot et le dossier d'instruction              //Insertion du lien entre le lot et le dossier d'instruction
539              $valLdl['lien_dossier_lot'] = "";              $valLdl['lien_dossier_lot'] = "";
540              $valLdl['dossier'] = $this->valF['dossier_instruction'];              $valLdl['dossier'] = $this->valF['dossier_instruction'];

Legend:
Removed from v.1246  
changed lines
  Added in v.1262

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26