📄 frmplang1.frm
字号:
VERSION 5.00
Begin VB.Form frmPLANG1
BorderStyle = 3 'Fixed Dialog
Caption = "计划单产品信息"
ClientHeight = 3048
ClientLeft = 48
ClientTop = 336
ClientWidth = 5676
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3048
ScaleWidth = 5676
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.Frame Frame1
Caption = "产品信息:"
Height = 2292
Index = 2
Left = 120
TabIndex = 4
Top = 120
Width = 5412
Begin VB.ComboBox cboYear
Height = 288
Index = 0
Left = 1080
Style = 2 'Dropdown List
TabIndex = 20
Top = 1440
Width = 1128
End
Begin VB.ComboBox cboMonth
Height = 288
Index = 0
Left = 2640
Style = 2 'Dropdown List
TabIndex = 19
Top = 1440
Width = 645
End
Begin VB.ComboBox cboDay
Height = 288
Index = 0
Left = 3600
Style = 2 'Dropdown List
TabIndex = 18
Top = 1440
Width = 612
End
Begin VB.ComboBox cboYear
Height = 288
Index = 1
Left = 1080
Style = 2 'Dropdown List
TabIndex = 17
Top = 1800
Width = 1092
End
Begin VB.ComboBox cboMonth
Height = 288
Index = 1
Left = 2640
Style = 2 'Dropdown List
TabIndex = 16
Top = 1800
Width = 645
End
Begin VB.ComboBox cboDay
Height = 288
Index = 1
Left = 3600
Style = 2 'Dropdown List
TabIndex = 15
Top = 1800
Width = 612
End
Begin VB.TextBox txtItem
Height = 270
Index = 2
Left = 3720
MaxLength = 20
TabIndex = 14
Top = 720
Width = 1572
End
Begin VB.TextBox txtItem
Height = 270
Index = 1
Left = 1080
MaxLength = 20
TabIndex = 13
Top = 720
Width = 1572
End
Begin VB.TextBox txtItem
Height = 270
Index = 0
Left = 1080
MaxLength = 20
TabIndex = 12
Top = 360
Width = 1572
End
Begin VB.ComboBox Combo1
Height = 288
Index = 0
Left = 3720
Style = 2 'Dropdown List
TabIndex = 11
Top = 360
Width = 1572
End
Begin VB.TextBox txtItem
Enabled = 0 'False
Height = 270
Index = 4
Left = 3720
MaxLength = 20
TabIndex = 1
Top = 1080
Width = 1572
End
Begin VB.TextBox txtItem
Enabled = 0 'False
Height = 270
Index = 3
Left = 1080
MaxLength = 20
TabIndex = 0
Top = 1080
Width = 1572
End
Begin VB.Label Label1
Caption = "月"
Height = 216
Index = 2
Left = 3360
TabIndex = 28
Top = 1440
Width = 240
End
Begin VB.Label Label1
Caption = "年"
Height = 216
Index = 1
Left = 2352
TabIndex = 27
Top = 1440
Width = 240
End
Begin VB.Label Label1
Caption = "日"
Height = 216
Index = 7
Left = 4320
TabIndex = 26
Top = 1440
Width = 240
End
Begin VB.Label lblitem
Caption = "起始时间:"
Height = 252
Index = 1
Left = 360
TabIndex = 25
Top = 1440
Width = 1092
End
Begin VB.Label lblitem
Caption = "终止时间:"
Height = 252
Index = 3
Left = 360
TabIndex = 24
Top = 1800
Width = 1092
End
Begin VB.Label Label1
Caption = "月"
Height = 216
Index = 4
Left = 3360
TabIndex = 23
Top = 1800
Width = 240
End
Begin VB.Label Label1
Caption = "年"
Height = 216
Index = 3
Left = 2400
TabIndex = 22
Top = 1800
Width = 240
End
Begin VB.Label Label1
Caption = "日"
Height = 216
Index = 0
Left = 4320
TabIndex = 21
Top = 1800
Width = 240
End
Begin VB.Label Label2
Caption = "总 金 额:"
Height = 252
Index = 2
Left = 2880
TabIndex = 10
Top = 1080
Width = 1092
End
Begin VB.Label Label2
Caption = "单 价:"
Height = 252
Index = 11
Left = 360
TabIndex = 9
Top = 1080
Width = 1092
End
Begin VB.Label Label2
Caption = "数 量:"
Height = 252
Index = 10
Left = 2880
TabIndex = 8
Top = 720
Width = 1092
End
Begin VB.Label Label2
Caption = "产品编号:"
Height = 252
Index = 9
Left = 360
TabIndex = 7
Top = 360
Width = 1092
End
Begin VB.Label Label2
Caption = "产品名称:"
Height = 252
Index = 8
Left = 2880
TabIndex = 6
Top = 360
Width = 1092
End
Begin VB.Label Label2
Caption = "计量单位:"
Height = 252
Index = 3
Left = 360
TabIndex = 5
Top = 720
Width = 1092
End
End
Begin VB.CommandButton cmdExit
Caption = "返回 (&X)"
Height = 375
Left = 3000
TabIndex = 3
Top = 2520
Width = 1215
End
Begin VB.CommandButton cmdSave
Caption = "保存 (&S)"
Height = 375
Left = 1560
TabIndex = 2
Top = 2520
Width = 1215
End
End
Attribute VB_Name = "frmPLANG1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'是否改动过记录,ture为改过
Dim mblChange As Boolean
Dim mrc As ADODB.Recordset
Public txtSQL As String
Public txtM_NO As String
Public txtM_DATE As String
Public txtWZDM As String
Public txtWZMC As String
Public txtJLDW As String
Public txtYWDM As String
Private Sub cmdExit_Click()
If mblChange And cmdSave.Enabled Then
If MsgBox("保存当前记录的变化吗?", vbOKCancel + vbExclamation, "警告") = vbOK Then
'保存
Call cmdSave_Click
End If
End If
Unload Me
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -