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

📄 frmprojsel.frm

📁 本系统实现了软件项目开发的流程管理和控制
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmProjSel 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "选择项目"
   ClientHeight    =   3540
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5895
   Icon            =   "FrmProjSel.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3540
   ScaleWidth      =   5895
   StartUpPosition =   1  '所有者中心
   Begin VB.Frame Frame1 
      Height          =   2535
      Left            =   240
      TabIndex        =   9
      Top             =   120
      Width           =   5415
      Begin VB.ComboBox ComboProj 
         Height          =   300
         Left            =   1200
         Style           =   2  'Dropdown List
         TabIndex        =   0
         Top             =   225
         Width           =   3975
      End
      Begin VB.TextBox txtClient 
         Enabled         =   0   'False
         Height          =   270
         Left            =   1200
         MaxLength       =   20
         TabIndex        =   1
         Top             =   600
         Width           =   3975
      End
      Begin VB.TextBox txtContact 
         Enabled         =   0   'False
         Height          =   270
         Left            =   1200
         MaxLength       =   20
         TabIndex        =   2
         Top             =   960
         Width           =   1335
      End
      Begin VB.TextBox txtTel 
         Enabled         =   0   'False
         Height          =   270
         Left            =   3840
         MaxLength       =   20
         TabIndex        =   3
         Top             =   960
         Width           =   1335
      End
      Begin VB.TextBox txtAmount 
         Enabled         =   0   'False
         Height          =   270
         Left            =   1200
         MaxLength       =   20
         TabIndex        =   4
         Top             =   1320
         Width           =   1335
      End
      Begin VB.TextBox txtBenefit 
         Enabled         =   0   'False
         Height          =   270
         Left            =   3840
         MaxLength       =   20
         TabIndex        =   5
         Top             =   1320
         Width           =   1335
      End
      Begin VB.TextBox txtFinishDate 
         Enabled         =   0   'False
         Height          =   270
         Left            =   1200
         MaxLength       =   20
         TabIndex        =   6
         Top             =   1680
         Width           =   1335
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "客户单位"
         Height          =   180
         Left            =   240
         TabIndex        =   20
         Top             =   645
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "联系人"
         Height          =   180
         Left            =   240
         TabIndex        =   19
         Top             =   1005
         Width           =   540
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "联系电话"
         Height          =   180
         Left            =   2880
         TabIndex        =   18
         Top             =   1005
         Width           =   720
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "预算金额"
         Height          =   180
         Left            =   240
         TabIndex        =   17
         Top             =   1365
         Width           =   720
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "预算利润"
         Height          =   180
         Left            =   2880
         TabIndex        =   16
         Top             =   1380
         Width           =   720
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "完成日期"
         Height          =   180
         Left            =   240
         TabIndex        =   15
         Top             =   1725
         Width           =   720
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "申请人"
         Height          =   180
         Left            =   240
         TabIndex        =   14
         Top             =   2085
         Width           =   540
      End
      Begin VB.Label lblFillin 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "lblFill_in"
         Height          =   180
         Left            =   1200
         TabIndex        =   13
         Top             =   2085
         Width           =   900
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "申请日期"
         Height          =   180
         Left            =   2880
         TabIndex        =   12
         Top             =   2085
         Width           =   720
      End
      Begin VB.Label lblFilldate 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "lblFilldate"
         Height          =   180
         Left            =   3840
         TabIndex        =   11
         Top             =   2085
         Width           =   990
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "项目名称"
         Height          =   180
         Left            =   240
         TabIndex        =   10
         Top             =   285
         Width           =   720
      End
   End
   Begin VB.CommandButton Cmd_Cancel 
      BackColor       =   &H80000000&
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   3180
      MouseIcon       =   "FrmProjSel.frx":1272
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   8
      Top             =   2880
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Ok 
      BackColor       =   &H80000000&
      Caption         =   "确 定"
      Height          =   400
      Left            =   1380
      MouseIcon       =   "FrmProjSel.frx":157C
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   7
      Top             =   2880
      Width           =   1300
   End
End
Attribute VB_Name = "FrmProjSel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public ClickOK As Boolean

Private Sub Cmd_Cancel_Click()
  ClickOK = False
  Unload Me
End Sub

Private Sub Cmd_OK_Click()
  '判断是否选择了项目
  If ComboProj.Text = "" Then
    MsgBox "请选择项目"
    Exit Sub
  End If
  '把用户选择的数据读取到CurProj对象中
  CurProj.GetInfo (Arr_ProjId(ComboProj.ListIndex))
  Unload Me
End Sub

Private Sub ComboProj_Click()
  If ComboProj.Text = "" Then
    txtClient = ""
    txtContact = ""
    txtTel = ""
    txtAmount = ""
    txtBenefit = ""
    txtFinishDate = ""
    lblFillin = ""
    lblFilldate = ""
  Else
    MyProj.GetInfo (Arr_ProjId(ComboProj.ListIndex))
    txtClient = MyProj.Client
    txtContact = MyProj.Contact
    txtTel = MyProj.Ctel
    txtAmount = MyProj.Amount0
    txtBenefit = MyProj.Benefit0
    txtFinishDate = MyProj.FinishDate0
    lblFillin = MyProj.ApplyEmp
    lblFilldate = MyProj.ApplyDate
  End If
  ClickOK = True
End Sub

Private Sub Form_Load()
  Dim i As Integer
  Call MyProj.Loadproj(CurUser.Ename, CurUser.UserType)
  i = 0
  Do While Arr_ProjId(i) > 0
    ComboProj.AddItem Arr_ProjName(i)
    i = i + 1
  Loop
  If ComboProj.ListCount > 0 Then
    ComboProj.ListIndex = 0
  End If
  ComboProj_Click
End Sub

⌨️ 快捷键说明

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