📄 frmdiscardsubmit.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form FrmDiscardSubmit
Caption = "选择审批人"
ClientHeight = 1860
ClientLeft = 60
ClientTop = 345
ClientWidth = 3645
LinkTopic = "Form1"
ScaleHeight = 1860
ScaleWidth = 3645
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Cancel
Caption = "取 消"
Height = 375
Left = 2160
TabIndex = 3
Top = 1320
Width = 975
End
Begin VB.CommandButton Cmd_Submit
Caption = "提 交"
Height = 375
Left = 480
TabIndex = 2
Top = 1320
Width = 975
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 1680
Top = 0
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataListLib.DataCombo dco_UserName
Height = 330
Left = 960
TabIndex = 1
Top = 720
Width = 1815
_ExtentX = 3201
_ExtentY = 582
_Version = 393216
Style = 2
Text = ""
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请选择审批经理"
Height = 180
Left = 360
TabIndex = 0
Top = 360
Width = 1260
End
End
Attribute VB_Name = "FrmDiscardSubmit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriId As Long '报废单编号
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_Submit_Click()
'更改报废申请状态和审批人
MyDiscard.Checker = dco_UserName.BoundText
MyDiscard.Status = "提交"
MyDiscard.UpdateStatus OriId, 1
Unload Me
End Sub
Private Sub Form_Load()
DataRefresh
End Sub
Private Sub DataRefresh()
Adodc1.ConnectionString = Conn
Adodc1.RecordSource = "SELECT * FROM Users"
Adodc1.Refresh
Set dco_UserName.RowSource = Adodc1
dco_UserName.ListField = "UserName"
dco_UserName.BoundColumn = "UserName"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -