?? frmwx.frm
字號:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form frmWX
Caption = "維修單信息"
ClientHeight = 6660
ClientLeft = 48
ClientTop = 348
ClientWidth = 8196
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 6660
ScaleWidth = 8196
WindowState = 2 'Maximized
Begin VB.TextBox txtJLDW
Height = 372
Left = 7680
TabIndex = 24
Top = 6000
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtWZMC
Height = 372
Left = 7200
TabIndex = 23
Top = 6000
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtWZDM
Height = 372
Left = 360
TabIndex = 22
Top = 6480
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txt_YWDM
Height = 372
Left = 0
TabIndex = 21
Top = 6480
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtM_DATE
Height = 372
Left = 480
TabIndex = 20
Top = 6000
Visible = 0 'False
Width = 252
End
Begin VB.TextBox txtM_NO
Height = 372
Left = 0
TabIndex = 19
Top = 6000
Visible = 0 'False
Width = 252
End
Begin VB.Frame Frame2
Caption = "記錄操作"
Height = 972
Left = 960
TabIndex = 15
Top = 5400
Width = 6000
Begin VB.CommandButton cmdAdd
Caption = "添加配件"
Height = 375
Left = 240
TabIndex = 18
Top = 360
Width = 1700
End
Begin VB.CommandButton cmdModify
Caption = "修改配件"
Height = 375
Left = 2160
TabIndex = 17
Top = 360
Width = 1700
End
Begin VB.CommandButton cmdDelete
Caption = "刪除配件"
Height = 375
Left = 4080
TabIndex = 16
Top = 360
Width = 1700
End
End
Begin VB.Frame Frame1
Caption = "維修單基本信息:"
Height = 1920
Index = 0
Left = 120
TabIndex = 2
Top = 0
Width = 7932
Begin VB.ComboBox Combo1
Height = 288
Index = 2
Left = 3360
Style = 2 'Dropdown List
TabIndex = 34
Top = 1080
Width = 1812
End
Begin VB.TextBox txtItem
Height = 270
Index = 6
Left = 6120
MaxLength = 20
TabIndex = 33
Top = 1080
Width = 1572
End
Begin VB.CommandButton cmdCANCEL
Caption = "取消維修單"
Height = 375
Left = 3720
TabIndex = 30
Top = 1440
Width = 1812
End
Begin VB.CommandButton cmdOK
Caption = "確定維修單"
Height = 375
Left = 1680
TabIndex = 29
Top = 1440
Width = 1692
End
Begin VB.TextBox txtItem
Height = 270
Index = 5
Left = 960
MaxLength = 20
TabIndex = 27
Top = 1080
Width = 1572
End
Begin VB.TextBox txtItem
Height = 270
Index = 4
Left = 6120
MaxLength = 20
TabIndex = 25
Top = 720
Width = 1572
End
Begin VB.ComboBox Combo1
Height = 288
Index = 1
Left = 6120
Style = 2 'Dropdown List
TabIndex = 14
Top = 360
Width = 1572
End
Begin VB.TextBox txtItem
Height = 270
Index = 3
Left = 3360
MaxLength = 20
TabIndex = 11
Top = 720
Width = 1812
End
Begin VB.TextBox txtItem
Height = 270
Index = 2
Left = 960
MaxLength = 20
TabIndex = 7
Top = 720
Width = 1572
End
Begin VB.TextBox txtItem
Height = 270
Index = 0
Left = 7800
MaxLength = 20
TabIndex = 5
Top = 1080
Visible = 0 'False
Width = 372
End
Begin VB.ComboBox Combo1
Height = 288
Index = 0
Left = 3360
Style = 2 'Dropdown List
TabIndex = 4
Top = 360
Width = 1812
End
Begin VB.TextBox txtItem
Height = 270
Index = 1
Left = 960
MaxLength = 20
TabIndex = 3
Top = 360
Width = 1572
End
Begin VB.Label Label2
Caption = "支付方式:"
Height = 252
Index = 14
Left = 2640
TabIndex = 32
Top = 1080
Width = 1092
End
Begin VB.Label Label2
Caption = "預付比例:"
Height = 252
Index = 13
Left = 5400
TabIndex = 31
Top = 1080
Width = 1092
End
Begin VB.Label Label2
Caption = "折扣比例:"
Height = 252
Index = 7
Left = 240
TabIndex = 28
Top = 1080
Width = 1092
End
Begin VB.Label Label2
Caption = "汽車類型:"
Height = 252
Index = 6
Left = 5400
TabIndex = 26
Top = 720
Width = 1092
End
Begin VB.Label Label2
Caption = "汽車型號:"
Height = 252
Index = 1
Left = 240
TabIndex = 13
Top = 720
Width = 1092
End
Begin VB.Label Label2
Caption = "車主姓名:"
Height = 252
Index = 4
Left = 2640
TabIndex = 12
Top = 720
Width = 1092
End
Begin VB.Label Label2
Caption = "業 務 員:"
Height = 252
Index = 3
Left = 2640
TabIndex = 9
Top = 360
Width = 1092
End
Begin VB.Label Label2
Caption = "車牌號碼:"
Height = 252
Index = 2
Left = 5400
TabIndex = 8
Top = 360
Width = 1092
End
Begin VB.Label Label2
Caption = "日 期:"
Height = 252
Index = 5
Left = 240
TabIndex = 6
Top = 360
Width = 1092
End
End
Begin VB.Frame Frame1
Caption = "原材料信息"
Height = 3252
Index = 1
Left = 120
TabIndex = 0
Top = 2040
Width = 7932
Begin MSFlexGridLib.MSFlexGrid msgList
Height = 2892
Left = 120
TabIndex = 1
Top = 240
Width = 7692
_ExtentX = 13568
_ExtentY = 5101
_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 = 10
Top = 240
Visible = 0 'False
Width = 5532
End
End
Attribute VB_Name = "frmWX"
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(Combo1(1)) <> "" And Trim(Combo1(0)) <> "" Then
txtSQL = "select * from outh where outh_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
frmWX1.txtM_NO = Trim(txtItem(0))
frmWX1.txtM_DATE = Trim(txtItem(1))
frmWX1.txtKHDM = Trim(Combo1(1))
frmWX1.txtLB = Trim(txtItem(4))
frmWX1.txtREB = Trim(txtItem(5))
frmWX1.txtYWDM = Trim(Combo1(0).ItemData(Combo1(0).ListIndex))
gintPLmode = 1
frmWX1.Show 1
Else
MsgBox "請設置配料單的所有選項!", vbOKOnly, "警告"
Exit Sub
End If
ElseIf gintPLLISTmode = 2 Then
frmWX1.txtM_NO = Trim(txtItem(0))
frmWX1.txtM_DATE = Trim(txtItem(1))
frmWX1.txtKHDM = Trim(Combo1(1))
frmWX1.txtLB = Trim(txtItem(4))
frmWX1.txtREB = Trim(txtItem(5))
frmWX1.txtYWDM = Trim(Combo1(0).ItemData(Combo1(0).ListIndex))
gintPLmode = 1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -