Commit f0822f1a authored by 潘栩锋's avatar 潘栩锋 🚴

重新规划服务ID

parent 4cf775ec
...@@ -839,7 +839,7 @@ namespace FLY.FeedbackRenZiJia.UI.Client ...@@ -839,7 +839,7 @@ namespace FLY.FeedbackRenZiJia.UI.Client
private void button_delsnap_Click(object sender, RoutedEventArgs e) private void button_delsnap_Click(object sender, RoutedEventArgs e)
{ {
if (!WdPassword.Authorize("AirRingHeatList")) if (!WdPassword.Authorize("AirRing"))
return; return;
mSnaps.DelSnapShot(); mSnaps.DelSnapShot();
...@@ -1023,7 +1023,7 @@ namespace FLY.FeedbackRenZiJia.UI.Client ...@@ -1023,7 +1023,7 @@ namespace FLY.FeedbackRenZiJia.UI.Client
FLY.ControlLibrary.Window_WarningTip.Show("应用失败", "当前图是反向,需要先去调换旋转架的正反向信号线", TimeSpan.FromSeconds(2)); FLY.ControlLibrary.Window_WarningTip.Show("应用失败", "当前图是反向,需要先去调换旋转架的正反向信号线", TimeSpan.FromSeconds(2));
return; return;
} }
if (!WdPassword.Authorize("AirRingHeatList")) if (!WdPassword.Authorize("AirRing"))
return; return;
blowing.IsUsedMap = IsUsedMap; blowing.IsUsedMap = IsUsedMap;
......
...@@ -12,9 +12,9 @@ namespace FLY.FeedbackRenZiJia.OBJ_INTERFACE ...@@ -12,9 +12,9 @@ namespace FLY.FeedbackRenZiJia.OBJ_INTERFACE
public const UInt32 HEATBUF_ID = 31002; public const UInt32 HEATBUF_ID = 31002;
public const UInt32 HEATCELL_ID = 31003; public const UInt32 HEATCELL_ID = 31003;
/// <summary>
/// 3个
/// </summary>
public const UInt32 WARNING_OBJ_ID = 20000; public const UInt32 WARNING_OBJ_ID = 20000;
public const UInt32 WARNING_OBJ_REASONLIST_ID = 20001;
public const UInt32 WARNING_OBJ_NEWESTLIST_ID = 20002;
} }
} }
...@@ -109,7 +109,7 @@ namespace FLY.IBC.UI.Client.UiModule ...@@ -109,7 +109,7 @@ namespace FLY.IBC.UI.Client.UiModule
private void Record_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) private void Record_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{ {
reason_list_index = mWindow.Record.Count() - 1; reason_list_index = warningReasonWindow.Record.Count() - 1;
updateError01(); updateError01();
} }
...@@ -118,7 +118,7 @@ namespace FLY.IBC.UI.Client.UiModule ...@@ -118,7 +118,7 @@ namespace FLY.IBC.UI.Client.UiModule
FObjBase.PollModule.Current.Poll_JustOnce( FObjBase.PollModule.Current.Poll_JustOnce(
new FObjBase.PollModule.PollHandler(delegate () new FObjBase.PollModule.PollHandler(delegate ()
{ {
reason_list_index = mWindow.Record.Count() - 1; reason_list_index = warningReasonWindow.Record.Count() - 1;
updateError(); updateError();
}), this, MARKNO_UPDATEERROR); }), this, MARKNO_UPDATEERROR);
......
...@@ -8,15 +8,17 @@ namespace FLY.IBC.OBJ_INTERFACE ...@@ -8,15 +8,17 @@ namespace FLY.IBC.OBJ_INTERFACE
{ {
public class OBJ_INTERFACE public class OBJ_INTERFACE
{ {
//3个
public const UInt32 WARNING_OBJ_ID = 20000;
/// <summary> /// <summary>
/// 4个 /// 4个
/// </summary> /// </summary>
public const UInt32 IBC_OBJ_ID = 32000; public const UInt32 IBC_OBJ_ID = 32000;
public const UInt32 IBC_OBJ_CTRLLIST_ID = 32004; public const UInt32 IBC_OBJ_CTRLLIST_ID = 32004;
//3个
public const UInt32 WARNING_OBJ_ID = 20000;
} }
} }
...@@ -20,10 +20,11 @@ namespace FLY.Thick.Blowing.OBJ_INTERFACE ...@@ -20,10 +20,11 @@ namespace FLY.Thick.Blowing.OBJ_INTERFACE
public const UInt32 SCANWARNING_ID = 30011; public const UInt32 SCANWARNING_ID = 30011;
public const UInt32 BULKDB_ID = 30012; public const UInt32 BULKDB_ID = 30012;
public const UInt32 WARNING_OBJ_ID = 30013; /// <summary>
public const UInt32 WARNING_OBJ_REASONLIST_ID = 30014; /// 3个
public const UInt32 WARNING_OBJ_NEWESTLIST_ID = 30015; /// </summary>
public const UInt32 WARNING_OBJ_ID = 20000;
public const UInt32 JSONDIST_OBJ_ID = 20000; public const UInt32 JSONDIST_OBJ_ID = 10000;
} }
} }
...@@ -214,9 +214,9 @@ ...@@ -214,9 +214,9 @@
<Project>{119c3adc-f8e1-4f72-b89b-006236ff8586}</Project> <Project>{119c3adc-f8e1-4f72-b89b-006236ff8586}</Project>
<Name>FLY.ControlLibrary</Name> <Name>FLY.ControlLibrary</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\thick_public\Project.FLY.UI.Module\FLY.UI.Module\FLY.UI.Module.csproj"> <ProjectReference Include="..\..\thick_public\Project.FLY.Misc\MISC\Misc.csproj">
<Project>{4df79671-e814-49bd-864d-8257d6c6e072}</Project> <Project>{5ee61ac6-5269-4f0f-b8fa-4334fe4a678f}</Project>
<Name>FLY.UI.Module</Name> <Name>Misc</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\FLY.HeatingHelper\FLY.HeatingHelper.csproj"> <ProjectReference Include="..\FLY.HeatingHelper\FLY.HeatingHelper.csproj">
<Project>{973f0eed-3181-4fb9-abd6-196a9e816b77}</Project> <Project>{973f0eed-3181-4fb9-abd6-196a9e816b77}</Project>
......
...@@ -23,6 +23,7 @@ namespace FLY.HeatingHelper.UI.UIModule.UC_SelectData ...@@ -23,6 +23,7 @@ namespace FLY.HeatingHelper.UI.UIModule.UC_SelectData
Command_DefaultLoadDataRange(); Command_DefaultLoadDataRange();
Misc.BindingOperations.SetBinding(Dat, "AnalystIndexFrom", () => Misc.BindingOperations.SetBinding(Dat, "AnalystIndexFrom", () =>
{ {
AnalystDataFrom = null; AnalystDataFrom = null;
}); });
Misc.BindingOperations.SetBinding(Dat, "AnalystIndexTo", () => Misc.BindingOperations.SetBinding(Dat, "AnalystIndexTo", () =>
......
...@@ -46,7 +46,7 @@ namespace FLY.Weight.UI.Client ...@@ -46,7 +46,7 @@ namespace FLY.Weight.UI.Client
private void button_ingredient_Click(object sender, RoutedEventArgs e) private void button_ingredient_Click(object sender, RoutedEventArgs e)
{ {
if (!WdPassword.Authorize("WeighterMenu")) if (!WdPassword.Authorize("Weighter"))
return; return;
PgIngredient p = new PgIngredient(); PgIngredient p = new PgIngredient();
...@@ -57,7 +57,7 @@ namespace FLY.Weight.UI.Client ...@@ -57,7 +57,7 @@ namespace FLY.Weight.UI.Client
private void button_screw_Click(object sender, RoutedEventArgs e) private void button_screw_Click(object sender, RoutedEventArgs e)
{ {
if (!WdPassword.Authorize("WeighterMenu")) if (!WdPassword.Authorize("Weighter"))
return; return;
PgScrew p = new PgScrew(); PgScrew p = new PgScrew();
container.BuildUp(p); container.BuildUp(p);
...@@ -67,7 +67,7 @@ namespace FLY.Weight.UI.Client ...@@ -67,7 +67,7 @@ namespace FLY.Weight.UI.Client
private void button_hopper_Click(object sender, RoutedEventArgs e) private void button_hopper_Click(object sender, RoutedEventArgs e)
{ {
if (!WdPassword.Authorize("WeighterMenu")) if (!WdPassword.Authorize("Weighter"))
return; return;
PgHopper p = new PgHopper(); PgHopper p = new PgHopper();
container.BuildUp(p); container.BuildUp(p);
...@@ -86,7 +86,7 @@ namespace FLY.Weight.UI.Client ...@@ -86,7 +86,7 @@ namespace FLY.Weight.UI.Client
private void button_thickness_Click(object sender, RoutedEventArgs e) private void button_thickness_Click(object sender, RoutedEventArgs e)
{ {
if (!WdPassword.Authorize("WeighterMenu")) if (!WdPassword.Authorize("Weighter"))
return; return;
PgThickness p = new PgThickness(); PgThickness p = new PgThickness();
......
...@@ -67,6 +67,8 @@ namespace FLY.Weight.Client ...@@ -67,6 +67,8 @@ namespace FLY.Weight.Client
public WeightSystemServiceClient(UInt32 serviceId, string connName) : base(serviceId) { public WeightSystemServiceClient(UInt32 serviceId, string connName) : base(serviceId) {
Init(); Init();
ConnName = connName; ConnName = connName;
filePath = connName + "." +filePath;
FObjServiceClientManager.Instance.Connect_to_Another_OBJSys(connName, this); FObjServiceClientManager.Instance.Connect_to_Another_OBJSys(connName, this);
} }
...@@ -112,6 +114,7 @@ namespace FLY.Weight.Client ...@@ -112,6 +114,7 @@ namespace FLY.Weight.Client
this.PropertyChanged += WeightSystemClient_PropertyChanged; this.PropertyChanged += WeightSystemClient_PropertyChanged;
} }
string filePath = "weightSystemClient.json";
void Save() void Save()
{ {
WeightSystemClientJsonDb jsonDb = new WeightSystemClientJsonDb() WeightSystemClientJsonDb jsonDb = new WeightSystemClientJsonDb()
...@@ -119,12 +122,12 @@ namespace FLY.Weight.Client ...@@ -119,12 +122,12 @@ namespace FLY.Weight.Client
BinCnts = BinCnts BinCnts = BinCnts
}; };
string json = Newtonsoft.Json.JsonConvert.SerializeObject(jsonDb); string json = Newtonsoft.Json.JsonConvert.SerializeObject(jsonDb);
File.WriteAllText("weightSystemClient.json", json); File.WriteAllText(filePath, json);
} }
void Load() { void Load() {
if (!File.Exists("weightSystemClient.json")) if (!File.Exists(filePath))
return; return;
string json =File.ReadAllText("weightSystemClient.json"); string json =File.ReadAllText(filePath);
var p = Newtonsoft.Json.JsonConvert.DeserializeObject< WeightSystemClientJsonDb>(json); var p = Newtonsoft.Json.JsonConvert.DeserializeObject< WeightSystemClientJsonDb>(json);
BinCnts = p.BinCnts; BinCnts = p.BinCnts;
} }
......
...@@ -7,22 +7,19 @@ namespace FLY.Weight.OBJ_INTERFACE ...@@ -7,22 +7,19 @@ namespace FLY.Weight.OBJ_INTERFACE
{ {
public class OBJ_INTERFACE public class OBJ_INTERFACE
{ {
/// <summary>
/// 3个
/// </summary>
public const UInt32 WARNING_OBJ_ID = 20000; public const UInt32 WARNING_OBJ_ID = 20000;
public const UInt32 WARNING_OBJ_REASONLIST_ID = WARNING_OBJ_ID + 1;
public const UInt32 WARNING_OBJ_NEWESTLIST_ID = WARNING_OBJ_ID + 2;
public const UInt32 WEIGHTS_OBJ_ID = 30000;
public const UInt32 WEIGHTS_OBJ_SYNCPROP_ID = WEIGHTS_OBJ_ID + 1;
public const UInt32 WEIGHTS_OBJ_PLCOS_ID = WEIGHTS_OBJ_ID + 2;
public const UInt32 WEIGHTS_OBJ_PLCOS_SYNCPROP_ID = WEIGHTS_OBJ_PLCOS_ID + 1;
/// <summary>
/// 4个
/// </summary>
public const UInt32 WEIGHTS_OBJ_ID = 35000;
public const UInt32 WEIGHTS_OBJ_FLOW_ID = 30004; public const UInt32 WEIGHTS_OBJ_FLOW_ID = 35004;
public const UInt32 WEIGHTS_OBJ_MIX_BASE_ID = 30005; public const UInt32 WEIGHTS_OBJ_MIX_BASE_ID = 35005;
/// <summary> /// <summary>
/// 每次配料记录列表, 1~5 /// 每次配料记录列表, 1~5
/// </summary> /// </summary>
......
...@@ -38,7 +38,7 @@ namespace FLY.Weight.Server.OBJProxy ...@@ -38,7 +38,7 @@ namespace FLY.Weight.Server.OBJProxy
plcOS_OBJProxy = new PLCProxySystem_OBJProxy( plcOS_OBJProxy = new PLCProxySystem_OBJProxy(
objsys_idx, objsys_idx,
OBJ_INTERFACE.OBJ_INTERFACE.WEIGHTS_OBJ_PLCOS_ID, ID + 2,
data.PLCos data.PLCos
); );
......
Subproject commit 60be62824e5c30d5c322b2230d08098458cf99d9 Subproject commit 634c9abecc11061d5487d82887dee7d76115c519
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<!--别名--> <!--别名-->
<alias alias="IOnInit" type="MultiLayout.UiModule.IOnInit, MultiLayout" /> <alias alias="IOnInit" type="MultiLayout.UiModule.IOnInit, MultiLayout" />
<container> <container>
<!--客户端配置参数--> <!--客户端配置参数-->
<register type="Misc.ParamDictionary, MISC" > <register type="Misc.ParamDictionary, MISC" >
...@@ -17,7 +16,7 @@ ...@@ -17,7 +16,7 @@
<register type="FLY.OBJComponents.IService.IJsonDistService,FLY.OBJComponents" mapTo="FLY.OBJComponents.Client.JsonDistServiceClient,FLY.OBJComponents"> <register type="FLY.OBJComponents.IService.IJsonDistService,FLY.OBJComponents" mapTo="FLY.OBJComponents.Client.JsonDistServiceClient,FLY.OBJComponents">
<lifetime type="singleton" /> <lifetime type="singleton" />
<constructor> <constructor>
<param name="serviceId" value="20000" /> <param name="serviceId" value="10000" />
<param name="connName" value="blowing" /> <param name="connName" value="blowing" />
</constructor> </constructor>
</register> </register>
......
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