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

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

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

revision 1140 by nhaye, Thu Jan 3 17:19:08 2013 UTC revision 1218 by vpihour, Fri Jan 11 15:56:33 2013 UTC
# Line 30  class dossier extends dossier_gen { Line 30  class dossier extends dossier_gen {
30      function dossier($id,&$db,$DEBUG) {      function dossier($id,&$db,$DEBUG) {
31          $this->constructeur($id,$db,$DEBUG);          $this->constructeur($id,$db,$DEBUG);
32      } // fin constructeur      } // fin constructeur
33        
34      /*Mutateur pour ma variable dossier_instruction_type*/      /*Mutateur pour ma variable dossier_instruction_type*/
35      public function getDossierInstructionType(){      public function getDossierInstructionType(){
36          return $this->dossier_instruction_type;          return $this->dossier_instruction_type;
# Line 491  class dossier extends dossier_gen { Line 491  class dossier extends dossier_gen {
491              $form->setType('division', 'hidden');              $form->setType('division', 'hidden');
492          }          }
493          $form->setType('dossier_autorisation', 'hiddenstatic');          $form->setType('dossier_autorisation', 'hiddenstatic');
494            $form->setType('dossier_instruction_type', 'selectstatic');
495          //          //
496          if ($maj == 0) {          if ($maj == 0) {
497              $form->setType('dossier_autorisation', 'select');              $form->setType('dossier_autorisation', 'select');
# Line 508  class dossier extends dossier_gen { Line 509  class dossier extends dossier_gen {
509              if ($maj == 0){              if ($maj == 0){
510                  //$dossier_cp = $this->f->collectivite["cp"];                  //$dossier_cp = $this->f->collectivite["cp"];
511                  //$dossier_ville = $this->f->collectivite["ville"];                  //$dossier_ville = $this->f->collectivite["ville"];
                 //$form->setVal('nature', $this->nature);  
512                                
513                  $form->setVal('annee', date('y'));                  $form->setVal('annee', date('y'));
514                  $form->setVal('date_demande', date('Y-m-d'));                  $form->setVal('date_demande', date('Y-m-d'));
# Line 658  class dossier extends dossier_gen { Line 658  class dossier extends dossier_gen {
658          //    $form->setGroupe('division','F');          //    $form->setGroupe('division','F');
659          //}else{          //}else{
660          //    $form->setGroupe('dossier','D');          //    $form->setGroupe('dossier','D');
         //    $form->setGroupe('nature','G');  
661          //    $form->setGroupe('annee','G');          //    $form->setGroupe('annee','G');
662          //    $form->setGroupe('date_demande','G');          //    $form->setGroupe('date_demande','G');
663          //    $form->setGroupe('date_depot','G');          //    $form->setGroupe('date_depot','G');
# Line 1226  class dossier extends dossier_gen { Line 1225  class dossier extends dossier_gen {
1225                  INNER JOIN ".DB_PREFIXE."dossier_autorisation                  INNER JOIN ".DB_PREFIXE."dossier_autorisation
1226                      ON dossier_autorisation_type_detaille.dossier_autorisation_type_detaille =                      ON dossier_autorisation_type_detaille.dossier_autorisation_type_detaille =
1227                         dossier_autorisation.dossier_autorisation_type_detaille                         dossier_autorisation.dossier_autorisation_type_detaille
1228                  INNER JOIN ".DB_PREFIXE."dossier ON dossier.dossier_autorisation = dossier_autorisaiton.dossier_autorisation                  INNER JOIN ".DB_PREFIXE."dossier ON dossier.dossier_autorisation = dossier_autorisation.dossier_autorisation
1229                  WHERE dossier.dossier = ".$idxDossier;                  WHERE dossier.dossier = '".$idxDossier."'";
1230          $res = $db -> getOne($sql);          $res = $this -> db -> getOne($sql);
1231          $this->f->isDatabaseError();          $this->f->isDatabaseError();
1232            $this->addToLog($sql);
1233          return $res;          return $res;
1234      }      }
1235            

Legend:
Removed from v.1140  
changed lines
  Added in v.1218

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26