From e90209beae6a4e822cecb18e6889f8bda23f630e Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 14 十二月 2020 11:16:06 +0800 Subject: [PATCH] 合并了晾衣架(非新云端) --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs | 48 ++++++++++++++++++++++++------------------------ 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Common/Logic/HdlDevicePanelLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs similarity index 96% rename from ZigbeeApp/Shared/Phone/Common/Logic/HdlDevicePanelLogic.cs rename to ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs index 5a66577..c8bc35a 100644 --- a/ZigbeeApp/Shared/Phone/Common/Logic/HdlDevicePanelLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs @@ -5,7 +5,7 @@ using System.Threading.Tasks; using Newtonsoft.Json.Linq; -namespace Shared.Phone +namespace Shared.Phone.UserCenter { /// <summary> /// 骞叉帴鐐圭殑閫昏緫 @@ -65,7 +65,7 @@ Panel.KeyNum keyNum = (Panel.KeyNum)panel.DeviceEpoint; var result = this.GetPanelColorInfoAsync(panel, keyNum); //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -93,7 +93,7 @@ Panel.KeyNum keyNum = (Panel.KeyNum)panel.DeviceEpoint; var result = this.GetPanelColorInfoAsync(panel, keyNum); //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -443,7 +443,7 @@ //璁剧疆浜害璋冭妭澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.uSetLightRegulationFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowTipMsg(msg); return false; @@ -550,7 +550,7 @@ var result = await panel.GetProximitySensorAsync(); panel = null; //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -585,7 +585,7 @@ panel = null; //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -597,7 +597,7 @@ //鎺ヨ繎浼犳劅閰嶇疆澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.SetPannelProximityFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowTipMsg(msg); return false; @@ -627,7 +627,7 @@ panel = null; //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -639,7 +639,7 @@ //鐭娓╁害澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.DataCorrectionFailed); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowTipMsg(msg); return false; @@ -678,7 +678,7 @@ //鑾峰彇鎸夐敭闈㈡澘鑺傝兘妯″紡淇℃伅澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.uGetPanelEnergyConservationInfoFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowErrorMsg(msg); return null; @@ -740,7 +740,7 @@ //鑺傝兘妯″紡閰嶇疆澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.uSetEnergyConservationFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowTipMsg(msg); return false; @@ -863,7 +863,7 @@ var result = HdlDeviceBindLogic.Current.ReadPanelConfigureInfoAsync(device); //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -875,7 +875,7 @@ //鑾峰彇璁惧閰嶇疆淇℃伅澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.uGetDeviceConfigureInfoFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowErrorMsg(msg); return null; @@ -918,7 +918,7 @@ /// <returns></returns> public async Task<List<int>> GetDryContactFunction(Panel panel, int level1 = -1, int level2 = -1, bool reLevel3 = false) { - string mainkeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(panel); + string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(panel); if (dicDryContactFunction.ContainsKey(mainkeys) == false) { //鍒涘缓瀵硅薄 @@ -995,7 +995,7 @@ { var result = await panel.GetPanelPrivateFunctionsAsync(parameter); //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -1007,7 +1007,7 @@ //鑾峰彇鎸夐敭鍔熻兘绫讳俊鎭け璐� string msg = Language.StringByID(R.MyInternationalizationString.uGetPanelFunctionInfoFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowErrorMsg(msg); return null; @@ -1031,7 +1031,7 @@ { var result = HdlDeviceBindLogic.Current.ConfigureHdlKeyValueAsync(panel, (Panel.KeyMode)i_value); //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result); + string error = HdlCheckLogic.Current.CheckCommonErrorCode(result); if (error != null) { this.ShowErrorMsg(error); @@ -1043,7 +1043,7 @@ //璁惧灞炴�у彉鏇村け璐� string msg = Language.StringByID(R.MyInternationalizationString.uDeviceAttributeChangedFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); + msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); this.ShowErrorMsg(msg); return false; @@ -1108,7 +1108,7 @@ { //鑾峰彇闇囧姩鍙嶉閰嶇疆淇℃伅澶辫触 string errorMsg = Language.StringByID(R.MyInternationalizationString.uGetVibrationFeedbackSettionFail); - errorMsg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(errorMsg, null, "鍥炲瓒呮椂", false); + errorMsg = UserCenterLogic.CombineGatewayTimeOutMsg(errorMsg, null, "鍥炲瓒呮椂", false); this.ShowTipMsg(errorMsg); return null; } @@ -1140,7 +1140,7 @@ { //璁剧疆闇囧姩鍙嶉閰嶇疆淇℃伅澶辫触 string errorMsg = Language.StringByID(R.MyInternationalizationString.uSetVibrationFeedbackSettionFail); - errorMsg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(errorMsg, null, "鍥炲瓒呮椂", false); + errorMsg = UserCenterLogic.CombineGatewayTimeOutMsg(errorMsg, null, "鍥炲瓒呮椂", false); this.ShowTipMsg(errorMsg); return false; } @@ -1204,7 +1204,7 @@ /// <returns></returns> private List<int> GetDryContactFunctionFromLocation(Panel panel, int level1 = -1, int level2 = -1) { - string mainkeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(panel); + string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(panel); if (dicDryContactFunction.ContainsKey(mainkeys) == false) { return null; @@ -1254,7 +1254,7 @@ /// <param name="level2"></param> private void SetDryContactFunctionToMemory(Panel panel, List<int> listLevel, int level1, int level2) { - string mainkeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(panel); + string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(panel); if (dicDryContactFunction.ContainsKey(mainkeys) == false) { //鍒涘缓瀵硅薄 @@ -1300,7 +1300,7 @@ /// </summary> private void SaveDryContactFunctionToLocaltion() { - HdlFileLogic.Current.SaveFileContent(HdlFileNameResourse.DryContactFunctionFile, dicDryContactFunction); + HdlFileLogic.Current.SaveFileContent(DirNameResourse.DryContactFunctionFile, dicDryContactFunction); } /// <summary> @@ -1309,7 +1309,7 @@ private void LoadDryContactFunctionFromLocaltion() { this.dicDryContactFunction = new Dictionary<string, DryContactFunctionInfo>(); - byte[] filebyte = HdlFileLogic.Current.ReadFileByteContent(HdlFileNameResourse.DryContactFunctionFile); + byte[] filebyte = HdlFileLogic.Current.ReadFileByteContent(DirNameResourse.DryContactFunctionFile); if (filebyte == null) { return; -- Gitblit v1.8.0