<%@ Language=VBScript %> <%OPTION EXPLICIT%> <% ConnectRS 'constantes de grandeur CONST PAGE_W = 800 CONST PAGE_H = 900 CONST VPC = 10.7639 CONST VMC = 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,vValG,vValF,vValD, vVal2 'generic variable for multiple uses 'Options d'affichage '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 lignes(str) lignes =0 if not isNull(str) then for i=1 to (Len(str)-2) if(Mid(str,i,2)=vbCrLf) then lignes = lignes +1 end if if(Mid(str,i,4)=">>>>") then lignes = lignes +1 end if next end if if lignes=0 then lignes=-4 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 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 Currencyreduction 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 If ECapital > 0 And EDuree > 0 Then 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 Else CalculerRembM = 0 End If End Function Public function ShowProjection() if RS.Fields("final") <> true then Response.Write "Version préliminaire " else Response.Write "Listing complet" 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 or vVal = 1195988 or vVal = 1333332 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 vVal =0 then PN2 = "" else PN2 = vVal end if end function Public function PN3(vVal) if vVal =0 or vVal= 111111 then PN3 = "N/A" else PN3 = vVal 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 PN5(vVal) if vVal =0 or vVal= 111111 then PN5 = "---" else PN5 = vVal end if end function Public function PS(vVal) if P then PS = "" else PS = vVal end if end function Public function PNul(vVal) if isNull(vVal) then PNul = "?" elseif vVal="0" or vVal="" then PNul = "?" elseif vVal="111111" then PNul = "N/A" else PNul = vVal end if end function Public function PN4(vVal) if isNull(vVal) then PN4 = 111111 else PN4 = vVal end if end function Public function Onze(vVal) if vVal= 111111 then vVal =0 end if end function Public function PNF(vVal) if Len(vVal) >0 then vVal = "-"& vVal end if end function Public function Prct(vVal) if vVal="0" then Prct = "n/a" elseif Len(vVal) =1 then Prct = "_"& vVal else Prct = vVal end if end function Public function deuxChiffre(vVal) if Len(vVal) =1 then deuxChiffre = "0"& vVal else deuxChiffre = vVal end if end function Public function Prct0(vVal) if vVal ="(0%)" then Prct0 = " "& vVal else Prct0 = vVal end if end function Public function PNC(vVal) if vVal= "111111" then PNC = "N/A" else PNC = vVal end if end function Public function PNzero(vVal) if vVal= "" then PNzero = 0 else PNzero = vVal end if end function Public function Annexe(vVal) Annexe = "(??)" 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 end function Public function NullZero(vVal) if isNull(vVal) then NullZero=0 else NullZero = vVal end if end function Public function DifAnne(vVal) if vVal< 1 then DifAnne = "Moins de 1 ans" end if if vVal >= 1 and vVal<5 then DifAnne = "Plus de 1 ans / "& Prct(vVal) end if if vVal>=5 then DifAnne = "Plus de 5 ans / "& Prct(vVal) 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 Public function SautPage(nrLignes,nrPermis,nrPage) if nrLignes + nrPermis > 45 then %> <% for I=2 to ( 36- nrLignes)%>
align="left" <%elseif I mod 3 = 2 then %> align="center" <%else%> align="right" <%end if %> > <%if I mod 3 = 1 then %> ventilation des salaires<%end if %>
 
<%next %> <%ShowProjection()%> / <%ShowDateP()%>
 
VENTILATION DES SALAIRES
#<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
9_<%=nrPage%>
<% nrLignes =0 nrPage = nrPage +1 end if End function %> Listing complet <% Dim mpasse,vID,temps,myDate,ida,isOk,idn isOk=0 temps = Request.QueryString("mtp") mpasse = Request.QueryString("mPasse") ida = Request.QueryString("ida") idn = Request.QueryString("idn") strSQL = " SELECT MAX (ID_Listing) from tblListing" & _ " WHERE motPasse = " & mpasse & ";" RS.Open strSQL, CNRS vID = RS.Fields(0) RS.Close strSQL = " SELECT webActif,ID_TypeAcheteur FROM tblSUBAcheteur " & _ " WHERE Id_Ach = " & ida & ";" RS.Open strSQL, CNRS do while not RS.EOF isOk = isOk+1 if isOk<>0 then if not RS.Fields("webActif") or (RS.Fields("ID_TypeAcheteur")<>1 and RS.Fields("ID_TypeAcheteur")<>2) then isOk=0 else isOk = 1 end if end if RS.MoveNext loop RS.Close if isNull(vID) then vID = Request.QueryString("vID") end if myDate =Year(Date())& deuxChiffre(Month(Date()))& deuxChiffre(Day(Date())) '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,moVacDep2,moVacDep3,moVacDep4," & _ " chSaniPrive_LT, chSaniPrive_LTB, chSaniSemiPrive_L, chSaniSemiPrive_LT, chSaniSemiPrive_LTB," & _ " chSaniPublic_L, chSaniPublic_LT, chSaniPublic_LTB, dgPanneauIncendie, dgGeneratrice,dgAspirateur,dgSonnette," & _ " 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 dim 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 = "$" C=2 if not RS.EOF then if C = 1 then MDF = RS.Fields("moPrix") / 2 else MDF = RS.Fields("moMiseDeFond") end if %> <%Dim resId 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 %> <% if ida<>"" and StrComp(myDate,temps)= -1 and isOk <> 0 then if ida <>"1" then SendEMail EMAIL_FROM, EMAIL_TO, "","Listing complet #" & lettreVF(resId) & resId & lettreOpen(resId) &" ouvert par l'ach. #" & ida & idn & " !!! ", " " end if %>



514 644 4444  

 

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

<%if RS.Fields("Titre")=1 then %>RÉSIDENCE POUR PERSONNES ÂGÉ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 %>

 

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

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

Imprimé :<%=FormatDate(Date(), "dd mmmm yyyy")%>
<% Dim EtudeS, EtudeM,EvalA,EtudeEnv,IncExl, 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 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") IncExl = RS2.Fields("IncExl") RS2.Close%>
 
TABLE DES MATIÈRES
#<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
2
Informations générales
3
 
 
Notes et renseignements
4
 
 
Informations financières
5
États des revenus
5
Ratios des dépenses
5
Dépenses
6
Tableau comparatif des dépenses
7
Ventilation des salaires
8
Ventilation des loyers
9
Service de la dette
10
Ratios complets
11
 
ANNEXES (pour avoir accès : 514-644-4444)
_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) Inclus / Exclus
<%=Annexe(IncExl ) %>
section XII
13) Declaration bâtiment du vendeur
<%=Annexe(DeclVendeur)%>
section XIII
14) Inspection bâtiment
<%=Annexe(InspectB)%>
section XIV
15) Declaration environnementale du vendeur
<%=Annexe(DecEnv)%>
section XV
16) Étude environnementale
<%=Annexe(EtudeEnv) %>
section XVI
17) Acte de prêt hypothécaire
<%=Annexe(PretHyp ) %>
section XVII
18) Acte d'assurance hypothécaire SCHL
<%=Annexe(AssPret)%>
section XVIII
19) Évaluation agréé
<%=Annexe(EvalA)%>
section XIX
20) Étude du marché SCHL
<%=Annexe(EtudeS) %>
section XX
21) Étude du marché privé
<%=Annexe(EtudeM)%>
section XXI
22) Photos de la résidence
<%=Annexe(Photos)%>
section XXII
<% dim RDA, RDB, RDB1, RDC, RDC1, RDD, RDE, RDF,RDF_a, RDG, RDI,RVD,RDB_AR,RDBT,RDC_AR, RDCT, AssHyp,vact,lnp,salProprio dim creExist, vRunning, RDH,RDH_a, RDH1, r5A, r10A,r10A_a, tDette,tDette_a ,vVal2_a,renouv1,renouv2,numRenouv1,numRenouv2,nrIt 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 nrIt=0 lnp=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.Date_Client ASC" RS2.Open strSQL, CNRS do while not RS2.EOF nrIt=nrIt +1 if renouv1 = 0 then renouv1 = RS2.Fields(0) numRenouv1 = RS2.Fields(1) elseif renouv2=0 then renouv2 = RS2.Fields(0) end if RS2.MoveNext loop RS2.Close if(nrIt=2) then renouv2 = 0 end if 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 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 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 strSQL = " SELECT Annuel" & _ " FROM tblSalaires" & _ " WHERE (Titre ='0') and ID_Listing = " & vID RS2.Open strSQL, CNRS salProprio = RS2.Fields(0) RS2.Close %>
 
INFORMATIONS GÉNÉRALES
#<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
3
<% if RS.Fields("Open_Listing") <> 0 then%> <%if RS.Fields("moPrixV") <> 0 then %> <%else %> <%end if %> <%else %> <%end if %>
 
Prix vendeur : <%if RS.Fields("moPrixV")=111111 then %> ($$) Voir courtier <%else %> <%=PN(FormatNumber(RS.Fields("moPrixV") * MD, 0, , , true))%> <%=SD%> <%end if %>
Unités : <%=RS.Fields("chUnite")%>
Unités
: <%=RS.Fields("chUnite")%>
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 : <%=RS.Fields("chUnite")%>
 
<%if RS.Fields("moPrixV") <> 0 then %> <%lnp=1 else lnp=0 end if %>
<%lnp=lnp+1 %> <% 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,Cr1 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 %> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> <%if RS.Fields("Pop_ville")<>0 then %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> <%end if %> <%if RS.Fields("Pop_mrc")<>0 then %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> <%end if %> <%if RS.Fields("TVac_schl")<>0 then %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> <%end if %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt"> <%lnp=lnp+1 %>
DESCRIPTION
 
District
: <%=Str2ProperCase(RS.Fields("Nom_Lieu"))%>
Population ville
: <%=FormatNumber(RS.Fields("Pop_ville")* MD, 0, , , true)%>  
Population MRC
: <%=FormatNumber(RS.Fields("Pop_mrc")* MD, 0, , , true)%>  
Taux vacance SCHL
: <%=RS.Fields("TVac_schl")%>%  
Type d'entreprise
: <%=Str2ProperCase(RS.Fields("Nom_TypeEntreprise"))%>
Bail
: <%=RS.Fields("Nom_TypeBail")%>
Syndicat : <% if RS.Fields("Nom_TypeSyndicat")<> "' '" then %> <%=RS.Fields("Nom_TypeSyndicat") %><%else %>?<% end if%>
Mise en service : <%=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 %>
<% if batiments < 2 then %> <%lnp=lnp+1 %> <%end if %> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> <% Dim batiments,etageBat RS2.Open " SELECT COUNT (Nr_Bat) AS nrB" & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID,CNRS batiments = RS2.Fields(0) RS2.Close if batiments =0 then if RS.Fields("dgNbrEtages")="" then etageBat =1 else etageBat = RS.Fields("dgNbrEtages") end if %> <%if RS.Fields("dgSuperficieSousol")<>0 then %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> <%end if %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%end if end if%> <%lnp=lnp+1 %>
 
Dimensions et superficie
Terrain (dimension) : <%if RS.Fields("dgDimTerrain")= "0" then %> ? <%else %> <%=Str2ProperCase(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 %> <%=Str2ProperCase(RS.Fields("dgDimBatiment"))%><%end if %> 
Bâtiment (sous-sol) : <%=PN(FormatNumber(RS.Fields("dgSuperficieSousol"), 0, , , true))%> m² / <%=PN(FormatNumber(RS.Fields("dgSuperficieSousol") * VPC, 0, , , true))%> pi²
Bâtiment (par niveau/<%=etageBat%>) : <%=PN(FormatNumber((PNzero(RS.Fields("dgSuperficieBatiment"))-PNzero(RS.Fields("dgSuperficieSousol")))/etageBat, 0, , , true))%> m² / <%=PN(FormatNumber(((RS.Fields("dgSuperficieBatiment")-RS.Fields("dgSuperficieSousol"))/etageBat) * VPC, 0, , , true))%> pi²
Bâtiment (sup. totale) : <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment"), 0, , , true))%> m² / <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment") * VPC, 0, , , true))%> pi² <%if RS.Fields("dgSuperficieSousol")<>0 then %>(s.s-inclus) <%end if %>
Espaces unités : <%=PN(FormatNumber(RS.Fields("dgSuperficieLogement"), 0, , , true))%> m² / <%=PN(FormatNumber(RS.Fields("dgSuperficieLogement") * VPC, 0, , , true))%> pi²
Espaces communs : <%if RS.Fields("dgSuperficieBatiment") =0 or RS.Fields("dgSuperficieLogement")=0 then %> ? m² / ? pi² <%else %> <%=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 %> <% if batiments < 2 then %> <%lnp=lnp+1 %> <%end if %> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%> > <%lnp=lnp+1 %>
 
É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 %> <% if batiments < 2 then %> <%lnp=lnp+1 %> <%end if %> <%lnp=lnp+1 %> <%lnp=lnp+1 %>
 
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 %>

<% if batiments < 2 then %> <%lnp=lnp+1 %> <%end if %> <%lnp=lnp+1 %> <%lnp=lnp+1 %>
 
Clientèle

<% 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 "
" lnp=lnp+1 end if Loop RS2.Close %>

<% if batiments < 2 then %> <%lnp=lnp+1 %> <%end if %> <%lnp=lnp+1 %> <%lnp=lnp+1 %> <% if batiments < 2 then %> <%lnp=lnp+1 %> <%end if %>
 
À 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 "
" lnp=lnp+1 end if Loop RS2.Close %>

 
<%Dim maxLp maxLp = 44 %> <% if batiments > 1 then %> <%dim couleur lnp=lnp+1 %> <%lnp=lnp+2 %> 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+2 %> 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 %>
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"))%>
Aspirateur central : <%=ck(RS.Fields("dgAspirateur"))%> Sonnette d’urgence : <%=ck(RS.Fields("dgSonnette"))%>
<%end if %> <% for I=lnp+1 to maxLp %> <%next %>
<%if I mod 3 = 1 then %> description <%end if %>  
  <%lnp=lnp+1 %> <%lnp=lnp+1 %> <% Dim colorB colorB=0 if batiments > 1 then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+3 %> <%end if colorB=colorB+1 %> <% if RS.Fields("DateReno_res") = "111111" then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% else %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% end if colorB=colorB+1%> <% if RS.Fields("DateAgr_res") = "111111" then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% elseif RS.Fields("DateAgr_res") = "" then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% else %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% end if colorB=colorB+1%> <% if batiments > 1 then %> <%lnp=lnp+1 %> <%end if %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% if batiments > 1 then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <%end if %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <%if batiments > 1 then %> <%end if %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% if not isNull(RS.Fields("Chaise")) and RS.Fields("Chaise") <> "Non" then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% colorB=colorB+1 end if %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <%if RS.Fields("EchAir")=0 then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <%end if %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% if RS.Fields("Nom_TypeLogProp")<> "NON" then %> bgcolor="#CCCCCC" <% end if%>> <%lnp=lnp+1 %> <% colorB=colorB+1 %> <% end if%>
BÂTIMENT
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 : N/A
Rénovations : <%if isNull(RS.Fields("DateReno_res")) then %> ? <%else %><%=RS.Fields("DateReno_res")%> <% end if%>
Agrandissement : N/A
Agrandissements : NON
Agrandissement : <%=RS.Fields("DateAgr_res")%>
par BÂTIMENT
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>>Niveaux : <%if batiments > 1 then %> <% nrBat =1 strSQL = " SELECT Titre,Etages,Sup_ss " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>= <%=RS2.Fields("Etages")%><%if RS2.Fields("Sup_ss")>0 then %> + Sous-sol <%end if %> <%if nrBat <> batiments then %> / <%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%> <%lnp=lnp+1 %> <%else %> <%=Str2ProperCase(RS.Fields("dgNbrEtages"))%> <%if RS.Fields("Sousol")=1 or RS.Fields("Sousol")=2 then %> + Sous-sol <%end if end if colorB=colorB+1%>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>> Superficie sous-sol : <%Dim bss,brc,bet bss=0 brc=0 bet=0 nrBat = 1 strSQL = " SELECT Titre,Sup_ss " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF if(RS2.Fields("Sup_ss"))<>111111 then bss=RS2.Fields("Sup_ss") end if %> <%=RS2.Fields("Titre")%>= <%=PN3(bss)%> pi² <%if nrBat <> batiments then %>
<%lnp=lnp+1 %> <%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close colorB=colorB+1%>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>> Superficie(sous-sol inclus) : <% bss=0 brc=0 bet=0 nrBat = 1 strSQL = " SELECT Titre,Sup_ss,Sup_rc,Sup_et,Etages " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF if(RS2.Fields("Sup_ss"))<>111111 then bss=RS2.Fields("Sup_ss") end if if(RS2.Fields("Sup_rc"))<>111111 then brc=RS2.Fields("Sup_rc") end if if(RS2.Fields("Sup_et"))<>111111 then bet=RS2.Fields("Sup_et")*(RS2.Fields("Etages")-1) end if %> <%=RS2.Fields("Titre")%>= <%=PN3(bss+brc +bet) %> pi² <%if nrBat <> batiments then %>
<%lnp=lnp+1 %> <%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close colorB=colorB+1%>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>> Unités : <% 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 %>
<%lnp=lnp+1 %><%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close colorB=colorB+1%>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>> Toiture : <% nrBat =1 strSQL = " SELECT Titre,Toiture " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>=  <%if RS2.Fields("Toiture")=0 then%>pignon <%else %>plate<%end if %> <%if nrBat <> batiments then %>
<%lnp=lnp+1 %><%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close colorB=colorB+1%>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>>Recouvrement extérieur : <%if batiments > 1 then %> <% nrBat =1 strSQL = " SELECT Titre,Recouv " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%=RS2.Fields("Titre")%>=  <%if RS2.Fields("Recouv")=0 then%>?<%end if %> <%if RS2.Fields("Recouv")=1 then %>brique<%end if %> <%if RS2.Fields("Recouv")=2 then %>brique & aluminium<%end if %> <%if RS2.Fields("Recouv")=3 then %>vinyle & agregat<%end if %> <%if RS2.Fields("Recouv")=4 then %>aluminium,agregat et acier<%end if %> <%if RS2.Fields("Recouv")=5 then %>déclin de bois<%end if %> <%if RS2.Fields("Recouv")=6 then%>pierre & vinyle<%end if %> <%if RS2.Fields("Recouv")=7 then %>déclin de vinyle<%end if %> <%if RS2.Fields("Recouv")=8 then %>déclin d'aluminium<%end if %> <%if RS2.Fields("Recouv")=9 then %>brique & vinyle<%end if %> <%if RS2.Fields("Recouv")=10 then %>brique & stuc<%end if %> <%if RS2.Fields("Recouv")=11 then %>brique & canexel<%end if %> <%if RS2.Fields("Recouv")=12 then %>stucco & agregat<%end if %> <%if nrBat <> batiments then %>
<%lnp=lnp+1 %><%end if %> <% RS2.MoveNext nrBat = nrBat +1 loop RS2.Close%> <%else %> <%if isNull(RS.Fields("Nom_TypeRecouvrement")) then %> ? <%else %><%=Str2ProperCase(RS.Fields("Nom_TypeRecouvrement"))%><%end if %> <%end if colorB=colorB+1%>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>> Année construction : 1 then %>class="texte-8pt"<%else %>class="texte-8pt" <%end if %>> <%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 %> <% =RS.Fields("DateCons_res")%> <%else %>Inconnue<%end if %> <%end if colorB=colorB+1 %>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>>Structure : <%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 %>
<%lnp=lnp+1 %><%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 colorB=colorB+1 %>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %>>Ascenseur : <%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 %>?? <%elseif RS2.Fields("Ascenseurs") =111111 then %>N/A <%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 %> ?? <%elseif RS.Fields("dgAscenseur") =111111 then %> N/A <%else %><%=Str2ProperCase(RS.Fields("dgAscenseur"))%><%end if %> <%end if colorB=colorB+1 %>
1 then %>style="border-left-style:solid; border-left-color:#CC0000"<%end if %> > Classe : <%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 colorB=colorB+1%>
Eau chaude : <%if isNull(RS.Fields("Nom_TypeEauChaude")) then %> ? <%else %><%=Str2ProperCase(RS.Fields("Nom_TypeEauChaude"))%> <%end if colorB=colorB+1 %>
Équipement cuisine : <%if isNull(RS.Fields("Nom_EquipCuisine")) then %> ? <%else %><%=Str2ProperCase(RS.Fields("Nom_EquipCuisine"))%> <%end if colorB=colorB+1 %>
Chaise élévatrice : <%=Str2ProperCase(RS.Fields("Chaise"))%>
Chauffage : <%if isNull(RS.Fields("Nom_TypeChauffage")) then %> ? <%else %><%=Str2ProperCase(RS.Fields("Nom_TypeChauffage"))%> <%end if colorB=colorB+1 %>
Cable payé par : <% if RS.Fields("Nom_TypeCable")<> "' '" then %> <%=Str2ProperCase(RS.Fields("Nom_TypeCable"))%> <%else %>? <% end if colorB=colorB+1%>
Fournisseur cable : <% if RS.Fields("Nom_TypeFCable")<> "' '" then %> <%=Str2ProperCase(RS.Fields("Nom_TypeFCable"))%> <%else %>? <% end if colorB=colorB+1%>
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 %> <% colorB=colorB+1 %>
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 %>Bureau & Salle a manger<%end if %> <%if RS.Fields("Climat")=5 then %>Rien<%end if %> <% colorB=colorB+1 %>
Échangeur d'air : <%if RS.Fields("EchAir")=0 then %>Non <%elseif RS.Fields("EchAir")=1 then %>Oui <%else%>?<%end if %> <% colorB=colorB+1 %>
Caméras de surveillance : <%if RS.Fields("CamSurv")=-2 then %>?? <%elseif RS.Fields("CamSurv")=-1 then %>Non <%elseif RS.Fields("CamSurv")=0 then %>Oui <%else%>Oui (<%=RS.Fields("CamSurv")%>) <%end if %> <% colorB=colorB+1 %>
Logement proprietaire : <% if RS.Fields("Nom_TypeLogProp")<> "' '" then %> <%=Str2ProperCase(RS.Fields("Nom_TypeLogProp"))%><%else %>??<% end if%>
<% if batiments < 2 then %> <% lnp=lnp+3 %> <%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+2 %> 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 %>
 
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"))%>
Aspirateur central : <%=ck(RS.Fields("dgAspirateur"))%> Sonnette d’urgence : <%=ck(RS.Fields("dgSonnette"))%>
<%end if %> <% for I=lnp to 47 %> <%next %>
<%if I mod 3 = 1 then %> bâtiment <%end if %>  
<%ShowProjection()%> / <%ShowDateP()%>
<% Dim longueur,clause2,vValG2 vValG = RS.Fields("DescriptionGenerale") vValG2 = RS.Fields("DescriptionGenerale2") vValF = RS.Fields("DescriptionGeneraleF") vValD = RS.Fields("DescriptionGeneraleD") clause2 = RS.Fields("clause") clause2 = Replace(clause2,">>>>", "
  • ") longueur = len(vValG) + len(vValF)+ len(vValD)+ len(clause2) if lignes(vValF)+lignes(vValG)+lignes(vValG2)+lignes(vValD)+lignes(clause2) <= 50 then %>
     
    NOTES ET RENSEIGNEMENTS
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    4
    CLAUSES OFFRE D'ACHAT
       <%= clause2 %>
     
    BÂTIMENT : NOTES ET RENSEIGNEMENTS
    <% if not isnull(vValG) then vValG = Replace(vValG,">>>>", "
  • ") vValG = Replace(vValG,"_", ".") vValG = Replace(vValG,"-", ".") vValG = Replace(vValG, vbCrLf, "
    ") Response.write Replace(vValG,"

    ", "
    ") Response.write Replace(vValG,"

    ", "
    ") Response.write Replace(vValG,"

    ", "
    ") end if %>
  •  
    FINANCE : NOTES ET RENSEIGNEMENTS

    <% if not isnull(vValF) then vValF =Replace(vValF, ">>>>", "

  • ") vValF = Replace(vValF,"_", ".") vValF = Replace(vValF,"-", ".") Response.write Replace(vValF, vbCrLf, "
    ") Response.write Replace(vValF,"

    ", "
    ") Response.write Replace(vValF,"

    ", "
    ") Response.write Replace(vValF,"

    ", "
    ") end if %>
  •  
    DIVERS : NOTES ET RENSEIGNEMENTS

    <% if not isnull(vValD) then vValD = Replace(vValD,">>>>", "

  • ") vValD = Replace(vValD,"_", ".") vValD = Replace(vValD,"-", ".") Response.write Replace(vValD, vbCrLf, "
    ") Response.write Replace(vValD,"

    ", "
    ") Response.write Replace(vValD,"

    ", "
    ") Response.write Replace(vValD,"

    ", "
    ") end if %>
  • <%ShowProjection()%> / <%ShowDateP()%>
    <%else %>
     
    NOTES ET RENSEIGNEMENTS
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    4
    CLAUSE OFFRE D'ACHAT
       <%= clause2 %>
     
    BÂTIMENT : NOTES ET RENSEIGNEMENTS

    <% if not isnull(vValG) then vValG = Replace(vValG,">>>>", "

  • ") vValG = Replace(vValG,"_", ".") vValG = Replace(vValG,"-", ".") vValG = Replace(vValG, vbCrLf, "
    ") Response.write Replace(vValG,"

    ", "
    ") Response.write Replace(vValG,"

    ", "
    ") Response.write Replace(vValG,"

    ", "
    ") Response.write Replace(vValG,"

    ", "
    ") end if %>
  • <%ShowProjection()%> / <%ShowDateP()%>
    <%if lignes(vValF)+lignes(vValD) < 50 then %>
    <%if lignes(vValF)+lignes(vValD) < 20 then %> <%end if %>
     
    NOTES ET RENSEIGNEMENTS
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    4_2
    FINANCE : NOTES ET RENSEIGNEMENTS

    <% if not isnull(vValF) then vValF =Replace(vValF, ">>>>", "

  • ") vValF = Replace(vValF,"_", ".") vValF = Replace(vValF,"-", ".") Response.write Replace(vValF, vbCrLf, "
    ") Response.write Replace(vValF,"

    ", "
    ") Response.write Replace(vValF,"

    ", "
    ") Response.write Replace(vValF,"

    ", "
    ") end if %>
  • DIVERS : NOTES ET RENSEIGNEMENTS

    <% if not isnull(vValD) then vValD = Replace(vValD,">>>>", "

  • ") vValD = Replace(vValD,"_", ".") vValD = Replace(vValD,"-", ".") Response.write Replace(vValD, vbCrLf, "
    ") Response.write Replace(vValD,"

    ", "
    ") Response.write Replace(vValD,"

    ", "
    ") Response.write Replace(vValD,"

    ", "
    ") end if %>
  • <%ShowProjection()%> / <%ShowDateP()%>
    <%else %>
     
    NOTES ET RENSEIGNEMENTS
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    4_2
    FINANCE : NOTES ET RENSEIGNEMENTS
    <% if not isnull(vValF) then vValF =Replace(vValF, ">>>>", "
  • ") vValF = Replace(vValF,"_", ".") vValF = Replace(vValF,"-", ".") Response.write Replace(vValF, vbCrLf, "
    ") Response.write Replace(vValF,"

    ", "
    ") Response.write Replace(vValF,"

    ", "
    ") Response.write Replace(vValF,"

    ", "
    ") end if %>
  • <%if lignes(vValD) < 20 then %> <%end if %>
     
    NOTES ET RENSEIGNEMENTS
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    4_3
     
    DIVERS : NOTES ET RENSEIGNEMENTS
    <% if not isnull(vValD) then vValD = Replace(vValD,">>>>", "
  • ") vValD = Replace(vValD,"_", ".") vValD = Replace(vValD,"-", ".") Response.write Replace(vValD, vbCrLf, "
    ") Response.write Replace(vValD,"

    ", "
    ") Response.write Replace(vValD,"

    ", "
    ") Response.write Replace(vValD,"

    ", "
    ") end if %>
  • <%end if end if%> <% dim RDB_AR2,RDC_AR2,Vacantloyers,PercVL, Occloyers,OccloyersSoins,pic,RDDred,RDG_a,RDI_a,color,depenseC,dep1,dep2,dep3,dep4 ,dep5,dep6,dep7,dep8,dep9,depG,RDCTact,RDEact,RDGact,RDIact,nonRes nonRes=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre ='26') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then %>
     
    ÉTATS DES REVENUS
    #<%=lettreVF(resId) %> <%=resId%><%=lettreOpen(resId) %>
    5
    ÉTAT ACTUEL DES REVENUS ÉTAT MINIMAL DES REVENUS
    <% RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 and ID_Listing = " & vID,CNRS %> <% Occloyers = 12 * RS2.Fields(0) RS2.Close%> <% 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 =RS.Fields("moRevenuBrut") end if if isnull(RDB) then RDB = 0 end if %> <% RDA = RS.Fields("moRevenuActuel") %> <% Vacantloyers = (vact*RDB/100) PercVL = RS.Fields("moTauxPerteVacance") RDB1 = RDB * RS.Fields("moTauxPerteVacance") %> <% RDC = RDB -(vact*RDB/100) %> <% Dim RDC_ARa, RDC_AR2a RDB_AR2 = RS.Fields("AutresRev2") RDB_AR = RS.Fields("AutresRev") RDC_ARa = RDB_AR - RS.Fields("VacAutresRevA") RDC_AR2a = RDB_AR2 - RS.Fields("VacAutresRev2A") %> <% if RDB_AR2 = 111111 then RDB_AR2 = 0 RDC_AR2a =0 end if %> <% if RDB_AR =111111 then RDB_AR = 0 RDC_ARa =0 end if %> <% if RDB_AR2 <> 0 and RDB_AR2 <> 111111 then nonRes=1 %> <% end if %> <% if RDB_AR <> 0 and RDB_AR <> 111111 then nonRes=1 %> <% end if %> <%RDBT = RDB-RDB1 + RDC_ARa + RDC_AR2a %> <% RDC = RDB - Vacantloyers %> <%RDCTact = RDC + RDC_ARa +RDC_AR2a RDCT = RDCTact %> <%if nonRes=1 then %> <%end if %> <% strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre ='26') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS totHeuresRed = RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesRed = RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotRed = RS2.Fields("Annuel") VacTotRed = (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = RS2.Fields("Nombre") RS2.Close if RS.Fields("Ass")<>111 then Ass = SalTot * RS.Fields("Ass") /100 end if Csst = SalTotRed * RS.Fields("Csst") / 100 Fss = SalTotRed *2.7 / 100 Rrq = SalTotRed *4.95 / 100 Ase = SalTotRed *1.4 / 100 Rqap = SalTotRed *0.677 / 100 Cnt = SalTotRed *0.08 / 100 TotTaux = Csst + Fss + Rrq + Ass + Ase + Rqap + Cnt Gt = SalTotRed + TotTaux RDD = vVal RDDred = RDD -Gt %> <% pic=0 RDE = RDCT - RDD RDEact=RDCTact - RDD%>
    A- Revenu brut résidentiel:
    <%=PN(FormatNumber(RDB * MD, 0, , , true))%> $
    Revenu à la signature du mandat
    Mensuel: <%=PN(FormatNumber(RDA * MD, 0, , , true))%> $ /  Annuel: <%=PN(FormatNumber((RDA * 12) * MD, 0, , , true))%> $

     
     
    Vacantes actuels
    <%=PN3(FormatNumber(Div0( vacantes,RS.Fields("chUnite")) * 100, 2, , , true))%>%
    (<%=PN3(FormatNumber((vact*RDB/100) * MD, 0, , , true))%> $)
     
     
    TOTAL BRUT ACTUEL RÉSIDENTIEL
    <%=FormatNumber(RDC * MD, 0, , , true)%> $
     
     
     
     
    Soins-public
    Revenus
    <%=PN(FormatNumber(RDB_AR2 * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRev2A") / RDB_AR2 * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRev2A") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_AR2a * MD, 0, , , true)%> $
     
     
    Commercial
    Revenus
    <%=PN3(FormatNumber(RDB_AR * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRevA") / RDB_AR * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRevA") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_ARa * MD, 0, , , true)%> $
     
     
    TOTAL BRUT ACTUEL
    <%=FormatNumber(RDCTact * MD, 0, , , true)%> $
     
     
    D - Dépenses
    <%=FormatNumber(Div0(RDD, RDCT) * 100, 2, , , true)%>%
    (<%=FormatNumber(RDD * MD, 0, , , true)%> $)
    [*Reduction Salaire]
    <%=FormatNumber(Div0(RDDred, RDCT) * 100, 2, , , true)%>%
    (<%=FormatNumber(RDDred * MD, 0, , , true)%> $)
     
     
    E- REVENU NET
    <%=FormatNumber(Div0(RDE, RDCT) * 100, 2, , , true)%>%
    <%if RDE < 0 then %>(<%=FormatNumber(RDE * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDE * MD, 0, , , true)%> $<% end if %>
    [*Reduction Salaire]
    <%=FormatNumber(Div0(RDE+Gt, RDCT) * 100, 2, , , true)%>%
    <%if RDE+Gt < 0 then %>(<%=FormatNumber(RDE+Gt * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDE+Gt * MD, 0, , , true)%> $<% end if %>
     
     
    <% RDF = vVal2 * 12 RDF_a = vVal2_a * 12 RDG = RDE - RDF RDGact=RDG RDG_a = RDE - RDF_a RDI = RDG + RDH + RDH1 RDIact=RDI RDI_a = RDG_a + RDH_a + RDH1 %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if RS.Fields("dgLogementProprio") then %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %>
    REFINANCEMENT
    ASSUMATION
    F-Service/dette <%=FormatNumber(Div0(RDF, RDCT) * 100, 1, , , true)%>% <%=FormatNumber(RDF * MD, 0, , , true)%> $ <%=FormatNumber(Div0(RDF_a, RDCT) * 100, 1, , , true)%>% <%=FormatNumber(RDF_a * MD, 0, , , true)%> $N/A $
    G-Liquidité <%if RDG < 0 then %>(<%=FormatNumber(Div0(-RDG, RDCT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG, RDCT) * 100, 1, , , true)%>%<% end if %> <%=FormatNumber(RDG * MD, 0, , , true)%> $ <%if RDG_a < 0 then %>(<%=FormatNumber(Div0(-RDG_a, RDCT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG_a, RDCT) * 100, 1, , , true)%>%<% end if %> <%=FormatNumber(RDG_a * MD, 0, , , true)%> $N/A $
    [*Red. Sal.] <%if RDG+Gt < 0 then %>(<%=FormatNumber(Div0(-RDG-Gt, RDCT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG-Gt, RDCT) * 100, 1, , , true)%>%<% end if %> <%=FormatNumber(RDG+Gt * MD, 0, , , true)%> $ <%if RDG_a+Gt < 0 then %>(<%=FormatNumber(Div0(-RDG_a-Gt, RDCT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG_a+Gt, RDCT) * 100, 1, , , true)%>%<% end if %> <%=FormatNumber(RDG_a+Gt * MD, 0, , , true)%> $N/A $
     
    H-Capitalisation <%=FormatNumber(RDH * MD, 0, , , true)%> $<%=FormatNumber(RDH_a * MD, 0, , , true)%> $N/A $
     Avantage-Prop <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    N/A $
    I-Profit total <%=FormatNumber(RDI * MD, 0, , , true)%> $<%=FormatNumber(RDI_a * MD, 0, , , true)%> $N/A $
    [*Red. Sal.] <%=FormatNumber(RDI+Gt * MD, 0, , , true)%> $<%=FormatNumber(RDI_a+Gt * MD, 0, , , true)%> $N/A $
    *après avoir réduit les salaires selon le nombre de locataires actuel.
    J-Intérêt (1ère année) <%=FormatNumber((RDF - RDH) * MD, 0, , , true)%> $<%=FormatNumber((RDF_a - RDH_a) * MD, 0, , , true)%> $N/A $
    <% RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 and ID_Listing = " & vID,CNRS %> <% Occloyers = 12 * RS2.Fields(0) RS2.Close%> <% 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 =RS.Fields("moRevenuBrut") end if if isnull(RDB) then RDB = 0 end if %> <% RDA = RS.Fields("moRevenuActuel") %> <% Vacantloyers = (vact*RDB/100) PercVL = RS.Fields("moTauxPerteVacance") RDB1 = RDB * RS.Fields("moTauxPerteVacance") %> <% RDC = RDB - RDB1 %> <% 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 nonRes=1 %> <% end if %> <% if RDB_AR <> 0 and RDB_AR <> 111111 then nonRes=1 %> <% end if %> <%RDBT = RDB-RDB1 + RDC_AR + RDC_AR2 %> <%if nonRes=1 then %> <%end if %> <% RDD = vVal RDCT = RDBT %> <% pic=0 RDE = RDBT - RDD if RDE < 0 then RDE = 0 end if%>
     
     
    A- Revenu brut résidentiel:
    <%=PN(FormatNumber(RDB * MD, 0, , , true))%> $
    Revenu à la signature du mandat
    Mensuel: <%=PN(FormatNumber(RDA * MD, 0, , , true))%> $ /  Annuel: <%=PN(FormatNumber((RDA * 12) * MD, 0, , , true))%> $

     
     
    Vacantes minimales
    <%=PN3(FormatNumber(PercVL * 100, 2, , , true))%>%
    (<%=PN3(FormatNumber(RDB1 * MD, 0, , , true))%> $)
     
     
    TOTAL BRUT MINIMAL RÉSIDENTIEL
    <%=FormatNumber(RDC * MD, 0, , , true)%> $
     
     
     
     
    Soins-public
    Revenus
    <%=PN(FormatNumber(RDB_AR2 * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRev2") / RDB_AR2 * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRev2") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_AR2 * MD, 0, , , true)%> $
     
     
    Commercial
    Revenus
    <%=PN3(FormatNumber(RDB_AR * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRev") / RDB_AR * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRev") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_AR * MD, 0, , , true)%> $
     
     
    TOTAL BRUT MINIMAL
    <%=FormatNumber(RDBT * MD, 0, , , true)%> $
     
     
    D - Dépenses
    <%=FormatNumber(Div0(RDD, RDBT) * 100, 2, , , true)%>%
    (<%=FormatNumber(RDD * MD, 0, , , true)%> $)
     
     
     
     
    E- REVENU NET
    <%=FormatNumber(Div0(RDE, RDBT) * 100, 2, , , true)%>%
    <%if RDE < 0 then %>(<%=FormatNumber(RDE * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDE * MD, 0, , , true)%> $<% end if %>
     
     
     
     
    <% 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 AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if RS.Fields("dgLogementProprio") then %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %>
    REFINANCEMENT
    ASSUMATION
    F-Service/dette <%=FormatNumber(Div0(RDF, RDBT) * 100, 1, , , true)%>% <%=FormatNumber(RDF * MD, 0, , , true)%> $ <%=FormatNumber(Div0(RDF_a, RDBT) * 100, 1, , , true)%>% <%=FormatNumber(RDF_a * MD, 0, , , true)%> $N/A $
    G-Liquidité <%if RDG < 0 then %>(<%=FormatNumber(Div0(-RDG, RDBT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG, RDBT) * 100, 1, , , true)%>%<% end if %> <%if RDG < 0 then %>(<%=FormatNumber(-RDG * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDG * MD, 0, , , true)%> $<% end if %> <%if RDG_a < 0 then %>(<%=FormatNumber(Div0(-RDG_a, RDBT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG_a, RDBT) * 100, 1, , , true)%>%<% end if %> <%if RDG_a < 0 then %>(<%=FormatNumber(-RDG_a * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDG_a * MD, 0, , , true)%> $<% end if %>N/A $
     
     
    H-Capitalisation <%=FormatNumber(RDH * MD, 0, , , true)%> $<%=FormatNumber(RDH_a * MD, 0, , , true)%> $N/A $
     Avantage-Prop <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    N/A $
    I-Profit total <%=FormatNumber(RDI * MD, 0, , , true)%> $<%=FormatNumber(RDI_a * MD, 0, , , true)%> $N/A $
     
     
    J-Intérêt (1ère année) <%=FormatNumber((RDF - RDH) * MD, 0, , , true)%> $<%=FormatNumber((RDF_a - RDH_a) * MD, 0, , , true)%> $N/A $
    RATIOS DES 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 dep1 = Round(Div0(RVD,RDBT) * 100,0) %> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 or (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then RVD =salProprio 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 7) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RVD + RS2.Fields(0) end if dep2 = Round(Div0(RVD,RDBT) * 100,0) %> <% RS2.Close else dep2=0 %> <% end if dim depSt 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 9 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 depSt = Round(Div0(RVD,RDBT) * 100,0)%> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 and (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then 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 = Round(Div0(RVD,RDBT) * 100,0) if RVD = 111111 then depG = 111111 end if%> <% RS2.Close else dep2=0 end if 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep4 = Round(Div0(RVD,RDBT) * 100,0) %> <% 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 32) 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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 33 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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 = Round(Div0(RVD,RDBT) * 100,0) %> <% 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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 = Round(Div0(RVD,RDBT) * 100,0) %> <% RS2.Close %>
    DÉPENSES / REVENUS (ÉTAT MINIMAL)
    Taxes:
    <%=PN3(dep1)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires:
    <%=PN3(dep2)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires (exclus-voir pg.9):
    0%
    0  $
    Sous-traitance:
    <%=PN3(depSt)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Gestion:
    <%=PN3(depG)%>%
    <%=PN3(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))%>  $
    <% 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 dep1 = Round(Div0(RVD,RDD) * 100,0) %> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 or (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then RVD =salProprio 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 7) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RVD + RS2.Fields(0) end if dep2 = Round(Div0(RVD,RDD) * 100,0) %> <% RS2.Close else dep2=0 %> <% end if 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 9 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 depSt = Round(Div0(RVD,RDD) * 100,0)%> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 and (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then 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 = Round(Div0(RVD,RDD) * 100,0) if RVD = 111111 then depG = 111111 end if%> <% RS2.Close else dep2=0 end if 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep4 = Round(Div0(RVD,RDD) * 100,0) %> <% 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 32) 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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 33 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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 = Round(Div0(RVD,RDD) * 100,0) %> <% 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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 = Round(Div0(RVD,RDD) * 100,0) %> <% RS2.Close %>
    CATÉGORIE DE DÉPENSE / DÉPENSES TOTALES
    Taxes:
    <%=PN3(dep1)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires:
    <%=PN3(dep2)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires (exclus-voir pg.9):
    0%
    0  $
    Sous-traitance:
    <%=PN3(depSt)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Gestion:
    <%=PN3(depG)%>%
    <%=PN3(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))%>  $
    <%ShowProjection()%> / <%ShowDateP()%>
    <%ELSE %>
     
    ÉTATS DES REVENUS
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    5
    ÉTAT ACTUEL DES REVENUS ÉTAT MINIMAL DES REVENUS
    <% RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 and ID_Listing = " & vID,CNRS %> <% Occloyers = 12 * RS2.Fields(0) RS2.Close%> <% 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 =RS.Fields("moRevenuBrut") end if if isnull(RDB) then RDB = 0 end if %> <% RDA = RS.Fields("moRevenuActuel") %> <% Vacantloyers = (vact*RDB/100) PercVL = RS.Fields("moTauxPerteVacance") RDB1 = RDB * RS.Fields("moTauxPerteVacance") %> <% RDC = RDB -(vact*RDB/100) %> <% 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 nonRes=1 %> <% end if %> <% if RDB_AR <> 0 and RDB_AR <> 111111 then nonRes=1 %> <% end if %> <%RDBT = RDB-RDB1 + RDC_AR + RDC_AR2 %> <% RDCT = RDC + RDC_AR +RDC_AR2 RDCTact = RDC %> <%if nonRes=1 then %> <%end if %> <% RDD = vVal %> <% pic=0 RDE = RDCT - RDD RDEact=RDE %>
    A- Revenu brut résidentiel:
    <%=PN(FormatNumber(RDB * MD, 0, , , true))%> $
    Revenu à la signature du mandat
    Mensuel: <%=PN(FormatNumber(RDA * MD, 0, , , true))%> $ /  Annuel: <%=PN(FormatNumber((RDA * 12) * MD, 0, , , true))%> $

     
     
    Vacantes actuels
    <%=PN3(FormatNumber(Div0( vacantes,RS.Fields("chUnite")) * 100, 2, , , true))%>%
    (<%=PN3(FormatNumber((vact*RDB/100) * MD, 0, , , true))%> $)
     
     
    TOTAL BRUT ACTUEL RÉSIDENTIEL
    <%=FormatNumber(RDC * MD, 0, , , true)%> $
     
     
     
     
    Soins-public
    Revenus
    <%=PN(FormatNumber(RDB_AR2 * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRev2") / RDB_AR2 * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRev2") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_AR2 * MD, 0, , , true)%> $
     
     
    Commercial
    Revenus
    <%=PN3(FormatNumber(RDB_AR * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRev") / RDB_AR * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRev") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_AR * MD, 0, , , true)%> $
     
     
    TOTAL BRUT ACTUEL
    <%=FormatNumber(RDCT * MD, 0, , , true)%> $
     
     
    D - Dépenses
    <%=FormatNumber(Div0(RDD, RDCT) * 100, 2, , , true)%>%
    (<%=FormatNumber(RDD * MD, 0, , , true)%> $)
     
     
    E- REVENU NET
    <%=FormatNumber(Div0(RDE, RDCT) * 100, 2, , , true)%>%
    <%if RDE < 0 then %>(<%=FormatNumber(RDE * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDE * MD, 0, , , true)%> $<% end if %>
     
     
    <% RDF = vVal2 * 12 RDF_a = vVal2_a * 12 RDG = RDE - RDF RDGact=RDG RDG_a = RDE - RDF_a RDI = RDG + RDH + RDH1 RDIact=RDI RDI_a = RDG_a + RDH_a + RDH1 %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if RS.Fields("dgLogementProprio") then %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %>
    REFINANCEMENT
    ASSUMATION
    F-Service/dette <%=FormatNumber(Div0(RDF, RDCT) * 100, 1, , , true)%>% <%=FormatNumber(RDF * MD, 0, , , true)%> $ <%=FormatNumber(Div0(RDF_a, RDCT) * 100, 1, , , true)%>% <%=FormatNumber(RDF_a * MD, 0, , , true)%> $N/A $
    G-Liquidité <%if RDG < 0 then %>(<%=FormatNumber(Div0(-RDG, RDCT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG, RDCT) * 100, 1, , , true)%>%<% end if %> <%if RDG < 0 then %>(<%=FormatNumber(-RDG * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDG * MD, 0, , , true)%> $<% end if %> <%if RDG_a < 0 then %>(<%=FormatNumber(Div0(-RDG_a, RDCT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG_a, RDCT) * 100, 1, , , true)%>%<% end if %> <%if RDG_a < 0 then %>(<%=FormatNumber(-RDG_a * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDG_a * MD, 0, , , true)%> $<% end if %>N/A $
    H-Capitalisation <%=FormatNumber(RDH * MD, 0, , , true)%> $<%=FormatNumber(RDH_a * MD, 0, , , true)%> $N/A $
     Avantage-Prop <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    N/A $
    I-Profit total <%=FormatNumber(RDI * MD, 0, , , true)%> $<%=FormatNumber(RDI_a * MD, 0, , , true)%> $N/A $
    J-Intérêt (1ère année) <%=FormatNumber((RDF - RDH) * MD, 0, , , true)%> $<%=FormatNumber((RDF_a - RDH_a) * MD, 0, , , true)%> $N/A $
    <% RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 and ID_Listing = " & vID,CNRS %> <% Occloyers = 12 * RS2.Fields(0) RS2.Close%> <% 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 =RS.Fields("moRevenuBrut") end if if isnull(RDB) then RDB = 0 end if %> <% RDA = RS.Fields("moRevenuActuel") %> <% Vacantloyers = (vact*RDB/100) PercVL = RS.Fields("moTauxPerteVacance") RDB1 = RDB * RS.Fields("moTauxPerteVacance") %> <% RDC = RDB - RDB1 %> <% 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 nonRes=1 %> <% end if %> <% if RDB_AR <> 0 and RDB_AR <> 111111 then nonRes=1 %> <% end if %> <%RDBT = RDB-RDB1 + RDC_AR + RDC_AR2 %> <%if nonRes=1 then %> <%end if %> <% RDD = vVal %> <% pic=0 RDE = RDBT - RDD if RDE < 0 then RDE = 0 end if%>
     
     
    A- Revenu brut résidentiel:
    <%=PN(FormatNumber(RDB * MD, 0, , , true))%> $
    Revenu à la signature du mandat
    Mensuel: <%=PN(FormatNumber(RDA * MD, 0, , , true))%> $ /  Annuel: <%=PN(FormatNumber((RDA * 12) * MD, 0, , , true))%> $

     
     
    Vacantes minimales
    <%=PN3(FormatNumber(PercVL * 100, 2, , , true))%>%
    (<%=PN3(FormatNumber(RDB1 * MD, 0, , , true))%> $)
     
     
    TOTAL BRUT MINIMAL RÉSIDENTIEL
    <%=FormatNumber(RDC * MD, 0, , , true)%> $
     
     
     
     
    Soins-public
    Revenus
    <%=PN(FormatNumber(RDB_AR2 * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRev2") / RDB_AR2 * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRev2") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_AR2 * MD, 0, , , true)%> $
     
     
    Commercial
    Revenus
    <%=PN3(FormatNumber(RDB_AR * MD, 0, , , true))%> $
    Vacantes
    <%=FormatNumber(RS.Fields("VacAutresRev") / RDB_AR * 100, 2, , , true)%>%
    (<%=FormatNumber(RS.Fields("VacAutresRev") * MD, 0, , , true)%> $)
    Brut
    + <%=FormatNumber(RDC_AR * MD, 0, , , true)%> $
     
     
    TOTAL BRUT MINIMAL
    <%=FormatNumber(RDBT * MD, 0, , , true)%> $
     
     
    D - Dépenses
    <%=FormatNumber(Div0(RDD, RDBT) * 100, 2, , , true)%>%
    (<%=FormatNumber(RDD * MD, 0, , , true)%> $)
     
     
    E- REVENU NET
    <%=FormatNumber(Div0(RDE, RDBT) * 100, 2, , , true)%>%
    <%if RDE < 0 then %>(<%=FormatNumber(RDE * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDE * MD, 0, , , true)%> $<% end if %>
     
     
    <% 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 AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if RS.Fields("dgLogementProprio") then %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %> <% if AssHyp <> 0 then %> <%else %> <% end if %>
    REFINANCEMENT
    ASSUMATION
    F-Service/dette <%=FormatNumber(Div0(RDF, RDBT) * 100, 1, , , true)%>% <%=FormatNumber(RDF * MD, 0, , , true)%> $ <%=FormatNumber(Div0(RDF_a, RDBT) * 100, 1, , , true)%>% <%=FormatNumber(RDF_a * MD, 0, , , true)%> $N/A $
    G-Liquidité <%if RDG < 0 then %>(<%=FormatNumber(Div0(-RDG, RDBT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG, RDBT) * 100, 1, , , true)%>%<% end if %> <%if RDG < 0 then %>(<%=FormatNumber(-RDG * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDG * MD, 0, , , true)%> $<% end if %> <%if RDG_a < 0 then %>(<%=FormatNumber(Div0(-RDG_a, RDBT) * 100, 1, , , true)%>%) <% else %> <%=FormatNumber(Div0(RDG_a, RDBT) * 100, 1, , , true)%>%<% end if %> <%if RDG_a < 0 then %>(<%=FormatNumber(-RDG_a * MD, 0, , , true)%> $) <% else %> <%=FormatNumber(RDG_a * MD, 0, , , true)%> $<% end if %>N/A $
    H-Capitalisation <%=FormatNumber(RDH * MD, 0, , , true)%> $<%=FormatNumber(RDH_a * MD, 0, , , true)%> $N/A $
     Avantage-Prop <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    <%=FormatNumber(RDH1 * MD, 0, , , true)%> $
    N/A $
    I-Profit total <%=FormatNumber(RDI * MD, 0, , , true)%> $<%=FormatNumber(RDI_a * MD, 0, , , true)%> $N/A $
    J-Intérêt (1ère année) <%=FormatNumber((RDF - RDH) * MD, 0, , , true)%> $<%=FormatNumber((RDF_a - RDH_a) * MD, 0, , , true)%> $N/A $
    RATIOS DES 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 dep1 = Round(Div0(RVD,RDBT) * 100,0) %> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 or (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then RVD =salProprio 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 7) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RVD + RS2.Fields(0) end if dep2 = Round(Div0(RVD,RDBT) * 100,0) %> <% RS2.Close else dep2=0 %> <% end if 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 9 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 depSt = Round(Div0(RVD,RDBT) * 100,0)%> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 and (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then 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 = Round(Div0(RVD,RDBT) * 100,0) if RVD = 111111 then depG = 111111 end if%> <% RS2.Close else dep2=0 end if 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep4 = Round(Div0(RVD,RDBT) * 100,0) %> <% 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 31) 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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 32 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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 = Round(Div0(RVD,RDBT) * 100,0) %> <% 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 = Round(Div0(RVD,RDBT) * 100,0)%> <% 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 = Round(Div0(RVD,RDBT) * 100,0) %> <% RS2.Close %>
    DÉPENSES / REVENUS (ÉTAT MINIMAL)
    Taxes:
    <%=PN3(dep1)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires:
    <%=PN3(dep2)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires (exclus-voir pg.9):
    0%
    0  $
    Sous-traitance:
    <%=PN3(depSt)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Gestion:
    <%=PN3(depG)%>%
    <%=PN3(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))%>  $
    <% 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 dep1 = Round(Div0(RVD,RDD) * 100,0) %> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 or (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then RVD =salProprio 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 7) AND d.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RVD + RS2.Fields(0) end if dep2 = Round(Div0(RVD,RDD) * 100,0) %> <% RS2.Close else dep2=0 %> <% end if 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 9 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 depSt = Round(Div0(RVD,RDD) * 100,0)%> <% RS2.Close %> <% if RS.Fields("chUnite")>=25 and (RS.Fields("Categ")=11 or RS.Fields("Categ")=5 or RS.Fields("Categ")=6) then 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 = Round(Div0(RVD,RDD) * 100,0) if RVD = 111111 then depG = 111111 end if%> <% RS2.Close else dep2=0 end if 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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.Valeur_Depense<>111111 AND d.ID_Listing = " & vID,CNRS %> <% if not isnull(RS2.Fields(0)) then RVD = RS2.Fields(0) end if dep4 = Round(Div0(RVD,RDD) * 100,0) %> <% 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 31) 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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 32 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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 = Round(Div0(RVD,RDD) * 100,0) %> <% 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 = Round(Div0(RVD,RDD) * 100,0)%> <% 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 = Round(Div0(RVD,RDD) * 100,0) %> <% RS2.Close %>
    CATÉGORIE DE DÉPENSE / DÉPENSES TOTALES
    Taxes:
    <%=PN3(dep1)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires:
    <%=PN3(dep2)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Salaires (exclus-voir pg.9):
    0%
    0  $
    Sous-traitance:
    <%=PN3(depSt)%>%
    <%=PN3(FormatNumber(RVD * MD, 0, , , true))%>  $
    Gestion:
    <%=PN3(depG)%>%
    <%=PN3(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))%>  $
    <%ShowProjection()%> / <%ShowDateP()%>
    <%end if %>
     
    DÉPENSES
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    6
    <% 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 pic = pic + Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% pic=0 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 or ( RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6)) then depenseC=0 end if pic = pic + Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) %> <% if RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 then%> <%else %> <%end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% pic=0 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 pic = pic + Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% pic=0 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 pic = pic + Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% pic=0 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 pic = pic + Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% pic=0 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 pic = pic + Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) %> <% 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 %> <% pic=0 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 pic = pic + Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) %> <% 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
    /pers.
    /unité
    [100pi²]
    bgcolor="#CCCCCC" <% end if%>class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $
      [<%=PN3(FormatNumber(pic* MD, 0, , , true))%>$]
    SALAIRES<% if RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 then%> (exclus-voir pg.9)<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    voir pg.9
    bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $
      [<%=PN3(FormatNumber(pic* MD, 0, , , true))%>$]
    ÉNERGIE & TÉLÉCOMUNICATIONS  
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $
      [<%=PN3(FormatNumber(pic* MD, 0, , , true))%>$]
    ENTRETIEN ET ACHAT PRODUITS  
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $
      [<%=PN3(FormatNumber(pic* MD, 0, , , true))%>$]
    PERMIS & FRAIS FINANCIERS  
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $
      [<%=PN3(FormatNumber(pic* MD, 0, , , true))%>$]
    LOCATION D'ÉQUIPEMENTS
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $
      [<%=PN3(FormatNumber(pic* MD, 0, , , true))%>$]
    ALIMENTATION bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    [<%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $]
           
    LOCATAIRE MARKETING
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%> $
      [<%=PN3(FormatNumber(pic* MD, 0, , , true))%>$]
    DIVERS bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chOccupActuel")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN3(FormatNumber(Div0(depenseC, RS.Fields("chUnite")) * MD, 0, , , true))%> $
    bgcolor="#CCCCCC" <% end if%> class="v5">
    [<%=PN3(FormatNumber(Div0(depenseC*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%>$]
    TOTAUX
    <%=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))%> $
    [<%=PN(FormatNumber(Div0(vVal*100, RS.Fields("dgSuperficieLogement")* VPC) * MD, 0, , , true))%>$]

    Sample chart


    Sample chart
    <%ShowProjection()%> / <%ShowDateP()%>
    <% vVal = RS.Fields("notesDep") if (not isnull(vVal) and len(vVal)>10) then %> <%elseif len(vVal)<10 then %> <% for I=0 to 2 %> <%next %> <% end if %>
     
    TABLEAU COMPARATIF DES DÉPENSES
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    7
    <% RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " 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 %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " 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_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " 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_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " 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_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " 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_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " 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 RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 then%> <%else %> <% end if RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " 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_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " 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_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " 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_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " 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_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% if RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 then%> <%else %> <%end if %> <% RS2.Close%> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 %> <% if RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 then%> <%else %> <%end if %> <% if RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 then%> <%else %> <%end if %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% Dim depGest depGest = 0 strSQL = " SELECT d.Valeur_Depense5" & _ " 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 & _ " ORDER BY t.Rang_Depense ASC" RS2.Open strSQL, CNRS if not isNull(RS2.Fields("Valeur_Depense5"))and RS2.Fields("Valeur_Depense5")<>111111 then depGest = RS2.Fields("Valeur_Depense5") end if RS2.Close %> <% RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " 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 %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " 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_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " 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_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " 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_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " 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_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " 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.Valeur_Depense <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " 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.Valeur_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " 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.Valeur_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " 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.Valeur_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " 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.Valeur_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " 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.Valeur_Depense <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " 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.Valeur_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " 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.Valeur_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " 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.Valeur_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " 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.Valeur_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " 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.Valeur_Depense <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 32 and 36) AND d.Valeur_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 32 and 36) AND d.Valeur_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 32 and 36) AND d.Valeur_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 32 and 36) AND d.Valeur_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% dim vd color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 if RS2.Fields("Valeur_Depense") = 111111 then vd =0 else vd = RS2.Fields("Valeur_Depense") %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " 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 %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " 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_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " 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_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " 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_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " 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_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS %> <% RS2.Close%> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% color = 0 strSQL = " SELECT t.Nom_TypeDepense, d.Valeur_Depense,d.Valeur_Depense2,d.Valeur_Depense3,d.Valeur_Depense4,d.Valeur_Depense5" & _ " 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 if RS2.Fields("Valeur_Depense") = 111111 then vd =0 else vd = RS2.Fields("Valeur_Depense") %> <% color = color +1 RS2.MoveNext loop RS2.Close %> <% dim vRet,vRet2,vRet3,vRet4,vRet5 if ( RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6) then RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 and 42) and t.ID_TypeDepense not in (4,61,59,60,37,26) AND d.Valeur_Depense <> 111111 AND d.ID_Listing = " & vID, CNRS vRet = RS2.Fields("vRet") else RS2.Open " SELECT SUM (d.Valeur_Depense) as vRet"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 and 42) AND d.Valeur_Depense <> 111111 AND d.ID_Listing = " & vID, CNRS vRet = RS2.Fields("vRet") end if %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense2) as vRet2"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 and 42) AND d.Valeur_Depense2 <> 111111 AND d.ID_Listing = " & vID, CNRS vRet2 = RS2.Fields("vRet2") %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense3) as vRet3"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 and 42) AND d.Valeur_Depense3 <> 111111 AND d.ID_Listing = " & vID, CNRS vRet3 = RS2.Fields("vRet3") %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense4) as vRet4"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 and 42) AND d.Valeur_Depense4 <> 111111 AND d.ID_Listing = " & vID, CNRS vRet4 = RS2.Fields("vRet4") %> <% RS2.Close%> <% RS2.Open " SELECT SUM (d.Valeur_Depense5) as vRet5"& _ " FROM tblDepense AS d INNER JOIN tblTypeDepense AS t ON d.ID_TypeDepense = t.ID_TypeDepense" & _ " WHERE (t.Rang_Depense BETWEEN 1 and 42) AND d.Valeur_Depense5 <> 111111 AND d.ID_Listing = " & vID, CNRS vRet5 = RS2.Fields("vRet5") %> <% RS2.Close%> <%Dim vac,vac2,vac3,vac4,vac5 vac = (vact*RDB/100)+ RDB_AR+ RDB_AR2 vac2 = RS.Fields("moVacDep2")+RDB_AR+ RDB_AR2 vac3 = RS.Fields("moVacDep3")+RDB_AR+ RDB_AR2 vac4 = RS.Fields("moVacDep4")+RDB_AR+ RDB_AR2 vac5 = (vact*RDB/100)+RDB_AR+ RDB_AR2 if RS.Fields("moRevenuBrut2")=111111 then vac2 = 111111 end if if RS.Fields("moRevenuBrut3")=111111 then vac3 = 111111 end if if RS.Fields("moRevenuBrut4")=111111 then vac4 = 111111 end if %> <%Dim revN,rev2,rev3,rev4,rev5 revN = RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2-vRet-vac rev2 = RS.Fields("moRevenuBrut2")+RDB_AR+ RDB_AR2-vRet2-vac2 rev3 = RS.Fields("moRevenuBrut3")+RDB_AR+ RDB_AR2-vRet3-vac3 rev4 = RS.Fields("moRevenuBrut4")+RDB_AR+ RDB_AR2-vRet4-vac4 rev5 = RS.Fields("moRevenuBrut5")+RDB_AR+ RDB_AR2-vRet5-vac5 if RS.Fields("moRevenuBrut")=111111 then revN = 111111 end if if RS.Fields("moRevenuBrut2")=111111 then rev2 = 111111 end if if RS.Fields("moRevenuBrut3")=111111 then rev3 = 111111 end if if RS.Fields("moRevenuBrut4")=111111 then rev4 = 111111 end if if RS.Fields("moRevenuBrut5")=111111 then rev5 = 111111 end if %>
     
    <%=RS.Fields("Fiche1")%>
    <%=PNC(RS.Fields("Fiche2"))%>
    <%=PNC(RS.Fields("Fiche3"))%>
    <%=PNC(RS.Fields("Fiche4"))%>
    BAIIA
    TAXES(<%=FormatNumber(Div0(RS2.Fields("vRet"),RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) <%=PN3(FormatNumber(Div0(RS2.Fields("vRet"),1) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet2")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet3")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet4")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet5")) , 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%>class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    SALAIRES(exclus-voir pg.9) exclus-voir pg.9SALAIRES (<%=FormatNumber(Div0(RS2.Fields("vRet"),RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) <%=PN3(FormatNumber(Div0(RS2.Fields("vRet"),1) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet2")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet3")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet4")) , 0, , , true))%>$voir pg.9<%=PN(FormatNumber(PN4(RS2.Fields("vRet5")) , 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%>class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    exclus-voir pg.9
    bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> >
    voir pg.9
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    ÉNERGIE & TÉLÉCOMMUNICATIONS(<%=FormatNumber(Div0(RS2.Fields("vRet"),RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) <%=PN3(FormatNumber(Div0(RS2.Fields("vRet"),1) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet2")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet3")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet4")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet5")) , 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    ENTRETIEN & FOURNITURES(<%=FormatNumber(Div0(RS2.Fields("vRet"),RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) <%=PN3(FormatNumber(Div0(RS2.Fields("vRet"),1) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet2")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet3")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet4")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet5")) , 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    PERMIS & FINANCIER(<%=FormatNumber(Div0(RS2.Fields("vRet"),RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) <%=PN3(FormatNumber(Div0(RS2.Fields("vRet"),1) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet2")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet3")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet4")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet5")) , 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    LOCATION D'ÉQUIPEMENT(<%=FormatNumber(Div0(RS2.Fields("vRet"),RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) <%=PN3(FormatNumber(Div0(RS2.Fields("vRet"),1), 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet2")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet3")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet4")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet5")) , 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    ALIMENTATION(<%=FormatNumber(Div0(vd,RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    LOCATAIRE MARKETING(<%=FormatNumber(Div0(RS2.Fields("vRet"),RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) <%=PN3(FormatNumber(Div0(RS2.Fields("vRet"),1) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet2")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet3")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet4")) , 0, , , true))%>$<%=PN(FormatNumber(PN4(RS2.Fields("vRet5")) , 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v1"><%=RS2.Fields("Nom_TypeDepense")%> bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
    DIVERS(<%=FormatNumber(Div0(vd,RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 2, , , true) %>%) bgcolor="#CCCCCC" <% end if%> >
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense2") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense3") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v4">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense4") * MD, 0, , , true))%>$
    bgcolor="#CCCCCC" <% end if%> class="v5">
    <%=PN(FormatNumber(RS2.Fields("Valeur_Depense5") * MD, 0, , , true))%>$
               
    TOTAUX DEPENSES (<%=FormatNumber(Div0(vRet,RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 1, , , true) %>%) <%=PN(FormatNumber(PN4(vRet) , 0, , , true))%>$<%=PN(FormatNumber(PN4(vRet2), 0, , , true))%>$<%=PN(FormatNumber(PN4(vRet3) , 0, , , true))%>$<%=PN(FormatNumber(PN4(vRet4), 0, , , true))%>$<%=PN(FormatNumber(PN4(vRet5) , 0, , , true))%>$
    REVENU BRUT <%=PN(FormatNumber(RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2 , 0, , , true))%>$ <%=PN3(FormatNumber(RS.Fields("moRevenuBrut2")+RDB_AR+ RDB_AR2 , 0, , , true))%>$ <%=PN3(FormatNumber(RS.Fields("moRevenuBrut3")+RDB_AR+ RDB_AR2 , 0, , , true))%>$ <%=PN3(FormatNumber(RS.Fields("moRevenuBrut4")+RDB_AR+ RDB_AR2 , 0, , , true))%>$ <%=PN3(FormatNumber(RS.Fields("moRevenuBrut5")+RDB_AR+ RDB_AR2 , 0, , , true))%>$
    VACANTES (<%=PN3(FormatNumber(Div0( vacantes,RS.Fields("chUnite")) * 100, 2, , , true))%>%) <%=PN3(FormatNumber((vact*RDB/100) * MD, 0, , , true)) %>$ <%=PN(FormatNumber( PN4(vac2), 0, , , true))%>$ <%=PN(FormatNumber( PN4(vac3), 0, , , true))%>$ <%=PN(FormatNumber( PN4(vac4), 0, , , true))%>$ <%=PN3(FormatNumber((vact*RDB/100) * MD, 0, , , true)) %>$
    REVENU NET (<%=FormatNumber(Div0(revN,RS.Fields("moRevenuBrut")+RDB_AR+ RDB_AR2) * 100, 1, , , true) %>%) <%=PN(FormatNumber(PN4(revN), 0, , , true))%>$ <%=PN(FormatNumber( PN4(rev2), 0, , , true))%>$ <%=PN(FormatNumber( PN4(rev3), 0, , , true))%>$ <%=PN(FormatNumber( PN4(rev4), 0, , , true))%>$ <%=PN(FormatNumber( PN4(rev5), 0, , , true))%>$
    <% vVal = Replace(vVal,">>>>", "
  • ") Response.write Replace(vVal, vbCrLf, "
    ") %>
  • <%if I mod 2 = 1 then %>tableau comparatif <% end if %> 
    <%ShowProjection()%> / <%ShowDateP()%>
    <%if RS.Fields("chUnite")>0 THEN%> <% Dim sal RS2.Open " SELECT COUNT (Nr_crt) AS nrS" & _ " FROM tblSalaires" & _ " WHERE ID_Listing = " & vID,CNRS sal = RS2.Fields(0) RS2.Close%>
     
    VENTILATION DES SALAIRES
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    8
    <%dim nrlignes nrlignes = 0 if RS.Fields("chUnite")<25 and RS.Fields("Categ")<>11 and RS.Fields("Categ")<>5 and RS.Fields("Categ")<>6 then%> <% nrLignes = nrLignes +4 end if %> <%nrLignes = nrLignes +10 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% dim nrSal, SalTot,NrEmp,VacTot,dir,cuis,inf,prep,prepS,prepN,Recept,entr,anim,compt,men,buand,totHeures,totHeuresPaies,nrPage,dateAncien,Autres,formation totHeuresPaies = 0 totHeures = 0 dir =0 cuis =0 inf=0 prep=0 prepS=0 prepN=0 Recept=0 entr=0 anim=0 compt=0 men=0 buand=0 Autres=0 NrEmp =1 SalTot = 0 VacTot =0 dim totHeuresCuis,totHeuresPaiesCuis,VacTotCuis,SalTotCuis totHeuresCuis=0 totHeuresPaiesCuis=0 VacTotCuis=0 SalTotCuis=0 nrPage = 2 strSQL = " SELECT distinct Formation" & _ " FROM tblSalaires" & _ " WHERE ID_Listing = " & vID RS2.Open strSQL, CNRS formation = RS2.Fields(0) RS2.Close strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre = '0' OR Titre = '1' OR Titre = '2' ) and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +4 %> <% dim form1,form2,form3,formTot form3 = (formation mod 100) mod 10 form2 = ((formation mod 100) - form3)/10 form1 = (formation - form2*10 - form3)/100 formTot = "" if form1=1 then formTot = formTot &" MAPAQ;" end if if form2=1 then formTot = formTot & " PDSB-RCR;" end if if form3=1 then formTot = formTot & " PAB;" end if%> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre = '0' OR Titre = '1' OR Titre = '2' ) and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <%if RS2.Fields("Titre") >= 0 then %> <%else %> <% nrLignes = nrLignes +1 end if %> <% color = color +1 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") dir = dir + RS2.Fields("Nombre") if RS2.Fields("Nombre")<>0 then SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 end if nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %> <%end if %>
    Remarques : pour les résidences de 25 unités et moins excluant les CHSLD
    • Les salaires du propriétaire et des employés sont exclus dans le calcul des dépenses
    • Les salaires des employés sont inscrits à titre indicatif
    • C'est à l’acheteur d’inclure les salaires dans son calcul des dépenses
     

    *La colonne (Ancienneté/ans) affiche l’ancienneté des employés selon les normes du travail, soit :
    Durée du service continu Durée des vacances Indemnité Délai entre l’avis et le départ
    Moins d’un an 1 jour par mois complet de service continu sans excéder 2 semaines 4%
    3 mois à un an   4% Une semaine
    1 an à moins de 5 ans 2 semaines continues 4% 2 semaines
    5 à 10 ans 3 semaines continues 6% 4 semaines
    10 ans et plus 3 semaines continues 6% 8 semaines
    *Pour information, le taux du salaire minimum est actuellement de 9,65 $ l'heure (1 MAI 2011)


     

     

    *Ancienneté/ans
    #
    Hr/s
    Taux
    Vac.
    Annuel

    DIRECTION

    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 1 then Response.Write "Directeur" end if if RS2.Fields("Titre") = 2 then Response.Write "Directeur adjoint " end if if RS2.Fields("Titre") = 0 then Response.Write "Propriétaire-gestionnaire " end if %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%elseif RS2.Fields("Titre") <> 0 then%> ?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(FormatNumber(RS2.Fields("Heures") * MD, 2, , , true) * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%if RS2.Fields("Nombre")=0 then %>EXCLUS <%ELSEif RS2.Fields("Nombre")=1 then%>INCLUS <%end if %> (<%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$)
    Total
    <%=FormatNumber(dir * MD, 0, , , true)%>
    <%=FormatNumber(totHeures * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaies * MD, 2, , , true)%>$
    <%=FormatNumber(VacTot * MD, 0, , , true)%>$
    <%=FormatNumber(SalTot * MD, 2, , , true)%>$
    <% dim totHeuresCompt,totHeuresPaiesCompt,VacTotCompt,SalTotCompt totHeuresCompt=0 totHeuresPaiesCompt=0 VacTotCompt=0 SalTotCompt=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '11' AND '12') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '11' AND '12') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresCompt = totHeuresCompt + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesCompt = totHeuresPaiesCompt + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotCompt = SalTotCompt + RS2.Fields("Annuel") VacTotCompt = VacTotCompt + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") compt = compt + RS2.Fields("Nombre") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    COMPTABILITÉ

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 11 then Response.Write "Comptable" end if if RS2.Fields("Titre") = 12 then Response.Write "Commis comptable" end if %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber(compt * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresCompt * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesCompt * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotCompt * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotCompt * MD, 2, , , true)%>$
    <% end if %> <% dim totHeuresInf,totHeuresPaiesInf,VacTotInf,SalTotInf totHeuresInf=0 totHeuresPaiesInf=0 VacTotInf=0 SalTotInf=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '3' AND '4') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '3' AND '4') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% totHeuresInf = totHeuresInf + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesInf = totHeuresPaiesInf + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotInf = SalTotInf + RS2.Fields("Annuel") VacTotInf = VacTotInf + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 color = color +1 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") inf = inf+ RS2.Fields("Nombre") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 if RS.Fields("Csst2")=RS.Fields("Csst") then SalTot = SalTot + RS2.Fields("Annuel") end if RS2.MoveNext loop RS2.Close %>
     

    SOINS INFIRMIERS

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 3 then Response.Write "Licenciée" end if if RS2.Fields("Titre") = 4 then Response.Write "Auxiliaire" end if%> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD,2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber(inf * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresInf * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesInf * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotInf * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotInf * MD, 2, , , true)%>$
    <%end if %> <% dim totHeuresPrep,totHeuresPaiesPrep,VacTotPrep,SalTotPrep,nrPrep totHeuresPrep=0 totHeuresPaiesPrep=0 VacTotPrep=0 SalTotPrep=0 nrPrep=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '7' AND '9') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%if nrSal+nrLignes > 50 then%> <% nrPrep = 49 - nrLignes %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '7' AND '9') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF if color<=nrPrep then %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% totHeuresPrep = totHeuresPrep + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesPrep = totHeuresPaiesPrep + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotPrep = SalTotPrep + RS2.Fields("Annuel") VacTotPrep = VacTotPrep + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 end if color = color +1 RS2.MoveNext loop RS2.Close %>
     

    PRÉPOSÉ

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% %> <% if RS2.Fields("Titre") = 7 then prep = prep + RS2.Fields("Nombre") Response.Write "Préposé-jour" end if if RS2.Fields("Titre") = 8 then prepS = prepS + RS2.Fields("Nombre") Response.Write "Préposé-soir" end if if RS2.Fields("Titre") = 9 then prepN = prepN + RS2.Fields("Nombre") Response.Write "Préposé-nuit" end if %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD,2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    <%=SautPage(nrLignes,nrPrep+1,nrPage) %> <% nrSal = nrSal - nrPrep nrLignes=0%> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '7' AND '9') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF if color > nrPrep then %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% totHeuresPrep = totHeuresPrep + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesPrep = totHeuresPaiesPrep + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotPrep = SalTotPrep + RS2.Fields("Annuel") VacTotPrep = VacTotPrep + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 end if color = color +1 RS2.MoveNext loop RS2.Close %>
     

    PRÉPOSÉ

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% %> <% if RS2.Fields("Titre") = 7 then prep = prep + RS2.Fields("Nombre") Response.Write "Préposé-jour" end if if RS2.Fields("Titre") = 8 then prepS = prepS + RS2.Fields("Nombre") Response.Write "Préposé-soir" end if if RS2.Fields("Titre") = 9 then prepN = prepN + RS2.Fields("Nombre") Response.Write "Préposé-nuit" end if %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD,2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber((prep+prepS+prepN) * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresPrep * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesPrep * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotPrep * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotPrep * MD, 2, , , true)%>$
    <%nrLignes = nrLignes +3 %> <% else%> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '7' AND '9') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresPrep = totHeuresPrep + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesPrep = totHeuresPaiesPrep + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotPrep = SalTotPrep + RS2.Fields("Annuel") VacTotPrep = VacTotPrep + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    PRÉPOSÉ

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% %> <% if RS2.Fields("Titre") = 7 then prep = prep + RS2.Fields("Nombre") Response.Write "Préposé-jour" end if if RS2.Fields("Titre") = 8 then prepS = prepS + RS2.Fields("Nombre") Response.Write "Préposé-soir" end if if RS2.Fields("Titre") = 9 then prepN = prepN + RS2.Fields("Nombre") Response.Write "Préposé-nuit" end if %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD,2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber((prep+prepS+prepN) * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresPrep * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesPrep * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotPrep * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotPrep * MD, 2, , , true)%>$
    <%end if %> <%end if %> <% dim totHeuresRecept,totHeuresPaiesRecept,VacTotRecept,SalTotRecept totHeuresRecept=0 totHeuresPaiesRecept=0 VacTotRecept=0 SalTotRecept=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre ='21') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre ='21') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresRecept = totHeuresRecept + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesRecept = totHeuresPaiesRecept + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotRecept = SalTotRecept + RS2.Fields("Annuel") VacTotRecept = VacTotRecept + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") Recept = Recept + RS2.Fields("Nombre") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    RÉCEPTIONNISTE

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% Response.Write "Réceptionniste" %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber(Recept * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresRecept * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesRecept * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotRecept * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotRecept * MD, 2, , , true)%>$
    <%end if %> <% dim totHeuresEntr,totHeuresPaiesEntr,VacTotEntr,SalTotEntr totHeuresEntr=0 totHeuresPaiesEntr=0 VacTotEntr=0 SalTotEntr=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre ='10' OR Titre = '20') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre ='10' OR Titre = '20') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresEntr = totHeuresEntr + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesEntr = totHeuresPaiesEntr + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotEntr = SalTotEntr + RS2.Fields("Annuel") VacTotEntr = VacTotEntr + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") entr = entr + RS2.Fields("Nombre") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    ENTRETIEN

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 10 then Response.Write "Entretien" end if if RS2.Fields("Titre") = 20 then Response.Write "Surintendant" end if%> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber(entr * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresEntr * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesEntr * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotEntr * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotEntr * MD, 2, , , true)%>$
    <%end if %> <% strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '5' AND '6') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '5' AND '6') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% totHeuresCuis = totHeuresCuis + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesCuis = totHeuresPaiesCuis + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotCuis = SalTotCuis + RS2.Fields("Annuel") VacTotCuis = VacTotCuis + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 color = color +1 cuis = cuis + RS2.Fields("Nombre") NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    CUISINE

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 5 then Response.Write "Cuisinier" end if if RS2.Fields("Titre") = 6 then Response.Write "Aide Cuisinier" end if %> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(FormatNumber(RS2.Fields("Heures") * MD, 2, , , true) * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber(cuis * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresCuis * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesCuis * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotCuis * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotCuis * MD, 2, , , true)%>$
    <%end if %> <% dim totHeuresAnim,totHeuresPaiesAnim,VacTotAnim,SalTotAnim totHeuresAnim=0 totHeuresPaiesAnim=0 VacTotAnim=0 SalTotAnim=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE Titre ='13' and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE Titre ='13' and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresAnim = totHeuresAnim + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesAnim = totHeuresPaiesAnim + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotAnim = SalTotAnim + RS2.Fields("Annuel") VacTotAnim = VacTotAnim + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") anim = anim + RS2.Fields("Nombre") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    ANIMATION

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. Employé bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber(anim * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresAnim * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesAnim * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotAnim * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotAnim * MD, 2, , , true)%>$
    <%end if %> <% dim totHeuresMen,totHeuresPaiesMen,VacTotMen,SalTotMen totHeuresMen=0 totHeuresPaiesMen=0 VacTotMen=0 SalTotMen=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '14' AND '16') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '14' AND '16') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresMen = totHeuresMen + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesMen = totHeuresPaiesMen + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotMen = SalTotMen + RS2.Fields("Annuel") VacTotMen = VacTotMen + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") men = men + RS2.Fields("Nombre") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    MÉNAGE

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 14 then Response.Write "Ménage jour" end if if RS2.Fields("Titre") = 15 then Response.Write "Ménage soir" end if if RS2.Fields("Titre") = 16 then Response.Write "Ménage nuit" end if%> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    Total
    <%=FormatNumber(men * MD, 0, , , true)%>
    <%=FormatNumber(totHeuresMen * MD, 2, , , true)%>
    <%=FormatNumber(totHeuresPaiesMen * MD, 2, , , true)%>$
    <%=FormatNumber(VacTotMen * MD, 0, , , true)%>$
    <%=FormatNumber(SalTotMen * MD, 2, , , true)%>$
    <% end if %> <% dim totHeuresBuand,totHeuresPaiesBuand,VacTotBuand,SalTotBuand totHeuresBuand=0 totHeuresPaiesBuand=0 VacTotBuand=0 SalTotBuand=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '17' AND '19') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '17' AND '19') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresBuand = totHeuresBuand + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesBuand = totHeuresPaiesBuand + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotBuand = SalTotBuand + RS2.Fields("Annuel") VacTotBuand = VacTotBuand + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") buand = buand + RS2.Fields("Nombre") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    BUANDERIE

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 17 then Response.Write "Buanderie jour" end if if RS2.Fields("Titre") = 18 then Response.Write "Buanderie soir" end if if RS2.Fields("Titre") = 19 then Response.Write "Buanderie nuit" end if%> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> colspan = "3" class="texte-8pt">
    Total
    bgcolor="#CCCCCC" <% end if%> width="5%" class="texte-8pt">
    <%=FormatNumber(buand * MD, 0, , , true)%>
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(totHeuresBuand * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(totHeuresPaiesBuand * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(VacTotBuand * MD, 0, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> width="10%" class="texte-8pt">
    <%=FormatNumber(SalTotBuand * MD, 2, , , true)%>$
    <% color = color +1 end if %> <% dim totHeuresAutres,totHeuresPaiesAutres,VacTotAutres,SalTotAutres totHeuresAutres=0 totHeuresPaiesAutres=0 VacTotAutres=0 SalTotAutres=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '22' AND '25') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <%=SautPage(nrLignes,nrSal,nrPage) %> <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre BETWEEN '22' AND '25') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <%dateAncien = RS2.Fields("Date_Ancien") %> <% color = color +1 totHeuresAutres = totHeuresAutres + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesAutres = totHeuresPaiesAutres + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotAutres = SalTotAutres + RS2.Fields("Annuel") VacTotAutres = VacTotAutres + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp +RS2.Fields("Nombre") totHeures = totHeures + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies + RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") Autres = Autres + RS2.Fields("Nombre") SalTot = SalTot + RS2.Fields("Annuel") VacTot = VacTot + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 RS2.MoveNext loop RS2.Close %>
     

    AUTRES SALAIRES

               
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt"><%=FormatNumber(color * MD, 0, , , true)%>. <% if RS2.Fields("Titre") = 22 then Response.Write "Autres #1 (voir notes)" end if if RS2.Fields("Titre") = 23 then Response.Write "Autres #2 (voir notes)" end if if RS2.Fields("Titre") = 24 then Response.Write "Autres #3 (voir notes)" end if if RS2.Fields("Titre") = 25 then Response.Write "Autres #4 (voir notes)" end if%> bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <% if RS2.Fields("Nombre") > 0 and Year(dateAncien) > 1900 then %> <%=DifAnne(Year(Date())-Year(dateAncien)) %> <%else %>?<%end if %>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=RS2.Fields("Nombre")%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    bgcolor="#CCCCCC" <% end if%> class="texte-8pt">
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> colspan = "3" class="texte-8pt">
    Total
    bgcolor="#CCCCCC" <% end if%> width="5%" class="texte-8pt">
    <%=FormatNumber(Autres * MD, 0, , , true)%>
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(totHeuresAutres * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(totHeuresPaiesAutres * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(VacTotAutres * MD, 0, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> width="10%" class="texte-8pt">
    <%=FormatNumber(SalTotAutres * MD, 2, , , true)%>$
    <% color = color +1 end if %>
    bgcolor="#CCCCCC" <% end if%> colspan = "3" class="texte-8pt">
    TOTAL DES SALAIRES
    bgcolor="#CCCCCC" <% end if%> width="5%" class="texte-8pt">
    <%=FormatNumber((NrEmp-1) * MD, 0, , , true)%>
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(totHeures * MD, 2, , , true)%>
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(totHeuresPaies * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> width="10%" class="texte-8pt">
    <%=FormatNumber(VacTot * MD, 0, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-8pt">
    <%=FormatNumber(SalTot * MD, 2, , , true)%>$
    (Vac./inclus)
     
     
    <%nrLignes = nrLignes +5 %> <% vVal = RS.Fields("notesSal") if not isnull(vVal) then nrLignes = nrLignes +8 end if %> <%=SautPage(nrLignes,18,nrPage) %> <% dim Csst,Fss,Rrq,Gt,Ass,Ase,Rqap,TotTaux,Cnt,Csst2 if RS.Fields("Ass")<>111 then Ass = SalTot * RS.Fields("Ass") /100 end if Csst = (SalTot - SalTotInf) * RS.Fields("Csst") / 100 Csst2 = SalTotInf * RS.Fields("Csst2") / 100 Fss = SalTot *2.7 / 100 Rrq = SalTot *4.95 / 100 Ase = SalTot *1.4 / 100 Rqap = SalTot *0.677 / 100 Cnt = SalTot *0.08 / 100 TotTaux = Csst + Fss + Rrq + Ass + Ase + Rqap + Cnt+Csst2 Gt = SalTot + TotTaux %>

    COTISATIONS EMPLOYEUR

    TYPE
    Taux salaire brut
     
    Taux annuel
    1. Commission santé et sécurité du travail
      
     
    <%=FormatNumber(Csst+Csst2 * MD, 2, , , true)%>$
      1.a. CSST - employés réguliers
      <%=FormatNumber(RS.Fields("Csst")* MD, 2, , , true)%>%
    <%=FormatNumber(Csst * MD, 2, , , true)%>$
     
      1.b. CSST - infirmiers
      <%=FormatNumber(RS.Fields("Csst2")* MD, 2, , , true)%>%
    <%=FormatNumber(Csst2 * MD, 2, , , true)%>$
     
    2. Assurance collective
    <%Dim AssCol if RS.Fields("Ass")<>111 then AssCol= RS.Fields("Ass") %>  <%=FormatNumber(RS.Fields("Ass")* MD, 2, , , true)%>% <%else AssCol=0%>  N/A <%end if %>
     
    <%=PN3(FormatNumber(Ass * MD, 2, , , true))%>$
    3. Fonds des services de santé
      2,70%
     
    <%=FormatNumber(Fss * MD, 2, , , true)%>$
    4. Régie des rentes du Québec
      4,95%
     
    <%=FormatNumber(Rrq * MD, 2, , , true)%>$
    5. Assurance emploi
      1,40%
     
    <%=FormatNumber(Ase * MD, 2, , , true)%>$
    6. Régime québécois d'ass. parentale
      0,67%
     
    <%=FormatNumber(Rqap * MD, 2, , , true)%>$
    7. Commission des normes du travail
      0,08%
     
    <%=FormatNumber(Cnt * MD, 2, , , true)%>$
    Total cotisations employeur
    <%=FormatNumber((RS.Fields("Csst")+AssCol+2.70+4.95+1.40+0.67+0.08) * MD, 2, , , true)%> %
     
    <%=FormatNumber(TotTaux * MD, 2, , , true)%>$
    <% if not isnull(vVal) then %> <% end if %> <% if len(formTot)>1 then %> <%end if %> <% dim totHeuresRed,totHeuresPaiesRed,VacTotRed,SalTotRed,Red Red=0 totHeuresRed=0 totHeuresPaiesRed=0 VacTotRed=0 SalTotRed=0 strSQL = " SELECT Count(*) AS nrSal" & _ " FROM tblSalaires" & _ " WHERE (Titre ='26') and ID_Listing = " & vID RS2.Open strSQL, CNRS nrSal = RS2.Fields(0) RS2.Close if nrSal > 0 then nrLignes = nrLignes +3 %> <% if NrEmp<>0 then %> <% end if %>
    GRAND TOTAL
    <%=FormatNumber(Gt * MD, 2, , , true)%>$

    <% vVal = Replace(vVal,">>>>", "

  • ") Response.write Replace(vVal, vbCrLf, "
    ") %>

  • Formation des employés : <%=formTot %>
  • <%=SautPage(nrLignes,20,nrPage) %> <%if nrLignes<>0 then %> Répartition des salaires Sample chart <%else %>

    Répartition des salaires

    Sample chart <%end if %>
     
    <% color = 1 strSQL = " SELECT Titre,Heures,Taux,Annuel,Nombre,Vacance,Date_Ancien " & _ " FROM tblSalaires" & _ " WHERE (Titre ='26') and ID_Listing = " & vID & _ " ORDER BY Titre ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> <% color = color +1 totHeuresRed = totHeuresRed + RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaiesRed = totHeuresPaiesRed+ RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") SalTotRed = SalTotRed + RS2.Fields("Annuel") VacTotRed = VacTotRed + (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 NrEmp = NrEmp - RS2.Fields("Nombre") totHeures = totHeures - RS2.Fields("Nombre")*RS2.Fields("Heures") totHeuresPaies = totHeuresPaies - RS2.Fields("Nombre")*RS2.Fields("Heures")*RS2.Fields("Taux") Red = Red + RS2.Fields("Nombre") SalTot = SalTot - RS2.Fields("Annuel") VacTot = VacTot - (RS2.Fields("Annuel")/(1+ RS2.Fields("Vacance")/100))* RS2.Fields("Vacance")/100 nrLignes = nrLignes +1 red = RS2.Fields("Annuel") RS2.MoveNext loop RS2.Close %>

    #
    Hr/s
    Taux
    Vac.
    Annuel
    À REDUIRE
    <%=RS2.Fields("Nombre")%>
    <%=FormatNumber(RS2.Fields("Heures") * MD, 2, , , true)%>
    <%=FormatNumber(RS2.Fields("Taux") * MD, 2, , , true)%>$
    <%=FormatNumber(RS2.Fields("Vacance") * MD, 0, , , true)%>%
    <%=FormatNumber(RS2.Fields("Annuel") * MD, 2, , , true)%>$
    <% color = color +1 %> <% if RS.Fields("Ass")<>111 then Ass = SalTot * RS.Fields("Ass") /100 end if Csst = red * RS.Fields("Csst") / 100 Fss = red *2.7 / 100 Rrq = red *4.95 / 100 Ase = red *1.4 / 100 Rqap = red *0.677 / 100 Cnt = red *0.08 / 100 TotTaux = Csst + Fss + Rrq + Ass + Ase + Rqap + Cnt %>

    COTISATIONS EMPLOYEUR (À reduire)

    TYPE
    Taux salaire brut
     
    Taux annuel
    1. Commission santé et sécurité du travail
      <%=FormatNumber(RS.Fields("Csst")* MD, 2, , , true)%>%
     
    <%=FormatNumber(Csst * MD, 2, , , true)%>$
    2. Assurance collective
    <% if RS.Fields("Ass")<>111 then AssCol= RS.Fields("Ass") %>  <%=FormatNumber(RS.Fields("Ass")* MD, 2, , , true)%>% <%else AssCol=0%>  N/A <%end if %>
     
    <%=PN3(FormatNumber(Ass * MD, 2, , , true))%>$
    3. Fonds des services de santé
      2,70%
     
    <%=FormatNumber(Fss * MD, 2, , , true)%>$
    4. Régie des rentes du Québec
      4,95%
     
    <%=FormatNumber(Rrq * MD, 2, , , true)%>$
    5. Assurance emploi
      1,40%
     
    <%=FormatNumber(Ase * MD, 2, , , true)%>$
    6. Régime québécois d'ass. parentale
      0,67%
     
    <%=FormatNumber(Rqap * MD, 2, , , true)%>$
    7. Commission des normes du travail
      0,08%
     
    <%=FormatNumber(Cnt * MD, 2, , , true)%>$
    Total cotisations employeur
    <%=FormatNumber((RS.Fields("Csst")+AssCol+2.70+4.95+1.40+0.67+0.08) * MD, 2, , , true)%> %
     
    <%=FormatNumber(TotTaux * MD, 2, , , true)%>$
    GRAND TOTAL À REDUIRE
    <%=FormatNumber(red+TotTaux * MD, 2, , , true)%>$
    bgcolor="#CCCCCC" <% end if%> colspan = "5" class="texte-9pt">
    TOTAL DES SALAIRES APRÈS RÉDUCTION
    bgcolor="#CCCCCC" <% end if%> width="15%" class="texte-9pt">
    <%=FormatNumber(Gt-(red+TotTaux) * MD, 2, , , true)%>$
    <%else %> <% if NrEmp<>0 then %> <% end if %>
     
    <%if nrLignes<>0 then %> Répartition des salaires Sample chart <%else %>

    Répartition des salaires

    Sample chart <%end if %>
    <% end if %>
    <%if nrLignes =0 then%>
    <%end if %>
    <%ShowProjection()%> / <%ShowDateP()%>
    <%else %>
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    8
    Les salaires ne sont pas inclus dans cette rubrique pour les résidences de moins 25 unités.
    Voir page 2 à la rubrique NOTE / RENSEIGNEMENTS / FINANCE
    <%ShowProjection()%> / <%ShowDateP()%>
    <%end if %> <% dim V,OC,T,S, T1, T2, T3,type_ch,type_S,type_Su,type_112,type_212,type_312,type_412,type_512,type_612, vacantes,nrL2,SL,balc %> <% Dim TCh,TSt,TSu,T1cf,T2cf,T3cf,T1cd,T2cd,T3cd,T4cd,T5cd,T1c,T2c,T3c,T4c,T5c,T612,type_112f,type_212f,type_312f,type_112d,type_212d,type_312d,type_412d,type_512d,type_612d T=0 TCh=0 TSt=0 T1cf=0 T2cf=0 T3cf=0 T1c=0 T2c=0 T3c=0 T4c=0 T5c=0 T1cd=0 T2cd=0 T3cd=0 T4cd=0 T5cd=0 T612=0 TSu=0 balc=0 RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE TypeL =0 AND ID_Listing = " & vID,CNRS type_ch = RS2.Fields("nrL") RS2.Close if type_ch <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE TypeL = 0 and Tarif<>111111 and ID_Listing = " & vID,CNRS TCh = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE TypeL =1 AND ID_Listing = " & vID,CNRS type_S = RS2.Fields("nrL") RS2.Close if type_S <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE TypeL = 1 and Tarif<>111111 and ID_Listing = " & vID,CNRS TSt = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE TypeL =2 AND ID_Listing = " & vID,CNRS type_Su = RS2.Fields("nrL") RS2.Close if type_Su <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE TypeL = 1 and Tarif<>111111 and ID_Listing = " & vID,CNRS TSu = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 4 ) AND ID_Listing = " & vID,CNRS type_112 = RS2.Fields("nrL") RS2.Close if type_112 <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 4 ) and Tarif<>111111 and ID_Listing = " & vID,CNRS T1c = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 5 ) AND ID_Listing = " & vID,CNRS type_212 = RS2.Fields("nrL") RS2.Close if type_212 <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 5 ) and Tarif<>111111 and ID_Listing = " & vID,CNRS T2c = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 6 ) AND ID_Listing = " & vID,CNRS type_312 = RS2.Fields("nrL") RS2.Close if type_312 <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 6) and Tarif<>111111 and ID_Listing = " & vID,CNRS T3c = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 7 ) AND ID_Listing = " & vID,CNRS type_412 = RS2.Fields("nrL") RS2.Close if type_412 <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 7) and Tarif<>111111 and ID_Listing = " & vID,CNRS T4c = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 8 ) AND ID_Listing = " & vID,CNRS type_512 = RS2.Fields("nrL") RS2.Close if type_512 <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 8) and Tarif<>111111 and ID_Listing = " & vID,CNRS T5c = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE TypeL = 9 AND ID_Listing = " & vID,CNRS type_612 = RS2.Fields("nrL") RS2.Close if type_612 <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE TypeL = 9 and Tarif<>111111 and ID_Listing = " & vID,CNRS T612 = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 3 ) AND ID_Listing = " & vID,CNRS type_112f = RS2.Fields("nrL") RS2.Close if type_112f <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 3 ) and Tarif<>111111 and ID_Listing = " & vID,CNRS T1cf = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 10 ) AND ID_Listing = " & vID,CNRS type_212f = RS2.Fields("nrL") RS2.Close if type_212f <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 10 ) and Tarif<>111111 and ID_Listing = " & vID,CNRS T2cf = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 11 ) AND ID_Listing = " & vID,CNRS type_312f = RS2.Fields("nrL") RS2.Close if type_312f <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 11) and Tarif<>111111 and ID_Listing = " & vID,CNRS T3cf = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 12 ) AND ID_Listing = " & vID,CNRS type_112d = RS2.Fields("nrL") RS2.Close if type_112d <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 12 ) and Tarif<>111111 and ID_Listing = " & vID,CNRS T1cd = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 13 ) AND ID_Listing = " & vID,CNRS type_212d = RS2.Fields("nrL") RS2.Close if type_212d <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 13 ) and Tarif<>111111 and ID_Listing = " & vID,CNRS T2cd = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 14 ) AND ID_Listing = " & vID,CNRS type_312d = RS2.Fields("nrL") RS2.Close if type_312d <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 14) and Tarif<>111111 and ID_Listing = " & vID,CNRS T3cd = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 15 ) AND ID_Listing = " & vID,CNRS type_412d = RS2.Fields("nrL") RS2.Close if type_412d <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 15) and Tarif<>111111 and ID_Listing = " & vID,CNRS T4cd = NullZero(RS2.Fields(0)) RS2.Close end if RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL = 16 ) AND ID_Listing = " & vID,CNRS type_512d = RS2.Fields("nrL") RS2.Close if type_512d <> 0 then RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE (TypeL = 16) and Tarif<>111111 and ID_Listing = " & vID,CNRS T5cd = NullZero(RS2.Fields(0)) RS2.Close end if %> <% Dim loyers,anne,Un,redd,yel,gren redd=0 yel=0 gren=0 RS2.Open " SELECT COUNT (Number2_Loyers) AS nrL" & _ " FROM tblLoyers" & _ " WHERE ID_Listing = " & vID,CNRS loyers = RS2.Fields(0) RS2.Close%> <%Dim trancheL,crt RS2.Open " SELECT COUNT (Number2_Loyers) AS nrL" & _ " FROM tblLoyers" & _ " WHERE ID_Listing = " & vID,CNRS loyers = RS2.Fields(0) RS2.Close trancheL = loyers / 53 crt = 0 for i = 1 to trancheL %>
     
    <%if i<>1 then%> VENTILATION DES LOYERS (<%=i %>) <%else %>VENTILATION DES LOYERS <%end if %>
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    <%if i<>1 then%> 8_<%=i%> <%else %>8 <%end if %>
    <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <%end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <%END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% Dim Date_Bail,TarifPag,SoinPag,tar,soi,pcPag,hPag,fPag,fus,supFus,nrF,hfPag,pcTot,hfq TarifPag =0 SoinPag=0 pcPag=0 hPag=0 fPag=0 fus=0 supFus=0 hfPag=0 pcTot=0 hfq=0 strSQL = " SELECT Chambre,Date_Loyers,Age,Superficie,Tarif,TypeL,Sanitaire,Vacante,Soin,Number2_Loyers,Bat,Fus,Balcon,HF,Station,Cable,ElMen,Niveau,Autonom,Autonom " & _ " FROM tblLoyers" & _ " WHERE Number2_Loyers > "& crt &" and Number2_Loyers < "& crt+54 &" and ID_Listing = " & vID &_ " ORDER BY Number2_Loyers ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF if RS2.Fields("Tarif")=111111 then tar = 0 else tar = RS2.Fields("Tarif") end if if RS2.Fields("Soin")=111111 then soi = 0 else soi = RS2.Fields("Soin") end if TarifPag =TarifPag + tar SoinPag=SoinPag + soi if RS2.Fields("Superficie")<>111111 then pcPag = pcPag + RS2.Fields("Superficie") end if fus=RS2.Fields("Fus") %> bgcolor="#CCCCCC" <% end if%>> <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <% end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <% END IF %> <%Date_Bail= RS2.Fields("Date_Loyers")%> <%end if %> <% crt = crt +1 RS2.MoveNext loop RS2.Close %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <% end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <%END IF %> <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <% end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% balc=0 END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %>
    #unité
    Niv.
    pi²
    Tarifs
       Soins   
    Total
    Type
    Sanitaire
    Occupation
    Aut.
    H/F
    B.
    Cable
    E.M.
    S.
    Date
    Âge
    <%else %> <%end if %>
    <%=crt + 1 %>)
    <%=RS2.Fields("Bat")%><%=RS2.Fields("Chambre")%> <%if Len(RS2.Fields("Fus")) >0 then%>-<% end if%> <%=fus%>
    <%if RS2.Fields("Niveau")>2 then %> <%=PN(RS2.Fields("Niveau")-2)%><% end if %> <%if RS2.Fields("Niveau")= 2 then Response.Write "R-C" end if%> <%if RS2.Fields("Niveau")= 1 then Response.Write "S-S" end if %> <%if RS2.Fields("Niveau")= 0 then Response.Write "?" end if %>
    <%=PN(RS2.Fields("Superficie"))%> <%if not isNull(fus) and len(fus)>0 then %> <% RS3.Open "SELECT COUNT (Superficie) AS nrF FROM tblLoyers WHERE Chambre = '"& fus &"' and ID_Listing = " & vID,CNRS nrF = RS3.Fields("nrF") RS3.Close if nrF >0 then RS3.Open "SELECT Superficie FROM tblLoyers WHERE Chambre = '"& fus &"' and ID_Listing = " & vID,CNRS supFus= RS3.Fields("Superficie")%> <%if supFus >0 then%>+<%=supFus%> <% end if supFus =0 RS3.Close end if end if%>
    <%=PN(FormatNumber(RS2.Fields("Tarif")* MD, 0, , , true))%>$
    <%=PN(FormatNumber(RS2.Fields("Soin") * MD, 0, , , true))%>$
    <%if RS2.Fields("Tarif")=111111 and RS2.Fields("Soin")=111111 then %>N/A N/A <%else %> <%=PN(FormatNumber((soi+tar)* MD, 0, , , true))%> <%end if %>$
    <% if RS2.Fields("TypeL") = 0 then Response.Write "Chambre" end if if RS2.Fields("TypeL") = 1 then Response.Write "Studio" end if if RS2.Fields("TypeL") = 2 then Response.Write "Suite" end if if RS2.Fields("TypeL") = 3 then Response.Write "1.1/2 fus" end if if RS2.Fields("TypeL") = 4 then Response.Write "1 1/2" end if if RS2.Fields("TypeL") = 5 then Response.Write "2 1/2" end if if RS2.Fields("TypeL") = 6 then Response.Write "3 1/2" end if if RS2.Fields("TypeL") = 7 then Response.Write "4 1/2" end if if RS2.Fields("TypeL") = 8 then Response.Write "5 1/2" end if if RS2.Fields("TypeL") = 9 then Response.Write "6 1/2" end if if RS2.Fields("TypeL") = 10 then Response.Write "2.1/2 fus" end if if RS2.Fields("TypeL") = 11 then Response.Write "2.1/2 fus" end if if RS2.Fields("TypeL") = 12 then Response.Write "1 1/2 D" end if if RS2.Fields("TypeL") = 13 then Response.Write "2 1/2 D" end if if RS2.Fields("TypeL") = 14 then Response.Write "3 1/2 D" end if if RS2.Fields("TypeL") = 15 then Response.Write "4 1/2 D" end if if RS2.Fields("TypeL") = 16 then Response.Write "5 1/2 D" end if if RS2.Fields("TypeL") = 17 then Response.Write "6 1/2 D" end if %>
    <% if RS2.Fields("Sanitaire") = 0 then Response.Write "Lavabo" end if if RS2.Fields("Sanitaire") = 1 then Response.Write "L T" end if if RS2.Fields("Sanitaire") = 2 then Response.Write "L T B/D" end if if RS2.Fields("Sanitaire") = 3 then Response.Write "Lav.S-P" end if if RS2.Fields("Sanitaire") = 4 then Response.Write "LT S-P" end if if RS2.Fields("Sanitaire") = 5 then Response.Write "LTB S-P" end if if RS2.Fields("Sanitaire") = 6 then Response.Write "L(p)/T(s-p)" end if if RS2.Fields("Sanitaire") = 7 then Response.Write "?" end if if RS2.Fields("Sanitaire") = 8 then Response.Write "[RIEN]" end if %>
    <% if RS2.Fields("Vacante") = 0 then Response.Write "Privé" end if if RS2.Fields("Vacante") = 1 then Response.Write "Vacante" end if if RS2.Fields("Vacante") = 2 then Response.Write "Conv." end if if RS2.Fields("Vacante") = 3 then Response.Write "R.I." end if if RS2.Fields("Vacante") = 4 then Response.Write "A.P.ou A.S." end if if RS2.Fields("Vacante") = 5 then Response.Write "R.T.F." end if if RS2.Fields("Vacante") = 6 then Response.Write "Proprio" end if%>
    <% if (RS2.Fields("Vacante")= 1 or RS2.Fields("Vacante") = 6) then%>N/A <%elseif RS2.Fields("Vacante")= 2 then %>  <%else %> <% if RS2.Fields("Autonom") = 0 then Response.Write "?" end if if RS2.Fields("Autonom") = 1 then redd=redd+1 %>
    <% Response.Write "Na"%>
    <% end if if RS2.Fields("Autonom") = 2 then redd=redd+1 %>
    <% Response.Write "Na-z"%>
    <% end if if RS2.Fields("Autonom") = 3 then yel=yel+1 %>
    <% Response.Write "S-m"%>
    <% end if if RS2.Fields("Autonom") = 4 then yel=yel+1 %>
    <% Response.Write "Lp-a"%>
    <% end if if RS2.Fields("Autonom") = 5 then gren=gren+1 %>
    <% Response.Write "Au."%>
    <% end if if RS2.Fields("Autonom") = 6 then Response.Write "inc." end if if RS2.Fields("Autonom") = 7 then Response.Write "N/A" end if%><%end if %>
    <% if (RS2.Fields("Vacante")= 1 or RS2.Fields("Vacante") = 6) then%> N/A <% hfPag = hfPag +1 elseif RS2.Fields("Vacante")= 2 or RS2.Fields("Vacante") = 3 or RS2.Fields("Vacante") = 4 then %>N/A <% hfPag = hfPag +1 else %> <% if RS2.Fields("HF") = 0 then Response.Write "?" hfq = hfq +1 end if if RS2.Fields("HF") = 1 then Response.Write "H." hPag=hPag+1 end if if RS2.Fields("HF") = 2 then Response.Write "F." fPag=fPag+1 end if if RS2.Fields("HF") = 3 then Response.Write "H+F" hPag=hPag+1 fPag=fPag+1 end if if RS2.Fields("HF") = 4 then Response.Write "N/A" hfPag = hfPag +1 end if%><%end if %>
    <% if RS2.Fields("Balcon") = 0 then Response.Write "?" end if if RS2.Fields("Balcon") = 1 then balc= balc+1 Response.Write "OUI" end if if RS2.Fields("Balcon") = 2 then Response.Write "NON" end if%>
    <% if RS2.Fields("Cable") = 0 then Response.Write "?" end if if RS2.Fields("Cable") = 1 then Response.Write "OUI/P" end if if RS2.Fields("Cable") = 2 then Response.Write "OUI/L" end if if RS2.Fields("Cable") = 3 then Response.Write "Partiel/P" end if if RS2.Fields("Cable") = 4 then Response.Write "NON" end if%>
    <% if RS2.Fields("TypeL") = 6 or RS2.Fields("TypeL") = 7 or RS2.Fields("TypeL") = 8 or RS2.Fields("TypeL") = 11 or RS2.Fields("TypeL") = 12 or RS2.Fields("TypeL") = 13 then%> <% if RS2.Fields("ElMen") = 0 then Response.Write "?" end if if RS2.Fields("ElMen") = 1 then Response.Write "NON" end if if RS2.Fields("ElMen") = 2 then Response.Write "L-S" end if if RS2.Fields("ElMen") = 3 then Response.Write "P-R" end if if RS2.Fields("ElMen") = 4 then Response.Write "L-S/P-R" end if%> <%else Response.Write "N/A" end if %>
    <% if RS2.Fields("TypeL") = 6 or RS2.Fields("TypeL") = 7 or RS2.Fields("TypeL") = 8 or RS2.Fields("TypeL") = 11 or RS2.Fields("TypeL") = 12 or RS2.Fields("TypeL") = 13 then%> <% if RS2.Fields("Station") = 0 then Response.Write "?" end if if RS2.Fields("Station") = 1 then Response.Write "NON" end if if RS2.Fields("Station") = 2 then Response.Write "Int." end if if RS2.Fields("Station") = 3 then Response.Write "Ext." end if%> <%else Response.Write "Ext." end if %>
    <% if (RS2.Fields("Vacante")= 1 or RS2.Fields("Vacante") = 6) then%>N/A <%elseif RS2.Fields("Vacante")= 2 or RS2.Fields("Vacante") = 4 or RS2.Fields("Vacante") = 3 then %>N/A <%else %> <%if Year(Date_Bail) > 1900 then anne = Right(Year(Date_Bail),2) %> <%=Day(Date_Bail) %>/<%=Month(Date_Bail) %>/<%=anne %> <%else %>?<%end if %>
    <% if (RS2.Fields("Vacante")= 2) then%>N/A<%else %> <%=RS2.Fields("Age")%><%end if %>
    <%else %> <%end if %>
    #unité
    Niv.
    pi²
    Tarifs
    Soins
    Total
    Type
    Sanitaire
    Occupation
    Aut.
    H/F
    B.
    Cable
    E.M.
    S.
    Date
    #
    <%=crt%>
     
    <%=pcPag%>
    <%=PN3(FormatNumber(TarifPag* MD, 0, , , true))%>$
    <%=PN3(FormatNumber(SoinPag* MD, 0, , , true))%>$
    <%=PN3(FormatNumber((SoinPag+TarifPag)* MD, 0, , , true))%>$
     
     
     
     
    <%=hPag %>h+<%=fPag %>f
    (<%=hfPag%>n/a+<%=hfq%>?)
    <%=balc %>
     
     
     
     
     
    <%else %> <%end if %> Niv. = Niveau , pi² = Superficie (pi²) , B. = Balcon, E.M. = Électroménagers, S = Stationnement, inc. = inconnue H/F Homme+Femme/MAX.
    <%else %> <%end if %> Na=Non-autonome(+2h soins),Na-z=Alzheimer[<%=redd %>], Sm=Santé-mentale,Lp-a=légère perte d'autonom.(1 à 2h soins)[<%=yel %>], Au=autonome(1h soins)[<%=gren %>]
    <%ShowProjection()%> / <%ShowDateP()%>
    <% next pcTot = pcPag %> <%Dim restT restT = loyers - crt if restT>0 then %>
    <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <%else %> <%end if %> <%for I=7 to (50-restT)/2 %> <% next %>
     
    <%if crt/53 <>0 then%> VENTILATION DES LOYERS(<%=crt/53 +1 %>) <%else %>VENTILATION DES LOYERS <%end if %>
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    <%if crt/53 <>0 then%> 9_<%=crt/53 +1 %> <%else %>9 <%end if %>
    <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <%end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <%END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% strSQL = " SELECT Chambre,Date_Loyers,Age,Superficie,Tarif,TypeL,Sanitaire,Vacante,Soin,Number2_Loyers,Bat,Fus,Balcon,HF,Station,Cable,ElMen,Niveau,Autonom " & _ " FROM tblLoyers" & _ " WHERE Number2_Loyers > "& crt &" and ID_Listing = " & vID &_ " ORDER BY Number2_Loyers ASC;" RS2.Open strSQL, CNRS Do While Not RS2.EOF if RS2.Fields("Tarif")=111111 then tar = 0 else tar = RS2.Fields("Tarif") end if if RS2.Fields("Soin")=111111 then soi = 0 else soi = RS2.Fields("Soin") end if TarifPag =TarifPag + tar SoinPag=SoinPag + soi if RS2.Fields("Superficie")<>111111 then pcPag = pcPag + RS2.Fields("Superficie") end if fus=RS2.Fields("Fus") %> bgcolor="#CCCCCC" <% end if%>> <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <% end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <% END IF %> <%Date_Bail= RS2.Fields("Date_Loyers")%> <%end if %> <% crt = crt +1 RS2.MoveNext loop RS2.Close %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <% end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <%END IF %> <%if batiments > 1 or RS.Fields("dgNbrEtages")<>" " then %> <% end if %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <% balc=0 END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 then %> <% END IF %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %> <%if RS.Fields("Categ")=1 OR RS.Fields("Categ")=2 OR RS.Fields("Categ")=4 then %>
    #unité
    Niv.
    pi²
    Tarifs
       Soins   
    Total
    Type
    Sanitaire
    Occupation
    Aut.
    H/F
    B.
    Cable
    E.M.
    S.
    Date
    Âge
    <%else %> <%end if %>
    <%=crt + 1 %>)
    <%=RS2.Fields("Bat")%><%=RS2.Fields("Chambre")%> <%if Len(RS2.Fields("Fus")) >0 then%>-<% end if%> <%=RS2.Fields("Fus")%>
    <%if RS2.Fields("Niveau")>2 then %> <%=PN(RS2.Fields("Niveau")-2)%><% end if %> <%if RS2.Fields("Niveau")= 2 then Response.Write "R-C" end if%> <%if RS2.Fields("Niveau")= 1 then Response.Write "S-S" end if %> <%if RS2.Fields("Niveau")= 0 then Response.Write "?" end if %>
    <%=PN(RS2.Fields("Superficie"))%> <%if not isNull(fus) and len(fus)>0 then %> <% RS3.Open "SELECT COUNT (Superficie) AS nrF FROM tblLoyers WHERE Chambre = '"& fus &"' and ID_Listing = " & vID,CNRS nrF = RS3.Fields("nrF") RS3.Close if nrF >0 then RS3.Open "SELECT Superficie FROM tblLoyers WHERE Chambre = '"& fus &"' and ID_Listing = " & vID,CNRS supFus= RS3.Fields("Superficie")%> <%if supFus >0 then%>+<%=supFus%> <% end if supFus =0 RS3.Close end if end if%>
    <%=PN(FormatNumber(RS2.Fields("Tarif")* MD, 0, , , true))%>$
    <%=PN(FormatNumber(RS2.Fields("Soin") * MD, 0, , , true))%>$
    <%if RS2.Fields("Tarif")=111111 and RS2.Fields("Soin")=111111 then %>N/A <%else %> <%=PN(FormatNumber((soi+tar)* MD, 0, , , true))%> <%end if %> $
    <% if RS2.Fields("TypeL") = 0 then Response.Write "Chambre" end if if RS2.Fields("TypeL") = 1 then Response.Write "Studio" end if if RS2.Fields("TypeL") = 2 then Response.Write "Suite" end if if RS2.Fields("TypeL") = 3 then Response.Write "1.1/2 fus" end if if RS2.Fields("TypeL") = 4 then Response.Write "1 1/2" end if if RS2.Fields("TypeL") = 5 then Response.Write "2 1/2" end if if RS2.Fields("TypeL") = 6 then Response.Write "3 1/2" end if if RS2.Fields("TypeL") = 7 then Response.Write "4 1/2" end if if RS2.Fields("TypeL") = 8 then Response.Write "5 1/2" end if if RS2.Fields("TypeL") = 9 then Response.Write "6 1/2" end if if RS2.Fields("TypeL") = 10 then Response.Write "2.1/2 fus" end if if RS2.Fields("TypeL") = 11 then Response.Write "2.1/2 fus" end if if RS2.Fields("TypeL") = 12 then Response.Write "1 1/2 D" end if if RS2.Fields("TypeL") = 13 then Response.Write "2 1/2 D" end if if RS2.Fields("TypeL") = 14 then Response.Write "3 1/2 D" end if if RS2.Fields("TypeL") = 15 then Response.Write "4 1/2 D" end if if RS2.Fields("TypeL") = 16 then Response.Write "5 1/2 D" end if if RS2.Fields("TypeL") = 17 then Response.Write "6 1/2 D" end if %>
    <% if RS2.Fields("Sanitaire") = 0 then Response.Write "Lavabo" end if if RS2.Fields("Sanitaire") = 1 then Response.Write "L T" end if if RS2.Fields("Sanitaire") = 2 then Response.Write "L T B/D" end if if RS2.Fields("Sanitaire") = 3 then Response.Write "Lav.S-P" end if if RS2.Fields("Sanitaire") = 4 then Response.Write "LT S-P" end if if RS2.Fields("Sanitaire") = 5 then Response.Write "LTB S-P" end if if RS2.Fields("Sanitaire") = 6 then Response.Write "L(p)/T(s-p)" end if if RS2.Fields("Sanitaire") = 7 then Response.Write "?" end if if RS2.Fields("Sanitaire") = 8 then Response.Write "[RIEN]" end if %>
    <% if RS2.Fields("Vacante") = 0 then Response.Write "Privé" end if if RS2.Fields("Vacante") = 1 then Response.Write "Vacante" end if if RS2.Fields("Vacante") = 2 then Response.Write "Conv." end if if RS2.Fields("Vacante") = 3 then Response.Write "R.I." end if if RS2.Fields("Vacante") = 4 then Response.Write "A.P.ou A.S." end if if RS2.Fields("Vacante") = 5 then Response.Write "R.T.F." end if if RS2.Fields("Vacante") = 6 then Response.Write "Proprio" end if%>
    <% if (RS2.Fields("Vacante")= 1 or RS2.Fields("Vacante") = 6) then%>N/A <%elseif RS2.Fields("Vacante")= 2 then %>  <%else %> <% if RS2.Fields("Autonom") = 0 then Response.Write "?" end if if RS2.Fields("Autonom") = 1 then redd=redd+1 %>
    <% Response.Write "Na"%>
    <% end if if RS2.Fields("Autonom") = 2 then redd=redd+1 %>
    <% Response.Write "Na-z"%>
    <% end if if RS2.Fields("Autonom") = 3 then yel=yel+1 %>
    <% Response.Write "S-m"%>
    <% end if if RS2.Fields("Autonom") = 4 then yel=yel+1 %>
    <% Response.Write "Lp-a"%>
    <% end if if RS2.Fields("Autonom") = 5 then gren=gren+1 %>
    <% Response.Write "Au."%>
    <% end if if RS2.Fields("Autonom") = 6 then Response.Write "inc." end if if RS2.Fields("Autonom") = 7 then Response.Write "N/A" end if%><%end if %>
    <% if (RS2.Fields("Vacante")= 1 or RS2.Fields("Vacante") = 6) then%> N/A <% hfPag = hfPag +1 elseif RS2.Fields("Vacante")= 2 or RS2.Fields("Vacante") = 3 or RS2.Fields("Vacante") = 4 then %>N/A <% hfPag = hfPag +1 else %> <% if RS2.Fields("HF") = 0 then Response.Write "?" hfq = hfq +1 end if if RS2.Fields("HF") = 1 then Response.Write "H." hPag=hPag+1 end if if RS2.Fields("HF") = 2 then Response.Write "F." fPag=fPag+1 end if if RS2.Fields("HF") = 3 then Response.Write "H+F" hPag=hPag+1 fPag=fPag+1 end if if RS2.Fields("HF") = 4 then Response.Write "N/A" hfPag = hfPag +1 end if%><%end if %>
    <% if RS2.Fields("Balcon") = 0 then Response.Write "?" end if if RS2.Fields("Balcon") = 1 then balc= balc+1 Response.Write "OUI" end if if RS2.Fields("Balcon") = 2 then Response.Write "NON" end if%>
    <% if RS2.Fields("Cable") = 0 then Response.Write "?" end if if RS2.Fields("Cable") = 1 then Response.Write "OUI/P" end if if RS2.Fields("Cable") = 2 then Response.Write "OUI/L" end if if RS2.Fields("Cable") = 3 then Response.Write "Partiel/P" end if if RS2.Fields("Cable") = 4 then Response.Write "NON" end if%>
    <% if RS2.Fields("TypeL") = 6 or RS2.Fields("TypeL") = 7 or RS2.Fields("TypeL") = 8 or RS2.Fields("TypeL") = 11 or RS2.Fields("TypeL") = 12 or RS2.Fields("TypeL") = 13 then%> <% if RS2.Fields("ElMen") = 0 then Response.Write "?" end if if RS2.Fields("ElMen") = 1 then Response.Write "NON" end if if RS2.Fields("ElMen") = 2 then Response.Write "L-S" end if if RS2.Fields("ElMen") = 3 then Response.Write "P-R" end if if RS2.Fields("ElMen") = 4 then Response.Write "L-S/P-R" end if%> <%else Response.Write "N/A" end if %>
    <% if RS2.Fields("TypeL") = 6 or RS2.Fields("TypeL") = 7 or RS2.Fields("TypeL") = 8 or RS2.Fields("TypeL") = 11 or RS2.Fields("TypeL") = 12 or RS2.Fields("TypeL") = 13 then%> <% if RS2.Fields("Station") = 0 then Response.Write "?" end if if RS2.Fields("Station") = 1 then Response.Write "NON" end if if RS2.Fields("Station") = 2 then Response.Write "Int." end if if RS2.Fields("Station") = 3 then Response.Write "Ext." end if%> <%else Response.Write "Ext." end if %>
    <% if (RS2.Fields("Vacante")= 1 or RS2.Fields("Vacante") = 6 ) then%>N/A <%elseif RS2.Fields("Vacante")= 2 or RS2.Fields("Vacante") = 4 then %>  <%else %> <% if Year(Date_Bail) > 1900 then anne = Right(Year(Date_Bail),2)%> <%=Day(Date_Bail) %>/<%=Month(Date_Bail) %>/<%=anne %> <%else %>?<%end if %>
    <% if (RS2.Fields("Vacante")= 2) then%>N/A<%else %> <%=RS2.Fields("Age")%><%end if %>
    <%else %> <%end if %>
    #unité
    Niv.
    pi²
    Tarifs
    Soins
    Total
    Type
    Sanitaire
    Occupation
    Aut.
    H/F
    B.
    Cable
    E.M.
    S.
    Date
    #
    <%=loyers%>
     
    <%=pcPag%>
    <%=PN3(FormatNumber(TarifPag* MD, 0, , , true))%>$
    <%=PN3(FormatNumber(SoinPag* MD, 0, , , true))%>$
    <%=PN3(FormatNumber((SoinPag+TarifPag)* MD, 0, , , true))%>$
     
     
     
     
    <%=hPag %>h+<%=fPag %>f
    (<%=hfPag%>n/a+<%=hfq%>?)
    <%=balc %>
     
     
     
     
     
    <%else %> <%end if %> Niv. = Niveau , pi² = Superficie (pi²) , B. = Balcon, E.M. = Électroménagers, S = Stationnement, inc. = inconnue H/F = Homme+Femme/MAX.
    <%else %> <%end if %> Na=Non-autonome(+2h soins),Na-z=Alzheimer[<%=redd %>], Sm=Santé-mentale,Lp-a=légère perte d'autonom.(1 à 2h soins)[<%=yel %>], Au=autonome(1h soins)[<%=gren %>]
     
     
     
     
     
     
    colspan="18"<%else %> colspan="14" <%end if %><%if I mod 3 = 1 then %> align="left" <%elseif I mod 3 = 2 then %> align="center" <%else%> align="right" <%end if %> > <%if I mod 3 = 1 then %>ventilation des loyers<%end if %>
     
    <%ShowProjection()%> / <%ShowDateP()%>
    <% pcTot =pcTot+ pcPag end if %>
     
    VENTILATION DES LOYERS (statistiques)
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    9_<%=Int(crt/53) +2 %>
    OCCUPATION
    <% RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 AND ID_Listing = " & vID,CNRS if not isNull(RS2.Fields(0)) and RS2.Fields(0)<> 0 then T = RS2.Fields(0) end if RS2.Close for J=1 to 7 %> <% Dim Ix RS2.Open " SELECT COUNT (Chambre) AS nrOc" & _ " FROM tblLoyers as l INNER JOIN tblLoyersOrdre AS v ON l.Vacante = v.Id_vacante" & _ " WHERE ordre = " & J & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrOc") <> 0 then RS3.Open " SELECT Id_vacante" & _ " FROM tblLoyersOrdre" & _ " WHERE ordre = " & J,CNRS Ix= RS3.Fields("Id_vacante") RS3.Close %> <% RS2.Close %> <% RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 AND Vacante = " & I & " AND ID_Listing = " & vID,CNRS %> <%if not isNull(RS2.Fields(0)) then T1 = RS2.Fields(0) else T1=0 end if %> <% RS2.Close %> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TchS " & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 AND TypeL =0 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL " & _ " FROM tblLoyers" & _ " WHERE (TypeL =3 or TypeL =10 or TypeL =11 ) AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% RS3.Open " SELECT SUM (Tarif) AS TchS " & _ " FROM tblLoyers" & _ " WHERE (TypeL =3 or TypeL =10 or TypeL =11 ) AND Vacante = " & Ix & " and Tarif<>111111 AND ID_Listing = " & vID,CNRS %> <%RS3.Close end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =1 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =4 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =5 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =6 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% RS3.Open " SELECT SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =6 AND Vacante = " & Ix & " and Tarif<>111111 AND ID_Listing = " & vID,CNRS %> <%if RS3.Fields("TS") then %> <%else %> <%end if %> <% RS3.Close end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =7 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =8 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =9 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% RS3.Open " SELECT SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =9 AND Vacante = " & Ix & " and Tarif<>111111 AND ID_Listing = " & vID,CNRS %> <%if RS3.Fields("TS") then %> <%else %> <%end if %> <% RS3.Close end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =12 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =13 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =14 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% RS3.Open " SELECT SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =6 AND Vacante = " & Ix & " and Tarif<>111111 AND ID_Listing = " & vID,CNRS %> <%if RS3.Fields("TS") then %> <%else %> <%end if %> <% RS3.Close end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =15 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =16 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =17 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% RS3.Open " SELECT SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =9 AND Vacante = " & Ix & " and Tarif<>111111 AND ID_Listing = " & vID,CNRS %> <%if RS3.Fields("TS") then %> <%else %> <%end if %> <% RS3.Close end if RS2.Close%> <%RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Tarif) AS TS " & _ " FROM tblLoyers" & _ " WHERE TypeL =2 AND Vacante = " & Ix & " AND ID_Listing = " & vID,CNRS if RS2.Fields("nrL") > 0 then %> <% end if end if RS2.Close %> <% next %> <% RS2.Open " SELECT SUM (Soin)" & _ " FROM tblLoyers" & _ " WHERE Soin<>111111 and ID_Listing = " & vID,CNRS %> <% S =RS2.Fields(0) if not IsNull(S)then %> <% else S=0 end if RS2.Close %> <% dim loues RS2.Open " SELECT COUNT (Chambre) AS nrOc" & _ " FROM tblLoyers" & _ " WHERE Vacante <>1 AND Vacante <>6 AND ID_Listing = " & vID,CNRS loues= RS2.Fields("nrOc") RS2.Close %> <% if batiments > 1 then Dim nomBat(2), nrBats nrBats =0 strSQL = " SELECT Titre " & _ " FROM tblBatiment" & _ " WHERE ID_Listing = " & vID & " order by Titre ASC;" RS2.Open strSQL, CNRS do while not RS2.EOF nomBat(nrBats) = RS2.Fields(0) nrBats = nrBats +1 RS2.MoveNext loop RS2.Close %> <% for I = 0 to Batiments-1 RS2.Open " SELECT Count (TypeL)" & _ " FROM tblLoyers" & _ " WHERE Bat = '" & nomBat(I) & "' and ID_Listing = " & vID,CNRS %> 1 then %> bgcolor="#CCCCCC" <% end if%>> <% RS2.Close RS2.Open " SELECT SUM (Tarif)" & _ " FROM tblLoyers" & _ " WHERE Tarif<>111111 and Bat = '" & nomBat(I) & "' and ID_Listing = " & vID,CNRS %> <%RS2.Close RS2.Open " SELECT SUM (Soin)" & _ " FROM tblLoyers" & _ " WHERE Soin<>111111 and Bat = '" & nomBat(I) & "' and ID_Listing = " & vID,CNRS if not isNull(RS2.Fields(0)) or RS2.Fields(0)<>0 then %> 1 then %> bgcolor="#CCCCCC" <% end if%>> <% end if RS2.Close next %> 1 then %> bgcolor="#CCCCCC" <% end if%>> <% end if %>
    Unités Revenu
    <%if Ix=0 then %>PRIVÉS<%end if %> <%if Ix=1 then %>VACANTES<%end if %> <%if Ix=2 then %> Conv.<%end if %> <%if Ix=3 then %> R.I.<%end if %> <%if Ix=4 then %> A.P. ou A.S.<%end if %> <%if Ix=5 then %> R.T.F.<%end if %> <%if Ix=6 then %>PROPRIO <%end if %> <%if Ix=2 then %>   
    <%end if %><%=Prct(RS2.Fields("nrOc"))%> 
     <%if Ix=2 then %> 
    <%end if %><%=Prct(FormatNumber(T1 * MD, 0, , , true))%> <%=SD%>
    <%if I=2 then %> 
    <%end if %>  (<%if vacantes = 0 then%>_<%end if %> <%=Prct(FormatNumber(Div0(T1,T) * 100, 0, , , true))%>%)
       <%Response.Write "Chambre"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber( RS2.Fields("TchS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TchS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "Avant-Fus."%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS3.Fields("TchS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS3.Fields("TchS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "Après-Fus."%> <%=Prct(RS2.Fields("nrL")/2)%>
       <%Response.Write "studio"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "1.1/2"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "2.1/2"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "3.1/2"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS3.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS3.Fields("TS"),T) * 100, 0, , , true))%>%)
    N/A
       <%Response.Write "4.1/2"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "5.1/2"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(T5c * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(T5c/T * 100, 0, , , true))%>%)
       <%Response.Write "6.1/2"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS3.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS3.Fields("TS"),T) * 100, 0, , , true))%>%)
    N/A
       <%Response.Write "1.1/2 D"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "2.1/2 D"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "3.1/2 D"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS3.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS3.Fields("TS"),T) * 100, 0, , , true))%>%)
    N/A
       <%Response.Write "4.1/2 D"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
       <%Response.Write "5.1/2 D"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(T5c * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(T5c/T * 100, 0, , , true))%>%)
       <%Response.Write "6.1/2 D"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS3.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS3.Fields("TS"),T) * 100, 0, , , true))%>%)
    N/A
       <% Response.Write "Suite"%> <%=Prct(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("TS") * MD, 0, , , true)%> <%=SD%> (<%=Prct(FormatNumber(Div0(RS2.Fields("TS"),T) * 100, 0, , , true))%>%)
    <%Response.Write " Revenu Soins"%>     <%=FormatNumber(S * MD, 0, , , true)%> <%=SD%>  
    <%Response.Write "Total unités loués"%> <%=PN(loues)%>         
    <%Response.Write "TOTAL"%> <%=PN(RS.Fields("chUnite"))%>     <%=FormatNumber(T+S * MD, 0, , , true)%> <%=SD%>   
    <%Response.Write "Total annuel"%>      <%=FormatNumber((T+S)*12 * MD, 0, , , true)%> <%=SD%>   
    OCCUPATION PAR BÂTIMENT
    Bâtiment Unités   Revenu mensuel  
     <%=nomBat(I)%> <%=RS2.Fields(0) %>  <%if isNull(RS2.Fields(0)) then %>? <%else %> <%=FormatNumber(RS2.Fields(0) * MD, 0, , , true)%> <%=SD%> <%end if %>   
        Soins : <%if isNull(RS2.Fields(0)) then %>n/a <%else %> <%=FormatNumber(RS2.Fields(0) * MD, 0, , , true)%> <%=SD%> <%end if %>  
    <%Response.Write "TOTAL"%> <%=PN(RS.Fields("chUnite"))%>    <%=FormatNumber(T+S * MD, 0, , , true)%> <%=SD%>   
     
    MOYENNE DES LOYERS
     
    Revenu brut (A) mensuel /
    total unités
    Total brut actuel mensuel /
    unités occupés
    Revenu brut (A) /
    superficie unités
    Revenu brut (A) /
    superficie bâtiment
    <%=PN(FormatNumber(Div0(RS.Fields("moRevenuBrut"), RS.Fields("chUnite")) / 12 * MD, 2, , , true))%> <%=SD%> <%=PN(FormatNumber(Div0(RDCTact, RS.Fields("chSimple")) / 12 * MD, 2, , , true))%> <%=SD%> <%=PN(FormatNumber(Div0(RS.Fields("moRevenuBrut"), RS.Fields("dgSuperficieLogement") * VPC) / 12 * MD, 2, , , true))%> <%=SD%> / pi² <%=PN(FormatNumber(Div0(RS.Fields("moRevenuBrut"), RS.Fields("dgSuperficieBatiment") * VPC) / 12 * MD, 2, , , true))%> <%=SD%> / pi²
    <% if batiments < 2 then %> <%end if %> <% nrL2=0 vVal = 0 vVal2 = 0 SL=0 %> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE TypeL =0 and Superficie<>111111 AND ID_Listing = " & vID,CNRS type_ch = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =3 or TypeL =10 or TypeL =11 ) AND ID_Listing = " & vID,CNRS fus = RS2.Fields("nrL")/2 if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) %> <% end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =1 ) AND ID_Listing = " & vID,CNRS type_S = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =2 ) AND ID_Listing = " & vID,CNRS type_Su = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =4) AND ID_Listing = " & vID,CNRS type_112 = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =5) AND ID_Listing = " & vID,CNRS type_212 = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =6) AND ID_Listing = " & vID,CNRS type_312 = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =7) AND ID_Listing = " & vID,CNRS type_412 = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =8) AND ID_Listing = " & vID,CNRS type_512 = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =12) AND ID_Listing = " & vID,CNRS type_112d = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =13) AND ID_Listing = " & vID,CNRS type_212d = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =14) AND ID_Listing = " & vID,CNRS type_312d = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =15) AND ID_Listing = " & vID,CNRS type_412d = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close%> <% RS2.Open " SELECT COUNT (TypeL) AS nrL,SUM (Superficie) AS SL" & _ " FROM tblLoyers" & _ " WHERE (TypeL =16) AND ID_Listing = " & vID,CNRS type_512d = RS2.Fields("nrL") if RS2.Fields("nrL") > 0 then %> bgcolor="#CCCCCC" <% end if%>> <% SL=SL + RS2.Fields("SL") nrL2 = nrL2 +1 vVal2 = vVal2 + RS2.Fields("nrL") vVal = vVal + (RS2.Fields("SL")/RS2.Fields("nrL")) couleur = couleur +1 end if RS2.Close %> bgcolor="#CCCCCC" <% end if%>> <%if fus >0 then %> <%end if %> <% dim suploy suploy =0 strSQL = " SELECT Count(*) AS no FROM tblSuperficieLoyers" & _ " WHERE ID_Listing = " & vID &_ ";" RS2.Open strSQL, CNRS suploy = RS2.Fields("no") RS2.Close if suploy > 0 then %> <% strSQL = " SELECT Minim,Maxim,Unit " & _ " FROM tblSuperficieLoyers" & _ " WHERE ID_Listing = " & vID &_ ";" RS2.Open strSQL, CNRS Do While Not RS2.EOF %> bgcolor="#CCCCCC" <% end if%>> <% couleur = couleur +1 RS2.MoveNext loop RS2.Close end if %>
     
    SUPERFICIE
     
    Unité Nb. (%) Sup.(pi²)Moyenne Sup.(pi²)Totale
    <%Response.Write "Chambres"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "Fusionnées (avant fusion)"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "Fusionnées (après fusion)"%>     <%=PN(fus)%> <%=FormatNumber(fus/(RS.Fields("chUnite")-fus) * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/fus, 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "Studio"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "Suite"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "1.1/2"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "2.1/2"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "3.1/2"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "4.1/2"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "5.1/2"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "1.1/2 D"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "2.1/2 D"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "3.1/2 D"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "4.1/2 D"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    <%Response.Write "5.1/2 D"%> <%=PN(RS2.Fields("nrL"))%> <%=FormatNumber(RS2.Fields("nrL")/RS.Fields("chUnite") * 100, 0, , , true)%>% <%=PN(FormatNumber(RS2.Fields("SL")/RS2.Fields("nrL"), 0, , , true))%> <%=PN(FormatNumber(RS2.Fields("SL"), 0, , , true))%>
    Total <%if fus >0 then %>avant fusion<%end if %> : <%=PN(vVal2)%> 100% <%=PN(FormatNumber(Div0(pcPag,vVal2), 0, , , true))%> <%=PN(FormatNumber(pcPag, 0, , , true))%>
    Total après fusion:     <%=PN(vVal2-fus)%> 100% <%=PN(FormatNumber(Div0(vVal,nrL2), 0, , , true))%> <%=PN(FormatNumber(pcPag, 0, , , true))%>
     
    Groupe de superficies (pi² / m²) Unités
    <%=RS2.Fields("Minim") %> - <%=RS2.Fields("Maxim") %> pi² <%=FormatNumber(RS2.Fields("Minim")*(1/ VPC), 0, , , true) %> - <%=FormatNumber(RS2.Fields("Maxim")* (1/ VPC), 0, , , true) %> m² <%=RS2.Fields("Unit") %>
    <% Dim tSp tSp=0 strSQL = " SELECT Count(*) AS noM FROM tblLoyers WHERE sanitaire=6 and ID_Listing = " & vID &_ ";" RS2.Open strSQL, CNRS if not isnull(RS2.Fields(0)) then tSp = RS2.Fields(0) end if RS2.Close if batiments < 2 then %> <%end if %>

    SANITAIRES
     
    Unité Lavabos Toilettes L+Toilettes L+T+Bains
    <%Response.Write "Privés"%> <%=PN5(RS.Fields("chSaniPrive_L"))%><%if RS.Fields("chSaniPrive_L")<>0 then %> (<%=FormatNumber(RS.Fields("chSaniPrive_L")/RS.Fields("chUnite") * 100, 0, , , true)%>%) <%end if %> --- <%=PN5(RS.Fields("chSaniPrive_LT"))%><%if RS.Fields("chSaniPrive_LT")<>0 then %> (<%=FormatNumber(RS.Fields("chSaniPrive_LT")/RS.Fields("chUnite") * 100, 0, , , true)%>%) <%end if %> <%=PN5(RS.Fields("chSaniPrive_LTB"))%><%if RS.Fields("chSaniPrive_LTB")<>0 then %> (<%=FormatNumber(RS.Fields("chSaniPrive_LTB")/RS.Fields("chUnite") * 100, 0, , , true)%>%) <%end if %>
    <%Response.Write "Semi-p."%> <%=PN5(RS.Fields("chSaniSemiPrive_L"))%><%if RS.Fields("chSaniSemiPrive_L")<>0 then %> (<%=FormatNumber(RS.Fields("chSaniSemiPrive_L")/RS.Fields("chUnite") * 100, 0, , , true)%>%) <%end if %> <%=PN5(tSp) %> <%=PN5(RS.Fields("chSaniSemiPrive_LT"))%><%if RS.Fields("chSaniSemiPrive_LT")<>0 then %> (<%=FormatNumber(RS.Fields("chSaniSemiPrive_LT")/RS.Fields("chUnite") * 100, 0, , , true)%>%) <%end if %> <%=PN5(RS.Fields("chSaniSemiPrive_LTB"))%><%if RS.Fields("chSaniSemiPrive_LTB")<>0 then %> (<%=FormatNumber(RS.Fields("chSaniSemiPrive_LTB")/RS.Fields("chUnite") * 100, 0, , , true)%>%) <%end if %>
    <%Response.Write "Public"%> <%=PN5(RS.Fields("chSaniPublic_L"))%> --- <%=PN5(RS.Fields("chSaniPublic_LT"))%> <%=PN5(RS.Fields("chSaniPublic_LTB"))%>
    <% if batiments < 2 then %> <%end if %> <% Dim Se,Sa,NomB,NomEt,TSe,Tsa,j TSe=0 TSa=0 crt=0 for i = 0 to 17 Se="" Sa="" NomB ="" if i=0 then NomEt = "?" elseif i=2 then NomEt = "R-C/1" elseif i=3 then NomEt = "1/R-C" elseif i=1 then NomEt = "S-S" else NomEt = i-2 end if if batiments >1 then for j = 0 to Batiments-1 RS2.Open " SELECT COUNT (TypeL) AS nrU " & _ " FROM tblLoyers" & _ " WHERE Niveau = "& i &" and Bat = '"& nomBat(j) &"' and ID_Listing = " & vID, CNRS Un = RS2.Fields("nrU") if RS2.Fields("nrU") > 0 then strSQL = " SELECT Nr_SalleEau,Nr_Salons,NomBat " & _ " FROM tblEtages" & _ " WHERE NomEtage = '"& NomEt &"' and NomBat = '"& nomBat(j) &"' and ID_Listing = " & vID RS3.Open strSQL, CNRS if not RS3.EOF then Se = RS3.Fields("Nr_SalleEau") Sa = RS3.Fields("Nr_Salons") if Se<>111111 then TSe = TSe + RS3.Fields("Nr_SalleEau") end if if Sa<>111111 then TSa = TSa + RS3.Fields("Nr_Salons") end if end if RS3.Close %> <%if Un <>0 then %> bgcolor="#CCCCCC" <% end if%>> <%crt=crt+1 %> <%end if %> <% else RS3.Open " SELECT Nr_SalleEau,Nr_Salons,NomBat " & _ " FROM tblEtages" & _ " WHERE NomEtage = '"& NomEt &"' and NomBat = '"& nomBat(j) &"' and ID_Listing = " & vID,CNRS if not RS3.EOF then Se = RS3.Fields("Nr_SalleEau") Sa = RS3.Fields("Nr_Salons") if Se<>111111 then TSe = TSe + RS3.Fields("Nr_SalleEau") end if if Sa<>111111 then TSa = TSa + RS3.Fields("Nr_Salons") end if %> bgcolor="#CCCCCC" <% end if%>> <%crt=crt+1 %> <% end if RS3.Close end if RS2.Close next else RS2.Open " SELECT COUNT (TypeL) AS nrU " & _ " FROM tblLoyers" & _ " WHERE Niveau = "& i &" and ID_Listing = " & vID,CNRS Un = RS2.Fields("nrU") if RS2.Fields("nrU") > 0 then RS3.Open " SELECT Nr_SalleEau,Nr_Salons,NomBat " & _ " FROM tblEtages" & _ " WHERE NomEtage = '"& NomEt &"' and ID_Listing = " & vID,CNRS if not RS3.EOF then Se = RS3.Fields("Nr_SalleEau") Sa = RS3.Fields("Nr_Salons") NomB = RS3.Fields("NomBat") if Se<>111111 then TSe = TSe + RS3.Fields("Nr_SalleEau") end if if Sa<>111111 then TSa = TSa + RS3.Fields("Nr_Salons") end if end if %> <%if Un <>0 then %> bgcolor="#CCCCCC" <% end if%>> <%crt=crt+1 %> <%end if %> <% RS3.Close end if RS2.Close end if next%> bgcolor="#CCCCCC" <% end if%>>

    NIVEAUX
     
    Niveau Unités Salle d'eau (bain public) Salons
    (<%=nomBat(j)%>) <%=NomEt%> <%=Un %> <%=PNul(Se)%> <%=PNul(Sa)%>
    (<%=nomBat(j)%>) <%=NomEt%> <%=Un %> <%=PNul(Se)%> <%=PNul(Sa)%>
    <%=NomEt%> <%=Un %> <%=PNul(Se)%> <%=PNul(Sa)%>
    Total <%=RS.Fields("chUnite") %> <%=PNul(TSe)%> <%=PNul(TSa)%>
    <%ShowProjection()%> / <%ShowDateP()%>
     
    VENTILATION DES LOYERS (statistiques 2)
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    9_<%=Int(crt/53) +3 %>
    Répartition des revenus par unité
      
      
    Sample chart
      
      
    Répartition des unités
      
      
    <%if fus >0 then %> ,<%=RS.Fields("chUnite")%>& chxt=x,y&chxl=1:|Total avant fusion(<%=RS.Fields("chUnite")%>)|Total apres fusion(<%=RS.Fields("chUnite")-(type_112f+ type_212f+ type_312f)/2%>)|5.1/2(<%=type_512%>)|4.1/2(<%=type_412%>)|3.1/2(<%=type_312%>)|2.1/2(<%=type_212%>)|1.1/2(<%=type_112%>)|Suites(<%=type_Su%>)|Studios(<%=type_S%>)|Apres fusion(<%=(type_112f+ type_212f+ type_312f)/2%>)|Avant fusion(<%=(type_112f+ type_212f+ type_312f)%>)|Chambres(<%=type_ch%>)& chxr=0,0,<%=RS.Fields("chUnite")%>&chds=0,<%=RS.Fields("chUnite")%>& chco=00FF00|00FF00|B0C4DE|00FF00|00FF00|00FF00|00FF00|00FF00|00FF00|B0C4DE|0000FF& chbh=a& chg=8.33,0,5,5" alt="Sample chart" /> <%else %> & chxt=x,y&chxl=1:|Total (<%=RS.Fields("chUnite")%>)|5.1/2(<%=type_512%>)|4.1/2(<%=type_412%>)|3.1/2(<%=type_312%>)|2.1/2(<%=type_212%>)|1.1/2(<%=type_112%>)|Suites(<%=type_Su%>)|Studios(<%=type_S%>)|Chambres(<%=type_ch%>)& chxr=0,0,<%=RS.Fields("chUnite")%>&chds=0,<%=RS.Fields("chUnite")%>& chco=00FF00|00FF00|00FF00|00FF00|00FF00|00FF00|00FF00|0000FF& chbh=a& chg=8.33,0,5,5" alt="Sample chart" /> <%end if %>
      
      
    TYPES D'HEBERGEMENT - LEXIQUE
      
      
    CHAMBRE - avec ou sans sanitaires, superficie moins de 300 pi², avec ou sans balcon.
    STUDIO - comme < CHAMBRE > superficie supérieure à 300 pi², avec salle de bain complète.
    SUITE - comme < STUDIO > superficie pouvant atteindre 500 pi², incluant un mini-salon à même l'espace-chambre.
    APPT-1 ½ - comme < SUITE > incluant en plus une mini-cuisinette à même l'espace-chambre.
    APPT-2 ½ - comme < 1 ½ > l'espace chambre et la mini-cuisinette sont séparés par un mur ou demi-mur, 400 pi² à 500 pi², .
    APPT-3 ½ - comme < 2 ½ > chambre fermée, incluant cuisine, salle de bain complète,salon, 500 pi² à 650 pi².
    APPT-4 ½ - comme < 3 ½ > deux chambres fermées, 625 pi² à 1000 pi².
    APPT-5 ½ - comme < 4 ½ > trois chambres fermées, 750 pi² et plus.
    <%ShowProjection()%> / <%ShowDateP()%>
    <% dim Typ1 strSQL = " SELECT Count(*) AS typeUn" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 1" RS2.Open strSQL, CNRS Typ1 = RS2.Fields(0) RS2.Close %> <% if Typ1 > 0 then %>
    <%for I=0 to 5 %> <%next %> <% end if %>
     
    SERVICE DE LA DETTE
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    10
    <% dim r1,r2,d1,hypo0,hypo1,hypCre,amm_0,amm_1,taux_0,taux_1,Clause,PretInit,Prime,Souscr,Date_Echeance,ID_Cre,schlR,compteTitre,estSc,ref,mf hypo1=0 hypCre=0 amm_1=0 taux_1=0 r1=0 r2=0 schlR =0 Clause=0 PretInit=0 Prime=0 compteTitre = 0 Souscr= 0 Date_Echeance = 0 ID_Cre =0 estSc=0 ref =0 strSQL = " SELECT c.ID_TypePret,c.ID_TypeCreancier, t.Nom_TypeCreancier, c.Hypotheque_cre, c.Hypotheque2_cre, c.TauxInteret_cre, c.Mensuel_cre, c.Echeance_cre,"& _ " c.Amortissement_cre,c.Date_Client,c.Schl,c.Clause,c.PretInit,c.Prime,c.Date_Echeance,c.Souscr" & _ " FROM tblCreancier AS c LEFT JOIN tblTypeCreancier AS t ON c.ID_TypeCreancier = t.ID_TypeCreancier" & _ " WHERE c.ID_Listing = " & vID &" AND c.ID_TypePret = 1 " RS2.Open strSQL, CNRS do while not RS2.EOF schlR = RS2.Fields("Schl") if(RS2.Fields("Schl")) then estSc=1 end if hypCre = RS2.Fields("Hypotheque_cre") Prime=RS2.Fields("Prime") Souscr= RS2.Fields("Souscr") ID_Cre = RS2.Fields("ID_TypeCreancier") if ID_Cre <>20 then mf=RS.Fields("moPrix")-Balance -hypCre else mf=RS.Fields("moPrix") -hypCre end if %> <% if (compteTitre = 0 or schlR or ref =20) then if mf<>0 then %> <%end if %> <% if estSc=1 then%><%end if %> <% end if %> bgcolor="#CCCCCC" <%end if %> > <% if schlR then hypCre = hypCre +Prime+Souscr%> <%elseif estSc=1 then%> <%end if %> <% if ID_Cre<>20 then r1 = r1 + CalculerRemb(hypCre, RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 5) r2 = r2 + CalculerRemb(hypCre, RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10) d1 = RS2.Fields("Date_Client") hypo0=hypo1 hypo1=RS2.Fields("Hypotheque2_cre") amm_0=amm_1 amm_1 = RS2.Fields("Amortissement_cre") taux_0=taux_1 taux_1= RS2.Fields("TauxInteret_cre") end if compteTitre = compteTitre +1 ref = RS2.Fields("ID_TypeCreancier") %> <% RS2.MoveNext loop RS2.Close %> <%strSQL = " SELECT s.Clause,s.PretInit,s.Prime,s.Date_Echeance,s.Souscr,s.Hypotheque_cre" & _ " FROM tblCreancier AS s " & _ " WHERE s.ID_Listing = " & vID &" AND s.ID_TypePret = 1 and Schl = 1" RS2.Open strSQL, CNRS do while not RS2.EOF hypCre = RS2.Fields("Hypotheque_cre") Clause=RS2.Fields("Clause") PretInit=RS2.Fields("PretInit") Prime=RS2.Fields("Prime") Souscr= RS2.Fields("Souscr") Date_Echeance = RS2.Fields("Date_Echeance") %> <%RS2.MoveNext loop RS2.Close %> <% dim Typ2 strSQL = " SELECT Count(*) AS type2" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 2" RS2.Open strSQL, CNRS Typ2 = RS2.Fields(0) RS2.Close if Typ2 > 0 then %> <% dim r12,r22,hyp0,hyp1,amm0,amm1,taux0,taux1 r12=0 r22=0 hyp1=0 amm1=0 taux1=0 strSQL = " SELECT c.ID_TypePret, t.Nom_TypeCreancier, c.Hypotheque_cre, c.Hypotheque2_cre, c.TauxInteret_cre, c.Mensuel_cre, c.Echeance_cre, c.Amortissement_cre" & _ " FROM tblCreancier AS c LEFT JOIN tblTypeCreancier AS t ON c.ID_TypeCreancier = t.ID_TypeCreancier" & _ " WHERE c.ID_Listing = " & vID &" AND c.ID_TypePret = 2" RS2.Open strSQL, CNRS do while not RS2.EOF %> <% if estSc=1 then%> <%end if %> <% r12 = r12 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 5) r22 = r22 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10) hyp0=hyp1 hyp1=RS2.Fields("Hypotheque2_cre") amm0=amm1 amm1 = RS2.Fields("Amortissement_cre") taux0=taux1 taux1= RS2.Fields("TauxInteret_cre") RS2.MoveNext loop RS2.Close end if %>
    REFINANCEMENT HYPOTHÉCAIRE
     
    Mise de fonds : <%=FormatNumber(mf * MD, 0, , , true)%> <%=SD%> <%if ID_Cre=20 then %>(REFUSÉ) <%end if %>
    colspan="11"<%else %>colspan="10"<%end if %> bgcolor="#CCCCCC" class="texte-7pt1"> 
    Créancier
    HYP-initiale
    Ratio
    Hyp./Prix
    HYP + SCHL
      Intérêt  
      Mensualité  
      Annuel  
    Ans
    Rembour
    /5ans
      
    sement
      /10ans
    colspan="11"<%else %>colspan="10"<%end if %> bgcolor="#CCCCCC" class="texte-9pt">
    <%=RS2.Fields("Nom_TypeCreancier")%>
    <%=FormatNumber(RS2.Fields("Hypotheque_cre") * MD, 0, , , true)%> $
    <%=PN(FormatNumber(Div0(RS2.Fields("Hypotheque_cre" )*100,RS.Fields("moPrix")), 2, , , true))%>%
    *<%=FormatNumber(hypCre * MD, 0, , , true)%> $
    NON
    <%=FormatNumber(RS2.Fields("TauxInteret_cre") * 100, 2, , , true)%>%
    <%=FormatNumber(RS2.Fields("Mensuel_cre") * MD, 0, , , true)%> $
    <%=FormatNumber((RS2.Fields("Mensuel_cre")*12) * MD, 0, , , true)%> $
    <%=RS2.Fields("Echeance_cre")%>
    <%=RS2.Fields("Amortissement_cre")%>
      <%=FormatNumber(CalculerRemb(hypCre, RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 5)* MD, 0, , , true)%> $  
      <%=FormatNumber(CalculerRemb(hypCre, RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10)* MD, 0, , , true)%> $  
    colspan="11"<%else %>colspan="10"<%end if %> > 
    colspan="11"<%else %>colspan="10"<%end if %> class="texte-9pt"> 
    SCHL (Projeté)
    1)HYP-initiale : <%=FormatNumber(PretInit * MD, 0, , , true)%> $
    2)Prime SCHL : <%=FormatNumber(Prime * MD, 0, , , true)%>$ <% if PretInit <>0 then %>(<%=FormatNumber(Prime/PretInit * 100, 2, , , true)%>%) <%end if %>
    3)Droit de souscription : <%=FormatNumber(Souscr * MD, 0, , , true)%>$
    4)*HYP + SCHL (final = 1+2+3) : <%=FormatNumber(hypCre+Souscr+Prime * MD, 0, , , true)%> $
    5)Clause de prohibition : <% if Clause then %>OUI<%else %>NON<%end if %>
    6)Échéance : selon la date d'acquisition
    7)Taxe 9% sur la prime : <%=FormatNumber(9*Prime/100 * MD, 0, , , true)%>$
     
    colspan="11"<%else %>colspan="10"<%end if %> bgcolor="#CCCCCC" class="texte-9pt"> 
    colspan="11"<%else %>colspan="10"<%end if %> class="texte-9pt"> 
    colspan="11"<%else %>colspan="10"<%end if %> class="texte-8ptS"> A-1) Balance de vente possible par le propriétaire actuel
    <%=RS2.Fields("Nom_TypeCreancier")%>
    <%=FormatNumber(RS2.Fields("Hypotheque_cre") * MD, 0, , , true)%> $
     
     
    <%=FormatNumber(RS2.Fields("TauxInteret_cre") * 100, 2, , , true)%>%
    <%=FormatNumber(RS2.Fields("Mensuel_cre") * MD, 0, , , true)%> $
    <%=FormatNumber((RS2.Fields("Mensuel_cre")*12) * MD, 0, , , true)%> $
    <%=RS2.Fields("Echeance_cre")%>
    <%=RS2.Fields("Amortissement_cre")%>
      <%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 5)* MD, 0, , , true)%> $  
      <%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10)* MD, 0, , , true)%> $  
    colspan="11"<%else %>colspan="10"<%end if %> bgcolor="#CCCCCC" class="texte-9pt">
    colspan="5"<%else %>colspan="4"<%end if %> class="texte-8pt-titre">
    Total paiement mensuel/annuel<% if Typ2 > 0 then%>(A + A-1)<%end if %>:
    <%=FormatNumber(vVal2 * MD, 0, , , true)%> $
    <%=FormatNumber((vVal2*12) * MD, 0, , , true)%> $
      
    colspan="9"<%else %>colspan="8"<%end if %> class="texte-8pt-titre">
    Remboursement moyen en capital payé par année :
      <%=FormatNumber((r1 + r12) * MD, 0, , , true)%> $  
      <%=FormatNumber((r2 + r22) * MD, 0, , , true)%> $  
    colspan="18"<%else %> colspan="14" <%end if %><%if I mod 3 = 1 then %> align="left" <%elseif I mod 3 = 2 then %> align="center" <%else%> align="right" <%end if %> > <%if I mod 3 = 1 then %>refinancement hypothécaire<%end if %>
     
    <%ShowProjection()%> / <%ShowDateP()%>
    <% dim Typ3 strSQL = " SELECT Count(*) AS typet" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 3" RS2.Open strSQL, CNRS Typ3 = RS2.Fields(0) RS2.Close if Typ3 > 0 then %> <% dim Typ4,a,d2,finHyp1,finHypo0,finHypo1 strSQL = " SELECT Count(*) AS typeq" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 6" RS2.Open strSQL, CNRS Typ4 = RS2.Fields(0) RS2.Close dim Typ5 strSQL = " SELECT Count(*) AS typeq" & _ " FROM tblCreancier" & _ " WHERE ID_Listing = " & vID & " AND ID_TypePret = 5" RS2.Open strSQL, CNRS Typ5 = RS2.Fields(0) RS2.Close %> <% Dim page2Ass page2Ass=0 vVal = RS.Fields("notesAss") if not isnull(vVal) then if Len(vVal) > 10 then page2Ass = 1%> <% end if end if %>
     
    SERVICE DE LA DETTE
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    10_2
    <% dim Ar1,Ar2,Ad1,Ad0,Ahypo0,Ahypo1,Aamm_0,Aamm_1,Ataux_0,Ataux_1,Anne0,Anne1,Ar1Now,Ar2Now,schl0,schl1,cre_0,PretInitAs,AnneB,nrAs,Ahypo2,Ataux_2,Aamm_2 ,Anne2 ,schl2,Ad2 Ahypo0=0 Ahypo1=0 Aamm_0=0 Ataux_0=0 Ataux_1=0 Ad0=0 Ad1=0 Ar1=0 Ar2=0 Ar1Now=0 Ar2Now=0 Clause=0 PretInit=0 Prime=0 Souscr= 0 Date_Echeance = 0 ID_Cre =0 Anne0=0 AnneB=0 Anne1=0 schl0=0 schl1=0 cre_0=0 PretInitAs=0 nrAs=0 Ad2 =0 Ahypo2=0 Ataux_2=0 Aamm_2 = 0 Anne2 = 0 schl2 = 0 estSc=0 strSQL = " SELECT c.Schl" & _ " FROM tblCreancier AS c LEFT JOIN tblTypeCreancier AS t ON c.ID_TypeCreancier = t.ID_TypeCreancier" & _ " WHERE c.ID_Listing = " & vID &" AND c.ID_TypePret = 3" RS2.Open strSQL, CNRS do while not RS2.EOF if(RS2.Fields("Schl")) then estSc=1 end if RS2.MoveNext loop RS2.Close strSQL = " SELECT c.ID_Cre, c.ID_TypePret, t.Nom_TypeCreancier, c.Hypotheque_cre, c.Hypotheque2_cre, c.TauxInteret_cre, c.Mensuel_cre, c.Echeance_cre,"& _ " c.Amortissement_cre,c.Date_Client,c.Date_Solde,c.Schl,c.Clause,c.PretInit,c.Prime,c.Date_Echeance,c.Souscr" & _ " FROM tblCreancier AS c LEFT JOIN tblTypeCreancier AS t ON c.ID_TypeCreancier = t.ID_TypeCreancier" & _ " WHERE c.ID_Listing = " & vID &" AND c.ID_TypePret = 3 ORDER BY c.Num_cre,c.Date_Client" RS2.Open strSQL, CNRS do while not RS2.EOF schlR = RS2.Fields("Schl") hypCre = RS2.Fields("Hypotheque_cre") Prime=RS2.Fields("Prime") Souscr= RS2.Fields("Souscr") %> <%if renouv1 <> RS2.Fields("ID_cre") and renouv2 <> RS2.Fields("ID_cre") then%> <%else %> <%end if %> <% if renouv2 <> RS2.Fields("ID_cre") and renouv1 <> RS2.Fields("ID_cre") then Ar1Now = Ar1Now + CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),5) Ar2Now = Ar2Now + CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),10) Ar1 = Ar1 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),5) Ar2 = Ar2 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10) if nrAs=0 then Ad0 = RS2.Fields("Date_Client") Ahypo0=RS2.Fields("Hypotheque_cre") Ataux_0= RS2.Fields("TauxInteret_cre")*100 Aamm_0 = RS2.Fields("Amortissement_cre") Anne0 = RS2.Fields("Date_Solde") schl0 = RS2.Fields("Schl") elseif nrAs=1 then Ad1 = RS2.Fields("Date_Client") Ahypo1=RS2.Fields("Hypotheque_cre") Ataux_1= RS2.Fields("TauxInteret_cre")*100 Aamm_1 = RS2.Fields("Amortissement_cre") Anne1 = RS2.Fields("Date_Solde") schl1 = RS2.Fields("Schl") elseif nrAs=2 then Ad2 = RS2.Fields("Date_Client") Ahypo2=RS2.Fields("Hypotheque_cre") Ataux_2= RS2.Fields("TauxInteret_cre")*100 Aamm_2 = RS2.Fields("Amortissement_cre") Anne2 = RS2.Fields("Date_Solde") schl2 = RS2.Fields("Schl") end if nrAs=nrAs+1 end if %> <% RS2.MoveNext loop RS2.Close %> <% dim Ar14,Ar24,Ad04,Ad14,Ahypo04,Ahypo14,Aamm_04,Aamm_14,Ataux_04,Ataux_14,Anne04,Anne14,Ar14Now,Ar24Now Ahypo04=0 Ahypo14=0 Aamm_04=0 Ataux_04=0 Ar14=0 Ar24=0 Anne04=0 Anne14=0 Ad04=0 Ad14=0 Ar14Now=0 Ar24Now=0 strSQL = " SELECT c.ID_TypePret, t.Nom_TypeCreancier, c.Hypotheque_cre, c.Hypotheque2_cre, c.TauxInteret_cre, c.Mensuel_cre, c.Echeance_cre, c.Amortissement_cre,c.Date_Client,c.Date_Solde" & _ " FROM tblCreancier AS c LEFT JOIN tblTypeCreancier AS t ON c.ID_TypeCreancier = t.ID_TypeCreancier" & _ " WHERE c.ID_Listing = " & vID &" AND c.ID_TypePret=6" RS2.Open strSQL, CNRS do while not RS2.EOF %> <% Ar14 = Ar14 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 5) Ar24 = Ar24 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10) Ar14Now = Ar14Now + CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),5) Ar24Now = Ar24Now + CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),10) Ad14 = RS2.Fields("Date_Client") if Ad04 =0 then Ad04=Ad14 end if Ahypo14=RS2.Fields("Hypotheque_cre") if Ahypo04 =0 then Ahypo04=Ahypo14 end if Aamm_14 = RS2.Fields("Amortissement_cre") if Aamm_04 =0 then Aamm_04=Aamm_14 end if Ataux_14= RS2.Fields("TauxInteret_cre")*100 if Ataux_04 =0 then Ataux_04=Ataux_14 end if Anne14 = RS2.Fields("Date_Solde") if Anne04 =0 then Anne0=Anne1 end if RS2.MoveNext loop RS2.Close %> <%strSQL = " SELECT s.ID_cre, s.Clause,s.PretInit,s.Prime,s.Date_Echeance,s.Souscr,s.Hypotheque_cre,t.Nom_TypeCreancier,s.Date_Solde" & _ " FROM tblCreancier AS s,tblTypeCreancier AS t " & _ " WHERE s.ID_TypeCreancier = t.ID_TypeCreancier AND s.ID_Listing = " & vID &" AND s.ID_TypePret=3 and s.Schl = 1 ORDER BY s.Date_Client" RS2.Open strSQL, CNRS do while not RS2.EOF hypCre = RS2.Fields("Hypotheque_cre") Clause=RS2.Fields("Clause") PretInit=RS2.Fields("PretInit") Prime=RS2.Fields("Prime") Souscr= RS2.Fields("Souscr") Date_Echeance = RS2.Fields("Date_Echeance") PretInitAs = PretInit -(Prime+Souscr) cre_0 = RS2.Fields("Nom_TypeCreancier") AnneB = RS2.Fields("Date_Solde") %> <% RS2.MoveNext loop RS2.Close %> <% if Typ5 > 0 then %> <% dim Ar12,Ar22,Ahyp0,Ahyp1,Aamm0,Aamm1,Ataux0,Ataux1 Ar12=0 Ar22=0 Ahyp1=0 Aamm1=0 Ataux1=0 strSQL = " SELECT c.ID_TypePret, t.Nom_TypeCreancier, c.Hypotheque_cre, c.Hypotheque2_cre, c.TauxInteret_cre, c.Mensuel_cre, c.Echeance_cre, c.Amortissement_cre" & _ " FROM tblCreancier AS c LEFT JOIN tblTypeCreancier AS t ON c.ID_TypeCreancier = t.ID_TypeCreancier" & _ " WHERE c.ID_Listing = " & vID &" AND c.ID_TypePret = 5" RS2.Open strSQL, CNRS do while not RS2.EOF %> <% Ar12 = Ar12 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 5) Ar22 = Ar22 + CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10) Ahyp0=Ahyp1 Ahyp1=RS2.Fields("Hypotheque_cre") Aamm0=Aamm1 Aamm1 = RS2.Fields("Amortissement_cre") Ataux0=Ataux1 Ataux1= RS2.Fields("TauxInteret_cre")*100 RS2.MoveNext loop RS2.Close end if %>
    ASSUMATION HYPOTHÉCAIRE
     
    Mise de fonds : <%=FormatNumber((RS.Fields("moPrix")-BalanceAss -AssHyp) * MD, 0, , , true)%> <%=SD%>
     
    Créancier
      HYP-initiale  
    Ratio
    Hyp./Prix
    Solde
    Date
      Intérêt  
      Mensualité  
      Annuel  
    Ans
    Rembour
    /5ans
      
    sement
      /10ans
    <%=RS2.Fields("Nom_TypeCreancier")%>
    *<%=FormatNumber(RS2.Fields("Hypotheque_cre") * MD, 0, , , true)%>$
    (<%=Day(RS2.Fields("Date_Solde")) %>/<%=Month(RS2.Fields("Date_Solde")) %>/<%=Year(RS2.Fields("Date_Solde")) %>)
    <%=PN(FormatNumber(Div0(RS2.Fields("Hypotheque_cre" )*100,RS.Fields("moPrix")), 2, , , true))%>%
    **<%=FormatNumber(RS2.Fields("Hypotheque2_cre") * MD, 0, , , true)%>$
    (<%=Day(RS2.Fields("Date_Client")) %>/<%=Month(RS2.Fields("Date_Client")) %>/<%=Year(RS2.Fields("Date_Client")) %>)
    <%=FormatNumber(RS2.Fields("TauxInteret_cre") * 100, 2, , , true)%>%
    <%=FormatNumber(RS2.Fields("Mensuel_cre") * MD, 0, , , true)%> $
    <%=FormatNumber((RS2.Fields("Mensuel_cre")*12) * MD, 0, , , true)%> $
    <%=RS2.Fields("Echeance_cre")%>
    <%=RS2.Fields("Amortissement_cre")%>
      ^ <%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),5)* MD, 0, , , true)%>  $  
      ^^ <%=FormatNumber(CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),5)* MD, 0, , , true)%>  $  
      ^<%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10)* MD, 0, , , true)%> $  
      ^^ <%=FormatNumber(CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")), 10)* MD, 0, , , true)%> $  
    Expirée et renouvelée
    <%=RS2.Fields("Nom_TypeCreancier")%>
    *<%=FormatNumber(RS2.Fields("Hypotheque_cre") * MD, 0, , , true)%>$
    (<%=Day(RS2.Fields("Date_Solde")) %>/<%=Month(RS2.Fields("Date_Solde")) %>/<%=Year(RS2.Fields("Date_Solde")) %>)
    **<%=FormatNumber(RS2.Fields("Hypotheque2_cre") * MD, 0, , , true)%>$
    (<%=Day(RS2.Fields("Date_Client")) %>/<%=Month(RS2.Fields("Date_Client")) %>/<%=Year(RS2.Fields("Date_Client")) %>)
    <%=FormatNumber(RS2.Fields("TauxInteret_cre") * 100, 2, , , true)%>%
    <%=FormatNumber(RS2.Fields("Mensuel_cre") * MD, 0, , , true)%> $
    <%=FormatNumber((RS2.Fields("Mensuel_cre")*12) * MD, 0, , , true)%> $
    <%=RS2.Fields("Echeance_cre")%>
    <%=RS2.Fields("Amortissement_cre")%>
      ^<%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),5)* MD, 0, , , true)%> $  
      ^^<%=FormatNumber(CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")),5)* MD, 0, , , true)%> $  
      ^<%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10)* MD, 0, , , true)%> $  
      ^^<%=FormatNumber(CalculerRembNow(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"),DateDiff("yyyy",RS2.Fields("Date_Solde"),RS2.Fields("Date_Client")), 10)* MD, 0, , , true)%> $  
     
    COÛT SCHL : <%=cre_0%> <%if renouv1 = RS2.Fields("ID_cre") OR renouv2 = RS2.Fields("ID_cre") then%> ( Expirée et renouvelée ) <%end if %>
    1)HYP-Solde/Date : <%=FormatNumber(PretInitAs * MD, 0, , , true)%> $
    2)Prime SCHL : <%=FormatNumber(Prime * MD, 0, , , true)%>$ <% if PretInitAS <>0 then %>(<%=FormatNumber(Prime/PretInitAs * 100, 2, , , true)%>%) <%end if %>
    3)Droit de souscription : <%=FormatNumber(Souscr * MD, 0, , , true)%>$
    4)HYP-initiale (final = 1 + 2 + 3) : <%=FormatNumber(PretInit * MD, 0, , , true)%> $
    5)Clause de prohibition : <% if Clause then %>OUI<%else %>NON<%end if %>
    6)Date initiale : <%=Day(Anne0) %>/<%=Month(AnneB) %>/<%=Year(AnneB) %>
    7)Échéance : <%=Day(Date_Echeance) %>/<%=Month(Date_Echeance) %>/<%=Year(Date_Echeance) %>
    8)Taxe 9% sur la prime : <%=FormatNumber(9*Prime/100 * MD, 0, , , true)%>$
     
    B-1) Balance de vente possible par le propriétaire actuel
    <%=RS2.Fields("Nom_TypeCreancier")%>
    <%=FormatNumber(RS2.Fields("Hypotheque_cre") * MD, 0, , , true)%> $
     
     
    <%=FormatNumber(RS2.Fields("TauxInteret_cre") * 100, 2, , , true)%>%
    <%=FormatNumber(RS2.Fields("Mensuel_cre") * MD, 0, , , true)%> $
    <%=FormatNumber((RS2.Fields("Mensuel_cre")*12) * MD, 0, , , true)%> $
    <%=RS2.Fields("Echeance_cre")%>
    <%=RS2.Fields("Amortissement_cre")%>
       <%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 5)* MD, 0, , , true)%> $  
       <%=FormatNumber(CalculerRemb(RS2.Fields("Hypotheque_cre"), RS2.Fields("Amortissement_cre"),RS2.Fields("TauxInteret_cre"), 10)* MD, 0, , , true)%> $  
     
    Total paiement mensuel/annuel<% if Typ5 > 0 then%>(B + B-1)<%end if %>:
    <%=FormatNumber(vVal2_a * MD, 0, , , true)%> $
    <%=FormatNumber((vVal2_a*12) * MD, 0, , , true)%> $
      
    _(^)Remboursement moyen en capital payé par année avant <%=Day(d1) %>/<%=Month(d1) %>/<%=Year(d1) %> :
      <%=FormatNumber((Ar1 + Ar12 + Ar14) * MD, 0, , , true)%> $  
      <%=FormatNumber((Ar2 + Ar22 + Ar24) * MD, 0, , , true)%> $  
    (^^)Remboursement moyen en capital payé par année après <%=Day(d1) %>/<%=Month(d1) %>/<%=Year(d1) %> :
      <%=FormatNumber((Ar1Now + Ar12 + Ar14Now) * MD, 0, , , true)%> $  
      <%=FormatNumber((Ar2Now + Ar22 + Ar24Now) * MD, 0, , , true)%> $  
    _(*) Hypothèque initiale
    (**) Hypothèque en date d'acquisition projetée
     
    <% if Typ5 > 0 then%> <% end if %> <% if Typ3 > 1 then%> <% end if %> <% if Typ3 > 2 then%> <% end if %> <% if Typ4 > 0 then %> <% end if %> <% if Typ4 > 1 then %> <% end if %> <% dim P1,P2, BVe1,BVe2,d3,P3 P1=0 P2=0 P3=0 BVe1=0 BVe2=0 color=1 d1 = Ad0 d2 = Month(d1) d3 = Year(d1) for I=0 to 5 %> bgcolor="#CCCCCC" <% end if%>> <% if Typ5 > 0 then%> <% end if %> <%P1 = CalculerRembM(Ahypo0,Aamm_0,Ataux_0,DateDiff("m",Anne0,Ad0)+I)%> <% if Typ3 > 1 then P2= CalculerRembM(Ahypo1,Aamm_1,Ataux_1,DateDiff("m",Anne1,Ad1)+I+1) %> <% end if %> <% if Typ3 > 2 then P3= CalculerRembM(Ahypo2,Aamm_2,Ataux_2,DateDiff("m",Anne2,Ad2)+I+1) %> <% end if %> <% if Typ4 > 0 then BVe1 = CalculerRembM(Ahypo04,Aamm_0,Ataux_04,1) %> <% end if %> <% if Typ4 > 1 then BVe2 = CalculerRembM(Ahypo14,Aamm_14,Ataux_14,1)%> <% end if %> <% color = color+1 next %>
    2 then%> colspan="7"<% elseif Typ3 > 1 or Typ4 > 0 then%> colspan="6" <% else %> colspan="5" <% end if %> class="texte-8pt" align="center"> CALENDRIER HYPOTHÉCAIRE de mises de fonds necessaires selon la date d'acquisition projetée (6 Mois)
    Mois
    Balance de vente
    Prêt existant
    Prêt existant
    Prêt existant
    Total existant
    BV existant
    BV existant
    Comptant
    2 then%> colspan="7"<% elseif Typ3 > 1 or Typ4 > 0 then%> colspan="6" <% else %> colspan="5" <% end if %> bgcolor="#990000">
    <%if d2 +I <13 then %><%=Mid(MonthName(d2+I),1,2)%>(<%=d3 %>)<%end if %> <% if d2 +I>12 and d2+I <25 then %><%=Mid(MonthName(d2+I-12),1,2)%>(<%=d3+1 %>)<%end if %> <%if d2 +I>24 then %><%=Mid(MonthName(d2+I-24),1,2)%>(<%=d3+2 %>)<%end if %> <%=FormatNumber(Ahyp1 * MD, 0, , , true)%> <%=SD%><%=FormatNumber(P1* MD, 0, , , true)%> <%=SD%><%=FormatNumber(P2* MD, 0, , , true)%> <%=SD%><%=FormatNumber(P3* MD, 0, , , true)%> <%=SD%><%=FormatNumber(P1+P2+P3* MD, 0, , , true)%> <%=SD%><%=FormatNumber(BVe1* MD, 0, , , true)%> <%=SD%><%=FormatNumber(BVe2* MD, 0, , , true)%> <%=SD%><%=PN(FormatNumber((RS.Fields("moPrix")- Ahyp1 - P1 - P2-P3 - BVe1 -BVe2 )* MD, 0, , , true))%> <%=SD%>
    1 or Typ4 > 0 then%> colspan="5" <% else %> colspan="4" <% end if %> bgcolor="#CCCCCC">

    <% vVal = Replace(vVal,">>>>", "

  • ") Response.write Replace(vVal, vbCrLf, "
    ") %>

  • <%ShowProjection()%> / <%ShowDateP()%>
    <%end if %>
     
    RATIOS COMPLETS
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    11
    <%Dim norme1, norme2,RDF_norme1,RDF_norme2, rep1,prix prix = RS.Fields("moPrix") if RS.Fields("chUnite")>50 then norme1 = 75 norme2 = 85 else norme1 = 65 norme2 = 75 end if RDF_norme1=0 RDF_norme2=0 if taux_1 <>0 then RDF_norme1 = CalculerMensualite(norme1*RS.Fields("moPrix")/ 100,25,taux_1)*12 RDF_norme2 = CalculerMensualite(norme2*RS.Fields("moPrix")/ 100,25,taux_1)*12 end if %> <%if tDette <>0 then %> <% end if %> <% if tDette_a<>0 then %> <%end if %> <% if RDF_a<>0 then %> <%end if %> <%Dim estZero estZero = 0 %>
    Nom complet Équation Rev-minimal Rev-actuel BAIIA
    REPERE-RP
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDE), 1, , , true))%> + <%=PN(FormatNumber(Div0(RDE,RDF_norme1), 2, , , true))%>
    <%=PN(FormatNumber(Div0(prix,RDE)+ Div0(RDE,RDF_norme1)* MD, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(prix,RDEact)+ Div0(RDEact,RDF_norme1)* MD, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(prix,RDE-depGest)+ Div0(RDE-depGest,RDF_norme1)* MD, 1, , , true))%>%
    (TGA) Taux global d'actualisation/Taux capitalisation
    1 / <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDE), 1, , , true))%>
    <%=PN(FormatNumber(Div0(1, Div0(RS.Fields("moPrix"), RDE)) * 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(1, Div0(RS.Fields("moPrix"), RDEact)) * 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(1, Div0(RS.Fields("moPrix"), RDE-depGest)) * 100, 1, , , true))%>%
    (TRN) Taux de rendement sur le net
    <%=PN(FormatNumber(RDE * MD, 0, , , true))%> / <%=PN(FormatNumber(RS.Fields("moPrix") * MD, 0, , , true))%>
    (MRB) Multiplicateur de revenu brut
    <%=PN(FormatNumber(RS.Fields("moPrix") * MD, 0, , , true))%> / <%=PN(FormatNumber(RDBT * MD, 0, , , true))%> 
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDBT), 1, , , true))%>   
    <<<=
    (MRN)
       Multiplicateur de revenu net : Prix/Revenu net
    <%=PN(FormatNumber(RS.Fields("moPrix") * MD, 0, , , true))%> / <%=PN(FormatNumber(RDE * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDE), 1, , , true))%>   
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDEact), 1, , , true))%>   
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDE-depGest), 1, , , true))%>   
       Multiplicateur de revenu après fin : Prix/Liquidité
    <%=PN(FormatNumber(RS.Fields("moPrix") * MD, 0, , , true))%> / <%=PN(FormatNumber(RDG * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDG), 1, , , true))%>   
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDGact), 1, , , true))%>   
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDG-depGest), 1, , , true))%>   
       Multiplicateur de profit total : Prix/Profit total
    <%=PN(FormatNumber(RS.Fields("moPrix") * MD, 0, , , true))%> / <%=PN(FormatNumber(RDI * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDI), 1, , , true))%>   
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDIact), 1, , , true))%>   
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RDI-depGest), 1, , , true))%>   
    (TRE)
       Taux de rendement sur comptant(1): Net/comptant
    <%=PN(FormatNumber(RDE * MD, 0, , , true))%> / <%=PN(FormatNumber(MDF * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDE,MDF)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDEact,MDF)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDE-depGest,MDF)* 100, 1, , , true))%>%
       Taux de rendement sur comptant(2): Liquid./comptant
    <%=PN(FormatNumber(RDG * MD, 0, , , true))%> / <%=PN(FormatNumber(MDF * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDG,MDF)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDGact,MDF)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDG-depGest,MDF)* 100, 1, , , true))%>%
       Taux de rendement sur comptant(3): Profit/comptant
    <%=PN(FormatNumber(RDI * MD, 0, , , true))%> / <%=PN(FormatNumber(MDF * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDI,MDF)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDIact,MDF)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDI-depGest,MDF)* 100, 1, , , true))%>%
    Ratio d'endettement(réfinancement)
    <%=PN(FormatNumber(tDette * MD, 0, , , true))%> / <%=PN(FormatNumber(RS.Fields("moPrix")* MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(tDette,RS.Fields("moPrix"))* 100, 1, , , true))%>%
    <<<=
      Ratio de sécurité / R. couverture de la dette(réf.)
    <%=PN(FormatNumber(RDE * MD, 0, , , true))%> / <%=PN(FormatNumber(RDF * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDE,RDF), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDEact,RDF), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDE-depGest,RDF), 2, , , true))%>   
      Ratio de sécurité / R. couverture de la dette(<%=norme1 %>%)
    <%=PN(FormatNumber(RDE * MD, 0, , , true))%> / <%=PN(FormatNumber(RDF_norme1 * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDE,RDF_norme1), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDEact,RDF_norme1), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDE-depGest,RDF_norme1), 2, , , true))%>   
      Ratio de sécurité / R. couverture de la dette(<%=norme2 %>%)
    <%=PN(FormatNumber(RDE * MD, 0, , , true))%> / <%=PN(FormatNumber(RDF_norme2 * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDE,RDF_norme2), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDEact,RDF_norme2), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDE-depGest,RDF_norme2), 2, , , true))%>   
    Ratio d'endettement(assumation)
    <%=PN(FormatNumber(tDette_a * MD, 0, , , true))%> / <%=PN(FormatNumber(RS.Fields("moPrix")* MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(tDette_a,RS.Fields("moPrix"))* 100, 1, , , true))%>%
    <<<=
      Ratio de sécurité / R. couverture de la dette(ass.)
    <%=PN(FormatNumber(RDE * MD, 0, , , true))%> / <%=PN(FormatNumber(RDF_a * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDE,(RDF_a)), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDEact,(RDF_a)), 2, , , true))%>   
    <%=PN(FormatNumber(Div0(RDE-depGest,(RDF_a)), 2, , , true))%>   
    Ratio d'exploitation
    <%=PN(FormatNumber(RDD * MD, 0, , , true))%> / <%=PN(FormatNumber(RDCT * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDD,RDCT)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDD,RDCTact)* 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDD+depGest,RDCT)* 100, 1, , , true))%>%
    Prix d'autofinancement mensuel
    <%=PN(FormatNumber(RDE * MD, 0, , , true))%> / 12
    <%=PN(FormatNumber((RDE/12) * MD, 0, , , true))%>$
    <%=PN(FormatNumber((RDEact/12) * MD, 0, , , true))%>$
    <%=PN(FormatNumber(((RDE-depGest)/12) * MD, 0, , , true))%>$
    Taux minimal d'occupation
    <%=PN(FormatNumber(RDD +RDF * MD, 0, , , true))%> / <%=PN(FormatNumber(RDCT * MD, 0, , , true))%>
    <%=PN(FormatNumber(Div0(RDD + RDF, RDCT) * 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDD + RDF, RDCTact) * 100, 1, , , true))%>%
    <%=PN(FormatNumber(Div0(RDD + RDF+depGest, RDCT) * 100, 1, , , true))%>%
             Nombre de logements occupés minimal
    <%=PN(RS.Fields("chUnite"))%> x <%=PN(FormatNumber(Div0(RDD + RDF, RDCT) * 100, 1, , , True))%>%
    <%=PN(FormatNumber(RS.Fields("chUnite") * Div0(RDD + RDF, RDCT), 0, , , true))%>       
    <%=PN(FormatNumber(RS.Fields("chUnite") * Div0(RDD + RDF, RDCTact), 0, , , true))%>       
    <%=PN(FormatNumber(RS.Fields("chUnite") * Div0(RDD + RDF+depGest, RDCT), 0, , , true))%>       
    Taux de vacance permis
    100% - <%=PN(FormatNumber((Div0(RDD + RDF, RDCT) * 100), 1, , , true))%>%
    <%=PN(FormatNumber(100 - (Div0(RDD + RDF, RDCT) * 100), 1, , , true))%>%
    <%=PN(FormatNumber(100 - (Div0(RDD + RDF, RDCTact) * 100), 1, , , true))%>%
    <%=PN(FormatNumber(100 - (Div0(RDD + RDF+depGest, RDCT) * 100), 1, , , true))%>%
            Nombre de logements vacants permis
    <%=PN(RS.Fields("chUnite"))%> x <%=PN(FormatNumber(100 - Div0(RDD + RDF, RDCT) * 100, 1, , , true))%>%
    <%=PN(FormatNumber(RS.Fields("chUnite") * (1 - Div0(RDD + RDF, RDCT)), 0, , , true))%>       
    <%=PN(FormatNumber(RS.Fields("chUnite") * (1 - Div0(RDD + RDF, RDCTact)), 0, , , true))%>       
    <%=PN(FormatNumber(RS.Fields("chUnite") * (1 - Div0(RDD + RDF+depGest, RDCT)), 0, , , true))%>       
    Prix / nombre d'unités
    <%=PN(FormatNumber(RS.Fields("moPrix"), 0, , , true))%>$ / <%=PN(FormatNumber(RS.Fields("chUnite"),0, , , true))%>
    <%=PN(FormatNumber(Div0(RS.Fields("moPrix"),RS.Fields("chUnite")) , 0))%>$
    <<<=
    Ratio sur les superficies (unités(a)/batiment(b))
            Prix / (a)
    <%=PN(FormatNumber(RS.Fields("moPrix"), 0, , , true))%>$ / <%if pcPag <> 0 then estZero =1 %> <%=PN(FormatNumber(pcPag, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RS.Fields("moPrix"),pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Prix / (b)
    <%=PN(FormatNumber(RS.Fields("moPrix"), 0, , , true))%>$ / <%if RS.Fields("dgSuperficieBatiment")<> 0 then estZero =1 %> <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RS.Fields("moPrix"), RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Revenu brut minimal / (a)
    <%=PN(FormatNumber(RDBT, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieLogement")<> 0 then estZero =1 %> <%=PN(FormatNumber(pcPag, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDBT, pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Revenu brut minimal / (b)
    <%=PN(FormatNumber(RDBT, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieBatiment")<> 0 then estZero =1 %> <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDBT, RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Revenu net / (a)
    <%=PN(FormatNumber(RDE, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieLogement")<> 0 then estZero =1 %> <%=PN(FormatNumber(pcPag, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDE, pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDEact, pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Revenu net / (b)
    <%=PN(FormatNumber(RDE, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieBatiment")<> 0 then estZero =1 %> <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDE, RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDEact, RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Liquidité / (a)
    <%=PN(FormatNumber(RDG, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieLogement")<> 0 then estZero =1 %> <%=PN(FormatNumber(pcPag, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDG, pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDGact, pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Liquidité / (b)
    <%=PN(FormatNumber(RDG, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieBatiment")<> 0 then estZero =1 %> <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDG, RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDGact, RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Profit total / (a)
    <%=PN(FormatNumber(RDI, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieLogement")<> 0 then estZero =1 %> <%=PN(FormatNumber(pcPag, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDI, pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDIact, pcPag), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Profit total / (b)
    <%=PN(FormatNumber(RDI, 0, , , true))%>$ / <%if RS.Fields("dgSuperficieBatiment")<> 0 then estZero =1 %> <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDI, RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RDIact, RS.Fields("dgSuperficieBatiment")* VPC), 1, , , true))%> $/pi² <% else %>Non-disponible<%end if %>
    <<<=
            Ratio d'efficacité A (a / b)
    <%if RS.Fields("dgSuperficieLogement")<> 0 then estZero =1 %> <%=PN(FormatNumber(RS.Fields("dgSuperficieLogement")* VPC, 0, , , true))%> pi² <% else %>Non-disponible<%end if %> / <%if RS.Fields("dgSuperficieBatiment")<> 0 then estZero =1 %> <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC, 0, , , true))%> pi² <% else estZero = 0 %>Non-disponible<%end if %>
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RS.Fields("dgSuperficieLogement"), RS.Fields("dgSuperficieBatiment")) * 100, 1))%>% <% else %>Non-disponible<%end if %>
    <<<=
            Ratio d'efficacité B (b-a / b)
    <%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC - RS.Fields("dgSuperficieLogement")* VPC, 0, , , true))%>  pi² /<%=PN(FormatNumber(RS.Fields("dgSuperficieBatiment")* VPC, 0, , , true))%> pi²
    <%if estZero =1 then%> <%=PN(FormatNumber(Div0(RS.Fields("dgSuperficieBatiment") - RS.Fields("dgSuperficieLogement"), RS.Fields("dgSuperficieBatiment")) * 100, 1))%>% <% else %>Non-disponible<%end if %>
    <<<=
    Salaires vs Revenus
    <%=PN(FormatNumber(Gt, 0, , , true))%>$ / <%=PN(FormatNumber(RDBT, 0, , , true))%>$
    <%if Gt=0 or RDBT = 0 then %>Non-disponible <% else %><%=PN(FormatNumber(Div0(Gt,RDBT) * 100, 1))%>%<%end if %>
    <<<=
            Salaires / résident (occupation actuelle)
    <%=PN(FormatNumber(Gt, 0, , , true))%>$ / <%=PN(FormatNumber(RS.Fields("chUnite")-vacantes, 0, , , true))%>
    <%if Gt=0 or RS.Fields("chOccupActuel")= 0 then%>Non-disponible <%else %><%=PN(FormatNumber(Div0(Gt,RS.Fields("chUnite")-vacantes) , 0))%>$<%end if %>
    <<<=
            Salaires / résident (occupation maximale)
    <%=PN(FormatNumber(Gt, 0, , , true))%>$ / <%=PN(FormatNumber(RS.Fields("chUnite"), 0, , , true))%>
    <%if Gt=0 or RS.Fields("chOccupMax")= 0 then%>Non-disponible <%else %><%=PN(FormatNumber(Div0(Gt,RS.Fields("chUnite")) , 0))%>$ <%end if %>
    <<<=
    Rev. loyers(vacantes minimales) / nombre d'unités
    <%=PN(FormatNumber(RDB, 0, , , true))%>$ / <%=PN(FormatNumber(RS.Fields("chUnite"),0, , , true))%>
    <%=PN(FormatNumber(Div0(RDB,RS.Fields("chUnite")) , 0))%>$
    <<<=
    Revenu loyers actuels / nombre d'unités loués
    <%=PN(FormatNumber(RDCTact, 0, , , true))%>$ / <%=PN(FormatNumber(RS.Fields("chUnite")-vacantes,0, , , true))%>
    <%=PN(FormatNumber(Div0(RDCTact,RS.Fields("chUnite")-vacantes) , 0))%>$
    <<<=
    Locataires (hommes / femmes) / Nombre maximal
    <%=hPag %> h + <%=fPag %> f + <%=hfPag %> ?
    <%=(hfPag+hPag + fPag) %> locataires
    <<<=
    BAIIA=> bénéfices avant intérêts,impôts et amortissements ajustés, de la rémunération excédentaire des actionnaires et certaines dépenses non récurrentes.
    <%dim tauxGlob tauxGlob = Div0( RDE,RS.Fields("moPrix"))*100%> <%dim mrn mrn= Div0(RS.Fields("moPrix"), RDE) %>
    <%ShowProjection()%> / <%ShowDateP()%>
    <%Dim unitBas, unitHaut if RS.Fields("chUnite")>49 then unitBas = 35 unitHaut = RS.Fields("chUnite")+100 elseif RS.Fields("chUnite")>39 then unitBas = 30 unitHaut = 61 elseif RS.Fields("chUnite")<25 then unitBas = 0 unitHaut = 30 else unitBas = 24 unitHaut = 50 end if %>
     
    COMPARABLES À VENDRE
    #<%=lettreVF(resId) %><%=resId%><%=lettreOpen(resId) %>
    12
    <% dim comp comp=8%> <% strSQL = "SELECT top 7 NomCcac FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    1. RÉSIDENCE# <%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Unites FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    2. Unites<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Prix FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    3. Prix ($) <%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 RevBrut FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    4. Revenu brut (A) ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Vacantes FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    5. Vacantes ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Taxes FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    6. Taxes ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Salaires FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    7. Salaires($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Depenses FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    8. Autres depenses ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 RevNet FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    9. Revenu net ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Tga FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    10. TGA (Taux global d'actualisation)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Mrn FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    11. MRN (Multiplicateur de revenu net)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Tre FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    12. TRE (Net/comptant)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 RatExpl FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    13. Ratio d'exploitation<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 TauxOcc FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    14. Taux occupation<%=RS3.Fields(0)%>%
    <% strSQL = "SELECT top 7 PrixUnit FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    15. Prix / Unité ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 depCentPi FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    16. Depenses / (100)pi² ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 SalRev FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    17. Salaires / Revenu brut (A)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 RevUnit FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    18. Revenu brut (A) / Unité ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Mrb FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    19. MRB (Prix/Brut minimal)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Trn FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    20. TRN (Net minimal/prix)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Tvp FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    21. Taux vacance permis<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 RatEff FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 1) ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    22. Ratio d'efficacité
    (superficies : unités/batiment)
    <%if RS3.Fields(0)<>0 then%> <%= RS3.Fields(0)%>% <% else %>Non-disp.<%end if %>
     
     
     
     
     
    COMPARABLES VENDUS
    <% strSQL = "SELECT top 7 NomCcac FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    1. RÉSIDENCE# <%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Unites FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    2. Unites<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 DateVente FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    3. DATE VENTE <%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Prix FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    4. Prix ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 RevBrut FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    5. Revenu brut (A) ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Vacantes FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    6. Vacantes ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Taxes FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    7. Taxes ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Salaires FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    8. Salaires ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Depenses FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    9. Autres depenses ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 RevNet FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    10. Revenu net ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Tga FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    11. TGA (Taux global d'actualisation)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Mrn FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    12. MRN (Multiplicateur de revenu net)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Tre FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    13. TRE (Net/comptant)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 RatExpl FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    14. Ratio d'exploitation<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 TauxOcc FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    15. Taux occupation<%=RS3.Fields(0)%>%
    <% strSQL = "SELECT top 7 PrixUnit FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    16. Prix / Unité ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 depCentPi FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    17. Depenses / (100)pi² ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 SalRev FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    18. Salaires / Revenu brut (A)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 RevUnit FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    19. Revenu brut (A) / Unité ($)<%=FormatNumber(RS3.Fields(0), 0, , , true)%>
    <% strSQL = "SELECT top 7 Mrb FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    20. MRB (Prix/Brut minimal)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Trn FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    21. TRN (Net minimal/prix)<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 Tvp FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    22. Taux vacance permis<%=RS3.Fields(0)%>
    <% strSQL = "SELECT top 7 RatEff FROM tblResidenceNet WHERE (Unites > "& unitBas &" and Unites < "& unitHaut &" ) AND (ID_Listing IN (SELECT ID_Listing FROM tblAccesWeb " &_ " WHERE (ID_ach = 1))) AND (MainVente = 0) ORDER BY DateVente desc ;" RS3.Open strSQL, CNRS Do While Not RS3.EOF %> <% RS3.MoveNext loop RS3.Close %>
    23. Ratio d'efficacité
    (superficies : unités/batiment)
    <%if RS3.Fields(0)<>0 then%> <%= RS3.Fields(0)%>% <% else %>Non-disp.<%end if %>
    <%ShowProjection()%> / <%ShowDateP()%>
    <%else SendEMail EMAIL_FROM, EMAIL_TO, "","Listing complet " & lettreVF(resId) & resId & lettreOpen(resId) &" (30 jours passés-visible: VOTRE SESSION A EXPIRÉ !!!) par l'ach. #" & ida & idn & " !!! ", " " %>



    514 644 4444 

     

    DOSSIER #<%=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("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 %>
    VOTRE SESSION A EXPIRÉ !!!
     
    <%end if %> <% else Response.Write "Affichage impossible, une erreur ses produite." end if on error resume next RS2.ActiveConnection = nothing set RS2 = nothing RS3.ActiveConnection = nothing set RS3 = nothing EndConnect %>