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

📄 frm_lrwh.frm

📁 固定资产及设备管理系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Width           =   1335
      End
      Begin VB.Label Label17 
         Caption         =   "数量"
         Height          =   255
         Left            =   240
         TabIndex        =   42
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label18 
         Caption         =   "单价"
         Height          =   255
         Left            =   2640
         TabIndex        =   41
         Top             =   360
         Width           =   495
      End
      Begin VB.Label Label19 
         Caption         =   "金额"
         Height          =   255
         Left            =   5160
         TabIndex        =   40
         Top             =   360
         Width           =   495
      End
      Begin VB.Label Label20 
         Caption         =   "折旧累计"
         Height          =   255
         Left            =   7800
         TabIndex        =   39
         Top             =   360
         Width           =   735
      End
      Begin VB.Label Label21 
         Caption         =   "净值"
         Height          =   255
         Left            =   8040
         TabIndex        =   38
         Top             =   840
         Width           =   615
      End
      Begin VB.Label Label22 
         Caption         =   "折旧方法"
         Height          =   255
         Left            =   240
         TabIndex        =   37
         Top             =   840
         Width           =   855
      End
      Begin VB.Label Label23 
         Caption         =   "净残值率"
         Height          =   315
         Left            =   2640
         TabIndex        =   36
         Top             =   840
         Width           =   1095
      End
      Begin VB.Label Label24 
         Caption         =   "预计使用年限"
         Height          =   255
         Left            =   5160
         TabIndex        =   35
         Top             =   840
         Width           =   1215
      End
   End
   Begin VB.Frame Frame1 
      Height          =   3135
      Left            =   0
      TabIndex        =   0
      Top             =   120
      Width           =   10335
      Begin VB.ComboBox Combo2 
         Height          =   300
         Left            =   6720
         TabIndex        =   78
         Top             =   1680
         Width           =   1335
      End
      Begin VB.TextBox Text7 
         Height          =   300
         Left            =   1560
         TabIndex        =   34
         Top             =   2640
         Width           =   8655
      End
      Begin VB.TextBox Text2 
         Height          =   300
         Left            =   7440
         TabIndex        =   33
         Top             =   2160
         Width           =   2775
      End
      Begin VB.ComboBox Combo6 
         Height          =   300
         Left            =   4680
         TabIndex        =   32
         Top             =   2160
         Width           =   1575
      End
      Begin VB.ComboBox Combo5 
         Height          =   300
         Left            =   1560
         TabIndex        =   31
         Top             =   2160
         Width           =   1815
      End
      Begin VB.ComboBox Combo4 
         Height          =   300
         Left            =   5520
         Style           =   1  'Simple Combo
         TabIndex        =   30
         Top             =   240
         Width           =   2055
      End
      Begin VB.ComboBox Combo3 
         Height          =   300
         Left            =   9240
         TabIndex        =   29
         Top             =   1680
         Width           =   975
      End
      Begin MSComCtl2.DTPicker DTPicker3 
         Height          =   300
         Left            =   4200
         TabIndex        =   28
         Top             =   1680
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   529
         _Version        =   393216
         Format          =   30081025
         CurrentDate     =   38089
      End
      Begin MSComCtl2.DTPicker DTPicker2 
         Height          =   300
         Left            =   1560
         TabIndex        =   27
         Top             =   1680
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   529
         _Version        =   393216
         Format          =   30081025
         CurrentDate     =   38089
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   300
         Left            =   8880
         TabIndex        =   26
         Top             =   1200
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   529
         _Version        =   393216
         Format          =   30081025
         CurrentDate     =   38089
      End
      Begin VB.TextBox Text6 
         Height          =   330
         Left            =   1560
         TabIndex        =   25
         Top             =   1200
         Width           =   5895
      End
      Begin VB.TextBox Text5 
         Height          =   300
         Left            =   8880
         TabIndex        =   24
         Top             =   720
         Width           =   1335
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   5520
         TabIndex        =   23
         Top             =   720
         Width           =   2055
      End
      Begin VB.TextBox Text4 
         Height          =   300
         Left            =   1560
         TabIndex        =   22
         Top             =   720
         Width           =   1935
      End
      Begin VB.TextBox Text3 
         Height          =   300
         Left            =   8520
         TabIndex        =   21
         Top             =   240
         Width           =   1695
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   1560
         TabIndex        =   20
         Top             =   240
         Width           =   1935
      End
      Begin VB.Label Label3 
         Caption         =   "型号"
         Height          =   255
         Left            =   7920
         TabIndex        =   19
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label6 
         Caption         =   "国际编号"
         Height          =   255
         Left            =   7920
         TabIndex        =   18
         Top             =   840
         Width           =   975
      End
      Begin VB.Label Label8 
         Caption         =   "出厂日期"
         Height          =   255
         Left            =   7920
         TabIndex        =   17
         Top             =   1320
         Width           =   855
      End
      Begin VB.Label Label12 
         Caption         =   "使用情况"
         Height          =   255
         Left            =   8280
         TabIndex        =   16
         Top             =   1800
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "资产/设备名称"
         Height          =   255
         Left            =   3840
         TabIndex        =   15
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label5 
         Caption         =   "计量单位1"
         Height          =   255
         Left            =   4200
         TabIndex        =   14
         Top             =   840
         Width           =   975
      End
      Begin VB.Label Label10 
         Caption         =   "入帐日期"
         Height          =   375
         Left            =   3120
         TabIndex        =   13
         Top             =   1800
         Width           =   855
      End
      Begin VB.Label Label11 
         Caption         =   "增加方式"
         Height          =   255
         Left            =   5760
         TabIndex        =   12
         Top             =   1800
         Width           =   855
      End
      Begin VB.Label Label14 
         Caption         =   "保管人员"
         Height          =   255
         Left            =   3600
         TabIndex        =   11
         Top             =   2280
         Width           =   855
      End
      Begin VB.Label Label15 
         Caption         =   "存放地点"
         Height          =   255
         Left            =   6480
         TabIndex        =   10
         Top             =   2280
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "资产/设备编号"
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   360
         Width           =   1215
      End
      Begin VB.Label Label4 
         Caption         =   "详细配置"
         Height          =   255
         Left            =   240
         TabIndex        =   8
         Top             =   840
         Width           =   1215
      End
      Begin VB.Label Label7 
         Caption         =   "生产厂家"
         Height          =   255
         Left            =   240
         TabIndex        =   7
         Top             =   1320
         Width           =   1335
      End
      Begin VB.Label Label9 
         Caption         =   "购买日期"
         Height          =   255
         Left            =   240
         TabIndex        =   6
         Top             =   1800
         Width           =   1095
      End
      Begin VB.Label Label13 
         Caption         =   "使用部门"
         Height          =   255
         Left            =   240
         TabIndex        =   5
         Top             =   2280
         Width           =   1095
      End
      Begin VB.Label Label16 
         Caption         =   "备注"
         Height          =   255
         Left            =   240
         TabIndex        =   4
         Top             =   2760
         Width           =   855
      End
   End
End
Attribute VB_Name = "frm_LRWH"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim I As Integer
'Public adoCon As New ADODB.Connection
'Public adoRs As New ADODB.Recordset

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

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

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

Private Sub Combo4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
    Text3.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
Text2.SetFocus
Else
End If
End Sub

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

Private Sub Command1_Click()
Call main
If Text1.Text = "" Then
MsgBox "请输入要修改固定资产的资产/设备编号"
Else
If frm_LRWH.Caption = "资产/设备信息修改" Then
Adodc1.Recordset.Delete
Set adoRs = adoCon.Execute("insert into Table_ZCXX  values(" & Text1 & ",'" & Combo4 & "','" & Text3 & "','" & Text4 & "','" & Combo1 & "','" & Text5 & "','" & Text6 & "','" & DTPicker1 & "','" & DTPicker2 & "','" & DTPicker3 & "','" & Combo2 & "','" & Combo3 & "','" & Combo5 & "','" & Combo6 & "','" & Text2 & "','" & Text7 & "','" & Text8 & "','" & Text9 & "','" & Text11 & "','" & Text13 & "','" & Combo7 & "','" & Text14 & "','" & Text12 & "','" & Text10 & "','" & Text15 & "','" & Text16 & "','" & Text23 & "','" & Text17 & "','" & Text20 & "','" & Text24 & "','" & Text18 & "','" & Text21 & "','" & Text25 & "','" & Text19 & "','" & Text22 & "','" & Text26 & "','" & Text29 & "','" & Text30 & "','" & Text31 & "')")
frm_XTCX.Adodc1.Refresh
MsgBox "数据保存成功!!", , "通用固定资产及设备管理系统"
ElseIf frm_LRWH.Caption = "资产/设备信息删除" Then
I = MsgBox("确认要删除该记录么?", 17, "通用固定资产及设备管理系统")
If I = vbOK Then
Adodc1.Recordset.Delete
Adodc1.Refresh
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 = ""

⌨️ 快捷键说明

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