home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // Inventory.rep - Mugs Sample Application
- //
- // The Mugs application uses this report to display
- // current inventory amounts grouped by supplier.
- //
- // Dependencies: CONNECT.DMD
- // Inventory.dbf
- // Supplier.dbf
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.6 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
-
- SET TALK OFF
- ** END HEADER -- do not remove this line
- //
- // Generated on 10/09/97
- //
- local r
- r = new INVENTORYReport()
- r.render()
-
- class INVENTORYReport of REPORT
- with (this)
- title = "Inventory"
- scaleFontSize = 8
- scaleFontBold = false
- endwith
-
-
- this.DMCONNECT = new DATAMODREF()
- this.DMCONNECT.parent = this
- with (this.DMCONNECT)
- filename = "connect.dmd"
- dataModClass = "ConnectDataModule"
- share = 0
- active = true
- left = 0
- top = 0
- endwith
-
-
- this.INVENTORY1 = new QUERY()
- this.INVENTORY1.parent = this
- with (this.INVENTORY1)
- left = 500
- top = 0
- database = form.DMCONNECT.ref.dbmugs
- sql = 'SELECT Inventory."Item ID", Inventory.DESCRIPTION, Inventory.QTY, Supplier.COMPANY FROM "inventory.dbf" Inventory INNER JOIN "supplier.dbf" Supplier ON (Inventory."Supplier ID" = Supplier."Supplier ID") ORDER BY COMPANY'
- requestLive = false
- active = true
- endwith
-
-
-
-
- this.PAGETEMPLATE1 = new PAGETEMPLATE(this)
- with (this.PAGETEMPLATE1)
- height = 15840
- width = 12240
- marginTop = 1080
- marginLeft = 1080
- marginBottom = 1080
- marginRight = 1080
- gridLineWidth = 0
- endwith
-
-
- this.PAGETEMPLATE1.STREAMFRAME1 = new STREAMFRAME(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.STREAMFRAME1)
- height = 11592
- left = 360
- top = 1368
- width = 9360
- metric = 1
- form.STREAMFRAME1 = form.pagetemplate1.streamframe1
- endwith
-
-
- this.PAGETEMPLATE1.TEXT1 = new TEXT(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.TEXT1)
- height = 555
- left = 205
- top = 205
- width = 5611
- metric = 1
- colorNormal = "BtnText"
- alignVertical = 1
- alignHorizontal = 1
- fontName = "Times New Roman"
- fontSize = 8
- text = "<h1>Inventory by Supplier</h1>"
- form.TEXT1 = form.pagetemplate1.text1
- endwith
-
-
- this.PAGETEMPLATE1.TEXTDATE = new TEXT(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.TEXTDATE)
- height = 161
- left = 360
- top = 795
- width = 1000
- metric = 1
- colorNormal = "BtnText"
- fontSize = 8
- fontBold = true
- text = {||Date()}
- form.TEXTDATE = form.pagetemplate1.textdate
- endwith
-
-
- this.PAGETEMPLATE1.TEXT3 = new TEXT(this.PAGETEMPLATE1)
- with (this.PAGETEMPLATE1.TEXT3)
- height = 161
- left = 360
- top = 13140
- width = 856
- metric = 1
- colorNormal = "BtnText"
- fontSize = 8
- fontBold = true
- text = {||this.Parent.Parent.ReportPage}
- form.TEXT3 = form.pagetemplate1.text3
- endwith
-
- this.STREAMSOURCE1 = new STREAMSOURCE(this)
-
-
-
- this.STREAMSOURCE1.GROUP1 = new GROUP(this.STREAMSOURCE1)
- with (this.STREAMSOURCE1.GROUP1)
- groupBy = "COMPANY"
- endwith
-
-
-
-
-
- this.STREAMSOURCE1.GROUP1.headerBand.LINE1 = new LINE(this.STREAMSOURCE1.GROUP1.headerBand)
- with (this.STREAMSOURCE1.GROUP1.headerBand.LINE1)
- canRender = {||this.parent.context == 0}
- right = 4000
- top = 100
- bottom = 100
- width = 1
- noShade = true
- metric = 1
- colorNormal = "WindowText"
- endwith
-
-
- this.STREAMSOURCE1.GROUP1.headerBand.TEXT1 = new TEXT(this.STREAMSOURCE1.GROUP1.headerBand)
- with (this.STREAMSOURCE1.GROUP1.headerBand.TEXT1)
- height = 255
- top = 195
- width = 4680
- metric = 1
- variableHeight = true
- colorNormal = "b+"
- fontSize = 8
- fontBold = true
- text = {||"<H3>Supplier: "+this.parent.parent.parent.rowset.fields["COMPANY"].value + "</H3>"}
- endwith
-
-
-
-
-
- this.STREAMSOURCE1.GROUP1.footerBand.TEXT1 = new TEXT(this.STREAMSOURCE1.GROUP1.footerBand)
- with (this.STREAMSOURCE1.GROUP1.footerBand.TEXT1)
- height = 250
- left = 1000
- width = 1500
- metric = 1
- colorNormal = "b+"
- fontSize = 8
- fontBold = true
- text = "Sum of Qty: "
- endwith
-
-
- this.STREAMSOURCE1.GROUP1.footerBand.TEXT2 = new TEXT(this.STREAMSOURCE1.GROUP1.footerBand)
- with (this.STREAMSOURCE1.GROUP1.footerBand.TEXT2)
- height = 250
- left = 2600
- width = 1400
- metric = 1
- variableHeight = true
- colorNormal = "b+"
- alignHorizontal = 2
- picture = "999,999,999"
- fontSize = 8
- fontBold = true
- text = {||this.Parent.Parent.agSum({||this.Parent.Rowset.Fields["QTY"].Value})}
- endwith
-
-
-
-
-
- this.STREAMSOURCE1.detailBand.TITLEITEMID1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLEITEMID1)
- canRender = {||this.parent.firstOnFrame}
- height = 275
- width = 980
- metric = 1
- colorNormal = "BtnText"
- alignHorizontal = 2
- suppressIfBlank = true
- fontSize = 8
- fontBold = true
- text = "<H3>Item ID</H3>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUEITEMID = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUEITEMID)
- height = 1
- top = 300
- width = 980
- metric = 1
- variableHeight = true
- colorNormal = "BtnText"
- alignHorizontal = 2
- picture = "99999999"
- fontSize = 8
- text = {||this.Form.inventory1.Rowset.Fields["Item ID"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLEDESCRIPTION1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLEDESCRIPTION1)
- canRender = {||this.parent.firstOnFrame}
- height = 275
- left = 1125
- width = 1500
- metric = 1
- colorNormal = "BtnText"
- suppressIfBlank = true
- fontSize = 8
- fontBold = true
- text = "<H3>Description</H3>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUEDESCRIPTION = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUEDESCRIPTION)
- height = 1
- left = 1125
- top = 300
- width = 2000
- metric = 1
- variableHeight = true
- colorNormal = "BtnText"
- fontSize = 8
- text = {||this.Form.inventory1.Rowset.Fields["DESCRIPTION"].Value}
- endwith
-
-
- this.STREAMSOURCE1.detailBand.TITLEQTY1 = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.TITLEQTY1)
- canRender = {||this.parent.firstOnFrame}
- height = 275
- left = 3000
- width = 980
- metric = 1
- colorNormal = "BtnText"
- alignHorizontal = 2
- suppressIfBlank = true
- fontSize = 8
- fontBold = true
- text = "<H3>Qty</H3>"
- endwith
-
-
- this.STREAMSOURCE1.detailBand.VALUEQTY = new TEXT(this.STREAMSOURCE1.detailBand)
- with (this.STREAMSOURCE1.detailBand.VALUEQTY)
- height = 1
- left = 3000
- top = 300
- width = 980
- metric = 1
- variableHeight = true
- colorNormal = "BtnText"
- alignHorizontal = 2
- picture = "999,999,999"
- fontSize = 8
- text = {||this.Form.inventory1.Rowset.Fields["QTY"].Value}
- endwith
-
-
- with (this.printer)
- duplex = 1
- orientation = 1
- paperSource = 15
- paperSize = 1
- resolution = 4
- color = 2
- trueTypeFonts = 2
- endwith
-
-
-
-
-
-
-
-
-
-
- this.reportGroup.footerBand.TEXT1 = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.TEXT1)
- height = 250
- left = 1000
- top = 50
- width = 1500
- metric = 1
- colorNormal = "b+"
- fontSize = 8
- fontBold = true
- text = "<b>Total Inventory</b>"
- endwith
-
-
- this.reportGroup.footerBand.TEXT2 = new TEXT(this.reportGroup.footerBand)
- with (this.reportGroup.footerBand.TEXT2)
- height = 250
- left = 2600
- top = 50
- width = 1400
- metric = 1
- variableHeight = true
- colorNormal = "b+"
- alignHorizontal = 2
- picture = "999,999,999"
- fontSize = 8
- fontBold = true
- text = {||this.Parent.Parent.agSum({||this.Parent.STREAMSOURCE1.Rowset.Fields["QTY"].Value})}
- endwith
-
-
- this.firstPageTemplate = this.form.pagetemplate1
- this.form.pagetemplate1.nextPageTemplate = this.form.pagetemplate1
- this.form.pagetemplate1.streamframe1.streamSource = this.form.STREAMSOURCE1
- this.form.STREAMSOURCE1.rowset = this.form.inventory1.rowset
- endclass
-