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

📄 form2.frm

📁 erp采购系统,采用vb编写的erp采购系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form2 
   Caption         =   "询价单(莫小林)"
   ClientHeight    =   8625
   ClientLeft      =   60
   ClientTop       =   435
   ClientWidth     =   11055
   LinkTopic       =   "Form2"
   ScaleHeight     =   8625
   ScaleWidth      =   11055
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   7320
      Top             =   960
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ERP;Data Source=E17B29BF350B495"
      OLEDBString     =   "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ERP;Data Source=E17B29BF350B495"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "Xunjia"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      Height          =   375
      Left            =   2880
      TabIndex        =   24
      Top             =   960
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      Height          =   375
      Left            =   1560
      TabIndex        =   23
      Top             =   960
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加"
      Height          =   375
      Left            =   240
      TabIndex        =   22
      Top             =   960
      Width           =   975
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "Form2.frx":0000
      Height          =   3975
      Left            =   360
      TabIndex        =   21
      Top             =   4200
      Width           =   10335
      _ExtentX        =   18230
      _ExtentY        =   7011
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      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
      ColumnCount     =   2
      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
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.TextBox Text9 
      DataField       =   "金额"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   8640
      TabIndex        =   20
      Top             =   3240
      Width           =   1935
   End
   Begin VB.TextBox Text8 
      DataField       =   "单价"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   6360
      TabIndex        =   18
      Top             =   3240
      Width           =   1215
   End
   Begin VB.TextBox Text7 
      DataField       =   "数量"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   3960
      TabIndex        =   16
      Top             =   3240
      Width           =   1215
   End
   Begin VB.TextBox Text3 
      DataField       =   "计量单位"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   1560
      TabIndex        =   14
      Top             =   3240
      Width           =   1095
   End
   Begin VB.ComboBox Combo1 
      DataField       =   "供应商"
      DataSource      =   "Adodc1"
      Height          =   300
      ItemData        =   "Form2.frx":0015
      Left            =   8520
      List            =   "Form2.frx":001F
      TabIndex        =   12
      Top             =   1920
      Width           =   2055
   End
   Begin VB.TextBox Text6 
      DataField       =   "名称"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   8520
      TabIndex        =   11
      Top             =   2520
      Width           =   2055
   End
   Begin VB.TextBox Text5 
      DataField       =   "编号"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   5160
      TabIndex        =   9
      Top             =   2520
      Width           =   1815
   End
   Begin VB.TextBox Text4 
      DataField       =   "备注"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   1560
      TabIndex        =   7
      Top             =   2520
      Width           =   1935
   End
   Begin VB.TextBox Text2 
      DataField       =   "询价日期"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   5160
      TabIndex        =   4
      Top             =   1800
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      DataField       =   "询价单号"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   1560
      TabIndex        =   2
      Top             =   1800
      Width           =   1935
   End
   Begin VB.Label Label11 
      Caption         =   "金额"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   7800
      TabIndex        =   19
      Top             =   3360
      Width           =   735
   End
   Begin VB.Label Label10 
      Caption         =   "单价"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5400
      TabIndex        =   17
      Top             =   3360
      Width           =   735
   End
   Begin VB.Label Label9 
      Caption         =   "数量"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3000
      TabIndex        =   15
      Top             =   3360
      Width           =   735
   End
   Begin VB.Label Label8 
      Caption         =   "计量单位"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   240
      TabIndex        =   13
      Top             =   3360
      Width           =   1215
   End
   Begin VB.Label Label7 
      Caption         =   "物料名称"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   7320
      TabIndex        =   10
      Top             =   2640
      Width           =   1215
   End
   Begin VB.Label Label6 
      Caption         =   "物料编号"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3720
      TabIndex        =   8
      Top             =   2640
      Width           =   1215
   End
   Begin VB.Label Label5 
      Caption         =   "备注"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   6
      Top             =   2640
      Width           =   615
   End
   Begin VB.Label Label4 
      Caption         =   "供应商"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   7320
      TabIndex        =   5
      Top             =   1920
      Width           =   975
   End
   Begin VB.Label Label3 
      Caption         =   "询价日期"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3720
      TabIndex        =   3
      Top             =   1920
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "询价单号"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   1920
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "采购询价单"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   3720
      TabIndex        =   0
      Top             =   120
      Width           =   2895
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Command2.Enabled = Not Command2.Enabled
If Command1.Caption = "添加" Then
Command1.Caption = "确认"
Bookmark = Adodc1.Recordset.Bookmark
Adodc1.Recordset.AddNew
Text1.SetFocus
Else
Command1.Caption = "添加"
Adodc1.Recordset.Update
Adodc1.Recordset.MoveLast
End If
End Sub

Private Sub Command2_Click()
Dim answer As String
On Error GoTo delerror
answer = MsgBox("确定要删除吗?", vbYesNo, "")
If answer = vbYes Then
   DataGrid1.AllowDelete = True
   Adodc1.Recordset.Delete
   Adodc1.Recordset.Update
   DataGrid1.Refresh
   MsgBox "成功删除!", vbOKOnly + vbInformation, ""
   DataGrid1.AllowDelete = False
Else
   Exit Sub
End If
delerror:
If Err.Number <> 0 Then
   MsgBox Err.Description
End If
End Sub

Private Sub Command3_Click()
Me.Hide
Form1.Show
End Sub

⌨️ 快捷键说明

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