| | |
| | | <MandroidI18n>cjk</MandroidI18n> |
| | | <AndroidDexTool>d8</AndroidDexTool> |
| | | <AndroidEnableSGenConcurrent>false</AndroidEnableSGenConcurrent> |
| | | <AndroidKeyStore>True</AndroidKeyStore> |
| | | <AndroidSigningKeyStore>/Users/kaede/Desktop/HDL_APP_Project/on_plus.keystore</AndroidSigningKeyStore> |
| | | <AndroidSigningStorePass>85521566</AndroidSigningStorePass> |
| | | <AndroidSigningKeyPass>85521566</AndroidSigningKeyPass> |
| | | <AndroidSigningKeyAlias>on_plus</AndroidSigningKeyAlias> |
| | | <PlatformTarget>AnyCPU</PlatformTarget> |
| | | <AotAssemblies>false</AotAssemblies> |
| | | <EnableLLVM>false</EnableLLVM> |
| | | <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot> |
| | |
| | | /// 固定域名,正式环境 |
| | | /// 公共域名就近解析 |
| | | /// </summary> |
| | | public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; |
| | | //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";//mmmm |
| | | //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; |
| | | public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";//mmmm |
| | | /// <summary> |
| | | /// RegionMark |
| | | /// </summary> |
| | |
| | | #endregion |
| | | |
| | | #region 传感器 |
| | | |
| | | #region 安防传感器 |
| | | /// <summary> |
| | | /// (亮度传感器) |
| | |
| | | Tag = "Logic"; |
| | | } |
| | | /// <summary> |
| | | /// 当前选中的功能 |
| | | /// </summary> |
| | | private Entity.Function function = null; |
| | | /// <summary> |
| | | /// 定义一个记录选中设备状态列表; |
| | | /// </summary> |
| | | private List<Dictionary<string, string>> dicSateteList = new List<Dictionary<string, string>>(); |
| | |
| | | |
| | | public void Show(Entity.Function device, int index, bool edit) |
| | | { |
| | | this.function = device; |
| | | #region 界面布局 |
| | | this.BackgroundColor = CSS.CSS_Color.viewMiddle; |
| | | LogicView.TopView topView = new LogicView.TopView(); |
| | |
| | | switch (device.spk) |
| | | { |
| | | //传感器 |
| | | case SPK.SensorGas: |
| | | case SPK.SensorWater: |
| | | case SPK.SensorSmoke: |
| | | case SPK.SensorGas: |
| | | case SPK.SensorDryContact: |
| | | case SPK.SensorShanLan: |
| | | case SPK.SensorDuiShe: |
| | | case SPK.SensorPir: |
| | | { |
| | | keyVlaue = "status"; |
| | | if (!Is_SpkAttribute(keyVlaue)) { |
| | | keyVlaue = "alarm_status"; |
| | | } |
| | | }; |
| | | break; |
| | | case SPK.SensorDoorWindow: |
| | | case SPK.SensorDryContact: |
| | | { |
| | | keyVlaue = "status"; |
| | | if (!Is_SpkAttribute(keyVlaue)) |
| | | { |
| | | keyVlaue = "contact_status"; |
| | | } |
| | | } |
| | | break; |
| | | case SPK.SensorDuiShe: |
| | | case SPK.SensorShanLan: |
| | | case SPK.SensorPir: |
| | | case SPK.SensorUtrasonic: |
| | | { |
| | | keyVlaue = "status"; |
| | | if (!Is_SpkAttribute(keyVlaue)) |
| | | { |
| | | keyVlaue = "people_status"; |
| | | } |
| | | |
| | | } |
| | | break; |
| | | case SPK.SenesorMegahealth: |
| | | case SPK.SenesorMegahealth2: |
| | | { |
| | | keyVlaue = "action_state"; |
| | | if (!Is_SpkAttribute(keyVlaue)) |
| | | { |
| | | keyVlaue = "megahealth_state"; |
| | | } |
| | | } |
| | | break; |
| | | |
| | |
| | | case SPK.SensorTVOC: |
| | | case SPK.SensorHcho: |
| | | { |
| | | ///公司传感器key的健值是“value”; |
| | | key = "value"; |
| | | if (!Is_SpkAttribute(key)) |
| | | { |
| | | key = "value"; |
| | | } |
| | | } |
| | | break; |
| | | } |
| | |
| | | return false; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 识别使用功能是否存在属性 |
| | | /// </summary> |
| | | /// <param name="key">设备属性,云雀上定义好的</param> |
| | | /// <returns></returns> |
| | | private bool Is_SpkAttribute(string key) { |
| | | ///修改新属性 |
| | | ///识别使用功能是否存在属性 |
| | | var job = this.function.GetAttribute(key); |
| | | if (job != null) |
| | | { |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | switch (dic["key"]) |
| | | { |
| | | case "status": |
| | | case "people_status": |
| | | { |
| | | if (value == "true") |
| | | { |
| | |
| | | switch (dic["key"]) |
| | | { |
| | | case "status": |
| | | case "people_status": |
| | | { |
| | | if (value == "true") |
| | | { |
| | |
| | | //banbenshengjiFL.frameLayout.Y = editNameFLayout.frameLayout.Bottom; |
| | | //viewLayout.AddChidren(banbenshengjiFL.FLayoutView()); |
| | | |
| | | var versions = Pir.currPir.versions.Find((c)=>c.module== "fw_version"); |
| | | |
| | | var versions = Pir.currPir.versions.Find((c) => c.module == "FW"); |
| | | if (versions == null) |
| | | { |
| | | versions = new Entity.VersionInfo(); |
| | |
| | | ///版本号:v1.3.5 |
| | | FrameLayout50 banbenhaoFLayout = new FrameLayout50(); |
| | | banbenhaoFLayout.btnNextIcon.Visible = false; |
| | | banbenhaoFLayout.btnText.Text = Language.StringByID(StringId.banbenhao) + ":"+ versions.version; |
| | | banbenhaoFLayout.btnText.Text = Language.StringByID(StringId.banbenhao) + ":";// + versions.version; |
| | | banbenhaoFLayout.btnEditText.Text = versions.version; |
| | | banbenhaoFLayout.btnEditText.TextAlignment = TextAlignment.CenterRight; |
| | | banbenhaoFLayout.btnEditText.X = Application.GetRealWidth(357 - 200 - 16); |
| | | banbenhaoFLayout.btnEditText.Width = Application.GetRealWidth(200); |
| | | banbenhaoFLayout.btnText.Width = Application.GetRealWidth(280); |
| | | banbenhaoFLayout.frameLayout.Y = editNameFLayout.frameLayout.Bottom;// banbenshengjiFL.frameLayout.Bottom; |
| | | viewLayout.AddChidren(banbenhaoFLayout.FLayoutView()); |
| | | |
| | | //删除 |
| | | FrameLayout frameLayout = new FrameLayout |
| | | { |