📄 frmothersql.frm
字号:
Height = 180
Index = 0
Left = 360
TabIndex = 14
Top = 390
Width = 810
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "仓库:"
Height = 180
Left = 2520
TabIndex = 13
Top = 885
Width = 450
End
End
Begin VB.Frame Frame1
Height = 2955
Left = 0
TabIndex = 0
Top = 0
Width = 7695
Begin VB.CommandButton CmdDep
Caption = "退出(&X)"
Height = 315
Index = 2
Left = 6180
TabIndex = 3
Top = 2280
Width = 1275
End
Begin VB.CommandButton CmdDep
Caption = "列表(&P)"
Height = 315
Index = 1
Left = 6180
TabIndex = 2
Top = 1335
Width = 1275
End
Begin VB.CommandButton CmdDep
Caption = "查询(&F)"
Height = 315
Index = 0
Left = 6180
TabIndex = 1
Top = 420
Width = 1275
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frmOtherSql.frx":12AD
Height = 2655
Left = 60
TabIndex = 4
Top = 180
Width = 5895
_ExtentX = 10398
_ExtentY = 4683
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = -1 'True
HeadLines = 1
RowHeight = 15
TabAcrossSplits = -1 'True
TabAction = 2
WrapCellPointer = -1 'True
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 = 7
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 = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
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 Column04
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 Column05
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 Column06
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
ColumnAllowSizing= 0 'False
ColumnWidth = 854.929
EndProperty
BeginProperty Column01
ColumnAllowSizing= 0 'False
ColumnWidth = 900.284
EndProperty
BeginProperty Column02
ColumnAllowSizing= 0 'False
ColumnWidth = 1005.165
EndProperty
BeginProperty Column03
ColumnAllowSizing= 0 'False
ColumnWidth = 794.835
EndProperty
BeginProperty Column04
ColumnAllowSizing= 0 'False
ColumnWidth = 599.811
EndProperty
BeginProperty Column05
ColumnAllowSizing= 0 'False
ColumnWidth = 900.284
EndProperty
BeginProperty Column06
ColumnAllowSizing= 0 'False
ColumnWidth = 1500.095
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "frmOtherSql"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private rsOtherHB As ADODB.Recordset
Private rsOtherDB As ADODB.Recordset
Private cmOtherHB 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)
rsOtherDB.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 rsOtherDB.RecordCount <> 0 Then
LblStatus.Caption = Product_Status(DataGrid2.Columns(1).Text)
End If
End If
End Sub
Private Sub Form_Load()
Set rsOtherHB = DEaccp.rsCom已过账其它入库
Set rsOtherDB = DEaccp.rsCom已过帐库存
Set cmOtherHB = New ADODB.Command
cmOtherHB.ActiveConnection = DEaccp.Conaccp
cmOtherHB.CommandType = adCmdText
rsOtherDB.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)
rsOtherHB.Close
rsOtherDB.Close
Set rsOtherHB = Nothing
Set rsOtherDB = Nothing
Set cmOtherHB = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -