ResPage.aspx. Imports System.IO Imports System.Xml Imports System.Xml.XPath Imports System.Xml.Xsl Imports PDFDocScout

Size: px
Start display at page:

Download "ResPage.aspx. Imports System.IO Imports System.Xml Imports System.Xml.XPath Imports System.Xml.Xsl Imports PDFDocScout"

Transcription

1 Imports System.IO Imports System.Xml Imports System.Xml.XPath Imports System.Xml.Xsl Imports PDFDocScout ResPage.aspx Partial Class ResPage Inherits System.Web.UI.Page Protected Function GetInstalled(ByRef x As String) As String If x.tolower = ".t." Then Return "Installeret" Return "Ikke installeret" End Function Protected Sub GetWindow(ByRef Elements As XmlNodeList, ByRef id As String, _ ByRef area0 As Double, ByRef area1 As Double, ByRef name As String, ByRef imp As Integer) Dim a0 As Double = 0.0 Dim a1 As Double = 0.0 For Each n0 In Elements Dim sfb_node As XmlElement = n0.item("sfb") If Not sfb_node Is Nothing Then Dim sfb As String = sfb_node.innertext 'If Not sfb.contains(be06.improvement) Then If sfb.contains(id) Then Dim an As XmlElement = n0.item("area") If Not an Is Nothing Then Dim na0 As String = an.innertext.replace(".", ",") If na0.length > 0.0 Then Dim part As Integer = n0.item("part").innertext Dim typ As Integer = Std.GetTyp(part) name = Std.NameWin(typ) Dim da0 As Double = na0 Dim number As XmlElement = n0.item("no") Dim no As Double = number.innertext da0 *= no If sfb.contains(be06.improvement) Then a1 += da0 imp = Std.GetImp(part) a0 += da0 area0 = a0 area1 = a1 Protected Sub GetReport(ByRef doc As StringBuilder, ByVal split As Integer) Dim xml As XmlDocument = New XmlDocument xml = CType(Session("xmldoc"), XmlDocument) Dim kroner, el_dem As Double Dim price As Double = CType(Session("eprice"), Double) Dim old_price As Double = CType(Session("saved_eprice"), Double) Dim el_price As Double = CType(Session("el_price"), Double) Dim dem As Double = Be06.GetDemand(xml, price, el_price, kroner, el_dem) Dim cons0 As Double = CType(Session.Item("cons0"), Double) Dim std_cons As Double = CType(Session("std_cons0"), Double) Dim last_kwh As Double = CType(Session("last_kwh"), Double) Dim last_kr0 As Double = CType(Session("last_kr0"), Double) Dim el0 As Double = CType(Session.Item("el0"), Double) Dim kr0 As Double = CType(Session.Item("kr0"), Double) Side 1

2 ' Dim dem0 As String = CType(Math.Round(dem, 1), String) Dim dem0 As String = Math.Round(dem, 1).ToString("n1") Dim saving As String = CType(Math.Round(cons0 - dem, 1), String) Dim year As String = CType(Session("year"), String) Dim area As Double = CType(Session("area"), Double) Dim stor As Integer = CType(Session("stories"), Integer) Dim gr As Integer = CType(Session("ground"), Integer) Dim t0 As Integer = CType(Session("type"), Integer) Dim orient0 As Double = CType(Session("orient"), Double) Dim people As Double = CType(Session("people"), Double) Dim heat As Integer = CType(Session("heating"), Integer) Dim ht_sup As Integer = CType(Session("heat_sup"), Integer) Dim fu_sup As Integer = CType(Session("fuel_sup"), Integer) Dim cons_sup As Double = CType(Session("cons_sup"), Double) Dim unit As String = Be06.Unit(heat) Dim cons As Double = CType(Session("consump"), Double) Dim cons_kr As Double = CType(Session("consump_kr"), Double) Dim hp_ex As Integer = CType(Session("hp_ex"), Integer) Dim conv As Integer = CType(Session("converted"), Integer) ' heating system converted Dim frac As Double = 0.0 If cons0 > 0.0 Then frac = (cons0 - dem) / cons0 Dim tot_cons As Double = cons If cons < 0.0 Then tot_cons = 0.0 Dim save_kr As Double = tot_cons * price * frac Dim kr As String = Math.Round(save_kr, 0) Dim el_dem0 As Double Dim save_cons As String = Be06.GetSaving(xml, cons0, el0, kr0, cons, price, el_price, el_dem0, last_kwh, last_kr0, std_cons, False) ' 2821 kwh, 2869 kr. Seneste tiltag 0 kr pr år Dim n As Integer = save_cons.indexof(" ") Dim m0 As Integer = save_cons.indexof(", ") Dim m1 As Integer = save_cons.indexof(" kr") Dim save_cons0 As String = save_cons.substring(m0 + 2, m1 - m0-2) kr Dim fuel0 As Double = CType(save_cons0, Double) save_cons0 = fuel0.tostring("n0") Dim save_el As Double = (el0 - el_dem0) * area * el_price 'Dim save_pct0 As String = save_cons.substring(m0 + 1, m1 - m0-1) Dim save_pct0 As String = Math.Round(100.0 * (cons0 - dem) / cons0, 1) Dim fuel_cons As String = save_cons.substring(0, n) ' kwh Dim dec As Integer = Std.heat_dec(heat) If price > 0.0 Then Dim fuel As Double = fuel0 / price Select Case dec Case 1 fuel_cons = Math.Round(fuel, dec).tostring("n1") Case 3 fuel_cons = Math.Round(fuel, dec).tostring("n3") Case fuel_cons = Math.Round(fuel, dec).tostring("n0") End Select ' fuel_cons = Math.Round(fuel, dec) ' fuel_cons += " " & Be06.Unit(heat) & " pr år" Dim fuel_unit As String = Be06.Unit(heat) + " pr år" ' If split < 0 Then ' Text document to be imported in excel doc.append("dokumentation af energibesparelser for bygningen" & vbtab & "Videncenter for energibesparelser i bygninger" & vbcrlf & doc.append("forventet varmebesparelse" & vbcrlf & If price > 0.0 Then Side 2

3 If conv > 0 Then doc.append("besparelse i varmeforbrug" & vbtab & "Beregnes ikke pga. varmekonvertering" & vbcrlf & doc.append("besparelse i varmeforbrug" & vbtab & "" & fuel_cons & "" & vbtab & "" & fuel_unit & "" & vbcrlf & doc.append("økonomisk varmebesparelse" & vbtab & "" & save_cons0 & "" & vbtab & "kr pr år" & vbcrlf & doc.append("besparelse i varmeforbrug" & vbtab & "" & save_cons0 & "" & vbcrlf & doc.append("teoretisk beregnet energibehov, kwh/m² år" & vbcrlf & doc.append("energibehov før forbedring" & vbtab & "" & Math.Round(cons0, 1).ToString("n1") & "" & vbcrlf & doc.append("heraf el-behov før forbedring" & vbtab & "" & Math.Round(el0, 1).ToString("n1") & "" & vbcrlf & doc.append("energibehov efter forbedring" & vbtab & "" & dem0 & "" & vbcrlf & doc.append("heraf el-behov efter forbedring" & vbtab & "" & Math.Round(el_dem0, 1).ToString("n1") & "" & vbcrlf & doc.append("besparelse i energibehov" & vbtab & "" & saving & "" & vbcrlf & doc.append("samlet besparelsesprocent" & vbtab & "" & save_pct0 & "" & vbcrlf & doc.append("bygningen" & vbcrlf & doc.append("byggeår" & vbtab & "" & year & "" & vbcrlf & doc.append("etageareal" & vbtab & "" & area.tostring.replace(".", ",") & "" & vbtab & "m²" & vbcrlf & doc.append("etager" & vbtab & "" & Std.stories(stor) & "" & vbcrlf & doc.append("kælder" & vbtab & "" & Std.ground(gr) & "" & vbcrlf & doc.append("hustype" & vbtab & "" & Std.build_type(t0) & "" & vbcrlf & doc.append("orientering" & vbtab & "" & orient0 & "" & vbtab & "grader" & vbcrlf & doc.append("antal beboere" & vbtab & "" & people & "" & vbcrlf & Dim heat0 As String = Std.heating(heat) Dim n0 As Integer = heat0.indexof(", ") Dim n1 As Integer = heat0.length doc.append("opvarmning" & vbtab & "" & heat0.substring(0, n0) & "" & vbtab & "" & heat0.substring(n0 + 2, n1 - n0-2) & "" & vbcrlf & doc.append("supplerende opvarmning" & vbtab & "" & Std.NameSupHeat(ht_sup) & "" & vbcrlf & Dim sp As String = Be06.GetElement(xml, "BUILDING", "solarpanel") doc.append("solvarme" & vbtab & "" & GetInstalled(sp) & "" & vbcrlf & Dim hp0 As Integer = Be06.GetHeatPump(xml) doc.append("varmepumpe" & vbtab & "" & Std.VpType(hp_ex) & "" & vbcrlf & doc.append("oplyst eksisterende varmeforbrug" & vbcrlf & doc.append("varmeforbrug pr år" & vbtab & "" & cons.tostring("n0") & "" & vbtab & "" & unit & "" & vbcrlf & If ht_sup > 0 Then doc.append("supplerende varmeforbrug pr år" & vbtab & "" & cons_sup.tostring("n0") & "" & vbtab & "" & Std.NameSupFuel(fu_sup) & "" & vbcrlf & If heat <> 4 Then doc.append("energipris" & vbtab & "" & old_price & "" & vbtab & "kr" & vbcrlf & doc.append("el-pris" & vbtab & "" & el_price & "" & vbtab & "kr/kwh" Side 3

4 & vbcrlf & doc.append("varmeforbrug pr år" & vbtab & "" & cons_kr.tostring("n0") & "" & vbtab & "kr" & vbcrlf & doc.append("klimaskærm" & vbcrlf & Dim type As String = "" Dim n01 As XmlNode Dim Elements As XmlNodeList = xml.getelementsbytagname("opaque_const") For Each n01 In Elements Dim sfb As XmlElement = n01.item("sfb") If Not sfb Is Nothing Then Dim id0 As String = sfb.innertext Dim area0 As XmlElement = n01.item("area") If Not area0 Is Nothing Then Dim ae0 As String = area0.innertext.replace(".", ",") If ae0.length > 0 Then Dim wimp As Integer = 0 Dim impr As Boolean = id0.contains(be06.improvement) If impr Then Dim part As Integer = n01.item("part").innertext Dim typ As Integer = Std.GetTyp(part) wimp = Std.GetImp(part) Dim ae1 As Double = ae0 ae0 = Math.Round(ae1, 2).ToString("n1") If ae1 > 0.0 Then Dim name As String = n01.item("id").innertext If id0.contains(be06.wall) Or id0.contains(be06.wall_x) Or id0.contains(be06.wall_y) Then type = "Ydervæg" If id0.contains(be06.floor) Or id0.contains(be06.floor_x) Then type = "Gulv i stueetage" If id0.contains(be06.roof) Or id0.contains(be06.roof_x) Then type = "Loft" If id0.contains(be06.wall_45) Then type = "Skråvæg" If id0.contains(be06.wall_sk) Then type = "Skunkvæg" If id0.contains(be06.floor_sk) Then type = "Skunkgulv" If id0.contains(be06.roof_re) Then type = "Tagrem" type += ": " + name doc.append("" & type & "" & vbtab & "" & ae0 & "" & vbtab & "m²" & vbcrlf & Dim sum_a0 As Double = 0.0 Dim sum_a1 As Double = 0.0 Dim name0 As String = "" Dim impw As Integer = 0 Dim timp() As String = {"Ingen forbedring", "Forbedret til Minimum", "Forbedret til Lavenergi"} Elements = xml.getelementsbytagname("transp_constr") doc.append("vinduer" & vbcrlf & GetWindow(Elements, Be06.n_win, sum_a0, sum_a1, name0, impw) doc.append("vinduer, nord: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & Side 4

5 doc.append("vinduer, nord: " & name0 & ", " & timp(impw) & "" & GetWindow(Elements, Be06.n_win_x, sum_a0, sum_a1, name0, impw) doc.append("vinduer, nord: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("vinduer, nord: " & name0 & ", " & timp(impw) & "" & GetWindow(Elements, Be06.e_win, sum_a0, sum_a1, name0, impw) doc.append("vinduer, øst: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("vinduer, øst: " & name0 & ", " & timp(impw) & "" & GetWindow(Elements, Be06.e_win_x, sum_a0, sum_a1, name0, impw) doc.append("vinduer, øst: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("vinduer, øst: " & name0 & ", " & timp(impw) & "" & GetWindow(Elements, Be06.s_win, sum_a0, sum_a1, name0, impw) doc.append("vinduer, syd: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("vinduer, syd: " & name0 & ", " & timp(impw) & "" & GetWindow(Elements, Be06.s_win_x, sum_a0, sum_a1, name0, impw) doc.append("vinduer, syd: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("vinduer, syd: " & name0 & ", " & timp(impw) & "" & GetWindow(Elements, Be06.w_win, sum_a0, sum_a1, name0, impw) doc.append("vinduer, vest: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("vinduer, vest: " & name0 & ", " & timp(impw) & "" & Side 5

6 GetWindow(Elements, Be06.w_win_x, sum_a0, sum_a1, name0, impw) doc.append("vinduer, vest: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("vinduer, vest: " & name0 & ", " & timp(impw) & "" & GetWindow(Elements, Be06.n_win_rf, sum_a0, sum_a1, name0, impw) doc.append("ovenlysvinduer, nord: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("ovenlysvinduer, nord: " & name0 & ", " & timp(impw) & "" & vbtab & "" & Math.Round(sum_a1, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & GetWindow(Elements, Be06.v_win_rf, sum_a0, sum_a1, name0, impw) doc.append("ovenlysvinduer, øst, vest: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("ovenlysvinduer, øst, vest: " & name0 & ", " & timp(impw) & "" & vbtab & "" & Math.Round(sum_a1, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & GetWindow(Elements, Be06.s_win_rf, sum_a0, sum_a1, name0, impw) doc.append("ovenlysvinduer, syd: " & name0 & "" & vbtab & "" & Math.Round(sum_a0, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("ovenlysvinduer, syd: " & name0 & ", " & timp(impw) & "" & vbtab & "" & Math.Round(sum_a1, 2).ToString("n1") & "" & vbtab & "m²" & vbcrlf & doc.append("installationer" & vbcrlf & Elements = xml.getelementsbytagname("ventilation") For Each n01 In Elements Dim id As String = n01.item("id").innertext Dim part As Integer = n01.item("part").innertext Dim typ As Integer = part >> 2 Dim im As Integer = part - 4 * typ doc.append("ventilation" & vbtab & "" & id & ", " & timp(im) & "" & vbcrlf & Dim ht() As String = {"Kedel", "Fjernvarme", "El", "Naturgas"} If conv > 0 Then doc.append("varmeforsyning konverteret til" & vbtab & "" & ht(conv) & "" & vbcrlf & Dim ht_type As Integer = Be06.GetHeatType(xml) Elements = xml.getelementsbytagname("boiler") Dim imp As String = Be06.GetElement(xml, "HEATING_SYSTEMS", "id") Dim col As Integer = 0 If ht_type < 2 Then Side 6

7 If imp.contains("min") Then col = 1 If imp.contains("lav") Then col = 2 For Each n01 In Elements Dim id As String = n01.item("id").innertext If ht_type < 2 Then doc.append("" & ht(ht_type) & "" & vbtab & "" & id & ", " & timp(col) & "" & vbcrlf & doc.append("" & ht(ht_type) & "" & vbtab & "-" & vbcrlf & vbcrlf & Dim hp01 As Integer = Be06.GetHeatPump(xml) If hp0 > 0 Then doc.append("varmepumpe" & vbtab & "" & Std.VpType(hp01) & "" & vbcrlf & Dim active As Boolean = Be06.IsTrue(Be06.GetElement(xml, "BUILDING", "solarpanel")) Dim a0 As String = Be06.GetElement(xml, "SOLAR_COLLECTOR", "area").replace(".", ",") Dim as0 As Double = a0 If active And as0 > 0.0 Then Dim orient As String = Be06.GetElement(xml, "SOLAR_COLLECTOR", "orient").replace(".", ",") Dim slope As String = Be06.GetElement(xml, "SOLAR_COLLECTOR", "slope").replace(".", ",") doc.append("solvarme" & vbtab & "Areal " & a0 & " m², Orientering " & orient & ", Hældning " & slope & " grader" & vbcrlf & doc.append("<?xml version=""1.0"" encoding=""iso ""?>") doc.append("<?xml-stylesheet type=""text/xsl"" href=""be06doc.xsl""?>") doc.append("<be06doc subject=""dokumentation af energibesparelser for bygningen"" head=""videncenter for energibesparelser i bygninger"">") If split < 2 Then Dim owner As String = Be06.GetElement(xml, "DESCRIPT", "owner") Dim addr As String = Be06.GetElement(xml, "DESCRIPT", "addr1") Dim zip As String = Be06.GetElement(xml, "DESCRIPT", "addr2") If owner.length > 0 Or addr.length > 0 Or zip.length > 0 Then doc.append("<table head=""ejendommen " & _ addr & ", " & zip & ". Ejer: " & owner & """></table>") doc.append("<table head=""forventet varmebesparelse"">") If price > 0.0 Then If conv > 0 Then doc.append("<row><id>besparelse i varmeforbrug</id><value>beregnes ikke pga. varmekonvertering</value></row>") doc.append("<row><id>besparelse i varmeforbrug</id><value>" & fuel_cons & " " & fuel_unit & "</value></row>") doc.append("<row><id>økonomisk varmebesparelse</id><value>" & save_cons0 & " kr pr år</value></row>") doc.append("<row><id>besparelse i varmeforbrug</id><value>" & save_cons0 & "</value></row>") doc.append("</table>") Side 7

8 doc.append("<table head=""teoretisk beregnet energibehov"">") doc.append("<row><id>energibehov før forbedring</id><value>" & Math.Round(cons0, 1).ToString("n1") & " kwh/m² år</value></row>") doc.append("<row><id>heraf el-behov før forbedring</id><value>" & Math.Round(el0, 1).ToString("n1") & " kwh/m² år</value></row>") doc.append("<row><id>energibehov efter forbedring</id><value>" & dem0 & " kwh/m² år</value></row>") doc.append("<row><id>heraf el-behov efter forbedring</id><value>" & Math.Round(el_dem0, 1).ToString("n1") & " kwh/m² år</value></row>") 'doc.append("<row><id>besparelse i energibehov</id><value>" & String.Format("{0:0,0.00}", ) & " kwh/m² år</value></row>") doc.append("<row><id>besparelse i energibehov</id><value>" & saving & " kwh/m² år</value></row>") doc.append("<row><id>samlet besparelsesprocent</id><value>" & save_pct0 & "</value></row>") doc.append("</table>") doc.append("<table head=""bygningen"">") doc.append("<row><id>byggeår</id><value>" & year & "</value></row>") doc.append("<row><id>etageareal</id><value>" & area.tostring.replace(".", ",") & " m²</value></row>") doc.append("<row><id>etager</id><value>" & Std.stories(stor) & "</value></row>") doc.append("<row><id>kælder</id><value>" & Std.ground(gr) & "</value></row>") doc.append("<row><id>hustype</id><value>" & Std.build_type(t0) & "</value></row>") doc.append("<row><id>orientering</id><value>" & orient0 & " grader</value></row>") doc.append("<row><id>antal beboere</id><value>" & people & "</value></row>") doc.append("<row><id>opvarmning</id><value>" & Std.heating(heat) & "</value></row>") doc.append("<row><id>supplerende opvarmning</id><value>" & Std.NameSupHeat(ht_sup) & "</value></row>") Dim sp As String = Be06.GetElement(xml, "BUILDING", "solarpanel") doc.append("<row><id>solvarme</id><value>" & GetInstalled(sp) & "</value></row>") 'Dim hp As String = Be06.GetElement(xml, "BUILDING", "heatpump") Dim hp0 As Integer = Be06.GetHeatPump(xml) doc.append("<row><id>varmepumpe</id><value>" & Std.VpType(hp_ex) & "</value></row>") 'doc.append("<row><id>varmepumpe</id><value>" & GetInstalled(hp) & "</value></row>") doc.append("</table>") doc.append("<table head=""oplyst eksisterende varmeforbrug"">") doc.append("<row><id>varmeforbrug pr år</id><value>" & cons.tostring("n0") & " " & unit & "</value></row>") ' doc.append("<row><id>varmeforbrug pr år</id><value>" & cons & " " & unit & "</value></row>") If ht_sup > 0 Then doc.append("<row><id>supplerende varmeforbrug pr år</id><value>" & cons_sup.tostring("n0") & " " & Std.NameSupFuel(fu_sup) & "</value></row>") If heat <> 4 Then doc.append("<row><id>energipris</id><value>" & old_price & " kr</value></row>") doc.append("<row><id>el-pris</id><value>" & el_price & " kr/kwh</value></row>") doc.append("<row><id>varmeforbrug pr år</id><value>" & cons_kr.tostring("n0") & " kr</value></row>") Side 8

9 ' doc.append("<row><id>varmeforbrug pr år</id><value>" & cons_kr & " kr</value></row>") doc.append("</table>") If split <> 1 Then doc.append("<table head=""klimaskærm"">") Dim type As String = "" Dim n0 As XmlNode Dim Elements As XmlNodeList = xml.getelementsbytagname("opaque_const") For Each n0 In Elements Dim sfb As XmlElement = n0.item("sfb") If Not sfb Is Nothing Then Dim id0 As String = sfb.innertext Dim area0 As XmlElement = n0.item("area") If Not area0 Is Nothing Then Dim ae0 As String = area0.innertext.replace(".", ",") If ae0.length > 0 Then Dim wimp As Integer = 0 Dim impr As Boolean = id0.contains(be06.improvement) If impr Then Dim part As Integer = n0.item("part").innertext Dim typ As Integer = Std.GetTyp(part) wimp = Std.GetImp(part) Dim ae1 As Double = ae0 ae0 = Math.Round(ae1, 2).ToString("n1") If ae1 > 0.0 Then Dim name As String = n0.item("id").innertext If id0.contains(be06.wall) Or id0.contains(be06.wall_x) Or id0.contains(be06.wall_y) Then type = "Ydervæg" If id0.contains(be06.floor) Or id0.contains(be06.floor_x) Then type = "Gulv i stueetage" If id0.contains(be06.roof) Or id0.contains(be06.roof_x) Then type = "Loft" If id0.contains(be06.wall_45) Then type = "Skråvæg" If id0.contains(be06.wall_sk) Then type = "Skunkvæg" If id0.contains(be06.floor_sk) Then type = "Skunkgulv" If id0.contains(be06.roof_re) Then type = "Tagrem" type += ": " + name doc.append("<row><id color=""" & wimp & """>" & type & "</id><value>" & ae0 & " m²</value></row>") doc.append("</table>") Dim sum_a0 As Double = 0.0 Dim sum_a1 As Double = 0.0 Dim name0 As String = "" Dim impw As Integer = 0 Dim timp() As String = {"Ingen forbedring", "Forbedret til Minimum", "Forbedret til Lavenergi"} Side 9

10 Elements = xml.getelementsbytagname("transp_constr") doc.append("<table head=""vinduer"">") GetWindow(Elements, Be06.n_win, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, nord: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, nord: " GetWindow(Elements, Be06.n_win_x, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, nord: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, nord: " GetWindow(Elements, Be06.e_win, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, øst: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, øst: " GetWindow(Elements, Be06.e_win_x, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, øst: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, øst: " GetWindow(Elements, Be06.s_win, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, syd: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, syd: " GetWindow(Elements, Be06.s_win_x, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, syd: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, syd: " Side 10

11 GetWindow(Elements, Be06.w_win, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, vest: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, vest: " GetWindow(Elements, Be06.w_win_x, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">vinduer, vest: " & name0 & "</id><value>" & Math.Round(sum_a0, doc.append("<row><id color=""" & impw & """>Vinduer, vest: " GetWindow(Elements, Be06.n_win_rf, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">ovenlysvinduer, nord: " & name0 & "</id><value>" & Math.Round(sum_a0, 2).ToString("n1") & " m²</value></row>") doc.append("<row><id color=""" & impw & """>Ovenlysvinduer, nord: " GetWindow(Elements, Be06.v_win_rf, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">ovenlysvinduer, øst, vest: " & name0 & "</id><value>" & Math.Round(sum_a0, 2).ToString("n1") & " m²</value></row>") doc.append("<row><id color=""" & impw & """>Ovenlysvinduer, øst, vest: " GetWindow(Elements, Be06.s_win_rf, sum_a0, sum_a1, name0, impw) doc.append("<row><id color=""0"">ovenlysvinduer, syd: " & name0 & "</id><value>" & Math.Round(sum_a0, 2).ToString("n1") & " m²</value></row>") doc.append("<row><id color=""" & impw & """>Ovenlysvinduer, syd: " doc.append("</table>") doc.append("<table head=""installationer"">") Elements = xml.getelementsbytagname("ventilation") For Each n0 In Elements Dim id As String = n0.item("id").innertext Dim part As Integer = n0.item("part").innertext Dim typ As Integer = part >> 2 Dim im As Integer = part - 4 * typ doc.append("<row><id color=""" & im & Side 11

12 """>Ventilation</id><value>" & id & ", " & timp(im) & "</value></row>") Dim ht() As String = {"Kedel", "Fjernvarme", "El", "Naturgas"} If conv > 0 Then doc.append("<row><id color=""2"">varmeforsyning konverteret til</id><value>" & ht(conv) & "</value></row>") Dim ht_type As Integer = Be06.GetHeatType(xml) Elements = xml.getelementsbytagname("boiler") Dim imp As String = Be06.GetElement(xml, "HEATING_SYSTEMS", "id") Dim col As Integer = 0 If ht_type < 2 Then If imp.contains("min") Then col = 1 If imp.contains("lav") Then col = 2 For Each n0 In Elements Dim id As String = n0.item("id").innertext If ht_type < 2 Then doc.append("<row><id color=""" & col & """>" & ht(ht_type) & "</id><value>" & id & ", " & timp(col) & "</value></row>") doc.append("<row><id color=""0"">" & ht(ht_type) & "</id><value>-</value></row>") Dim hp0 As Integer = Be06.GetHeatPump(xml) If hp0 > 0 Then doc.append("<row><id color=""2"">varmepumpe</id><value>" & Std.VpType(hp0) & "</value></row>") Dim active As Boolean = Be06.IsTrue(Be06.GetElement(xml, "BUILDING", "solarpanel")) Dim a0 As String = Be06.GetElement(xml, "SOLAR_COLLECTOR", "area").replace(".", ",") Dim as0 As Double = a0 If active And as0 > 0.0 Then Dim orient As String = Be06.GetElement(xml, "SOLAR_COLLECTOR", "orient").replace(".", ",") Dim slope As String = Be06.GetElement(xml, "SOLAR_COLLECTOR", "slope").replace(".", ",") doc.append("<row><id color=""2"">solvarme</id><value>areal " & a0 & " m², Orientering " & orient & ", Hældning " & slope & " grader</value></row>") doc.append("</table>") doc.append("</be06doc>") Protected Sub SavePdf_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SavePdf.Click Dim doc As New StringBuilder Dim doc2 As New StringBuilder GetReport(doc, 1) GetReport(doc2, 2) Dim text As String = doc.tostring Dim text2 As String = doc2.tostring Dim dir As String = Request.PhysicalApplicationPath Dim fn As String = dir + "App_Data\be06doc.xsl" Dim PDFDoc As New PDFDocScout.PDFDocument Side 12

13 "CD56-0A59-E D-403") PDFDoc.GenerateInMemoryFile = True PDFDoc.AutoOpenGeneratedPDF = False PDFDoc.HTML2PDF_UseGDIPlusToLoadImages = True PDFDoc.BeginDocument() Dim xmldoc As New XmlDocument xmldoc.loadxml(text) Dim xslt As New XslCompiledTransform xslt.load(fn) Dim writer As New StringWriter xslt.transform(xmldoc, Nothing, writer) writer.close() Dim width As Long = PDFDoc.Page.Width Dim x0 As Long = width / 20 Dim height As Long = PDFDoc.Page.Height Dim y0 As Long = height / 20 PDFDoc.Page.AddHTMLBoxEx(writer.ToString, x0, y0, width - 2 * x0, height - y0, True, dir) PDFDoc.AddPage() xmldoc.loadxml(text2) Dim writer2 As New StringWriter xslt.transform(xmldoc, Nothing, writer2) writer2.close() PDFDoc.Pages(1).AddHTMLBoxEx(writer2.ToString, x0, y0, width - 2 * x0, -1, True, dir) PDFDoc.EndDocument() Dim size As Long = PDFDoc.BinaryImageSize Dim buffer(cint(size)) As Byte Dim MemoryImage As System.Array = PDFDoc.BinaryImage Array.Copy(MemoryImage, buffer, size) Response.Clear() Response.ContentType = "application/pdf" Response.AddHeader("content-disposition", "attachment; filename=be10.pdf") Response.BinaryWrite(buffer) Response.End() Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init If Not Page.IsPostBack Then Dim doc As New StringBuilder GetReport(doc, 0) Dim text As String = doc.tostring Xml1.DocumentContent = text Xml1.TransformSource = Path.Combine(Request.PhysicalApplicationPath, "App_Data\be06doc.xsl") Protected Sub SaveText_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SaveText.Click Dim csm As ClientScriptManager = Page.ClientScript Dim doc As New StringBuilder GetReport(doc, -1) Dim text As String = doc.tostring 'Response.Clear() 'Response.ClearHeaders() 'Response.ContentType = "text/txt; charset=iso " 'Response.AddHeader("content-disposition", "attachment; filename=be10res.txt") 'Dim n As Integer = text.length 'Dim xx(n) As Byte Side 13

14 'Dim m As Integer = 0 'For Each c As Char In text 'xx(m) = Asc(c) 'm += 1 ' 'Response. 'Response.BinaryWrite(xx) 'Response.End() ' csm.registerclientscriptblock(typeof(page), "copy", _ Dim type As System.Type = Page.GetType Dim cmd As String = _ "<script language=""javascript"" type=""text/javascript""> " + _ "window.clipboarddata.setdata(""text"", """ + text + "; " + "</script>" csm.registerclientscriptblock(type, "copy", _ "<script language=""javascript"" type=""text/javascript""> " + _ "window.clipboarddata.setdata(""text"", """ + text + "; " + "</script>") Protected Sub LinkKey_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkKey.Click Page.Response.Redirect("KeyPage.aspx") Protected Sub ImageHelp_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageHelp.Click Session.Item("PrevPage") = "ResPage.aspx" Page.Response.Redirect("HelpPage.aspx") Protected Sub ImageAbout_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageAbout.Click Session.Item("PrevPage") = "ResPage.aspx" Page.Response.Redirect("AboutPage.aspx") Protected Sub ButtonBack_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonBack.Click Page.Response.Redirect("Install2Page.aspx") 'Protected Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button.Click ' Page.Response.Redirect("WallPage.aspx") ' Protected Sub ButtonNew_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonNew.Click Dim xml As XmlDocument = New XmlDocument Dim doc As String = CType(Session("savexmldoc"), String) xml.loadxml(doc) Session.Item("wimp") = 0 Session.Item("xmldoc") = xml Page.Response.Redirect("WallPage.aspx") 'Protected Sub NewBuilding_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles NewBuilding.Click ' Session.Abandon() ' Page.Response.Redirect("Default.aspx") ' Protected Sub ImageMain_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageMain.Click Page.Response.Redirect("Default.aspx") Protected Sub ImageWall0_Click(ByVal sender As Object, ByVal e As Side 14

15 System.Web.UI.ImageClickEventArgs) Handles ImageWall0.Click Page.Response.Redirect("EnvPage.aspx") Protected Sub ImageWin0_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageWin0.Click Page.Response.Redirect("WinexPage.aspx") Protected Sub ImageInst0_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageInst0.Click Page.Response.Redirect("Inst2Page.aspx") Protected Sub ImageWall1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageWall1.Click Page.Response.Redirect("WallPage.aspx") Protected Sub ImageWin1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageWin1.Click Page.Response.Redirect("WinPage.aspx") Protected Sub ImageInst1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageInst1.Click Page.Response.Redirect("Install2Page.aspx") Protected Sub SaveModel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SaveModel.Click Dim xml As XmlDocument = New XmlDocument Dim conv As Integer = CType(Session("converted"), Integer) ' If conv > 0 Then ' Dim doc As String = CType(Session("prev_xmldoc"), String) ' xml.loadxml(doc) ' xml = CType(Session("xmldoc"), XmlDocument) ' Response.Clear() Response.ClearHeaders() Response.ContentType = "text/xml; charset=iso " Response.AddHeader("content-disposition", "attachment; filename=be10web.xml") 'Response.AddHeader("content-disposition", "inline; filename=be06web.xml") Dim model As String = xml.outerxml.replace(",", ".") 'Response.Write(Xml.OuterXml.Replace(",", ".")) Dim n As Integer = model.length Dim xx(n) As Byte Dim m As Integer = 0 For Each c As Char In model xx(m) = Asc(c) m += 1 Response.BinaryWrite(xx) Response.End() End Class Side 15

Xml Inst2 Page - Complete Education

Xml Inst2 Page - Complete Education Imports System.Xml Inst2Page.aspx Partial Class Inst2Form Inherits System.Web.UI.Page Protected Sub InitVent(ByRef XMLDoc As XmlDocument) For Each elem As String In Std.ventType Type1.Items.Add(elem) Dim

More information

Be06. Public Shared v_win_rf As String = "38.6." Public Shared improvement As String = ".01"

Be06. Public Shared v_win_rf As String = 38.6. Public Shared improvement As String = .01 Imports Microsoft.VisualBasic Imports System.Xml Be06 Public Class Be06 Declare Function Be06Keys Lib "d:\be06website\bin\be10eng.dll" Alias "Be06Keys" (ByVal model As String, ByVal mem As String, ByRef

More information

Visual Web Development

Visual Web Development Terry Marris November 2007 Visual Web Development 17 Classes We see how to create our own classes. 17.1 The Concept My friend is: ann small - 1.52 metres female pretty and generous Attributes are derived

More information

Form Tasarımı - 5. Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt

Form Tasarımı - 5. Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt Form Tasarımı - 5 Veri Tabanı Veri tabanı ismi; m Tablo ismi; mt Kodlar Imports System.Data Imports System.Data.OleDb Imports System.Xml Imports System.IO Public Class Form5 Dim yeni As OleDbConnection

More information

CRYSTAL REPORTS IN VISUAL STUDIO.NET 2003

CRYSTAL REPORTS IN VISUAL STUDIO.NET 2003 CRYSTAL REPORTS IN VISUAL STUDIO.NET 2003 By Srunokshi Kaniyur Prema Neelakantan This tutorial gives an introduction to creating Crystal reports in Visual Studio.Net 2003 and few of the features available

More information

CRM Setup Factory Installer V 3.0 Developers Guide

CRM Setup Factory Installer V 3.0 Developers Guide CRM Setup Factory Installer V 3.0 Developers Guide Who Should Read This Guide This guide is for ACCPAC CRM solution providers and developers. We assume that you have experience using: Microsoft Visual

More information

ClientAce WPF Project Example

ClientAce WPF Project Example Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed

More information

ResellerPlus - Bulk Http API Specification. (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

ResellerPlus - Bulk Http API Specification. (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System) RouteSms ResellerPlus - Bulk Http API Specification (Document Version 1.0.0) (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System) 1 P a g e HTTP API

More information

Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may

Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may Chapter 1 Many applications consist of one or more classes, each containing one or more methods. If you become part of a development team in industry, you may work on applications that contain hundreds,

More information

National Database System (NDS-32) Macro Programming Standards For Microsoft Word Annex - 8

National Database System (NDS-32) Macro Programming Standards For Microsoft Word Annex - 8 National Database System () Macro Programming Standards For Microsoft Word Annex - 8 02/28/2000 /10:23 AM ver.1.0.0 Doc. Id: RNMSWS softcopy : word page : 1/6 Objectives A well-defined system needs to

More information

Hi, processing. Code of the vb.net version. Imports System.Data Imports System.Data.SqlClient

Hi, processing. Code of the vb.net version. Imports System.Data Imports System.Data.SqlClient Hi, I m looking for someone with knowledge in ASP.net or (PHP?). I represent a nonprofit organization that named Ateljee (http://www.uwkringwinkel.be). We have a small application we use for registration

More information

Hands-On Lab. Client Workflow. Lab version: 1.0.0 Last updated: 2/23/2011

Hands-On Lab. Client Workflow. Lab version: 1.0.0 Last updated: 2/23/2011 Hands-On Lab Client Workflow Lab version: 1.0.0 Last updated: 2/23/2011 CONTENTS OVERVIEW... 3 EXERCISE 1: DEFINING A PROCESS IN VISIO 2010... 4 Task 1 Define the Timesheet Approval process... 4 Task 2

More information

The guide about TCP/IP connections between PC s and PLC s

The guide about TCP/IP connections between PC s and PLC s By Rasmus Frederiksen Contents: INTRO 2 OVERVIEW 2 THE GUIDE 2 THE PLC SIDE OF THE CONNECTION 2 THE PC SIDE OF THE CONNECTION 8 SOURCE REFERENCES 11 Intro I am studying to become a type of electrician

More information

Business Rule Based Configuration Management and Software System Implementation Using Decision Tables

Business Rule Based Configuration Management and Software System Implementation Using Decision Tables Business Rule Based Configuration Management and Software System Implementation Using Decision Tables Olegas Vasilecas, Aidas Smaizys Vilnius Gediminas Technical University, Sauletekio av. 11, LT-10223

More information

(Ch: 1) Building ASP.NET Pages. A. ASP.NET and the.net Framework B. Introducing ASP.NET Controls C. Adding Application logic to an ASP.

(Ch: 1) Building ASP.NET Pages. A. ASP.NET and the.net Framework B. Introducing ASP.NET Controls C. Adding Application logic to an ASP. (Ch: 1) Building ASP.NET Pages A. ASP.NET and the.net Framework B. Introducing ASP.NET Controls C. Adding Application logic to an ASP.NET Page D. the structure of an ASP.NET Page ASP.NET and the.net Framework

More information

Demonstration projects regarding Gas hybrid and Booster heat pumps. IEA Workshop Aarhus 4 May 2015 Svend Pedersen

Demonstration projects regarding Gas hybrid and Booster heat pumps. IEA Workshop Aarhus 4 May 2015 Svend Pedersen Demonstration projects regarding Gas hybrid and Booster heat pumps IEA Workshop Aarhus 4 May 2015 Svend Pedersen The Governments ambition for the Danish energy future Denmark fossil free in 2050 Heating

More information

The VB development environment

The VB development environment 2 The VB development environment This chapter explains: l how to create a VB project; l how to manipulate controls and their properties at design-time; l how to run a program; l how to handle a button-click

More information

EViews Database Extension Interface

EViews Database Extension Interface EViews Database Extension Interface September 23, 2014 Table of Contents Introduction... 2 Examples... 4 File Based Database... 4 XML Folder Based Database... 17 SQL Server Database... 39 Distributing

More information

Visual Basic Programming. An Introduction

Visual Basic Programming. An Introduction Visual Basic Programming An Introduction Why Visual Basic? Programming for the Windows User Interface is extremely complicated. Other Graphical User Interfaces (GUI) are no better. Visual Basic provides

More information

'========================================================================== ==== Scans a range of A/D Input Channels

'========================================================================== ==== Scans a range of A/D Input Channels ========================================================================== ==== File: Library Call Demonstrated: background mode Purpose: continuously array. Demonstration: channels. Other Library Calls:

More information

TRANSITION FROM TEACHING VB6 TO VB.NET

TRANSITION FROM TEACHING VB6 TO VB.NET TRANSITION FROM TEACHING VB6 TO VB.NET Azad Ali, Butler County Community College [email protected] David Wood, Robert Morris University [email protected] ABSTRACT The upgrade of Microsoft Visual Basic from version

More information

HEAT PUMPS AS A LINK BETWEEN INDUSTRY AND DISTRICT HEATING

HEAT PUMPS AS A LINK BETWEEN INDUSTRY AND DISTRICT HEATING HEAT PUMPS AS A LINK BETWEEN INDUSTRY AND DISTRICT HEATING Jesper Koch Head of Development and Analysis Green Energy Association / Danish District Heat Association [email protected] GREEN ENERGY IS

More information

Introduction. Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications

Introduction. Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications Introduction Why (GIS) Programming? Streamline routine/repetitive procedures Implement new algorithms Customize user applications 1 Computer Software Architecture Application macros and scripting - AML,

More information

Fuld Skolerapport for Hunderupskolen, i Odense kommune, for skoleår 2013/2014 for klassetrin(ene) 7. med reference Tilsvarende klassetrin i kommunen

Fuld Skolerapport for Hunderupskolen, i Odense kommune, for skoleår 2013/2014 for klassetrin(ene) 7. med reference Tilsvarende klassetrin i kommunen Side 1 af 43 Side 2 af 43 Side 3 af 43 Side 4 af 43 Side 5 af 43 Side 6 af 43 Side 7 af 43 Side 8 af 43 Side 9 af 43 Side 10 af 43 Side 11 af 43 Side 12 af 43 Side 13 af 43 Side 14 af 43 Side 15 af 43

More information

Fuld Skolerapport for Søhusskolen, i Odense kommune, for skoleår 2013/2014 for klassetrin(ene) 9. med reference Tilsvarende klassetrin i kommunen

Fuld Skolerapport for Søhusskolen, i Odense kommune, for skoleår 2013/2014 for klassetrin(ene) 9. med reference Tilsvarende klassetrin i kommunen Side 1 af 41 Side 2 af 41 Side 3 af 41 Side 4 af 41 Side 5 af 41 Side 6 af 41 Side 7 af 41 Side 8 af 41 Side 9 af 41 Side 10 af 41 Side 11 af 41 Side 12 af 41 Side 13 af 41 Side 14 af 41 Side 15 af 41

More information

Appendix B - VoIP SARRA Source Codes and Cisco XML Objects

Appendix B - VoIP SARRA Source Codes and Cisco XML Objects Appendix B - VoIP SARRA Source Codes and Cisco XML Objects 1. Background Code (Non-Interface) Class1.vb Imports Microsoft.VisualBasic Public Class Class1 'THIS CLASS STORES THE USER NAME, PASSWORD AND

More information

Socket Programming in C/C++

Socket Programming in C/C++ September 24, 2004 Contact Info Mani Radhakrishnan Office 4224 SEL email mradhakr @ cs. uic. edu Office Hours Tuesday 1-4 PM Introduction Sockets are a protocol independent method of creating a connection

More information

VB.NET - DATABASE ACCESS

VB.NET - DATABASE ACCESS VB.NET - DATABASE ACCESS http://www.tutorialspoint.com/vb.net/vb.net_database_access.htm Copyright tutorialspoint.com Applications communicate with a database, firstly, to retrieve the data stored there

More information

Professional Services. Plant Applications SDK Guidelines GE FANUC AUTOMATION. Prepared by. Donna Lui Professional Services

Professional Services. Plant Applications SDK Guidelines GE FANUC AUTOMATION. Prepared by. Donna Lui Professional Services GE FANUC AUTOMATION Professional Services Plant Applications SDK Guidelines Prepared by Donna Lui Professional Services GE Fanuc Automation SDK Guidelines Page 1 of 22 All rights reserved. No part of this

More information

Creating Form Rendering ASP.NET Applications

Creating Form Rendering ASP.NET Applications Creating Form Rendering ASP.NET Applications You can create an ASP.NET application that is able to invoke the Forms service resulting in the ASP.NET application able to render interactive forms to client

More information

php-crypto-params Documentation

php-crypto-params Documentation php-crypto-params Documentation Release 1.0.0 Gian Luca Dalla Torre January 17, 2016 Contents 1 Purpose 3 2 How it works 5 2.1 Documentation.............................................. 5 i ii php-crypto-params

More information

How to develop your own app

How to develop your own app How to develop your own app It s important that everything on the hardware side and also on the software side of our Android-to-serial converter should be as simple as possible. We have the advantage that

More information

Energy Supplier Obligation experiences. Dublin

Energy Supplier Obligation experiences. Dublin Energy Supplier Obligation experiences Dublin Lokalenergi: -Electricity sales -Consultancy services All customers segments All types of energy Energy labelling of buildings National auditor of building

More information

Lab 8: ASP.NET 2.0 Configuration API and Health Monitoring

Lab 8: ASP.NET 2.0 Configuration API and Health Monitoring Lab 8: ASP.NET 2.0 Configuration API and Health Monitoring Estimated time to complete this lab: 45 minutes ASP.NET 2.0 s configuration API fills a hole in ASP.NET 1.x by providing an easy-to-use and extensible

More information

VB.NET - WEB PROGRAMMING

VB.NET - WEB PROGRAMMING VB.NET - WEB PROGRAMMING http://www.tutorialspoint.com/vb.net/vb.net_web_programming.htm Copyright tutorialspoint.com A dynamic web application consists of either or both of the following two types of

More information

Credit Card Transactions

Credit Card Transactions 2549C15.qxd 05/21/2004 3:07 PM Page 549 CHAPTER 15 Credit Card Transactions THE LAST THING YOU need to do before launching the e-commerce site is enable credit card processing. In this chapter, we will

More information

Visual basic string search function, download source code visual basic 6.0 gratis. > Visit Now <

Visual basic string search function, download source code visual basic 6.0 gratis. > Visit Now < Visual basic string search function, download source code visual basic 6.0 gratis. > Visit Now < Visual studio 2010 c# coding standards microsoft visual studio 2012 ultimate kickass curso online de basic

More information

THE SET ANALYSIS. Summary

THE SET ANALYSIS. Summary THE SET ANALYSIS Summary 1 Why use the sets... 3 2 The identifier... 4 3 The operators... 4 4 The modifiers... 5 4.1 All members... 5 4.2 Known members... 6 4.3 Search string... 7 4.4 Using a boundary

More information

Bypassing ASP.NET ValidateRequest for Script Injection Attacks

Bypassing ASP.NET ValidateRequest for Script Injection Attacks WHITE PAPER Bypassing ASP.NET ValidateRequest for Script Injection Attacks By Richard Brain 21 st August 2008 Original version released to CPNI distribution on 13 th January 2006 Public updated version

More information

webcrm API Getting Started

webcrm API Getting Started webcrm API Getting Started 17.09.2012 / 08.12.2015 TS Contents.NET Application with autogenerated proxy class... 2.NET Application sending SOAP messages directly... 10 .NET Application with auto generated

More information

WA 2. GWT Martin Klíma

WA 2. GWT Martin Klíma WA 2 GWT Martin Klíma GWT What is it? Google Web Toolkig Compiler from Java to JavaScript + HTML Set of JavaScript and Java scripts / classes Development environment SDK Integration with IDE Eclipse, Netbeans,

More information

Finding XSS in Real World

Finding XSS in Real World Finding XSS in Real World by Alexander Korznikov [email protected] 1 April 2015 Hi there, in this tutorial, I will try to explain how to find XSS in real world, using some interesting techniques. All

More information

Extending XSLT with Java and C#

Extending XSLT with Java and C# Extending XSLT with Java and C# The world is not perfect. If it were, all data you have to process would be in XML and the only transformation language you would have to learn would XSLT. Because the world

More information

Tutorial básico del método AJAX con PHP y MySQL

Tutorial básico del método AJAX con PHP y MySQL 1 de 14 02/06/2006 16:10 Tutorial básico del método AJAX con PHP y MySQL The XMLHttpRequest object is a handy dandy JavaScript object that offers a convenient way for webpages to get information from servers

More information

Principles of Database Management Systems. Overview. Principles of Data Layout. Topic for today. "Executive Summary": here.

Principles of Database Management Systems. Overview. Principles of Data Layout. Topic for today. Executive Summary: here. Topic for today Principles of Database Management Systems Pekka Kilpeläinen (after Stanford CS245 slide originals by Hector Garcia-Molina, Jeff Ullman and Jennifer Widom) How to represent data on disk

More information

Visual Basic 2010 Essentials

Visual Basic 2010 Essentials Visual Basic 2010 Essentials Visual Basic 2010 Essentials First Edition 2010 Payload Media. This ebook is provided for personal use only. Unauthorized use, reproduction and/or distribution strictly prohibited.

More information

VB.NET - QUICK GUIDE VB.NET - OVERVIEW. Strong Programming Features VB.Net

VB.NET - QUICK GUIDE VB.NET - OVERVIEW. Strong Programming Features VB.Net VB.NET - QUICK GUIDE http://www.tutorialspoint.com/vb.net/vb.net_quick_guide.htm Copyright tutorialspoint.com VB.NET - OVERVIEW Visual Basic.NET (VB.NET) is an object-oriented computer programming language

More information

Deleting A Record... 26 Updating the Database... 27 Binding Data Tables to Controls... 27 Binding the Data Table to the Data Grid View...

Deleting A Record... 26 Updating the Database... 27 Binding Data Tables to Controls... 27 Binding the Data Table to the Data Grid View... 1 Table of Contents Chapter 9...4 Database and ADO.NET...4 9.1 Introduction to Database...4 Table Definitions...4 DDL and DML...5 Indexes, the Primary Key, and the Foreign Key...5 Index Uniqueness...5

More information

VB.NET INTERVIEW QUESTIONS

VB.NET INTERVIEW QUESTIONS VB.NET INTERVIEW QUESTIONS http://www.tutorialspoint.com/vb.net/vb.net_interview_questions.htm Copyright tutorialspoint.com Dear readers, these VB.NET Interview Questions have been designed specially to

More information

Decimal to Binary Conversion

Decimal to Binary Conversion Decimal to Binary Conversion A tool that makes the conversion of decimal values to binary values simple is the following table. The first row is created by counting right to left from one to eight, for

More information

UniFinger Engine SDK Manual (sample) Version 3.0.0

UniFinger Engine SDK Manual (sample) Version 3.0.0 UniFinger Engine SDK Manual (sample) Version 3.0.0 Copyright (C) 2007 Suprema Inc. Table of Contents Table of Contents... 1 Chapter 1. Introduction... 2 Modules... 3 Products... 3 Licensing... 3 Supported

More information

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010.

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio 2010. Lab version: 1.0.0. Last updated: 12/10/2010. Hands-On Lab Building a Data-Driven Master/Detail Business Form using Visual Studio 2010 Lab version: 1.0.0 Last updated: 12/10/2010 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: CREATING THE APPLICATION S

More information

bbc Developing Applications Using Interapplication Communication Adobe Acrobat SDK November 2006 Version 8.0

bbc Developing Applications Using Interapplication Communication Adobe Acrobat SDK November 2006 Version 8.0 bbc Developing Applications Using Interapplication Communication Adobe Acrobat SDK November 2006 Version 8.0 2006 Adobe Systems Incorporated. All rights reserved. Adobe Acrobat SDK 8.0 Developing Applications

More information

Module 6: Validating User Input

Module 6: Validating User Input Module 6: Validating User Input Contents Overview 1 Multimedia: Validating User Input 2 Lesson: Restricting User Input 4 Lesson: Validating Field Data 17 Lesson: Validating Form Data 29 Review 36 Lab 6.1:

More information

Ambientes de Desenvolvimento Avançados

Ambientes de Desenvolvimento Avançados Ambientes de Desenvolvimento Avançados http://www.dei.isep.ipp.pt/~jtavares/adav/adav.htm Aula 17 Engenharia Informática 2006/2007 José António Tavares [email protected] 1.NET Web Services: Construção de

More information

Changing the Display Frequency During Scanning Within an ImageControls 3 Application

Changing the Display Frequency During Scanning Within an ImageControls 3 Application Changing the Display Frequency During Scanning Within an ImageControls 3 Date November 2008 Applies To Kofax ImageControls 2x, 3x Summary This application note contains example code for changing he display

More information

OnTime Web Services User Guide

OnTime Web Services User Guide OnTime Web Services User Guide OnTime offers a set of SOAP based XML Web Services built on open standards, which allow third party applications and web sites to communicate seamlessly and in real-time

More information

RSS Feed from an Access Database

RSS Feed from an Access Database RSS Feed from an Access Database Scott Savage (2005) RSS stands for Really Simple Syndication and it is the latest way to keep up to date on the internet. Essentially it is an XML feed that contains data

More information

1.00 Lecture 1. Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders

1.00 Lecture 1. Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders 1.00 Lecture 1 Course Overview Introduction to Java Reading for next time: Big Java: 1.1-1.7 Course information Course staff (TA, instructor names on syllabus/faq): 2 instructors, 4 TAs, 2 Lab TAs, graders

More information

Schematron Validation and Guidance

Schematron Validation and Guidance Schematron Validation and Guidance Schematron Validation and Guidance Version: 1.0 Revision Date: July, 18, 2007 Prepared for: NTG Prepared by: Yunhao Zhang i Schematron Validation and Guidance SCHEMATRON

More information

ACE 2011 International. Role Based Clients. aras.com

ACE 2011 International. Role Based Clients. aras.com ACE 2011 International Role Based Clients Copyright 2011 Aras All Rights Reserved. Session Goals Define Role Based and Application Specific Clients Discuss When can and Why should they be used Tutorial

More information

How-To Guide. SigCard1 (With Microsoft Access) Demo. Copyright Topaz Systems Inc. All rights reserved.

How-To Guide. SigCard1 (With Microsoft Access) Demo. Copyright Topaz Systems Inc. All rights reserved. How-To Guide SigCard1 (With Microsoft Access) Demo Copyright Topaz Systems Inc. All rights reserved. For Topaz Systems, Inc. trademarks and patents, visit www.topazsystems.com/legal. Table of Contents

More information

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007

Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 Object-Oriented Design Lecture 4 CSU 370 Fall 2007 (Pucella) Tuesday, Sep 18, 2007 The Java Type System By now, you have seen a fair amount of Java. Time to study in more depth the foundations of the language,

More information

VB.NET Programming Fundamentals

VB.NET Programming Fundamentals Chapter 3 Objectives Programming Fundamentals In this chapter, you will: Learn about the programming language Write a module definition Use variables and data types Compute with Write decision-making statements

More information

Capturx for SharePoint 2.0: Notification Workflows

Capturx for SharePoint 2.0: Notification Workflows Capturx for SharePoint 2.0: Notification Workflows 1. Introduction The Capturx for SharePoint Notification Workflow enables customers to be notified whenever items are created or modified on a Capturx

More information

Java CPD (I) Frans Coenen Department of Computer Science

Java CPD (I) Frans Coenen Department of Computer Science Java CPD (I) Frans Coenen Department of Computer Science Content Session 1, 12:45-14:30 (First Java Programme, Inheritance, Arithmetic) Session 2, 14:45-16:45 (Input and Programme Constructs) Materials

More information

Design of Conveyor Monitoring Controller with Wireless System

Design of Conveyor Monitoring Controller with Wireless System Design of Conveyor Monitoring Controller with Wireless System Mrs.Sheeja S.Suresh 1, Mr.P.H.Rangaree 2 1 Research scholar, G.H.Raisoni College of Engg./Electronics, Nagpur, India Email: [email protected]

More information

Package retrosheet. April 13, 2015

Package retrosheet. April 13, 2015 Type Package Package retrosheet April 13, 2015 Title Import Professional Baseball Data from 'Retrosheet' Version 1.0.2 Date 2015-03-17 Maintainer Richard Scriven A collection of tools

More information

Portal Connector Fields and Widgets Technical Documentation

Portal Connector Fields and Widgets Technical Documentation Portal Connector Fields and Widgets Technical Documentation 1 Form Fields 1.1 Content 1.1.1 CRM Form Configuration The CRM Form Configuration manages all the fields on the form and defines how the fields

More information

10CS73:Web Programming

10CS73:Web Programming 10CS73:Web Programming Question Bank Fundamentals of Web: 1.What is WWW? 2. What are domain names? Explain domain name conversion with diagram 3.What are the difference between web browser and web server

More information

How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET

How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET How To: Create a Crystal Report from ADO.NET Dataset using Visual Basic.NET See also: http://support.businessobjects.com/communitycs/technicalpapers/rtm_reporting offadonetdatasets.pdf http://www.businessobjects.com/products/dev_zone/net_walkthroughs.asp

More information

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 6 Professional Graduate Diploma in IT WEB ENGINEERING

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 6 Professional Graduate Diploma in IT WEB ENGINEERING BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 6 Professional Graduate Diploma in IT WEB ENGINEERING Wednesday 26 th March 2014 - Morning Answer any THREE questions out

More information

Technology Foundations. Conan C. Albrecht, Ph.D.

Technology Foundations. Conan C. Albrecht, Ph.D. Technology Foundations Conan C. Albrecht, Ph.D. Overview 9. Human Analysis Reports 8. Create Reports 6. Import Data 7. Primary Analysis Data Warehouse 5. Transfer Data as CSV, TSV, or XML 1. Extract Data

More information

A SharePoint Developer Introduction. Hands-On Lab. Lab Manual SPCHOL306 Using Silverlight with the Client Object Model VB

A SharePoint Developer Introduction. Hands-On Lab. Lab Manual SPCHOL306 Using Silverlight with the Client Object Model VB A SharePoint Developer Introduction Hands-On Lab Lab Manual SPCHOL306 Using Silverlight with the Client Object Model VB This document is provided as-is. Information and views expressed in this document,

More information

Printer Connection Manager

Printer Connection Manager IT DIRECT Printer Connection Manager Information Technology Direct Limited PO Box 33-1406 Auckland NZ Table of Contents OVERVIEW...2 SETUP INSTRUCTIONS:...3 INSTALLATION...5 Install with New Settings.xml

More information

gomobi Traffic Switching Guide Version 0.9, 28 September 2010

gomobi Traffic Switching Guide Version 0.9, 28 September 2010 gomobi Traffic Switching Guide Version 0.9, 28 September 2010 Mobile/Desktop Traffic Switching... 3 Summary of Options... 3 Single Site Solutions... 4 Server-side Switching Code... 4 JavaScript Switching

More information

MAPINFO GRID ENGINE. MapBasic scripts. MIGRID.DLL functions. using. Jacques Paris

MAPINFO GRID ENGINE. MapBasic scripts. MIGRID.DLL functions. using. Jacques Paris MAPINFO GRID ENGINE MapBasic scripts using MIGRID.DLL functions Jacques Paris September 2001 This document contains 4 MapBasic code listings showing how to use calls to the MiGrid library. These examples

More information

USER GUIDE Appointment Manager

USER GUIDE Appointment Manager 2011 USER GUIDE Appointment Manager 0 Suppose that you need to create an appointment manager for your business. You have a receptionist in the front office and salesmen ready to service customers. Whenever

More information

Still Aren't Doing. Frank Kim

Still Aren't Doing. Frank Kim Ten Things Web Developers Still Aren't Doing Frank Kim Think Security Consulting Background Frank Kim Consultant, Think Security Consulting Security in the SDLC SANS Author & Instructor DEV541 Secure Coding

More information

(Document Version 1.4) (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

(Document Version 1.4) (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System) (Document Version 1.4) (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System) HTTP SSL API to submit messages on SMPP: https://:/bulksms/bulkpush?

More information

JAXB Tips and Tricks Part 2 Generating Java Classes from XML Schema. By Rob Ratcliff

JAXB Tips and Tricks Part 2 Generating Java Classes from XML Schema. By Rob Ratcliff JAXB Tips and Tricks Part 2 Generating Java Classes from XML Schema By Rob Ratcliff What is JAXB? Java Architecture for XML Binding Maps an XML Schema into Java Objects Experimental support for DTD, RelaxNG

More information

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013 Masters programmes in Computer Science and Information Systems Object-Oriented Design and Programming Sample module entry test xxth December 2013 This sample paper has more questions than the real paper

More information

ComponentOne. Windows for WPF

ComponentOne. Windows for WPF ComponentOne Windows for WPF Copyright 1987-2012 GrapeCity, Inc. All rights reserved. ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Internet: [email protected]

More information

Bob's Place Media Engineering's ISY Insteon Plug-in User Guide Version 4.0

Bob's Place Media Engineering's ISY Insteon Plug-in User Guide Version 4.0 Bob's Place Media Engineering's ISY Insteon Plug-in User Guide Version 4.0 Copyright 2009-2012 Bob's Place Media Engineering. All Rights Reserved. The ISY Insteon Plug-in allows for bi-directional communication

More information

API. Application Programmers Interface document. For more information, please contact: Version 2.01 Aug 2015

API. Application Programmers Interface document. For more information, please contact: Version 2.01 Aug 2015 API Application Programmers Interface document Version 2.01 Aug 2015 For more information, please contact: Technical Team T: 01903 228100 / 01903 550242 E: [email protected] Page 1 Table of Contents Overview...

More information

ASP.NET Dynamic Data

ASP.NET Dynamic Data 30 ASP.NET Dynamic Data WHAT S IN THIS CHAPTER? Building an ASP.NET Dynamic Data application Using dynamic data routes Handling your application s display ASP.NET offers a feature that enables you to dynamically

More information

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 Oct 4, 2013, p 1 Name: CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 1. (max 18) 4. (max 16) 2. (max 12) 5. (max 12) 3. (max 24) 6. (max 18) Total: (max 100)

More information

QUALITY LED TUBES. El-besparelse på op til 62 procent. Patenteret sikkerhedskreds i LED-driver

QUALITY LED TUBES. El-besparelse på op til 62 procent. Patenteret sikkerhedskreds i LED-driver HIGH Made in Denmark QUALITY El-besparelse på op til 62 procent 5 års garanti Over 100.000 brændtimer Op til 150 lumen pr. Watt Patenteret sikkerhedskreds i LED-driver Model No. 12-830-20-1-DK 12-830-20-3-DK

More information

EDI Advantage Integration SO-1184

EDI Advantage Integration SO-1184 EDI Advantage Integration SO-1184 Overview This Extended Solution to the standard MAS 90 MAS 200 Sales Order module adds support for the EDI Advantage program from Kissinger Associates. Installation Before

More information