// ********** // // 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 2018\3\4 星期日 21:37:18 from Type Library described below.
// ********** // // Type Lib: C:\Program Files (x86)\Capinfo\BJMediCareDrugStoreClient\1.00.0000\DrugCom.dll (1) // LIBID: {2FB00DCA-A537-4EE2-929B-0EE2F4FF1C21} // LCID: 0 // Helpfile : // HelpString: DrugCom 1.0 类型库 // DepndLst: // (1) v2.0 stdole, (C:\Windows\SysWOW64\stdole2.tlb) // Errors: // Error creating palette bitmap of (TPharmecy) : Server C:\Program Files (x86)\Capinfo\BJMediCareDrugStoreClient\1.00.0000\1.00.0042\DrugCom.dll contains no icons // ********** // // **********// // NOTE: // Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties // which return objects that may need to be explicitly created via a function // call prior to any access via the property. These items have been disabled // in order to prevent accidental use from within the object inspector. You // may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively // removing them from the $IFDEF blocks. However, such items must still be // programmatically created via a method of the appropriate CoClass before // they can be used. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. {$WARN SYMBOL_PLATFORM OFF} {$WRITEABLECONST ON} {$VARPROPSETTER ON} interface
IID_IPharmecy: TGUID = '{003366C6-D9F6-4A37-B4C0-47524320B479}'; CLASS_Pharmecy: TGUID = '{454CD8C1-29DA-43AB-AC34-10A51DAD1C66}'; type
// **********// // Forward declaration of types defined in TypeLibrary // **********// IPharmecy = interface; IPharmecyDisp = dispinterface;
// **********// // Declaration of CoClasses defined in Type Library // (NOTE: Here we map each CoClass to its Default Interface) // **********// Pharmecy = IPharmecy;
// **********// // The Class CoPharmecy provides a Create and CreateRemote method to // create instances of the default interface IPharmecy exposed by // the CoClass Pharmecy. The functions are intended to be used by // clients wishing to automate the CoClass objects exposed by the // server of this typelibrary. // **********// CoPharmecy = class class function Create: IPharmecy; class function CreateRemote(const MachineName: string): IPharmecy; end;
// **********// // OLE Server Proxy class declaration // Server Object : TPharmecy // Help String : Pharmecy Class // Default Interface: IPharmecy // Def. Intf. DISP? : No // Event Interface: // TypeFlags : (2) CanCreate // **********// {$IFDEF LIVE_SERVER_AT_DESIGN_TIME} TPharmecyProperties= class; {$ENDIF} TPharmecy = class(TOleServer) private FIntf: IPharmecy; {$IFDEF LIVE_SERVER_AT_DESIGN_TIME} FProps: TPharmecyProperties; function GetServerProperties: TPharmecyProperties; {$ENDIF} function GetDefaultInterface: IPharmecy; protected procedure InitServerData; override; public constructor Create(AOwner: TComponent); override; destructor Destroy; override; procedure Connect; override; procedure ConnectTo(svrIntf: IPharmecy); procedure Disconnect; override; procedure Open(out OutInfo: WideString); procedure Close(out OutInfo: WideString); procedure GetCardInfo(out CardInfo: WideString); procedure InitPB6Env; procedure RefundmentDivide_Drugstore(const TradeNo: WideString; const Operator: WideString; out DivideResult: WideString); procedure PrintInvoice_Drugstore(const QueryInfo: WideString; out StateInfo: WideString); procedure GetPersonInfo_Drugstore(const QueryInfo: WideString; out PersonInfo: WideString); procedure Divide_Drugstore(const DivideInfo: WideString; out DivideResult: WideString); procedure Trade_Drugstore(out TradeResult: WideString); procedure CommitTradeState_Drugstore(const TradeNo: WideString; out TradeInfo: WideString); procedure GetExRxInfo(out RxInfoList: WideString); procedure CardInsertState(out iResult: SYSINT; out ErrMsg: WideString); procedure GetDevIdAfterOpen(out lDevId: Integer; out ErrMsg: WideString); procedure GetDrugStoreID(out DrugStoreID: WideString; out ErrMsg: WideString); property DefaultInterface: IPharmecy read GetDefaultInterface; published {$IFDEF LIVE_SERVER_AT_DESIGN_TIME} property Server: TPharmecyProperties read GetServerProperties; {$ENDIF} end;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME} // **********// // OLE Server Properties Proxy Class // Server Object : TPharmecy // (This object is used by the IDE's Property Inspector to allow editing // of the properties of this server) // **********// TPharmecyProperties = class(TPersistent) private FServer: TPharmecy; function GetDefaultInterface: IPharmecy; constructor Create(AServer: TPharmecy); protected public property DefaultInterface: IPharmecy read GetDefaultInterface; published end; {$ENDIF}
procedure Register;
resourcestring dtlServerPage = 'ActiveX';
dtlOcxPage = 'ActiveX';
implementation
uses ComObj;
class function CoPharmecy.Create: IPharmecy; begin Result := CreateComObject(CLASS_Pharmecy) as IPharmecy; end;
class function CoPharmecy.CreateRemote(const MachineName: string): IPharmecy; begin Result := CreateRemoteComObject(MachineName, CLASS_Pharmecy) as IPharmecy; end;
procedure TPharmecy.Connect; var punk: IUnknown; begin if FIntf = nil then begin punk := GetServer; Fintf:= punk as IPharmecy; end; end;
procedure TPharmecy.ConnectTo(svrIntf: IPharmecy); begin Disconnect; FIntf := svrIntf; end;
procedure TPharmecy.DisConnect; begin if Fintf <> nil then begin FIntf := nil; end; end;
function TPharmecy.GetDefaultInterface: IPharmecy; begin if FIntf = nil then Connect; Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation'); Result := FIntf; end;
// ********** // // 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 2018\3\5 星期一 2:34:08 from Type Library described below.
// ********** // // Type Lib: C:\Program Files (x86)\Capinfo\BeiJingMediCareClient\1.00.0000\MedicareCom.dll (1) // LIBID: {232E9616-F847-49F7-9AC3-095831429411} // LCID: 0 // Helpfile : // HelpString: MedicareCom 1.0 类型库 // DepndLst: // (1) v2.0 stdole, (C:\Windows\SysWOW64\stdole2.tlb) // Errors: // Error creating palette bitmap of (TOutpatient) : Server C:\Program Files (x86)\Capinfo\BeiJingMediCareClient\1.00.0000\MedicareCom.dll contains no icons // ********** // // **********// // NOTE: // Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties // which return objects that may need to be explicitly created via a function // call prior to any access via the property. These items have been disabled // in order to prevent accidental use from within the object inspector. You // may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively // removing them from the $IFDEF blocks. However, such items must still be // programmatically created via a method of the appropriate CoClass before // they can be used. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. {$WARN SYMBOL_PLATFORM OFF} {$WRITEABLECONST ON} {$VARPROPSETTER ON} interface
IID_IOutpatient: TGUID = '{D1ED1DEE-8994-431C-B048-C0586E4A4C31}'; CLASS_Outpatient: TGUID = '{6ED3D8A4-FD47-4ED8-A93F-96EB87B5D830}'; type
// **********// // Forward declaration of types defined in TypeLibrary // **********// IOutpatient = interface; IOutpatientDisp = dispinterface;
// **********// // Declaration of CoClasses defined in Type Library // (NOTE: Here we map each CoClass to its Default Interface) // **********// Outpatient = IOutpatient;
// **********// // Declaration of structures, unions and aliases. // **********// PWideString1 = ^WideString; {*}
// **********// // The Class CoOutpatient provides a Create and CreateRemote method to // create instances of the default interface IOutpatient exposed by // the CoClass Outpatient. The functions are intended to be used by // clients wishing to automate the CoClass objects exposed by the // server of this typelibrary. // **********// CoOutpatient = class class function Create: IOutpatient; class function CreateRemote(const MachineName: string): IOutpatient; end;
// **********// // OLE Server Proxy class declaration // Server Object : TOutpatient // Help String : Outpatient Class // Default Interface: IOutpatient // Def. Intf. DISP? : No // Event Interface: // TypeFlags : (2) CanCreate // **********// {$IFDEF LIVE_SERVER_AT_DESIGN_TIME} TOutpatientProperties= class; {$ENDIF} TOutpatient = class(TOleServer) private FIntf: IOutpatient; {$IFDEF LIVE_SERVER_AT_DESIGN_TIME} FProps: TOutpatientProperties; function GetServerProperties: TOutpatientProperties; {$ENDIF} function GetDefaultInterface: IOutpatient; protected procedure InitServerData; override; public constructor Create(AOwner: TComponent); override; destructor Destroy; override; procedure Connect; override; procedure ConnectTo(svrIntf: IOutpatient); procedure Disconnect; override; procedure Open(out OutInfo: WideString); procedure Close(out OutInfo: WideString); procedure GetPersonInfo(out PersonInfo: WideString); procedure Divide(const DivideInfo: WideString; out DivideResult: WideString); procedure Trade(out TradeResult: WideString); procedure RePrintInvoice(const TradeNo: WideString; const InvoiceNo: WideString; out StateInfo: WideString); procedure RefundmentDivide(const TradeNo: WideString; const Operator: WideString; out DivideResult: WideString); procedure GetCardInfo(out CardInfo: WideString); procedure MedicareQuery(const QueryIn: WideString; out QueryOut: WideString); procedure InitPB6Env; procedure CapinfoTest(const TestInfo: WideString; var TestResult: WideString); procedure CommitTradeState(const TradeNo: WideString; out TradeInfo: WideString); procedure TransferTreatment(const HospCode: WideString; TransferDate: TDateTime); procedure CardInsertState(out iResult: SYSINT; out ErrMsg: WideString); procedure GetDevIdAfterOpen(out lDevId: Integer; out ErrMsg: WideString); property DefaultInterface: IOutpatient read GetDefaultInterface; published {$IFDEF LIVE_SERVER_AT_DESIGN_TIME} property Server: TOutpatientProperties read GetServerProperties; {$ENDIF} end;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME} // **********// // OLE Server Properties Proxy Class // Server Object : TOutpatient // (This object is used by the IDE's Property Inspector to allow editing // of the properties of this server) // **********// TOutpatientProperties = class(TPersistent) private FServer: TOutpatient; function GetDefaultInterface: IOutpatient; constructor Create(AServer: TOutpatient); protected public property DefaultInterface: IOutpatient read GetDefaultInterface; published end; {$ENDIF}
procedure Register;
resourcestring dtlServerPage = 'ActiveX';
dtlOcxPage = 'ActiveX';
implementation
uses ComObj;
class function CoOutpatient.Create: IOutpatient; begin Result := CreateComObject(CLASS_Outpatient) as IOutpatient; end;
class function CoOutpatient.CreateRemote(const MachineName: string): IOutpatient; begin Result := CreateRemoteComObject(MachineName, CLASS_Outpatient) as IOutpatient; end;
procedure TOutpatient.Connect; var punk: IUnknown; begin if FIntf = nil then begin punk := GetServer; Fintf:= punk as IOutpatient; end; end;
procedure TOutpatient.ConnectTo(svrIntf: IOutpatient); begin Disconnect; FIntf := svrIntf; end;
procedure TOutpatient.DisConnect; begin if Fintf <> nil then begin FIntf := nil; end; end;
function TOutpatient.GetDefaultInterface: IOutpatient; begin if FIntf = nil then Connect; Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation'); Result := FIntf; end;