⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main_rcyw_xsth.frm

📁 商品进销存管理系统 采用VB和SQL2000开发 具有很强的实用性
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Caption         =   "销售单据号"
         ForeColor       =   &H00FF0000&
         Height          =   180
         Index           =   1
         Left            =   120
         TabIndex        =   19
         Top             =   255
         Width           =   990
      End
   End
   Begin VB.Frame Frame1 
      Height          =   630
      Left            =   90
      TabIndex        =   10
      Top             =   870
      Width           =   13350
      Begin VB.TextBox txtDate 
         Enabled         =   0   'False
         Height          =   270
         Left            =   7380
         Locked          =   -1  'True
         TabIndex        =   13
         Top             =   225
         Width           =   2325
      End
      Begin VB.TextBox txtthph 
         Enabled         =   0   'False
         Height          =   270
         Left            =   1080
         Locked          =   -1  'True
         TabIndex        =   12
         Top             =   225
         Width           =   5370
      End
      Begin VB.TextBox txtHandle 
         Height          =   270
         Left            =   10890
         TabIndex        =   11
         Top             =   225
         Width           =   1950
      End
      Begin VB.Label Lbl1 
         BackStyle       =   0  'Transparent
         Caption         =   "退货经手人"
         ForeColor       =   &H00FF0000&
         Height          =   195
         Index           =   3
         Left            =   9825
         TabIndex        =   16
         Top             =   285
         Width           =   990
      End
      Begin VB.Label Lbl1 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "录单日期"
         ForeColor       =   &H00FF0000&
         Height          =   180
         Index           =   2
         Left            =   6570
         TabIndex        =   15
         Top             =   300
         Width           =   885
      End
      Begin VB.Label Lbl1 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "退货单据号"
         ForeColor       =   &H00FF0000&
         Height          =   180
         Index           =   0
         Left            =   75
         TabIndex        =   14
         Top             =   285
         Width           =   990
      End
   End
   Begin MSAdodcLib.Adodc adoXS 
      Height          =   330
      Left            =   -165
      Top             =   3840
      Visible         =   0   'False
      Width           =   2280
      _ExtentX        =   4022
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   $"main_rcyw_xsth.frx":038A
      OLEDBString     =   $"main_rcyw_xsth.frx":0421
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from tb_xsd order by 商品编号"
      Caption         =   "adoXS"
      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.CommandButton cmdQuit 
      BackColor       =   &H00C0C0C0&
      Height          =   360
      Left            =   11955
      Picture         =   "main_rcyw_xsth.frx":04B8
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   5940
      Width           =   1275
   End
   Begin VB.CommandButton cmdCancel 
      BackColor       =   &H00C0C0C0&
      Enabled         =   0   'False
      Height          =   360
      Left            =   10665
      Picture         =   "main_rcyw_xsth.frx":1E88
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   5940
      Width           =   1275
   End
   Begin VB.CommandButton cmdSave 
      BackColor       =   &H00C0C0C0&
      Enabled         =   0   'False
      Height          =   360
      Left            =   9375
      Picture         =   "main_rcyw_xsth.frx":392B
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   5940
      Width           =   1275
   End
   Begin VB.CommandButton cmdRegister 
      BackColor       =   &H00C0C0C0&
      Enabled         =   0   'False
      Height          =   360
      Left            =   8100
      Picture         =   "main_rcyw_xsth.frx":53D0
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   5940
      Width           =   1275
   End
   Begin MSFlexGridLib.MSFlexGrid Flex1 
      Height          =   4065
      Left            =   75
      TabIndex        =   9
      Top             =   1650
      Width           =   13380
      _ExtentX        =   23601
      _ExtentY        =   7170
      _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
      ForeColor       =   &H000000FF&
      Height          =   210
      Left            =   4290
      TabIndex        =   8
      Top             =   6030
      Width           =   1725
   End
   Begin VB.Label lblCount 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H000000FF&
      Height          =   210
      Left            =   2550
      TabIndex        =   7
      Top             =   6030
      Width           =   750
   End
   Begin VB.Label lblBreed 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H000000FF&
      Height          =   210
      Left            =   990
      TabIndex        =   6
      Top             =   6030
      Width           =   645
   End
   Begin VB.Line Line1 
      Index           =   1
      X1              =   60
      X2              =   13425
      Y1              =   6405
      Y2              =   6405
   End
   Begin VB.Line Line1 
      Index           =   0
      X1              =   75
      X2              =   13425
      Y1              =   5820
      Y2              =   5820
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "退货品种:       合计数量:         合计金额:                    元"
      ForeColor       =   &H00FF0000&
      Height          =   225
      Index           =   4
      Left            =   150
      TabIndex        =   4
      Top             =   6030
      Width           =   6330
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      BorderWidth     =   2
      Index           =   0
      X1              =   75
      X2              =   13425
      Y1              =   5835
      Y2              =   5835
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      BorderWidth     =   2
      Index           =   1
      X1              =   45
      X2              =   13425
      Y1              =   6405
      Y2              =   6405
   End
End
Attribute VB_Name = "main_rcyw_xsth"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**模 块 名:main_rcyw_xsth
'**版权说明:吉林省明日科技有限公司享有本软件的所有版权,如果本软件用于商
'**          业用途,必须经过吉林省明日科技有限公司授权。如果提供网上免费
'**          下载,必须经过吉林省明日科技有限公司授权,并保证程序的完整,
'**          不得修改代码、注释和相关内容,否则,我公司将追究其法律责任
'**网    址: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()
    '初始化设置
    txtDate.text = Date
    dgdStock.Visible = False
End Sub
Private Sub Form_Load()
    adoXS.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
    Set dgdStock.DataSource = adoXS
    Ado_Update.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
     '定义Flex1表的总行数、总列数
    Flex1.Rows = 102
    Flex1.Cols = 11
    '设置列标头。
    s$ = "^序号|^商品名称                    |^商品编号  |^商品批号    |^产地           |^规格       |^包装    |^单位   |^数量   |^销售价    |^金额      |^备注       "
    Flex1.FormatString = s$
    '定义Flex1表的列序号
    For i = 1 To 101
        Flex1.TextMatrix(i, 0) = i
    Next i
End Sub
Private Sub txtHandle_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyReturn Then
        Flex1.Enabled = True
        Flex1.Col = 1
        Flex1.Row = 1
        txtInput.Visible = True
        txtInput.SetFocus
    End If
End Sub
Private Sub txtProvider_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyReturn Then txtHandle.SetFocus

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -