FRMckd.frm
资源名称:dbbase.rar [点击查看]
上传用户:xiao_xia32
上传日期:2022-07-21
资源大小:1174k
文件大小:56k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
- Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
- Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Begin VB.Form FRMckd
- BorderStyle = 1 'Fixed Single
- Caption = "出库单"
- ClientHeight = 4515
- ClientLeft = 1950
- ClientTop = 2325
- ClientWidth = 9420
- ControlBox = 0 'False
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- Moveable = 0 'False
- ScaleHeight = 4515
- ScaleWidth = 9420
- StartUpPosition = 1 '所有者中心
- Begin VB.CommandButton Command3
- BackColor = &H000000FF&
- Enabled = 0 'False
- Height = 375
- Left = 0
- Style = 1 'Graphical
- TabIndex = 30
- Top = 0
- Width = 405
- End
- Begin VB.Frame Frame4
- Height = 1545
- Left = 0
- TabIndex = 28
- Top = 4470
- Width = 9405
- Begin VB.ListBox List1
- Height = 960
- ItemData = "FRMckd.frx":0000
- Left = 1500
- List = "FRMckd.frx":0002
- TabIndex = 35
- Top = 1830
- Visible = 0 'False
- Width = 3345
- End
- Begin MSComctlLib.ListView ListView1
- Height = 1125
- Left = 2190
- TabIndex = 34
- Top = 390
- Width = 4185
- _ExtentX = 7382
- _ExtentY = 1984
- View = 3
- LabelEdit = 1
- LabelWrap = -1 'True
- HideSelection = -1 'True
- HideColumnHeaders= -1 'True
- AllowReorder = -1 'True
- FullRowSelect = -1 'True
- _Version = 393217
- ForeColor = -2147483635
- BackColor = -2147483624
- BorderStyle = 1
- Appearance = 0
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- NumItems = 0
- End
- Begin VB.CommandButton Command4
- Caption = "关闭"
- Height = 405
- Left = 7680
- TabIndex = 31
- Top = 1050
- Width = 675
- End
- Begin VB.CommandButton Command2
- Caption = "确定"
- Height = 405
- Left = 6840
- TabIndex = 29
- Top = 1050
- Width = 705
- End
- Begin VB.Label Label6
- Caption = "领用部门:"
- Height = 195
- Left = 3990
- TabIndex = 33
- Top = 210
- Width = 1065
- End
- Begin VB.Label Label4
- Caption = "凭单编号:"
- Height = 315
- Left = 2460
- TabIndex = 32
- Top = 210
- Width = 1305
- End
- End
- Begin VB.CommandButton Command1
- Caption = "打印"
- Height = 375
- Left = 7290
- TabIndex = 27
- Top = 4050
- Width = 855
- End
- Begin VB.Frame Frame1
- Height = 4095
- Left = 0
- TabIndex = 0
- Top = 390
- Width = 9405
- Begin VB.ListBox List2
- Appearance = 0 'Flat
- Height = 390
- ItemData = "FRMckd.frx":0004
- Left = 5880
- List = "FRMckd.frx":000E
- TabIndex = 26
- Top = 1440
- Visible = 0 'False
- Width = 975
- End
- Begin MSDataGridLib.DataGrid DataGrid1
- Bindings = "FRMckd.frx":001E
- Height = 2175
- Left = 120
- TabIndex = 25
- Top = 840
- Width = 9225
- _ExtentX = 16272
- _ExtentY = 3836
- _Version = 393216
- AllowUpdate = -1 'True
- AllowArrows = -1 'True
- BackColor = -2147483624
- ForeColor = -2147483635
- HeadLines = 1
- RowHeight = 14
- TabAction = 2
- FormatLocked = -1 'True
- AllowAddNew = -1 'True
- BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ColumnCount = 22
- BeginProperty Column00
- DataField = "凭单编号"
- Caption = "凭单编号"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column01
- DataField = "商品编号"
- Caption = "商品编号"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column02
- DataField = "名称"
- Caption = "名称"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column03
- DataField = "物资大类"
- Caption = "物资大类"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column04
- DataField = "物资子类"
- Caption = "物资子类"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column05
- DataField = "计量单位"
- Caption = "单位"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column06
- DataField = "规格型号"
- Caption = "规格型号"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column07
- DataField = "数量"
- Caption = "数量"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column08
- DataField = "单价"
- Caption = "单价"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column09
- DataField = "金额"
- Caption = "金额"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column10
- DataField = "领用类别"
- Caption = "领用类别"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column11
- DataField = "接收部门"
- Caption = "接收部门"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column12
- DataField = "使用人"
- Caption = "使用人"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column13
- DataField = "是否退库"
- Caption = "是否退库"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column14
- DataField = "是否报废"
- Caption = "是否报废"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column15
- DataField = "盘实"
- Caption = "盘实"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column16
- DataField = "盘亏"
- Caption = "盘亏"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column17
- DataField = "ID"
- Caption = "ID"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column18
- DataField = "出库日期"
- Caption = "出库日期"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column19
- DataField = "经手人"
- Caption = "经手人"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column20
- DataField = "处理状态"
- Caption = "处理状态"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column21
- DataField = "备注"
- Caption = "备注"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 0
- EndProperty
- EndProperty
- SplitCount = 1
- BeginProperty Split0
- BeginProperty Column00
- Object.Visible = 0 'False
- ColumnWidth = 810.142
- EndProperty
- BeginProperty Column01
- ColumnWidth = 794.835
- EndProperty
- BeginProperty Column02
- ColumnWidth = 840.189
- EndProperty
- BeginProperty Column03
- ColumnWidth = 1005.165
- EndProperty
- BeginProperty Column04
- ColumnWidth = 870.236
- EndProperty
- BeginProperty Column05
- ColumnWidth = 434.835
- EndProperty
- BeginProperty Column06
- ColumnWidth = 780.095
- EndProperty
- BeginProperty Column07
- ColumnWidth = 555.024
- EndProperty
- BeginProperty Column08
- ColumnWidth = 734.74
- EndProperty
- BeginProperty Column09
- ColumnWidth = 824.882
- EndProperty
- BeginProperty Column10
- Button = -1 'True
- ColumnWidth = 780.095
- EndProperty
- BeginProperty Column11
- Object.Visible = 0 'False
- ColumnWidth = 90.142
- EndProperty
- BeginProperty Column12
- ColumnWidth = 645.165
- EndProperty
- BeginProperty Column13
- Object.Visible = 0 'False
- ColumnWidth = 1094.74
- EndProperty
- BeginProperty Column14
- Object.Visible = 0 'False
- ColumnWidth = 1094.74
- EndProperty
- BeginProperty Column15
- Object.Visible = 0 'False
- ColumnWidth = 1365.165
- EndProperty
- BeginProperty Column16
- Object.Visible = 0 'False
- ColumnWidth = 1365.165
- EndProperty
- BeginProperty Column17
- Object.Visible = 0 'False
- ColumnWidth = 1094.74
- EndProperty
- BeginProperty Column18
- Object.Visible = 0 'False
- ColumnWidth = 2085.166
- EndProperty
- BeginProperty Column19
- Object.Visible = 0 'False
- ColumnWidth = 1365.165
- EndProperty
- BeginProperty Column20
- Object.Visible = 0 'False
- ColumnWidth = 1365.165
- EndProperty
- BeginProperty Column21
- ColumnWidth = 629.858
- EndProperty
- EndProperty
- End
- Begin MSAdodcLib.Adodc Adodc1
- Height = 330
- Left = 4740
- Top = 3570
- Visible = 0 'False
- Width = 1575
- _ExtentX = 2778
- _ExtentY = 582
- ConnectMode = 0
- CursorLocation = 3
- IsolationLevel = -1
- ConnectionTimeout= 15
- CommandTimeout = 30
- CursorType = 3
- LockType = 4
- CommandType = 8
- CursorOptions = 0
- CacheSize = 50
- MaxRecords = 0
- BOFAction = 0
- EOFAction = 0
- ConnectStringType= 1
- Appearance = 1
- BackColor = -2147483643
- ForeColor = -2147483640
- Orientation = 0
- Enabled = -1
- Connect = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=LandaMIS"
- OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=LandaMIS"
- OLEDBFile = ""
- DataSourceName = ""
- OtherAttributes = ""
- UserName = ""
- Password = ""
- RecordSource = "select * from 出库明细表 where 1>2"
- Caption = "Adodc1"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- _Version = 393216
- End
- Begin VB.CheckBox Check1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- ForeColor = &H80000008&
- Height = 255
- Left = 3240
- TabIndex = 24
- Top = 3720
- Visible = 0 'False
- Width = 1095
- End
- Begin VB.Frame Frame12
- Height = 495
- Left = 120
- TabIndex = 21
- Top = 3000
- Width = 2235
- Begin VB.ComboBox ComboZG
- Height = 300
- Left = 960
- TabIndex = 22
- Top = 150
- Width = 1245
- End
- Begin VB.Label Label12
- Alignment = 2 'Center
- Caption = "部门经理"
- Height = 255
- Left = 60
- TabIndex = 23
- Top = 210
- Width = 765
- End
- Begin VB.Line Line23
- BorderColor = &H80000003&
- X1 = 885
- X2 = 885
- Y1 = 120
- Y2 = 480
- End
- Begin VB.Line Line22
- BorderColor = &H80000005&
- X1 = 900
- X2 = 900
- Y1 = 120
- Y2 = 600
- End
- End
- Begin VB.Frame Frame11
- Height = 495
- Left = 2430
- TabIndex = 18
- Top = 3000
- Width = 2115
- Begin VB.ComboBox ComboKJ
- Height = 300
- Left = 780
- TabIndex = 19
- Top = 150
- Width = 1275
- End
- Begin VB.Line Line21
- BorderColor = &H80000005&
- X1 = 720
- X2 = 720
- Y1 = 120
- Y2 = 600
- End
- Begin VB.Line Line20
- BorderColor = &H80000003&
- X1 = 705
- X2 = 705
- Y1 = 120
- Y2 = 480
- End
- Begin VB.Label Label11
- Alignment = 2 'Center
- Caption = "会计"
- Height = 255
- Left = 120
- TabIndex = 20
- Top = 195
- Width = 495
- End
- End
- Begin VB.Frame Frame10
- Height = 495
- Left = 4620
- TabIndex = 15
- Top = 3000
- Width = 2265
- Begin VB.ComboBox ComboBGY
- Height = 300
- Left = 900
- TabIndex = 16
- Top = 150
- Width = 1305
- End
- Begin VB.Line Line19
- BorderColor = &H80000005&
- X1 = 840
- X2 = 840
- Y1 = 120
- Y2 = 600
- End
- Begin VB.Line Line18
- BorderColor = &H80000003&
- X1 = 825
- X2 = 825
- Y1 = 120
- Y2 = 480
- End
- Begin VB.Label Label10
- Alignment = 2 'Center
- Caption = "保管员"
- Height = 255
- Left = 120
- TabIndex = 17
- Top = 195
- Width = 615
- End
- End
- Begin VB.Frame Frame9
- Height = 495
- Left = 6960
- TabIndex = 13
- Top = 3000
- Width = 2145
- Begin VB.ComboBox JSRR
- Height = 315
- Left = 870
- TabIndex = 37
- Top = 150
- Width = 1215
- End
- Begin VB.Label Label9
- Alignment = 2 'Center
- Caption = "经手人 "
- Height = 255
- Left = 120
- TabIndex = 14
- Top = 195
- Width = 615
- End
- Begin VB.Line Line17
- BorderColor = &H80000003&
- X1 = 825
- X2 = 825
- Y1 = 120
- Y2 = 480
- End
- Begin VB.Line Line16
- BorderColor = &H80000005&
- X1 = 840
- X2 = 840
- Y1 = 120
- Y2 = 600
- End
- End
- Begin VB.CommandButton Save
- Caption = "保存"
- Height = 375
- Left = 6300
- TabIndex = 2
- Top = 3660
- Width = 855
- End
- Begin VB.CommandButton exit
- Caption = "关闭"
- Height = 375
- Left = 8280
- TabIndex = 11
- Top = 3660
- Width = 855
- End
- Begin VB.Frame Frame2
- Height = 495
- Left = 150
- TabIndex = 7
- Top = 240
- Width = 2625
- Begin VB.ComboBox Combo1
- Height = 300
- Left = 880
- TabIndex = 8
- Top = 150
- Width = 1635
- End
- Begin VB.Line Line2
- BorderColor = &H80000005&
- X1 = 840
- X2 = 840
- Y1 = 120
- Y2 = 600
- End
- Begin VB.Line Line3
- BorderColor = &H80000003&
- X1 = 825
- X2 = 825
- Y1 = 120
- Y2 = 480
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "领用部门"
- Height = 255
- Left = 0
- TabIndex = 9
- Top = 195
- Width = 855
- End
- End
- Begin VB.Frame Frame3
- Height = 495
- Left = 4050
- TabIndex = 4
- Top = 240
- Width = 1935
- Begin MSComCtl2.DTPicker DTPicker1
- Height = 285
- Left = 520
- TabIndex = 5
- Top = 150
- Width = 1335
- _ExtentX = 2355
- _ExtentY = 503
- _Version = 393216
- Format = 58916865
- CurrentDate = 36146
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "日期"
- Height = 255
- Left = 0
- TabIndex = 6
- Top = 195
- Width = 495
- End
- Begin VB.Line Line4
- BorderColor = &H80000003&
- X1 = 465
- X2 = 465
- Y1 = 120
- Y2 = 480
- End
- Begin VB.Line Line5
- BorderColor = &H80000005&
- X1 = 480
- X2 = 480
- Y1 = 120
- Y2 = 600
- End
- End
- Begin VB.Frame Frame8
- Height = 495
- Left = 7080
- TabIndex = 1
- Top = 240
- Width = 2085
- Begin VB.TextBox pdbh
- Height = 300
- Left = 880
- Locked = -1 'True
- TabIndex = 12
- Top = 150
- Width = 1125
- End
- Begin VB.Label Label8
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "凭单编号"
- Height = 255
- Left = 0
- TabIndex = 3
- Top = 225
- Width = 855
- End
- Begin VB.Line Line14
- BorderColor = &H80000003&
- X1 = 825
- X2 = 825
- Y1 = 120
- Y2 = 480
- End
- Begin VB.Line Line15
- BorderColor = &H80000005&
- X1 = 840
- X2 = 840
- Y1 = 120
- Y2 = 600
- End
- End
- Begin VB.Label Label5
- Alignment = 2 'Center
- ForeColor = &H00FF0000&
- Height = 375
- Left = 180
- TabIndex = 36
- Top = 3600
- Width = 2895
- End
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "出 库 单"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 60
- TabIndex = 10
- Top = 30
- Width = 9195
- End
- Begin VB.Line Line1
- X1 = 2910
- X2 = 6420
- Y1 = 360
- Y2 = 360
- End
- End
- Attribute VB_Name = "FRMckd"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim pdbh1 As Long
- Dim pdbh2 As Long
- Dim StrFLG As Integer
- Dim HJj As Double
- Private Sub Command1_Click()
- FRMrkd.PrintForm
- 'DataGrid1.Row = 5
- 'DataGrid1.Col = 0
- 'DataGrid1.Text = "1"
- End Sub
- Private Sub Command2_Click()
- If YJBM = "服务管理部" And EJBM = "物资组" Then
- For i = 0 To ListView1.ListItems.Count - 1
- If ListView1.ListItems(i + 1).Selected = True Then
- pdbh1 = ListView1.ListItems.Item(i + 1)
- End If
- Next
- Adodc1.RecordSource = "select * from 出库明细表 where 凭单编号=" & pdbh1 & ""
- Adodc1.Refresh
- If pdbh1 = 0 Then
- MsgBox "请选择要处理的单据!"
- Exit Sub
- End If
- Sql = "select * from 出库凭单表 where 凭单编号=" & pdbh1 & ""
- Set rs = ConnWZ.Execute(Sql)
- Combo1 = rs("接收部门")
- DTPicker1.Value = rs("出库日期")
- pdbh = pdbh1
- ComboZG = rs("主管")
- JSRR = rs("经手人")
- ComboZG.Enabled = False
- Combo1.Enabled = False
- JSRR.Enabled = False
- DataGrid1.Columns("数量").Locked = True
- DataGrid1.Columns("使用人").Locked = True
- DataGrid1.Columns("领用类别").Locked = True
- DataGrid1.Columns("领用类别").Button = False
- Combo1.Locked = True
- End If
- ListView1.ListItems.Clear
- StrFLG = 1
- Me.Height = 4890
- End Sub
- Private Sub Command3_Click()
- Me.Height = 6465
- ListView1.ColumnHeaders.Add , , "凭单编号"
- ListView1.ColumnHeaders.Add , , "领用部门"
- Sql = "select * from 出库凭单表 where 处理状态='待处理' ORDER BY 凭单编号"
- Set rs = ConnWZ.Execute(Sql)
- j = rs.RecordCount
- For i = 0 To rs.RecordCount - 1
- If Not IsNull(rs("凭单编号")) Then ListView1.ListItems.Add , "g + " & i, Trim(rs("凭单编号"))
- If Not IsNull(rs("接收部门")) Then ListView1.ListItems(i + 1).SubItems(1) = Trim(rs("接收部门"))
- rs.MoveNext
- Next
- End Sub
- Private Sub Command4_Click()
- ListView1.ListItems.Clear
- Me.Height = 4890
- End Sub
- Private Sub DataGrid1_AfterColEdit(ByVal ColIndex As Integer)
- If YJBM = "服务管理部" And EJBM = "物资组" Then
- If ColIndex = 7 Then
- S = DataGrid1.Row
- DataGrid1.Col = 7
- DataGrid1.Row = S
- sll = DataGrid1.Text
- DataGrid1.Col = 8
- DataGrid1.Row = S
- djj = DataGrid1.Text
- If IsNumeric(djj) = False Then
- MsgBox "请输入数字!"
- DataGrid1.Col = 8
- DataGrid1.Row = S
- DataGrid1.Text = 0
- DataGrid1.Col = 15
- DataGrid1.Row = S
- DataGrid1.Text = 0
- Exit Sub
- End If
- DataGrid1.Col = 15
- DataGrid1.Row = S
- DataGrid1.Text = sll
- DataGrid1.Col = 9
- DataGrid1.Row = S
- jje = djj * sll
- DataGrid1.Text = jje
- End If
- End If
- End Sub
- Private Sub DataGrid1_AfterColUpdate(ByVal ColIndex As Integer)
- If YJBM = "服务管理部" And EJBM = "物资组" Then
- On Error Resume Next
- If ColIndex = 1 Then
- t = DataGrid1.Row
- DataGrid1.Col = 1
- DataGrid1.Row = t
- bbh = Val(DataGrid1.Text)
- If IsNumeric(bbh) = False Then
- MsgBox "请输入数字!"
- DataGrid1.Col = 1
- DataGrid1.Row = t
- DataGrid1.Text = 0
- Exit Sub
- End If
- Sql = "select * from 商品目录表 where 商品编号=" & bbh & ""
- Set rs = ConnWZ.Execute(Sql)
- DataGrid1.Col = 2
- DataGrid1.Row = t
- DataGrid1.Text = Trim(rs("名称"))
- strmc = Trim(rs("名称"))
- DataGrid1.Col = 3
- DataGrid1.Row = t
- DataGrid1.Text = Trim(rs("大类"))
- DataGrid1.Col = 4
- DataGrid1.Row = t
- DataGrid1.Text = Trim(rs("子类"))
- DataGrid1.Col = 5
- DataGrid1.Row = t
- DataGrid1.Text = Trim(rs("计量单位"))
- DataGrid1.Col = 6
- DataGrid1.Row = t
- DataGrid1.Text = Trim(rs("规格型号"))
- DataGrid1.Col = 8
- DataGrid1.Row = t
- DataGrid1.Text = Trim(rs("单价"))
- DataGrid1.Col = 7
- DataGrid1.Row = t
- ssl = DataGrid1.Text
- DataGrid1.Col = 9
- DataGrid1.Row = t
- DataGrid1.Text = ssl * Val(Trim(rs("单价")))
- W = DataGrid1.Row
- DataGrid1.Col = 7
- DataGrid1.Row = W
- ssll = DataGrid1.Text
- DataGrid1.Col = 15
- DataGrid1.Row = S
- DataGrid1.Text = ssll
- If ssll = "" Then GoTo 1000
- '报警
- DataGrid1.Col = 1
- DataGrid1.Row = t
- bbh = Val(DataGrid1.Text)
- SL = 0
- sql1 = "select * from 入库明细表 where 商品编号=" & bbh & ""
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- SL = SL + Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- sql1 = "select * from 出库明细表 where 商品编号=" & bbh & ""
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- SL = SL - Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- If SL < Val(ssll) Then
- MsgBox "库存量只有" & SL & ". 无法出库!"
- DataGrid1.Col = 7
- DataGrid1.Row = W
- DataGrid1.Text = 0
- End If
- '显示库存量
- 1000: SL = 0
- sql1 = "select * from 入库明细表 where 商品编号=" & bbh & ""
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- SL = SL + Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- sql1 = "select * from 出库明细表 where 商品编号=" & bbh & ""
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- SL = SL - Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- If SL = "" Then SL = 0
- Label5 = strmc & "库存量为:" & SL & ""
- End If
- If ColIndex = 7 Then
- W = DataGrid1.Row
- DataGrid1.Col = 7
- DataGrid1.Row = W
- ssll = DataGrid1.Text
- If IsNumeric(ssll) = False Then
- MsgBox "请输入数字!"
- DataGrid1.Col = 7
- DataGrid1.Row = W
- DataGrid1.Text = 0
- DataGrid1.Col = 15
- DataGrid1.Row = S
- DataGrid1.Text = 0
- Exit Sub
- End If
- DataGrid1.Col = 7
- t = DataGrid1.Row
- DataGrid1.Row = t
- ssl = DataGrid1.Text
- DataGrid1.Col = 8
- DataGrid1.Row = t
- ddj = DataGrid1.Text
- DataGrid1.Col = 9
- DataGrid1.Row = t
- DataGrid1.Text = Val(ssl) * Val(ddj)
- DataGrid1.Col = 15
- DataGrid1.Row = S
- DataGrid1.Text = ssll
- t = DataGrid1.Row
- DataGrid1.Col = 1
- DataGrid1.Row = t
- bbh = Val(DataGrid1.Text)
- sql1 = "select * from 入库明细表 where 商品编号=" & bbh & ""
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- SL = SL + Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- sql1 = "select * from 出库明细表 where 商品编号=" & bbh & ""
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- SL = SL - Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- If SL < Val(ssll) Then
- MsgBox "库存量只有" & SL & ". 无法出库!"
- DataGrid1.Col = 7
- DataGrid1.Row = W
- DataGrid1.Text = 0
- End If
- End If
- End If
- End Sub
- Private Sub DataGrid1_ButtonClick(ByVal ColIndex As Integer)
- If ColIndex = 10 Then
- List2.Move DataGrid1.Left + DataGrid1.Columns(10).Left + Frame1.Left, DataGrid1.Top + (DataGrid1.Row + 1) * (DataGrid1.RowHeight + 10) + DataGrid1.Columns(10).Top, DataGrid1.Columns(10).Width, List2.Height
- List2.Visible = True
- End If
- End Sub
- Private Sub DataGrid1_Click()
- If YJBM = "服务管理部" And EJBM = "物资组" Then
- Combo1.Enabled = False
- pdbh.Enabled = False
- DTPicker1.Enabled = False
- If pdbh = "" Then
- MsgBox "请先填写凭单编号"
- Exit Sub
- End If
- End If
- End Sub
- Private Sub DataGrid1_Error(ByVal DataError As Integer, Response As Integer)
- Response = 0
- End Sub
- Private Sub DataGrid1_OnAddNew()
- If YJBM = "服务管理部" And EJBM = "物资组" Then
- If pdbh = "" Then Exit Sub
- jsbm = Combo1.Text
- RQ = DTPicker1.Value
- Adodc1.Recordset.Fields("凭单编号") = pdbh
- Adodc1.Recordset.Fields("接收部门") = jsbm
- Adodc1.Recordset.Fields("出库日期") = RQ
- Adodc1.Recordset.Fields("是否报废") = 0
- Adodc1.Recordset.Fields("是否退库") = 0
- Adodc1.Recordset.Fields("盘亏") = "0"
- Adodc1.Recordset.Fields("处理状态") = "已处理"
- Else
- 'jsbm = Combo1.Text
- RQ = DTPicker1.Value
- Adodc1.Recordset.Fields("出库日期") = RQ
- 'If pdbh2 = "0" Then Exit Sub
- Adodc1.Recordset.Fields("凭单编号") = pdbh2
- Adodc1.Recordset.Fields("接收部门") = jsbm
- Adodc1.Recordset.Fields("处理状态") = "待处理"
- End If
- 'Adodc1.Recordset.Fields("领用类别") = Combo2.Text
- End Sub
- Private Sub Exit_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- StrFLG = 0
- If YJBM = "服务管理部" And EJBM = "物资组" Then
- Sql = "select * from 出库凭单表 where 处理状态='待处理'"
- Set rs = ConnWZ.Execute(Sql)
- If Not rs.EOF Then
- Command3.BackColor = &HFF00& ' RGB(0, 255, 0)
- Command3.Enabled = True
- End If
- Sql = "select * from 商品目录表"
- Set rs = ConnWZ.Execute(Sql)
- Do While Not rs.EOF
- spmcc = rs("名称")
- sql1 = "select * from 入库明细表 where 名称='" & spmcc & "'"
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- sll = sll + Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- sql1 = "select * from 出库明细表 where 名称='" & spmcc & "'"
- Set RsKCCKCX = ConnWZ.Execute(sql1)
- Do While Not RsKCCKCX.EOF
- sll = sll - Val(RsKCCKCX("数量"))
- RsKCCKCX.MoveNext
- Loop
- zdccl = Val(rs("最低存储"))
- zgccl = Val(rs("最高存储"))
- If sll < zdccl Then
- Result = MsgBox(Trim(spmcc) & "的数量为" & sll & "." & "该商品短缺!继续查看吗?", vbYesNo)
- If Result = 7 Then
- Exit Do
- End If
- End If
- If sll > zgccl Then
- Result = MsgBox(Trim(spmcc) & "的数量为" & sll & "." & "该商品积压!继续查看吗?", vbYesNo)
- If Result = 7 Then
- Exit Do
- End If
- End If
- rs.MoveNext
- sll = 0
- Loop
- Sql = "select max(凭单编号) from 出库凭单表"
- Set Rsrkpd = ConnWZ.Execute(Sql)
- If Rsrkpd.EOF Then Exit Sub
- If IsNull(Rsrkpd(0)) = False Then
- pdbh2 = Rsrkpd(0) + 1
- Else
- pdbh2 = 1
- End If
- pdbh = pdbh2
- DTPicker1.Value = Date
- Sql = "select * from 部门维护表"
- Set rs = ConnWZ.Execute(Sql)
- Do While Not rs.EOF
- Combo1.AddItem rs("部门名称")
- rs.MoveNext
- Loop
- sqlyg = "select * from 员工表 where 二级部门='物资组'"
- Set rsyg = ConnWZ.Execute(sqlyg)
- Do While Not rsyg.EOF
- ComboKJ.AddItem rsyg("员工姓名")
- ComboBGY.AddItem rsyg("员工姓名")
- rsyg.MoveNext
- Loop
- Else
- Sql = "select max(凭单编号) from 出库凭单表"
- Set Rsrkpd = ConnWZ.Execute(Sql)
- If Rsrkpd.EOF Then Exit Sub
- If IsNull(Rsrkpd(0)) = False Then
- pdbh2 = Rsrkpd(0) + 1
- Else
- pdbh2 = 1
- End If
- Frame8.Visible = False
- DataGrid1.Columns("商品编号").Locked = True
- DataGrid1.Columns("物资大类").Locked = True
- DataGrid1.Columns("物资子类").Locked = True
- DataGrid1.Columns("单位").Locked = True
- DataGrid1.Columns("规格型号").Locked = True
- DataGrid1.Columns("单价").Locked = True
- DataGrid1.Columns("金额").Locked = True
- DataGrid1.Columns("备注").Locked = True
- ComboKJ.Locked = True
- ComboBGY.Locked = True
- Command3.Visible = False
- DTPicker1.Value = Date
- If YJBM = "总经理办公室" Then
- Combo1.Text = "总经理办公室"
- Label1 = "物品领用单"
- sqlyg = "select * from 员工表 where 一级部门='总经理办公室' and 岗位='部门经理'"
- Set rsyg = ConnWZ.Execute(sqlyg)
- Do While Not rsyg.EOF
- ComboZG.AddItem rsyg("员工姓名")
- rsyg.MoveNext
- Loop
- sqlyg = "select * from 员工表 where 一级部门='总经理办公室'"
- Set rsyg = ConnWZ.Execute(sqlyg)
- Do While Not rsyg.EOF
- JSRR.AddItem rsyg("员工姓名")
- rsyg.MoveNext
- Loop
- End If
- If YJBM = "动物部" Then
- Combo1.Text = "动物部"
- Label1 = "物品领用单"
- End If
- If YJBM = "通用公司" Then
- Combo1.Text = "通用公司"
- Label1 = "物品领用单"
- End If
- If YJBM = "人力资源部" Then
- Combo1.Text = "人力资源部"
- Label1 = "物品领用单"
- sqlyg = "select * from 员工表 where 一级部门='人力资源部' and 岗位='部门经理'"
- Set rsyg = ConnWZ.Execute(sqlyg)
- Do While Not rsyg.EOF
- ComboZG.AddItem rsyg("员工姓名")
- rsyg.MoveNext
- Loop
- sqlyg = "select * from 员工表 where 一级部门='人力资源部'"
- Set rsyg = ConnWZ.Execute(sqlyg)
- Do While Not rsyg.EOF
- JSRR.AddItem rsyg("员工姓名")
- rsyg.MoveNext
- Loop
- End If
- If YJBM = "商品部" Then
- Combo1.Text = "商品部"
- Label1 = "物品领用单"
- End If
- If YJBM = "水族部" Then
- Combo1.Text = "水族部"
- Label1 = "物品领用单"
- End If
- If YJBM = "设备工程部" Then
- Combo1.Text = "设备工程部"
- Label1 = "物品领用单"
- End If
- If YJBM = "公关策划部" Then
- Combo1.Text = "公关策划部"
- Label1 = "物品领用单"
- End If
- If YJBM = "计财部" Then
- Combo1.Text = "计财部"
- Label1 = "物品领用单"
- End If
- If YJBM = "服务管理部" And EJBM = "车管组" Then
- Combo1.Text = "服务管理部"
- Label1 = "物品领用单"
- End If
- If YJBM = "服务管理部" And EJBM = " 保安组" Then
- Combo1.Text = "服务管理部"
- Label1 = "物品领用单"
- End If
- If YJBM = "服务管理部" And EJBM = " 食堂组" Then
- Combo1.Text = "服务管理部"
- Label1 = "物品领用单"
- End If
- End If
- End Sub
- Private Sub List1_Click()
- For i = 0 To List1.ListCount - 1
- If List1.Selected(i) = True Then
- pdbh1 = List1.List(i)
- Sql = "select * from 出库凭单表 where 凭单编号=" & pdbh1 & ""
- Set rs = ConnWZ.Execute(Sql)
- XSBM = rs("接收部门")
- End If
- Next
- End Sub
- Private Sub List2_Click()
- DataGrid1.Columns(10).Text = List2.Text
- List2.Visible = False
- End Sub
- Private Sub ListView1_ItemCheck(ByVal Item As MSComctlLib.ListItem)
- ' For i = 1 To ListView1.ListItems.Count
- ' If ListView1.ListItems(i).Checked = True Then
- ' For j = i To ListView1.ListItems.Count
- ' If j = ListView1.ListItems.Count Then Exit Sub
- ' ListView1.ListItems(j + 1).Checked = False
- ' Next
- ' End If
- ' Next
- End Sub
- Private Sub pdbh_Change()
- DataGrid1.Enabled = True
- End Sub
- Private Sub pdbh_LostFocus()
- On Error Resume Next
- 'res = StrComp(Str(Val(pdbh)), Str(pdbh))
- Str (pdbh)
- If Err = 13 Then
- MsgBox "凭单编号必须为数字!"
- pdbh = ""
- DataGrid1.Enabled = False
- Else
- Sql = "select * from 出库凭单表"
- Set RsCkpd = ConnWZ.Execute(Sql)
- Do While Not RsCkpd.EOF
- If pdbh = RsCkpd("凭单编号") Then
- MsgBox "凭单编号已存在,请确定是否输入错误!"
- DataGrid1.Enabled = False
- Exit Sub
- Else
- DataGrid1.Enabled = True
- End If
- RsCkpd.MoveNext
- Loop
- RsCkpd.Close
- End If
- End Sub
- 'Private Sub List1_Click()
- ' DataGrid1.Columns(3).Text = List1.Text
- ' List1.Visible = False
- 'End Sub
- Private Sub Save_Click()
- 'Do While Not Rsrkpd.EOF
- 'If pdbh = Rsrkpd("凭单编号") Then
- ' MsgBox "凭单编号已存在,请确定是否输入错误!"
- ' Exit Sub
- 'End If
- ' Rsrkpd.MoveNext
- 'Loop
- 'Rsrkpd.CLOSE
- Result = MsgBox("您确实要保存吗?", vbYesNo)
- If Result = 6 Then
- If YJBM = "服务管理部" And EJBM = "物资组" Then
- If pdbh = "" Then
- MsgBox "请您输入凭单编号!"
- Exit Sub
- End If
- jsbm = Combo1.Text
- ZG = ComboZG.Text
- BGY = ComboBGY.Text
- kj = ComboKJ.Text
- JSRR = JSRR.Text
- pdbh = Val(pdbh)
- RQ = DTPicker1.Value
- Adodc1.Recordset.UpdateBatch
- If StrFLG = 0 Then
- Sql = "insert 出库凭单表 (凭单编号,会计,保管员,处理状态,接收部门,出库日期,主管,经手人) values(" & pdbh & ",'" & ComboKJ & "','" & ComboBGY & "','已处理','" & Combo1 & "','" & DTPicker1 & "','" & ComboZG & "','" & JSRR & "' )"
- Set Rsrkpd = ConnWZ.Execute(Sql)
- Else
- Sql = "update 出库凭单表 set 会计='" & kj & "',保管员='" & BGY & "',处理状态='已处理' where 凭单编号=" & pdbh & ""
- Set Rsrkpd = ConnWZ.Execute(Sql)
- Sql = "update 出库明细表 set 接收部门='" & Combo1 & "',经手人='" & JSRR & "',处理状态='已处理',盘亏='0',是否报废=0,是否退库=0 where 凭单编号=" & pdbh & ""
- Set rs = ConnWZ.Execute(Sql)
- End If
- Sql = "select * from 出库明细表 where 凭单编号=" & pdbh & ""
- Set rs = ConnWZ.Execute(Sql)
- Do While Not rs.EOF
- RIQI = DTPicker1.Value
- WUZZL = rs("物资子类")
- MC = rs("名称")
- BH = rs("商品编号")
- SHUL = rs("数量")
- DANJ = rs("单价")
- JINE = rs("金额")
- jsbmm = rs("接收部门")
- HJj = 0
- sqlmxz = "select * from 物品明细帐 where 收入或支出='收入'"
- Set Rsmxz = ConnWZ.Execute(sqlmxz)
- Do While Not Rsmxz.EOF
- jjee = Rsmxz("金额")
- HJj = HJj + Val(jjee)
- Rsmxz.MoveNext
- Loop
- sqlmxz = "select * from 物品明细帐 where 收入或支出='支出'"
- Set Rsmxz = ConnWZ.Execute(sqlmxz)
- Do While Not Rsmxz.EOF
- jjee = Rsmxz("金额")
- HJj = HJj - Val(jjee)
- Rsmxz.MoveNext
- Loop
- HJj = HJj - JINE
- Sql = "insert 物品明细帐(日期,名称,商品编号,物资子类,数量,单价,金额,收入或支出,合计,去向) values('" & RIQI & "','" & MC & "','" & BH & "','" & WUZZL & "'," & SHUL & "," & DANJ & "," & JINE & ",'支出'," & HJj & ",'" & jsbmm & "')"
- Set Rsrkpd = ConnWZ.Execute(Sql)
- rs.MoveNext
- Loop
- WZGL.Enabled = True
- Unload Me
- Else
- jsbm = Combo1.Text
- ZG = ComboZG.Text
- BGY = ComboBGY.Text
- kj = ComboKJ.Text
- JSRR = JSRR.Text
- RQ = DTPicker1.Value
- Adodc1.Recordset.UpdateBatch
- Sql = "insert 出库凭单表(凭单编号,接收部门,出库日期,经手人,主管,会计,保管员,处理状态) values(" & pdbh2 & ",'" & jsbm & "','" & RQ & "','" & JSRR & "','" & ZG & "','" & kj & "','" & BGY & "','待处理')"
- Set Rsrkpd = ConnWZ.Execute(Sql)
- Sql = "update 出库明细表 set 经手人='" & JSRR & "' where 凭单编号=" & pdbh2 & ""
- Set rs = ConnWZ.Execute(Sql)
- If YJBM = "总经理办公室" Then
- XingZhengGL.Enabled = True
- End If
- If YJBM = "动物部" Then
- Combo1.Text = "动物部"
- End If
- If YJBM = "通用公司" Then
- Combo1.Text = "通用公司"
- End If
- If YJBM = "人力资源部" Then
- RSGL.Enabled = True
- End If
- If YJBM = "商品部" Then
- SPGL.Enabled = True
- End If
- If YJBM = "水族部" Then
- SZBGL.Enabled = True
- End If
- If YJBM = "设备工程部" Then
- SBGCGL.Enabled = True
- End If
- If YJBM = "公关策划部" Then
- SCGL.Enabled = True
- End If
- If YJBM = "计财部" Then
- CWGL.Enabled = True
- End If
- If YJBM = "服务管理部" And EJBM = "车管组" Then
- CLGL.Enabled = True
- End If
- If YJBM = "服务管理部" And EJBM = " 保安组" Then
- BABFrm.Enabled = True
- End If
- If YJBM = "服务管理部" And EJBM = " 食堂组" Then
- STGL.Enabled = True
- End If
- Unload Me
- End If
- End If
- End Sub