?? pserver_tlb.pas
字號:
unit pServer_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 : 1.2
// File generated on 2007-6-28 下午 05:24:48 from Type Library described below.
// ************************************************************************ //
// Type Lib: F:\原G盤\DownLoads\臨時下載\三層進銷存系統\Server\pServer.tlb (1)
// LIBID: {2EB5F723-EC12-4187-A580-32861DE19343}
// LCID: 0
// Helpfile:
// HelpString: pServer Library
// DepndLst:
// (1) v1.0 Midas, (D:\Program Files\最初評標3.0\經典網絡評標06\經典網絡評標06\客戶端\midas.dll)
// (2) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// (3) v4.0 StdVCL, (C:\WINDOWS\system32\stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, Midas, StdVCL, Variants;
// *********************************************************************//
// 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
pServerMajorVersion = 1;
pServerMinorVersion = 0;
LIBID_pServer: TGUID = '{2EB5F723-EC12-4187-A580-32861DE19343}';
IID_IsvrRDM: TGUID = '{3C073D18-A397-4E93-ABD0-D84E492BF94E}';
CLASS_svrRDM: TGUID = '{100B226B-279E-42B3-AB5A-3C9B515B535C}';
CLASS_pooler: TGUID = '{E21C3EEA-650E-47C5-8C5E-5067A36610DE}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IsvrRDM = interface;
IsvrRDMDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
svrRDM = IsvrRDM;
pooler = IsvrRDM;
// *********************************************************************//
// Interface: IsvrRDM
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {3C073D18-A397-4E93-ABD0-D84E492BF94E}
// *********************************************************************//
IsvrRDM = interface(IAppServer)
['{3C073D18-A397-4E93-ABD0-D84E492BF94E}']
procedure setip(const ip: WideString); safecall;
function login(const usercode: WideString; const password: WideString): Integer; safecall;
function getusername(const usercode: WideString; const password: WideString): WideString; safecall;
function getgroupid(const usercode: WideString; const username: WideString): Integer; safecall;
function getadmin(const usercode: WideString; const password: WideString): WordBool; safecall;
function getapptitle: WideString; safecall;
function syslog(const fform: WideString; const fevent: WideString; const fuser: WideString;
const fpcname: WideString): Integer; safecall;
function execsql(const cmdstr: WideString): WordBool; safecall;
function getlargedata(const psql: WideString; precCount: Integer): OleVariant; safecall;
function applyupdata(pdelta: OleVariant; const ptablename: WideString;
const pkeyfield: WideString): WordBool; safecall;
function getmaxid(const ptablename: WideString; const pkeyfield: WideString): Integer; safecall;
function isunique(const ptablename: WideString; const pkeyfield: WideString;
const pkeyvalue: WideString): WordBool; safecall;
function getnumber(pBilltypeid: Integer): WideString; safecall;
function getinnunber(pBilltypeid: Integer): Integer; safecall;
function purchasedetail(pitemid: Integer): OleVariant; safecall;
end;
// *********************************************************************//
// DispIntf: IsvrRDMDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {3C073D18-A397-4E93-ABD0-D84E492BF94E}
// *********************************************************************//
IsvrRDMDisp = dispinterface
['{3C073D18-A397-4E93-ABD0-D84E492BF94E}']
procedure setip(const ip: WideString); dispid 301;
function login(const usercode: WideString; const password: WideString): Integer; dispid 302;
function getusername(const usercode: WideString; const password: WideString): WideString; dispid 303;
function getgroupid(const usercode: WideString; const username: WideString): Integer; dispid 304;
function getadmin(const usercode: WideString; const password: WideString): WordBool; dispid 305;
function getapptitle: WideString; dispid 306;
function syslog(const fform: WideString; const fevent: WideString; const fuser: WideString;
const fpcname: WideString): Integer; dispid 307;
function execsql(const cmdstr: WideString): WordBool; dispid 308;
function getlargedata(const psql: WideString; precCount: Integer): OleVariant; dispid 309;
function applyupdata(pdelta: OleVariant; const ptablename: WideString;
const pkeyfield: WideString): WordBool; dispid 310;
function getmaxid(const ptablename: WideString; const pkeyfield: WideString): Integer; dispid 311;
function isunique(const ptablename: WideString; const pkeyfield: WideString;
const pkeyvalue: WideString): WordBool; dispid 312;
function getnumber(pBilltypeid: Integer): WideString; dispid 313;
function getinnunber(pBilltypeid: Integer): Integer; dispid 314;
function purchasedetail(pitemid: Integer): OleVariant; dispid 315;
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 CosvrRDM provides a Create and CreateRemote method to
// create instances of the default interface IsvrRDM exposed by
// the CoClass svrRDM. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CosvrRDM = class
class function Create: IsvrRDM;
class function CreateRemote(const MachineName: string): IsvrRDM;
end;
// *********************************************************************//
// The Class Copooler provides a Create and CreateRemote method to
// create instances of the default interface IsvrRDM exposed by
// the CoClass pooler. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
Copooler = class
class function Create: IsvrRDM;
class function CreateRemote(const MachineName: string): IsvrRDM;
end;
implementation
uses ComObj;
class function CosvrRDM.Create: IsvrRDM;
begin
Result := CreateComObject(CLASS_svrRDM) as IsvrRDM;
end;
class function CosvrRDM.CreateRemote(const MachineName: string): IsvrRDM;
begin
Result := CreateRemoteComObject(MachineName, CLASS_svrRDM) as IsvrRDM;
end;
class function Copooler.Create: IsvrRDM;
begin
Result := CreateComObject(CLASS_pooler) as IsvrRDM;
end;
class function Copooler.CreateRemote(const MachineName: string): IsvrRDM;
begin
Result := CreateRemoteComObject(MachineName, CLASS_pooler) as IsvrRDM;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -