- 打卡等级:无名新人
- 打卡总天数:1
- 打卡月天数:0
- 打卡总奖励:3
- 最近打卡:2024-10-23 18:41:09
|
楼主 |
发表于 2021-8-16 09:58:34
|
显示全部楼层
联查凭证
Dim WbTableName As String '凭证临时表
Dim dbc As ADODB.Connection
Dim UfDb As New UfDbKit.UfDatabase
Dim subid As String = "IA"
Dim cno_id As String
cno_id = "2021IA0000000019260"
dbc = New ADODB.Connection
ARPZ.zzLogin = m_login
UfDb.OpenDatabase(m_login.UfDbName)
m_ZwPub.InitPubs2("IA", m_login.UfSystemDb, UfDb, m_login.cAcc_Id, m_login.cIYear, m_login.cUserName, m_login.CurDate, m_login.SysPassword)
ARPZ.zzSys = m_ZwPub
ARPZ.NewFLCode = "IA,FA,#"
WbTableName = m_ZwPub.WbTableName
If dbc.State <> 0 Then dbc.Close()
dbc.Open(m_login.UfDbName)
Dim rsTemp As ADODB.Recordset
Dim Str As String
rsTemp = New ADODB.Recordset
If rsTemp.State <> 0 Then rsTemp.Close()
Str = "select top 1 * from GL_accvouch where coutno_id='" & cno_id & "' "
rsTemp.CursorLocation = 3
rsTemp.Open(Str, dbc, 3, 4)
Dim coutsysname As String = ""
Dim ioutperiod As String = ""
Dim coutsign As String = ""
Dim coutno_id As String = ""
Dim ioutyear As String = ""
If Not rsTemp.EOF Then
coutsysname = rsTemp.Fields("coutsysname").Value
ioutperiod = rsTemp.Fields("ioutperiod").Value
coutsign = rsTemp.Fields("coutsign").Value
coutno_id = rsTemp.Fields("coutno_id").Value
ioutyear = rsTemp.Fields("ioutyear").Value
End If
If Not rsTemp.EOF Then
ARPZ.StartUpPz("IA", "GL0205", 3, , cousysname, ioutperiod, coutsign, coutno_id, ioutyear)
End If
|
|