unit MtsCustomerTreeP_TLB;

// ************************************************************************ //
// WARNING                                                                  //
// -------                                                                  //
// The types declared in this file were generated from data read from a     //
// Type Library. If this type library is explicitly or indirectly (via      //
// another type library referring to this type library) re-imported, or the //
// 'Refresh' command of the Type Library Editor activated while editing the //
// Type Library, the contents of this file will be regenerated and all      //
// manual modifications will be lost.                                       //
// ************************************************************************ //

// PASTLWTR : $Revision:   1.11.1.51  $
// File generated on 6/5/98 3:05:25 AM from Type Library described below.

// ************************************************************************ //
// Type Lib: E:\mtsinone\MtsCustomerTreeProject.tlb
// IID\LCID: {A47E35B0-D045-11D1-A94D-00A024C11562}\0
// Helpfile: 
// HelpString: MtsCustomerTreeP Library
// Version:    1.0
// ************************************************************************ //

interface

uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:      //
//   Type Libraries     : LIBID_xxxx                                    //
//   CoClasses          : CLASS_xxxx                                    //
//   DISPInterfaces     : DIID_xxxx                                     //
//   Non-DISP interfaces: IID_xxxx                                      //
// *********************************************************************//
const
  LIBID_MtsCustomerTreeP: TGUID = '{A47E35B0-D045-11D1-A94D-00A024C11562}';
  IID_IMtsCustomerTree: TGUID = '{A47E35B1-D045-11D1-A94D-00A024C11562}';
  CLASS_MtsCustomerTree: TGUID = '{A47E35B3-D045-11D1-A94D-00A024C11562}';
type

// *********************************************************************//
// Forward declaration of interfaces defined in Type Library            //
// *********************************************************************//
  IMtsCustomerTree = interface;
  IMtsCustomerTreeDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                     //
// (NOTE: Here we map each CoClass to its Default Interface)            //
// *********************************************************************//
  MtsCustomerTree = IMtsCustomerTree;

// *********************************************************************//
// Interface: IMtsCustomerTree
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A47E35B1-D045-11D1-A94D-00A024C11562}
// *********************************************************************//
  IMtsCustomerTree = interface(IDataBroker)
    ['{A47E35B1-D045-11D1-A94D-00A024C11562}']
    function GetCustomerTree(CustNo: Integer; MetaData: WordBool): OleVariant; safecall;
    function GetCustomersList: OleVariant; safecall;
    procedure SetEmpNo(EmpNo: Integer); safecall;
    procedure SetMTSOptions(const RoleCanEdit: WideString); safecall;
    function ApplyCustomerTree(Delta: OleVariant; out ErrorCount: Integer): OleVariant; safecall;
    function GetPartsList: OleVariant; safecall;
  end;

// *********************************************************************//
// DispIntf:  IMtsCustomerTree
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A47E35B1-D045-11D1-A94D-00A024C11562}
// *********************************************************************//
  IMtsCustomerTreeDisp = dispinterface
    ['{A47E35B1-D045-11D1-A94D-00A024C11562}']
    function GetCustomerTree(CustNo: Integer; MetaData: WordBool): OleVariant; dispid 1;
    function GetCustomersList: OleVariant; dispid 2;
    procedure SetEmpNo(EmpNo: Integer); dispid 5;
    procedure SetMTSOptions(const RoleCanEdit: WideString); dispid 6;
    function ApplyCustomerTree(Delta: OleVariant; out ErrorCount: Integer): OleVariant; dispid 9;
    function GetPartsList: OleVariant; dispid 14;
  end;

  CoMtsCustomerTree = class
    class function Create: IMtsCustomerTree;
    class function CreateRemote(const MachineName: string): IMtsCustomerTree;
  end;

implementation

uses ComObj;

class function CoMtsCustomerTree.Create: IMtsCustomerTree;
begin
  Result := CreateComObject(CLASS_MtsCustomerTree) as IMtsCustomerTree;
end;

class function CoMtsCustomerTree.CreateRemote(const MachineName: string): IMtsCustomerTree;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_MtsCustomerTree) as IMtsCustomerTree;
end;

end.
