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

📄 frmrkwz.frm

📁 很好用的通用库存管理程序
💻 FRM
字号:
VERSION 5.00
Object = "{D959C709-8613-11D1-9840-002078110E7D}#1.0#0"; "as97Popup.ocx"
Begin VB.Form Frmrkwz 
   Caption         =   "Form3"
   ClientHeight    =   6510
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10245
   LinkTopic       =   "Form3"
   ScaleHeight     =   6510
   ScaleWidth      =   10245
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   3840
      TabIndex        =   10
      Top             =   5280
      Width           =   1455
   End
   Begin VB.ComboBox Cmb4 
      Height          =   300
      Left            =   1200
      TabIndex        =   9
      Top             =   5400
      Width           =   1335
   End
   Begin VB.ComboBox Cmb3 
      Height          =   300
      Left            =   1560
      TabIndex        =   8
      Top             =   960
      Width           =   2295
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关 闭"
      Height          =   375
      Left            =   8640
      TabIndex        =   1
      Top             =   5400
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添 加"
      Height          =   375
      Left            =   5880
      TabIndex        =   0
      Top             =   5400
      Width           =   855
   End
   Begin as97Popup.asPopup asPopup4 
      Height          =   615
      Left            =   7320
      Top             =   5280
      Width           =   1035
      _ExtentX        =   1826
      _ExtentY        =   1085
      CustomPicture   =   "Frmrkwz.frx":0000
      MouseOverPicture=   "Frmrkwz.frx":0CDA
      MouseDownPicture=   "Frmrkwz.frx":19B4
      Caption         =   "打印"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      UseFrame        =   0   'False
      ScaleWidth      =   69
      ScaleMode       =   0
      BackStyle       =   0
   End
   Begin VB.Label Label5 
      Caption         =   "库管员:"
      Height          =   255
      Left            =   2880
      TabIndex        =   7
      Top             =   5400
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "采购员:"
      Height          =   255
      Left            =   240
      TabIndex        =   6
      Top             =   5400
      Width           =   855
   End
   Begin VB.Line Line2 
      BorderColor     =   &H00FFC0C0&
      BorderWidth     =   3
      X1              =   0
      X2              =   10080
      Y1              =   5160
      Y2              =   5160
   End
   Begin VB.Label LabNmae 
      Caption         =   "临沂市长安物贸有限公司入库单"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   375
      Left            =   2880
      TabIndex        =   5
      Top             =   240
      Width           =   3615
   End
   Begin VB.Label Labdate 
      Caption         =   "日期:"
      Height          =   255
      Left            =   7320
      TabIndex        =   4
      Top             =   960
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "日期:"
      Height          =   255
      Left            =   6480
      TabIndex        =   3
      Top             =   960
      Width           =   615
   End
   Begin VB.Label Label4 
      Caption         =   "供应商名称:"
      Height          =   255
      Left            =   240
      TabIndex        =   2
      Top             =   960
      Width           =   1095
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FFC0C0&
      BorderWidth     =   3
      X1              =   0
      X2              =   10080
      Y1              =   1440
      Y2              =   1440
   End
End
Attribute VB_Name = "Frmrkwz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Bill As String
Private Sub Make_Bill()
 sSql = "SELECT max(入库单号) FROM 入库表单"
     Rs.Open sSql, db, adOpenKeyset, adLockOptimistic, adCmdText
   ' Rs.Open sSql, db, adOpenStatic, adLockOptimistic
     Bill = Rs.Fields(0)
    If Rs.EOF Then '数据库中没有任何单据
       Bill = "I" & Year(Date) & Format(Month(Date), "00") & "001"
      Else
       If CInt(Mid(Bill, 2, 4)) <> Year(Date) Or CInt(Mid(Bill, 6, 2)) <> Month(Date) Then
        Bill = "I" & Year(Date) & Format(Month(Date), "00") & "001"
       Else
        Bill = Mid(Bill, 1, 7) & Format(Right(Bill, 2) + 1, "000")
       End If
    End If
    Rs.Close
    sSql = "SELECT * FROM 入库表单"
     Rs.Open sSql, db, adOpenKeyset, adLockOptimistic, adCmdText
   Rs.AddNew
   Rs!入库单号 = Bill
   Rs!操作员 = Cmb2.Text
   Rs!出库时间 = Text1.Text
   Rs.Update
   Rs.Close
End Sub
    
Private Sub Form_Load()

End Sub

⌨️ 快捷键说明

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