📄 frmshipments.frm
字号:
VERSION 5.00
Object = "{4932CEF1-2CAA-11D2-A165-0060081C43D9}#2.0#0"; "Actbar2.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmShipments
Caption = "出貨通知書"
ClientHeight = 9105
ClientLeft = 60
ClientTop = 450
ClientWidth = 14565
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 9105
ScaleWidth = 14565
Begin ActiveBar2LibraryCtl.ActiveBar2 ActiveBar21
Height = 14955
Left = 60
TabIndex = 0
Top = 0
Width = 19080
_LayoutVersion = 1
_ExtentX = 33655
_ExtentY = 26379
_DataPath = ""
Bands = "frmShipments.frx":0000
Begin VB.Frame Frame1
Height = 8475
Left = 0
TabIndex = 1
Top = 540
Width = 15015
Begin VB.PictureBox fraFind
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 2235
Left = 120
ScaleHeight = 2205
ScaleWidth = 9705
TabIndex = 3
Top = 240
Visible = 0 'False
Width = 9735
Begin VB.CommandButton CmdCustomer
Caption = "..."
Height = 255
Left = 8700
TabIndex = 22
Top = 660
Width = 435
End
Begin VB.TextBox txtCustomerAllName
BackColor = &H00C0FFC0&
Height = 315
Left = 6660
TabIndex = 21
Top = 660
Width = 1935
End
Begin VB.ComboBox txtNoticesNo
Height = 315
Left = 2160
TabIndex = 20
Top = 180
Width = 1995
End
Begin VB.ComboBox txtFactoryName
BackColor = &H00C0FFC0&
Height = 315
Left = 2160
TabIndex = 19
Top = 660
Width = 1995
End
Begin VB.ComboBox txtPortName
BackColor = &H00C0FFC0&
Height = 315
Left = 6660
TabIndex = 18
Top = 180
Width = 1935
End
Begin VB.CheckBox chkFounddate
BackColor = &H80000005&
Caption = "Check1"
Height = 255
Left = 4320
TabIndex = 7
Top = 1140
Width = 195
End
Begin VB.CommandButton cmdCancel
Caption = "取消 &C"
Height = 315
Left = 6840
TabIndex = 6
Top = 1680
Width = 855
End
Begin VB.CommandButton cmdFind
Caption = "查询 &F"
Height = 315
Left = 5220
TabIndex = 5
Top = 1680
Width = 855
End
Begin VB.CommandButton cmdFindAll
Caption = "全部 &A"
Height = 315
Left = 3540
TabIndex = 4
Top = 1680
Width = 855
End
Begin MSComCtl2.DTPicker EndFounddate
Height = 315
Left = 6660
TabIndex = 8
Top = 1140
Width = 1935
_ExtentX = 3413
_ExtentY = 556
_Version = 393216
Format = 53149697
CurrentDate = 39588
End
Begin MSComCtl2.DTPicker Founddate
Height = 315
Left = 2160
TabIndex = 9
Top = 1140
Width = 1995
_ExtentX = 3519
_ExtentY = 556
_Version = 393216
Format = 53149697
CurrentDate = 39587
End
Begin VB.Label Label13
BackColor = &H80000005&
Caption = "至"
Height = 255
Left = 5640
TabIndex = 17
Top = 1140
Width = 255
End
Begin VB.Label Label6
BackColor = &H80000005&
Caption = "客人"
Height = 255
Left = 5580
TabIndex = 16
Top = 660
Width = 915
End
Begin VB.Label Label5
BackColor = &H80000005&
Caption = "目的地"
Height = 315
Left = 5580
TabIndex = 15
Top = 240
Width = 915
End
Begin VB.Label Label4
BackColor = &H80000005&
Caption = "出货日期"
Height = 315
Left = 1020
TabIndex = 14
Top = 1140
Width = 915
End
Begin VB.Label Label3
BackColor = &H80000005&
Caption = "出貨編號"
Height = 255
Index = 4
Left = 1020
TabIndex = 13
Top = 240
Width = 1035
End
Begin VB.Label Label11
BackColor = &H80000005&
Caption = "出貨工廠"
Height = 255
Left = 1020
TabIndex = 12
Top = 660
Width = 1035
End
Begin VB.Image Image1
Height = 480
Left = 360
Picture = "frmShipments.frx":355A
Top = 480
Width = 480
End
Begin VB.Label Label12
BackColor = &H80000005&
Caption = "模糊查询项"
Height = 255
Left = 2100
TabIndex = 11
Top = 1680
Width = 915
End
Begin VB.Label Label15
BackColor = &H00C0FFC0&
Height = 195
Left = 1440
TabIndex = 10
Top = 1680
Width = 375
End
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHF1
Height = 8115
Left = 120
TabIndex = 2
Top = 240
Width = 14775
_ExtentX = 26061
_ExtentY = 14314
_Version = 393216
AllowUserResizing= 1
_NumberOfBands = 1
_Band(0).Cols = 2
End
End
End
End
Attribute VB_Name = "frmShipments"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim lngrow As Long
Private Sub ActiveBar21_ToolClick(ByVal Tool As ActiveBar2LibraryCtl.Tool)
Select Case Tool.Name
Case "cmdAdd":
frmShipmentsInfo.newItem = True
frmShipmentsInfo.FillMshf1 ("select * from tShipmentsNoticesSub where NoticesNo=''")
frmShipmentsInfo.Show vbModal
Case "cmdDel":
DelOperatorInf
Case "cmdCancel":
Unload Me
Case "cmdEdit":
EditOperatorInf
Case "cmdFind"
fraFind.Visible = True
Case "cmdInvoice"
Call InitInvoice
Case "cmdRefurbish":
FillMshf1 ("select * from vShipmentsNotices")
Case "cmdExport":
Dim strFile As String
frmMain.CDFile.ShowOpen
strFile = frmMain.CDFile.FileName
If strFile = "" Then Exit Sub
ExportExcel MSHF1, strFile
End Select
End Sub
Private Sub InitInvoice()
If lngrow < 2 Or Trim$(MSHF1.TextMatrix(lngrow, 1)) = "" Then
MsgBox "请选择一个記錄!", vbExclamation + vbOKOnly, "提示"
Exit Sub
Else
Dim rs As New ADODB.Recordset
rs.Open "select * from vShipmentsInvoicesInfo where CustomerNo ='" & MSHF1.TextMatrix(lngrow, 16) & "'", Cn, 1, 3
With frmShipmentsInvoiceInfo
.txtCustomerNo = NullValue(rs.Fields!CustomerNo)
.txtCustomer = NullValue(rs.Fields!CustomerAllName)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -