📄 main_rcyw_xs.frm
字号:
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_medicine.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_medicine.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "tb_kc"
Caption = "adoMedicine"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox txtHandle
Height = 270
Left = 7305
TabIndex = 19
Top = 435
Width = 2325
End
Begin VB.TextBox txtNote
Enabled = 0 'False
Height = 270
Left = 1065
Locked = -1 'True
TabIndex = 15
Top = 90
Width = 5370
End
Begin VB.TextBox txtProvider
Height = 270
Left = 1065
TabIndex = 14
Top = 480
Width = 5370
End
Begin VB.TextBox txtInput
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
ForeColor = &H00000000&
Height = 225
Left = 345
TabIndex = 0
Text = "txtInput"
Top = 1290
Visible = 0 'False
Width = 2085
End
Begin VB.TextBox txtDate
Enabled = 0 'False
Height = 270
Left = 7305
Locked = -1 'True
TabIndex = 6
Top = 90
Width = 2325
End
Begin VB.CommandButton cmdQuit
BackColor = &H00C0C0C0&
Height = 360
Left = 10560
Picture = "main_rcyw_xs.frx":038A
Style = 1 'Graphical
TabIndex = 5
Top = 6300
Width = 1275
End
Begin VB.CommandButton cmdCancel
BackColor = &H00C0C0C0&
Enabled = 0 'False
Height = 360
Left = 9270
Picture = "main_rcyw_xs.frx":1D5A
Style = 1 'Graphical
TabIndex = 4
Top = 6300
Width = 1275
End
Begin VB.CommandButton cmdSave
BackColor = &H00C0C0C0&
Enabled = 0 'False
Height = 360
Left = 7980
Picture = "main_rcyw_xs.frx":37FD
Style = 1 'Graphical
TabIndex = 3
Top = 6300
Width = 1275
End
Begin VB.CommandButton cmdRegister
BackColor = &H00C0C0C0&
Height = 360
Left = 6705
Picture = "main_rcyw_xs.frx":52A2
Style = 1 'Graphical
TabIndex = 2
Top = 6300
Width = 1275
End
Begin MSFlexGridLib.MSFlexGrid Flex1
Height = 5085
Left = 105
TabIndex = 1
Top = 1005
Width = 13380
_ExtentX = 23601
_ExtentY = 8969
_Version = 393216
BackColor = 16777215
BackColorFixed = 12632256
ForeColorSel = 16777215
BackColorBkg = 16777215
GridColorFixed = 16777215
Enabled = 0 'False
ScrollBars = 2
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label lblSum
BackStyle = 0 'Transparent
Caption = "lblSum"
ForeColor = &H000000FF&
Height = 210
Left = 4320
TabIndex = 18
Top = 6375
Width = 1725
End
Begin VB.Label lblCount
BackStyle = 0 'Transparent
Caption = "lblCount"
ForeColor = &H000000FF&
Height = 210
Left = 2595
TabIndex = 17
Top = 6375
Width = 750
End
Begin VB.Label lblBreed
BackStyle = 0 'Transparent
Caption = "lblBreed"
ForeColor = &H000000FF&
Height = 210
Left = 1020
TabIndex = 16
Top = 6375
Width = 645
End
Begin VB.Line Line1
Index = 2
X1 = 105
X2 = 13455
Y1 = 855
Y2 = 855
End
Begin VB.Line Line1
Index = 1
X1 = 90
X2 = 13455
Y1 = 6750
Y2 = 6750
End
Begin VB.Line Line1
Index = 0
X1 = 105
X2 = 13455
Y1 = 6165
Y2 = 6165
End
Begin VB.Label Lbl1
BackStyle = 0 'Transparent
Caption = "销售品种: 合计数量: 合计金额: 元"
ForeColor = &H00FF0000&
Height = 225
Index = 4
Left = 180
TabIndex = 11
Top = 6375
Width = 6330
End
Begin VB.Label Lbl1
BackColor = &H00FFFFFF&
BackStyle = 0 'Transparent
Caption = "销售单据号"
ForeColor = &H00FF0000&
Height = 180
Index = 0
Left = 75
TabIndex = 10
Top = 150
Width = 990
End
Begin VB.Label Lbl1
BackColor = &H00FFFFFF&
BackStyle = 0 'Transparent
Caption = "录单日期"
ForeColor = &H00FF0000&
Height = 180
Index = 2
Left = 6510
TabIndex = 9
Top = 120
Width = 885
End
Begin VB.Label Lbl1
BackStyle = 0 'Transparent
Caption = "客户名称"
ForeColor = &H00FF0000&
Height = 255
Index = 1
Left = 75
TabIndex = 8
Top = 525
Width = 1215
End
Begin VB.Label Lbl1
BackStyle = 0 'Transparent
Caption = "经手人"
ForeColor = &H00FF0000&
Height = 315
Index = 3
Left = 6540
TabIndex = 7
Top = 525
Width = 720
End
Begin VB.Line Line2
BorderColor = &H80000005&
BorderWidth = 2
Index = 0
X1 = 105
X2 = 13455
Y1 = 6180
Y2 = 6180
End
Begin VB.Line Line2
BorderColor = &H80000005&
BorderWidth = 2
Index = 1
X1 = 75
X2 = 13455
Y1 = 6750
Y2 = 6750
End
Begin VB.Line Line2
BorderColor = &H80000005&
BorderWidth = 2
Index = 2
X1 = 105
X2 = 13455
Y1 = 870
Y2 = 870
End
End
Attribute VB_Name = "main_rcyw_xs"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**模 块 名:main_rcyw_xs
'**版权说明:吉林省明日科技有限公司享有本软件的所有版权,如果本软件用于商
'** 业用途,必须经过吉林省明日科技有限公司授权。如果提供网上免费
'** 下载,必须经过吉林省明日科技有限公司授权,并保证程序的完整,
'** 不得修改代码、注释和相关内容,否则,我公司将追究其法律责任
'**网 址:www.mingrisoft.com 价值无限,服务无限
'**电 话:(0431)84978981,84978982
'**创 建 人:明日科技
'**日 期:2007-10-31
'**修 改 人:MRLBB
'**日 期:2007-10-31
'**描 述:
'*************************************************************************
Dim rs1 As New ADODB.Recordset '定义数据集对象
Dim i, j As Integer
Dim ProviderNumber As Integer
Private Sub Form_Activate()
adoClient.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
adoMedicine.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
Set dgdStock.DataSource = adoMedicine
Set dblClient.RowSource = adoClient
'初始化设置
txtDate.text = Date
dblClient.Visible = False
txtProvider.Enabled = False
dgdStock.Visible = False
End Sub
Private Sub Form_Load()
'定义Flex1表的总行数、总列数
Flex1.Rows = 102
Flex1.Cols = 11
'设置列标头。
s$ = "^序号|^商品名称 |^商品编号 |^商品条码 |^产地 |^规格 |^包装 |^单位 |^数量 |^销售价 |^金额 |^备注 "
Flex1.FormatString = s$
'定义Flex1表的列序号
For i = 1 To 101
Flex1.TextMatrix(i, 0) = i
Next i
Adodc1.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
End Sub
Private Sub txtHandle_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
Flex1.Enabled = True
Flex1.Col = 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -