资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:16k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
- Begin VB.MDIForm XT_Main
- BackColor = &H00FF8080&
- Caption = "百利/ERP5.0-固定资产"
- ClientHeight = 8310
- ClientLeft = 1380
- ClientTop = 1440
- ClientWidth = 11880
- HelpContextID = 5
- Icon = "系统_主界面.frx":0000
- LockControls = -1 'True
- WindowState = 2 'Maximized
- Begin VB.Timer Timer1
- Interval = 1
- Left = 3360
- Top = 1380
- End
- Begin MSComctlLib.StatusBar StatusBar1
- Align = 2 'Align Bottom
- Height = 375
- Left = 0
- TabIndex = 0
- Top = 7935
- Width = 11880
- _ExtentX = 20955
- _ExtentY = 661
- _Version = 393216
- BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
- NumPanels = 6
- BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- AutoSize = 2
- Object.Width = 5292
- MinWidth = 5292
- Key = "OperStatus"
- EndProperty
- BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Object.Width = 5292
- MinWidth = 5292
- Key = "zt"
- EndProperty
- BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- AutoSize = 2
- Object.Width = 2117
- MinWidth = 2117
- Key = "czy"
- EndProperty
- BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- AutoSize = 2
- Object.Width = 3519
- MinWidth = 3528
- Key = "rq"
- EndProperty
- BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- Style = 5
- Object.Width = 1411
- MinWidth = 1411
- TextSave = "1:26"
- Key = "sj"
- EndProperty
- BeginProperty Panel6 {8E3867AB-8586-11D1-B16A-00C0F0283628}
- AutoSize = 2
- Object.Width = 3519
- MinWidth = 3528
- Key = "rjbb"
- EndProperty
- EndProperty
- End
- Begin MSComctlLib.ImageList ImageList1
- Left = 11070
- Top = 510
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 8
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":1042
- Key = "stb"
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":1496
- Key = "xttb"
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":18EE
- Key = "qx"
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":1D4E
- Key = "kplr"
- EndProperty
- BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":21A2
- Key = "kpgl"
- EndProperty
- BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":2602
- Key = "tcxt"
- EndProperty
- BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":291E
- Key = "szk"
- EndProperty
- BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":2D76
- Key = "gnqx"
- EndProperty
- EndProperty
- End
- Begin VB.Menu c_File
- Caption = "文件(&F)"
- Index = 101
- Begin VB.Menu C_Register
- Caption = "重新注册(&R)"
- End
- Begin VB.Menu LedgerManage
- Caption = "帐簿清理(&D)"
- End
- Begin VB.Menu c_quit
- Caption = "退出系统(&Q)"
- End
- End
- Begin VB.Menu c_jcsz
- Caption = "基础设置(&I)"
- Begin VB.Menu Addset
- Caption = "辅助项目设置(&A)"
- End
- Begin VB.Menu FASort
- Caption = "资产类别设置(&S)"
- End
- Begin VB.Menu c_khdasz
- Caption = "变动方式设置(&K)"
- End
- Begin VB.Menu c_chdasz
- Caption = "使用状况设置(&C)"
- End
- End
- Begin VB.Menu CardManage
- Caption = "卡片管理(&M)"
- Begin VB.Menu FAVari
- Caption = "资产卡片操作(&B)"
- End
- End
- Begin VB.Menu OperateManage
- Caption = "业务处理(&O)"
- Begin VB.Menu Activites
- Caption = "本期工作量录入(&A)"
- End
- Begin VB.Menu Depr
- Caption = "本期计提折旧(&D)"
- End
- Begin VB.Menu ReDepr
- Caption = "恢复计提折旧(&R)"
- End
- Begin VB.Menu Check
- Caption = "月末结帐(&C)"
- End
- End
- Begin VB.Menu c_yhdz
- Caption = "帐簿报表(&C)"
- Begin VB.Menu CardList
- Caption = "资产清单报表(&L)"
- End
- Begin VB.Menu Varilist
- Caption = "资产变动报表(&V)"
- End
- Begin VB.Menu OverList
- Caption = "超龄资产报表(&O)"
- End
- Begin VB.Menu Zz
- Caption = "固定资产总帐(&Z)"
- End
- Begin VB.Menu Mxbb
- Caption = "资产明细报表(&M)"
- End
- Begin VB.Menu FATotal
- Caption = "资产统计报表(&T)"
- End
- Begin VB.Menu DeprSum
- Caption = "折旧计算报表(&S)"
- End
- Begin VB.Menu jzjgfx
- Caption = "价值结构分析(&A)"
- End
- End
- Begin VB.Menu c_gnbm
- Caption = "工具(&T)"
- Begin VB.Menu c_gnbmjsq
- Caption = "计算器(&S)"
- End
- Begin VB.Menu c_gnbmkmrl
- Caption = "会计日历(&C)"
- End
- End
- Begin VB.Menu ck
- Caption = "窗口(&W)"
- Begin VB.Menu cd
- Caption = "层叠(&C)"
- End
- Begin VB.Menu hxpp
- Caption = "横向平铺(&H)"
- End
- Begin VB.Menu zxpp
- Caption = "纵向平铺(&V)"
- End
- Begin VB.Menu pltb
- Caption = "排列图标(&A)"
- End
- End
- Begin VB.Menu c_bz
- Caption = "帮助(&H)"
- Begin VB.Menu c_xtbz
- Caption = "系统帮助(&S)"
- End
- Begin VB.Menu c_gy
- Caption = "关于(&A)"
- End
- End
- End
- Attribute VB_Name = "XT_Main"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- '**************************************
- '* 模 块 名 称 :财务总帐系统主窗体
- '* 功 能 描 述 :作为系统主界面
- '* 程序员姓名 : 张建忠
- '* 最后修改人 : 张建忠
- '* 最后修改时间:2000/08/11
- '**************************************
- Dim Tsxx As String '系统提示信息
- Dim Rs_Temp As ADODB.Recordset '打开数据集变量
- Private Sub Activites_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_Activities_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Set Rs_Temp = New ADODB.Recordset
- Rs_Temp.Open "select * from gdzc_card where DeprFlag='1'", Cw_DataEnvi.DataConnect, adOpenDynamic, adLockOptimistic
- If Not Rs_Temp.EOF Then
- Tsxx = "本月已经计提折旧,请先恢复计提折旧,或执行月末结帐!"
- Call Xtxxts(Tsxx, 0, 4)
- Exit Sub
- Else
- Oper_Bqgzllr.Show 1
- End If
- Security_Log "Gdzc_Activities", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub Addset_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_AddSet_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Jcsz_Custom.Show 1
- Security_Log "Gdzc_AddSet", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub c_chdasz_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_FAUseState_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Jcsz_State.Show 1
- Security_Log "Gdzc_FAUseState", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub c_gnbmjsq_Click()
- Shell App.Path & "calc.exe", vbNormalFocus
- End Sub
- Private Sub c_gnbmkmrl_Click()
- XT_kjrlFrm.Show 1
- End Sub
- Private Sub c_gy_Click()
- XT_frmAbout.Show
- End Sub
- Private Sub c_khdasz_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_Variation_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Jcsz_VariationMode.Show 1
- Security_Log "Gdzc_Variation", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub c_quit_Click()
- Unload XT_Main
- End Sub
- Private Sub C_Register_Click()
- XT_login.Show 1
- End Sub
- Private Sub c_wshxxd_Click()
- XT_frmBrowser.Show 1
- End Sub
- Private Sub c_xtbz_Click()
- Call F1bz
- End Sub
- Private Sub CardList_Click()
- Book_CardList.Show
- Book_CardList_Search.Show 1
- End Sub
- Private Sub cd_Click()
- Me.Arrange vbCascade
- End Sub
- Private Sub Check_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_Check-Out_edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Set Rs_Temp = New ADODB.Recordset
- Rs_Temp.Open "select * from gdzc_card where DeprFlag='0' and [Check-outFlag]='0'", Cw_DataEnvi.DataConnect, adOpenDynamic, adLockOptimistic
- If Not Rs_Temp.EOF Then
- Tsxx = "本月未计提折旧,请先执行计提折旧!"
- Call Xtxxts(Tsxx, 0, 4)
- Exit Sub
- Else
- Oper_CheckOut.Show 1
- End If
- Security_Log "Gdzc_Check-Out", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub Depr_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_Depr_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Oper_Depr.Show 1
- Security_Log "Gdzc_Depr", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub DeprSum_Click()
- Book_Depr.Show
- Book_Depr_Search.Show 1
- End Sub
- Private Sub FASort_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_FaSort_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Jcsz_FASort.Show 1
- Security_Log "Gdzc_FaSort", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub FATotal_Click()
- Book_Total.Show
- Book_Total_Search.Show 1
- End Sub
- Private Sub FAVari_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_Jbcz_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Kpgl_CardList.Show
- Kpgl_Search.Show 1
- Security_Log "Gdzc_Jbcz", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub hxpp_Click()
- Me.Arrange vbTileVertical
- End Sub
- Private Sub jzjgfx_Click()
- Book_Value.Show
- Book_Value_Search.Show 1
- End Sub
- Private Sub LedgerManage_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_Ledger_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- ZbqlFrm.Show 1
- Security_Log "Gdzc_Ledger_Edit", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- '主窗体击活
- Private Sub MDIForm_Activate()
- Timer1.Enabled = True
- End Sub
- Private Sub MDIForm_Load()
- '调入主操作界面
- Xt_Control.Show
- End Sub
- Private Sub MDIForm_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- On Error Resume Next
- Dim Jsqte As Integer
- If Not Tcxt Then
- Cancel = True
- Else
- Unload_TF = True
- For Jsqte = 0 To Forms.count - 1
- Unload Forms(Jsqte)
- Next Jsqte
- End
- End If
- End Sub
- Private Sub mnuWindowArrangeIcons_Click() '窗口排列图标
- Me.Arrange vbArrangeIcons
- End Sub
- Private Sub mnuWindowTileHorizontal_Click() '窗口纵向平铺
- Me.Arrange vbTileHorizontal
- End Sub
- Private Sub mnuWindowCascade_Click() '窗口层叠
- Me.Arrange vbCascade
- End Sub
- '************************'以下为程序固定不变部分*********************'
- Private Function Tcxt() As Boolean '退出系统提示
- Dim Answer As Integer
- Tsxx = "请确认是否退出系统?"
- Answer = Xtxxts(Tsxx, 2, 2)
- If Answer = 1 Then
- Tcxt = True
- Else
- Tcxt = False
- End If
- End Function
- Private Sub Mxbb_Click()
- Book_Parti.Show
- Book_Parti_Search.Show 1
- End Sub
- Private Sub OverList_Click()
- Book_OverList.Show
- End Sub
- Private Sub pltb_Click()
- Me.Arrange vbArrangeIcons
- End Sub
- Private Sub ReDepr_Click()
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log("Gdzc_ReSet_Edit", Xtczybm, 1) Then
- Exit Sub
- End If
- Set Rs_Temp = New ADODB.Recordset
- Rs_Temp.Open "select * from gdzc_card where DeprFlag='0' and [Check-outFlag]='0'", Cw_DataEnvi.DataConnect, adOpenDynamic, adLockOptimistic
- If Not Rs_Temp.EOF Then
- Tsxx = "本月未计提折旧,不用恢复计提折旧!"
- Call Xtxxts(Tsxx, 0, 4)
- Exit Sub
- Else
- Oper_DeprBack.Show 1
- End If
- Security_Log "Gdzc_ReSet", Xtczybm, 2, False '用户退出时写上机日志
- End Sub
- Private Sub Timer1_Timer() '在窗体激活后调入程序
- Timer1.Enabled = False
- If XT_login.QdCheck.Value = 1 Then
- Call Xtcsh
- XT_login.QdCheck.Value = 0
- End If
- End Sub
- Private Sub Xtcsh() '系统主控制台及全局变量初始化
- With XT_login
- Xtczybm = Trim(Mid(.CzyCombo.Text, 1, InStr(1, .CzyCombo.Text, "-") - 1))
- Xtczy = Trim(Mid(.CzyCombo.Text, InStr(1, .CzyCombo.Text, "-") + 1, Len(.CzyCombo.Text)))
- Xtztbm = Trim(Mid(.ZtCombo.Text, 1, InStr(1, .ZtCombo.Text, "-") - 1))
- Xtdwm = Trim(Mid(.ZtCombo.Text, InStr(1, .ZtCombo.Text, "-") + 1, Len(.ZtCombo.Text)))
- '用户选择系统年度
- Xtyear = Val(.KjyearCombo.Text)
- '用户选择系统会计期间
- Set Xtrlrec = Cw_DataEnvi.DataConnect.Execute("Select * From gy_kjrlb where qsrq<='" + .CzrqText.Text + "' and zzrq>='" + .CzrqText.Text + "'")
- If Not Xtrlrec.EOF Then
- Xtmm = Xtrlrec.Fields("period")
- End If
- '会计期间划分个数
- Xtkjqjgs = 12
- '业务操作日期
- Xtrq = CDate(.CzrqText.Text)
- End With
- With XT_Main.StatusBar1
- .Panels("OperStatus") = "就绪"
- .Panels("zt").Text = Xtdwm
- .Panels("czy").Text = Xtczy
- .Panels("rq").Text = "业务日期:" + Format(Xtrq, "yyyy-mm-dd")
- .Panels("rjbb").Text = "【百利/ERP】"
- End With
- End Sub
- Private Sub Varilist_Click()
- Book_VariList.Show
- Book_Vari_Search.Show 1
- End Sub
- Private Sub zxpp_Click()
- Me.Arrange vbTileHorizontal
- End Sub
- Private Sub Zz_Click()
- Book_CheckList.Show
- Book_Check_Search.Show 1
- End Sub