?? productionlistform.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 productionlistform
Caption = "產(chǎn)品管理"
ClientHeight = 5040
ClientLeft = 60
ClientTop = 450
ClientWidth = 9120
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 5040
ScaleWidth = 9120
Begin MSComctlLib.Toolbar SzToolbar
Align = 1 'Align Top
Height = 570
Left = 0
TabIndex = 0
Top = 0
Width = 9120
_ExtentX = 16087
_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 = 7560
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 = "productionlistform.frx":0000
Key = "dy"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "productionlistform.frx":039A
Key = "xg"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "productionlistform.frx":0734
Key = "tc"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "productionlistform.frx":0ACE
Key = "xz"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "productionlistform.frx":0E68
Key = "sc"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "productionlistform.frx":1202
Key = "sx"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "productionlistform.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 = 21
FixedCols = 0
RowHeightMin = 300
BackColorFixed = 15723503
AllowUserResizing= 3
_NumberOfBands = 1
_Band(0).Cols = 21
End
End
Attribute VB_Name = "productionlistform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************
'* 模 塊 名 稱 :產(chǎn)品列表管理用戶操作界面
'* 功 能 描 述 :產(chǎn)品列表管理用戶操作界面
'* 程序員姓名 : 石春曉
'* 最后修改人 : 石春曉
'* 最后修改時間:2005/09/05
'**************************************
Option Explicit
Private m_productionDAO As productionDAO ' 產(chǎn)品數(shù)據(jù)庫操作類
Private m_recordset As ADODB.Recordset ' 數(shù)據(jù)操作數(shù)據(jù)集對象
Private q As Integer
Private m_idList As String ' 在執(zhí)行查詢時查詢到的ID列表字符串
'**************************************
'* 功 能 描 述 :窗體加載函數(shù)
'* 輸 入 參 數(shù) :無
'* 輸 出 能 數(shù) :無
'**************************************
Private Sub Form_Load()
Set m_productionDAO = New productionDAO
Set m_recordset = New ADODB.Recordset
Me.caption = "產(chǎn)品管理"
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
If (hfg_houseList.Height > hfg_houseList.Height - 300) Or (hfg_houseList.Width > hfg_houseList.Width - 200) Then
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(PRODUCTION_MODIFY))) ' 權(quán)限判斷
If Not ret Then
MainForm.g_msgText = "該功能您無權(quán)操作!"
HMsgBox MainForm.g_msgText, 0, 1
Exit Sub
End If
productionsingleform.m_operatorType = 1
If Trim(hfg_houseList.TextMatrix(hfg_houseList.row, 8)) <> "" Then
productionsingleform.m_productionId = Trim(hfg_houseList.TextMatrix(hfg_houseList.row, 8))
productionsingleform.show 1
If q = 1 Then
RefreshQueryList
Else
refreshlist
End If
End If
End Sub
'**************************************
'* 功 能 描 述 :工具欄按鈕的單擊操作按鈕
'* 輸 入 參 數(shù) :無
'* 輸 出 能 數(shù) :無
'**************************************
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(PRODUCTION_NEW))) ' 權(quán)限判斷
If Not ret Then
MainForm.g_msgText = "該功能您無權(quán)操作!"
HMsgBox MainForm.g_msgText, 0, 1
Exit Sub
End If
productionsingleform.m_operatorType = 0
productionsingleform.show 1
refreshlist
Case "xg" ' 修改
ret = yhqxpd(MainForm.g_application.m_userId, Trim(str(PRODUCTION_MODIFY))) ' 權(quán)限判斷
If Not ret Then
MainForm.g_msgText = "該功能您無權(quán)操作!"
HMsgBox MainForm.g_msgText, 0, 1
Exit Sub
End If
productionsingleform.m_operatorType = 1
If Trim(hfg_houseList.TextMatrix(hfg_houseList.row, 8)) <> "" Then
productionsingleform.m_productionId = Trim(hfg_houseList.TextMatrix(hfg_houseList.row, 8))
productionsingleform.show 1
If q = 1 Then
RefreshQueryList
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -