资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:14k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
- Begin VB.MDIForm XT_Main
- BackColor = &H00808000&
- Caption = "百利/ERP5.0-人事管理"
- ClientHeight = 6510
- ClientLeft = 1380
- ClientTop = 1440
- ClientWidth = 11835
- Icon = "系统_主界面.frx":0000
- 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 = 6135
- Width = 11835
- _ExtentX = 20876
- _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 = "16:57"
- 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 Rs_Register
- Caption = "重新注册(&R)"
- End
- Begin VB.Menu v5
- Caption = "-"
- End
- Begin VB.Menu Rs_Exit
- Caption = "退出系统(&Q)"
- End
- End
- Begin VB.Menu c_jcsz
- Caption = "基础设置(&I)"
- Begin VB.Menu Rs_Set_Archives
- Caption = "档案设置(&A)"
- Begin VB.Menu Rs_Set_RsItems
- Caption = "人事项目设置(&I)"
- Shortcut = {F9}
- End
- Begin VB.Menu Rs_Set_Position
- Caption = "人事项目排列(&P)"
- End
- Begin VB.Menu Rs_Set_ArSort
- Caption = "档案种类设置(&K)"
- End
- Begin VB.Menu Rs_Set_ArItems
- Caption = "档案细节设置(&D)"
- End
- End
- Begin VB.Menu corHelp
- Caption = "相关帮助设置(&H)"
- Begin VB.Menu Rs_Set_HlpSort
- Caption = "帮助类别设置(&L)"
- End
- Begin VB.Menu Rs_Set_HlpList
- Caption = "帮助明细设置(&B)"
- End
- End
- Begin VB.Menu Rs_Set_Qrt
- Caption = "定员设置(&R)"
- End
- Begin VB.Menu Rs_PmItem
- Caption = "外部接口(&O)"
- End
- End
- Begin VB.Menu Rs_Deal
- Caption = "日常处理(&C)"
- Begin VB.Menu Rs_Ed_EmpArInfo
- Caption = "个人档案维护(&G)"
- Shortcut = {F11}
- End
- Begin VB.Menu Rs_Ed_EmpCorAr
- Caption = "相关档案维护(&D)"
- Shortcut = {F12}
- End
- Begin VB.Menu Rs_Ed_EmpChg
- Caption = "人事变动处理(&C)"
- End
- End
- Begin VB.Menu Rs_InfoQuery
- Caption = "信息查询(&Q)"
- Begin VB.Menu Rs_Qr_RsBasic
- Caption = "人事信息查询(&J)"
- End
- Begin VB.Menu Rs_Qr_RsAr
- Caption = "档案信息查询(&D)"
- End
- Begin VB.Menu Rs_Qr_RsChang
- Caption = "人事变动查询(&B)"
- End
- Begin VB.Menu Rs_Qr_RsQrt
- Caption = "定员情况查询(&Y)"
- End
- End
- Begin VB.Menu Rs_Analyse
- Caption = "统计分析(&Q)"
- Begin VB.Menu Rs_An_RsRelation
- Caption = "相关分析(&R)"
- End
- Begin VB.Menu Rs_An_RsAge
- Caption = "年龄分析(&N)"
- End
- Begin VB.Menu Rs_An_RsAgeLong
- Caption = "年资分析(&Z)"
- End
- End
- Begin VB.Menu c_gnbm
- Caption = "工具(&T)"
- Begin VB.Menu Rs_Cal
- Caption = "计算器(&S)"
- End
- End
- Begin VB.Menu mnuwindows
- Caption = "窗口(&W)"
- WindowList = -1 'True
- Begin VB.Menu mnuWindowsCascade
- Caption = "层叠(&C)"
- End
- Begin VB.Menu mnuWindowsTileHorizontal
- Caption = "横向平铺(&H)"
- End
- Begin VB.Menu mnuWindowsTileVertical
- Caption = "纵向平铺(&V)"
- End
- Begin VB.Menu mnuWindowsArrangeIcons
- Caption = "排列图标(&A)"
- End
- End
- Begin VB.Menu c_bz
- Caption = "帮助(&H)"
- Begin VB.Menu Rs_Comment
- Caption = "系统帮助(&S)"
- End
- Begin VB.Menu Rs_HxxdOnline
- Caption = "网上华夏新达(&O)"
- Visible = 0 'False
- End
- Begin VB.Menu Rs_About
- 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 '系统提示信息
- Private Sub c_gnbmkmrl_Click()
- Call Xt_Control.Zxxymk("Rs_kmrl")
- 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 mnuWindowsTileVertical_Click() '窗口纵向平铺
- Me.Arrange vbTileVertical
- End Sub
- Private Sub mnuWindowsTileHorizontal_Click() '窗口横向平铺
- Me.Arrange vbTileHorizontal
- End Sub
- Private Sub mnuWindowsCascade_Click() '窗口层叠
- Me.Arrange vbCascade
- End Sub
- '************************'以下为程序固定不变部分*********************'
- Private Function Tcxt() As Boolean '退出系统提示
- Dim Answer As Integer
- 'replace with —— resume comment begin
- Tsxx = "请确认是否退出系统?"
- Answer = Xtxxts(Tsxx, 2, 2)
- If Answer = 1 Then
- Tcxt = True
- Else
- Tcxt = False
- Exit Function
- End If
- ' replace end
- Tcxt = True
- End Function
- Private Sub Rs_About_Click()
- Call Xt_Control.Zxxymk("Rs_About")
- End Sub
- Private Sub Rs_An_RsAge_Click()
- Call Xt_Control.Zxxymk("Rs_An_RsAge")
- End Sub
- Private Sub Rs_An_RsAgeLong_Click()
- Call Xt_Control.Zxxymk("Rs_An_RsAgeLong")
- End Sub
- Private Sub Rs_An_RsRelation_Click()
- Call Xt_Control.Zxxymk("Rs_An_RsRelation")
- End Sub
- Private Sub Rs_Cal_Click()
- Call Xt_Control.Zxxymk("Rs_Cal")
- End Sub
- Private Sub Rs_Comment_Click()
- Call Xt_Control.Zxxymk("Rs_Comment")
- End Sub
- Private Sub Rs_Ed_EmpArInfo_Click()
- Call Xt_Control.Zxxymk("Rs_Ed_EmpArInfo")
- End Sub
- Private Sub Rs_Ed_EmpChg_Click()
- Call Xt_Control.Zxxymk("Rs_Ed_EmpChg")
- End Sub
- Private Sub Rs_Ed_EmpCorAr_Click()
- Call Xt_Control.Zxxymk("Rs_Ed_EmpCorAr")
- End Sub
- Private Sub Rs_Exit_Click()
- Call Xt_Control.Zxxymk("Rs_Exit")
- End Sub
- Private Sub Rs_HxxdOnline_Click()
- Call Xt_Control.Zxxymk("Rs_HxxdOnline")
- End Sub
- Private Sub Rs_PmItem_Click()
- Call Xt_Control.Zxxymk("Rs_PmItem")
- End Sub
- Private Sub Rs_Qr_RsAr_Click()
- Call Xt_Control.Zxxymk("Rs_Qr_RsAr")
- End Sub
- Private Sub Rs_Qr_RsBasic_Click()
- Call Xt_Control.Zxxymk("Rs_Qr_RsBasic")
- End Sub
- Private Sub Rs_Qr_RsChang_Click()
- Call Xt_Control.Zxxymk("Rs_Qr_RsChange")
- End Sub
- Private Sub Rs_Qr_RsQrt_Click()
- Call Xt_Control.Zxxymk("Rs_Qr_RsQrt")
- End Sub
- Private Sub Rs_Register_Click()
- Call Xt_Control.Zxxymk("Rs_Register")
- End Sub
- Private Sub Rs_Set_ArItems_Click()
- Call Xt_Control.Zxxymk("Rs_Set_ArItems")
- End Sub
- Private Sub Rs_Set_ArSort_Click()
- Call Xt_Control.Zxxymk("Rs_Set_ArSort")
- End Sub
- Private Sub Rs_Set_HlpSort_Click()
- Call Xt_Control.Zxxymk("Rs_Set_HlpSort")
- End Sub
- Private Sub Rs_Set_HlpList_Click()
- Call Xt_Control.Zxxymk("Rs_Set_HlpList")
- End Sub
- Private Sub Rs_Set_Position_Click()
- Call Xt_Control.Zxxymk("Rs_Set_Position")
- End Sub
- Private Sub Rs_Set_Qrt_Click()
- Call Xt_Control.Zxxymk("Rs_Set_Qrt")
- End Sub
- Private Sub Rs_Set_RsItems_Click()
- Xtcdcs = 1
- Call Xt_Control.Zxxymk("Rs_Set_RsItems")
- 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)))
- Xtkjqjgs = 12
- '业务操作日期
- Xtrq = CDate(.CzrqText.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
- 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