?? frmitemedit.frm
字號:
Top = 2880
Width = 855
End
Begin VB.Label Label7
Caption = "制 購"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5640
TabIndex = 6
Top = 480
Width = 855
End
Begin VB.Label Label6
Caption = "單位"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2880
TabIndex = 5
Top = 3480
Width = 735
End
Begin VB.Label Label5
Caption = "顏色"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 4
Top = 3480
Width = 735
End
Begin VB.Label Label4
Caption = "規格"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 3
Top = 2880
Width = 735
End
Begin VB.Label Label3
Caption = "圖號"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 2
Top = 1680
Width = 735
End
Begin VB.Label Label2
Caption = "貨號"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 1
Top = 1080
Width = 735
End
Begin VB.Label Label1
Caption = "機型"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 0
Top = 480
Width = 735
End
Begin VB.Label Label23
Caption = "備 注"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 17
Top = 4800
Width = 975
End
Begin VB.Label Label18
Caption = "包裝數量"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8400
TabIndex = 16
Top = 2280
Width = 1335
End
Begin VB.Label Label17
Caption = "包裝類型"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8400
TabIndex = 15
Top = 1680
Width = 1335
End
Begin VB.Label Label16
Caption = "包裝體積"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8400
TabIndex = 14
Top = 1080
Width = 1575
End
Begin VB.Label Label15
Caption = "包裝單重"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8400
TabIndex = 13
Top = 480
Width = 1455
End
Begin VB.Label Label14
Caption = "毛 重"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8880
TabIndex = 12
Top = 3480
Width = 855
End
Begin VB.Label Label13
Caption = "凈 重"
BeginProperty Font
Name = "宋體"
Size = 15
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5640
TabIndex = 11
Top = 3480
Width = 855
End
End
Attribute VB_Name = "FrmItemEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriItem As String
Private Sub Form_Load()
'填充制購List單
CmbMB.List(0) = "B購買"
CmbMB.List(1) = "M制造"
CmbMB.List(2) = "S外發"
CmbMB.List(3) = "Z其他"
'填充類型List單
CmbIT.List(0) = "N一般"
CmbIT.List(1) = "T工具"
CmbIT.List(2) = "W工作中心"
CmbIT.List(3) = "R參考"
'填充狀態List
CmbST.List(0) = "A可用"
CmbST.List(1) = "E工程"
CmbST.List(2) = "P逐漸報廢"
CmbST.List(3) = "S報廢"
'填充檢驗List
CmbInspect.List(0) = "Y需檢驗"
CmbInspect.List(1) = "N無需檢驗"
End Sub
Private Sub LblCancel_Click()
Unload Me
End Sub
Private Function Check() As Boolean
If Trim(TxtItem) = "" Then
MsgBox "請輸入貨號"
TxtItem.SetFocus
Check = False
Exit Function
End If
If Trim(TxtName) = "" Then
MsgBox "請輸入名稱"
TxtName.SetFocus
Check = False
Exit Function
End If
Check = True
End Function
Private Sub LblOK_Click()
'判斷要編輯信息是否完整
If Check = False Then
Exit Sub
End If
With MyItem
.Model = TxtModel.Text
.Item = TxtItem.Text
.Drawing = TxtDrawing.Text
.Name = TxtName.Text
.Specification = TxtSpecification.Text
.Color = TxtColor.Text
.Unit = TxtUnit.Text
.MB = CmbMB.Text
.IT = CmbIT.Text
.ST = CmbST.Text
.Inspect = CmbInspect.Text
.Capacity = TxtCapacity.Text
.NWeight = TxtNWeight.Text
.RWeight = TxtRWeight.Text
.PackWeight = TxtPackWeight.Text
.PackVolume = TxtPackVolume.Text
.PackType = TxtPackType.Text
.PackQty = TxtPackQty.Text
.ProLow = TxtProLow.Text
.ProHigh = TxtProHigh.Text
.Valid = TxtValid.Text
.AlarmDays = TxtAlarmDays.Text
.Remark = TxtRemark.Text
'判斷操作是添加還是修改
If Modify = False Then '判斷為添加操作
'判斷待添加貨號是否已經存在
If .In_DB(TxtItem.Text) = True Then
MsgBox "貨號重復,請重新設置"
TxtItem.SetFocus
TxtItem.SelStart = 0
TxtItem.SelLength = Len(TxtItem)
Exit Sub
Else
.Insert '添加
MsgBox "添加成功"
End If
Else '判斷為修改操作
.Update (OriItem)
MsgBox "修改成功"
End If
End With
Unload Me
End Sub
Private Sub TxtAlarmDays_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Int(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub TxtPackQty_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Int(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub TxtProHigh_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Int(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub TxtProLow_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Int(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub TxtValid_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Int(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -