资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:15k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
- Begin VB.MDIForm XT_Main
- BackColor = &H00FF0000&
- 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 = "20:22"
- 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 pm_File
- Caption = "文件(&F)"
- Begin VB.Menu pm_Register
- Caption = "重新注册(&R)"
- End
- Begin VB.Menu v5
- Caption = "-"
- End
- Begin VB.Menu pm_exit
- Caption = "退出系统(&Q)"
- End
- End
- Begin VB.Menu pm_baseSet
- Caption = "基础设置(&I)"
- Begin VB.Menu pm_Rs_Set_RsItems
- Caption = "人事项目设置(&H)"
- End
- Begin VB.Menu Pm_Rs_Set_Position
- Caption = "人事项目排列(&G)"
- End
- Begin VB.Menu v6
- Caption = "-"
- End
- Begin VB.Menu PM_Bank
- Caption = "银行信息(&B)"
- End
- Begin VB.Menu pm_TaxRate
- Caption = "税率设置(&T)"
- End
- Begin VB.Menu pm_Item
- Caption = "项目设置(&I)"
- End
- Begin VB.Menu pm_Sort
- Caption = "类别设置(&S)"
- End
- Begin VB.Menu PM_OpePope
- Caption = "操作员权限设置(&O)"
- End
- Begin VB.Menu pm_SortItem
- Caption = "类别项目选择(&R)"
- End
- Begin VB.Menu pm_SortEmp
- Caption = "类别人员选择(&E)"
- End
- Begin VB.Menu pm_BankItem
- Caption = "代发栏目设置(&C)"
- End
- Begin VB.Menu pm_RsItem
- Caption = "人事项目选择(&M)"
- End
- Begin VB.Menu PM_standTbl
- Caption = "标准表(&D)"
- End
- Begin VB.Menu pm_formula
- Caption = "公式定义(&F)"
- End
- Begin VB.Menu PM_ReportItem
- Caption = "报表项目选择(&C)"
- End
- End
- Begin VB.Menu pm_daily
- Caption = "日常处理(&D)"
- Begin VB.Menu pm_RsInfo
- Caption = "人事信息维护(&S)"
- End
- Begin VB.Menu Pm_RsQuery
- Caption = "人事信息查询(&Q)"
- End
- Begin VB.Menu a
- Caption = "-"
- End
- Begin VB.Menu pm_Copy
- Caption = "复制数据(&C)"
- End
- Begin VB.Menu pm_Attend
- Caption = "考勤录入(&A)"
- End
- Begin VB.Menu PM_ComputeSalary
- Caption = "计算工资(&W)"
- End
- Begin VB.Menu PM_BankPayOff
- Caption = "银行代发(&B)"
- End
- Begin VB.Menu pm_endMonth
- Caption = "月末结转(&E)"
- End
- End
- Begin VB.Menu PM_Report
- Caption = "报表管理(&R)"
- Begin VB.Menu PM_Tax
- Caption = "个人所得税(&T)"
- End
- Begin VB.Menu s
- Caption = "-"
- End
- Begin VB.Menu Pm_SalarySignal
- Caption = "工资签名表(&P)"
- End
- Begin VB.Menu Pm_RepSalaryPay
- Caption = "工资发放表(&G)"
- End
- Begin VB.Menu Pm_RepSalarySum
- Caption = "工资汇总表(&H)"
- End
- Begin VB.Menu Pm_RepAttend
- Caption = "考勤分析表(&A)"
- End
- End
- Begin VB.Menu c_gnbm
- Caption = "工具(&T)"
- Index = 401
- Begin VB.Menu pm_cal
- Caption = "计算器(&s)"
- End
- Begin VB.Menu pm_calendar
- Caption = "会计日历(&C)"
- End
- End
- Begin VB.Menu mnuwindows
- Caption = "窗口(&W)"
- Index = 501
- WindowList = -1 'True
- Begin VB.Menu mnuWindowCascade
- Caption = "层叠(&C)"
- End
- Begin VB.Menu mnuWindowTileHorizontal
- Caption = "横向平铺(&H)"
- End
- Begin VB.Menu mnuWindowTileVertical
- Caption = "纵向平铺(&V)"
- End
- Begin VB.Menu mnuWindowArrangeIcons
- Caption = "排列图标(&A)"
- End
- End
- Begin VB.Menu c_bz
- Caption = "帮助(&H)"
- Index = 601
- Begin VB.Menu pm_helptopic
- Caption = "系统帮助(&S)"
- End
- Begin VB.Menu pm_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
- '**************************************
- '* 模 块 名 称 :工资管理系统主窗体
- '* 功 能 描 述 :作为系统主界面
- '* 程序员姓名 : 张建忠
- '* 最后修改人 : 田建秀
- '* 最后修改时间:2002/01/10
- '**************************************
- Dim Tsxx As String '系统提示信息
- '主窗体击活
- 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 mnuWindowTileVertical_Click() '窗口纵向平铺
- Me.Arrange vbTileVertical
- 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 pm_about_Click()
- Call Xt_Control.Zxxymk("pm_about")
- End Sub
- Private Sub pm_Attend_Click()
- Call Xt_Control.Zxxymk("pm_Attend")
- End Sub
- Private Sub PM_Bank_Click()
- Call Xt_Control.Zxxymk("PM_Bank")
- End Sub
- Private Sub pm_BankItem_Click()
- Call Xt_Control.Zxxymk("pm_BankItem")
- End Sub
- Private Sub PM_BankPayOff_Click()
- Call Xt_Control.Zxxymk("pm_BankPayOff")
- End Sub
- Private Sub pm_CalWage_Click()
- Call Xt_Control.Zxxymk("pm_CalWage")
- End Sub
- Private Sub pm_CalExe_Click()
- Call Xt_Control.Zxxymk("pm_CalExe")
- End Sub
- Private Sub pm_cal_Click()
- Call Xt_Control.Zxxymk("pm_cal")
- End Sub
- Private Sub pm_calendar_Click()
- Call Xt_Control.Zxxymk("pm_calendar")
- End Sub
- Private Sub PM_ComputeSalary_Click()
- Call Xt_Control.Zxxymk("pm_ComputeSalary")
- End Sub
- Private Sub pm_Copy_Click()
- Call Xt_Control.Zxxymk("pm_Copy")
- End Sub
- Private Sub pm_endMonth_Click()
- Call Xt_Control.Zxxymk("pm_endMonth")
- End Sub
- Private Sub pm_exit_Click()
- Call Xt_Control.Zxxymk("pm_exit")
- End Sub
- Private Sub pm_formula_Click()
- Call Xt_Control.Zxxymk("pm_formula")
- End Sub
- Private Sub pm_helptopic_Click()
- Call Xt_Control.Zxxymk("pm_helptopic")
- End Sub
- Private Sub pm_Item_Click()
- Call Xt_Control.Zxxymk("pm_Item")
- End Sub
- Private Sub PM_OpePope_Click()
- Call Xt_Control.Zxxymk("pm_OpePope")
- End Sub
- Private Sub PM_OpePopedom_Click()
- End Sub
- Private Sub pm_Register_Click()
- Call Xt_Control.Zxxymk("pm_Register")
- End Sub
- Private Sub Pm_RepAttend_Click()
- Call Xt_Control.Zxxymk("pm_RepAttend")
- End Sub
- Private Sub PM_ReportItem_Click()
- Call Xt_Control.Zxxymk("pm_ReportItem")
- End Sub
- Private Sub Pm_RepSalaryPay_Click()
- Call Xt_Control.Zxxymk("pm_RepSalaryPay")
- End Sub
- Private Sub Pm_RepSalarySum_Click()
- Call Xt_Control.Zxxymk("pm_RepSalarySum")
- End Sub
- Private Sub Pm_Rs_Set_Position_Click()
- Call Xt_Control.Zxxymk("pm_Rs_Set_Position")
- End Sub
- Private Sub pm_Rs_Set_RsItems_Click()
- Call Xt_Control.Zxxymk("pm_Rs_Set_RsItems")
- End Sub
- Private Sub pm_RsInfo_Click()
- Call Xt_Control.Zxxymk("pm_RsInfo")
- End Sub
- Private Sub pm_RsItem_Click()
- Call Xt_Control.Zxxymk("pm_RsItem")
- End Sub
- Private Sub Pm_RsQuery_Click()
- Call Xt_Control.Zxxymk("pm_RsQuery")
- End Sub
- Private Sub Pm_SalarySignal_Click()
- Call Xt_Control.Zxxymk("pm_SalarySignal")
- End Sub
- Private Sub pm_Sort_Click()
- Call Xt_Control.Zxxymk("pm_Sort")
- End Sub
- Private Sub pm_SortEmp_Click()
- Call Xt_Control.Zxxymk("pm_SortEmp")
- End Sub
- Private Sub pm_SortItem_Click()
- Call Xt_Control.Zxxymk("pm_SortItem")
- End Sub
- Private Sub PM_standTbl_Click()
- Call Xt_Control.Zxxymk("pm_standTbl")
- End Sub
- Private Sub PM_Tax_Click()
- Call Xt_Control.Zxxymk("pm_Tax")
- End Sub
- Private Sub pm_TaxRate_Click()
- Call Xt_Control.Zxxymk("pm_TaxRate")
- 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