📄 frmsellsql.frm
字号:
_ExtentX = 12091
_ExtentY = 3625
_Version = 393216
AllowUpdate = 0 'False
BackColor = 16777215
Enabled = -1 'True
ColumnHeaders = -1 'True
HeadLines = 1
RowHeight = 17
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
DataMember = "Com已过帐出库"
ColumnCount = 5
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
BeginProperty Column02
DataField = "数量"
Caption = "数量"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 1
Format = "#,##0.0000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "单价"
Caption = "单价"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 1
Format = "0.00"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "总额"
Caption = "金额"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 1
Format = "#,##0.00"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnAllowSizing= 0 'False
Object.Visible = 0 'False
ColumnWidth = 1275.024
EndProperty
BeginProperty Column01
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 1184.882
EndProperty
BeginProperty Column02
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 1800
EndProperty
BeginProperty Column03
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 1500.095
EndProperty
BeginProperty Column04
Alignment = 1
ColumnAllowSizing= 0 'False
ColumnWidth = 1800
EndProperty
EndProperty
End
Begin MSDataListLib.DataCombo DCboSup
Bindings = "frmSellSql.frx":12DF
DataField = "提供者"
DataMember = "Com已过帐销售出库"
DataSource = "DEaccp"
Height = 330
Left = 1020
TabIndex = 12
Top = 720
Width = 1695
_ExtentX = 2990
_ExtentY = 582
_Version = 393216
Enabled = 0 'False
MatchEntry = -1 'True
Appearance = 0
ListField = "supplier_name"
BoundColumn = "supplier_id"
Text = ""
Object.DataMember = "ComSupplier"
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "客户:"
Height = 180
Left = 2880
TabIndex = 20
Top = 840
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "单据类型:"
Height = 180
Left = 120
TabIndex = 18
Top = 330
Width = 810
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "备注:"
Height = 180
Index = 7
Left = 4800
TabIndex = 17
Top = 825
Width = 450
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "操作员:"
Height = 180
Index = 4
Left = 5940
TabIndex = 16
Top = 345
Width = 630
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "提供者:"
Height = 180
Index = 3
Left = 300
TabIndex = 15
Top = 750
Width = 630
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "日期:"
Height = 180
Index = 1
Left = 4320
TabIndex = 14
Top = 345
Width = 450
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "单据编号:"
Height = 180
Index = 0
Left = 2520
TabIndex = 13
Top = 330
Width = 810
End
Begin VB.Label LblStatus
BorderStyle = 1 'Fixed Single
ForeColor = &H00FF0000&
Height = 255
Left = 420
TabIndex = 2
Top = 3480
Width = 6855
End
End
End
Attribute VB_Name = "frmSellSql"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private rsSellHB As ADODB.Recordset
Private rsSellDB As ADODB.Recordset
Private cmSellHB As ADODB.Command
Private strMaxNum As String
Private Sub CmdDep_Click(Index As Integer)
Dim intAnswer As Integer
Dim strsql As String
Select Case Index
Case 0
' frmSQL.intNumField = 6
' frmSQL.Show vbModal
' Select Case frmSQL.intNumField
' Case -1
' rsPsHB.Filter = Me.DataGrid1.Columns.Item(0).DataField & _
' "<>''"
' rsOrdDB.Filter = "入库编号='" & Me.txtps_id.Text & "'"
' Case -2
' Case Else
' rsPsHB.Filter = Me.DataGrid1.Columns.Item(frmSQL.intNumField).DataField & _
' " like '*" & frmSQL.strSqlField & "*'"
' rsOrdDB.Filter = "入库编号='" & Me.txtps_id.Text & "'"
' End Select
Case 1
Case 2
Unload Me
End Select
End Sub
Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
rsSellDB.Filter = "出库编号 ='" & Me.txtps_id.Text & "'"
End Sub
Private Sub DataGrid2_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
If CmdDep(0).Enabled = True Then
If rsSellDB.RecordCount <> 0 Then
LblStatus.Caption = Product_Status(DataGrid2.Columns(1).Text)
End If
End If
End Sub
Private Sub Form_Load()
Set rsSellHB = DEaccp.rsCom已过帐销售出库
Set rsSellDB = DEaccp.rsCom已过帐出库
Set cmSellHB = New ADODB.Command
cmSellHB.ActiveConnection = DEaccp.Conaccp
cmSellHB.CommandType = adCmdText
rsSellDB.Filter = "出库编号 ='" & Me.txtps_id.Text & "'"
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If CmdDep(2).Enabled = False Then
MsgBox "请先退出编辑状态后再退出该程序!", , "提示"
Cancel = True
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
'rsSellHB.Close
rsSellDB.Close
Set rsSellHB = Nothing
Set rsSellDB = Nothing
Set cmSellHB = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -