Commit eb4161eb by wangonghui

咪咕现场问题修改

parent 2bd1108b
......@@ -47,15 +47,19 @@ namespace VIZ.Package.Module
this.vizCommandService.SetEnabledUpdate(conn, false);
try
{
// 清楚板子上的信息
this.vizCommandService.SetCue(conn, ApplicationDomainEx.CurrentPage.ScenePath);
this.vizCommandService.SetObject(conn, ApplicationDomainEx.CurrentPage.ScenePath, ApplicationDomainEx.CurrentPage.Layer);
//调整上包装顺序
if (obj != null)
{
this.vizCommandControlObjectService.SetControlObject(conn, obj, newPageBase.GetVizScene());
this.vizCommandControlObjectService.SetCustomControlFieldValue(conn, obj.AllFiledNodes);
}
// 清楚板子上的信息
this.vizCommandService.SetCue(conn, ApplicationDomainEx.CurrentPage.ScenePath);
this.vizCommandService.SetObject(conn, ApplicationDomainEx.CurrentPage.ScenePath, ApplicationDomainEx.CurrentPage.Layer);
if (view != null)
{
view.TakIn(conn);
......@@ -65,8 +69,10 @@ namespace VIZ.Package.Module
{
log.Error(ex);
}
this.vizCommandService.SetEnabledUpdate(conn, true);
this.vizCommandService.Start(conn, ApplicationDomainEx.CurrentPage.Layer, ApplicationDomainEx.CurrentPage.ScenePath);
this.vizCommandService.SetEnabledUpdate(conn, true);
}
/// <summary>
......
......@@ -60,6 +60,12 @@ namespace VIZ.Package.Module
/// </summary>
private VizCommandControlObjectService vizCommandControlObjectService = new VizCommandControlObjectService();
/// <summary>
/// Viz命令服务
/// </summary>
private VizCommandService vizCommandService = new VizCommandService();
/// <summary>
/// 控制对象服务
/// </summary>
......@@ -176,6 +182,9 @@ namespace VIZ.Package.Module
// 将当前值上至预览
this.vizCommandControlObjectService.SetControlObject(ApplicationDomainEx.PreviewConn, this.ControlObject, ApplicationDomainEx.CurrentPage.GetVizScene());
// this.vizCommandService.SetObject(ApplicationDomainEx.PreviewConn, msg.Page.ScenePath, msg.Page.Layer);
// 插件处理
PageModel pageModel = msg.Page as PageModel;
if (pageModel == null || string.IsNullOrWhiteSpace(pageModel.PluginID))
......
......@@ -592,7 +592,12 @@ namespace VIZ.Package.Module
message.Page = msg.Page;
ApplicationDomainEx.MessageManager.Send(message);
});
});
}
......
......@@ -359,7 +359,11 @@ namespace VIZ.Package.Service
public void SetControlObject(ConnModel conn, ControlObjectModel obj, VizScene scene)
{
StringBuilder sb = new StringBuilder();
sb.Append($"{scene}*TREE*{obj.TreeNodePath}*FUNCTION*ControlObject*in SET ON ");
// sb.Append($"{scene}*TREE*{obj.TreeNodePath}*FUNCTION*ControlObject*in SET ON ");
sb.Append($"SCENE*{ApplicationDomainEx.CurrentPage.ScenePath}*TREE*{obj.TreeNodePath}*FUNCTION*ControlObject*in SET ON ");
foreach (ControlFieldNodeModel field in obj.AllFiledNodes)
{
// 自定义字段不通过该方法上板
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment