📄 c
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form FrmProGraph_PltQuery
AutoRedraw = -1 'True
Caption = "成品降等排列图查询条件"
ClientHeight = 2655
ClientLeft = 60
ClientTop = 345
ClientWidth = 4455
Icon = "c成品检验管理_成品降等排列图查询条件.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2655
ScaleWidth = 4455
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Cmd_Clear
Caption = "全清"
Height = 300
Left = 60
TabIndex = 19
Top = 2280
Width = 1120
End
Begin VB.CheckBox UnloadCheck
Caption = "卸载窗体"
Height = 615
Left = 6090
TabIndex = 17
Top = 750
Width = 825
End
Begin VB.Frame Frame1
ForeColor = &H00FF0000&
Height = 2145
Left = 60
TabIndex = 9
Top = 30
Width = 4335
Begin VB.TextBox LrText
Height = 300
Index = 5
Left = 990
TabIndex = 2
Top = 952
Width = 2900
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 5
Left = 3900
Picture = "c成品检验管理_成品降等排列图查询条件.frx":1042
Style = 1 'Graphical
TabIndex = 20
Top = 952
Width = 300
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 2
Left = 2160
Picture = "c成品检验管理_成品降等排列图查询条件.frx":13CC
Style = 1 'Graphical
TabIndex = 18
Top = 1323
Width = 300
End
Begin VB.TextBox LrText
BackColor = &H80000014&
Enabled = 0 'False
Height = 300
Index = 3
Left = 2940
TabIndex = 4
Text = "0"
Top = 1323
Width = 1250
End
Begin VB.TextBox LrText
BackColor = &H80000014&
Height = 300
Index = 2
Left = 990
TabIndex = 3
Top = 1323
Width = 1185
End
Begin MSComCtl2.UpDown UpDown1
Height = 300
Left = 2220
TabIndex = 16
Top = 1695
Width = 240
_ExtentX = 423
_ExtentY = 529
_Version = 393216
Value = 1
BuddyControl = "LrText(4)"
BuddyDispid = 196612
BuddyIndex = 4
OrigLeft = 2220
OrigTop = 1410
OrigRight = 2460
OrigBottom = 1665
Max = 100
Min = 1
SyncBuddy = -1 'True
BuddyProperty = 0
Enabled = -1 'True
End
Begin VB.TextBox LrText
Height = 300
Index = 4
Left = 990
TabIndex = 5
Text = "1"
Top = 1695
Width = 1230
End
Begin VB.TextBox LrText
BackColor = &H80000014&
Enabled = 0 'False
Height = 300
Index = 1
Left = 990
TabIndex = 1
Top = 581
Width = 3200
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "c成品检验管理_成品降等排列图查询条件.frx":1756
Left = 2940
List = "c成品检验管理_成品降等排列图查询条件.frx":1763
Style = 2 'Dropdown List
TabIndex = 6
Top = 1695
Width = 1250
End
Begin VB.TextBox LrText
Height = 300
Index = 0
Left = 990
TabIndex = 0
Top = 210
Width = 2900
End
Begin VB.CommandButton Ydcommand1
Height = 300
Index = 0
Left = 3890
Picture = "c成品检验管理_成品降等排列图查询条件.frx":1773
Style = 1 'Graphical
TabIndex = 10
Top = 210
Width = 300
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "物料大类:"
Height = 180
Index = 11
Left = 150
TabIndex = 21
Top = 1012
Width = 810
End
Begin VB.Line Line2
Index = 1
X1 = 2580
X2 = 2820
Y1 = 1466
Y2 = 1466
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "物料名称:"
Height = 180
Left = 150
TabIndex = 15
Top = 660
Width = 810
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "周期数:"
Height = 180
Left = 150
TabIndex = 14
Top = 1740
Width = 630
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "周期:"
Height = 180
Left = 2520
TabIndex = 13
Top = 1740
Width = 405
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "物料编码:"
Height = 180
Index = 2
Left = 150
TabIndex = 12
Top = 270
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "生产日期:"
Height = 180
Index = 0
Left = 150
TabIndex = 11
Top = 1383
Width = 810
End
End
Begin VB.CommandButton QdCommand
Caption = "确定(&O)"
Height = 300
Left = 2010
TabIndex = 7
Top = 2295
Width = 1120
End
Begin VB.CommandButton QxCommand
Cancel = -1 'True
Caption = "取消(&C)"
Height = 300
Left = 3270
TabIndex = 8
Top = 2295
Width = 1120
End
End
Attribute VB_Name = "FrmProGraph_PltQuery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'******************************************************************
'* 模 块 名 称 :成品降等排列图查询条件
'* 功 能 描 述 :
'* 程序员姓名 :邹力
'* 最后修改人 :张晶石
'* 最后修改时间:2002/01/24
'* 备 注:程序中所有依实际情况自定义部分均用[>> <<]括起
'******************************************************************
Dim Tsxx As String '系统信息提示
'以下为固定使用变量(文本框)
Dim Textvar() As Variant '存储变体型文本框信息
Dim Textboolean() As Boolean '存储布尔型文本框信息
Dim Textint() As Integer '存储整型文本框信息
Dim Textstr() As String '存储字符型文本框信息
Dim Max_Text_Index As Integer '最大录入文本框索引值
Dim TextGroupCode As String '文本框录入分组编码
Dim TextValiLock As Boolean '文本框失去焦点是否进行有效性控制判断
Dim TextValiJudgeLock() As Boolean '文本框录入有效性判断控制锁
Dim CurTextIndex As Integer '当前文本框索引值
Dim TextChangeLock As Boolean '文本框内容变换控制锁
Dim Bln_Cancel As Boolean '取消按钮信息传递
Private Sub Cmd_Clear_Click()
'清除文本框(Fixed)
For Jsqte = 0 To Max_Text_Index
LrText(Jsqte).Tag = ""
LrText(Jsqte).Text = ""
Next Jsqte
Combo1.ListIndex = -1
LrText(4).Text = 1
End Sub
Private Sub Combo1_Click()
If LrText(2).Text = "" Then Exit Sub
Select Case Trim(Combo1.Text)
Case "日"
LrText(3).Text = DateAdd("d", Val(LrText(4).Text), CDate(LrText(2).Text) - 1)
Case "周"
LrText(3).Text = DateAdd("ww", Val(LrText(4).Text), CDate(LrText(2).Text) - 1)
Case Else
If Day(CDate(LrText(2).Text)) = 1 Then
LrText(3).Text = DateAdd("m", Val(LrText(4).Text), CDate(LrText(2).Text)) - 1
Else
LrText(3).Text = DateAdd("m", Val(LrText(4).Text), CDate(LrText(2).Text) - 1)
End If
End Select
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer) '控 制 焦 点 转 移(Fixed)
Dim jdzygs As Integer '控件焦点转移个数
jdzygs = 30
Select Case KeyAscii
Case vbKeyReturn
If Kjjdzy(jdzygs) Then
KeyAscii = 0
End If
Case 39 '屏蔽"'"
KeyAscii = 0
End Select
End Sub
Private Sub Form_Load()
'以下为文本框处理程序(Fixed)
TextGroupCode = "Qc_zxt"
Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr()) '读入文本框录入信息
Call Wbkcsh
'[>>初始化查询条件默认值
Combo1.ListIndex = 1
LrText(4).Text = 1
LrText(2).Text = Format(CDate(Xtrq) - 6, "yyyy-mm-dd")
LrText(3).Text = Format(CDate(Xtrq), "yyyy-mm-dd")
'<<]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -