📄 frmmate.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form frmMATE
Caption = "配料单信息"
ClientHeight = 6096
ClientLeft = 48
ClientTop = 348
ClientWidth = 8172
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 6096
ScaleWidth = 8172
WindowState = 2 'Maximized
Begin VB.TextBox txtJLDW
Height = 372
Left = 8040
TabIndex = 25
Top = 5040
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtWZMC
Height = 372
Left = 8040
TabIndex = 24
Top = 5760
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtWZDM
Height = 372
Left = 0
TabIndex = 23
Top = 5400
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txt_YWDM
Height = 372
Left = 120
TabIndex = 22
Top = 6000
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtM_DATE
Height = 372
Left = 0
TabIndex = 21
Top = 5040
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtM_NO
Height = 372
Left = 0
TabIndex = 20
Top = 5880
Visible = 0 'False
Width = 252
End
Begin VB.Frame Frame2
Caption = "记录操作"
Height = 972
Left = 480
TabIndex = 16
Top = 5040
Width = 7200
Begin VB.CommandButton Command1
Caption = "确定配料单"
Height = 375
Left = 5160
TabIndex = 26
Top = 360
Width = 1572
End
Begin VB.CommandButton cmdAdd
Caption = "添加原材料"
Height = 375
Left = 240
TabIndex = 19
Top = 360
Width = 1452
End
Begin VB.CommandButton cmdModify
Caption = "修改原材料"
Height = 375
Left = 1800
TabIndex = 18
Top = 360
Width = 1452
End
Begin VB.CommandButton cmdDelete
Caption = "删除原材料"
Height = 375
Left = 3360
TabIndex = 17
Top = 360
Width = 1572
End
End
Begin VB.Frame Frame1
Caption = "配料单基本信息:"
Height = 1200
Index = 0
Left = 120
TabIndex = 2
Top = 10
Width = 7932
Begin VB.ComboBox Combo1
Height = 288
Index = 1
Left = 3360
Style = 2 'Dropdown List
TabIndex = 15
Top = 720
Width = 1572
End
Begin VB.TextBox txtItem
Height = 270
Index = 3
Left = 5760
MaxLength = 20
TabIndex = 12
Top = 720
Width = 2052
End
Begin VB.TextBox txtItem
Height = 270
Index = 2
Left = 960
MaxLength = 20
TabIndex = 8
Top = 720
Width = 1572
End
Begin VB.TextBox txtItem
Height = 270
Index = 0
Left = 960
MaxLength = 20
TabIndex = 5
Top = 360
Width = 1572
End
Begin VB.ComboBox Combo1
Height = 288
Index = 0
Left = 5760
Style = 2 'Dropdown List
TabIndex = 4
Top = 360
Width = 2052
End
Begin VB.TextBox txtItem
Height = 270
Index = 1
Left = 3360
MaxLength = 20
TabIndex = 3
Top = 360
Width = 1572
End
Begin VB.Label Label2
Caption = "成品名称:"
Height = 252
Index = 1
Left = 2640
TabIndex = 14
Top = 720
Width = 1092
End
Begin VB.Label Label2
Caption = "计量单位:"
Height = 252
Index = 4
Left = 5040
TabIndex = 13
Top = 720
Width = 1092
End
Begin VB.Label Label2
Caption = "业 务 员:"
Height = 252
Index = 3
Left = 5040
TabIndex = 10
Top = 360
Width = 1092
End
Begin VB.Label Label2
Caption = "成品编号:"
Height = 252
Index = 2
Left = 120
TabIndex = 9
Top = 720
Width = 1092
End
Begin VB.Label Label2
Caption = "配料单编号:"
Height = 252
Index = 0
Left = 120
TabIndex = 7
Top = 360
Width = 1092
End
Begin VB.Label Label2
Caption = "日 期:"
Height = 252
Index = 5
Left = 2640
TabIndex = 6
Top = 360
Width = 1092
End
End
Begin VB.Frame Frame1
Caption = "原材料信息"
Height = 3612
Index = 1
Left = 120
TabIndex = 0
Top = 1320
Width = 7932
Begin MSFlexGridLib.MSFlexGrid msgList
Height = 3252
Left = 120
TabIndex = 1
Top = 240
Width = 7692
_ExtentX = 13568
_ExtentY = 5736
_Version = 393216
Cols = 4
FixedCols = 2
AllowUserResizing= 1
End
End
Begin VB.Label lblTitle
Caption = "生 产 配 料 单 设 置 信 息 列 表"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 252
Left = 480
TabIndex = 11
Top = 240
Visible = 0 'False
Width = 5532
End
End
Attribute VB_Name = "frmMATE"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public txtSQL As String
Dim mrc As ADODB.Recordset
Dim MsgText As String
Private Sub cmdAdd_Click()
If gintPLLISTmode = 1 Then
If Trim(txtItem(0)) <> "" And Trim(txtItem(2)) <> "" And Trim(Combo1(0)) <> "" Then
If Trim(msgList.TextMatrix(1, 1) = "") Then
txtSQL = "select * from mate where m_no ='" & Trim(txtItem(0)) & "'"
Set mrc = ExecuteSQL(txtSQL, MsgText)
If mrc.EOF = False Then
MsgBox "已经存在相同编号的配料记录!", vbOKOnly + vbExclamation, "警告"
txtItem(0).SetFocus
mrc.Close
Exit Sub
End If
txtSQL = "select * from mate where wzdm1 = '" & Trim(txtItem(2)) & "'"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -