📄
字号:
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "显示项目"
Key = "szxsxm"
ImageKey = "xsxm"
EndProperty
EndProperty
End
Begin VB.Timer Timer3
Enabled = 0 'False
Left = 30
Top = 510
End
End
Begin MSComctlLib.ImageList ImageList1
Left = 9090
Top = 30
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 24
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":35106
Key = "sz"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":354A0
Key = "qx"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":3583A
Key = "qxi"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":35BD4
Key = "pz"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":35F6E
Key = "hc"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":36308
Key = "dy"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":366A2
Key = "yl"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":36A3C
Key = "cx"
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":36DD6
Key = "dj"
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":37170
Key = "sx"
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":3750A
Key = "first"
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":378A4
Key = "prev"
EndProperty
BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":37C3E
Key = "next"
EndProperty
BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":37FD8
Key = "last"
EndProperty
BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":38372
Key = "bz"
EndProperty
BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":3870C
Key = "tc"
EndProperty
BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":38AA6
Key = "bcgs"
EndProperty
BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":38E40
Key = "mrlk"
EndProperty
BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":391DA
Key = "xsxm"
EndProperty
BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":39574
Key = "check"
EndProperty
BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":3990E
Key = "xz"
EndProperty
BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":39CA8
Key = "xg"
EndProperty
BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":3A042
Key = "sc"
EndProperty
BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "处理_生成凭证.frx":3A3DC
Key = "shc"
EndProperty
EndProperty
End
Begin VB.Label DdtsLabel
AutoSize = -1 'True
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
Caption = "正在调入数据,请稍等..."
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 210
Left = 960
TabIndex = 2
Top = 960
Visible = 0 'False
Width = 2550
End
End
Attribute VB_Name = "CL_MakeVoucher"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************************************************
'* 模 块 名 称 :生成凭证列表
'* 功 能 描 述 :
'* 程序员姓名 :杨波
'* 最后修改人 :杨波
'* 最后修改时间:2001/12/18
'* 备 注:程序中所有依实际情况自定义部分均用[>> <<]括起
'**************************************************************************
Dim ReportTitle As String '报表主标题
Dim Str_QueryCondi As String '用户录入查询条件
Dim Rec_BillID As New ADODB.Recordset '用户查询单据ID动态集
'以下为固定使用变量
Dim Dyymctbl As New DY_Dyymsz '打印页面窗体变量
Dim GridCode As String '显示网格网格代码
Dim GridInf() As Variant '整个网格设置信息
Dim Tsxx As String '系统提示信息
Dim Qslz As Long '网格隐藏(非操作显示)列数
Dim Sjhgd As Double '网格数据行高度
Dim Sfxshjwg As Boolean '是否显示合计网格
Dim GridBoolean() As Boolean '网格列信息(布尔型)
Dim GridStr() As String '网格列信息(字符型)
Dim GridInt() As Integer '网格列信息(整型)
Dim Szzls As Integer '数组总列数(网格列数-1)
Dim MListId As String '生成凭证单据的ID号条件集
Dim MPzType As Integer '0为生成,1为合并生成
Private Sub Form_Resize() '根据窗体大小来调整网格,标题栏大小(Fixed)
On Error Resume Next
With CxbbGrid
.Width = Me.Width - 160
.Height = Me.Height - .Top - 400
End With
With Pic_Title
.Width = Me.Width - 160
End With
GsToolbar.Left = Me.Width - GsToolbar.Width - 160
End Sub
Private Sub Form_Load() '窗体装入
'调入打印页面设置窗体
If CL_MakeVoucherFind.Opti_bill1.Value = True Then
ReportTitle = "单据列表"
Else
ReportTitle = "凭证列表"
End If
XtReportCode = "Chhs_MakeVoucher"
Load Dyymctbl
'调整标题栏及网格、格式工具条位置(Fixed)
Pic_Title.Left = 40
Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
CxbbGrid.Left = Pic_Title.Left
CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
'调 入 网 格(Fixed)
GridCode = "Chhs_MakeVoucher"
Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
Qslz = GridInf(1)
Sjhgd = GridInf(2)
Sfxshjwg = GridInf(7)
Szzls = CxbbGrid.Cols - 1
Lbl_TitleText(0) = CStr(Xtyear) + "." + CStr(PGNowmon)
End Sub
Private Sub Form_Unload(Cancel As Integer) '窗体卸载
'卸载条件窗体
CL_MakeVoucherFind.UnloadCheck.Value = 1
Unload CL_MakeVoucherFind
'卸载打印页面设置窗体
Unload Dyymctbl
End Sub
Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long) '网格列发生移动时自动交换网格索引信息
Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
End Sub
Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button) '网格格式调整(Fixed)
Select Case Button.Key
Case "bcgs" '保存表格格式
Call Bcwggs(CxbbGrid, GridCode, GridStr())
Case "hfmrgs" '恢复默认格式
Call Hfmrgs(CxbbGrid, GridCode, GridStr())
Case "szxsxm" '设置显示项目
Call Szxsxm(CxbbGrid, GridCode)
End Select
End Sub
Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
Dim count As Integer
Dim countsub As Integer
Dim IsInType As Boolean
Dim IsOutType As Boolean
Dim IsType As Boolean
Dim Rectemp As New ADODB.Recordset
Select Case Button.Key
Case "ymsz" '页面设置
Dyymctbl.Show 1
Case "yl" '预 览
Call bbyl(True)
Case "dy" '打 印
Call bbyl(False)
Case "shc" '生成
MListId = ""
MPzType = 0
Call MakePz
Case "hc" '合成
MListId = ""
MPzType = 1
For count = CxbbGrid.FixedRows To CxbbGrid.Rows - CxbbGrid.FixedRows
If CxbbGrid.TextMatrix(count, Sydz("001", GridStr(), Szzls)) Then
For countsub = CxbbGrid.FixedRows To CxbbGrid.Rows - CxbbGrid.FixedRows
If CxbbGrid.TextMatrix(countsub, Sydz("001", GridStr(), Szzls)) Then
If CxbbGrid.TextMatrix(count, 7) = CxbbGrid.TextMatrix(countsub, 7) Then
IsType = False
Else
IsType = True
Exit For
End If
End If
Next countsub
If IsType Then
Exit For
End If
End If
Next count
If IsType Then
Tsxx = "出、入库单据不能合并生成"
Call Xtxxts(Tsxx, 0, 4)
Else
Call MakePz
End If
Case "qx" '全选
For count = CxbbGrid.FixedRows To CxbbGrid.Rows - CxbbGrid.FixedRows
CxbbGrid.TextMatrix(count, Sydz("001", GridStr(), Szzls)) = 1
Next
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -