| | |
| | | Text = alarm.noticeConfig.noticeContent, |
| | | TextSize = UI2.Intelligence.Automation.LogicView.TextSize.text14, |
| | | TextColor = CSS.CSS_Color.textColor, |
| | | PlaceholderText = Language.StringByID(StringId.xianzhichangdu),//"(100字以内)", |
| | | PlaceholderTextColor = CSS.CSS_Color.textCancelColor, |
| | | //PlaceholderText = Language.StringByID(StringId.xianzhichangdu),//"(100字以内)", |
| | | //PlaceholderTextColor = CSS.CSS_Color.textCancelColor, |
| | | BackgroundColor = CSS.CSS_Color.textWhiteColor, |
| | | |
| | | }; |
| | |
| | | if (selectedAccountList.Count > 0) |
| | | { |
| | | alarm.pushConfigs.Clear();//清空旧数据列表 |
| | | alarm.pushConfigs.Add(new Entity.SecurityPushConfig { pushTarget = selectedAccountList }); |
| | | alarm.pushConfigs.Add(new Entity.SecurityPushConfig { pushMethod = "APP", pushTarget = selectedAccountList }); |
| | | } |
| | | //账号列表为空默认推送当前账号 |
| | | if (alarm.pushConfigs.Count == 0) |
| | | { |
| | | //初始化对象 |
| | | Entity.SecurityPushConfig pushConfigs = new Entity.SecurityPushConfig(); |
| | | pushConfigs.pushMethod = "APP"; |
| | | //默认添加推送当前账号 |
| | | pushConfigs.pushTarget.Add(UserInfo.Current.ID); |
| | | alarm.pushConfigs.Add(pushConfigs); |