📄 frmbill.frm
字号:
_Version = 393216
End
Begin VB.ComboBox Combo1
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Height = 300
ItemData = "frmBill.frx":0015
Left = 7530
List = "frmBill.frx":0022
TabIndex = 10
Text = "壹"
Top = 1740
Width = 525
End
Begin VB.TextBox Text4
Height = 375
Left = 5250
TabIndex = 9
Text = "输入船队名称"
Top = 540
Width = 1455
End
Begin VB.TextBox Text2
BackColor = &H00E0E0E0&
BorderStyle = 0 'None
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 7590
TabIndex = 3
Text = "01"
Top = 5040
Width = 315
End
Begin VB.CommandButton Command2
Caption = "打印"
Height = 345
Left = 7530
TabIndex = 2
Top = 3570
Width = 795
End
Begin VB.CommandButton Command1
Caption = "返回"
Height = 345
Left = 7530
TabIndex = 1
Top = 4080
Width = 795
End
Begin VB.CommandButton Command3
Caption = "刷新"
Height = 345
Left = 7530
TabIndex = 0
Top = 3120
Width = 795
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Left = 3060
TabIndex = 7
Top = 540
Width = 1185
_ExtentX = 2090
_ExtentY = 661
_Version = 393216
Format = 19595265
CurrentDate = 37349
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "99-09-09"
Height = 255
Left = 7290
TabIndex = 29
Top = 150
Width = 705
End
Begin VB.Label Label1
BackColor = &H00E0E0E0&
BackStyle = 0 'Transparent
Caption = "当前日期"
Height = 225
Index = 9
Left = 6480
TabIndex = 28
Top = 150
Width = 795
End
Begin VB.Label Label12
BackColor = &H00008000&
Caption = "流水作业单"
BeginProperty Font
Name = "华文中宋"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000E&
Height = 465
Left = -30
TabIndex = 11
Top = 0
Width = 8445
End
Begin VB.Label Label1
BackColor = &H00E0E0E0&
Caption = "船队名称"
Height = 225
Index = 7
Left = 4380
TabIndex = 8
Top = 600
Width = 795
End
Begin VB.Label Label1
BackColor = &H00E0E0E0&
Caption = "装船日期"
Height = 225
Index = 8
Left = 2250
TabIndex = 6
Top = 630
Width = 795
End
Begin VB.Label Label11
BackColor = &H00E0E0E0&
Caption = "联 存根"
Height = 765
Left = 7560
TabIndex = 5
Top = 2100
Width = 225
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "第 页"
Height = 945
Index = 1
Left = 7620
TabIndex = 4
Top = 4740
Width = 195
End
End
Attribute VB_Name = "frmBill"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
Option Explicit
'##################################################################
'## 过程名称:Command1_Click
'## 参数: 无
'##################################################################
Private Sub Command1_Click()
Unload Me
End Sub
'##################################################################
'## 过程名称:Command2_Click
'## 参数: 无
'##################################################################
Private Sub Command2_Click()
Dim strQueryA As String
strQueryA = "SELECT * FROM TOTAL WHERE 装船日期='" & CStr(DTPicker1.Value) & "'"
With DataEnvironment1.rsCommand1
If .State = adStateOpen Then .Close
.Source = strQueryA
.Open '打开想输出的数据库数据项以便输出
End With
DataReport1.Show
' On Error Resume Next
' Dim pags As Integer
' Dim X As Printer
' ' sj = "2002-01-13"
' pags = MsgBox("现在开始打印", 36)
' If pags = 6 Then
' Printer.Orientation = 1
' Printer.Font.Name = "隶书"
' Printer.Print
' Printer.Print qym; "流水清单"
' Printer.FontSize = 18
' 'printer.FontName = "隶书"
'' Printer.Print Tab(25); dqym
' Printer.Font.Size = 23
' Printer.Print Tab(16); "崔庄煤矿"
' ros = MSHFlexGrid1.Rows
' Cos = MSHFlexGrid1.Cols
' Printer.Font.Size = 12
' Printer.Font.Underline = True
' Printer.Print
' Printer.Print
' Printer.Print Tab(10); Format(DTPicker1.Value, "yyyy年mm月dd日") & "至" & Format(DTPicker2.Value, "yyyy年mm月dd日") & DataCombo1.Text & bh & "生产情况"
' Printer.Print
'' Printer.Print Tab(10); "累计生产" & Label10.Caption & Label11.Caption
' Printer.Font.Size = 12
' Printer.Print Tab(2); String(140, "━")
'
' n = 0
' For i = 0 To ros - 1
' n = n + 1
' For j = 1 To Cos - 1
' Form6.MSHFlexGrid1.Row = i
' Form6.MSHFlexGrid1.Col = j
' ' If Form6.MSHFlexgrid2.Text = "" Then GoTo 20
' Printer.Print Tab(j * 30 - 20); Form6.MSHFlexGrid1.Text;
' Next j
' 'Print #1, ""
' If n >= 40 Then
' Printer.Print Tab(2); String(140, "━")
'
' 'MsgBox "一页没打完,请添加一页新纸"
' Printer.Print
' Printer.Print Tab(55); "****制表时间" & Format(Now, "yyyy年mm月dd日hh时mm分") & "****"
' Printer.Print Tab(30); "第一页"
' Printer.NewPage
' Printer.Font.Name = "隶书"
' Printer.Print
'' Printer.Print qym & "调度室统计"
' Printer.Font.Size = 23
' Printer.Print
' Printer.Print Tab(16); "崔庄煤矿"
' ros = MSHFlexGrid2.Rows
' Cos = MSHFlexGrid2.Cols
' Printer.Font.Size = 12
' n = 0
' Printer.Font.Underline = True
' End If
'20 Printer.Print
' Next i
' Printer.Print Tab(2); String(140, "━")
'
' Printer.Print
' Printer.Print Tab(55); "****制表时间" & Format(Now, "yyyy年mm月dd日hh时mm分") & "****"
'
' Printer.EndDoc
' Printer.Orientation = 1
' End If
End Sub
'##################################################################
'## 过程名称:Command3_Click
'## 参数: 无
'##################################################################
Private Sub Command3_Click()
Dim strQueryA As String
Dim strQueryB As String
Dim STRU As String
STRU = Combo1.Text
Select Case STRU
Case "壹"
Label11.Caption = "联 存根"
Case "贰"
Label11.Caption = "联 船主"
Case "叁"
Label11.Caption = "联 货主"
End Select
strQueryA = "SELECT * FROM TOTAL WHERE 装船日期='" & CStr(DTPicker1.Value) & "'"
strQueryB = "SELECT 装船时间,流水号,船只编号,计划吨位,实装吨位,累计吨位,煤种 FROM TOTAL WHERE 装船日期='" & CStr(DTPicker1.Value) & "'"
Adodc1.RecordSource = strQueryA
Adodc1.Refresh
Adodc2.RecordSource = strQueryB
Adodc2.Refresh
End Sub
'##################################################################
'## 过程名称:Form_Load
'## 参数: 无
'##################################################################
Private Sub Form_Load()
Label4.Caption = Date
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -