?? frmpoidqury.frm
字號(hào):
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form FrmPOIDQury
Caption = "PO單號(hào)選擇"
ClientHeight = 6135
ClientLeft = 60
ClientTop = 510
ClientWidth = 4095
Icon = "FrmPOIDQury.frx":0000
LinkTopic = "Form1"
ScaleHeight = 6135
ScaleWidth = 4095
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 3960
Visible = 0 'False
Width = 1920
_ExtentX = 3387
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox TxtPOID
Enabled = 0 'False
Height = 375
Left = 1080
TabIndex = 0
Top = 360
Width = 2535
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 4455
Left = 120
TabIndex = 2
Top = 960
Width = 3845
_ExtentX = 6773
_ExtentY = 7858
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1920.189
EndProperty
BeginProperty Column01
ColumnWidth = 1964.976
EndProperty
EndProperty
End
Begin VB.Label lblOk
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "確 定"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 1200
MouseIcon = "FrmPOIDQury.frx":0CCA
MousePointer = 99 'Custom
TabIndex = 4
Top = 5640
Width = 645
End
Begin VB.Image Image1
Height = 300
Left = 600
Picture = "FrmPOIDQury.frx":0FD4
Top = 5640
Width = 300
End
Begin VB.Label LblCancel
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "取 消"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 3000
MouseIcon = "FrmPOIDQury.frx":13F0
MousePointer = 99 'Custom
TabIndex = 3
Top = 5640
Width = 645
End
Begin VB.Image Image2
Height = 300
Left = 2400
Picture = "FrmPOIDQury.frx":16FA
Top = 5640
Width = 300
End
Begin VB.Label Label3
Caption = "PO單號(hào)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 1
Top = 360
Width = 855
End
End
Attribute VB_Name = "FrmPOIDQury"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OK As Integer
Private Sub DataGrid1_Click()
If Adodc1.Recordset.RecordCount <> 0 Then
TxtPOID.Text = Adodc1.Recordset.Fields(0)
End If
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = "driver={SQL Server};server=" + Trim(Server) + ";uid=" + Trim(User) + ";pwd=" + Trim(Password) + ";database=ERP"
Adodc1.RecordSource = "SELECT distinct PO.POID as PO單號(hào) ,Businessman.BusinessmanName as 客戶名稱, PO.PODate as 時(shí)間 From PurchaseItem, Item, PO, Businessman WHERE Item.Item=PurchaseItem.Item and PO.PurchaseItemID=PurchaseItem.PurchaseItemID and Businessman.BusinessmanID=PurchaseItem.BusinessmanID"
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub LblCancel_Click()
Unload Me
End Sub
Private Sub LblOK_Click()
If OK = 1 Then
FrmPO.TxtPOID = TxtPOID.Text
Unload Me
End If
If OK = 2 Then
FrmPOQury.TxtPOID = TxtPOID.Text
Unload Me
End If
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -