永发信息网

java 不能调用银海接口吗

答案:2  悬赏:0  手机版
解决时间 2021-12-30 21:54
  • 提问者网友:皆是孤独
  • 2021-12-30 17:08
java 不能调用银海接口吗
最佳答案
  • 五星知识达人网友:山河有幸埋战骨
  • 2021-12-30 17:27
Dim yinhaiobject As Object '定义存放引用对象的变量。

Private Sub Command1_Click() '初始化

Set yinhaiobject = CreateObject("yinhai.xjcj.interface")

MsgBox "1"
'检查连接是否建立
If yinhaiobject Is Nothing Then MsgBox "对象为空!"

Dim Appcode As Long
Dim Appmsg As String

yinhaiobject.yh_interface_init Appcode, Appmsg
MsgBox "2" & Appcode & "|" & Appmsg

End Sub

Private Sub Command2_Click() '查询医院信息

Dim BusinessID As String
Dim Dataxml As String
Dim Businesssequence As String
Dim Businessvalidate As String
Dim Outputxml As String
Dim Appcode As Long
Dim Appmsg As String

MsgBox "3"
BusinessID = "04"
Ctrlxml = "" '组织参数
Dataxml = " " encoding=" & Chr$(34) & "GBK" & Chr$(34) & _
" standalone=" & Chr$(34) & "yes" & Chr$(34) & _
" ?>" '组织参数
yinhaiobject.yh_interface_call BusinessID, Dataxml, Businesssequence, Businessvalidate, Outputxml, Appcode, Appmsg
MsgBox "4" & Appcode & "|" & Appmsg & vbLf & Outputxml

'HIS业务处理
Set yinhaiobject = Nothing '关闭对象
全部回答
  • 1楼网友:纵马山川剑自提
  • 2021-12-30 18:03
需要吧
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