old mode 100755
new mode 100644
File was renamed from ZigbeeApp/Shared/Phone/TemplateData/TemplateDataCommon.cs |
| | |
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.TemplateData
|
| | | namespace Shared.Phone |
| | | {
|
| | | #region ■ 共通模板数据定义___________________
|
| | |
|
| | |
| | | /// <summary>
|
| | | /// 编辑时间 2020.01.04 19:55格式
|
| | | /// </summary>
|
| | | public string CreatedOnUtc = string.Empty;
|
| | | public string CreateTime = string.Empty; |
| | | /// <summary>
|
| | | /// 主键
|
| | | /// </summary>
|
| | |
| | | public override List<string> GetFailMsg()
|
| | | {
|
| | | //设置窗帘限位点失败
|
| | | return new List<string> { Language.StringByID(R.MyInternationalizationString.uCommitCurtainLimitFail) };
|
| | | return new List<string> { Language.StringByID(R.MyInternationalizationString.uSetCurtainDirectionFail), |
| | | Language.StringByID(R.MyInternationalizationString.uCommitCurtainLimitFail) |
| | | }; |
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | //当前选择的模板对象
|
| | | var dicChangedMac = new Dictionary<string, string>();
|
| | | var dicNowSelect = TemplateCommonLogic.Current.modelData.dicDeviceTemplateSelect;
|
| | | var dicNowSelect = HdlTemplateCommonLogic.Current.modelData.dicDeviceTemplateSelect; |
| | | foreach (var localMac in dicNowSelect.Keys)
|
| | | {
|
| | | dicChangedMac[dicNowSelect[localMac]] = localMac;
|
| | |
| | | {
|
| | | //当前选择的模板对象
|
| | | var dicChangedMac = new Dictionary<string, string>();
|
| | | var dicNowSelect = TemplateCommonLogic.Current.modelData.dicDeviceTemplateSelect;
|
| | | var dicNowSelect = HdlTemplateCommonLogic.Current.modelData.dicDeviceTemplateSelect; |
| | | foreach (var localMac in dicNowSelect.Keys)
|
| | | {
|
| | | dicChangedMac[dicNowSelect[localMac]] = localMac;
|
| | |
| | | }
|
| | | }
|
| | | //变更缓存
|
| | | TemplateCommonLogic.Current.SaveDeviceMemmoryData(this.DeviceMac, this.DeviceEpoint);
|
| | | HdlTemplateCommonLogic.Current.SaveDeviceMemmoryData(this.DeviceMac, this.DeviceEpoint); |
| | | }
|
| | | }
|
| | |
|
| | |
| | | /// <returns></returns>
|
| | | public override List<string> GetSendGatewayValue()
|
| | | {
|
| | | var command = Common.LocalDevice.Current.GetReDeviceEpointNameCommandText(DeviceMac, DeviceEpoint, deviceEpointName);
|
| | | var command = HdlDeviceCommonLogic.Current.GetReDeviceEpointNameCommandText(DeviceMac, DeviceEpoint, deviceEpointName); |
| | | return new List<string>() { command };
|
| | | }
|
| | |
|
| | |
| | | /// <returns></returns>
|
| | | public override List<string> GetSendGatewayValue()
|
| | | {
|
| | | var command = Common.LocalDevice.Current.GetReDeviceMacNameCommandText(DeviceMac, DeviceEpoint, deviceMacName);
|
| | | var command = HdlDeviceCommonLogic.Current.GetReDeviceMacNameCommandText(DeviceMac, DeviceEpoint, deviceMacName); |
| | | return new List<string>() { command };
|
| | | }
|
| | |
|