home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1998 October / dpcb1098.iso / Business / Maxim / MAX5 / data.z / oms.frm < prev    next >
Text File  |  1998-05-15  |  39KB  |  1,259 lines

  1. VERSION 5.00
  2. Begin VB.Form omsForm 
  3.    Caption         =   "OMS"
  4.    ClientHeight    =   7290
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   9375
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   7290
  10.    ScaleWidth      =   9375
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.CommandButton Command34 
  13.       Caption         =   "RoleStanding"
  14.       Height          =   372
  15.       Left            =   5400
  16.       TabIndex        =   51
  17.       Top             =   6720
  18.       Width           =   1935
  19.    End
  20.    Begin VB.CommandButton Command33 
  21.       Caption         =   "FactorStanding"
  22.       Height          =   372
  23.       Left            =   5400
  24.       TabIndex        =   50
  25.       Top             =   6360
  26.       Width           =   1935
  27.    End
  28.    Begin VB.CommandButton Command32 
  29.       Caption         =   "RoleStandingLink"
  30.       Height          =   372
  31.       Left            =   7560
  32.       TabIndex        =   49
  33.       Top             =   6720
  34.       Width           =   1695
  35.    End
  36.    Begin VB.CommandButton Command31 
  37.       Caption         =   "FactorStandingLink"
  38.       Height          =   372
  39.       Left            =   7560
  40.       TabIndex        =   48
  41.       Top             =   6360
  42.       Width           =   1695
  43.    End
  44.    Begin VB.CommandButton Command30 
  45.       Caption         =   "StepActivityLink"
  46.       Height          =   372
  47.       Left            =   7560
  48.       TabIndex        =   47
  49.       Top             =   6000
  50.       Width           =   1695
  51.    End
  52.    Begin VB.CommandButton Command28 
  53.       Caption         =   "StrategyStepLink"
  54.       Height          =   372
  55.       Left            =   7560
  56.       TabIndex        =   46
  57.       Top             =   5280
  58.       Width           =   1695
  59.    End
  60.    Begin VB.CommandButton Command27 
  61.       Caption         =   "StrategyFactorLink"
  62.       Height          =   372
  63.       Left            =   7560
  64.       TabIndex        =   45
  65.       Top             =   4920
  66.       Width           =   1695
  67.    End
  68.    Begin VB.CommandButton Command26 
  69.       Caption         =   "StrategyRoleLink"
  70.       Height          =   372
  71.       Left            =   7560
  72.       TabIndex        =   44
  73.       Top             =   4560
  74.       Width           =   1695
  75.    End
  76.    Begin VB.CommandButton Command25 
  77.       Caption         =   "Activity"
  78.       Height          =   372
  79.       Left            =   5400
  80.       TabIndex        =   43
  81.       Top             =   6000
  82.       Width           =   1935
  83.    End
  84.    Begin VB.CommandButton Command24 
  85.       Caption         =   "Step"
  86.       Height          =   372
  87.       Left            =   5400
  88.       TabIndex        =   42
  89.       Top             =   5640
  90.       Width           =   1935
  91.    End
  92.    Begin VB.CommandButton Command23 
  93.       Caption         =   "Factor"
  94.       Height          =   372
  95.       Left            =   5400
  96.       TabIndex        =   41
  97.       Top             =   5280
  98.       Width           =   1935
  99.    End
  100.    Begin VB.CommandButton Command22 
  101.       Caption         =   "Role"
  102.       Height          =   372
  103.       Left            =   5400
  104.       TabIndex        =   40
  105.       Top             =   4920
  106.       Width           =   1935
  107.    End
  108.    Begin VB.CommandButton Command21 
  109.       Caption         =   "FactorStanding"
  110.       Height          =   372
  111.       Left            =   7560
  112.       TabIndex        =   37
  113.       Top             =   2280
  114.       Width           =   1692
  115.    End
  116.    Begin VB.CommandButton Command20 
  117.       Caption         =   "NextFactor"
  118.       Height          =   372
  119.       Left            =   5400
  120.       TabIndex        =   32
  121.       Top             =   3360
  122.       Width           =   1935
  123.    End
  124.    Begin VB.CommandButton Command19 
  125.       Caption         =   "NextFactorStandingLink"
  126.       Height          =   375
  127.       Left            =   5400
  128.       TabIndex        =   31
  129.       Top             =   3000
  130.       Width           =   1935
  131.    End
  132.    Begin VB.CommandButton Command18 
  133.       Caption         =   "FactorStanding"
  134.       Height          =   372
  135.       Left            =   5400
  136.       TabIndex        =   30
  137.       Top             =   2640
  138.       Width           =   1935
  139.    End
  140.    Begin VB.CommandButton Command17 
  141.       Caption         =   "FirstFactorStandingLink"
  142.       Height          =   372
  143.       Left            =   5400
  144.       TabIndex        =   29
  145.       Top             =   2280
  146.       Width           =   1935
  147.    End
  148.    Begin VB.CommandButton Command16 
  149.       Caption         =   "Last thing to do before Exit"
  150.       Height          =   492
  151.       Left            =   5520
  152.       TabIndex        =   28
  153.       Top             =   120
  154.       Width           =   2532
  155.    End
  156.    Begin VB.CommandButton Command15 
  157.       Caption         =   "First thing to do before OMS"
  158.       Height          =   492
  159.       Left            =   1200
  160.       TabIndex        =   27
  161.       Top             =   120
  162.       Width           =   2532
  163.    End
  164.    Begin VB.CommandButton Command14 
  165.       Caption         =   "Strategy"
  166.       Height          =   375
  167.       Left            =   5400
  168.       TabIndex        =   26
  169.       Top             =   4560
  170.       Width           =   1935
  171.    End
  172.    Begin VB.CommandButton Command13 
  173.       Caption         =   "FactorStanding"
  174.       Height          =   375
  175.       Left            =   7560
  176.       TabIndex        =   25
  177.       Top             =   3360
  178.       Width           =   1692
  179.    End
  180.    Begin VB.CommandButton Command12 
  181.       Caption         =   "Factor"
  182.       Height          =   375
  183.       Left            =   7560
  184.       TabIndex        =   24
  185.       Top             =   1920
  186.       Width           =   1692
  187.    End
  188.    Begin VB.CommandButton Command11 
  189.       Caption         =   "FirstFactor"
  190.       Height          =   375
  191.       Left            =   5400
  192.       TabIndex        =   23
  193.       Top             =   1920
  194.       Width           =   1935
  195.    End
  196.    Begin VB.TextBox Text13 
  197.       Height          =   285
  198.       Left            =   3120
  199.       TabIndex        =   22
  200.       Text            =   "Text13"
  201.       Top             =   4560
  202.       Width           =   2055
  203.    End
  204.    Begin VB.TextBox Text12 
  205.       Height          =   285
  206.       Left            =   3120
  207.       TabIndex        =   21
  208.       Text            =   "Text12"
  209.       Top             =   4320
  210.       Width           =   2055
  211.    End
  212.    Begin VB.TextBox Text11 
  213.       Height          =   285
  214.       Left            =   3120
  215.       TabIndex        =   20
  216.       Text            =   "Text11"
  217.       Top             =   4080
  218.       Width           =   2055
  219.    End
  220.    Begin VB.TextBox Text10 
  221.       Height          =   285
  222.       Left            =   3120
  223.       TabIndex        =   19
  224.       Text            =   "Text10"
  225.       Top             =   3840
  226.       Width           =   2055
  227.    End
  228.    Begin VB.TextBox Text9 
  229.       Height          =   285
  230.       Left            =   3120
  231.       TabIndex        =   18
  232.       Text            =   "Text9"
  233.       Top             =   3600
  234.       Width           =   2055
  235.    End
  236.    Begin VB.TextBox Text8 
  237.       Height          =   285
  238.       Left            =   3120
  239.       TabIndex        =   17
  240.       Text            =   "Text8"
  241.       Top             =   3360
  242.       Width           =   2055
  243.    End
  244.    Begin VB.TextBox Text7 
  245.       Height          =   285
  246.       Left            =   3120
  247.       TabIndex        =   16
  248.       Text            =   "Text7"
  249.       Top             =   3120
  250.       Width           =   2055
  251.    End
  252.    Begin VB.TextBox Text6 
  253.       Height          =   285
  254.       Left            =   3120
  255.       TabIndex        =   15
  256.       Text            =   "Text6"
  257.       Top             =   2880
  258.       Width           =   2055
  259.    End
  260.    Begin VB.TextBox Text5 
  261.       Height          =   285
  262.       Left            =   3120
  263.       TabIndex        =   14
  264.       Text            =   "Text5"
  265.       Top             =   2640
  266.       Width           =   2055
  267.    End
  268.    Begin VB.TextBox Text4 
  269.       Height          =   285
  270.       Left            =   3120
  271.       TabIndex        =   13
  272.       Text            =   "Text4"
  273.       Top             =   2400
  274.       Width           =   2055
  275.    End
  276.    Begin VB.TextBox Text3 
  277.       Height          =   285
  278.       Left            =   3120
  279.       TabIndex        =   12
  280.       Text            =   "Text3"
  281.       Top             =   2160
  282.       Width           =   2055
  283.    End
  284.    Begin VB.TextBox Text2 
  285.       Height          =   285
  286.       Left            =   3120
  287.       TabIndex        =   11
  288.       Text            =   "Text2"
  289.       Top             =   1920
  290.       Width           =   2055
  291.    End
  292.    Begin VB.CommandButton Command10 
  293.       Caption         =   "IsFactorStandingNameNotUnique"
  294.       Height          =   375
  295.       Left            =   240
  296.       TabIndex        =   10
  297.       Top             =   4320
  298.       Width           =   2535
  299.    End
  300.    Begin VB.CommandButton Command9 
  301.       Caption         =   "IsRoleStandingNameNotUnique"
  302.       Height          =   375
  303.       Left            =   240
  304.       TabIndex        =   9
  305.       Top             =   3960
  306.       Width           =   2535
  307.    End
  308.    Begin VB.CommandButton Command8 
  309.       Caption         =   "IsFactorNameNotUnique"
  310.       Height          =   375
  311.       Left            =   240
  312.       TabIndex        =   8
  313.       Top             =   3600
  314.       Width           =   2535
  315.    End
  316.    Begin VB.CommandButton Command7 
  317.       Caption         =   "IsRoleNameNotUnique"
  318.       Height          =   375
  319.       Left            =   240
  320.       TabIndex        =   7
  321.       Top             =   3240
  322.       Width           =   2535
  323.    End
  324.    Begin VB.CommandButton Command6 
  325.       Caption         =   "IsActivityNameNotUnique"
  326.       Height          =   375
  327.       Left            =   240
  328.       TabIndex        =   6
  329.       Top             =   2880
  330.       Width           =   2535
  331.    End
  332.    Begin VB.CommandButton Command5 
  333.       Caption         =   "IsStepNameNotUnique"
  334.       Height          =   375
  335.       Left            =   240
  336.       TabIndex        =   5
  337.       Top             =   2520
  338.       Width           =   2535
  339.    End
  340.    Begin VB.CommandButton Command4 
  341.       Caption         =   "Exit OLE Automation"
  342.       Height          =   495
  343.       Left            =   3720
  344.       TabIndex        =   4
  345.       Top             =   360
  346.       Width           =   1812
  347.    End
  348.    Begin VB.TextBox Text1 
  349.       Height          =   285
  350.       Left            =   240
  351.       TabIndex        =   3
  352.       Text            =   "Text1"
  353.       Top             =   1920
  354.       Width           =   2535
  355.    End
  356.    Begin VB.CommandButton Command3 
  357.       Caption         =   "IsStrategyNameNotUnique"
  358.       Height          =   375
  359.       Left            =   240
  360.       TabIndex        =   2
  361.       Top             =   2160
  362.       Width           =   2535
  363.    End
  364.    Begin VB.CommandButton Command2 
  365.       Caption         =   "Close OMS Object"
  366.       Height          =   495
  367.       Left            =   5520
  368.       TabIndex        =   1
  369.       Top             =   600
  370.       Width           =   2535
  371.    End
  372.    Begin VB.CommandButton Command1 
  373.       Caption         =   "Create OMS Object"
  374.       Height          =   495
  375.       Left            =   1200
  376.       TabIndex        =   0
  377.       Top             =   600
  378.       Width           =   2535
  379.    End
  380.    Begin VB.Label Label24 
  381.       Caption         =   "13."
  382.       Height          =   255
  383.       Left            =   2880
  384.       TabIndex        =   69
  385.       Top             =   4560
  386.       Width           =   255
  387.    End
  388.    Begin VB.Label Label23 
  389.       Caption         =   "12."
  390.       Height          =   255
  391.       Left            =   2880
  392.       TabIndex        =   68
  393.       Top             =   4320
  394.       Width           =   255
  395.    End
  396.    Begin VB.Label Label22 
  397.       Caption         =   "11."
  398.       Height          =   255
  399.       Left            =   2880
  400.       TabIndex        =   67
  401.       Top             =   4080
  402.       Width           =   255
  403.    End
  404.    Begin VB.Label Label21 
  405.       Caption         =   "10."
  406.       Height          =   255
  407.       Left            =   2880
  408.       TabIndex        =   66
  409.       Top             =   3840
  410.       Width           =   255
  411.    End
  412.    Begin VB.Label Label20 
  413.       Caption         =   "9."
  414.       Height          =   255
  415.       Left            =   2880
  416.       TabIndex        =   65
  417.       Top             =   3600
  418.       Width           =   255
  419.    End
  420.    Begin VB.Label Label19 
  421.       Caption         =   "8."
  422.       Height          =   255
  423.       Left            =   2880
  424.       TabIndex        =   64
  425.       Top             =   3360
  426.       Width           =   255
  427.    End
  428.    Begin VB.Label Label18 
  429.       Caption         =   "7."
  430.       Height          =   255
  431.       Left            =   2880
  432.       TabIndex        =   63
  433.       Top             =   3120
  434.       Width           =   255
  435.    End
  436.    Begin VB.Label Label17 
  437.       Caption         =   "6."
  438.       Height          =   255
  439.       Left            =   2880
  440.       TabIndex        =   62
  441.       Top             =   2880
  442.       Width           =   255
  443.    End
  444.    Begin VB.Label Label16 
  445.       Caption         =   "5."
  446.       Height          =   255
  447.       Left            =   2880
  448.       TabIndex        =   61
  449.       Top             =   2640
  450.       Width           =   255
  451.    End
  452.    Begin VB.Label Label15 
  453.       Caption         =   "4."
  454.       Height          =   255
  455.       Left            =   2880
  456.       TabIndex        =   60
  457.       Top             =   2400
  458.       Width           =   255
  459.    End
  460.    Begin VB.Label Label14 
  461.       Caption         =   "3."
  462.       Height          =   255
  463.       Left            =   2880
  464.       TabIndex        =   59
  465.       Top             =   2160
  466.       Width           =   255
  467.    End
  468.    Begin VB.Label Label13 
  469.       Caption         =   "2."
  470.       Height          =   255
  471.       Left            =   2880
  472.       TabIndex        =   58
  473.       Top             =   1920
  474.       Width           =   255
  475.    End
  476.    Begin VB.Label Label12 
  477.       Caption         =   "1."
  478.       Height          =   255
  479.       Left            =   0
  480.       TabIndex        =   57
  481.       Top             =   1920
  482.       Width           =   255
  483.    End
  484.    Begin VB.Line Line5 
  485.       X1              =   120
  486.       X2              =   120
  487.       Y1              =   4920
  488.       Y2              =   7200
  489.    End
  490.    Begin VB.Line Line4 
  491.       X1              =   120
  492.       X2              =   5160
  493.       Y1              =   7200
  494.       Y2              =   7200
  495.    End
  496.    Begin VB.Line Line3 
  497.       X1              =   5160
  498.       X2              =   5160
  499.       Y1              =   7200
  500.       Y2              =   4920
  501.    End
  502.    Begin VB.Line Line2 
  503.       X1              =   120
  504.       X2              =   5160
  505.       Y1              =   4920
  506.       Y2              =   4920
  507.    End
  508.    Begin VB.Label Label11 
  509.       Caption         =   "4.  Press the ""Close...Object"" button, then ""Last...Exit"" button before press the ""Exit OLE..."" button."
  510.       BeginProperty Font 
  511.          Name            =   "MS Sans Serif"
  512.          Size            =   8.25
  513.          Charset         =   0
  514.          Weight          =   400
  515.          Underline       =   0   'False
  516.          Italic          =   -1  'True
  517.          Strikethrough   =   0   'False
  518.       EndProperty
  519.       Height          =   372
  520.       Left            =   240
  521.       TabIndex        =   56
  522.       Top             =   6720
  523.       Width           =   4692
  524.    End
  525.    Begin VB.Label Label10 
  526.       Caption         =   "3.  Look carefully on the inputs. (please check the source code comments or related references."
  527.       BeginProperty Font 
  528.          Name            =   "MS Sans Serif"
  529.          Size            =   8.25
  530.          Charset         =   0
  531.          Weight          =   400
  532.          Underline       =   0   'False
  533.          Italic          =   -1  'True
  534.          Strikethrough   =   0   'False
  535.       EndProperty
  536.       Height          =   372
  537.       Left            =   240
  538.       TabIndex        =   55
  539.       Top             =   6240
  540.       Width           =   4692
  541.    End
  542.    Begin VB.Label Label9 
  543.       Caption         =   "2.  Press the ""Create...Object"" button"
  544.       BeginProperty Font 
  545.          Name            =   "MS Sans Serif"
  546.          Size            =   8.25
  547.          Charset         =   0
  548.          Weight          =   400
  549.          Underline       =   0   'False
  550.          Italic          =   -1  'True
  551.          Strikethrough   =   0   'False
  552.       EndProperty
  553.       Height          =   252
  554.       Left            =   240
  555.       TabIndex        =   54
  556.       Top             =   5880
  557.       Width           =   4692
  558.    End
  559.    Begin VB.Label Label8 
  560.       Caption         =   "1.  Press the ""First thing...OMS"" button"
  561.       BeginProperty Font 
  562.          Name            =   "MS Sans Serif"
  563.          Size            =   8.25
  564.          Charset         =   0
  565.          Weight          =   400
  566.          Underline       =   0   'False
  567.          Italic          =   -1  'True
  568.          Strikethrough   =   0   'False
  569.       EndProperty
  570.       Height          =   252
  571.       Left            =   240
  572.       TabIndex        =   53
  573.       Top             =   5520
  574.       Width           =   4692
  575.    End
  576.    Begin VB.Label Label7 
  577.       Caption         =   "Steps for using this application properly:"
  578.       BeginProperty Font 
  579.          Name            =   "MS Sans Serif"
  580.          Size            =   8.25
  581.          Charset         =   0
  582.          Weight          =   700
  583.          Underline       =   0   'False
  584.          Italic          =   0   'False
  585.          Strikethrough   =   0   'False
  586.       EndProperty
  587.       Height          =   252
  588.       Left            =   240
  589.       TabIndex        =   52
  590.       Top             =   5040
  591.       Width           =   3852
  592.    End
  593.    Begin VB.Label Label6 
  594.       Alignment       =   2  'Center
  595.       Caption         =   "Add"
  596.       BeginProperty Font 
  597.          Name            =   "Arial"
  598.          Size            =   12
  599.          Charset         =   0
  600.          Weight          =   700
  601.          Underline       =   0   'False
  602.          Italic          =   0   'False
  603.          Strikethrough   =   0   'False
  604.       EndProperty
  605.       Height          =   255
  606.       Left            =   7080
  607.       TabIndex        =   39
  608.       Top             =   4200
  609.       Width           =   735
  610.    End
  611.    Begin VB.Label Label5 
  612.       Alignment       =   2  'Center
  613.       Caption         =   "Delete"
  614.       BeginProperty Font 
  615.          Name            =   "Arial"
  616.          Size            =   12
  617.          Charset         =   0
  618.          Weight          =   700
  619.          Underline       =   0   'False
  620.          Italic          =   0   'False
  621.          Strikethrough   =   0   'False
  622.       EndProperty
  623.       Height          =   255
  624.       Left            =   7920
  625.       TabIndex        =   38
  626.       Top             =   3000
  627.       Width           =   975
  628.    End
  629.    Begin VB.Label Label4 
  630.       Alignment       =   2  'Center
  631.       Caption         =   "Modify"
  632.       BeginProperty Font 
  633.          Name            =   "Arial"
  634.          Size            =   12
  635.          Charset         =   0
  636.          Weight          =   700
  637.          Underline       =   0   'False
  638.          Italic          =   0   'False
  639.          Strikethrough   =   0   'False
  640.       EndProperty
  641.       Height          =   255
  642.       Left            =   7920
  643.       TabIndex        =   36
  644.       Top             =   1560
  645.       Width           =   975
  646.    End
  647.    Begin VB.Label Label3 
  648.       Alignment       =   2  'Center
  649.       Caption         =   "Is...NameNotUnique"
  650.       BeginProperty Font 
  651.          Name            =   "Arial"
  652.          Size            =   12
  653.          Charset         =   0
  654.          Weight          =   700
  655.          Underline       =   0   'False
  656.          Italic          =   0   'False
  657.          Strikethrough   =   0   'False
  658.       EndProperty
  659.       Height          =   252
  660.       Left            =   240
  661.       TabIndex        =   35
  662.       Top             =   1560
  663.       Width           =   2532
  664.    End
  665.    Begin VB.Label Label2 
  666.       Alignment       =   2  'Center
  667.       Caption         =   "Inputs and Outputs"
  668.       BeginProperty Font 
  669.          Name            =   "Arial"
  670.          Size            =   10.5
  671.          Charset         =   0
  672.          Weight          =   700
  673.          Underline       =   0   'False
  674.          Italic          =   0   'False
  675.          Strikethrough   =   0   'False
  676.       EndProperty
  677.       Height          =   252
  678.       Left            =   3120
  679.       TabIndex        =   34
  680.       Top             =   1560
  681.       Width           =   2052
  682.    End
  683.    Begin VB.Line Line1 
  684.       X1              =   120
  685.       X2              =   9240
  686.       Y1              =   1320
  687.       Y2              =   1320
  688.    End
  689.    Begin VB.Label Label1 
  690.       Alignment       =   2  'Center
  691.       Caption         =   "Read"
  692.       BeginProperty Font 
  693.          Name            =   "Arial"
  694.          Size            =   12
  695.          Charset         =   0
  696.          Weight          =   700
  697.          Underline       =   0   'False
  698.          Italic          =   0   'False
  699.          Strikethrough   =   0   'False
  700.       EndProperty
  701.       Height          =   252
  702.       Left            =   5760
  703.       TabIndex        =   33
  704.       Top             =   1560
  705.       Width           =   1092
  706.    End
  707. End
  708. Attribute VB_Name = "omsForm"
  709. Attribute VB_GlobalNameSpace = False
  710. Attribute VB_Creatable = False
  711. Attribute VB_PredeclaredId = True
  712. Attribute VB_Exposed = False
  713. '==========================================================================;
  714. '
  715. '  This code and information is provided "as is" without warranty of any
  716. '  kind, either expressed or implied, including but not limited to the
  717. '  implied warranties of merchantability and/or fitness for a particular
  718. '  purpose..
  719. '
  720. '  Copyright (c) 1998  Multiactive Software Inc.  All Rights Reserved.
  721. '
  722. '==========================================================================;
  723.  
  724.  
  725. Dim OMS As Object               'Object for OMS
  726. Dim App As Object               'Object for Enterprise 97
  727. Dim id As Long                  'ID for strategy, step, activity, role, role standing, success factor, and success factor standing (depends on the circumstance)
  728. Dim lck As Long                 'Lock for write (0 for read-only, 1 for read-write)
  729. Dim names As String             'Name, like strategy name, step name...
  730. Dim description As String       'Description, like strategy description...
  731. Dim subtype As Integer          'SubType
  732. Dim score As Integer            'Score for standings (0..100)
  733. Dim weight As Integer           'Weight (0..100)
  734. Dim factorid As Long            'Factor Id
  735. Dim factorstandingid As Long    'Factor Standing Id
  736. Dim strategyid As Long          'Strategy Id
  737. Dim stepid As Long              'Step Id
  738. Dim order As Integer            'Chronological order for steps and activities
  739. Dim roleid As Long              'Role Id
  740. Dim rolestandingid As Long      'Role Standing Id
  741. Dim stepcount As Integer        'Step count
  742. Dim activitycount As Integer    'Activity count
  743. Dim duration As Integer         'Effort time
  744. Dim interval As Integer         'Duration time
  745. Dim cost As Integer             'Cost
  746. Dim priority As String          'Priorty (Maximium 3 characters)
  747. Dim hotlisttype As Integer      'Hotlist Type (Icon number in the activity 0..9)
  748. Dim withrole As Long            'With Role (by role id)
  749. Dim alarm As Integer            'Alarm (0 for disable; 1 for able)
  750. Dim alarmminute As Long         'Alarm Lead Minutes (leave it blank if 0 for alarm)
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757. ' This function is called when the user clicks the "Create OMS Object" button
  758. Private Sub Command1_Click()
  759.     If Not OMS Is Nothing Then  'Check is OMS already created
  760.         Exit Sub
  761.     End If
  762.     
  763.     Set OMS = Nothing
  764.     Set OMS = CreateObject("Maximizer.OMS") 'Create object
  765.     
  766.     Call OMS.OpenStratLibFiles      'First thing to do before using any OMS function
  767. End Sub
  768.  
  769. ' This function is called when the user clicks the IsFactorStandingNameNotUnique button
  770. Private Sub Command10_Click()
  771.     If OMS Is Nothing Then
  772.         Exit Sub
  773.     End If
  774.     
  775.     'IsFactorStandingNameNotUnique("Factor Standing Name")
  776.     Text1.Text = OMS.IsFactorStandingNameNotUnique("Factor Standing Test 1")
  777.  
  778. End Sub
  779.  
  780. ' This function is called when the user clicks the ReadFirstFactor button
  781. Private Sub Command11_Click()
  782.     If OMS Is Nothing Then
  783.         Exit Sub
  784.     End If
  785.     
  786.     'ReadFirstFactor("Lock for write", "ID", "Name", "Description", "SubType")
  787.     Call OMS.ReadFirstFactor(lck, id, names, description, subtype)
  788.     
  789.     'Display the data in the text boxes
  790.     Text2.Text = lck
  791.     Text3.Text = id
  792.     factorid = id
  793.     Text4.Text = names
  794.     Text5.Text = description
  795.     Text6.Text = subtype
  796.     factorstandingid = 0
  797.     
  798. End Sub
  799.  
  800. ' This function is called when the user clicks the ModifyFactor button
  801. Private Sub Command12_Click()
  802.     If OMS Is Nothing Then
  803.         Exit Sub
  804.     End If
  805.     
  806.     'ModifyFactor("ID which is generated by Maximizer", "Name", "Description", "SubType")
  807.     Call OMS.ModifyFactor(Text3.Text, Text4.Text, Text5.Text, Text6.Text)
  808. End Sub
  809.  
  810. ' This function is called when the user clicks the DeleteFactorStanding button
  811. Private Sub Command13_Click()
  812.     If OMS Is Nothing Then
  813.         Exit Sub
  814.     End If
  815.     
  816.     'DeleteFactorStanding("the standing ID")
  817.     Call OMS.DeleteFactorStanding(Text3.Text)
  818. End Sub
  819.  
  820. ' This function is called when the user clicks the AddStrategy button
  821. Private Sub Command14_Click()   'AddStrategy
  822.     If OMS Is Nothing Then
  823.         Exit Sub
  824.     End If
  825.  
  826.     'AddStrategy("ID which is generated by Maximizer--leave it blank", "Name", "Description", "Step Count", "Activity Count", "Duration", "Interval", "Cost")
  827.     Call OMS.AddStrategy(id, Text4.Text, Text5.Text, Text6.Text, Text7.Text, Text8.Text, Text9.Text, Text10.Text)
  828.     Text3.Text = id
  829. End Sub
  830.  
  831. ' This function is called when the user clicks the "First thing to do before OMS" button
  832. Private Sub Command15_Click()
  833.     If Not App Is Nothing Then
  834.         Exit Sub
  835.     End If
  836.     Set App = Nothing
  837.     
  838.     'To open the application
  839.     Set App = CreateObject("Maximizer.Application")
  840.     
  841.     'To be visible
  842.     App.SetVisibilityState ("Restore")
  843.      
  844.     'To open a database
  845.     Call App.OpenDatabase("Open", "Enterprise Test 1", , "MASTER", "CONTROL") 'OK
  846. End Sub
  847.  
  848. ' This function is called when the user clicks the "Last thing to do before exit" button
  849. Private Sub Command16_Click()
  850.     If App Is Nothing Then
  851.         Exit Sub
  852.     End If
  853.     
  854.     'To close the current database
  855.     App.CloseDatabase
  856.     
  857.     'To close the Enterprise application
  858.     Set App = Nothing
  859.  
  860. End Sub
  861.  
  862. ' This function is called when the user clicks the "ReadFirstFactorStandingLink" button
  863. Private Sub Command17_Click()
  864.     If OMS Is Nothing Then
  865.         Exit Sub
  866.     End If
  867.     lck = Text2.Text        'take the text2 box's text
  868.             
  869.     'ReadFirstFactorStandingLink("Lock", "Factor Id", "Factor Standing Id")
  870.     'Provide either factorid or factorstandingid, then the function will search for the other id
  871.     Call OMS.ReadFirstFactorStandingLink(lck, factorid, factorstandingid)
  872.  
  873.     'Display the data in the text boxes
  874.     Text2.Text = lck
  875.     Text5.Text = factorid
  876.     Text6.Text = factorstandingid
  877.     
  878.     
  879. End Sub
  880.  
  881. ' This function is called when the user clicks the "ReadFactorStanding" button
  882. Private Sub Command18_Click()
  883.     If OMS Is Nothing Then
  884.         Exit Sub
  885.     End If
  886.     
  887.     id = 0
  888.     
  889.     'Assign a specific(EXISTING ID!!!) id before running this function!
  890.     id = Text3.Text
  891.     
  892.     'ReadFactorStanding("id", "Name", "Score", "SubType")
  893.     Call OMS.ReadFactorStanding(id, names, score, subtype)
  894.     
  895.     'Display the data in the text boxes
  896.     Text2.Text = lck
  897.     Text3.Text = id
  898.     factorstandingid = id   'For some "Read..Link" functions
  899.     Text4.Text = names
  900.     Text5.Text = score
  901.     Text6.Text = subtype
  902.     factorid = 0            'For some "Read..Link" functions
  903.     
  904. End Sub
  905.  
  906. ' This function is called when the user clicks the "ReadNextFactorStandingLink" button
  907. Private Sub Command19_Click()
  908.     If OMS Is Nothing Then
  909.         Exit Sub
  910.     End If
  911.     
  912.     lck = Text2.Text
  913.     factorstandingid = 0
  914.           
  915.     'ReadNextFactorStandingLink("Lock", "Factor Id", "Factor Standing Id")
  916.     'Because it is a link function, that means it needs either factorid or factorstandingid for searching each other
  917.     'Therefore, user needs to run either readfirstfactor, readnextfactor or readfactorstanding before running this function
  918.     Call OMS.ReadNextFactorStandingLink(lck, factorid, factorstandingid)
  919.     
  920.     Text2.Text = lck
  921.     Text5.Text = factorid
  922.     Text6.Text = factorstandingid
  923.     
  924. End Sub
  925.  
  926. ' This function is called when the user clicks the Close OMS Object button
  927. Private Sub Command2_Click()
  928.     If OMS Is Nothing Then
  929.         Exit Sub
  930.     End If
  931.     
  932.     'Last thing needs to do before close the object
  933.     Call OMS.CloseStratLibFiles
  934.     Set OMS = Nothing
  935.     
  936.  
  937. End Sub
  938.  
  939. ' This function is called when the user clicks the "ReadNextFactor" button
  940. Private Sub Command20_Click()
  941.     If OMS Is Nothing Then
  942.         Exit Sub
  943.     End If
  944.     
  945.     'ReadNextFactor("Lock", "Id", "Name", "Description", "SubType")
  946.     Call OMS.ReadNextFactor(lck, id, names, description, subtype)
  947.     
  948.     'Display the data to the text boxes
  949.     Text2.Text = lck
  950.     Text3.Text = id
  951.     factorid = id               'will use in some "Read..Link" functions
  952.     Text4.Text = names
  953.     Text5.Text = description
  954.     Text6.Text = subtype
  955.     factorstandingid = 0
  956.  
  957. End Sub
  958.  
  959. ' This function is called when the user clicks the "ModifyFactorStanding" button
  960. Private Sub Command21_Click()
  961.     If OMS Is Nothing Then
  962.         Exit Sub
  963.     End If
  964.     
  965.     'ModifyFactorStanding("ID", "Name", "Score", "SubType")
  966.     Call OMS.ModifyFactorStanding(Text3.Text, Text4.Text, Text5.Text, Text6.Text)
  967.     
  968.     
  969. End Sub
  970.  
  971. ' This function is called when the user clicks the "AddRole" button
  972. Private Sub Command22_Click()
  973.     If OMS Is Nothing Then
  974.         Exit Sub
  975.     End If
  976.     
  977.     'Assign text to valuables, make sure you input to the correct field!
  978.     names = Text4.Text
  979.     description = Text5.Text
  980.     
  981.     'AddRole("Id", "Name", "Description")
  982.     'the id will be generated by Enterprise, so leave it in blank!
  983.     Call OMS.AddRole(id, names, description)
  984.     
  985.     Text3.Text = id
  986. End Sub
  987.  
  988. ' This function is called when the user clicks the "AddFactor" button
  989. Private Sub Command23_Click()
  990.     If OMS Is Nothing Then
  991.         Exit Sub
  992.     End If
  993.     
  994.     'Assign text to valuables, make sure you input to the correct field!
  995.     names = Text4.Text
  996.     description = Text5.Text
  997.     subtype = Text6.Text
  998.     
  999.     'AddFactor("Id", "Name", "Description", "SubType")
  1000.     Call OMS.AddFactor(id, names, description, subtype)
  1001.     
  1002.     Text3.Text = id
  1003.  
  1004. End Sub
  1005.  
  1006. ' This function is called when the user clicks the "AddStep" button
  1007. Private Sub Command24_Click()
  1008.     If OMS Is Nothing Then
  1009.         Exit Sub
  1010.     End If
  1011.     
  1012.     'Assign text to valuables, make sure you input to the correct field!
  1013.     names = Text4.Text
  1014.     description = Text5.Text
  1015.     activitycount = Text6.Text
  1016.     duration = Text7.Text
  1017.     interval = Text8.Text
  1018.     cost = Text9.Text
  1019.     
  1020.     'AddStep("Id", "Name", "Description", "Activity Included", "Effort Time", "Duration", "Cost")
  1021.     'Usually activitycount, duration, interval, and cost are all equal to 0 when you first create a step
  1022.     Call OMS.AddStep(id, names, description, activitycount, duration, interval, cost)
  1023.     
  1024.     Text3.Text = id
  1025.  
  1026. End Sub
  1027.  
  1028. ' This function is called when the user clicks the "AddActivity" button
  1029. Private Sub Command25_Click()
  1030.     If OMS Is Nothing Then
  1031.         Exit Sub
  1032.     End If
  1033.     
  1034.     'Assign text to valuables, make sure you input to the correct field!
  1035.     names = Text4.Text
  1036.     description = Text5.Text
  1037.     priority = Text6.Text
  1038.     hotlisttype = Text7.Text
  1039.     withrole = Text8.Text
  1040.     duration = Text9.Text
  1041.     cost = Text10.Text
  1042.     alarm = Text11.Text
  1043.     alarmminute = Text12.Text
  1044.     
  1045.     
  1046.     'AddActivity("Id", "Name", "Description", "Priority", "Hotlist Type", "With Role", "Effort Time", "Cost", "Alarm", "Alarm Lead Minutes")
  1047.     Call OMS.AddActivity(id, names, description, priority, hotlisttype, withrole, duration, cost, alarm, alarmminute)
  1048.     
  1049.     Text3.Text = id
  1050.  
  1051. End Sub
  1052.  
  1053. ' This function is called when the user clicks the "AddStrategyRoleLink" button
  1054. Private Sub Command26_Click()
  1055.     If OMS Is Nothing Then
  1056.         Exit Sub
  1057.     End If
  1058.     
  1059.     'Assign text to valuables, make sure you input to the correct field!
  1060.     strategyid = Text3.Text
  1061.     roleid = Text4.Text
  1062.     weight = Text5.Text
  1063.     
  1064.     'AddStrategyRoleLink("Strategy Id", "Role Id", "Weight")
  1065.     Call OMS.AddStrategyRoleLink(strategyid, roleid, weight)
  1066.  
  1067. End Sub
  1068.  
  1069. ' This function is called when the user clicks the "AddStrategyFactorLink" button
  1070. Private Sub Command27_Click()
  1071.     If OMS Is Nothing Then
  1072.         Exit Sub
  1073.     End If
  1074.     
  1075.     'Assign text to valuables, make sure you input to the correct field!
  1076.     strategyid = Text3.Text
  1077.     factorid = Text4.Text
  1078.     weight = Text5.Text
  1079.     
  1080.     'AddStrategyFactorLink("Strategy Id", "Factor Id", "Weight")
  1081.     Call OMS.AddStrategyFactorLink(strategyid, factorid, weight)
  1082.  
  1083. End Sub
  1084.  
  1085. ' This function is called when the user clicks the "AddStrategyStepLink" button
  1086. Private Sub Command28_Click()
  1087.     If OMS Is Nothing Then
  1088.         Exit Sub
  1089.     End If
  1090.     
  1091.     'Assign text to valuables, make sure you input to the correct field!
  1092.     strategyid = Text3.Text
  1093.     stepid = Text4.Text
  1094.     order = Text5.Text
  1095.     
  1096.     'AddStrategyStepLink("Strategy Id", "Step Id", "Chronlogical Order")
  1097.     Call OMS.AddStrategyStepLink(strategyid, stepid, order)
  1098.  
  1099. End Sub
  1100.  
  1101. ' This function is called when the user clicks the IsStrategyNameNotUnique button
  1102. Private Sub Command3_Click()
  1103.     If OMS Is Nothing Then
  1104.         Exit Sub
  1105.     End If
  1106.     
  1107.     'IsStrategyNameNotUnique("Strategy Name")
  1108.     Text1.Text = OMS.IsStrategyNameNotUnique("Strategy Test 1")
  1109.  
  1110. End Sub
  1111.  
  1112. ' This function is called when the user clicks the "AddStepActivityLink" button
  1113. Private Sub Command30_Click()
  1114.     If OMS Is Nothing Then
  1115.         Exit Sub
  1116.     End If
  1117.     
  1118.     'Assign text to valuables, make sure you input to the correct field!
  1119.     stepid = Text3.Text
  1120.     activityid = Text4.Text
  1121.     order = Text5.Text
  1122.     
  1123.     'AddStepActivityLink("Step Id", "Activity Id", "Chronlogical Order")
  1124.     Call OMS.AddStepActivityLink(stepid, activityid, order)
  1125.  
  1126. End Sub
  1127.  
  1128. ' This function is called when the user clicks the "AddFactorStandingLink" button
  1129. Private Sub Command31_Click()
  1130.     If OMS Is Nothing Then
  1131.         Exit Sub
  1132.     End If
  1133.     
  1134.     'Assign text to valuables, make sure you input to the correct field!
  1135.     factorid = Text3.Text
  1136.     factorstandingid = Text4.Text
  1137.     
  1138.     'AddFactorStandingLink("Factor Id", "Factor Standing Id")
  1139.     Call OMS.AddFactorStandingLink(factorid, factorstandingid)
  1140.  
  1141. End Sub
  1142.  
  1143. ' This function is called when the user clicks the "AddRoleStandingLink" button
  1144. Private Sub Command32_Click()
  1145.     If OMS Is Nothing Then
  1146.         Exit Sub
  1147.     End If
  1148.     
  1149.     'Assign text to valuables, make sure you input to the correct field!
  1150.     roleid = Text3.Text
  1151.     rolestandingid = Text4.Text
  1152.     
  1153.     Call OMS.AddRoleStandingLink(roleid, rolestandingid)
  1154.  
  1155.  
  1156. End Sub
  1157.  
  1158. ' This function is called when the user clicks the "AddFactorStanding" button
  1159. Private Sub Command33_Click()
  1160.     If OMS Is Nothing Then
  1161.         Exit Sub
  1162.     End If
  1163.     
  1164.     'Assign text to valuables, make sure you input to the correct field!
  1165.     names = Text4.Text
  1166.     score = Text5.Text
  1167.     subtype = Text6.Text
  1168.     
  1169.     'AddFactorStanding("Id", "Name", "Score", "SubType")
  1170.     'Id is generated by Enterprise, please leave it blank!
  1171.     Call OMS.AddFactorStanding(id, names, score, subtype)
  1172.     
  1173.     Text3.Text = id
  1174.  
  1175. End Sub
  1176.  
  1177. ' This function is called when the user clicks the "AddRoleStanding" button
  1178. Private Sub Command34_Click()
  1179.     If OMS Is Nothing Then
  1180.         Exit Sub
  1181.     End If
  1182.     
  1183.     'Assign text to valuables, make sure you input to the correct field!
  1184.     names = Text4.Text
  1185.     score = Text5.Text
  1186.     
  1187.     'AddRoleStanding("Id", "Name", "Score", "SubType")
  1188.     'Id is generated by Enterprise, please leave it blank!
  1189.     Call OMS.AddRoleStanding(id, names, score)
  1190.     
  1191.     Text3.Text = id
  1192.  
  1193. End Sub
  1194.  
  1195. 'Exit this VB application
  1196. Private Sub Command4_Click()
  1197.     Unload omsForm
  1198. End Sub
  1199.  
  1200. ' This function is called when the user clicks the IsStepNameNotUnique button
  1201. Private Sub Command5_Click()
  1202.     If OMS Is Nothing Then
  1203.         Exit Sub
  1204.     End If
  1205.     
  1206.     'IsStepNameNotUnique("Step Name")
  1207.     'Return 0 if it is not unique
  1208.     Text1.Text = OMS.IsStepNameNotUnique("Step Test 1")
  1209.  
  1210. End Sub
  1211.  
  1212. ' This function is called when the user clicks the IsActivityNameNotUnique button
  1213. Private Sub Command6_Click()
  1214.     If OMS Is Nothing Then
  1215.         Exit Sub
  1216.     End If
  1217.     
  1218.     'IsActivityNameNotUnique("Activity Name")
  1219.     'Return 0 if it is not unique
  1220.     Text1.Text = OMS.IsActivityNameNotUnique("Activity Test 1")
  1221.  
  1222. End Sub
  1223.  
  1224. ' This function is called when the user clicks the IsRoleNameNotUnique button
  1225. Private Sub Command7_Click()
  1226.     If OMS Is Nothing Then
  1227.         Exit Sub
  1228.     End If
  1229.     
  1230.     'IsRoleNameNotUnique("Role Name")
  1231.     'Return 0 if it is not unique
  1232.     Text1.Text = OMS.IsRoleNameNotUnique("Role Test 1")
  1233.  
  1234. End Sub
  1235.  
  1236. ' This function is called when the user clicks the IsFactorNameNotUnique button
  1237. Private Sub Command8_Click()
  1238.     If OMS Is Nothing Then
  1239.         Exit Sub
  1240.     End If
  1241.     
  1242.     'IsFactorNameNotUnique("Factor Name")
  1243.     'Return 0 if it is not unique
  1244.     Text1.Text = OMS.IsFactorNameNotUnique("Factor Test 1")
  1245.  
  1246. End Sub
  1247.  
  1248. ' This function is called when the user clicks the IsRoleStandingNameNotUnique button
  1249. Private Sub Command9_Click()
  1250.     If OMS Is Nothing Then
  1251.         Exit Sub
  1252.     End If
  1253.     
  1254.     'IsRoleStandingNameNotUnique("Role Standing Name")
  1255.     'Return 0 if it is not unique
  1256.     Text1.Text = OMS.IsRoleStandingNameNotUnique("Role Standing Test 1")
  1257.  
  1258. End Sub
  1259.