dlForm.frm
上传用户:tashmp
上传日期:2010-04-03
资源大小:882k
文件大小:12k
源码类别:

其他游戏

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
  4. Begin VB.Form dlForm 
  5.    BackColor       =   &H00FF8080&
  6.    BorderStyle     =   1  'Fixed Single
  7.    Caption         =   "驾照年审评定登陆界面"
  8.    ClientHeight    =   4230
  9.    ClientLeft      =   45
  10.    ClientTop       =   375
  11.    ClientWidth     =   6420
  12.    FillColor       =   &H8000000E&
  13.    Icon            =   "dlForm.frx":0000
  14.    LinkTopic       =   "Form1"
  15.    MaxButton       =   0   'False
  16.    ScaleHeight     =   4230
  17.    ScaleWidth      =   6420
  18.    StartUpPosition =   3  'Windows Default
  19.    Begin MSAdodcLib.Adodc dlAdodc 
  20.       Height          =   375
  21.       Left            =   2640
  22.       Top             =   3480
  23.       Width           =   1200
  24.       _ExtentX        =   2117
  25.       _ExtentY        =   661
  26.       ConnectMode     =   0
  27.       CursorLocation  =   3
  28.       IsolationLevel  =   -1
  29.       ConnectionTimeout=   15
  30.       CommandTimeout  =   30
  31.       CursorType      =   3
  32.       LockType        =   3
  33.       CommandType     =   8
  34.       CursorOptions   =   0
  35.       CacheSize       =   50
  36.       MaxRecords      =   0
  37.       BOFAction       =   0
  38.       EOFAction       =   0
  39.       ConnectStringType=   1
  40.       Appearance      =   1
  41.       BackColor       =   -2147483643
  42.       ForeColor       =   -2147483640
  43.       Orientation     =   0
  44.       Enabled         =   -1
  45.       Connect         =   ""
  46.       OLEDBString     =   ""
  47.       OLEDBFile       =   ""
  48.       DataSourceName  =   ""
  49.       OtherAttributes =   ""
  50.       UserName        =   ""
  51.       Password        =   ""
  52.       RecordSource    =   ""
  53.       Caption         =   "Adodc1"
  54.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  55.          Name            =   "MS Sans Serif"
  56.          Size            =   8.25
  57.          Charset         =   0
  58.          Weight          =   400
  59.          Underline       =   0   'False
  60.          Italic          =   0   'False
  61.          Strikethrough   =   0   'False
  62.       EndProperty
  63.       _Version        =   393216
  64.    End
  65.    Begin MSDataGridLib.DataGrid DataGrid1 
  66.       Bindings        =   "dlForm.frx":030A
  67.       Height          =   1935
  68.       Left            =   6000
  69.       TabIndex        =   10
  70.       Top             =   1080
  71.       Width           =   1815
  72.       _ExtentX        =   3201
  73.       _ExtentY        =   3413
  74.       _Version        =   393216
  75.       HeadLines       =   1
  76.       RowHeight       =   15
  77.       BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  78.          Name            =   "MS Sans Serif"
  79.          Size            =   8.25
  80.          Charset         =   0
  81.          Weight          =   400
  82.          Underline       =   0   'False
  83.          Italic          =   0   'False
  84.          Strikethrough   =   0   'False
  85.       EndProperty
  86.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  87.          Name            =   "MS Sans Serif"
  88.          Size            =   8.25
  89.          Charset         =   0
  90.          Weight          =   400
  91.          Underline       =   0   'False
  92.          Italic          =   0   'False
  93.          Strikethrough   =   0   'False
  94.       EndProperty
  95.       ColumnCount     =   2
  96.       BeginProperty Column00 
  97.          DataField       =   ""
  98.          Caption         =   ""
  99.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  100.             Type            =   0
  101.             Format          =   ""
  102.             HaveTrueFalseNull=   0
  103.             FirstDayOfWeek  =   0
  104.             FirstWeekOfYear =   0
  105.             LCID            =   2052
  106.             SubFormatType   =   0
  107.          EndProperty
  108.       EndProperty
  109.       BeginProperty Column01 
  110.          DataField       =   ""
  111.          Caption         =   ""
  112.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  113.             Type            =   0
  114.             Format          =   ""
  115.             HaveTrueFalseNull=   0
  116.             FirstDayOfWeek  =   0
  117.             FirstWeekOfYear =   0
  118.             LCID            =   2052
  119.             SubFormatType   =   0
  120.          EndProperty
  121.       EndProperty
  122.       SplitCount      =   1
  123.       BeginProperty Split0 
  124.          BeginProperty Column00 
  125.          EndProperty
  126.          BeginProperty Column01 
  127.          EndProperty
  128.       EndProperty
  129.    End
  130.    Begin VB.ComboBox Combo1 
  131.       BackColor       =   &H00FFFFFF&
  132.       Height          =   315
  133.       Left            =   5760
  134.       TabIndex        =   9
  135.       Text            =   "Combo1"
  136.       Top             =   3600
  137.       Width           =   495
  138.    End
  139.    Begin VB.CommandButton Command2 
  140.       BackColor       =   &H00FF8080&
  141.       Caption         =   "退出"
  142.       BeginProperty Font 
  143.          Name            =   "MS Sans Serif"
  144.          Size            =   12
  145.          Charset         =   0
  146.          Weight          =   700
  147.          Underline       =   0   'False
  148.          Italic          =   0   'False
  149.          Strikethrough   =   0   'False
  150.       EndProperty
  151.       Height          =   615
  152.       Left            =   4080
  153.       Style           =   1  'Graphical
  154.       TabIndex        =   7
  155.       Top             =   3360
  156.       Width           =   1575
  157.    End
  158.    Begin VB.CommandButton Command1 
  159.       BackColor       =   &H00FF8080&
  160.       Caption         =   "登陆"
  161.       Default         =   -1  'True
  162.       BeginProperty Font 
  163.          Name            =   "MS Sans Serif"
  164.          Size            =   12
  165.          Charset         =   0
  166.          Weight          =   700
  167.          Underline       =   0   'False
  168.          Italic          =   0   'False
  169.          Strikethrough   =   0   'False
  170.       EndProperty
  171.       Height          =   615
  172.       Left            =   720
  173.       Style           =   1  'Graphical
  174.       TabIndex        =   6
  175.       Top             =   3360
  176.       Width           =   1575
  177.    End
  178.    Begin VB.Frame Frame1 
  179.       BackColor       =   &H00FF8080&
  180.       Height          =   2295
  181.       Left            =   360
  182.       TabIndex        =   1
  183.       Top             =   840
  184.       Width           =   5535
  185.       Begin VB.ComboBox Comboyh 
  186.          BackColor       =   &H00FFFFFF&
  187.          BeginProperty Font 
  188.             Name            =   "MS Sans Serif"
  189.             Size            =   9.75
  190.             Charset         =   0
  191.             Weight          =   700
  192.             Underline       =   0   'False
  193.             Italic          =   0   'False
  194.             Strikethrough   =   0   'False
  195.          EndProperty
  196.          Height          =   360
  197.          Left            =   1440
  198.          TabIndex        =   8
  199.          Text            =   "Combo1"
  200.          Top             =   360
  201.          Width           =   2775
  202.       End
  203.       Begin VB.CheckBox Check1 
  204.          BackColor       =   &H00FF8080&
  205.          Caption         =   "管理员登陆"
  206.          Height          =   375
  207.          Left            =   1440
  208.          TabIndex        =   5
  209.          Top             =   1800
  210.          Value           =   1  'Checked
  211.          Width           =   1335
  212.       End
  213.       Begin VB.TextBox Text1 
  214.          BackColor       =   &H8000000E&
  215.          BeginProperty Font 
  216.             Name            =   "MS Sans Serif"
  217.             Size            =   9.75
  218.             Charset         =   0
  219.             Weight          =   700
  220.             Underline       =   0   'False
  221.             Italic          =   0   'False
  222.             Strikethrough   =   0   'False
  223.          EndProperty
  224.          Height          =   375
  225.          IMEMode         =   3  'DISABLE
  226.          Left            =   1440
  227.          PasswordChar    =   "*"
  228.          TabIndex        =   4
  229.          Top             =   1200
  230.          Width           =   2655
  231.       End
  232.       Begin VB.Image Image2 
  233.          Height          =   720
  234.          Left            =   4560
  235.          Picture         =   "dlForm.frx":0320
  236.          Top             =   1440
  237.          Width           =   720
  238.       End
  239.       Begin VB.Image Image1 
  240.          Height          =   480
  241.          Left            =   4560
  242.          Picture         =   "dlForm.frx":1AA2
  243.          Top             =   360
  244.          Width           =   480
  245.       End
  246.       Begin VB.Label Label3 
  247.          BackStyle       =   0  'Transparent
  248.          Caption         =   "密码"
  249.          BeginProperty Font 
  250.             Name            =   "MS Sans Serif"
  251.             Size            =   13.5
  252.             Charset         =   0
  253.             Weight          =   700
  254.             Underline       =   0   'False
  255.             Italic          =   0   'False
  256.             Strikethrough   =   0   'False
  257.          EndProperty
  258.          Height          =   495
  259.          Left            =   240
  260.          TabIndex        =   3
  261.          Top             =   1080
  262.          Width           =   855
  263.       End
  264.       Begin VB.Label Label2 
  265.          BackStyle       =   0  'Transparent
  266.          Caption         =   "用户名"
  267.          BeginProperty Font 
  268.             Name            =   "MS Sans Serif"
  269.             Size            =   13.5
  270.             Charset         =   0
  271.             Weight          =   700
  272.             Underline       =   0   'False
  273.             Italic          =   0   'False
  274.             Strikethrough   =   0   'False
  275.          EndProperty
  276.          Height          =   615
  277.          Left            =   240
  278.          TabIndex        =   2
  279.          Top             =   360
  280.          Width           =   975
  281.       End
  282.    End
  283.    Begin VB.Label Label1 
  284.       BackStyle       =   0  'Transparent
  285.       Caption         =   "欢迎使用驾照年审管理系统"
  286.       BeginProperty Font 
  287.          Name            =   "方正舒体"
  288.          Size            =   24
  289.          Charset         =   134
  290.          Weight          =   700
  291.          Underline       =   0   'False
  292.          Italic          =   0   'False
  293.          Strikethrough   =   0   'False
  294.       EndProperty
  295.       ForeColor       =   &H008080FF&
  296.       Height          =   615
  297.       Left            =   240
  298.       TabIndex        =   0
  299.       Top             =   120
  300.       Width           =   6015
  301.    End
  302. End
  303. Attribute VB_Name = "dlForm"
  304. Attribute VB_GlobalNameSpace = False
  305. Attribute VB_Creatable = False
  306. Attribute VB_PredeclaredId = True
  307. Attribute VB_Exposed = False
  308. Option Explicit
  309. Private Sub Comboyh_Click()
  310. Dim i As Integer
  311. End Sub
  312. '系统登陆button
  313. Private Sub Command1_Click()
  314. If Comboyh.Text <> "" And Text1.Text <> "" Then
  315. Dim flag As Boolean
  316. Dim con  As Boolean
  317. '连接数据库
  318.  Call dtlinedb
  319. 'flag = is_name_exit()
  320. 'Debug.Print flag
  321. '不存在加入文件名
  322. 'If flag = False Then
  323. 'Call add_name_to_file(Comboyh.Text)
  324. 'End If
  325. ''检查密码
  326.  con = mima_right()
  327.  If con = True Then
  328.  '登陆成功
  329. ' flag = is_name_exit()
  330. 'Debug.Print flag
  331. '不存在加入文件名
  332. 'If flag = False Then
  333. Call add_name_to_file(Comboyh.Text)
  334. 'End If
  335. '成功登陆的权限分配
  336. If Check1.Value = 1 Then
  337. '分配管理员的权限
  338. priview = "admini"
  339. '进入主界面
  340. 'Debug.Print priview
  341. Unload Me
  342. mainForm.Show
  343. Else
  344. '进入主界面
  345. priview = "yh"
  346. 'Debug.Print priview
  347. Unload Me
  348. mainForm.Show
  349. End If
  350.  Else
  351.  MsgBox "请输入正确的密码!", 64, "提示对话框"
  352. End If
  353. Else
  354. MsgBox "请输入完整的用户名和密码!", 16, "提示对话框"
  355. End If
  356. End Sub
  357. Private Sub Command2_Click()
  358. End
  359. End Sub
  360. Private Sub Command3_Click()
  361. Dim i As Integer
  362. For i = 0 To dlAdodc.Recordset.RecordCount - 1 Step 1
  363.  Debug.Print dlAdodc.Recordset.Fields(i).Value
  364. Next i
  365. End Sub
  366. '登陆界面
  367. Private Sub Form_Load()
  368. dlAdodc.Visible = False
  369. DataGrid1.Visible = False
  370. '窗体居中显示
  371. Me.Left = (Screen.Width - Me.Width) / 2 - 100
  372. Me.Top = (Screen.Height - Me.Height) / 2 - 150
  373. Me.Show '显示窗题
  374. '读入最近登陆的3个用户到comboyh中
  375. Call getzh
  376. '连接数据库
  377. 'Call dtlinedb
  378. End Sub