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

📄 frmselledit.frm

📁 一个简单但功能强大的进货系统,同样适合用于毕业论文的设计
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Top             =   780
         Width           =   450
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "备注:"
         Height          =   180
         Left            =   6000
         TabIndex        =   29
         Top             =   840
         Width           =   450
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "日期:"
         Height          =   180
         Left            =   5520
         TabIndex        =   28
         Top             =   360
         Width           =   450
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "对方:"
         Height          =   180
         Left            =   555
         TabIndex        =   27
         Top             =   780
         Width           =   450
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "操作员:"
         Height          =   180
         Left            =   7800
         TabIndex        =   26
         Top             =   360
         Width           =   630
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "单据编号:"
         Height          =   180
         Left            =   3000
         TabIndex        =   25
         Top             =   360
         Width           =   810
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "单据类型:"
         Height          =   180
         Left            =   360
         TabIndex        =   24
         Top             =   360
         Width           =   810
      End
   End
   Begin VB.Frame Frame1 
      Height          =   3050
      Left            =   0
      TabIndex        =   7
      Top             =   0
      Width           =   10095
      Begin VB.CommandButton CmdDep 
         Caption         =   "增加(&N)"
         Height          =   315
         Index           =   0
         Left            =   8520
         TabIndex        =   13
         Top             =   240
         Width           =   1275
      End
      Begin VB.CommandButton CmdDep 
         Caption         =   "编辑(&E)"
         Height          =   315
         Index           =   1
         Left            =   8520
         TabIndex        =   12
         Top             =   705
         Width           =   1275
      End
      Begin VB.CommandButton CmdDep 
         Caption         =   "查询(&F)"
         Height          =   315
         Index           =   2
         Left            =   8520
         TabIndex        =   11
         Top             =   1170
         Width           =   1275
      End
      Begin VB.CommandButton CmdDep 
         Caption         =   "删除(&D)"
         Height          =   315
         Index           =   3
         Left            =   8520
         TabIndex        =   10
         Top             =   1650
         Width           =   1275
      End
      Begin VB.CommandButton CmdDep 
         Caption         =   "列表(&P)"
         Height          =   315
         Index           =   4
         Left            =   8520
         TabIndex        =   9
         Top             =   2115
         Width           =   1275
      End
      Begin VB.CommandButton CmdDep 
         Caption         =   "退出(&X)"
         Height          =   315
         Index           =   5
         Left            =   8520
         TabIndex        =   8
         Top             =   2580
         Width           =   1275
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "frmSellEdit.frx":12F6
         Height          =   2655
         Left            =   120
         TabIndex        =   14
         Top             =   240
         Width           =   8175
         _ExtentX        =   14420
         _ExtentY        =   4683
         _Version        =   393216
         AllowUpdate     =   0   'False
         AllowArrows     =   -1  'True
         HeadLines       =   1
         RowHeight       =   15
         TabAcrossSplits =   -1  'True
         TabAction       =   2
         WrapCellPointer =   -1  'True
         FormatLocked    =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         DataMember      =   "Com销售出库信息"
         ColumnCount     =   7
         BeginProperty Column00 
            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 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            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column03 
            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 Column04 
            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 Column05 
            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 Column06 
            DataField       =   "备注"
            Caption         =   "备注"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
               ColumnAllowSizing=   0   'False
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column01 
               ColumnAllowSizing=   0   'False
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column02 
               ColumnAllowSizing=   0   'False
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column03 
               ColumnAllowSizing=   0   'False
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column04 
               ColumnAllowSizing=   0   'False
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column05 
               ColumnAllowSizing=   0   'False
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   1800
            EndProperty
         EndProperty
      End
   End
End
Attribute VB_Name = "frmSellEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rsSeEdit As ADODB.Recordset
Dim rsSeAdd As ADODB.Recordset
Dim cmdSeEdit As ADODB.Command
Dim strMaxNum As String



Private Sub CmdAct_Click(Index As Integer)
    
    Dim blnIsTrue As Boolean
    
    With rsSeEdit
        Select Case Index
            Case 0
                blnIsTrue = Save()
                If Not blnIsTrue Then
                    Exit Sub
                End If
                With rsSeAdd
                    If .RecordCount <> 0 Then
                        .MoveFirst
                        While Not .EOF
                            !出库编号 = Me.txtSell_id.Text
                            .MoveNext
                        Wend
                    End If
                End With
                rsSeAdd.Filter = "出库编号='" & Me.txtSell_id.Text & "'"
                rsSeAdd.UpdateBatch
                .Filter = "单据编号<>''"
                .UpdateBatch
                .MoveLast
                Call IsEdit(False)
                
            Case 1
                rsSeAdd.CancelBatch
                .Filter = "单据编号<>''"
                If .RecordCount <> 0 Then
                    .MoveFirst

⌨️ 快捷键说明

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