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

📄 frm_xxlr.frm

📁 这是一个完整的固定资产管理系统,流程明确,属通用类系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Caption         =   "单价"
         Height          =   255
         Left            =   2760
         TabIndex        =   57
         Top             =   360
         Width           =   495
      End
      Begin VB.Label Label17 
         Caption         =   "数量"
         Height          =   255
         Left            =   240
         TabIndex        =   56
         Top             =   360
         Width           =   615
      End
   End
   Begin VB.Frame Frame1 
      Height          =   3135
      Left            =   0
      TabIndex        =   37
      Top             =   0
      Width           =   10335
      Begin MSComCtl2.DTPicker DTPicker3 
         Height          =   300
         Left            =   4080
         TabIndex        =   9
         Top             =   1680
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   529
         _Version        =   393216
         Format          =   30343169
         CurrentDate     =   38085
      End
      Begin MSComCtl2.DTPicker DTPicker2 
         Height          =   300
         Left            =   8880
         TabIndex        =   7
         Top             =   1200
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   529
         _Version        =   393216
         Format          =   30343169
         CurrentDate     =   38085
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   300
         Left            =   1560
         TabIndex        =   8
         Top             =   1680
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   529
         _Version        =   393216
         Format          =   30343169
         CurrentDate     =   38085
      End
      Begin VB.TextBox Text7 
         Height          =   300
         Left            =   8160
         TabIndex        =   14
         Top             =   2160
         Width           =   2055
      End
      Begin VB.TextBox Text6 
         Height          =   300
         Left            =   1560
         TabIndex        =   15
         Top             =   2640
         Width           =   8655
      End
      Begin VB.ComboBox Combo6 
         Height          =   300
         Left            =   5280
         TabIndex        =   13
         Top             =   2160
         Width           =   1335
      End
      Begin VB.ComboBox Combo5 
         Height          =   300
         Left            =   1560
         TabIndex        =   12
         Top             =   2160
         Width           =   2415
      End
      Begin VB.ComboBox Combo4 
         Height          =   300
         ItemData        =   "frm_XXLR.frx":0037
         Left            =   9240
         List            =   "frm_XXLR.frx":0041
         TabIndex        =   11
         Top             =   1680
         Width           =   975
      End
      Begin VB.ComboBox Combo3 
         Height          =   300
         ItemData        =   "frm_XXLR.frx":0055
         Left            =   6600
         List            =   "frm_XXLR.frx":005F
         TabIndex        =   10
         Top             =   1680
         Width           =   1575
      End
      Begin VB.TextBox Text5 
         Height          =   300
         Left            =   1560
         TabIndex        =   6
         Top             =   1200
         Width           =   5775
      End
      Begin VB.TextBox Text4 
         Height          =   300
         Left            =   8880
         TabIndex        =   5
         Top             =   720
         Width           =   1335
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "frm_XXLR.frx":006F
         Left            =   5280
         List            =   "frm_XXLR.frx":0082
         TabIndex        =   4
         Top             =   720
         Width           =   2055
      End
      Begin VB.TextBox Text3 
         Height          =   300
         Left            =   1560
         TabIndex        =   3
         Top             =   720
         Width           =   1935
      End
      Begin VB.TextBox Text2 
         Height          =   300
         Left            =   8520
         TabIndex        =   2
         Top             =   240
         Width           =   1695
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   5280
         Style           =   1  'Simple Combo
         TabIndex        =   1
         Top             =   240
         Width           =   2055
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   1560
         Locked          =   -1  'True
         TabIndex        =   0
         Top             =   240
         Width           =   1935
      End
      Begin VB.Label Label16 
         Caption         =   "备注"
         Height          =   255
         Left            =   240
         TabIndex        =   55
         Top             =   2640
         Width           =   855
      End
      Begin VB.Label Label15 
         Caption         =   "存放地点"
         Height          =   255
         Left            =   6960
         TabIndex        =   54
         Top             =   2280
         Width           =   855
      End
      Begin VB.Label Label14 
         Caption         =   "保管人员"
         Height          =   255
         Left            =   4200
         TabIndex        =   53
         Top             =   2280
         Width           =   855
      End
      Begin VB.Label Label13 
         Caption         =   "使用部门"
         Height          =   255
         Left            =   240
         TabIndex        =   52
         Top             =   2280
         Width           =   1095
      End
      Begin VB.Label Label12 
         Caption         =   "使用情况"
         Height          =   255
         Left            =   8400
         TabIndex        =   51
         Top             =   1800
         Width           =   735
      End
      Begin VB.Label Label11 
         Caption         =   "增加方式"
         Height          =   375
         Left            =   5640
         TabIndex        =   50
         Top             =   1800
         Width           =   1095
      End
      Begin VB.Label Label10 
         Caption         =   "入帐日期"
         Height          =   375
         Left            =   3120
         TabIndex        =   49
         Top             =   1800
         Width           =   855
      End
      Begin VB.Label Label9 
         Caption         =   "购买日期"
         Height          =   255
         Left            =   240
         TabIndex        =   48
         Top             =   1800
         Width           =   1095
      End
      Begin VB.Label Label8 
         Caption         =   "出厂日期"
         Height          =   255
         Left            =   7800
         TabIndex        =   47
         Top             =   1320
         Width           =   855
      End
      Begin VB.Label Label7 
         Caption         =   "生产厂家"
         Height          =   255
         Left            =   240
         TabIndex        =   46
         Top             =   1320
         Width           =   1335
      End
      Begin VB.Label Label6 
         Caption         =   "国际编号"
         Height          =   255
         Left            =   7800
         TabIndex        =   45
         Top             =   840
         Width           =   975
      End
      Begin VB.Label Label5 
         Caption         =   "计量单位1"
         Height          =   255
         Left            =   3960
         TabIndex        =   44
         Top             =   840
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "详细配置"
         Height          =   255
         Left            =   240
         TabIndex        =   43
         Top             =   840
         Width           =   1215
      End
      Begin VB.Label Label3 
         Caption         =   "型号"
         Height          =   255
         Left            =   7800
         TabIndex        =   42
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label2 
         Caption         =   "资产/设备名称"
         Height          =   255
         Left            =   3840
         TabIndex        =   41
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label1 
         Caption         =   "资产/设备编号"
         Height          =   255
         Left            =   240
         TabIndex        =   40
         Top             =   360
         Width           =   1215
      End
   End
