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

📄 main_rcyw_warehouse.frm

📁 医药进销存管理系统 对医药的购买销售和库存进行系统管理
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      TabIndex        =   15
      Text            =   "txtNote"
      Top             =   90
      Width           =   5370
   End
   Begin VB.TextBox txtProvider 
      Height          =   270
      Left            =   1065
      TabIndex        =   14
      Text            =   "txtProvider"
      Top             =   480
      Width           =   5370
   End
   Begin VB.TextBox txtInput 
      BackColor       =   &H00FF8080&
      BorderStyle     =   0  'None
      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
      Text            =   "txtDate"
      Top             =   90
      Width           =   2325
   End
   Begin VB.CommandButton cmdQuit 
      BackColor       =   &H00C0C0C0&
      Height          =   360
      Left            =   10560
      Picture         =   "main_rcyw_warehouse.frx":0040
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   4305
      Width           =   1275
   End
   Begin VB.CommandButton cmdCancel 
      BackColor       =   &H00C0C0C0&
      Enabled         =   0   'False
      Height          =   360
      Left            =   9270
      Picture         =   "main_rcyw_warehouse.frx":1A10
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   4305
      Width           =   1275
   End
   Begin VB.CommandButton cmdSave 
      BackColor       =   &H00C0C0C0&
      Enabled         =   0   'False
      Height          =   360
      Left            =   7980
      Picture         =   "main_rcyw_warehouse.frx":34B3
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   4305
      Width           =   1275
   End
   Begin VB.CommandButton cmdRegister 
      BackColor       =   &H00C0C0C0&
      Height          =   360
      Left            =   6705
      Picture         =   "main_rcyw_warehouse.frx":4F58
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   4305
      Width           =   1275
   End
   Begin MSFlexGridLib.MSFlexGrid msgWareHouse 
      Height          =   2985
      Left            =   60
      TabIndex        =   1
      Top             =   1005
      Width           =   12465
      _ExtentX        =   21987
      _ExtentY        =   5265
      _Version        =   393216
      Rows            =   1
      Cols            =   0
      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 lblSum 
      BackStyle       =   0  'Transparent
      Caption         =   "lblSum"
      Height          =   270
      Left            =   4320
      TabIndex        =   18
      Top             =   4320
      Width           =   1725
   End
   Begin VB.Label lblCount 
      BackStyle       =   0  'Transparent
      Caption         =   "lblCount"
      Height          =   270
      Left            =   2595
      TabIndex        =   17
      Top             =   4320
      Width           =   750
   End
   Begin VB.Label lblBreed 
      BackStyle       =   0  'Transparent
      Caption         =   "lblBreed"
      Height          =   270
      Left            =   1020
      TabIndex        =   16
      Top             =   4335
      Width           =   645
   End
   Begin VB.Line Line1 
      Index           =   2
      X1              =   105
      X2              =   12510
      Y1              =   855
      Y2              =   855
   End
   Begin VB.Line Line1 
      Index           =   1
      X1              =   90
      X2              =   12510
      Y1              =   4755
      Y2              =   4755
   End
   Begin VB.Line Line1 
      Index           =   0
      X1              =   105
      X2              =   12510
      Y1              =   4170
      Y2              =   4170
   End
   Begin VB.Label Lbl1 
      BackStyle       =   0  'Transparent
      Caption         =   "入库品种:       合计数量:         合计金额:                    元"
      Height          =   225
      Index           =   4
      Left            =   180
      TabIndex        =   11
      Top             =   4380
      Width           =   6330
   End
   Begin VB.Label Lbl1 
      BackColor       =   &H00FFFFFF&
      BackStyle       =   0  'Transparent
      Caption         =   "入库单据号"
      Height          =   180
      Index           =   0
      Left            =   75
      TabIndex        =   10
      Top             =   150
      Width           =   990
   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              =   12510
      Y1              =   4185
      Y2              =   4185
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      BorderWidth     =   2
      Index           =   1
      X1              =   90
      X2              =   12510
      Y1              =   4755
      Y2              =   4755
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      BorderWidth     =   2
      Index           =   2
      X1              =   105
      X2              =   12510
      Y1              =   870
      Y2              =   870
   End
End
Attribute VB_Name = "main_rcyw_warehouse"
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 As Integer
Dim ProviderNumber As Integer

Private Sub cmdQuit_Click()
  Unload Me
End Sub

