资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:3k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form YS_FrmAccntBudgetC
- BorderStyle = 3 'Fixed Dialog
- Caption = "科目预算条件"
- ClientHeight = 1110
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 2910
- HelpContextID = 411004003
- Icon = "预算设置_科目预算条件.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1110
- ScaleWidth = 2910
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 '屏幕中心
- Begin VB.Frame Frame1
- Height = 675
- Left = 60
- TabIndex = 2
- Top = 0
- Width = 2775
- Begin VB.ComboBox Cbo_AccountYear
- Height = 300
- Left = 990
- Style = 2 'Dropdown List
- TabIndex = 3
- Top = 240
- Width = 1635
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "会计年度:"
- Height = 195
- Left = 120
- TabIndex = 4
- Top = 300
- Width = 765
- End
- End
- Begin VB.CommandButton Command1
- Caption = "确定(&O)"
- Height = 300
- Left = 515
- TabIndex = 1
- Top = 750
- Width = 1120
- End
- Begin VB.CommandButton Command2
- Caption = "取消(&C)"
- Height = 300
- Left = 1715
- TabIndex = 0
- Top = 750
- Width = 1120
- End
- End
- Attribute VB_Name = "YS_FrmAccntBudgetC"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '*************************************************************
- '* 模 块 名 称 :科目预算表会计年度选择
- '* 功 能 描 述 :选择会计年度
- '* 程序员姓名 :魏永生
- '* 最后修改人 :
- '* 最后修改时间:2002/01/21
- '* 备 注:
- '*************************************************************
- '会计年度选择窗体
- Private Sub Command1_Click()
- Int_OriYear = Val(Cbo_AccountYear.Text)
- Load YS_FrmAccntBudget
- YS_FrmAccntBudget.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