End
Attribute VB_Name = "frm_XXLR"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim tep1, tep2
'Public adoCon As New ADODB.Connection
'Public adoRs As New ADODB.Recordset

Private Sub Combo1_Click()
Text2.SetFocus
End Sub

Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text2.SetFocus
Else
End If
End Sub

Private Sub Combo2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text4.SetFocus
Else
End If
End Sub

Private Sub Combo3_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Combo4.SetFocus
Else
End If
End Sub

Private Sub Combo4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Combo5.SetFocus
Else
End If
End Sub

Private Sub Combo5_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Combo6.SetFocus
Else
End If
End Sub

Private Sub Combo6_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text7.SetFocus
Else
End If
End Sub

Private Sub Combo7_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text13.SetFocus
Else
End If
End Sub

Private Sub Command1_Click()
Call main
If Text1.Text = "" Then
MsgBox "请输入资产/设备编号"
Text1.SetFocus
Else
   Set adoRs = adoCon.Execute("insert into Table_ZCXX  values(" & Text1.Text & ",'" & Combo1 & "','" & Text2 & "','" & Text3 & "','" & Combo2 & "','" & Text4 & "','" & Text5 & "','" & DTPicker2 & "','" & DTPicker1 & "','" & DTPicker3 & "','" & Combo3 & "','" & Combo4 & "','" & Combo5 & "','" & Combo6 & "','" & Text7 & "','" & Text6 & "','" & Text8 & "','" & Text9 & "','" & Text10 & "','" & Text11 & "','" & Combo7 & "','" & Text13 & "','" & Text14 & "','" & Text12 & "','" & Text15 & "','" & Text17 & "','" & Text19 & "','" & Text16 & "','" & Text18 & "','" & Text20 & "','" & Text21 & "','" & Text22 & "','" & Text23 & "','" & Text24 & "','" & Text25 & "','" & Text26 & "','" & Text27 & "','" & Text28 & "','" & Text29 & "')")
   MsgBox "     数据增加成功!!"
   Combo1.Text = ""
   Combo2.Text = ""
   Combo3.Text = ""
   Combo4.Text = ""
   Combo5.Text = ""
   Combo6.Text = ""
   Combo7.Text = ""
   Text1.Text = ""
   Text2.Text = ""
   Text3.Text = ""
   Text4.Text = ""
   Text5.Text = ""
   Text6.Text = ""
   Text7.Text = ""
   Text8.Text = ""
   Text9.Text = ""
   Text10.Text = ""
   Text11.Text = ""
   Text12.Text = ""
   Text13.Text = ""
   Text14.Text = ""
   Text15.Text = ""
   Text16.Text = ""
   Text17.Text = ""
   Text18.Text = ""
   Text19.Text = ""
   Text20.Text = ""
   Text21.Text = ""
   Text22.Text = ""
   Text23.Text = ""
   Text24.Text = ""
   Text25.Text = ""
   Text26.Text = ""
   Text1.SetFocus
   frm_XTCX.Adodc1.Refresh
   End If
   Unload Me
   frm_XXLR.Refresh
   frm_XXLR.Show
   frm_XXLR.Left = 750
   frm_XXLR.Top = 500
   frm_XXLR.Caption = "资产/设备信息录入"
   frm_main.Adodc1.Refresh
   adoCon.Close
End Sub

Private Sub Command2_Click()
frm_XXLR.Hide
End Sub

Private Sub Command3_Click()
DataReport2.Show
End Sub

⌨️ 快捷键说明

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