home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / progs / ite / ite10d1.exe / DATA.Z / EVENTS1.JRP < prev    next >
Encoding:
Text File  |  1996-09-07  |  6.9 KB  |  263 lines

  1. /****************************************************************************\
  2. *                                                                            *
  3. * Events1.jrp  --  Contact Management Report by Type of Call                 *
  4. *                                                                            *
  5. * Events1.jrp is part of the Contact Management solution application.        *
  6. * It lists the existing event (or call) entries, in order by the person      *
  7. * who initiated the contact and then by the type of contact made.            *
  8. *                                                                            *
  9. * Dependencies:  bkgnd.gif                                                   *
  10. *                eventlog.gif                                                  *
  11. *                barsep.gif                                                  *
  12. *                                                                            *
  13. * Links to:      ibapps/contacts/index.htm                                   *
  14. *                                                                            *
  15. * Copyright (c) 1996, Borland International, Inc. All rights reserved.       *
  16. *                                                                            *
  17. \****************************************************************************/
  18. // {End Header} Do not remove this comment//
  19. // Generated on 08/23/96
  20. //
  21. var r = new EVENTS1Report();
  22. if (EVENTS1.arguments.length == 2) {
  23.    r.startPage = EVENTS1.arguments[0];
  24.    r.endPage = EVENTS1.arguments[1];
  25. }
  26. r.render();
  27. class EVENTS1Report extends Report {
  28.    with (this) {
  29.       title = "Events by ContBy";
  30.       linkText = "Next Page";
  31.    }
  32.  
  33.  
  34.    with (this.contactsdb = new Database()){
  35.       left = 0;
  36.       top = 0;
  37.       databaseName = "CONTACTS";
  38.       active = true;
  39.    }
  40.  
  41.  
  42.    with (this.events1 = new Query()){
  43.       left = 5;
  44.       top = 0;
  45.       database = parent.contactsdb;
  46.       sql = "SELECT * FROM Events                                 ORDER BY ContBy,ContType,CONTEND";
  47.       active = true;
  48.    }
  49.  
  50.  
  51.    with (this.events1.rowset) {
  52.  
  53.    }
  54.  
  55.  
  56.    with (this.streamSource1 = new StreamSource(this)){
  57.  
  58.    }
  59.  
  60.  
  61.    with (this.streamSource1.group3 = new Group(this.streamSource1)){
  62.       groupBy = "ContBy";
  63.    }
  64.  
  65.  
  66.    with (this.streamSource1.group3.headerBand) {
  67.       height = 205;
  68.    }
  69.  
  70.  
  71.    with (this.streamSource1.group3.headerBand.Contby = new HTML(this.streamSource1.group3.headerBand)){
  72.       height = 255;
  73.       width = 1440;
  74.       variableHeight = true;
  75.       color = "blue";
  76.       suppressIfDuplicate = true;
  77.       text = {||this.form.events1.rowset.fields["ContBy"].value};
  78.    }
  79.  
  80.  
  81.    with (this.streamSource1.group3.footerBand) {
  82.       height = 50;
  83.    }
  84.  
  85.  
  86.    with (this.streamSource1.group4 = new Group(this.streamSource1)){
  87.       groupBy = "ContType";
  88.    }
  89.  
  90.  
  91.    with (this.streamSource1.group4.headerBand) {
  92.       height = 250;
  93.    }
  94.  
  95.  
  96.    with (this.streamSource1.group4.headerBand.Conttype = new HTML(this.streamSource1.group4.headerBand)){
  97.       height = 255;
  98.       left = 315;
  99.       width = 2580;
  100.       variableHeight = true;
  101.       color = "black";
  102.       text = {||this.form.events1.rowset.fields["ContType"].value};
  103.    }
  104.  
  105.  
  106.    with (this.streamSource1.group4.footerBand) {
  107.       height = 250;
  108.    }
  109.  
  110.  
  111.    with (this.streamSource1.group1 = new Group(this.streamSource1)){
  112.       groupBy = "CONTEND";
  113.    }
  114.  
  115.  
  116.    with (this.streamSource1.group1.headerBand) {
  117.       height = 0;
  118.    }
  119.  
  120.  
  121.    with (this.streamSource1.group1.footerBand) {
  122.       height = 0;
  123.    }
  124.  
  125.  
  126.    with (this.streamSource1.detailBand) {
  127.       height = 0;
  128.    }
  129.  
  130.  
  131.    with (this.streamSource1.detailBand.HTML2 = new HTML(this.streamSource1.detailBand)){
  132.       height = 1;
  133.       left = 560;
  134.       width = 1492;
  135.       variableHeight = true;
  136.       color = "black";
  137.       fontBold = false;
  138.       text = {||this.form.events1.rowset.fields["ContName"].value};
  139.    }
  140.  
  141.  
  142.    with (this.streamSource1.detailBand.HTML5 = new HTML(this.streamSource1.detailBand)){
  143.       height = 61;
  144.       left = 3749;
  145.       width = 3667;
  146.       variableHeight = true;
  147.       color = "black";
  148.       fontBold = false;
  149.       text = {||this.form.events1.rowset.fields["Description"].value};
  150.    }
  151.  
  152.  
  153.    with (this.streamSource1.detailBand.contend1 = new HTML(this.streamSource1.detailBand)){
  154.       height = 255;
  155.       left = 2180;
  156.       width = 1440;
  157.       variableHeight = true;
  158.       color = "black";
  159.       fontBold = false;
  160.       text = {||this.form.events1.rowset.fields["CONTEND"].value};
  161.    }
  162.  
  163.  
  164.    with (this.pageTemplate1 = new PageTemplate(this)){
  165.       height = 16710;
  166.       width = 12240;
  167.       marginTop = 210;
  168.       marginLeft = 1080;
  169.       marginBottom = 1080;
  170.       marginRight = 1080;
  171.       gridLineWidth = 0;
  172.       background = "filename bkgnd.gif";
  173.    }
  174.  
  175.  
  176.    with (this.pageTemplate1.streamFrame1 = new StreamFrame(this.pageTemplate1)){
  177.       height = 11376;
  178.       left = 390;
  179.       top = 1374;
  180.       width = 9360;
  181.    }
  182.  
  183.  
  184.    with (this.pageTemplate1.HTML2 = new HTML(this.pageTemplate1)){
  185.       height = 250;
  186.       left = 360;
  187.       top = 785;
  188.       width = 5925;
  189.       color = "blue";
  190.       fontPointSize = 11;
  191.       text = {||"Sorted by Employee && Contact Type - " + new Date()};
  192.    }
  193.  
  194.  
  195.    with (this.pageTemplate1.image1 = new Image(this.pageTemplate1)){
  196.       height = 650;
  197.       left = 360;
  198.       top = 135;
  199.       width = 2460;
  200.       dataSource = "filename EVENTLOG.GIF";
  201.       alignment = 4;
  202.    }
  203.  
  204.  
  205.    with (this.pageTemplate1.image2 = new Image(this.pageTemplate1)){
  206.       height = 155;
  207.       left = 360;
  208.       top = 1125;
  209.       width = 7965;
  210.       dataSource = "filename BARSEP.GIF";
  211.       alignment = 4;
  212.    }
  213.  
  214.  
  215.    with (this.printer) {
  216.       duplex = 1;
  217.       orientation = 1;
  218.       paperSource = 7;
  219.       paperSize = 1;
  220.       resolution = 4;
  221.       color = 1;
  222.       trueTypeFonts = 3;
  223.    }
  224.  
  225.  
  226.    with (this.reportGroup) {
  227.       groupBy = "";
  228.    }
  229.  
  230.  
  231.    with (this.reportGroup.headerBand) {
  232.       height = 0;
  233.    }
  234.  
  235.  
  236.    with (this.reportGroup.footerBand) {
  237.       height = 350;
  238.    }
  239.  
  240.  
  241.    with (this.reportGroup.footerBand.HTML1 = new HTML(this.reportGroup.footerBand)){
  242.       height = 240;
  243.       top = 150;
  244.       width = 7440;
  245.       color = "black";
  246.       text = '<FONT COLOR="blue">Click <A HREF= "/svr/intrasrv.isv?apps/contacts/events.jfm">here</A> to return to Events Log.</FONT>';
  247.    }
  248.  
  249.  
  250.    with (this.reportGroup.footerBand.image3 = new Image(this.reportGroup.footerBand)){
  251.       height = 155;
  252.       width = 7965;
  253.       dataSource = "filename BARSEP.GIF";
  254.       alignment = 4;
  255.    }
  256.  
  257.    this.firstPageTemplate = this.form.pageTemplate1
  258.    this.form.pageTemplate1.nextPageTemplate = this.form.pageTemplate1
  259.    this.form.pageTemplate1.streamFrame1.streamSource = this.form.streamSource1
  260.    this.form.streamSource1.rowset = this.form.events1.rowset
  261.  
  262. }
  263.