Private Sub Form_Activate()
  '初始化设置
  txtDate.Text = Date
  dblProvider.Visible = False
  txtProvider.Enabled = False
  dgdStock.Visible = False
  MDIMain.StatusBar1.Panels(1).Text = Me.Caption
End Sub
Private Sub Form_Load()
  '定义msgWareHouse表的总行数、总列数
  msgWareHouse.Rows = 102
  msgWareHouse.Cols = 13
  '定义msgWareHouse表的宽度
  msgWareHouse.ColWidth(0) = 12 * 25 * 1
  msgWareHouse.ColWidth(1) = 12 * 25 * 5
  msgWareHouse.ColWidth(2) = 12 * 25 * 3
  msgWareHouse.ColWidth(3) = 12 * 25 * 3
  msgWareHouse.ColWidth(4) = 12 * 25 * 2.5
  msgWareHouse.ColWidth(5) = 12 * 25 * 4
  msgWareHouse.ColWidth(6) = 12 * 25 * 2
  msgWareHouse.ColWidth(7) = 12 * 25 * 3
  msgWareHouse.ColWidth(8) = 12 * 25 * 3
  msgWareHouse.ColWidth(9) = 12 * 25 * 4
  msgWareHouse.ColWidth(10) = 12 * 25 * 3
  msgWareHouse.ColWidth(11) = 12 * 25 * 3
  msgWareHouse.ColWidth(12) = 12 * 25 * 4
  '设置固定行、列
  msgWareHouse.FixedRows = 1
  msgWareHouse.FixedCols = 1
  '定义msgWareHouse表的表头
  msgWareHouse.TextMatrix(0, 0) = "xh"
  msgWareHouse.TextMatrix(0, 1) = "药品名称"
  msgWareHouse.TextMatrix(0, 2) = "药品编号"
  msgWareHouse.TextMatrix(0, 3) = "药品批号"
  msgWareHouse.TextMatrix(0, 4) = "规格"
  msgWareHouse.TextMatrix(0, 5) = "产地"
  msgWareHouse.TextMatrix(0, 6) = "单位"
  msgWareHouse.TextMatrix(0, 7) = "进货价"
  msgWareHouse.TextMatrix(0, 8) = "数量"
  msgWareHouse.TextMatrix(0, 9) = "金额"
  msgWareHouse.TextMatrix(0, 10) = "批发价"
  msgWareHouse.TextMatrix(0, 11) = "零售价"
  msgWareHouse.TextMatrix(0, 12) = "有效期至"
  '定义msgWareHouse表的列序号
  For i = 1 To 101
    msgWareHouse.TextMatrix(i, 0) = i
  Next i
End Sub
Private Sub txtHandle_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn Then
    msgWareHouse.Enabled = True
    txtInput.Visible = True
    txtInput.SetFocus
  End If
End Sub
Private Sub txtProvider_Change()
  dblProvider.ReFill
  '查询客户信息
  adoProvider.RecordSource = "select * from tb_provider where 供货商名称 like '" + txtProvider.Text + "'+ '%'or 拼音码 like '" + txtProvider.Text + "'+ '%'"
  adoProvider.Refresh
  If txtProvider.Text <> "" And adoProvider.Recordset.RecordCount > 0 Then dblProvider.Visible = True
End Sub
Private Sub txtProvider_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = vbKeyReturn Then txtHandle.SetFocus
  If KeyCode = vbKeyPageDown Then  '按PageDown键,dblProvider显示所有记录
     dblProvider.ReFill
     dblProvider.Visible = True
     dblProvider.SetFocus
  End If
End Sub
Private Sub dgdStock_KeyDown(KeyCode As Integer, Shift As Integer)
 If KeyCode = vbKeyReturn Then
  If adoMedicine.Recordset.RecordCount > 0 Then    '判断是否有记录
   If adoMedicine.Recordset.Fields("药品名称") <> "" Then
      '赋值给msgWareHouse表格
      If adoMedicine.Recordset.Fields("药品名称") <> "" Then msgWareHouse.TextMatrix(msgWareHouse.Row, 1) = Trim(adoMedicine.Recordset.Fields("药品名称"))
      If adoMedicine.Recordset.Fields("药品编号") <> "" Then msgWareHouse.TextMatrix(msgWareHouse.Row, 2) = Trim(adoMedicine.Recordset.Fields("药品编号"))

⌨️ 快捷键说明

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