在插件中显示BOS序时簿并返回选中的值

 

 1 '********************************************
 2 '功能:显示BOS序时簿并返回选中的值
 3 '参数:lClassTypeID—显示BOS单据的ID
 4 '********************************************
 5  Private Function ShowListByReturn(ByVal lClassTypeID As Long) As Object
 6 Dim oDataSrv As Object
 7 Dim objLookup As Object
 8 On Error GoTo err_ctr
 9 Set oDataSrv = m_BillInterface.K3Lib.CreateK3Object("K3ClassTpl.DataSrv")
10 oDataSrv.ClassTypeID = lClassTypeID
11 If oDataSrv.showfilter Then
12    Set objLookup = CreateObject("K3ClassLookUp.BillLookUp")
13    objLookup.ClassTypeID = lClassTypeID
14    Set objLookup.DataSrv = oDataSrv
15      objLookup.Lookup
16      Set ShowListByReturn = objLookup.VectReturn
17 End If
18 Set oDataSrv = Nothing
19 Set objLookup = Nothing
20 Exit Function
21 err_ctr:
22 Set oDataSrv = Nothing
23 Set objLookup = Nothing
24 End Function

 

相关文章:

  • 2022-01-01
  • 2021-12-02
  • 2021-12-02
  • 2022-01-16
  • 2021-09-04
  • 2021-06-13
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2021-11-27
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-11-28
相关资源
相似解决方案