Commit 9eecefea authored by 潘栩锋's avatar 潘栩锋 🚴

修复 只要修改布局就会令扫描图参数复位问题

parent 5fdabca5
...@@ -39,7 +39,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client.UIModule ...@@ -39,7 +39,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client.UIModule
graphparam = ScanGraphParams.Current.Items.Find(p => p.ID == id); graphparam = ScanGraphParams.Current.Items.Find(p => p.ID == id);
if (graphparam == null) if (graphparam == null)
{ {
graphparam = new ScanGraphItemParam() { ID = id }; graphparam = new ScanGraphItemParam() { UiModule = "scangraph2", ID = id };
ScanGraphParams.Current.Items.Add(graphparam); ScanGraphParams.Current.Items.Add(graphparam);
ScanGraphParams.Current.Save(); ScanGraphParams.Current.Save();
} }
...@@ -205,7 +205,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client.UIModule ...@@ -205,7 +205,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client.UIModule
/// <param name="IDs"></param> /// <param name="IDs"></param>
public void MatchParam(int[] IDs) public void MatchParam(int[] IDs)
{ {
ScanGraphParams.Current.MatchParam(IDs); ScanGraphParams.Current.MatchParam("scangraph2",IDs);
} }
} }
} }
...@@ -39,7 +39,7 @@ namespace FLY.Thick.BlowingScan.UI.Client.UIModule ...@@ -39,7 +39,7 @@ namespace FLY.Thick.BlowingScan.UI.Client.UIModule
graphparam = ScanGraphParams.Current.Items.Find(p => p.ID == id); graphparam = ScanGraphParams.Current.Items.Find(p => p.ID == id);
if (graphparam == null) if (graphparam == null)
{ {
graphparam = new ScanGraphItemParam() { ID = id }; graphparam = new ScanGraphItemParam() { UiModule="scangraph2", ID = id };
ScanGraphParams.Current.Items.Add(graphparam); ScanGraphParams.Current.Items.Add(graphparam);
ScanGraphParams.Current.Save(); ScanGraphParams.Current.Save();
} }
...@@ -162,6 +162,7 @@ namespace FLY.Thick.BlowingScan.UI.Client.UIModule ...@@ -162,6 +162,7 @@ namespace FLY.Thick.BlowingScan.UI.Client.UIModule
public class UIModule_ScanGraph2 : FLY.UI.Module.IUIModule public class UIModule_ScanGraph2 : FLY.UI.Module.IUIModule
{ {
/// <summary> /// <summary>
/// 控件标题 /// 控件标题
/// 它的值取决于culture /// 它的值取决于culture
...@@ -205,7 +206,7 @@ namespace FLY.Thick.BlowingScan.UI.Client.UIModule ...@@ -205,7 +206,7 @@ namespace FLY.Thick.BlowingScan.UI.Client.UIModule
/// <param name="IDs"></param> /// <param name="IDs"></param>
public void MatchParam(int[] IDs) public void MatchParam(int[] IDs)
{ {
ScanGraphParams.Current.MatchParam(IDs); ScanGraphParams.Current.MatchParam("scangraph2",IDs);
} }
} }
} }
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