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

📄 frm_xtcx.frm

📁 这是一个完整的固定资产管理系统,流程明确,属通用类系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         BeginProperty Column01 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column07 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column08 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column09 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column10 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column11 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column12 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column13 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column14 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column15 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column16 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column17 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column18 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column19 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column20 
            ColumnWidth     =   2085.166
         EndProperty
         BeginProperty Column21 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column22 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column23 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column24 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column25 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column26 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column27 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column28 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column29 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column30 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column31 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column32 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column33 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column34 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column35 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column36 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column37 
            ColumnWidth     =   1365.165
         EndProperty
         BeginProperty Column38 
            ColumnWidth     =   1365.165
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   0
      Top             =   8280
      Visible         =   0   'False
      Width           =   11895
      _ExtentX        =   20981
      _ExtentY        =   582
      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=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=MRSOFT"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=MRSOFT"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from Table_ZCXX"
      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
End
Attribute VB_Name = "frm_XTCX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim tep1, tep2, I


Private Sub Combo2_Click()
If Combo2.Text = " >" Then
I = 0
ElseIf Combo2.Text = " =" Then
I = 1
ElseIf Combo2.Text = " <" Then
I = 2
ElseIf Combo2.Text = " Like" Then
I = 3
Else
End If
Text1.SetFocus
End Sub

Private Sub Command1_Click()
Dim a
a = Text1.Text
If Text1.Text = "" Then
   MsgBox "输入信息不能为空", 32, "提示"
ElseIf Combo1.Text = "资产设备编号" Then
      If Asc(Text1.Text) < 48 Or Asc(Text1.Text) > 57 Then
      MsgBox "输入数据非法!!", , "提示"
      Text1.Text = ""
      Text1.SetFocus
      Else
           If I = 0 Then
           Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + ">'" + a + "'"
           Adodc1.Refresh
           ElseIf I = 1 Then
           Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + "='" + a + "'"
           Adodc1.Refresh
           ElseIf I = 2 Then
           Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + "<'" + a + "'"
           Adodc1.Refresh
           ElseIf I = 3 Then
           Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + " Like '%" + a + "%'"
           Adodc1.Refresh
           Else
           End If
     End If
Else
If I = 0 Then
Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + ">'" + a + "'"
Adodc1.Refresh
ElseIf I = 1 Then
Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + "='" + a + "'"
Adodc1.Refresh
ElseIf I = 2 Then
Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + "<'" + a + "'"
Adodc1.Refresh
ElseIf I = 3 Then
Adodc1.RecordSource = "select * from Table_ZCXX where " + Combo1.Text + " Like '%" + a + "%'"
Adodc1.Refresh
Else
End If
End If
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Combo1.SetFocus
End Sub

Private Sub Command3_Click()
Adodc1.RecordSource = "select * from Table_ZCXX "
Adodc1.Refresh
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Private Sub Form_Load()
If frm_zdysz.Text1 = "" Then
DataGrid1.Columns(24).Caption = "自定义项1"
Else
DataGrid1.Columns(24).Caption = frm_zdysz.Text1.Text
End If
If frm_zdysz.Text2 = "" Then
DataGrid1.Columns(25).Caption = "自定义项2"
Else
DataGrid1.Columns(25).Caption = frm_zdysz.Text2.Text
End If
If frm_zdysz.Text3 = "" Then
DataGrid1.Columns(26).Caption = "自定义项3"
Else
DataGrid1.Columns(26).Caption = frm_zdysz.Text3.Text
End If
If frm_zdysz.Text4 = "" Then
DataGrid1.Columns(27).Caption = "自定义项4"
Else
DataGrid1.Columns(27).Caption = frm_zdysz.Text4.Text
End If
If frm_zdysz.Text5 = "" Then
DataGrid1.Columns(28).Caption = "自定义项5"
Else
DataGrid1.Columns(28).Caption = frm_zdysz.Text5.Text
End If
If frm_zdysz.Text6 = "" Then
DataGrid1.Columns(29).Caption = "自定义项6"
Else
DataGrid1.Columns(29).Caption = frm_zdysz.Text6.Text
End If
If frm_zdysz.Text7 = "" Then
DataGrid1.Columns(30).Caption = "自定义项7"
Else
DataGrid1.Columns(30).Caption = frm_zdysz.Text7.Text
End If
If frm_zdysz.Text8 = "" Then
DataGrid1.Columns(31).Caption = "自定义项8"
Else
DataGrid1.Columns(31).Caption = frm_zdysz.Text8.Text
End If
If frm_zdysz.Text9 = "" Then
DataGrid1.Columns(32).Caption = "自定义项9"
Else
DataGrid1.Columns(32).Caption = frm_zdysz.Text9.Text
End If
If frm_zdysz.Text10 = "" Then
DataGrid1.Columns(33).Caption = "自定义项10"
Else
DataGrid1.Columns(33).Caption = frm_zdysz.Text10.Text
End If
If frm_zdysz.Text11 = "" Then
DataGrid1.Columns(34).Caption = "自定义项11"
Else
DataGrid1.Columns(34).Caption = frm_zdysz.Text11.Text
End If
If frm_zdysz.Text12 = "" Then
DataGrid1.Columns(35).Caption = "自定义项12"
Else
DataGrid1.Columns(35).Caption = frm_zdysz.Text12.Text
End If
I = 1
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
      Command1_Click
  Else
  End If
End Sub

⌨️ 快捷键说明

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