当前位置: 首页>>代码示例>>PHP>>正文


PHP Contrat::idBien方法代码示例

本文整理汇总了PHP中Contrat::idBien方法的典型用法代码示例。如果您正苦于以下问题:PHP Contrat::idBien方法的具体用法?PHP Contrat::idBien怎么用?PHP Contrat::idBien使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Contrat的用法示例。


在下文中一共展示了Contrat::idBien方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: add

 public function add(Contrat $contrat)
 {
     $query = $this->_db->prepare('
     INSERT INTO t_contrat (numero, dateCreation, prixVente, avance, 
     modePaiement, dureePaiement, nombreMois, echeance, note, idClient, idProjet,
      idBien, typeBien, code, status, numeroCheque, created, createdBy)
     VALUES (:numero, :dateCreation, :prixVente, :avance, :modePaiement, 
     :dureePaiement, :nombreMois, :echeance, :note, :idClient, :idProjet, :idBien, 
     :typeBien, :code, :status, :numeroCheque, :created, :createdBy)') or die(print_r($this->_db->errorInfo()));
     $query->bindValue(':numero', $contrat->numero());
     $query->bindValue(':dateCreation', $contrat->dateCreation());
     $query->bindValue(':prixVente', $contrat->prixVente());
     $query->bindValue(':avance', $contrat->avance());
     $query->bindValue(':modePaiement', $contrat->modePaiement());
     $query->bindValue(':dureePaiement', $contrat->dureePaiement());
     $query->bindValue(':nombreMois', $contrat->nombreMois());
     $query->bindValue(':echeance', $contrat->echeance());
     $query->bindValue(':note', $contrat->note());
     $query->bindValue(':idClient', $contrat->idClient());
     $query->bindValue(':idProjet', $contrat->idProjet());
     $query->bindValue(':idBien', $contrat->idBien());
     $query->bindValue(':typeBien', $contrat->typeBien());
     $query->bindValue(':code', $contrat->code());
     $query->bindValue(':status', 'actif');
     $query->bindValue(':numeroCheque', $contrat->numeroCheque());
     $query->bindValue(':created', $contrat->created());
     $query->bindValue(':createdBy', $contrat->createdBy());
     $query->execute();
     $query->closeCursor();
 }
开发者ID:aassou,项目名称:ImmoAppMerlaTrav,代码行数:30,代码来源:ContratManager.php

示例2: add

    public function add(Contrat $contrat){
        $query = $this->_db->prepare('
        INSERT INTO t_contrat (reference, numero, dateCreation, prixVente, prixVenteArabe, 
        avance, avanceArabe, modePaiement, dureePaiement, nombreMois, echeance, note, imageNote, 
        idClient, idProjet, idBien, typeBien, code, status, revendre, numeroCheque, societeArabe, 
        etatBienArabe, facadeArabe, articlesArabes, created, createdBy)
        VALUES (:reference, :numero, :dateCreation, :prixVente, :prixVenteArabe, 
        :avance, :avanceArabe, :modePaiement, :dureePaiement, :nombreMois, :echeance, :note, :imageNote, 
        :idClient, :idProjet, :idBien, :typeBien, :code, :status, :revendre, :numeroCheque, 
        :societeArabe, :etatBienArabe, :facadeArabe, :articlesArabes, :created, :createdBy)') 
        or die(print_r($this->_db->errorInfo()));
        $query->bindValue(':reference', $contrat->reference());
        $query->bindValue(':numero', $contrat->numero());
        $query->bindValue(':dateCreation', $contrat->dateCreation());
        $query->bindValue(':prixVente', $contrat->prixVente());
        $query->bindValue(':prixVenteArabe', $contrat->prixVenteArabe());
        $query->bindValue(':avance', $contrat->avance());
        $query->bindValue(':avanceArabe', $contrat->avanceArabe());
		$query->bindValue(':modePaiement', $contrat->modePaiement());
		$query->bindValue(':dureePaiement', $contrat->dureePaiement());
        $query->bindValue(':nombreMois', $contrat->nombreMois());
        $query->bindValue(':echeance', $contrat->echeance());
		$query->bindValue(':note', $contrat->note());
        $query->bindValue(':imageNote', $contrat->imageNote());
        $query->bindValue(':idClient', $contrat->idClient());
        $query->bindValue(':idProjet', $contrat->idProjet());
        $query->bindValue(':idBien', $contrat->idBien());
		$query->bindValue(':typeBien', $contrat->typeBien());
		$query->bindValue(':code', $contrat->code());
		$query->bindValue(':status', 'actif');
        $query->bindValue(':revendre', 0);
		$query->bindValue(':numeroCheque', $contrat->numeroCheque());
        $query->bindValue(':societeArabe', $contrat->societeArabe());
        $query->bindValue(':etatBienArabe', $contrat->etatBienArabe());
        $query->bindValue(':facadeArabe', $contrat->facadeArabe());
        $query->bindValue(':articlesArabes', $contrat->articlesArabes());
        $query->bindValue(':created', $contrat->created());
        $query->bindValue(':createdBy', $contrat->createdBy());
        $query->execute();
        $query->closeCursor();
    }
开发者ID:aassou,项目名称:Annahda,代码行数:41,代码来源:ContratManager.php

示例3: update

    public function update(Contrat $contrat)
    {
        $query = $this->_db->prepare('UPDATE t_contrat SET nomClient=:nomClient, cin=:cin, adresse=:adresse, telephone=:telephone,
		dateCreation=:dateCreation, dateRetour=:dateRetour, prixVente=:prixVente, avance=:avance, 
		note=:note, taille=:taille, idBien=:idBien, typeBien=:typeBien, modePaiement=:modePaiement, 
		numeroCheque=:numeroCheque WHERE id=:id') or die(print_r($this->_db->errorInfo()));
        $query->bindValue(':nomClient', $contrat->nomClient());
        $query->bindValue(':cin', $contrat->cin());
        $query->bindValue(':adresse', $contrat->adresse());
        $query->bindValue(':telephone', $contrat->telephone());
        $query->bindValue(':dateCreation', $contrat->dateCreation());
        $query->bindValue(':dateRetour', $contrat->dateRetour());
        $query->bindValue(':prixVente', $contrat->prixVente());
        $query->bindValue(':avance', $contrat->avance());
        $query->bindValue(':note', $contrat->note());
        $query->bindValue(':taille', $contrat->taille());
        $query->bindValue(':idBien', $contrat->idBien());
        $query->bindValue(':typeBien', $contrat->typeBien());
        $query->bindValue(':modePaiement', $contrat->modePaiement());
        $query->bindValue(':numeroCheque', $contrat->numeroCheque());
        $query->bindValue(':id', $contrat->id());
        $query->execute();
        $query->closeCursor();
    }
开发者ID:aassou,项目名称:gelm,代码行数:24,代码来源:ContratManager.php


注:本文中的Contrat::idBien方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。