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

📄 frmotheredit.frm

📁 一个简单但功能强大的进货系统,同样适合用于毕业论文的设计
💻 FRM
📖 第 1 页 / 共 3 页
字号:
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column01 
               DataField       =   "商品编号"
               Caption         =   "商品编号"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   0
                  Format          =   ""
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   0
               EndProperty
            EndProperty
            BeginProperty Column02 
               DataField       =   "数量"
               Caption         =   "数量"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   1
                  Format          =   "#,##0.0000"
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   1
               EndProperty
            EndProperty
            BeginProperty Column03 
               DataField       =   "单价"
               Caption         =   "单价"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   1
                  Format          =   "0.00"
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   1
               EndProperty
            EndProperty
            BeginProperty Column04 
               DataField       =   "总额"
               Caption         =   "总额"
               BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
                  Type            =   1
                  Format          =   "#,##0.00"
                  HaveTrueFalseNull=   0
                  FirstDayOfWeek  =   0
                  FirstWeekOfYear =   0
                  LCID            =   2052
                  SubFormatType   =   1
               EndProperty
            EndProperty
            SplitCount      =   1
            BeginProperty Split0 
               BeginProperty Column00 
                  ColumnAllowSizing=   0   'False
                  Object.Visible         =   0   'False
               EndProperty
               BeginProperty Column01 
                  Alignment       =   1
                  ColumnAllowSizing=   0   'False
                  ColumnWidth     =   1184.882
               EndProperty
               BeginProperty Column02 
                  ColumnAllowSizing=   0   'False
                  Object.Visible         =   -1  'True
               EndProperty
               BeginProperty Column03 
                  Alignment       =   1
                  ColumnAllowSizing=   0   'False
                  ColumnWidth     =   1800
               EndProperty
               BeginProperty Column04 
                  Alignment       =   1
                  ColumnAllowSizing=   0   'False
                  ColumnWidth     =   1500.095
               EndProperty
            EndProperty
         End
         Begin VB.Label LblStatus 
            BorderStyle     =   1  'Fixed Single
            ForeColor       =   &H000000FF&
            Height          =   315
            Left            =   240
            TabIndex        =   15
            Top             =   2040
            Width           =   6855
         End
      End
      Begin VB.CommandButton CmdAct 
         Caption         =   "删除商品"
         Enabled         =   0   'False
         Height          =   315
         Index           =   3
         Left            =   7680
         TabIndex        =   11
         Top             =   3960
         Width           =   1275
      End
      Begin VB.CommandButton CmdAct 
         Caption         =   "增加商品"
         Enabled         =   0   'False
         Height          =   315
         Index           =   2
         Left            =   5640
         TabIndex        =   10
         Top             =   3960
         Width           =   1275
      End
      Begin VB.CommandButton CmdAct 
         Caption         =   "恢复(&U)"
         Enabled         =   0   'False
         Height          =   315
         Index           =   1
         Left            =   3600
         TabIndex        =   9
         Top             =   3960
         Width           =   1275
      End
      Begin VB.CommandButton CmdAct 
         Caption         =   "保存(&S)"
         Enabled         =   0   'False
         Height          =   315
         Index           =   0
         Left            =   1560
         TabIndex        =   8
         Top             =   3960
         Width           =   1275
      End
      Begin VB.TextBox txtOther_id 
         Appearance      =   0  'Flat
         DataField       =   "入库编号"
         DataMember      =   "ComOtherEdit"
         DataSource      =   "DEaccp"
         Height          =   300
         Left            =   3840
         TabIndex        =   1
         Top             =   285
         Width           =   1455
      End
      Begin VB.TextBox txtname 
         Appearance      =   0  'Flat
         DataField       =   "操作员名称"
         DataMember      =   "ComOtherEdit"
         DataSource      =   "DEaccp"
         Enabled         =   0   'False
         Height          =   300
         Left            =   8520
         TabIndex        =   3
         Top             =   285
         Width           =   1335
      End
      Begin VB.TextBox txtinfo 
         Appearance      =   0  'Flat
         DataField       =   "备注"
         DataMember      =   "ComOtherEdit"
         DataSource      =   "DEaccp"
         Height          =   400
         Left            =   6600
         MaxLength       =   100
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   6
         Top             =   720
         Width           =   3255
      End
      Begin MSDataListLib.DataCombo DCstorage 
         Bindings        =   "frmOtherEdit.frx":12BE
         DataField       =   "仓库编号"
         DataMember      =   "ComOtherEdit"
         DataSource      =   "DEaccp"
         Height          =   330
         Left            =   3840
         TabIndex        =   5
         Top             =   720
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   582
         _Version        =   393216
         Appearance      =   0
         Style           =   2
         ListField       =   "仓库名称"
         BoundColumn     =   "仓库编号"
         Text            =   ""
         Object.DataMember      =   "Com仓库表"
      End
      Begin MSDataListLib.DataCombo DCserve 
         Bindings        =   "frmOtherEdit.frx":12E0
         DataField       =   "供应商编号"
         DataMember      =   "ComOtherEdit"
         DataSource      =   "DEaccp"
         Height          =   330
         Left            =   1200
         TabIndex        =   4
         Top             =   720
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   582
         _Version        =   393216
         Appearance      =   0
         Style           =   2
         ListField       =   "仓库名称"
         BoundColumn     =   "仓库编号"
         Text            =   ""
         Object.DataMember      =   "Com仓库表"
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "入库类型:"
         Height          =   180
         Left            =   360
         TabIndex        =   30
         Top             =   360
         Width           =   810
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "仓库:"
         Height          =   180
         Left            =   3360
         TabIndex        =   21
         Top             =   780
         Width           =   450
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "入库编号:"
         Height          =   180
         Left            =   3000
         TabIndex        =   20
         Top             =   360
         Width           =   810
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "操作员:"
         Height          =   180
         Left            =   7800
         TabIndex        =   19
         Top             =   360
         Width           =   630
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "供应商:"
         Height          =   180
         Left            =   555
         TabIndex        =   18
         Top             =   780
         Width           =   630
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "日期:"
         Height          =   180
         Left            =   5520
         TabIndex        =   17
         Top             =   360
         Width           =   450
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "备注:"
         Height          =   180
         Left            =   6000
         TabIndex        =   16
         Top             =   840
         Width           =   450
      End
   End
End
Attribute VB_Name = "frmOtherEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rsOtherEdit As ADODB.Recordset
Dim rsOtAdd As ADODB.Recordset
Dim cmdOtherEdit As ADODB.Command
Dim strsql As String

Private Sub CmdAct_Click(Index As Integer)

    Dim blnIsTrue As Boolean
    
    With rsOtherEdit
        Select Case Index
            Case 0
                blnIsTrue = Save()
                If Not blnIsTrue Then
                    Exit Sub
                End If
                With rsOtAdd
                    If .RecordCount <> 0 Then
                        .MoveFirst
                        While Not .EOF
                            !入库编号 = Me.txtOther_id.Text
                            .MoveNext
                        Wend
                    End If
                End With
                rsOtAdd.Filter = "入库编号='" & Me.txtOther_id.Text & "'"
                
                rsOtAdd.UpdateBatch
                .Filter = "入库编号<>''"
                .UpdateBatch

                .MoveLast

                Call IsEdit(False)

                
            Case 1
                rsOtAdd.CancelBatch
                .Filter = "入库编号<>''"
                If .RecordCount <> 0 Then
                    .MoveFirst

⌨️ 快捷键说明

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