SVN-Revision: r665
This commit is contained in:
wyf
2025-06-04 10:22:44 +00:00
parent 63cae7510c
commit c7818396a7
8 changed files with 87 additions and 171 deletions
@@ -1,4 +1,5 @@
using Lskj.Business;
using Lskj.Model;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -51,12 +52,27 @@ namespace Lskj.Control.BrowserSetting2
{
return contextMenuHandler;
}
public void Created(CefBrowser cefBrowser)
protected override bool OnProcessMessageReceived(CefBrowser browser, CefFrame frame, CefProcessId sourceProcess, CefProcessMessage message)
{
if (OnCreated != null)
if (message.Name.Equals("OpenModule"))
{
OnCreated(cefBrowser, EventArgs.Empty);
string arg0 = message.Arguments.GetString(0);
string arg1 = message.Arguments.GetString(1);
string arg2 = message.Arguments.GetString(2);
string arg3 = message.Arguments.GetString(3);
string arg4 = message.Arguments.GetString(4);
if (ERPInfo.Instance.MainControl.InvokeRequired)
{
ERPInfo.Instance.MainControl.Invoke(new Action(() =>
{
BrowserSetting.BsOpenModuleHandler.OpenModule(arg0, arg1, arg2, arg3, arg4);
}));
}
else
{
BrowserSetting.BsOpenModuleHandler.OpenModule(arg0, arg1, arg2, arg3, arg4);
}
}
}
}
}
else if (message.Name.Equals("OpenOnRightClick"))
{
string arg0 = message