/[openfoncier]/branches/3.14.x/obj/instruction.class.php
ViewVC logotype

Diff of /branches/3.14.x/obj/instruction.class.php

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

revision 1307 by vpihour, Tue Mar 5 14:19:22 2013 UTC revision 1439 by nhaye, Fri Mar 15 14:45:21 2013 UTC
# Line 166  class instruction extends instruction_ge Line 166  class instruction extends instruction_ge
166              $form->setType('bible_auto', 'httpclick');              $form->setType('bible_auto', 'httpclick');
167              $form->setType('bible', 'httpclick');              $form->setType('bible', 'httpclick');
168              $form->setType('bible2', 'httpclick');              $form->setType('bible2', 'httpclick');
169              $form->setType('dossier', 'hiddenstatic');                $form->setType('dossier', 'hidden');  
170              $form->setType('libelle', 'hiddenstatic');              $form->setType('libelle', 'hiddenstatic');
171              $form->setType('signataire_arrete','select');              $form->setType('signataire_arrete','select');
172              if($maj==0){ // add              if($maj==0){ // add
# Line 182  class instruction extends instruction_ge Line 182  class instruction extends instruction_ge
182                  $form->setType('delai', 'hiddenstatic');                  $form->setType('delai', 'hiddenstatic');
183              }              }
184          } elseif($maj==2){          } elseif($maj==2){
185              $form->setType('dossier', 'hiddenstatic');              $form->setType('dossier', 'hidden');
186              $form->setType('bible_auto', 'hidden');              $form->setType('bible_auto', 'hidden');
187              $form->setType('bible', 'hidden');              $form->setType('bible', 'hidden');
188              $form->setType('bible2', 'hidden');              $form->setType('bible2', 'hidden');
189          }else {          }else {
190              $form->setType('destinataire', 'hidden');              $form->setType('destinataire', 'hidden');
191              $form->setType('dossier', 'static');              $form->setType('dossier', 'hidden');
192              $form->setType('bible_auto', 'hidden');              $form->setType('bible_auto', 'hidden');
193              $form->setType('bible', 'hidden');              $form->setType('bible', 'hidden');
194              $form->setType('bible2', 'hidden');              $form->setType('bible2', 'hidden');
# Line 306  class instruction extends instruction_ge Line 306  class instruction extends instruction_ge
306          $form->setSelect("bible2",$contenu);          $form->setSelect("bible2",$contenu);
307      } // function select      } // function select
308    
309      function setGroupe(&$form,$maj){      function setLayout(&$form, $maj){
310          $form->setGroupe('evenement','D');          if ( $maj < 2 OR $maj == 3 ) {
311          $form->setGroupe('libelle','G');                          /*Champ sur lequel s'ouvre le bloc 1 */
312          $form->setGroupe('date_evenement','G');              $form->setBloc('evenement','D',"","col_12");
313          $form->setGroupe('lettretype','F');  
314      }                  $form->setFieldset('evenement','D',_('Evenement'));
315                        $form->setBloc('evenement','D',"","group col_12");
316                        $form->setBloc('date_evenement','F');
317                    $form->setFieldset('lettretype','F','');
318                
319                $form->setBloc('lettretype','F');
320    
321                $form->setBloc('date_finalisation_courrier','D',"","col_12");
322    
323                    $form->setFieldset('date_finalisation_courrier','D',_('Dates'));
324                        $form->setBloc('date_finalisation_courrier','D',"","col_6");
325                        $form->setBloc('date_envoi_controle_legalite','F');
326    
327      function setRegroupe(&$form,$maj){                            $form->setBloc('signataire_arrete','D',"","col_6");
328          $form->setRegroupe('evenement','D',_('evenement'), "collapsible");                      $form->setBloc('date_retour_controle_legalite','F');
329          $form->setRegroupe('libelle','G','');                  $form->setFieldset('date_retour_controle_legalite','F','');
330          $form->setRegroupe('date_evenement','G','');              
331          $form->setRegroupe('lettretype','F','');              $form->setBloc('date_retour_controle_legalite','F');
332          $form->setRegroupe('complement','D',_('complement'), "collapsible");  
333          $form->setRegroupe('bible_auto','G','');              $form->setBloc('complement','D',"","col_12");
334          $form->setRegroupe('bible','F','');                  $form->setFieldset('complement','D',_('Complement'));
335          $form->setRegroupe('complement2','D',_('complement2'), "startClosed");                  $form->setFieldset('bible','F','');
336          $form->setRegroupe('bible2','F','');              $form->setBloc('bible','F');
337    
338                $form->setBloc('complement2','D',"","col_12");
339                    $form->setFieldset('complement2','D',_('Complement 2'));
340                    $form->setFieldset('bible2','F','');
341                $form->setBloc('bible2','F');
342            }
343      }      }
344            
345      /*Change le libellĂ© de certains champs*/      /*Change le libellĂ© de certains champs*/
# Line 332  class instruction extends instruction_ge Line 349  class instruction extends instruction_ge
349          $form->setLib('bible_auto',"");          $form->setLib('bible_auto',"");
350          $form->setLib('bible',"");          $form->setLib('bible',"");
351          $form->setLib('bible2',"");          $form->setLib('bible2',"");
         $form->setLib('lettretype',"->"._(" courrier "));  
         $form->setLib('date_evenement',_(" du "));  
