|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
按U8开发实例的写了
'事例2: 制单 (其他产品)
'总账公用函数实例化
If Not Login("PM") Then Exit Sub
Dim UfDb As New UfDbKit.UfDatabase
Dim SQL As String
UfDb.OpenDatabase m_login.UfDbName
Set m_ZwPub = New clsPub
m_ZwPub.InitPubs2 "SA", m_login.UfSystemDb, UfDb, m_login.cacc_id, m_login.cIYear, m_login.cUserId, m_login.CurDate, m_login.SysPassword
'准备数据 , 临时表结构参见总账数据库结构文档的凭证表
Dim I As Integer, rstVouch As UfRecordset
SQL = "select * from " & m_ZwPub.WbTableName
Set rstVouch = m_ZwPub.DataMdb.OpenRecordset(SQL)
For I = 0 To 1
rstVouch.AddNew
rstVouch!ioutperiod = 9
rstVouch!coutsign = "项目"
rstVouch!coutno_id = "123456"
rstVouch!coutsysname = "SA"
rstVouch!cbill = m_login.cUserName
rstVouch!inid = I
'以上字段必填
If I = 0 Then
rstVouch!md = 100
Else
rstVouch!mc = 200
End If
rstVouch.Update
Next I '调用凭证对象
Set m_objPz = New clsPZ
Set m_objPz.zzLogin = m_login
Set m_objPz.zzSys = m_ZwPub
m_objPz.StartUpPz "PM", "PM034", Pz_ZD
Set m_objPz = Nothing
Set m_ZwPub = Nothing
这样调用后的凭证界面是出来了,但内容不能修改
sysname改为"GL"的话,不能预置数据,调出来是空白内容的凭证
sysname不为"GL"时,不能修改
不知道有没有方法外部制单可以修改内容的呢? 哪位好心人教一下!
|
|