您的位置: 龙岩金蝶软件论坛 -> 企业管理软件区域 -> VB交流 -> 调用K3组件反审核单据
本帖共有341个阅读者
发表帖子 发表投票 回复主题
调用K3组件反审核单据
尊贵身份标志
cyy275(管理员)
cyy275
头衔:社区公民
帮派:无帮无派
帖数:497
金钱:100000
积分:2248
注册时间:2017-5-8
楼主信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
调用K3组件反审核单据

Public Function UnCheckK3Bill(ByVal lTranType As Long, ByVal lInterID As Long) As Boolean
On Error GoTo Err
    Dim MOBJ As Object
    Dim DictParam As KFO.Dictionary
    Dim obj As Object
    Dim ReturnCode As Long
    Dim ReturnString As String
    Dim vectItemInfo As KFO.Vector
    Dim MultiCheckLevel As Long
    UnCheckK3Bill = True
    Set MOBJ = CreateObject("K3MCheckBill.CheckNow")
    Set DictParam = New KFO.Dictionary
    DictParam("PropString") = sPropsString
    DictParam("TransType") = lTranType
    DictParam("InterID") = lInterID
    DictParam("CheckerID") = 0
    DictParam("CheckSwitch") = 0 'check
    DictParam("ReCheck") = 0
    DictParam("OperateType") = 0
    DictParam("CheckDate") = Format(Now, "yyyy-MM-dd hh:mm:ss")
    DictParam("ReturnCode") = ReturnCode
    DictParam("ReturnString") = ReturnString
    Set DictParam("vectItemInfo") = vectItemInfo
    DictParam("MultiCheckLevel") = MultiCheckLevel
    DictParam("WorkFlowFlag") = 0 '发送工作流消息标志
    DictParam("BillNO") = gsBillNo
    DictParam("OperateCode") = 2
  
    MOBJ.CheckBill DictParam
    If DictParam("ReturnCode") < 0 Then
       Msg DictParam("ReturnString")
       UnCheckK3Bill = False
    Else
        'Msg "反审核成功!"
    End If

    Set DictParam = Nothing
    Set MOBJ = Nothing
    Exit Function
Err:
    UnCheckK3Bill = False
    Msg Err.Description
End Function



DictParam("OperateCode") = 2'反审核
DictParam("OperateCode") = 1 是审核

今天的努力,明天的享受!
今天的无为,明天的无助!
今天的迷茫,明天的受累!
等级:管理员 参考IP地址:*.*.*.*
2019-1-18 23:35:24
尊贵身份标志
cyy275(管理员)
cyy275
头衔:社区公民
帮派:无帮无派
帖数:497
金钱:100000
积分:2248
注册时间:2017-5-8
1信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线

今天的努力,明天的享受!
今天的无为,明天的无助!
今天的迷茫,明天的受累!
等级:管理员 参考IP地址:*.*.*.*
2019-1-31 13:53:44
尊贵身份标志
cyy275(管理员)
cyy275
头衔:社区公民
帮派:无帮无派
帖数:497
金钱:100000
积分:2248
注册时间:2017-5-8
2信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线

中间层组件


今天的努力,明天的享受!
今天的无为,明天的无助!
今天的迷茫,明天的受累!
等级:管理员 参考IP地址:*.*.*.*
2019-2-1 17:24:32
Powered by 金蝶论坛 Copyright © 2011 www.xxhcom.cn. All rights reserved.