资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:3k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form YS_FrmProfitBudgetC
- BorderStyle = 3 'Fixed Dialog
- Caption = "利润预算条件"
- ClientHeight = 1080
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 3510
- HelpContextID = 411004004
- Icon = "预算设置_利润预算条件.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1080
- ScaleWidth = 3510
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 '屏幕中心
- Begin VB.Frame Frame1
- Height = 645
- Left = 60
- TabIndex = 2
- Top = 0
- Width = 3375
- Begin VB.ComboBox Cbo_AccountYear
- Height = 300
- Left = 990
- Style = 2 'Dropdown List
- TabIndex = 3
- Top = 210
- Width = 2265
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "会计年度:"
- Height = 195
- Left = 120
- TabIndex = 4
- Top = 270
- Width = 765
- End
- End
- Begin VB.CommandButton Command1
- Caption = "确定(&O)"
- Height = 300
- Left = 1115
- TabIndex = 1
- Top = 720
- Width = 1120
- End
- Begin VB.CommandButton Command2
- Caption = "取消(&C)"
- Height = 300
- Left = 2315
- TabIndex = 0
- Top = 720
- Width = 1120
- End
- End
- Attribute VB_Name = "YS_FrmProfitBudgetC"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '*************************************************************
- '* 模 块 名 称 :利润预算表选择
- '* 功 能 描 述 :选择会计年度
- '* 程序员姓名 :魏永生
- '* 最后修改人 :
- '* 最后修改时间:200/01/21
- '* 备 注:
- '*************************************************************
- '会计年度选择窗体
- Private Sub Command1_Click()
- Int_OriYear = Val(Cbo_AccountYear.Text)
- Load YS_FrmProfitBudget
- YS_FrmProfitBudget.Show
- End Sub
- '退出
- Private Sub Command2_Click()
- Unload Me
- End Sub
- '添加会计年度
- Private Sub Form_Load()
- Dim temRs As New ADODB.Recordset
- Dim strSql As String
- Dim i As Integer
- strSql = "SELECT DISTINCT kjyear FROM gy_kjrlb"
- Set temRs = Cw_DataEnvi.DataConnect.Execute(strSql)
- Int_OriYear = Year(Now)
- For i = Int_OriYear + 2 To Int_OriYear - temRs.RecordCount + 1 Step -1
- Cbo_AccountYear.AddItem Str(i)
- Next i
- Cbo_AccountYear.ListIndex = 2
- If temRs.State = adStateOpen Then temRs.Close
- Set temRs = Nothing
- End Sub