⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slserver_tlb.pas

📁 三層源碼,DELPHI寫的三層源碼,三層源碼,
💻 PAS
字号:
unit slserver_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.88.1.0.1.0  $
// File generated on 2006-7-18 9:31:05 from Type Library described below.

// ************************************************************************ //
// Type Lib: E:\programs\midas\svr\slserver.tlb (1)
// IID\LCID: {EAE0790F-3006-4E54-A435-74CDBE39A29C}\0
// Helpfile: 
// DepndLst: 
//   (1) v1.0 Midas, (E:\programs\newsalary\midas.dll)
//   (2) v2.0 stdole, (C:\WINNT\system32\stdole2.tlb)
//   (3) v4.0 StdVCL, (C:\WINNT\system32\STDVCL40.DLL)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
interface

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

// *********************************************************************//
// 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
  // TypeLibrary Major and minor versions
  slserverMajorVersion = 1;
  slserverMinorVersion = 0;

  LIBID_slserver: TGUID = '{EAE0790F-3006-4E54-A435-74CDBE39A29C}';

  IID_Islsvr: TGUID = '{A15F86CB-7399-4020-B4F4-F09A847C2C17}';
  CLASS_slsvr: TGUID = '{74034362-8AC1-4EBA-842A-9AFB2A39A149}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  Islsvr = interface;
  IslsvrDisp = dispinterface;

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


// *********************************************************************//
// Interface: Islsvr
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A15F86CB-7399-4020-B4F4-F09A847C2C17}
// *********************************************************************//
  Islsvr = interface(IAppServer)
    ['{A15F86CB-7399-4020-B4F4-F09A847C2C17}']
    function  Get_getserverdate: TDateTime; safecall;
    function  Get_getoperation: WordBool; safecall;
    function  Get_lasterrormsg: WideString; safecall;
    procedure user_model(const funid: WideString; const params: WideString); safecall;
    procedure dept_model(const funid: WideString; const params: WideString); safecall;
    procedure Parchives_model(const funid: WideString; const params: WideString); safecall;
    procedure dormitory_model(const funid: WideString; const params: WideString); safecall;
    procedure event_model(const funid: WideString; const params: WideString); safecall;
    procedure sysother_model(const funid: WideString; const params: WideString); safecall;
    procedure cess_model(const funid: WideString; const params: WideString); safecall;
    procedure medicare_model(const funid: WideString; const params: WideString); safecall;
    procedure insurance_model(const funid: WideString; const params: WideString); safecall;
    procedure incometax_model(const funid: WideString; const params: WideString); safecall;
    property getserverdate: TDateTime read Get_getserverdate;
    property getoperation: WordBool read Get_getoperation;
    property lasterrormsg: WideString read Get_lasterrormsg;
  end;

// *********************************************************************//
// DispIntf:  IslsvrDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {A15F86CB-7399-4020-B4F4-F09A847C2C17}
// *********************************************************************//
  IslsvrDisp = dispinterface
    ['{A15F86CB-7399-4020-B4F4-F09A847C2C17}']
    property getserverdate: TDateTime readonly dispid 30000003;
    property getoperation: WordBool readonly dispid 30000004;
    property lasterrormsg: WideString readonly dispid 30000005;
    procedure user_model(const funid: WideString; const params: WideString); dispid 5;
    procedure dept_model(const funid: WideString; const params: WideString); dispid 6;
    procedure Parchives_model(const funid: WideString; const params: WideString); dispid 8;
    procedure dormitory_model(const funid: WideString; const params: WideString); dispid 10;
    procedure event_model(const funid: WideString; const params: WideString); dispid 11;
    procedure sysother_model(const funid: WideString; const params: WideString); dispid 15;
    procedure cess_model(const funid: WideString; const params: WideString); dispid 4;
    procedure medicare_model(const funid: WideString; const params: WideString); dispid 16;
    procedure insurance_model(const funid: WideString; const params: WideString); dispid 17;
    procedure incometax_model(const funid: WideString; const params: WideString); dispid 18;
    function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
                              MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
    function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                            Options: Integer; const CommandText: WideString; 
                            var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
    function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
    function  AS_GetProviderNames: OleVariant; dispid 20000003;
    function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
    function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                            var OwnerData: OleVariant): OleVariant; dispid 20000005;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  end;

// *********************************************************************//
// The Class Coslsvr provides a Create and CreateRemote method to          
// create instances of the default interface Islsvr exposed by              
// the CoClass slsvr. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  Coslsvr = class
    class function Create: Islsvr;
    class function CreateRemote(const MachineName: string): Islsvr;
  end;

implementation

uses ComObj;

class function Coslsvr.Create: Islsvr;
begin
  Result := CreateComObject(CLASS_slsvr) as Islsvr;
end;

class function Coslsvr.CreateRemote(const MachineName: string): Islsvr;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_slsvr) as Islsvr;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -