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

📄 main_rcyw_sell.frm

📁 医药进销存管理系统 对医药的购买销售和库存进行系统管理
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      TabIndex        =   21
      Text            =   "txtClient"
      Top             =   480
      Width           =   5580
   End
   Begin VB.TextBox txtCess 
      Height          =   270
      Left            =   8235
      TabIndex        =   20
      Text            =   "txtCess"
      Top             =   4335
      Width           =   660
   End
   Begin VB.ComboBox cboPayee 
      Height          =   300
      Left            =   930
      TabIndex        =   19
      Text            =   "cboPayee"
      Top             =   4740
      Width           =   2265
   End
   Begin VB.TextBox txtAgio 
      Height          =   270
      Left            =   6810
      TabIndex        =   17
      Text            =   "txtAgio"
      Top             =   4335
      Width           =   585
   End
   Begin VB.TextBox txtInput 
      BackColor       =   &H00FF8080&
      BorderStyle     =   0  'None
      Height          =   225
      Left            =   345
      TabIndex        =   0
      Text            =   "txtInput"
      Top             =   1290
      Width           =   2085
   End
   Begin VB.TextBox txtNet 
      BackColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   4155
      TabIndex        =   11
      Text            =   "txtNet"
      Top             =   4755
      Width           =   1785
   End
   Begin VB.TextBox txtDate 
      Enabled         =   0   'False
      Height          =   270
      Left            =   7305
      Locked          =   -1  'True
      TabIndex        =   6
      Text            =   "txtDate"
      Top             =   90
      Width           =   2325
   End
   Begin VB.CommandButton cmdQuit 
      BackColor       =   &H00C0C0C0&
      Height          =   360
      Left            =   10245
      Picture         =   "main_rcyw_sell.frx":003B
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   5310
      Width           =   1275
   End
   Begin VB.CommandButton cmdCancel 
      BackColor       =   &H00C0C0C0&
      Enabled         =   0   'False
      Height          =   360
      Left            =   8955
      Picture         =   "main_rcyw_sell.frx":1A0B
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   5310
      Width           =   1275
   End
   Begin VB.CommandButton cmdSave 
      BackColor       =   &H00C0C0C0&
      Enabled         =   0   'False
      Height          =   360
      Left            =   7665
      Picture         =   "main_rcyw_sell.frx":34AE
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   5310
      Width           =   1275
   End
   Begin VB.CommandButton cmdRegister 
      BackColor       =   &H00C0C0C0&
      Height          =   360
      Left            =   6390
      Picture         =   "main_rcyw_sell.frx":4F53
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   5310
      Width           =   1275
   End
   Begin MSFlexGridLib.MSFlexGrid msgSell 
      Height          =   2985
      Left            =   60
      TabIndex        =   1
      Top             =   1005
      Width           =   11625
      _ExtentX        =   20505
      _ExtentY        =   5265
      _Version        =   393216
      Rows            =   1
      Cols            =   1
      FixedRows       =   0
      FixedCols       =   0
      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 lblNotCharge 
      BackStyle       =   0  'Transparent
      Caption         =   "lblNotCharge"
      Height          =   270
      Left            =   6885
      TabIndex        =   27
      Top             =   4755
      Width           =   1530
   End
   Begin VB.Label lblCharge 
      BackStyle       =   0  'Transparent
      Caption         =   "lblCharge"
      Height          =   270
      Left            =   10020
      TabIndex        =   26
      Top             =   4335
      Width           =   1410
   End
   Begin VB.Label lblSum 
      BackStyle       =   0  'Transparent
      Caption         =   "lblSum"
      Height          =   270
      Left            =   4215
      TabIndex        =   25
      Top             =   4305
      Width           =   1725
   End
   Begin VB.Label lblCount 
      BackStyle       =   0  'Transparent
      Caption         =   "lblCount"
      Height          =   270
      Left            =   2490
      TabIndex        =   24
      Top             =   4305
      Width           =   750
   End
   Begin VB.Label lblBreed 
      BackStyle       =   0  'Transparent
      Caption         =   "lblBreed"
      Height          =   270
      Left            =   915
      TabIndex        =   23
      Top             =   4320
      Width           =   645
   End
   Begin VB.Line Line1 
      Index           =   2
      X1              =   105
      X2              =   11640
      Y1              =   855
      Y2              =   855
   End
   Begin VB.Line Line1 
      Index           =   1
      X1              =   105
      X2              =   11640
      Y1              =   5160
      Y2              =   5160
   End
   Begin VB.Line Line1 
      Index           =   0
      X1              =   105
      X2              =   11640
      Y1              =   4170
      Y2              =   4170
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "收款方式:"
      Height          =   240
      Index           =   5
      Left            =   30
      TabIndex        =   18
      Top             =   4785
      Width           =   1020
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "折扣:       折 税率:        % 应收金额:                元"
      Height          =   315
      Index           =   6
      Left            =   6270
      TabIndex        =   16
      Top             =   4380
      Width           =   5445
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "实收金额:                    未收金额:                  元"
      Height          =   255
      Index           =   7
      Left            =   3285
      TabIndex        =   13
      Top             =   4800
      Width           =   5940
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "销售品种:       合计数量:         合计金额:                    元"
      Height          =   225
      Index           =   4
      Left            =   60
      TabIndex        =   12
      Top             =   4365
      Width           =   6885
   End
   Begin VB.Label Lbl1 
      BackColor       =   &H00FFFFFF&
      BackStyle       =   0  'Transparent
      Caption         =   "销售单据号"
      Height          =   180
      Index           =   0
      Left            =   75
      TabIndex        =   10
      Top             =   150
      Width           =   795
   End
   Begin VB.Label Lbl1 
      BackColor       =   &H00FFFFFF&
      BackStyle       =   0  'Transparent
      Caption         =   "录单日期"
      Height          =   180
      Index           =   2
      Left            =   6510
      TabIndex        =   9
      Top             =   120
      Width           =   885
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "客户名称"
      ForeColor       =   &H00000000&
      Height          =   255
      Index           =   1
      Left            =   75
      TabIndex        =   8
      Top             =   525
      Width           =   1215
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "经手人"
      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              =   11640
      Y1              =   4185
      Y2              =   4185
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      BorderWidth     =   2
      Index           =   1
      X1              =   105
      X2              =   11640
      Y1              =   5175
      Y2              =   5175
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      BorderWidth     =   2
      Index           =   2
      X1              =   105
      X2              =   11640
      Y1              =   870
      Y2              =   870
   End
End
Attribute VB_Name = "main_rcyw_sell"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs1 As New ADODB.Recordset     '定义数据集对象
Dim i, j, ClientNumber As Integer
Private Sub Form_Load()
  '定义msgSell表的总行数、总列数
  msgSell.Rows = 102
  msgSell.Cols = 10
  Dim s, y
  '定义msgSell表的宽度和表头
  s = Array("300", "2100", "1200", "1200", "1200", "1200", "600", "1200", "1065", "1200")
  y = Array("xh", "药品名称", "药品编号", "药品批号", "规格", "产地", "单位", "零售价", "数量", "金额")
  msgSell.FixedCols = 1: msgSell.FixedRows = 1
  For i = 0 To 9
      msgSell.ColWidth(i) = s(i)
      msgSell.TextMatrix(0, i) = y(i)
  Next i
  '定义msgSell表的列序号
  For i = 1 To 101
    msgSell.TextMatrix(i, 0) = i
  Next i
  '设置销售日期
  txtDate.Text = Date
  cboPayee.AddItem ("现金")
  cboPayee.AddItem ("转帐支票")
  cboPayee.AddItem ("汇票")
  cboPayee.ListIndex = 0
  txtAgio.Text = "10"
  txtCess.Text = "0"
  dblClient.Visible = False: txtClient.Enabled = False
  dgdStock.Visible = False: txtInput.Visible = False
  MDIMain.StatusBar1.Panels(1).Text = Me.Caption
End Sub
Private Sub txtHandle_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn Then
    msgSell.Enabled = True
    txtInput.Visible = True
    txtInput.SetFocus
  End If
End Sub
Private Sub txtClient_Change()
  dblClient.ReFill
  '查询客户信息
  adoClient.RecordSource = "select * from tb_client where 客户名称 like '" + txtClient.Text + "'+ '%'or 拼音码 like '" + txtClient.Text + "'+ '%'"
  adoClient.Refresh
  If txtClient.Text <> "" And adoClient.Recordset.RecordCount > 0 Then dblClient.Visible = True
End Sub
Private Sub txtClient_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn Then txtHandle.SetFocus
  If KeyCode = vbKeyPageDown Then  '按PageDown键,dblClient显示所有记录
     dblClient.ReFill
     dblClient.Visible = True
     dblClient.SetFocus
  End If
End Sub
Private Sub dgdStock_KeyDown(KeyCode As Integer, Shift As Integer)
 If KeyCode = vbKeyReturn Then
  If adoStock.Recordset.RecordCount > 0 Then    '判断是否有记录
   If adoStock.Recordset.Fields("药品名称") <> "" Then
      '赋值给msgSell表格
      msgSell.TextMatrix(msgSell.Row, 1) = Trim(adoStock.Recordset.Fields("药品名称"))
      msgSell.TextMatrix(msgSell.Row, 2) = Trim(adoStock.Recordset.Fields("药品编号"))
      msgSell.TextMatrix(msgSell.Row, 3) = Trim(adoStock.Recordset.Fields("批号"))

⌨️ 快捷键说明

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