<%@ Language=VBScript %> <%OPTION EXPLICIT%> <% ConnectRS 'constantes de grandeur CONST PAGE_W = 700 CONST PAGE_H = 900 CONST VPC = 10.7639 'variables globales Dim RS2 : Set RS2 = Server.CreateObject("ADODB.Recordset") Dim RS3 : Set RS3 = Server.CreateObject("ADODB.Recordset") Dim Disclaimer Disclaimer = "
" & _ "

Dossier à traiter avec confidentialité et la plus grande discrétion.

" & _ "

Les renseignements apparaissant sur cette inscription sont exacts " & _ " au meilleur de la connaissance du courtier inscripteur.

" & _ "
" dim vVal,vValF,vValD, vVal2 'generic variable for multiple uses 'Options d'affichage dim vID,TList, P, C, DD, MD, SD, NomDevise, DateDevise, SourceDevise 'ID_res, Partial, Comptant, Device, Mod Devise, Symbole Devise dim MDF 'mise de fond DD = 0 MD = 1 SD = "$" vID=0 vID = Request.Form("hidID") if vID=0 then vID = Request.QueryString("id") P = Request.QueryString("pid") else 'Partielle/full if Request.Form("part.x") <> "" then P = True else P = False end if end if 'comptant normal ou 50% C = Request.Form("cmbComptant") Response.Cookies("Comptant") = C 'Devise DD = Request.Form("cmbDevise") Response.Cookies("Devise") = DD if DD > 0 then strSQL = "SELECT Nom_devise, Mod_Devise, Symbol_Devise, Date_Devise, Source_Devise FROM tblDevise WHERE ID_Devise = " & DD RS.Open strSQL, CNRS if not RS.EOF then MD = RS.Fields("Mod_Devise") SD = RS.Fields("Symbol_Devise") NomDevise = RS.Fields("Nom_devise") DateDevise = RS.Fields("Date_Devise") SourceDevise = RS.Fields("Source_Devise") end if RS.close end if Public Function Div0(ByVal v1, ByVal v2) If Not IsNull(v1) And Not IsNull(v2) Then If v2 <> 0 Then Div0 = v1 / v2 Else Div0 = 0 End If End If End Function Public Function CalculerMensualite(ECapital, EDuree, ETaux) 'set the variables Dim vTaux 'As Double Dim vPaiement 'As Currency Dim vDiviseur 'As Double Dim vNumPaiement 'As Integer Dim vQuotien 'As Double Dim vQuotien1 'As Double If ECapital > 0 And EDuree > 0 Then vTaux = (ETaux) / 2 vQuotien1 = ((1 + vTaux) ^ 2) - 1 vQuotien = ((1 + vQuotien1) ^ (1 / 12)) - 1 vNumPaiement = EDuree * 12 vDiviseur = (1 - ((1 + vQuotien) ^ (-1 * vNumPaiement))) / vQuotien if vDiviseur <>0 then vPaiement = ECapital / vDiviseur end if CalculerMensualite = FormatNumber(vPaiement, 2) Else CalculerMensualite = 0 End If if ETaux =0 then CalculerMensualite = ECapital/(12 * EDuree) end if End Function Public Function CalculerRemb(ECapital, EDuree, ETaux, EAnnees) 'set the variables Dim vTaux 'As Double Dim vPaiement 'As Currency Dim vDiviseur 'As Double Dim vNumPaiement 'As Integer Dim vQuotien 'As Double Dim vQuotien1 'As Double Dim vSolde 'As Currency Dim I 'As Byte Dim J 'As Byte Dim vCapM 'As Currency Dim vCapTot 'As Currency If ECapital > 0 And EDuree > 0 Then 'calcul du paiement mensuel vTaux = (ETaux) / 2 vQuotien1 = ((1 + vTaux) ^ 2) - 1 vQuotien = ((1 + vQuotien1) ^ (1 / 12)) - 1 vNumPaiement = EDuree * 12 vDiviseur = (1 - ((1 + vQuotien) ^ (-1 * vNumPaiement))) / vQuotien if vDiviseur <>0 then vPaiement = ECapital / vDiviseur end if 'Calcul du capital payé par fréquence par année sur 5 ans vSolde = ECapital vCapTot = 0 For I = 1 To EAnnees For J = 1 To 12 vCapM = (vPaiement - (vSolde * vQuotien)) vCapTot = vCapTot + vCapM vSolde = vSolde - vCapM Next Next CalculerRemb = (vCapTot / EAnnees) Else CalculerRemb = 0 End If End Function Public Function CalculerRembNow(ECapital, EDuree, ETaux, EAnnees,ENow) 'set the variables Dim vTaux 'As Double Dim vPaiement 'As Currency Dim vDiviseur 'As Double Dim vNumPaiement 'As Integer Dim vQuotien 'As Double Dim vQuotien1 'As Double Dim vSolde 'As Currency Dim I 'As Byte Dim J 'As Byte Dim vCapM 'As Currency Dim vCapTot 'As Currency Dim vCapTotNow 'As Currency If ECapital > 0 And EDuree > 0 Then 'calcul du paiement mensuel vTaux = (ETaux) / 2 vQuotien1 = ((1 + vTaux) ^ 2) - 1 vQuotien = ((1 + vQuotien1) ^ (1 / 12)) - 1 vNumPaiement = EDuree * 12 vDiviseur = (1 - ((1 + vQuotien) ^ (-1 * vNumPaiement))) / vQuotien if vDiviseur <>0 then vPaiement = ECapital / vDiviseur end if 'Calcul du capital payé par fréquence par année sur 5 ans vSolde = ECapital vCapTot = 0 For I = 1 To EAnnees + ENow For J = 1 To 12 vCapM = (vPaiement - (vSolde * vQuotien)) vCapTot = vCapTot + vCapM vSolde = vSolde - vCapM if I > EAnnees then vCapTotNow = vCapTotNow + vCapM Next Next CalculerRembNow = (vCapTotNow / ENow) Else CalculerRembNow = 0 End If End Function Public Function CalculerRembJ(ECapital, EDuree, ETaux, EJours) 'set the variables Dim vTaux 'As Double Dim vPaiement 'As Currency Dim vDiviseur 'As Double Dim vNumPaiement 'As Integer Dim vQuotien 'As Double Dim vQuotien1 'As Double Dim vSolde 'As Currency Dim I 'As Byte Dim J 'As Byte Dim vCapM 'As Currency Dim vCapTot 'As Currency If ECapital > 0 And EDuree > 0 Then vTaux = (ETaux) / 2 vQuotien1 = ((1 + vTaux) ^ 2) - 1 vQuotien = ((1 + vQuotien1) ^ (1 / 365)) - 1 vNumPaiement = EDuree * 365 vDiviseur = (1 - ((1 + vQuotien) ^ (-1 * vNumPaiement))) / vQuotien if vDiviseur <>0 then vPaiement = ECapital / vDiviseur end if vSolde = ECapital vCapTot = 0 For I = 1 To EJours vCapM = (vPaiement - (vSolde * vQuotien)) vCapTot = vCapTot + vCapM vSolde = vSolde - vCapM Next CalculerRembJ = vSolde Else CalculerRembJ = 0 End If End Function Public Function CalculerRembM(ECapital, EDuree, ETaux,NoMois) Dim vTaux, IYear, IMonth, vSolde, vPaiement, vDiviseur, vNumPaiement, vQuotien, vQuotien1, vInteretM, vCapitalM, vInteretTot, vCapitalTot, vInteretAn, vCapitalAn, vSoldeDebutAn, compteur vSolde = ECapital vTaux = ETaux / 100 vTaux = vTaux / 2 vQuotien1 = ((1 + vTaux) ^ 2) - 1 vQuotien = ((1 + vQuotien1) ^ (1 / 12)) - 1 vNumPaiement = EDuree * 12 vDiviseur = (1 - ((1 + vQuotien) ^ (-1 * vNumPaiement))) / vQuotien if vDiviseur <>0 then vPaiement = vSolde / vDiviseur end if vInteretTot = 0 vCapitalTot = 0 compteur =0 for IYear = 1 to EDuree for IMonth = 1 to 12 'Année-mois vInteretM = vSolde * vQuotien vCapitalM = vPaiement - vInteretM vInteretAn = vInteretAn + vInteretM vCapitalAn = vCapitalAn + vCapitalM vInteretTot = vInteretTot + vInteretM vCapitalTot = vCapitalTot + vCapitalM vSolde = vSolde-vCapitalM compteur = compteur +1 if compteur = NoMois then CalculerRembM = vSolde end if next vInteretAn = 0 vCapitalAn = 0 next if ETaux =0 then CalculerRembM = ECapital/(12 * EDuree) end if End Function Public function ShowProjection() if RS.Fields("final") <> true then Response.Write "Fiche préliminaire " else Response.Write "Fiche complète " end if End function Public function ShowDateP if RS.Fields("dateVers") <> "" then Response.Write"" & RS.Fields ("dateVers") end if End function Public function PN(vVal) if IsNull(vVal) or vVal =0 or vVal ="" then PN ="??" elseif vVal =111111 then PN ="N/A" else if P then dim I dim vRet vRet = "----" for I = 1 to len(vVal) vRet = vRet & "" next PN = vRet else PN = vVal end if end if end function Public function PN2(vVal) if P then dim I dim vRet vRet = "" for I = 1 to len(vVal) vRet = vRet & "-" next PN2 = vRet else if vVal =0 then PN2 = "" else PN2 = vVal end if end if end function Public function PN3(vVal) if P then dim I dim vRet vRet = "" for I = 1 to len(vVal) vRet = vRet & "-" next PN3 = vRet else if vVal =0 then PN3 = "N/A" else PN3 = vVal end if end if end function Public function PS(vVal) if P then PS = "" else PS = vVal end if end function Public function PN4(vVal) if P then dim I dim vRet vRet = "" for I = 1 to len(vVal) vRet = vRet & "-" next PN4 = vRet else if isNull(vVal) then PN4 = 111111 else PN4 = vVal end if end if end function Public function Onze(vVal) if P then dim I dim vRet vRet = "" for I = 1 to len(vVal) vRet = vRet & "-" next vVal = vRet else if vVal= 111111 then vVal =0 end if end if end function Public function Annexe(vVal) if vVal= 0 then Annexe = "(non)" end if if vVal= 1 then Annexe = "(oui)" end if if vVal= 2 then Annexe = "(à venir)" end if if vVal= 3 then Annexe = "(N/A)" end if if vVal= 4 then Annexe = " " end if end function Public function lettreOpen(rid) if rid <> RS.Fields("ID_res") and RS.Fields("Open_Listing") then if rid < 300 then lettreOpen = "Z" elseif rid >1499 then lettreOpen = "H" else lettreOpen = "B" end if end if end function Public function lettreVF(rid) if rid <> RS.Fields("ID_res") then if RS.Fields("Temp") then lettreVF = "VF" end if end if end function Public function SautPage(nrLignes,nrPermis,nrPage) if nrLignes+ nrPermis > 40 then %>
#<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
8-<%=nrPage%>
<% nrLignes =0 nrPage = nrPage +1 end if End function Public function ck(vVal) if vVal= 1 then ck = "oui" elseif vVal= 2 then ck = "non" else ck = "???" end if end function %> <% if vId<>0 then %> Fiche descriptive <% else %> Dossier complet <% end if %> <% 'ouverture du recordset 'Main recordset 'Main recordset strSQL = _ "SELECT r.ID_res,r.ID_dos , dgDimTerrain, dgDimBatiment, dgSuperficieTerrain, dgSuperficieBatiment,dgSuperficieSousol,Sousol, " & _ " dgSuperficieLogement, DateDebut_res, DateAchat_res, dgStationnementInt, dgAscenseur,Certific,AnEval," & _ " dgNbrEtages, chUnite, chOccupActuel, chOccupMax, chSimple, chDouble, chSaniPrive_L,Chaise," & _ " chSaniPrive_LT, chSaniPrive_LTB, chSaniSemiPrive_L, chSaniSemiPrive_LT, chSaniSemiPrive_LTB," & _ " chSaniPublic_L, chSaniPublic_LT, chSaniPublic_LTB, dgPanneauIncendie, dgGeneratrice," & _ " dgBalconPrive, dgBalconCommun, dgCourPrive, dgSalleCommune, dgBuanderie, dgPiscineInt," & _ " dgPiscineExt, dgMeubles, dgAideBain, dgHebergTemp, dgComite, dgTransport, dgSysAppel,notesAss,notesSal,notesDep,CamSurv,EchAir," & _ " dgPhoto, dgLogementProprio, dgCameras, dgChapelle, DescriptionGenerale,DescriptionGenerale2,DescriptionGeneraleF,DescriptionGeneraleD, moPrix, moPrixV, moMiseDeFond," & _ " DateCons_res, DateReno_res,DateAgr_res, moEvalTerrain, moEvalBatiment, moRevenuActuel,final,dateVers, moRevenuBrut,moRevenuBrut2,moRevenuBrut3,moRevenuBrut4,moRevenuBrut5," & _ " moTauxPerteVacance, moAvantageProp, l.ID_Vente,l.Open_Listing, r.MainVente, l.ID_Listing , v.MainListing, Nom_Listing,Csst,Csst2,Ass,clause, " & _ " Fiche1,Fiche2,Fiche3,Fiche4,Fiche5,Temp,AutresRev,VacAutresRev,AutresRev2,VacAutresRev2,NbBat,VacMin,Climat,Pop_ville,Pop_mrc,TVac_schl, " & _ " r.Titre,r.Categ,r.SCateg1,r.SCateg2,r.SCateg3,r.SCateg4,r.SCateg5,Gicleurs,SalleExercice, SpaInt, Biliard,BainT, Pharmacie,Coiffure, Medecin, Infirmerie,VacAutresRevA,VacAutresRev2A, " & _ " (SELECT Nom_Lieu FROM tblLieu WHERE ID_Lieu = r.ID_Lieu) AS [Nom_Lieu], " & _ " (SELECT NomWeb_TypeRessource FROM tblTypeRessource WHERE ID_TypeRessource = r.ID_TypeRessource) AS [Nom_Web], " & _ " (SELECT Nom_TypeEntreprise FROM tblTypeEntreprise WHERE ID_TypeEntreprise = l.ID_TypeEntreprise) AS [Nom_TypeEntreprise], " & _ " (SELECT Nom_TypeConstruction FROM tblTypeConstruction WHERE ID_TypeConstruction = l.dgID_TypeConstruction) AS [Nom_TypeConstruction], " & _ " (SELECT Nom_TypeRecouvrement FROM tblTypeRecouvrement WHERE ID_TypeRecouvrement = l.dgID_TypeRecouvrement) AS [Nom_TypeRecouvrement], " & _ " (SELECT Nom_Zonage FROM tblZonage WHERE ID_Zonage = l.dgID_Zonage) AS [Nom_Zonage], " & _ " (SELECT Nom_Classe FROM tblClasse WHERE ID_Classe = l.dgID_Classe) AS [Nom_Classe], " & _ " (SELECT Nom_EquipCuisine FROM tblEquipCuisine WHERE ID_EquipCuisine = l.dgID_EquipCuisine) AS [Nom_EquipCuisine], " & _ " (SELECT Nom_TypeEauChaude FROM tblTypeEauChaude WHERE ID_TypeEauChaude = l.dgID_TypeEauChaude) AS [Nom_TypeEauChaude], " & _ " (SELECT Nom_TypeChauffage FROM tblTypeChauffage WHERE ID_TypeChauffage = l.dgID_TypeChauffage) AS [Nom_TypeChauffage], " & _ " (SELECT Nom_TypeBail FROM tblTypeBail WHERE ID_TypeBail = l.dgID_TypeBail) AS [Nom_TypeBail], " & _ " (SELECT Nom_TypeOrgLoisirs FROM tblTypeOrgLoisirs WHERE ID_TypeOrgLoisirs = l.dgID_TypeOrgLoisirs) AS [Nom_TypeOrgLoisirs], " & _ " (SELECT Nom_TypeCable FROM tblTypeCable WHERE ID_TypeCable = l.dgID_TypeCable) AS [Nom_TypeCable], " & _ " (SELECT Nom_TypeFCable FROM tblTypeFCable WHERE ID_TypeFCable = l.dgID_TypeFCable) AS [Nom_TypeFCable], " & _ " (SELECT Nom_TypeChambre FROM tblTypeChambre WHERE ID_TypeChambre = l.dgID_TypeLogProp) AS [Nom_TypeLogProp], " & _ " (SELECT Nom_TypeInfirmiere FROM tblTypeInfirmiere WHERE ID_TypeInfirmiere = l.dgID_TypeInfirmiere) AS [Nom_TypeInfirmiere], " & _ " (SELECT Nom_TypeSyndicat FROM tblTypeSyndicat WHERE ID_TypeSyndicat = l.dgID_TypeSyndicat) AS [Nom_TypeSyndicat] " & _ "FROM (tblListing AS l " & _ " INNER JOIN tblVente AS v ON l.ID_vente = v.ID_vente) " & _ " INNER JOIN tblSUBResidence AS r ON v.ID_res = r.ID_res " & _ "WHERE ID_Listing = " & vID & ";" RS.Open strSQL, CNRS if vId > 1 then TList = RS.Fields("Temp") if not RS.EOF then if Session("UserID") <> "" and not P then ConnectCMD strSQL = "INSERT INTO tblCmd(nom_cmd) VALUES('INSERT INTO tblRelation(ID_ach, ID_Assistant, ID_Listing, ID_TypeRelation, Date_Relation) VALUES(" & Session("UserID") & ", " & Session("Assistid") & ", " & vID & ", 5, #" & FormatDate(Now, "yyyy-mm-dd hh:nn") & "#)')" CMD.CommandText = strSQL CMD.Execute end if if C = 1 then MDF = RS.Fields("moPrix") / 2 else MDF = RS.Fields("moMiseDeFond") end if %> <%Dim resId,vacantes if RS.Fields("Temp") or RS.Fields("Open_Listing") <> 0 then resId = ((RS.Fields("ID_res") +3000) Mod 1804) + RS.Fields("ID_res") else resId = RS.Fields("ID_res") end if SendEMail EMAIL_FROM, EMAIL_TO, "","L'ach. Non enregistré et l-sommaire sans acces client #" & RS.Fields("ID_res"), " " %>



514 644 4444  

 

LISTING SOMMAIRE #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>

<%ShowProjection()%> / <%ShowDateP()%>

<%if RS.Fields("Titre")=1 then %>RÉSIDENCE POUR PERSONNES AGÉES<%END IF %> <%if RS.Fields("Titre")=2 then %>RESSOURCE INTERMEDIAIRE EN SANTÉ MENTALE<%END IF %> <%if RS.Fields("Titre")=3 then %>RESSOURCE DE TYPE FAMILIALE<%END IF %> <%if RS.Fields("Titre")=4 then %>APPARTEMENTS LOCATIFS – STANDARD<%END IF %>
<%if RS.Fields("Categ")=1 then %>Complexe d'appartement sans service<%END IF %> <%if RS.Fields("Categ")=2 then %>Complexe d'appartement avec service<%END IF %> <%if RS.Fields("Categ")=3 then %>Ressource intermediaire gerontologie<%END IF %> <%if RS.Fields("Categ")=4 then %>Ressource intermediaire gerontologie<%END IF %> <%if RS.Fields("Categ")=11 then %>Chsld public<%END IF %> <%if RS.Fields("Categ")=5 then %>Chsld privé autofinancé<%END IF %> <%if RS.Fields("Categ")=6 then %>Chsld conventionné<%END IF %> <%if RS.Fields("Categ")=7 then %>Clientele privé santé mentale<%END IF %> <%if RS.Fields("Categ")=8 then %>Clientele privé en lourde perte d'autonomie<%END IF %> <%if RS.Fields("Categ")=9 then %>Repas et services inclus<%END IF %> <%if RS.Fields("Categ")=10 then %>Osbl<%END IF %>
<%if RS.Fields("SCateg1") then %>Chambres privées
<%END IF %> <%if RS.Fields("SCateg2") then %>Studios privés
<%END IF %> <%if RS.Fields("SCateg3") then %>Achat service<%END IF %> <%if RS.Fields("SCateg5") then %>Appartements avec service<%END IF %>

<% if RS.Fields("Open_Listing") = 0 then %> *Richard Perreault Immobilier Inc. agit uniquement comme courtier pour le vendeur et non pas comme agent de l’acheteur <%else %> *Richard Perreault Immobilier Inc. agit uniquement comme courtier pour l’acheteur et non pas comme agent du vendeur <%end if %>

Imprimé :<%=FormatDate(Date(), "dd mmmm yyyy")%>
<% Dim EtudeS, EtudeM,EvalA,EtudeEnv, InspectB, CerLoc, AssBat, PermisV, PermisM, PlanEvac,Energ, Taxes,Photos, DeclVendeur,PretHyp,AssPret,LivrSalaires,PermisAsc,CertRpa,EtatsFin,DecEnv RS2.Open " SELECT * FROM tblListingDoc " & _ " WHERE Id_Listing = " & vID,CNRS if(RS2.EOF And RS2.BOF) then Photos = 4 EtudeM = 4 EtudeEnv = 4 EtudeS = 4 EvalA = 4 InspectB = 4 CerLoc = 4 AssBat = 4 PermisV = 4 PermisM = 4 PlanEvac =4 Energ = 4 Taxes = 4 DeclVendeur = 4 PretHyp = 4 AssPret = 4 LivrSalaires= 4 PermisAsc= 4 CertRpa= 4 EtatsFin= 4 DecEnv = 4 elseif not isnull(RS2.Fields("ConfPhotos")) then Photos = RS2.Fields("ConfPhotos") EtudeM = RS2.Fields("ConfEtudeM") EtudeEnv = RS2.Fields("ConfEtudeEnv") EtudeS = RS2.Fields("ConfEtudeS") EvalA = RS2.Fields("ConfEvalA") InspectB = RS2.Fields("ConfInspectB") CerLoc = RS2.Fields("ConfCerLoc") AssBat = RS2.Fields("ConfAssBat") PermisV = RS2.Fields("ConfPermisV") PermisM = RS2.Fields("ConfPermisM") PlanEvac = RS2.Fields("ConfPlanEvac") Energ = RS2.Fields("ConfEnerg") Taxes = RS2.Fields("ConfTaxes") DeclVendeur = RS2.Fields("DeclVendeur") PretHyp = RS2.Fields("PretHyp") AssPret = RS2.Fields("AssPret") LivrSalaires= RS2.Fields("LivrSalaires") PermisAsc= RS2.Fields("PermisAsc") CertRpa= RS2.Fields("CertRpa") EtatsFin= RS2.Fields("EtatsFin") DecEnv = RS2.Fields("DecEnv") end if RS2.Close%>
#<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
2

TABLE DES MATIÈRES

Information générale
3
Notes et renseignements
4
 
 
Informations fournies dans le rapport complet
5
Dépenses
5
États et ratios des revenus / dépenses
5
Service / dette
6
Tableau comparatif des dépenses
7
Ventilation des salaires
8
Ventilation des loyers
9
Ratios complets
10
 
ANNEXE (pour avoir accès : 514-644-4444 poste 36)
_1) Taxes municipales et scolaires
<%=Annexe(Taxes )%>
section I
_2) Livre de salaires
<%=Annexe(LivrSalaires)%>
section II
_3) Énergie
<%=Annexe(Energ)%>
section III
_4) Assurance bâtiment
<%=Annexe(AssBat)%>
section IV
_5) États financiers
<%=Annexe(EtatsFin) %>
section V
_6) Permis ville
<%=Annexe(PermisV ) %>
section VI
_7) Permis M.A.P.A.Q.
<%=Annexe(PermisM) %>
section VII
_8) Permis ascenseur
<%=Annexe(PermisAsc ) %>
section VIII
_9) Plan d'évacuation
<%=Annexe(PlanEvac) %>
section IX
10) Certification
<%=Annexe(CertRpa ) %>
section X
11) Certificat localisation
<%=Annexe(CerLoc ) %>
section XI
12) Declaration bâtiment du vendeur
<%=Annexe(DeclVendeur)%>
section XII
13) Inspection bâtiment
<%=Annexe(InspectB)%>
section XIII
14) Declaration environnementale du vendeur
<%=Annexe(DecEnv)%>
section XIV
15) Étude environnementale
<%=Annexe(EtudeEnv) %>
section XV
16) Acte de prêt hypothécaire
<%=Annexe(PretHyp ) %>
section XVI
17) Acte d'assurance hypothécaire SCHL
<%=Annexe(AssPret)%>
section XVII
18) Évaluation agréé
<%=Annexe(EvalA)%>
section XVIII
19) Étude du marché SCHL
<%=Annexe(EtudeS) %>
section XIX
20) Étude du marché privé
<%=Annexe(EtudeM)%>
section XX
21) Photos de la résidence
<%=Annexe(Photos)%>
section XXI
&ids=<%=Session("Userid")%>&mac=<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>"> CLIQUEZ pour demander LE LISTING COMPLET !!!
<% dim RDA, RDB, RDB1, RDC, RDC1, RDD, RDE, RDF,RDF_a, RDG, RDI,RVD,RDB_AR,RDBT,RDC_AR, RDCT, AssHyp,vact dim creExist, vRunning, RDH,RDH_a, RDH1, r5A, r10A,r10A_a, tDette,tDette_a ,vVal2_a,renouv1,renouv2,numRenouv1,numRenouv2 creExist = false vRunning = true RDH = 0 r10A = 0 tDette = 0 vVal2 = 0 RDH_a = 0 r10A_a = 0 tDette_a = 0 vVal2_a = 0 vVal = 0 renouv1=0 renouv2=0 AssHyp = 0 strSQL = " SELECT c.ID_cre,c.num_cre" & _ " FROM tblCreancier as c where 1 < (select count(*)from tblCreancier as r " & _ " WHERE c.ID_Listing = " & vID &" AND c.ID_TypePret = 3 and c.ID_Listing=r.ID_Listing and c.Num_cre = r.Num_cre) order by c.ID_cre ASC" RS2.Open strSQL, CNRS do while not RS2.EOF if renouv1 = 0 then renouv1 = RS2.Fields(0) numRenouv1 = RS2.Fields(1) elseif numRenouv1<>RS2.Fields(1)and renouv2=0 then renouv2 = RS2.Fields(0) end if RS2.MoveNext loop RS2.Close strSQL = " SELECT ID_TypePret, Hypotheque_cre, TauxInteret_cre, Mensuel_cre, Amortissement_cre,ID_TypeCreancier,Date_Solde,Date_Client" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND (ID_TypePret = 1 or ID_TypePret = 2 or ID_TypePret = 4 ) and ID_TypeCreancier<>20 " RS2.Open strSQL, CNRS do while not RS2.EOF r10A = r10A + CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),5) RDH = RDH + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10) tDette = tDette + RS2.Fields("Hypotheque_cre") vVal2 = vVal2 + RS2.Fields("Mensuel_cre") RS2.MoveNext loop RS2.Close strSQL = " SELECT ID_TypePret, Hypotheque_cre,Hypotheque2_cre, TauxInteret_cre, Mensuel_cre, Amortissement_cre,ID_TypeCreancier,Date_Solde,Date_Client" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " and ID_TypeCreancier<>20 AND (ID_TypePret = 3 or ID_TypePret = 5 or ID_TypePret = 6 ) AND ID_Cre <> "& renouv1 & " AND ID_Cre <> "& renouv2 RS2.Open strSQL, CNRS do while not RS2.EOF r10A_a = r10A_a + CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),5) RDH_a = RDH_a + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10) tDette_a = tDette_a + RS2.Fields("Hypotheque_cre") vVal2_a = vVal2_a + RS2.Fields("Mensuel_cre") if RS2.Fields("ID_TypePret")=3 then AssHyp = AssHyp + RS2.Fields("Hypotheque2_cre") end if RS2.MoveNext loop RS2.Close if RS.Fields("chUnite")<25 then RS2.Open " SELECT SUM(Valeur_Depense) as vRet FROM tblDepense WHERE Valeur_Depense<>111111 and ID_TypeDepense not in (4,61,59,60,37,26) and ID_Listing = " & vID, CNRS if not isnull(RS2.Fields(0)) then vVal = RS2.Fields(0) RS2.Close else RS2.Open " SELECT SUM(Valeur_Depense) as vRet FROM tblDepense WHERE Valeur_Depense<>111111 and ID_Listing = " & vID, CNRS if not isnull(RS2.Fields(0)) then vVal = RS2.Fields(0) RS2.Close end if RDH1 = 0 if RS.Fields("dgLogementProprio") then RS2.Open " SELECT Valeur_Option as vRet FROM tblOption WHERE ID_Option = 5", CNRS if not isnull(RS2.Fields(0)) then RDH1 = RS2.Fields(0) RS2.Close end if RS2.Open " SELECT COUNT (Chambre) AS nrVc" & _ " FROM tblLoyers" & _ " WHERE Vacante = 1 AND Chambre <> '0' AND ID_Listing = " & vID,CNRS vacantes = RS2.Fields("nrVc") RS2.Close vact = (vacantes/RS.Fields("chUnite"))*100 %>
 
INFORMATION GÉNÉRALE
#<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
3
<% if RS.Fields("Open_Listing") <> 0 then%> <%if RS.Fields("moPrixV") <> 0 then %> <%end if %> <%else %> <%end if %> <% dim Cr1,sc sc=0 strSQL = " SELECT Count(*) AS typeUn" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 1" RS2.Open strSQL, CNRS Cr1 = RS2.Fields(0) RS2.Close %> <% if Cr1 >0 then strSQL = " SELECT c.ID_Cre ,c.ID_TypeCreancier ,c.ID_TypePret,c.Schl" & _ " FROM tblCreancier AS c,tblTypeCreancier AS t " & _ " WHERE c.ID_TypeCreancier = t.ID_TypeCreancier AND c.ID_Listing = " & vID &" AND c.ID_TypePret=1" RS2.Open strSQL, CNRS if RS2.Fields("Schl") then sc=1 end if RS2.Close end if %> <% dim Balance Balance = 0 strSQL = " SELECT Hypotheque_cre" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 2 " RS2.Open strSQL, CNRS do while not RS2.EOF Balance = Balance + RS2.Fields("Hypotheque_cre") RS2.MoveNext loop RS2.Close%> <% dim BalanceAss BalanceAss = 0 strSQL = " SELECT Hypotheque_cre" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 5 AND ID_Cre <> "& renouv1 & " AND ID_Cre <> "& renouv2 RS2.Open strSQL, CNRS do while not RS2.EOF BalanceAss = BalanceAss + RS2.Fields("Hypotheque_cre") RS2.MoveNext loop RS2.Close %> <% if AssHyp <> 0 then %> <% end if %> <%if Balance <> 0 or BalanceAss <> 0 then %> <% end if %> <%if Balance <> 0 then %> <% end if %> <%if BalanceAss <> 0 then %> <% end if %> <%if RS.Fields("Pop_ville")<>0 then %> <%end if %> <%if RS.Fields("Pop_mrc")<>0 then %> <%end if %> <%if RS.Fields("TVac_schl")<>0 then %> <%end if %>
DESCRIPTION
Prix vendeur
: <%if RS.Fields("moPrixV")=111111 then %> ($$) Voir courtier <%else %> <%=PN(FormatNumber(RS.Fields("moPrixV") * MD, 0, , , true))%> <%=SD%> <%end if %>
     
Prix RP
(commission excluse)
: <%=PN(FormatNumber(RS.Fields("moPrix") * MD, 0, , , true))%> <%=SD%> + commission-ach. $$
Prix
: <%=PN(FormatNumber(RS.Fields("moPrix") * MD, 0, , , true))%> <%=SD%>
     
Unités
: <% if RS.Fields("Open_Listing") <> 0 then%> <%if RS.Fields("chUnite")<25 then %>1 à 24 unités <%elseif RS.Fields("chUnite")<51 then %>25 à 50 unités <%else %>51 unités et + <%end if %> <%else %> <%=PN(RS.Fields("chUnite"))%><%end if %>
     
Mise de fonds
     
   A)Refinancement
: <%=PN(FormatNumber(MDF * MD, 0, , , true))%> <%=SD%> <% if sc=1 then%>+Taxe SCHL <%end if %>
   B)Ass./Prêt existant
: <%=PN(FormatNumber((RS.Fields("moPrix")-BalanceAss -AssHyp) * MD, 0, , , true))%> <%=SD%>  
Balance de vente
       
   A1)Si Réf./ BV nouvelle
: <%=PN(FormatNumber(Balance * MD, 0, , , true))%> <%=SD%>  
   B1)Si Ass./ BV nouvelle
: <%=PN(FormatNumber(BalanceAss * MD, 0, , , true))%> <%=SD%>  
       
District
: <%=Str2ProperCase(RS.Fields("Nom_Lieu"))%>
Population ville
: <%=PN(FormatNumber(RS.Fields("Pop_ville")* MD, 0, , , true))%>  
Population MRC
: <%=PN(FormatNumber(RS.Fields("Pop_mrc")* MD, 0, , , true))%>  
Taux vacance SCHL
: <%=PN(RS.Fields("TVac_schl"))%>%  
Type d'entreprise
: <%=Str2ProperCase(RS.Fields("Nom_TypeEntreprise"))%>
Bail
: <%=Str2ProperCase(RS.Fields("Nom_TypeBail"))%>
Syndicat : <% if RS.Fields("Nom_TypeSyndicat")<> "' '" then %> <%=RS.Fields("Nom_TypeSyndicat") %><%else %>??<% end if%>
Mise en services : <%=PN(RS.Fields("DateDebut_res"))%>
Propriétaire depuis : <%if isNull(RS.Fields("DateAchat_res")) or RS.Fields("DateAchat_res")="" then %> ?? <%else %><%=Str2ProperCase(RS.Fields("DateAchat_res"))%><%end if %>
Certification : <% if isNull(RS.Fields("Certific")) then %>??<%else %> <%=Str2ProperCase(RS.Fields("Certific"))%><%end if %>
  <% Dim batiments RS2.Open " SELECT COUNT (Nr_Bat) AS nrB" & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID,CNRS batiments = RS2.Fields(0) RS2.Close if batiments > 1 then %> <%end if %> <% if RS.Fields("DateAgr_res") = "111111" then %> <% elseif RS.Fields("DateAgr_res") = "" then %> <% else %> <% end if%> <% if batiments > 1 and RS.Fields("Open_Listing") = 0 then %> <%end if %> <% if not isNull(RS.Fields("Chaise")) or RS.Fields("Chaise") <> "Non" then %> <%end if %>
BÂTIMENT
1)Spécifications
Nombre/nom(batiments) : <%=batiments %> : <% Dim nrBat nrBat =1 strSQL = " SELECT Titre " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %>  <%=RS2.Fields("Titre")%> <%if nrBat <> batiments then %>/<%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%>
Rénovations : <%if isNull(RS.Fields("DateReno_res")) then %> ?? <%else %><%=Str2ProperCase(RS.Fields("DateReno_res"))%> <% end if%>
Agrandissement : N/A
Agrandissements : NON
Agrandissement : <%=RS.Fields("DateAgr_res")%>
Étage <% if batiments > 1 then %>par bâtiment<%end if %> : <%if batiments > 1 then %> <% nrBat =1 strSQL = " SELECT Titre,Etages " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>= <%=RS2.Fields("Etages")%> <%if nrBat <> batiments then %> / <%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%> <%else %> <%=Str2ProperCase(RS.Fields("dgNbrEtages"))%> <%end if %>
Unités par bâtiment : <% nrBat =1 strSQL = " SELECT Titre,NrUnit " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>= <%=RS2.Fields("NrUnit")%> unités <%if nrBat <> batiments then %>
<%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%>
Recouvrement extérieur : <%if isNull(RS.Fields("Nom_TypeRecouvrement")) then %> ?? <%else %><%=Str2ProperCase(RS.Fields("Nom_TypeRecouvrement"))%><%end if %>
Eau chaude : <%if isNull(RS.Fields("Nom_TypeEauChaude")) then %> ?? <%else %><%=Str2ProperCase(RS.Fields("Nom_TypeEauChaude"))%><%end if %>
Équipement cuisine : <%if isNull(RS.Fields("Nom_EquipCuisine")) then %> ?? <%else %><%=Str2ProperCase(RS.Fields("Nom_EquipCuisine"))%><%end if %>
Année construction : <%if batiments > 1 then %> <% nrBat =1 strSQL = " SELECT Titre,Constr " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>= <%if RS2.Fields("Constr") =0 then %>? <%else %><%=Str2ProperCase(RS2.Fields("Constr"))%><%end if %> <%if nrBat <> batiments then %>
<%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%> <%else %> <% if RS.Fields("DateCons_res")<> "" then %> <% =PN(RS.Fields("DateCons_res"))%> <%else %>Inconnu<%end if %><%end if %>
Structure <%if batiments > 1 then %>par bâtiment<%end if %> : <%if batiments > 1 then %> <% nrBat = 1 strSQL = " SELECT Titre,Struct " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>= <%if RS2.Fields("Struct")=0 then %>?<%end if %> <%if RS2.Fields("Struct")=1 then %>BOIS<%end if %> <%if RS2.Fields("Struct")=2 then %>BÉTON<%end if %> <%if RS2.Fields("Struct")=3 then %>BOIS / BÉTON<%end if %> <%if RS2.Fields("Struct")=4 then %>ACIER / BÉTON<%end if %> <%if RS2.Fields("Struct")=5 then %>BOIS ACIER BÉTON<%end if %> <%if nrBat <> batiments then %>
<%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%> <%else %> <%if isNull(RS.Fields("Nom_TypeConstruction")) then %> ?? <%else %><%=Str2ProperCase(RS.Fields("Nom_TypeConstruction"))%><%end if %> <%end if %>
Ascenseur <%if batiments > 1 then %>par bâtiment<%end if %> : <%if batiments > 1 then %> <% nrBat =1 strSQL = " SELECT Titre,Ascenseurs " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>= <%if RS2.Fields("Ascenseurs") =0 then %>Non <%else %><%=Str2ProperCase(RS2.Fields("Ascenseurs"))%><%end if %> <%if nrBat <> batiments then %> / <%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%> <%else %> <%if RS.Fields("dgAscenseur") =0 then %> NON <%else %><%=Str2ProperCase(RS.Fields("dgAscenseur"))%><%end if %> <%end if %>
Chaise élévatrice : <%=Str2ProperCase(RS.Fields("Chaise"))%>
Classe <%if batiments > 1 then %>par bâtiment<%end if %> : <%if batiments > 1 then %> <% nrBat = 1 strSQL = " SELECT Titre,Classe " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>= <%if RS2.Fields("Classe")=0 then %>?<%end if %> <%if RS2.Fields("Classe")=1 then %>C<%end if %> <%if RS2.Fields("Classe")=2 then %>Autres<%end if %> <%if RS2.Fields("Classe")=3 then %>B2<%end if %> <%if RS2.Fields("Classe")=4 then %>B2 + C<%end if %> <%if RS2.Fields("Classe")=5 then %>R<%end if %> <%if nrBat <> batiments then %> / <%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%> <%else %> <%=Str2ProperCase(RS.Fields("Nom_Classe"))%> <%end if %>
Chauffage : <%if isNull(RS.Fields("Nom_TypeChauffage")) then %> ?? <% else %><%=Str2ProperCase(RS.Fields("Nom_TypeChauffage"))%><%end if %>
Cable payé par : <% if RS.Fields("Nom_TypeCable")<> "' '" then %> <%=Str2ProperCase(RS.Fields("Nom_TypeCable"))%><%else %>??<% end if%>
Fournisseur cable : <% if RS.Fields("Nom_TypeFCable")<> "' '" then %> <%=Str2ProperCase(RS.Fields("Nom_TypeFCable"))%><%else %>??<% end if%>
Gicleurs : <%if RS.Fields("Gicleurs")=0 then %>??<%end if %> <%if RS.Fields("Gicleurs")=1 then %>Oui 100%<%end if %> <%if RS.Fields("Gicleurs")=2 then %>Oui partiellement<%end if %> <%if RS.Fields("Gicleurs")=3 then %>Non<%end if %>
Espaces climatisés : <%if RS.Fields("Climat")=1 then %>Espaces communs seulement<%end if %> <%if RS.Fields("Climat")=2 then %>Complètement<%end if %> <%if RS.Fields("Climat")=3 then %>Bureaux seulement<%end if %> <%if RS.Fields("Climat")=0 then %>???<%end if %> <%if RS.Fields("Climat")=4 then %>Rien<%end if %>
Échangeur d'air : <%if RS.Fields("EchAir")=1 then %>Oui<%else%>Non<%end if %>
Cameras de surveillance : <%if RS.Fields("CamSurv")=0 then %>Non <%elseif RS.Fields("CamSurv")=1 then %>Oui <%else%>Oui (<%=RS.Fields("CamSurv")%>) <%end if %>
Logement proprietaire : <% if RS.Fields("Nom_TypeLogProp")<> "' '" then %> <%=Str2ProperCase(RS.Fields("Nom_TypeLogProp"))%><%else %>??<% end if%>
DIMENSIONS - SUPERFICIE
Terrain (dimension) : <%if RS.Fields("dgDimTerrain")= "0" then %> ?? <%else %> <%=LCase(RS.Fields("dgDimTerrain"))%><%end if %>
Terrain (superficie) : <%=PN(FormatNumber(RS.Fields("dgSuperficieTerrain"), 0, , , true))%> m² / <%=PN(FormatNumber(RS.Fields("dgSuperficieTerrain") * VPC, 0, , , true))%> pi²
Bâtiment (Dimension) : <%if RS.Fields("dgDimBatiment")= "0" then %> ?? <%else %> <%=LCase(RS.Fields("dgDimBatiment"))%><%end if %> 
Bâtiment (Superficie) : <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment"), 0, , , true))%> m² / <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment") * VPC, 0, , , true))%> pi²
Espaces unités : <%=PN(FormatNumber(RS.Fields("dgSuperficieLogement"), 0, , , true))%> m² / <%=PN(FormatNumber(RS.Fields("dgSuperficieLogement") * VPC, 0, , , true))%> pi²
Espaces communs : <%=PN(FormatNumber((RS.Fields("dgSuperficieBatiment") - RS.Fields("dgSuperficieLogement")), 0, , , true))%> m² / <%=PN(FormatNumber((RS.Fields("dgSuperficieBatiment") - RS.Fields("dgSuperficieLogement")) * VPC, 0, , , true))%> pi²
 
<%if RS.Fields("moEvalBatiment")+RS.Fields("moEvalTerrain") <>0 then %>
ÉVALUATION MUNICIPALE <%if not isNull(RS.Fields("AnEval")) then %>(<%=LCase(RS.Fields("AnEval"))%>)<%end if %>
Terrain : <%=PN(FormatNumber(RS.Fields("moEvalTerrain")* MD, 0, , , true))%> <%=SD%>  
Bâtiment : <%=PN(FormatNumber(RS.Fields("moEvalBatiment")* MD, 0, , , true))%> <%=SD%>  
Total : <%=PN(FormatNumber((RS.Fields("moEvalBatiment")+RS.Fields("moEvalTerrain"))* MD, 0, , , true))%> <%=SD%>  
 
<%end if %>
LANGUES

<% strSQL = " SELECT t.Nom_Langue" & _ " FROM tblLangueParlee AS l INNER JOIN tblLangue AS t ON l.ID_Langue = t.ID_Langue" & _ " WHERE l.ID_Listing = " & vID & _ " ORDER BY t.Nom_Langue ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF Response.Write Str2ProperCase(RS2.fields("Nom_Langue")) RS2.MoveNext If Not RS2.EOF Then Response.Write ", " Loop RS2.Close %>

 
CLIÈNTELE

<% strSQL = " SELECT t.Nom_TypeClientele" & _ " FROM tblClientele AS c INNER JOIN tblTypeClientele AS t ON c.ID_TypeClientele = t.ID_TypeClientele" & _ " WHERE c.ID_Listing = " & vID & _ " ORDER BY t.Nom_TypeClientele ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF Response.Write Str2ProperCase(RS2.fields("Nom_TypeClientele")) RS2.MoveNext If Not RS2.EOF Then Response.Write ", " Loop RS2.Close %>

 
SERVICES À PROXIMITÉ

<% strSQL = " SELECT t.Nom_TypeService" & _ " FROM tblService AS s INNER JOIN tblTypeService AS t ON s.ID_TypeService = t.ID_TypeService" & _ " WHERE s.ID_Listing = " & vID & _ " ORDER BY t.Nom_TypeService;" RS2.Open strSQL, CNRS Do While Not RS2.EOF Response.Write Str2ProperCase(RS2.fields("Nom_TypeService")) RS2.MoveNext If Not RS2.EOF Then Response.Write ", "%> <%Loop RS2.Close %>

  <%dim lnp lnp=0 lnp=lnp+1 %> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> <% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt" > <%lnp=lnp+1 %><% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1%> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1 %>
Services
Salle commune : <%=ck(RS.Fields("dgSalleCommune"))%> Buanderie : <%=ck(RS.Fields("dgBuanderie"))%>
Balcons privés : <%=ck(RS.Fields("dgBalconPrive"))%> Balcons communs : <%=ck(RS.Fields("dgBalconCommun"))%>
Piscine intérieure : <%=ck(RS.Fields("dgPiscineInt"))%> Piscine extérieure : <%=ck(RS.Fields("dgPiscineExt"))%>
Cour privée : <%=ck(RS.Fields("dgCourPrive"))%> Chapelle : <%=ck(RS.Fields("dgChapelle"))%>
Salle d'exercice : <%=ck(RS.Fields("SalleExercice"))%> Spa intérieur : <%=ck(RS.Fields("SpaInt"))%>
Salle de billiards : <%=ck(RS.Fields("Biliard"))%> Bain thérapeutique : <%=ck(RS.Fields("BainT"))%>
Local-pharmacie : <%=ck(RS.Fields("Pharmacie"))%> Salon de coiffure : <%=ck(RS.Fields("Coiffure"))%>
Bureau médecin : <%=ck(RS.Fields("Medecin"))%> Local-infirmerie : <%=ck(RS.Fields("Infirmerie"))%>
<%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> <% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt" > <%lnp=lnp+1 %><% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1%> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %><% couleur = couleur+1 %>
Facilités Sécurité
Photographie : <%=ck(RS.Fields("dgPhoto"))%> Boutons panique : <%=ck(RS.Fields("dgSysAppel"))%>
Aide au bain : <%=ck(RS.Fields("dgAideBain"))%> Carte magnétique : <%=ck(RS.Fields("dgCameras"))%>
Hébergement : <%=ck(RS.Fields("dgHebergTemp"))%> Panneau d'incendie : <%=ck(RS.Fields("dgPanneauIncendie"))%>
Comité de résidents : <%=ck(RS.Fields("dgComite"))%> Génératrice : <%=ck(RS.Fields("dgGeneratrice"))%>
Meubles et literie : <%=ck(RS.Fields("dgMeubles"))%> Transports spéciaux : <%=ck(RS.Fields("dgTransport"))%>
&ids=<%=Session("Userid")%>&mac=<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>"> CLIQUEZ pour demander LE LISTING COMPLET !!!
#<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
5
DÉPENSES ÉTATS REVENUS / DÉPENSES
<% dim color,depenseC color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 AND 2) AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 3 AND 10) AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if (depenseC= 111111 or depenseC = 111) then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 11 AND 16 ) AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 17 AND 22) AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 23 AND 32) AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 33 AND 36) AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE t.Rang_Depense =37 AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 38 AND 41) AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense, t.Pourcentage_Depense" & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE t.Rang_Depense =42 AND d.ID_Listing = " & vID & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS do while not RS2.EOF depenseC = RS2.Fields("Valeur_Depense") if depenseC= 111111 then depenseC=0 end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %>
TAXES
Montant
/personne
/unité
bgcolor="#E4E4E4" <% end if%>class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
SALAIRES      
bgcolor="#E4E4E4" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
ÉNERGIE & TÉLÉCOMUNICATIONS  
bgcolor="#E4E4E4" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
ENTRETIEN ET ACHAT PRODUITS  
bgcolor="#E4E4E4" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
PERMIS & FRAIS FINANCIERS  
bgcolor="#E4E4E4" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
LOCATION D'ÉQUIPEMENTS    
bgcolor="#E4E4E4" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
bgcolor="#E4E4E4" <% end if%> class="v12">ALIMENTATION bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
LOCATAIRE MARKETING    
bgcolor="#E4E4E4" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
       
bgcolor="#E4E4E4" <% end if%> class="v12">DIVERS bgcolor="#E4E4E4" <% end if%> >
<%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v4">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
bgcolor="#E4E4E4" <% end if%> class="v5">
<%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
TOTAUX
<%=PN(FormatNumber(vVal * MD, 0, , , true))%> $
<%=PN(FormatNumber(Div0(vVal, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
<%=PN(FormatNumber(Div0(vVal, RS.Fields("chUnite")) * MD, 0, , , true))%> $
<% dim Occloyers RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 and ID_Listing = " & vID,CNRS %> <% Occloyers = 12 * RS2.Fields(0) RS2.Close%> <% dim OccloyersSoins RS2.Open " SELECT SUM (Soin)" & _ " FROM tblLoyers" & _ " WHERE Soin<>111111 and ID_Listing = " & vID,CNRS %> <% OccloyersSoins = 12 * RS2.Fields(0) RS2.Close%> <% if isnull(Occloyers) then Occloyers = 0 end if if isnull(OccloyersSoins) then OccloyersSoins = 0 end if %> <% if Occloyers <> 0 then RDB = Occloyers + OccloyersSoins else RDB = 0 end if if RDB = 0 or (isnull(RDB)) then RDB = 1 end if %> <% RDA = RS.Fields("moRevenuActuel") %> <% dim Vacantloyers,PercVL Vacantloyers = 0 PercVL = 0 RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Vacante = 1 and Tarif<>111111 AND ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then Vacantloyers = 12 * RS2.Fields(0) end if PercVL = RS.Fields("moTauxPerteVacance") RDB1 = RDB * RS.Fields("moTauxPerteVacance") RS2.Close%> <% RDC = RDB - Vacantloyers %> <% dim RDB_AR2,RDC_AR2 RDB_AR2 = RS.Fields("AutresRev2") RDB_AR = RS.Fields("AutresRev") RDC_AR = RDB_AR - RS.Fields("VacAutresRev") RDC_AR2 = RDB_AR2 - RS.Fields("VacAutresRev2") %> <% if RDB_AR2 = 111111 then RDB_AR2 = 0 RDC_AR2 =0%> <% end if %> <% if RDB_AR =111111 then RDB_AR = 0 RDC_AR =0 %> <% end if %> <% if RDB_AR2 <> 0 and RDB_AR2 <> 111111 then %> <% end if %> <% if RDB_AR <> 0 and RDB_AR <> 111111 then %> <% end if %> <%RDBT = RDB-RDB1 + RDC_AR + RDC_AR2 %> <%RDCT = RDC + RDC_AR +RDC_AR2%> <% RDD = vVal if RS.Fields("VacMin")=0 then RDBT = RDCT end if %> <% RDE = RDBT - RDD%>
A- Revenu brut résidentiel:
<%=PN(FormatNumber(RDB * MD, 0, , , true))%> $
Revenu à la signature du mandat
Mensuel: <%=FormatNumber(RDA * MD, 0, , , true)%> $ /  Annuel: <%=FormatNumber((RDA * 12) * MD, 0, , , true)%> $

A1-Vacantes minimales
<%=PN(FormatNumber(PercVL * 100, 2, , , true))%>%
(<%=PN(FormatNumber(RDB1 * MD, 0, , , true))%> $)
  Revenu brut minimal(A1)
<%=PN(FormatNumber(RDB-RDB1 * MD, 0, , , true))%> $
 
 
A2-Vacantes actuels
<%=PN3(FormatNumber(Vacantloyers / RDB * 100, 2, , , true))%>%
(<%=PN3(FormatNumber(Vacantloyers * MD, 0, , , true))%> $)
  Revenu brut réel(A2)
<%=PN(FormatNumber(RDC * MD, 0, , , true))%> $
B - Autres revenus(soins-public)
N/A
B1 - Vacantes
N/A
N/A
BB - Autres revenus(commercial)
N/A
BB1 - Vacantes
N/A
N/A
B - Autres revenus(soins-public)
<%=PN(FormatNumber(RDB_AR2 * MD, 0, , , true))%> $
B1 - Vacantes
<%=PN(FormatNumber(RS.Fields("VacAutresRev2") / RDB_AR2 * 100, 2, , , true))%>%
<%=PN(FormatNumber(RS.Fields("VacAutresRev2") * MD, 0, , , true))%> $
B2 - Brut réel
<%=PN(FormatNumber(RDC_AR2 * MD, 0, , , true))%> $
 
 
BB - Autres revenus(commercial)
<%=PN3(FormatNumber(RDB_AR * MD, 0, , , true))%> $
BB1 - Vacantes
<%=PN(FormatNumber(RS.Fields("VacAutresRev") / RDB_AR * 100, 2, , , true))%>%
<%=PN(FormatNumber(RS.Fields("VacAutresRev") * MD, 0, , , true))%> $
BB2 - Brut réel
<%=PN(FormatNumber(RDC_AR * MD, 0, , , true))%> $
 
 
C1 - Total revenu brut minimal(*A1)
<%=PN(FormatNumber(RDBT * MD, 0, , , true))%> $
C2 - Total revenu brut réel      (*A2)
<%=PN(FormatNumber(RDCT * MD, 0, , , true))%> $
 
 
D - Dépenses
<%=PN(FormatNumber(Div0(RDD, RDBT) * 100, 2, , , true))%>%
(<%=PN(FormatNumber(RDD * MD, 0, , , true))%> $)
 
 
E- REVENU NET
<% if RS.Fields("VacMin") then %> (*calculer avec C1)<%else %> (*calculer avec C2) <%end if%>
<%=PN(FormatNumber(Div0(RDE, RDBT) * 100, 2, , , true))%>%
<%if RDE < 0 then %>(<%=PN(FormatNumber(RDE * MD, 0, , , true))%> $) <% else %> <%=PN(FormatNumber(RDE * MD, 0, , , true))%> $<% end if %>
<% dim RDG_a,RDI_a RDF = vVal2 * 12 RDF_a = vVal2_a * 12 RDG = RDE - RDF RDG_a = RDE - RDF_a RDI = RDG + RDH + RDH1 RDI_a = RDG_a + RDH_a + RDH1 %> <% if RS.Fields("dgLogementProprio") then %> <% end if %>
 
REFINANCEMENT
ASSUMATION
F- Service/dette (<%=PN(FormatNumber(Div0(RDF, RDBT) * 100, 1, , , true))%>%) <%=PN(FormatNumber(RDF * MD, 0, , , true))%> $ (<%=PN(FormatNumber(Div0(RDF_a, RDBT) * 100, 1, , , true))%>%) <%=PN(FormatNumber(RDF_a * MD, 0, , , true))%> $
G- Liquidité (<%=PN(FormatNumber(Div0(RDG, RDBT) * 100, 1, , , true))%>%) <%if RDG < 0 then %>(<%=PN(FormatNumber(RDG * MD, 0, , , true))%> $) <% else %> <%=PN(FormatNumber(RDG * MD, 0, , , true))%> $<% end if %> (<%=PN(FormatNumber(Div0(RDG_a, RDBT) * 100, 1, , , true))%>%) <%if RDG_a < 0 then %>(<%=PN(FormatNumber(RDG_a * MD, 0, , , true))%> $) <% else %> <%=PN(FormatNumber(RDG_a * MD, 0, , , true))%> $<% end if %>
H- Capitalisation <%=PN(FormatNumber(RDH * MD, 0, , , true))%> $ <%=PN(FormatNumber(RDH_a * MD, 0, , , true))%> $
 Avantage-Prop <%=PN(FormatNumber(RDH1 * MD, 0, , , true))%> $
<%=PN(FormatNumber(RDH1 * MD, 0, , , true))%> $
I- PROFIT TOTAL
<%=PN(FormatNumber(RDI * MD, 0, , , true))%> $ <%=PN(FormatNumber(RDI_a * MD, 0, , , true))%> $
RATIO REVENUS / DÉPENSES
<% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 AND 2) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dim dep1,dep2,dep3,dep4 ,dep5,dep6,dep7,dep8,dep9,depG dep1 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true) %> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 3 AND 10) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep2 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true) %> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE t.Rang_Depense = 8 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if depG = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true) if RVD = 111111 then depG = 111111 end if%> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 11 AND 16) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep3 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true)%> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 17 AND 22) AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep4 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true) %> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 23 AND 33) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep5 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true)%> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 34 AND 36)AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep6 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true)%> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE t.Rang_Depense = 37 AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep7 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true) %> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 38 AND 41) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep8 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true)%> <% RS2.Close %> <% RVD =0 RS2.Open " SELECT SUM (d.Valeur_Depense) " & _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE t.Rang_Depense = 42 AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep9 = FormatNumber(Div0(RVD, RDBT) * 100, 1, , , true)%> <% RS2.Close %>
Taxes:
<%=PN3(dep1)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Salaires:
<%=PN3(dep2)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Gestion:
<%=PN(depG)%>%
<%=PN(FormatNumber(RVD * MD, 0, , , true))%>  $
Énergie & télécommunications:
<%=PN3(dep3)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Entretien & achat fournitures:
<%=PN3(dep4)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Permis & frais financiers:
<%=PN3(dep5)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Location équipement:
<%=PN3(dep6)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Alimentation:
<%=PN3(dep7)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Locataire marketing:
<%=PN3(dep8)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
Divers:
<%=PN3(dep9)%>%
<%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
&ids=<%=Session("Userid")%>&mac=<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>"> CLIQUEZ pour demander LE LISTING COMPLET !!!
<% else Response.Write "Affichage impossible, une erreur se produite." end if end if on error resume next RS2.ActiveConnection = nothing set RS2 = nothing EndConnect %>