feat(legacy): add shell-independent module page compatibility
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/***********************
|
||||
/***********************
|
||||
* 说明:主窗体界面的构建
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:
|
||||
@@ -238,7 +238,8 @@ namespace Lskj.Main4.Control
|
||||
// 解析dns
|
||||
new Thread(MainImpl.DnsHostEntry).Start();
|
||||
this.mark_timer.Start();
|
||||
ERPInfo.Instance.PageControl = this.tabMain;
|
||||
if (ERPInfo.Instance.ModulePageHost == null)
|
||||
ERPInfo.Instance.PageControl = this.tabMain;
|
||||
ERPInfo.Instance.ModuleForms = Manager.ModuleForms;
|
||||
|
||||
splitMainControl.SplitterMoved += new SplitterEventHandler(this.OnSplitterPositionChanged);
|
||||
@@ -2099,12 +2100,12 @@ namespace Lskj.Main4.Control
|
||||
XtraTabPage beforePage = m.BeforePage;
|
||||
if (beforePage != null)
|
||||
{
|
||||
foreach (XtraTabPage tablepage in ERPInfo.Instance.PageControl.TabPages)
|
||||
foreach (XtraTabPage tablepage in ERPInfo.Instance.ModulePages)
|
||||
{
|
||||
|
||||
if (tablepage == beforePage)
|
||||
{
|
||||
ERPInfo.Instance.PageControl.SelectedTabPage = beforePage;
|
||||
ERPInfo.Instance.CurrentModulePage = beforePage;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2872,6 +2873,7 @@ namespace Lskj.Main4.Control
|
||||
if (!SystemInfo.Instance.RefreshNotify)
|
||||
{
|
||||
XtraTabPage tabPage = this.tabMain.SelectedTabPage;
|
||||
ERPInfo.Instance.NotifyModulePageSelected(tabPage);
|
||||
if (tabPage.TabIndex == 0)
|
||||
{
|
||||
Thread thread = new Thread(SetNotifys);
|
||||
|
||||
Reference in New Issue
Block a user