352      }      }
353    
354      // ==================================================================      // ==================================================================
# Line 841  class instruction extends instruction_ge Line 856  class instruction extends instruction_ge
856                                  dossier.terrain_adresse_localite as \"ws_DA_In_Ville\",                                  dossier.terrain_adresse_localite as \"ws_DA_In_Ville\",
857                                  dossier.terrain_references_cadastrales as \"ws_DA_In_Nb_Parcelle\",                                  dossier.terrain_references_cadastrales as \"ws_DA_In_Nb_Parcelle\",
858                                  '' as \"ws_DA_In_Detail_Parcelle\",                                  '' as \"ws_DA_In_Detail_Parcelle\",
859                                  travaux.libelle as \"ws_DA_In_Nature_Trvx\",                                  CONCAT(donnees_techniques.am_projet_desc,' ',donnees_techniques.co_projet_desc) as \"ws_DA_In_Nature_Trvx\",
860                                  '' as \"ws_DA_In_Destination_Trvx\",                                  '' as \"ws_DA_In_Destination_Trvx\",
861                                  dossier_autorisation_type_detaille.code as \"ws_DA_In_Type_Dos_Autoris\",                                  dossier_autorisation_type_detaille.code as \"ws_DA_In_Type_Dos_Autoris\",
862                                  COALESCE(particulier_nom,personne_morale_raison_sociale) as \"ws_DA_In_Nom_Petition\",                                  COALESCE(particulier_nom,personne_morale_raison_sociale) as \"ws_DA_In_Nom_Petition\",
# Line 849  class instruction extends instruction_ge Line 864  class instruction extends instruction_ge
864                                  '' as \"ws_DA_In_Piece_GED\",                                  '' as \"ws_DA_In_Piece_GED\",
865                                  instruction.date_retour_signature as \"ws_DA_In_Dte_Signature\"                                  instruction.date_retour_signature as \"ws_DA_In_Dte_Signature\"
866                          FROM ".DB_PREFIXE."instruction                          FROM ".DB_PREFIXE."instruction
867                          JOIN ".DB_PREFIXE."signataire_arrete ON                          LEFT JOIN ".DB_PREFIXE."signataire_arrete ON
868                              instruction.signataire_arrete = signataire_arrete.signataire_arrete                              instruction.signataire_arrete = signataire_arrete.signataire_arrete
869                          JOIN ".DB_PREFIXE."dossier ON                          LEFT JOIN ".DB_PREFIXE."dossier ON
870                              instruction.dossier = dossier.dossier                              instruction.dossier = dossier.dossier
871                          JOIN ".DB_PREFIXE."lien_dossier_demandeur ON                          LEFT JOIN ".DB_PREFIXE."lien_dossier_demandeur ON
872                              lien_dossier_demandeur.dossier = dossier.dossier                              lien_dossier_demandeur.dossier = dossier.dossier
873                          JOIN ".DB_PREFIXE."demandeur ON                          LEFT JOIN ".DB_PREFIXE."demandeur ON
874                              lien_dossier_demandeur.demandeur = demandeur.demandeur                              lien_dossier_demandeur.demandeur = demandeur.demandeur
875                          JOIN ".DB_PREFIXE."dossier_instruction_type ON                          LEFT JOIN ".DB_PREFIXE."dossier_instruction_type ON
876                              dossier.dossier_instruction_type = dossier_instruction_type.dossier_instruction_type                              dossier.dossier_instruction_type = dossier_instruction_type.dossier_instruction_type
877                          JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille ON                          LEFT JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille ON
878                              dossier_instruction_type.dossier_autorisation_type_detaille =                              dossier_instruction_type.dossier_autorisation_type_detaille =
879                                  dossier_autorisation_type_detaille.dossier_autorisation_type_detaille                                  dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
880                          LEFT JOIN ".DB_PREFIXE."travaux ON                          LEFT JOIN ".DB_PREFIXE."donnees_techniques ON
881                              dossier.travaux = travaux.travaux                                  donnees_techniques.dossier_instruction = dossier.dossier
882                          WHERE instruction.instruction = ".$this->valF['instruction'];                          WHERE instruction.instruction = ".$this->valF['instruction'];
883              $resArrete = $this->db->query($sqlArrete);              $resArrete = $this->db->query($sqlArrete);
884              $this->f->addToLog("triggerModifierApres(): db->query(\"".$sqlArrete."\");", VERBOSE_MODE);              $this->f->addToLog("triggerModifierApres(): db->query(\"".$sqlArrete."\");", VERBOSE_MODE);

Legend:
Removed from v.1307  
changed lines
  Added in v.1439

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26