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

📄 frm_hwgyxx.frm

📁 采购管理系统使用vb6.0 加sql2000数据库 编程
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         RowHeight       =   15
         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
         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.Label Label1 
         Caption         =   "型号编号"
         Height          =   255
         Left            =   360
         TabIndex        =   10
         Top             =   480
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "生产商信息"
         Height          =   255
         Left            =   360
         TabIndex        =   9
         Top             =   960
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "供应商信息"
         Height          =   255
         Left            =   240
         TabIndex        =   8
         Top             =   2880
         Width           =   1215
      End
      Begin VB.Label Label4 
         Caption         =   "型号名称"
         Height          =   255
         Left            =   3240
         TabIndex        =   7
         Top             =   480
         Width           =   975
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   240
      Top             =   5760
      Width           =   2655
      _ExtentX        =   4683
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      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;Persist Security Info=False;User ID=sa;Initial Catalog=Data_cggl;Data Source=服务器"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Data_cggl;Data Source=服务器"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   "sa"
      Password        =   ""
      RecordSource    =   "select * from table_xhb"
      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.Frame Frame2 
      Caption         =   "型号信息"
      Height          =   1095
      Left            =   0
      TabIndex        =   0
      Top             =   120
      Width           =   8415
      Begin VB.TextBox Text4 
         Height          =   270
         Left            =   6000
         TabIndex        =   25
         Text            =   "Text4"
         Top             =   360
         Width           =   1455
      End
      Begin VB.Frame Frame3 
         Caption         =   "Frame3"
         Height          =   15
         Left            =   0
         TabIndex        =   22
         Top             =   1080
         Width           =   6495
      End
      Begin VB.CommandButton cmd_exit 
         Caption         =   "关闭"
         Height          =   255
         Left            =   6960
         TabIndex        =   21
         Top             =   840
         Width           =   975
      End
      Begin VB.CommandButton cmd_query 
         Caption         =   "查询"
         Height          =   255
         Left            =   5760
         TabIndex        =   20
         Top             =   840
         Width           =   975
      End
      Begin VB.CommandButton cmd_edit 
         Caption         =   "修改"
         Height          =   255
         Left            =   2400
         TabIndex        =   19
         Top             =   840
         Width           =   855
      End
      Begin VB.CommandButton cmd_del 
         Caption         =   "删除"
         Height          =   255
         Left            =   1440
         TabIndex        =   18
         Top             =   840
         Width           =   855
      End
      Begin VB.CommandButton cmd_add 
         Caption         =   "增加"
         Height          =   255
         Left            =   360
         TabIndex        =   17
         Top             =   840
         Width           =   975
      End
      Begin VB.CommandButton cmd_cancel 
         Caption         =   "取消"
         Height          =   255
         Left            =   4680
         TabIndex        =   16
         Top             =   840
         Width           =   975
      End
      Begin VB.CommandButton cmd_save 
         Caption         =   "保存"
         Height          =   255
         Left            =   3480
         TabIndex        =   15
         Top             =   840
         Width           =   975
      End
      Begin VB.TextBox Text3 
         Height          =   270
         Left            =   4200
         TabIndex        =   14
         Text            =   "Text3"
         Top             =   360
         Width           =   1575
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   1080
         TabIndex        =   12
         Text            =   "Text2"
         Top             =   360
         Width           =   1695
      End
      Begin VB.Label Label6 
         Caption         =   "型号名称"
         Height          =   255
         Left            =   3120
         TabIndex        =   13
         Top             =   360
         Width           =   855
      End
      Begin VB.Label Label5 
         Caption         =   "型号编号"
         Height          =   255
         Left            =   240
         TabIndex        =   11
         Top             =   360
         Width           =   735
      End
   End
End
Attribute VB_Name = "frm_hwgyxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False





Private Sub Command4_Click()
Text2.Text = ""
Text3.Text = ""
cmd_save.Enabled = True
cmd_add.Enabled = False












End Sub

Private Sub cmd_add_Click()
Text2.Text = ""
Text3.Text = ""
End Sub

Private Sub Cmd_save_Click()
Call main
Adodc1.RecordSource = "select * from table_xhb where 型号编号='" + Text2 + "' "
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
  c = MsgBox("确认要保存该信息吗?", 33, "采购管理系统")
   If c = vbOK Then
   Set adoRs = adoCon.Execute("insert into table_xhb values(" & Text2 & ",'" & Text3 & "')")
   MsgBox "数据保存成功!!", 32, "采购管理系统"
   cmd_save.Enabled = False
   cmd_add.Enabled = False
Else
End If
Else
MsgBox " 对不起,该信息已经保存,不能在进行保存", 64, "采购管理系统"
End If
adoCon.Close

End Sub

Private Sub DataGrid3_Click()
Adodc1.RecordSource = "select * from Table_xhb where 型号编号='" + Text2 + "'"
'adodc1.refresh
If Adodc1.Recordset.RecordCount > 0 Then
  Text2.Text = Adodc1.Recordset.Fields("型号编号")
  Text3.Text = Adodc1.Recordset.Fields("型号名称")
 'adodc1.Recordset.Close
  Else
  End If
End Sub

⌨️ 快捷键说明

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