?? partlistform.frm
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form partlistform
Caption = "Form1"
ClientHeight = 5085
ClientLeft = 60
ClientTop = 450
ClientWidth = 9165
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 5085
ScaleWidth = 9165
Begin MSComctlLib.Toolbar SzToolbar
Align = 1 'Align Top
Height = 570
Left = 0
TabIndex = 0
Top = 0
Width = 9165
_ExtentX = 16166
_ExtentY = 1005
ButtonWidth = 820
ButtonHeight = 953
AllowCustomize = 0 'False
Appearance = 1
Style = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 11
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "新增"
Key = "xz"
ImageKey = "xz"
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "修改"
Key = "xg"
ImageKey = "xg"
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "刪除"
Key = "sc"
ImageKey = "sc"
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "BOM"
Key = "bom"
ImageIndex = 2
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "查詢"
Key = "cx"
ImageKey = "cx"
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.Visible = 0 'False
Caption = "打印"
ImageKey = "dy"
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "刷新"
Key = "sx"
ImageKey = "sx"
EndProperty
BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
Object.Visible = 0 'False
Style = 3
EndProperty
BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
Key = "tc"
ImageKey = "tc"
EndProperty
EndProperty
BorderStyle = 1
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Appearance = 0 'Flat
ForeColor = &H80000006&
Height = 270
Left = 7680
TabIndex = 2
Text = "Text1"
Top = 120
Width = 975
End
Begin MSComctlLib.ImageList ImageList1
Left = 8520
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 7
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "partlistform.frx":0000
Key = "dy"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "partlistform.frx":039A
Key = "xg"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "partlistform.frx":0734
Key = "tc"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "partlistform.frx":0ACE
Key = "xz"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "partlistform.frx":0E68
Key = "sc"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "partlistform.frx":1202
Key = "sx"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "partlistform.frx":159C
Key = "cx"
EndProperty
EndProperty
End
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid hfg_houseList
Height = 4455
Left = 0
TabIndex = 1
Top = 600
Width = 9135
_ExtentX = 16113
_ExtentY = 7858
_Version = 393216
BackColor = -2147483634
Cols = 13
FixedCols = 0
RowHeightMin = 300
BackColorFixed = 15723503
AllowUserResizing= 3
_NumberOfBands = 1
_Band(0).Cols = 13
End
End
Attribute VB_Name = "partlistform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************
'* 模 塊 名 稱 :零件列表管理用戶操作界面
'* 功 能 描 述 :零件列表管理用戶操作界面
'* 程序員姓名 : 石春曉
'* 最后修改人 : 石春曉
'* 最后修改時間:2005/09/03
'**************************************
Option Explicit
Private m_partDAO As partDAO ' 員工數據庫操作類
Private m_recordset As ADODB.Recordset ' 數據操作數據集對象
Private q As Integer
Private m_idList As String ' 在執行查詢時查詢到的ID列表字符串
'**************************************
'* 功 能 描 述 :窗體加載函數
'* 輸 入 參 數 :無
'* 輸 出 能 數 :無
'**************************************
Private Sub Form_Load()
Set m_partDAO = New partDAO
Set m_recordset = New ADODB.Recordset
Me.caption = "零件管理"
RefreshListTitle
refreshlist
Me.Height = 5565
Me.Width = 9255
SetToCenter Me
End Sub
Private Sub Form_Resize()
hfg_houseList.Height = Me.Height - 1400
hfg_houseList.Width = Me.Width - 350
' Image1.Stretch = False
hfg_houseList.Height = hfg_houseList.Height + 400
hfg_houseList.Width = hfg_houseList.Width + 200
'
' Image1.Stretch = True
End If
End Sub
Private Sub hfg_houseList_DblClick()
Dim ret As Boolean
ret = yhqxpd(MainForm.g_application.m_userId, Trim(str(PART_MODIFY))) ' 權限判斷
If Not ret Then
MainForm.g_msgText = "該功能您無權操作!"
HMsgBox MainForm.g_msgText, 0, 1
Exit Sub
End If
partsingleform.m_operatorType = 1
If Trim(hfg_houseList.TextMatrix(hfg_houseList.row, 0)) <> "" Then
partsingleform.m_partId = Trim(hfg_houseList.TextMatrix(hfg_houseList.row, 0))
partsingleform.show 1
If q = 1 Then
RefreshQueryList
Else
refreshlist
End If
End If
End Sub
'**************************************
'* 功 能 描 述 :工具欄按鈕的單擊操作按鈕
'* 輸 入 參 數 :無
'* 輸 出 能 數 :無
'**************************************
Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
Dim ret As Boolean
Select Case Button.Key
Case "xz" ' 新增
ret = yhqxpd(MainForm.g_application.m_userId, Trim(str(PART_NEW))) ' 權限判斷
If Not ret Then
MainForm.g_msgText = "該功能您無權操作!"
HMsgBox MainForm.g_msgText, 0, 1
Exit Sub
End If
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -