资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:17k
源码类别:
企业管理
开发平台:
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 = "17:06"
- 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 v5
- Caption = "-"
- End
- Begin VB.Menu c_quit
- Caption = "退出系统(&Q)"
- End
- End
- Begin VB.Menu c_jcsz
- Caption = "基础设置(&I)"
- Begin VB.Menu Tr_Type
- Caption = "车辆类型(&T)"
- End
- Begin VB.Menu Tr_Situation
- Caption = "车辆状况(&S)"
- End
- Begin VB.Menu Tr_UseNature
- Caption = "车辆使用性质(&U)"
- End
- Begin VB.Menu Tr_OwnerShip
- Caption = "车辆所有权(&O)"
- End
- Begin VB.Menu Tr_Grade
- Caption = "车辆等级(&G)"
- End
- Begin VB.Menu Tr_Park
- Caption = "车辆停车线设置(&P)"
- End
- Begin VB.Menu Tr_VehicleFile
- Caption = "车辆档案(&V)"
- End
- Begin VB.Menu Tr_TrainUnit
- Caption = "接收单位(&J)"
- End
- Begin VB.Menu Tr_Source
- Caption = "货源单位(&Y)"
- End
- End
- Begin VB.Menu c_pzcl
- Caption = "铁运管理(&T)"
- Begin VB.Menu Tr_Apply
- Caption = "货物运单(&A)"
- End
- Begin VB.Menu Tr_ApplyList
- Caption = "货物运单列表(&P)"
- End
- Begin VB.Menu Tr_Hold
- Caption = "调装单(&G)"
- End
- Begin VB.Menu Tr_HoldList
- Caption = "调装单列表(&O)"
- End
- Begin VB.Menu Tr_Invoice
- Caption = "货票单(&I)"
- End
- Begin VB.Menu Tr_InvoiceList
- Caption = "货票单列表(&N)"
- End
- Begin VB.Menu Tr_Arrive
- Caption = "车辆到达单(&R)"
- End
- Begin VB.Menu Tr_DispatchOut
- Caption = "调卸单(&D)"
- End
- Begin VB.Menu Tr_Check
- Caption = "查车单(&C)"
- End
- Begin VB.Menu Tr_DispatchWash
- Caption = "调洗单(&W)"
- End
- Begin VB.Menu Tr_Stop
- Caption = "暂放单(&S)"
- End
- Begin VB.Menu Tr_Weigh
- Caption = "检斤单(&E)"
- End
- Begin VB.Menu Tr_NowAccountList
- Caption = "现车状态(&X)"
- End
- Begin VB.Menu Tr_Move
- Caption = "调车单(&M)"
- End
- Begin VB.Menu Tr_ParkList
- Caption = "车辆在线状况(&Z)"
- End
- Begin VB.Menu Tr_Mend
- Caption = "维修单(&V)"
- End
- Begin VB.Menu Tr_MendList
- Caption = "维修单列表(&B)"
- End
- End
- Begin VB.Menu Tr_RoadShip
- Caption = "汽(水)路运输(&R)"
- Begin VB.Menu Tr_RoadLading
- Caption = "汽运提货单(&L)"
- End
- Begin VB.Menu Tr_RoadLadingList
- Caption = "汽运提货单列表(&M)"
- End
- Begin VB.Menu Tr_RoadOuting
- Caption = "汽运卸货单(&O)"
- End
- Begin VB.Menu Tr_RoadOutingList
- Caption = "汽运卸货单列表(&P)"
- End
- Begin VB.Menu Tr_RoadDeliver
- Caption = "汽运送货单(&D)"
- End
- Begin VB.Menu Tr_RoadDeliverList
- Caption = "汽运送货单列表(&E)"
- End
- Begin VB.Menu Tr_ShipDeliver
- Caption = "水运送货单(&S)"
- End
- Begin VB.Menu Tr_ShipDeliverList
- Caption = "水运送货单列表(&R)"
- End
- End
- Begin VB.Menu c_yhdz
- Caption = "台帐及统计表(&A)"
- Begin VB.Menu Tr_TrainDate
- Caption = "铁运台帐(&T)"
- End
- Begin VB.Menu Tr_UseReport
- Caption = "铁路运用统计表(&U)"
- End
- Begin VB.Menu Tr_WorkReport
- Caption = "铁运运输工作统计表(&W)"
- End
- Begin VB.Menu Tr_DateReport
- Caption = "铁运日统计表(&D)"
- End
- End
- Begin VB.Menu c_gnbm
- Caption = "工具(&T)"
- Begin VB.Menu c_gnbmkmrl
- Caption = "会计日历(&C)..."
- Visible = 0 'False
- End
- Begin VB.Menu c_gnbmjsq
- Caption = "计算器(&S)..."
- 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
- '**************************************
- '* 模 块 名 称 :运输系统主窗体
- '* 功 能 描 述 :作为系统主界面
- '* 程序员姓名 : 张建忠
- '* 最后修改人 : 张建忠
- '* 最后修改时间:2000/08/11
- '**************************************
- Dim Tsxx As String '系统提示信息
- Private Sub c_gnbmjsq_Click()
- Call Xt_Control.Zxxymk("c_gnbmjsq")
- End Sub
- Private Sub c_gy_Click()
- Call Xt_Control.Zxxymk("Tr_About")
- End Sub
- Private Sub c_quit_Click()
- Call Xt_Control.Zxxymk("c_quit")
- End Sub
- Private Sub C_Register_Click()
- Call Xt_Control.Zxxymk("Tr_register")
- End Sub
- Private Sub c_xtbz_Click()
- Call Xt_Control.Zxxymk("Tr_SystempHelp")
- 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 Long
- 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 mnuWindowsCascade_Click()
- 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 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
- Private Sub Tr_Apply_Click()
- Call Xt_Control.Zxxymk("Tr_Apply")
- End Sub
- Private Sub Tr_ApplyList_Click()
- Call Xt_Control.Zxxymk("Tr_ApplyList")
- End Sub
- Private Sub Tr_Arrive_Click()
- Call Xt_Control.Zxxymk("Tr_Arrive")
- End Sub
- Private Sub Tr_Check_Click()
- Call Xt_Control.Zxxymk("Tr_Check")
- End Sub
- Private Sub Tr_DateReport_Click()
- Call Xt_Control.Zxxymk("Tr_DateReport")
- End Sub
- Private Sub Tr_DispatchOut_Click()
- Call Xt_Control.Zxxymk("Tr_DispatchOut")
- End Sub
- Private Sub Tr_DispatchWash_Click()
- Call Xt_Control.Zxxymk("Tr_DispatchWash")
- End Sub
- Private Sub Tr_Grade_Click()
- Call Xt_Control.Zxxymk("Tr_NowGrade")
- End Sub
- Private Sub Tr_Hold_Click()
- Call Xt_Control.Zxxymk("Tr_Hold")
- End Sub
- Private Sub Tr_HoldList_Click()
- Call Xt_Control.Zxxymk("Tr_HoldList")
- End Sub
- Private Sub Tr_Invoice_Click()
- Call Xt_Control.Zxxymk("Tr_Invoice")
- End Sub
- Private Sub Tr_InvoiceList_Click()
- Call Xt_Control.Zxxymk("Tr_InvoiceList")
- End Sub
- Private Sub Tr_Mend_Click()
- Call Xt_Control.Zxxymk("Tr_Mend")
- End Sub
- Private Sub Tr_MendList_Click()
- Call Xt_Control.Zxxymk("Tr_MendList")
- End Sub
- Private Sub Tr_Move_Click()
- Call Xt_Control.Zxxymk("Tr_Move")
- End Sub
- Private Sub Tr_NowAccountList_Click()
- Call Xt_Control.Zxxymk("Tr_NowAccountList")
- End Sub
- Private Sub Tr_OwnerShip_Click()
- Call Xt_Control.Zxxymk("Tr_OwnerShip")
- End Sub
- Private Sub Tr_Park_Click()
- Call Xt_Control.Zxxymk("Tr_Park")
- End Sub
- Private Sub Tr_ParkList_Click()
- Call Xt_Control.Zxxymk("Tr_ParkList")
- End Sub
- Private Sub Tr_RoadDeliver_Click()
- Call Xt_Control.Zxxymk("Tr_RoadDeliver")
- End Sub
- Private Sub Tr_RoadDeliverList_Click()
- Call Xt_Control.Zxxymk("Tr_RoadDeliverList")
- End Sub
- Private Sub Tr_RoadLading_Click()
- Call Xt_Control.Zxxymk("Tr_Roadlading")
- End Sub
- Private Sub Tr_RoadLadingList_Click()
- Call Xt_Control.Zxxymk("Tr_RoadLadingList")
- End Sub
- Private Sub Tr_RoadOuting_Click()
- Call Xt_Control.Zxxymk("Tr_RoadOuting")
- End Sub
- Private Sub Tr_RoadOutingList_Click()
- Call Xt_Control.Zxxymk("Tr_RoadOutingList")
- End Sub
- Private Sub Tr_ShipDeliver_Click()
- Call Xt_Control.Zxxymk("Tr_ShipDeliver")
- End Sub
- Private Sub Tr_ShipDeliverList_Click()
- Call Xt_Control.Zxxymk("Tr_ShipDeliverList")
- End Sub
- Private Sub Tr_Situation_Click()
- Call Xt_Control.Zxxymk("Tr_Situation")
- End Sub
- Private Sub Tr_Source_Click()
- Call Xt_Control.Zxxymk("Tr_Source")
- End Sub
- Private Sub Tr_Stop_Click()
- Call Xt_Control.Zxxymk("Tr_Stop")
- End Sub
- Private Sub Tr_TrainDate_Click()
- Call Xt_Control.Zxxymk("Tr_TrainAccount")
- End Sub
- Private Sub Tr_TrainUnit_Click()
- Call Xt_Control.Zxxymk("Tr_TrainUnit")
- End Sub
- Private Sub Tr_Type_Click()
- Call Xt_Control.Zxxymk("Tr_Type")
- End Sub
- Private Sub Tr_UseNature_Click()
- Call Xt_Control.Zxxymk("Tr_UseNature")
- End Sub
- Private Sub Tr_UseReport_Click()
- Call Xt_Control.Zxxymk("Tr_UseReport")
- End Sub
- Private Sub Tr_VehicleFile_Click()
- Call Xt_Control.Zxxymk("Tr_VehicleFile")
- End Sub
- Private Sub Tr_Weigh_Click()
- Call Xt_Control.Zxxymk("Tr_Weigh")
- End Sub
- Private Sub Tr_WorkReport_Click()
- Call Xt_Control.Zxxymk("Tr_WorkReport")
- End Sub