| | |
| | | } |
| | | break; |
| | | case SPK.SensorEnvironment: |
| | | case SPK.SensorEnvironment2: |
| | | case SPK.SensorEnvironment3: |
| | | { |
| | | string strtext = ""; |
| | | foreach (var dic in dicList) |
| | |
| | | } |
| | | } |
| | | break; |
| | | case "10": |
| | | { |
| | | //用sid找到场景; |
| | | var scene = LogicMethod.CurrLogicMethod.GetSecne(inputCondition.sid); |
| | | inputView.btnIcon.UnSelectedImagePath = "LogicIcon/scene.png"; |
| | | inputView.btnNextIcon.Visible = false; |
| | | inputView.btnClick.Visible = false; |
| | | //显示场景名称 |
| | | inputView.btnText.Text = scene.name; |
| | | } |
| | | break; |
| | | |
| | | } |
| | | //再次编辑条件状态点击事件 |
| | |
| | | { |
| | | //用sid找到设备; |
| | | var device = LogicMethod.CurrLogicMethod.GetDevice(inputCondition.sid); |
| | | if (device.spk == SPK.SensorEnvironment) |
| | | if (device.spk == SPK.SensorEnvironment|| device.spk == SPK.SensorEnvironment2 || device.spk == SPK.SensorEnvironment3) |
| | | { |
| | | //这个设备比较特殊 |
| | | ConditionDeviceFunList conditionDeviceFunList = new ConditionDeviceFunList(); |
| | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | break; |
| | | |
| | | } |
| | | }; |
| | | ///删除控件 |
| | |
| | | break; |
| | | case "3": |
| | | { |
| | | //用sid找到安防; |
| | | var security = LogicMethod.CurrLogicMethod.GetSecurity(outputTarget.sid); |
| | | targetView.btnIcon.UnSelectedImagePath = "LogicIcon/security.png"; |
| | | //显示安防名称 |
| | | stateStr = security.name; |
| | | } |
| | | break; |
| | | case "4": |
| | | { |
| | | targetView.btnIcon.UnSelectedImagePath = "LogicIcon/time.png"; |
| | | foreach (var dic in dicList) |
| | | { |
| | |
| | | break; |
| | | case "3": |
| | | { |
| | | |
| | | AddTarget addTarget = new AddTarget(); |
| | | addTarget.SecurityMethod(thisView, edit, indexVulae); |
| | | } |
| | | break; |
| | | case "4": |
| | | { |
| | | FrameLayout fLayout = new FrameLayout |
| | | { |
| | | BackgroundColor = CSS.CSS_Color.viewTrans60lucence, |
| | |
| | | } |
| | | break; |
| | | } |
| | | |
| | | if (!MainView.IsGatewayType) |
| | | { |
| | | name +=Language.StringByID(StringId.push); |
| | | } |
| | | } |
| | | catch { } |
| | | return name; |