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

  1. /****************************************************************************\
  2. *                                                                            *
  3. * Employee.jfm  --  Employee Phone Book Details Form                         *
  4. *                                                                            *
  5. * Employee.jfm is part of the Phone Book solution application. It is used    *
  6. * view the details about a single employee. The form is called by the        *
  7. * phoneemp or phonedep report. If a single parameter is passed to this form  *
  8. * it will show the details for the employee whose EmployeeID matches the     *
  9. * parameter.                                                                 *
  10. *                                                                            *
  11. * Dependencies:  phonbk31.gif                                                *
  12. *                apps\shared\controls.cc                                     *
  13. *                                                                            *
  14. * Links to:      ibapps/index.htm                                            *
  15. *                svr/intrasrv.isv?apps/phone/phonedep.jrp                    *
  16. *                svr/intrasrv.isv?apps/phone/phoneemp.jrp                    *
  17. *                svr/intrasrv.isv?apps/phone/update.jfm                      *
  18. *                                                                            *
  19. * Updated 8/27/96 by IntraBuilder Samples Group                              *
  20. * $Revision:   1.24  $                                                       *
  21. *                                                                            *
  22. * Copyright (c) 1996, Borland International, Inc. All rights reserved.       *
  23. *                                                                            *
  24. \****************************************************************************/
  25. //
  26. // This header code is executed when the form is run. The return
  27. // prevents the designer generated startup code from executing.
  28. // 
  29. // If a parameter is passed to the form, the rowset will be 
  30. // advanced to the record whose empid matches the parameter.
  31. // 
  32. var f = new employeeForm();
  33. if (EMPLOYEE.arguments.length == 1) {
  34.    f.rowset.applyLocate('"Employee ID"=' + EMPLOYEE.arguments[0]);
  35. }
  36. f.open();
  37. return;
  38. // {End Header} Do not remove this comment//
  39. // Generated on 08/28/96
  40. //
  41. var f = new employeeForm();
  42. f.open();
  43. class employeeForm extends Form {
  44.    _sys.scripts.load(_sys.env.home() + "APPS\\SHARED\\CONTROLS.CC")
  45.    with (this) {
  46.       color = "4a95b5";
  47.       height = 25.1176;
  48.       left = 3;
  49.       top = 0.2353;
  50.       width = 85.5;
  51.       title = "Employee Details";
  52.    }
  53.  
  54.  
  55.    with (this.ibapps1 = new Database()){
  56.       left = 17;
  57.       top = 2;
  58.       databaseName = "IBAPPS";
  59.       active = true;
  60.    }
  61.  
  62.  
  63.    with (this.employee1 = new Query()){
  64.       left = 23;
  65.       top = 2;
  66.       database = parent.ibapps1;
  67.       sql = "SELECT * FROM employee";
  68.       active = true;
  69.    }
  70.  
  71.  
  72.    with (this.employee1.rowset) {
  73.  
  74.    }
  75.  
  76.  
  77.    with (this.department1 = new Query()){
  78.       left = 29;
  79.       top = 2;
  80.       database = parent.ibapps1;
  81.       sql = "select * from departmt";
  82.       active = true;
  83.    }
  84.  
  85.  
  86.    with (this.department1.rowset) {
  87.  
  88.       masterRowset = parent.parent.employee1.rowset;
  89.       masterFields = "Department";
  90.    }
  91.  
  92.  
  93.    with (this.rule1 = new Rule(this)){
  94.       left = 1;
  95.       top = 6;
  96.       size = 2;
  97.       right = 80;
  98.    }
  99.  
  100.  
  101.    with (this.rule2 = new Rule(this)){
  102.       left = 1;
  103.       top = 20;
  104.       size = 2;
  105.       right = 80;
  106.    }
  107.  
  108.  
  109.    with (this.PhoneBookLogo = new Image(this)){
  110.       height = 4.8235;
  111.       left = 1;
  112.       width = 13.6667;
  113.       dataSource = "filename PHONBK31.GIF";
  114.       alignment = 4;
  115.    }
  116.  
  117.  
  118.    with (this.FullnameHTML = new HTML(this)){
  119.       height = 2;
  120.       left = 30;
  121.       width = 50;
  122.       color = "853a1a";
  123.       text = {||"<H1>" + form.employee1.rowset.fields["Full Name"].value + "</H1>"};
  124.    }
  125.  
  126.  
  127.    with (this.EmployeeImage = new Image(this)){
  128.       height = 11;
  129.       left = 1;
  130.       top = 7;
  131.       width = 26;
  132.       dataSource = parent.employee1.rowset.fields["Picture"];
  133.       alignment = 1;
  134.    }
  135.  
  136.  
  137.    with (this.DepartmentHTML = new HTML(this)){
  138.       height = 1;
  139.       left = 30;
  140.       top = 7;
  141.       width = 49;
  142.       color = "black";
  143.       fontBold = false;
  144.       text = {||form.department1.rowset.fields["Department"].value};
  145.    }
  146.  
  147.  
  148.    with (this.TitleHTML = new HTML(this)){
  149.       height = 1;
  150.       left = 30;
  151.       top = 8;
  152.       width = 49;
  153.       color = "black";
  154.       fontBold = false;
  155.       text = {||form.employee1.rowset.fields["Title"].value};
  156.    }
  157.  
  158.  
  159.    with (this.PhoneHTML = new HTML(this)){
  160.       height = 1;
  161.       left = 30;
  162.       top = 9;
  163.       width = 49;
  164.       color = "black";
  165.       fontBold = false;
  166.       text = {||"Extension: x" + form.employee1.rowset.fields["Phone"].value};
  167.    }
  168.  
  169.  
  170.    with (this.LocationHTML = new HTML(this)){
  171.       height = 1;
  172.       left = 30;
  173.       top = 10;
  174.       width = 49;
  175.       color = "black";
  176.       fontBold = false;
  177.       text = {||"Office: " + form.employee1.rowset.fields["Location"].value};
  178.    }
  179.  
  180.  
  181.    with (this.homepageHTML = new HTML(this)){
  182.       height = 2;
  183.       left = 30;
  184.       top = 11;
  185.       width = 49;
  186.       color = "black";
  187.       fontBold = false;
  188.       text = {||"<A HREF='" + this.form.employee1.rowset.fields["Homepage"].value + "'>" + this.form.employee1.rowset.fields["Homepage"].value + "</A>"};
  189.    }
  190.  
  191.  
  192.    with (this.PhoneNoteHTML = new HTML(this)){
  193.       height = 4;
  194.       left = 30;
  195.       top = 13;
  196.       width = 49;
  197.       color = "black";
  198.       text = {||form.employee1.rowset.fields["Phone Note"].value};
  199.    }
  200.  
  201.  
  202.    with (this.LinksHTML = new HTML(this)){
  203.       height = 1;
  204.       left = 1;
  205.       top = 18;
  206.       width = 78;
  207.       color = "black";
  208.       text = {||'<A HREF="/ibapps/index.htm">[Home]</A> <A HREF="/svr/intrasrv.isv?apps/phone/phoneemp.jrp">[List]</A> <A HREF="/svr/intrasrv.isv?apps/phone/phonedep.jrp">[Department]</A> <A HREF="/svr/intrasrv.isv?apps/phone/update.jfm(' + parseInt(this.form.employee1.rowset.fields["Employee ID"].value) + ')">[Update]</A>'};
  209.    }
  210.  
  211.  
  212.    with (this.GeneratedHTML1 = new GeneratedHTML(this)){
  213.       height = 1;
  214.       left = 1;
  215.       top = 21;
  216.       width = 79;
  217.    }
  218.  
  219.    this.rowset = this.employee1.rowset;
  220.  
  221. }
  222.