📄 系统_主界面.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.MDIForm XT_Main
BackColor = &H00808000&
Caption = "宇迪/ERP1.0.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 = "18:43"
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 Gy_register
Caption = "重新注册(&R)..."
End
Begin VB.Menu exit
Caption = "-"
End
Begin VB.Menu Gy_quit
Caption = "退出系统(&Q)"
End
End
Begin VB.Menu c_jcsz
Caption = "基础设置(&I)"
Begin VB.Menu Gy_Department
Caption = "部门设置(&D)"
End
Begin VB.Menu Gy_Person
Caption = "职员设置(&P)"
End
Begin VB.Menu Gy_Warehouse
Caption = "仓库档案设置(&W)"
End
Begin VB.Menu M_Gy_Material
Caption = "物料档案设置(&M)"
End
Begin VB.Menu Gy_Customer
Caption = "客户设置(&C)"
End
Begin VB.Menu Gy_SupplierSort
Caption = "供应商分类设置(&F)"
End
Begin VB.Menu Gy_Supplier
Caption = "供应商设置(&S)"
End
Begin VB.Menu Gy_TransferCompany
Caption = "承运单位设置(&T)"
End
Begin VB.Menu Gy_TransferWay
Caption = "运输方式设置(&Y)"
End
Begin VB.Menu Gy_UnitSet
Caption = "计量单位设置(&U)"
End
Begin VB.Menu Gy_Settlement
Caption = "结算方式设置(&J)"
End
Begin VB.Menu Gy_ForeignCurrency
Caption = "币种设置(&B)"
End
Begin VB.Menu Gy_PayCon
Caption = "付款条件设置(&O)"
End
Begin VB.Menu Gy_InOutClass
Caption = "收发类别设置(&I)"
End
Begin VB.Menu Gy_BillNumber
Caption = "单据设置(&N)"
End
Begin VB.Menu Gy_CodeScheme
Caption = "系统分级编码方案设置(&A)"
End
Begin VB.Menu Cg_AreaSet
Caption = "供应商地区分类设置(&v)"
End
Begin VB.Menu Cg_TradeSet
Caption = "供应商行业分类设置(&Q)"
End
End
Begin VB.Menu c_gnbm
Caption = "工具(&T)"
Begin VB.Menu Gy_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 Gy_xtbz
Caption = "系统帮助(&S)"
End
Begin VB.Menu Gy_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 Cg_AreaSet_Click()
Call Xt_Control.Zxxymk("Cg_AreaSet")
End Sub
Private Sub Cg_TradeSet_Click()
Call Xt_Control.Zxxymk("Cg_TradeSet")
End Sub
Private Sub Gy_gnbmjsq_Click()
Call Xt_Control.Zxxymk("Gy_gnbmjsq")
End Sub
Private Sub Gy_gy_Click()
Call Xt_Control.Zxxymk("Gy_gy")
End Sub
Private Sub Gy_quit_Click()
Call MDIForm_QueryUnload(0, 0)
End Sub
Private Sub Gy_register_Click()
Call Xt_Control.Zxxymk("Gy_register")
End Sub
Private Sub Gy_xtbz_Click()
Call Xt_Control.Zxxymk("Gy_xtbz")
End Sub
Private Sub Gy_BillNumber_Click()
Call Xt_Control.Zxxymk("Gy_BillNumber")
End Sub
Private Sub Gy_CodeScheme_Click()
Call Xt_Control.Zxxymk("Gy_CodeScheme")
End Sub
Private Sub Gy_Customer_Click()
Call Xt_Control.Zxxymk("Gy_Customer")
End Sub
Private Sub Gy_Department_Click()
Call Xt_Control.Zxxymk("Gy_Department")
End Sub
Private Sub Gy_ForeignCurrency_Click()
Call Xt_Control.Zxxymk("Gy_ForeignCurrency")
End Sub
Private Sub Gy_InOutClass_Click()
Call Xt_Control.Zxxymk("Gy_InOutClass")
End Sub
Private Sub M_Gy_Material_Click()
Call Xt_Control.Zxxymk("Gy_Material")
End Sub
Private Sub Gy_PayCon_Click()
Call Xt_Control.Zxxymk("Gy_PayCon")
End Sub
Private Sub Gy_Person_Click()
Call Xt_Control.Zxxymk("Gy_Person")
End Sub
Private Sub Gy_Settlement_Click()
Call Xt_Control.Zxxymk("Gy_Settlement")
End Sub
Private Sub Gy_Supplier_Click()
Call Xt_Control.Zxxymk("Gy_Supplier")
End Sub
Private Sub Gy_SupplierSort_Click()
Call Xt_Control.Zxxymk("Gy_SupplierSort")
End Sub
Private Sub Gy_TransferCompany_Click()
Call Xt_Control.Zxxymk("Gy_TransferCompany")
End Sub
Private Sub Gy_TransferWay_Click()
Call Xt_Control.Zxxymk("Gy_TransferWay")
End Sub
Private Sub Gy_UnitSet_Click()
Call Xt_Control.Zxxymk("Gy_UnitSet")
End Sub
Private Sub Gy_Warehouse_Click()
Call Xt_Control.Zxxymk("Gy_Warehouse")
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 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)
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -