📄 frmcut.frm
字号:
VERSION 5.00
Object = "{B02F3647-766B-11CE-AF28-C3A2FBE76A13}#2.5#0"; "SS32X25.OCX"
Begin VB.Form frmCut
Caption = "Customer Tank Master Maintenance"
ClientHeight = 8310
ClientLeft = 60
ClientTop = 345
ClientWidth = 9480
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 8310
ScaleWidth = 9480
WindowState = 2 'Maximized
Begin PrjLDS.UserControl1 UserControl1
Height = 615
Left = 0
TabIndex = 30
Top = 0
Width = 9600
_ExtentX = 16933
_ExtentY = 1085
End
Begin VB.Frame frminput
Height = 4455
Left = 120
TabIndex = 0
Top = 2880
Width = 9015
Begin VB.ComboBox cmbproc
Height = 300
Left = 1680
TabIndex = 18
Text = "cmbproc"
Top = 2040
Width = 1455
End
Begin VB.ComboBox cmbcusc
Height = 300
Left = 1680
TabIndex = 15
Text = "cmbcusc"
Top = 840
Width = 1455
End
Begin VB.ComboBox cmbstatus
Height = 300
Left = 7560
Style = 2 'Dropdown List
TabIndex = 14
Top = 360
Width = 855
End
Begin VB.TextBox txttnkd
Height = 285
Left = 5400
TabIndex = 17
Top = 1440
Width = 3015
End
Begin VB.TextBox Text1
BackColor = &H80000004&
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 2400
TabIndex = 13
Top = 360
Width = 75
End
Begin VB.TextBox txtcusd
Height = 285
Left = 5400
Locked = -1 'True
TabIndex = 32
Top = 840
Width = 3015
End
Begin VB.TextBox txtconf
Height = 285
Left = 1680
MaxLength = 11
TabIndex = 22
Top = 3240
Width = 1335
End
Begin VB.TextBox txtsafl
Height = 285
Left = 7560
MaxLength = 11
TabIndex = 26
Top = 3840
Width = 1335
End
Begin VB.TextBox txtminl
Height = 285
Left = 4440
MaxLength = 11
TabIndex = 25
Top = 3840
Width = 1335
End
Begin VB.TextBox txtmaxl
Height = 285
Left = 1680
MaxLength = 11
TabIndex = 24
Top = 3840
Width = 1335
End
Begin VB.TextBox txtphys
Height = 285
Left = 5400
MaxLength = 11
TabIndex = 23
Top = 3240
Width = 1215
End
Begin VB.TextBox txtconv
Height = 285
Left = 7920
MaxLength = 2
TabIndex = 21
Top = 2640
Width = 495
End
Begin VB.TextBox txtmeau
Height = 285
Left = 5400
MaxLength = 2
TabIndex = 20
Top = 2640
Width = 375
End
Begin VB.TextBox txtprod
Height = 285
Left = 5400
Locked = -1 'True
MaxLength = 25
TabIndex = 34
Top = 2040
Width = 3015
End
Begin VB.TextBox txtlocc
Height = 285
Left = 1680
MaxLength = 2
TabIndex = 19
Top = 2640
Width = 495
End
Begin VB.TextBox txttnkc
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 285
Left = 1680
MaxLength = 11
TabIndex = 16
Top = 1440
Width = 1455
End
Begin VB.TextBox txtentc
Height = 270
Left = 1680
MaxLength = 5
TabIndex = 33
Top = 360
Width = 615
End
Begin VB.Label Label4
Caption = "Status:"
Height = 255
Left = 6720
TabIndex = 36
Top = 360
Width = 615
End
Begin VB.Label Label3
Caption = "Tank Description:"
Height = 255
Left = 3600
TabIndex = 35
Top = 1440
Width = 1575
End
Begin VB.Label Label2
Caption = "Customer Desc:"
Height = 255
Left = 3840
TabIndex = 31
Top = 840
Width = 1335
End
Begin VB.Label Label1
Caption = "Conversion Factor:"
Height = 495
Index = 13
Left = 600
TabIndex = 27
Top = 3240
Width = 975
End
Begin VB.Label Label1
Caption = "Safty Level:"
Height = 255
Index = 11
Left = 6240
TabIndex = 12
Top = 3840
Width = 1215
End
Begin VB.Label Label1
Caption = "Min level:"
Height = 255
Index = 10
Left = 3240
TabIndex = 11
Top = 3840
Width = 975
End
Begin VB.Label Label1
Caption = "Max Level:"
Height = 255
Index = 9
Left = 600
TabIndex = 10
Top = 3840
Width = 975
End
Begin VB.Label Label1
Caption = "Unit Measure:"
Height = 255
Index = 8
Left = 4080
TabIndex = 9
Top = 2640
Width = 1215
End
Begin VB.Label Label1
Caption = "Conversion UM:"
Height = 255
Index = 7
Left = 6360
TabIndex = 8
Top = 2640
Width = 1335
End
Begin VB.Label Label1
Caption = "Physical Size:"
Height = 255
Index = 6
Left = 3840
TabIndex = 7
Top = 3240
Width = 1335
End
Begin VB.Label Label1
Caption = "Product Desc:"
Height = 255
Index = 5
Left = 3960
TabIndex = 6
Top = 2040
Width = 1215
End
Begin VB.Label Label1
Caption = "Product Code:"
Height = 255
Index = 4
Left = 360
TabIndex = 5
Top = 2040
Width = 1215
End
Begin VB.Label Label1
Caption = "Location Code:"
Height = 255
Index = 3
Left = 120
TabIndex = 4
Top = 2640
Width = 1335
End
Begin VB.Label Label1
Caption = "Tank Code:"
Height = 255
Index = 2
Left = 600
TabIndex = 3
Top = 1440
Width = 975
End
Begin VB.Label Label1
Caption = "Customer Code:"
Height = 255
Index = 1
Left = 240
TabIndex = 2
Top = 840
Width = 1335
End
Begin VB.Label Label1
Caption = "Entity Code:"
Height = 255
Index = 0
Left = 480
TabIndex = 1
Top = 360
Width = 1095
End
End
Begin FPSpread.vaSpread vascut
Height = 1995
Left = 120
TabIndex = 29
Top = 720
Width = 9000
_Version = 131077
_ExtentX = 15875
_ExtentY = 3519
_StockProps = 64
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MaxCols = 0
MaxRows = 0
SpreadDesigner = "frmCut.frx":0000
End
Begin VB.Label lblstatus
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 8160
TabIndex = 28
Top = 3120
Width = 735
End
End
Attribute VB_Name = "frmCut"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mkey As String
Private lCurSpdRow As Long '当前SPD的行
Private lCurSpdCol As Long '当前SPD的列
Private Enum cutdetail
Entcode = 1
cuscode
tnkcode
tnkdesc
loccode
procode
Meaunit
conveum
convfac
physize
maxleve
minleve
safleve
Astatus
MaxCols = Astatus
End Enum
Private Sub cmbcusc_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
SendKeys "{tab}"
End If
End Sub
Private Sub cmbcusc_LostFocus()
Dim sSQL As String
Dim rsttru As Recordset
Dim cuscode As String
If cmbcusc.Text = "" Then
MsgBox "The customer code is not input !", vbOKOnly, "Information"
Else
cuscode = getstr(cmbcusc.Text, "/")
sSQL = "select * from appcus where cuscode =" & CLng(cuscode)
Set rsttru = Acs_cnt.Execute(sSQL)
If Not rsttru.EOF Then
cmbcusc.Text = cuscode
txtcusd.Text = rsttru!Cusdesc
Else
MsgBox "The customer code is not exist!", vbOKOnly, "Information"
cmbcusc.SetFocus
End If
rsttru.Close
Set rsttru = Nothing
End If
End Sub
Private Sub cmbproc_LostFocus()
Dim sSQL As String
Dim rsttru As Recordset
Dim procode As String
If cmbproc.Text = "" Then
cmbproc.Text = "0"
txtprod.Text = ""
Else
procode = getstr(cmbproc.Text, "/")
sSQL = "select itedesc from appite where itecode =" & CLng(getstr(cmbproc.Text, "/"))
Set rsttru = Acs_cnt.Execute(sSQL)
If Not rsttru.EOF Then
cmbproc.Text = procode
txtprod.Text = rsttru!Itedesc
Else
MsgBox "The product code is not exist!", vbOKOnly, "Information"
cmbproc.SetFocus
End If
rsttru.Close
Set rsttru = Nothing
End If
End Sub
Private Sub cmbstatus_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
SendKeys "{tab}"
End If
End Sub
Private Sub Form_Load()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -