📄 frm_iqc_check.frm
字号:
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "客户名称"
Height = 180
Index = 1
Left = 240
TabIndex = 47
Top = 1440
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "节目名称"
ForeColor = &H000000C0&
Height = 180
Index = 2
Left = 240
TabIndex = 46
Top = 4680
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "母盘号码"
ForeColor = &H000000C0&
Height = 180
Index = 3
Left = 240
TabIndex = 45
Top = 5040
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "母盘内孔"
ForeColor = &H00000000&
Height = 180
Index = 4
Left = 5640
TabIndex = 44
Top = 1080
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "刻录速度"
Height = 180
Index = 6
Left = 5640
TabIndex = 43
Top = 720
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "印刷方式"
ForeColor = &H00000000&
Height = 180
Index = 7
Left = 5640
TabIndex = 42
Top = 2160
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "印刷颜色"
ForeColor = &H00000000&
Height = 180
Index = 8
Left = 5640
TabIndex = 41
Top = 2520
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "复制要求"
Height = 180
Index = 11
Left = 240
TabIndex = 40
Top = 2520
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "品质要求"
Height = 180
Index = 12
Left = 240
TabIndex = 39
Top = 2880
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "印刷要求"
Height = 180
Index = 13
Left = 5640
TabIndex = 38
Top = 3240
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "包装要求"
Height = 180
Index = 14
Left = 5640
TabIndex = 37
Top = 3600
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "包装方式"
ForeColor = &H00000000&
Height = 180
Index = 15
Left = 5640
TabIndex = 36
Top = 3960
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "GP要求"
ForeColor = &H00000000&
Height = 180
Index = 18
Left = 420
TabIndex = 35
Top = 1800
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "质量等级"
ForeColor = &H00000000&
Height = 180
Index = 19
Left = 240
TabIndex = 34
Top = 2160
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "节目源种类"
Height = 180
Index = 20
Left = 60
TabIndex = 33
Top = 3600
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "菲林索引"
ForeColor = &H00000000&
Height = 180
Index = 22
Left = 5640
TabIndex = 32
Top = 1440
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "印刷参照"
Height = 180
Index = 27
Left = 5640
TabIndex = 31
Top = 1800
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "地区名称"
Height = 180
Left = 240
TabIndex = 30
Top = 720
Width = 720
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "客户编码"
Height = 180
Left = 240
TabIndex = 29
Top = 1080
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "母盘刻字要求"
Height = 180
Index = 5
Left = 5280
TabIndex = 28
Top = 360
Width = 1080
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "节目种类"
ForeColor = &H00000000&
Height = 180
Index = 21
Left = 240
TabIndex = 27
Top = 3960
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "是否漏银"
ForeColor = &H00000000&
Height = 180
Index = 10
Left = 5640
TabIndex = 26
Top = 2880
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "地区编码"
Height = 180
Left = 240
TabIndex = 25
Top = 360
Width = 720
End
End
End
Attribute VB_Name = "Frm_IQC_Check"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Check_Click()
On Error GoTo err
If Me.Cob_Check_Result.text = "" Then
MsgBox "检查结果不能为空,请输入", vbCritical, "错误提示"
Exit Sub
End If
Set Cn = New ADODB.Connection
Cn.Open Cs
Set Rs = New ADODB.Recordset
Rs.Open "select * from IQC_Check", Cn, adOpenKeyset, adLockOptimistic, adCmdText
Rs.AddNew
Rs!检查时间 = Now
Rs!检查内编码 = Me.txt_M_Fields(6).text
Rs!检查结果 = Me.Cob_Check_Result.text
Rs!检查人 = OperatorName
Rs!备注 = Me.Txt_Check_Result.text
Rs.Update
Rs.Close
Cn.Close
Unload Me
Exit Sub
err:
MsgBox err.Description, vbCritical
End Sub
Private Sub cmd_Exit_Click()
Unload Me
End Sub
Private Sub Form_Load()
On Error GoTo err
'初始化
Me.Frame1.Enabled = False
For i = 0 To 13
Me.txt_M_Fields(i).text = ""
Next i
For i = 0 To 10
Me.cob_M_Fields(i).text = ""
Next i
Me.Cob_Check_Result.AddItem ("正确")
Me.Cob_Check_Result.AddItem ("不正确")
Me.Txt_Check_Result.text = ""
'对数据进行赋值
Set Cn = New ADODB.Connection
Cn.Open Cs
Set Rs = New ADODB.Recordset
Rs.Open "select * from Area_Customer where 客户编码 ='" & Left(AreaCustomer_Key, 5) & "'order by 客户编码", Cn, adOpenKeyset, adLockOptimistic, adCmdText
If Rs.RecordCount <> 0 Then
If IsNull(Rs!地区编码) = False Then Me.txt_M_Fields(0).text = Rs!地区编码
If IsNull(Rs!地区名称) = False Then Me.txt_M_Fields(1).text = Rs!地区名称
If IsNull(Rs!客户编码) = False Then Me.txt_M_Fields(2).text = Rs!客户编码
If IsNull(Rs!客户名称) = False Then Me.txt_M_Fields(3).text = Rs!客户名称
End If
Rs.Close
Cn.Close
If IsNull(Rs_CR!GP要求) = False Then Me.cob_M_Fields(0).text = Rs_CR!GP要求
If IsNull(Rs_CR!质量等级) = False Then Me.cob_M_Fields(1).text = Rs_CR!质量等级
If IsNull(Rs_CR!复制要求) = False Then Me.txt_M_Fields(4).text = Rs_CR!复制要求
If IsNull(Rs_CR!品质要求) = False Then Me.txt_M_Fields(5).text = Rs_CR!品质要求
If IsNull(Rs_CR!内编码) = False Then Me.txt_M_Fields(6).text = Rs_CR!内编码
If IsNull(Rs_CR!料号) = False Then Me.txt_M_Fields(13).text = Rs_CR!料号
If IsNull(Rs_CR!节目名称) = False Then Me.txt_M_Fields(7).text = Rs_CR!节目名称
If IsNull(Rs_CR!母盘号码) = False Then Me.txt_M_Fields(8).text = Rs_CR!母盘号码
If IsNull(Rs_CR!节目源种类) = False Then Me.cob_M_Fields(2).text = Rs_CR!节目源种类
If IsNull(Rs_CR!节目种类) = False Then Me.cob_M_Fields(3).text = Rs_CR!节目种类
If IsNull(Rs_CR!母盘刻字要求) = False Then Me.txt_M_Fields(9).text = Rs_CR!母盘刻字要求
If IsNull(Rs_CR!刻录速度) = False Then Me.cob_M_Fields(4).text = Rs_CR!刻录速度
If IsNull(Rs_CR!母盘内孔) = False Then Me.cob_M_Fields(5).text = Rs_CR!母盘内孔
If IsNull(Rs_CR!菲林索引) = False Then Me.txt_M_Fields(10).text = Rs_CR!菲林索引
If IsNull(Rs_CR!印刷参照) = False Then Me.cob_M_Fields(6).text = Rs_CR!印刷参照
If IsNull(Rs_CR!印刷方式) = False Then Me.cob_M_Fields(7).text = Rs_CR!印刷方式
If IsNull(Rs_CR!印刷颜色) = False Then Me.cob_M_Fields(8).text = Rs_CR!印刷颜色
If IsNull(Rs_CR!委托书编码) = False Then Me.cob_M_Fields(9).text = Rs_CR!委托书编码
If IsNull(Rs_CR!印刷要求) = False Then Me.txt_M_Fields(11).text = Rs_CR!印刷要求
If IsNull(Rs_CR!包装要求) = False Then Me.txt_M_Fields(12).text = Rs_CR!包装要求
If IsNull(Rs_CR!包装方式) = False Then Me.cob_M_Fields(10).text = Rs_CR!包装方式
Exit Sub
err:
MsgBox err.Description, vbCritical
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -