feat(legacy): add shell-independent module page compatibility
This commit is contained in:
@@ -194,7 +194,8 @@ namespace Lskj.Main3.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;
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -1976,12 +1977,12 @@ namespace Lskj.Main3.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2584,6 +2585,7 @@ namespace Lskj.Main3.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