AddEditBookId.frm
上传用户:zhuahui520
上传日期:2007-05-21
资源大小:347k
文件大小:6k
源码类别:

其他智力游戏

开发平台:

Java

  1. VERSION 5.00
  2. Begin VB.Form AddBookId 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "正在添加借书人员"
  5.    ClientHeight    =   3165
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   5385
  9.    Icon            =   "AddEditBookId.frx":0000
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   3165
  14.    ScaleWidth      =   5385
  15.    ShowInTaskbar   =   0   'False
  16.    Begin VB.Frame Frame1 
  17.       Height          =   3135
  18.       Left            =   0
  19.       TabIndex        =   0
  20.       Top             =   0
  21.       Width           =   5295
  22.       Begin VB.CommandButton cmdOkCancel 
  23.          Cancel          =   -1  'True
  24.          Caption         =   "取消(&C)"
  25.          Height          =   375
  26.          Index           =   1
  27.          Left            =   3960
  28.          TabIndex        =   13
  29.          Top             =   2520
  30.          Width           =   975
  31.       End
  32.       Begin VB.CommandButton cmdOkCancel 
  33.          Caption         =   "保存(&E)"
  34.          Default         =   -1  'True
  35.          Height          =   375
  36.          Index           =   0
  37.          Left            =   2640
  38.          TabIndex        =   12
  39.          Top             =   2520
  40.          Width           =   975
  41.       End
  42.       Begin VB.Frame Frame2 
  43.          Height          =   135
  44.          Left            =   1080
  45.          TabIndex        =   11
  46.          Top             =   2160
  47.          Width           =   3855
  48.       End
  49.       Begin VB.TextBox txtBookIdZhi 
  50.          Height          =   270
  51.          Left            =   1080
  52.          TabIndex        =   10
  53.          Top             =   1680
  54.          Width           =   1455
  55.       End
  56.       Begin VB.TextBox txtBookIdDepart 
  57.          Height          =   270
  58.          Left            =   3480
  59.          TabIndex        =   9
  60.          Top             =   1080
  61.          Width           =   1455
  62.       End
  63.       Begin VB.TextBox txtBookIdClass 
  64.          Height          =   270
  65.          Left            =   1080
  66.          TabIndex        =   8
  67.          Top             =   1080
  68.          Width           =   1455
  69.       End
  70.       Begin VB.TextBox txtBookIdName 
  71.          Height          =   270
  72.          Left            =   3480
  73.          TabIndex        =   7
  74.          Top             =   480
  75.          Width           =   1455
  76.       End
  77.       Begin VB.TextBox txtBookId 
  78.          Height          =   270
  79.          Left            =   1080
  80.          TabIndex        =   6
  81.          Top             =   480
  82.          Width           =   1455
  83.       End
  84.       Begin VB.Image Image1 
  85.          Height          =   480
  86.          Left            =   240
  87.          Picture         =   "AddEditBookId.frx":0442
  88.          Top             =   2280
  89.          Width           =   480
  90.       End
  91.       Begin VB.Label Label1 
  92.          AutoSize        =   -1  'True
  93.          Caption         =   "职    称"
  94.          Height          =   180
  95.          Index           =   4
  96.          Left            =   240
  97.          TabIndex        =   5
  98.          Top             =   1680
  99.          Width           =   720
  100.       End
  101.       Begin VB.Label Label1 
  102.          AutoSize        =   -1  'True
  103.          Caption         =   "部    门"
  104.          Height          =   180
  105.          Index           =   3
  106.          Left            =   2640
  107.          TabIndex        =   4
  108.          Top             =   1080
  109.          Width           =   720
  110.       End
  111.       Begin VB.Label Label1 
  112.          AutoSize        =   -1  'True
  113.          Caption         =   "班    级"
  114.          Height          =   180
  115.          Index           =   2
  116.          Left            =   240
  117.          TabIndex        =   3
  118.          Top             =   1080
  119.          Width           =   720
  120.       End
  121.       Begin VB.Label Label1 
  122.          AutoSize        =   -1  'True
  123.          Caption         =   "姓    名"
  124.          Height          =   180
  125.          Index           =   1
  126.          Left            =   2640
  127.          TabIndex        =   2
  128.          Top             =   480
  129.          Width           =   720
  130.       End
  131.       Begin VB.Label Label1 
  132.          AutoSize        =   -1  'True
  133.          Caption         =   "借书证号"
  134.          Height          =   180
  135.          Index           =   0
  136.          Left            =   240
  137.          TabIndex        =   1
  138.          Top             =   480
  139.          Width           =   720
  140.       End
  141.    End
  142. End
  143. Attribute VB_Name = "AddBookId"
  144. Attribute VB_GlobalNameSpace = False
  145. Attribute VB_Creatable = False
  146. Attribute VB_PredeclaredId = True
  147. Attribute VB_Exposed = False
  148. Private Sub cmdOkCancel_Click(Index As Integer)
  149. Select Case Index
  150.     Case 0
  151.         mAddEditId = "": mAddEditIdName = ""
  152.         mAddEditIdClass = "": mAddEditIdDepart = ""
  153.         mAddEditIdZhi = ""
  154.         If txtBookId.Text = "" Or txtBookIdName = "" Then
  155.           ' Or txtBookIdDepart = "" Or txtBookIdZhi = "" Then
  156.             MsgBox "请把借书证号或姓名填写完整!", 0 + 48, "提示"
  157.             Exit Sub
  158.         End If
  159.         mAddEditId = txtBookId
  160.         mAddEditIdName = txtBookIdName
  161.         mAddEditIdClass = txtBookIdClass
  162.         mAddEditIdDepart = txtBookIdDepart
  163.         mAddEditIdZhi = txtBookIdZhi
  164.         Unload Me
  165.         mSave = True
  166.     Case 1
  167.         mSave = False
  168.         Unload Me
  169. End Select
  170. End Sub
  171. Private Sub txtBookId_GotFocus()
  172. txtBookId.BackColor = vbBlue
  173. txtBookId.ForeColor = vbYellow
  174. End Sub
  175. Private Sub txtBookId_LostFocus()
  176. txtBookId.BackColor = vbWhite
  177. txtBookId.ForeColor = vbBlack
  178. End Sub