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

📄 frmphchangk.frm

📁 这是用Visual Basic6开发的大型喷绘业务管理系统,数据库采用Access数据库
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmPHchangK 
   Caption         =   "仓库数据录入"
   ClientHeight    =   4080
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5025
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   4080
   ScaleWidth      =   5025
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Height          =   3975
      Left            =   30
      TabIndex        =   7
      Top             =   0
      Width           =   4905
      Begin VB.TextBox Text6 
         Height          =   285
         Left            =   2040
         TabIndex        =   1
         Top             =   780
         Width           =   1425
      End
      Begin VB.CommandButton Command1 
         Height          =   315
         Left            =   660
         Picture         =   "frmPHchangK.frx":0000
         Style           =   1  'Graphical
         TabIndex        =   17
         Top             =   3510
         Width           =   1005
      End
      Begin VB.CommandButton Command3 
         Height          =   315
         Left            =   2040
         Picture         =   "frmPHchangK.frx":02CE
         Style           =   1  'Graphical
         TabIndex        =   16
         Top             =   3510
         Width           =   1035
      End
      Begin VB.TextBox Text5 
         Height          =   285
         Left            =   2040
         TabIndex        =   5
         Top             =   2460
         Width           =   2475
      End
      Begin VB.TextBox Text4 
         Height          =   285
         Left            =   2040
         TabIndex        =   4
         Top             =   2040
         Width           =   2475
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Left            =   2040
         TabIndex        =   3
         Top             =   1620
         Width           =   2475
      End
      Begin VB.PictureBox Picture1 
         BorderStyle     =   0  'None
         Height          =   615
         Left            =   90
         Picture         =   "frmPHchangK.frx":0564
         ScaleHeight     =   615
         ScaleWidth      =   645
         TabIndex        =   9
         Top             =   330
         Width           =   645
      End
      Begin VB.TextBox Text2 
         Height          =   285
         Left            =   2040
         TabIndex        =   0
         Top             =   360
         Width           =   1425
      End
      Begin VB.TextBox Text3 
         Height          =   285
         Left            =   2040
         TabIndex        =   2
         Top             =   1200
         Width           =   1425
      End
      Begin VB.CommandButton Command2 
         Height          =   315
         Left            =   3480
         Picture         =   "frmPHchangK.frx":16B6
         Style           =   1  'Graphical
         TabIndex        =   8
         Top             =   3510
         Width           =   1005
      End
      Begin MSComCtl2.DTPicker date1 
         Height          =   285
         Left            =   2040
         TabIndex        =   6
         Top             =   2880
         Width           =   1785
         _ExtentX        =   3149
         _ExtentY        =   503
         _Version        =   393216
         Format          =   25362432
         CurrentDate     =   36529
      End
      Begin VB.Label Label1 
         Caption         =   "(米)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   8
         Left            =   3510
         TabIndex        =   20
         Top             =   840
         Width           =   465
      End
      Begin VB.Label Label1 
         Caption         =   "幅    宽"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   7
         Left            =   1020
         TabIndex        =   19
         Top             =   810
         Width           =   1005
      End
      Begin VB.Label Label1 
         Caption         =   "日    期"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   6
         Left            =   1020
         TabIndex        =   18
         Top             =   2910
         Width           =   1005
      End
      Begin VB.Label Label1 
         Caption         =   "布料产地"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   5
         Left            =   1020
         TabIndex        =   15
         Top             =   2490
         Width           =   1005
      End
      Begin VB.Label Label1 
         Caption         =   "供 应 商"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   4
         Left            =   1020
         TabIndex        =   14
         Top             =   2070
         Width           =   1005
      End
      Begin VB.Label Label1 
         Caption         =   "布料名称"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   3
         Left            =   1020
         TabIndex        =   13
         Top             =   1650
         Width           =   1005
      End
      Begin VB.Label Label1 
         Caption         =   "(米)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   0
         Left            =   3510
         TabIndex        =   12
         Top             =   1260
         Width           =   465
      End
      Begin VB.Label Label1 
         Caption         =   "布料编号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   1
         Left            =   1020
         TabIndex        =   11
         Top             =   390
         Width           =   1005
      End
      Begin VB.Label Label1 
         Caption         =   "布料原长度"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   225
         Index           =   2
         Left            =   810
         TabIndex        =   10
         Top             =   1230
         Width           =   1095
      End
   End
End
Attribute VB_Name = "frmPHchangK"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim env As rdoEnvironment
Dim cn As rdoConnection
Dim result As rdoResultset
Dim result1 As rdoResultset
Dim d_conn, sql As String
Dim hrowcount, hrowcount1 As Integer
Private Sub Command1_Click()
    
   If MsgBox("确定是否存盘?", 36, "存盘") = 6 Then
      sql = "insert into  ClothTable(日期,布料编号,幅宽,布料原长度,布料名称,供应商,布料产地) values('" & Trim(date1.Value) & "','" & Trim(Text2.Text) & "'," & Val(Trim(Text6.Text)) & "," & Val(Trim(Text3.Text)) & ",'" & Trim(Text1.Text) & "','" & Trim(Text4.Text) & "','" & Trim(Text5.Text) & "')"
      Set result = cn.OpenResultset(sql, rdOpenDynamic, rdConcurRowVer)
      MsgBox "存盘结束!!!"
      
   End If
End Sub

Private Sub Command2_Click()
  Unload Me
End Sub

Private Sub Command3_Click()
   frmPHCangKbrow.Show 1
End Sub

Private Sub Form_Load()
    Move Screen.width / 2 - frmPHCangKbrow.width / 2, Screen.height / 2 - frmPHCangKbrow.height / 2
    Set env = rdoEnvironments(0)
    env.CursorDriver = rdUseOdbc
    d_conn = "uid=sa;pwd=;driver={SQL SERVER};SERVER=ntserver;database=phdatabase;"
    Set cn = env.OpenConnection(dsname:="odbc_api_demo", Prompt:="rdodriverprompt", ReadOnly:=False, Connect:=d_conn)
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
       KeyAscii = 0
       SendKeys "{tab}"
    End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
       KeyAscii = 0
       SendKeys "{tab}"
    End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
       KeyAscii = 0
       SendKeys "{tab}"
    End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
       KeyAscii = 0
       SendKeys "{tab}"
    End If
End Sub

Private Sub Text5_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
       KeyAscii = 0
       SendKeys "{tab}"
    End If
End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
       KeyAscii = 0
       SendKeys "{tab}"
    End If
End Sub

⌨️ 快捷键说明

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