资源名称: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 = 6510
- ClientLeft = 1380
- ClientTop = 1440
- ClientWidth = 11835
- HelpContextID = 17
- 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 = "11:49"
- 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":08CA
- Key = "stb"
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":0D1E
- Key = "xttb"
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":1176
- Key = "qx"
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":15D6
- Key = "kplr"
- EndProperty
- BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":1A2A
- Key = "kpgl"
- EndProperty
- BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":1E8A
- Key = "tcxt"
- EndProperty
- BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":21A6
- Key = "szk"
- EndProperty
- BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主界面.frx":25FE
- 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 v5
- Caption = "-"
- End
- Begin VB.Menu c_quit
- Caption = "退出系统(&Q)"
- End
- End
- Begin VB.Menu Cask_Start
- Caption = "期初处理(&Q)"
- Begin VB.Menu Cask_StartInput
- Caption = "期初数据录入(&L)"
- End
- Begin VB.Menu Cask_StartInputList
- Caption = "期初数据列表(&B)"
- End
- Begin VB.Menu Cask_StartChalk
- Caption = "期初结帐(&J)"
- End
- Begin VB.Menu Cask_ComebackChalk
- Caption = "恢复期初结帐(&H)"
- End
- End
- Begin VB.Menu c_jcsz
- Caption = "基础设置(&I)"
- Begin VB.Menu Cask_Status
- Caption = "状态设置(&Z)"
- End
- Begin VB.Menu Cask_Sort
- Caption = "类别设置(&S)"
- End
- Begin VB.Menu Cask_StyleType
- Caption = "业务类型设置(&T)"
- End
- Begin VB.Menu Cask_Wrappage
- Caption = "包装物档案(&W)"
- End
- End
- Begin VB.Menu Cask_Transact
- Caption = "业务处理(&R)"
- Begin VB.Menu Cask_Harvest
- Caption = "入库单(&H)"
- End
- Begin VB.Menu Cask_Issue
- Caption = "出库单(&I)"
- End
- Begin VB.Menu Cask_AppertainIn
- Caption = "附属物入库单(&F)"
- End
- Begin VB.Menu Cask_AppertainOut
- Caption = "附属物出库单(&C)"
- End
- End
- Begin VB.Menu Cask_BillList
- Caption = "单据列表(&D)"
- Begin VB.Menu Cask_HarvestList
- Caption = "入库单列表(&R)"
- End
- Begin VB.Menu Cask_IssueList
- Caption = "出库单列表(&C)"
- End
- Begin VB.Menu Cask_AppertainInList
- Caption = "附属物入库单列表(&I)"
- End
- Begin VB.Menu Cask_AppertainOuList
- Caption = "附属物出库单列表(&O)"
- End
- End
- Begin VB.Menu Cask_Month
- Caption = "结帐处理(&J)"
- Begin VB.Menu Cask_CheckOut
- Caption = "月末结帐(&Y)"
- End
- Begin VB.Menu Cask_Comeback
- Caption = "恢复月末结帐(&H)"
- End
- End
- Begin VB.Menu Cask_LedgerAssay
- Caption = "帐簿统计(&Z)"
- Begin VB.Menu Cask_WasteBook
- Caption = "包装物流水帐(&L)"
- End
- Begin VB.Menu Cask_Estrade
- Caption = "包装物台帐(&T)"
- End
- Begin VB.Menu Cask_Ledger
- Caption = "包装物总帐(&K)"
- End
- Begin VB.Menu Cask_HarvestStat
- Caption = "入库汇总统计(&R)"
- End
- Begin VB.Menu Cask_IssueStat
- Caption = "出库汇总统计(&C)"
- End
- Begin VB.Menu Cask_CollectStat
- Caption = "收发存汇总统计(&H)"
- End
- Begin VB.Menu Cask_StatusCollect
- Caption = "状态汇总统计(&S)"
- End
- Begin VB.Menu Cask_StyleTypCollect
- Caption = "业务类型汇总统计(&Y)"
- End
- End
- Begin VB.Menu Cask_gnbm
- Caption = "工具(&T)"
- Begin VB.Menu Cask_gnbmjsq
- Caption = "计算器(&S)"
- End
- Begin VB.Menu Cask_gnbmkmrl
- Caption = "会计日历(&C)"
- End
- End
- Begin VB.Menu mnuwindows
- Caption = "窗口(&W)"
- 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)"
- 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
- '**************************************
- '* 模 块 名 称 :财务总帐系统主窗体
- '* 功 能 描 述 :作为系统主界面
- '* 程序员姓名 : 张建忠
- '* 最后修改人 : 邹力
- '* 最后修改时间:2001/12/03
- '**************************************
- Dim Tsxx As String '系统提示信息
- Private Sub c_gy_Click() '关于
- Call Xt_Control.Zxxymk("Cask_gy")
- End Sub
- Private Sub c_wshxxd_Click() '网上华夏新达
- Call Xt_Control.Zxxymk("Cask_wshxxd")
- End Sub
- Private Sub c_xtbz_Click() '系统帮助
- Call Xt_Control.Zxxymk("Cask_xtbz")
- End Sub
- Private Sub Cask_AppertainIn_Click() '附属物入库单
- Call Xt_Control.Zxxymk("Cask_AppertainIn")
- End Sub
- Private Sub Cask_AppertainInList_Click() '附属物入库单列表
- Call Xt_Control.Zxxymk("Cask_AppertainInList")
- End Sub
- Private Sub Cask_AppertainOuList_Click() '附属物出库单列表
- Call Xt_Control.Zxxymk("Cask_AppertainOuList")
- End Sub
- Private Sub Cask_AppertainOut_Click() '附属物出库单
- Call Xt_Control.Zxxymk("Cask_AppertainOut")
- End Sub
- Private Sub Cask_CollectStat_Click() '收发存汇总表统计
- Call Xt_Control.Zxxymk("Cask_CollectStat")
- End Sub
- Private Sub Cask_Estrade_Click() '包装物台帐
- Call Xt_Control.Zxxymk("Cask_Estrade")
- End Sub
- Private Sub c_quit_Click() '退出系统
- Unload Me
- End Sub
- Private Sub C_Register_Click() '重新注册
- Call Xt_Control.Zxxymk("Cask_Register")
- End Sub
- Private Sub Cask_CheckOut_Click() '月未结帐
- Call Xt_Control.Zxxymk("Cask_CheckOut")
- End Sub
- Private Sub Cask_Comeback_Click() '恢复月末结帐
- Call Xt_Control.Zxxymk("Cask_Comeback")
- End Sub
- Private Sub Cask_ComebackChalk_Click() '恢复期初结帐
- Call Xt_Control.Zxxymk("Cask_ComebackChalk")
- End Sub
- Private Sub Cask_gnbmjsq_Click() '计算器
- Call Xt_Control.Zxxymk("Cask_gnbmjsq")
- End Sub
- Private Sub Cask_gnbmkmrl_Click() '会计日历
- Call Xt_Control.Zxxymk("Cask_gnbmkmrl")
- End Sub
- Private Sub Cask_Harvest_Click() '入库单
- Call Xt_Control.Zxxymk("Cask_Harvest")
- End Sub
- Private Sub Cask_HarvestList_Click() '入库单列表
- Call Xt_Control.Zxxymk("Cask_HarvestList")
- End Sub
- Private Sub Cask_HarvestStat_Click() '入库汇总统计
- Call Xt_Control.Zxxymk("Cask_HarvestStat")
- End Sub
- Private Sub Cask_Issue_Click() '出库单
- Call Xt_Control.Zxxymk("Cask_Issue")
- End Sub
- Private Sub Cask_IssueList_Click() '出库单列表
- Call Xt_Control.Zxxymk("Cask_IssueList")
- End Sub
- Private Sub Cask_IssueStat_Click() '出库汇总统计
- Call Xt_Control.Zxxymk("Cask_IssueStat")
- End Sub
- Private Sub Cask_Ledger_Click() '包装物总帐
- Call Xt_Control.Zxxymk("Cask_Ledger")
- End Sub
- Private Sub Cask_Sort_Click() '类别设置
- Call Xt_Control.Zxxymk("Cask_Sort")
- End Sub
- Private Sub Cask_StartChalk_Click() '期初结帐
- Call Xt_Control.Zxxymk("Cask_StartChalk")
- End Sub
- Private Sub Cask_StartInput_Click() '期初数据录入
- Call Xt_Control.Zxxymk("Cask_StartInput")
- End Sub
- Private Sub Cask_StartInputList_Click() '期初数据列表
- Call Xt_Control.Zxxymk("Cask_StartInputList")
- End Sub
- Private Sub Cask_Status_Click() '状态设置
- Call Xt_Control.Zxxymk("Cask_Status")
- End Sub
- Private Sub Cask_StatusCollect_Click() '状态汇总统计
- Call Xt_Control.Zxxymk("Cask_StatusCollect")
- End Sub
- Private Sub Cask_StyleTypCollect_Click() '业务类型汇总统计
- Call Xt_Control.Zxxymk("Cask_StyleTypCollect")
- End Sub
- Private Sub Cask_StyleType_Click() '业务类型设置
- Call Xt_Control.Zxxymk("Cask_StyleType")
- End Sub
- Private Sub Cask_WasteBook_Click() '包装物流水帐
- Call Xt_Control.Zxxymk("Cask_WasteBook")
- End Sub
- Private Sub Cask_Wrappage_Click() '包装物档案
- Call Xt_Control.Zxxymk("Cask_Wrappage")
- 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 vbTileVertical
- End Sub
- Private Sub mnuWindowTileVertical_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 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