Exemple #1
0
 /// <summary>
 /// 页面加载或是导航显示的时候 需要执行的初始化操作
 /// </summary>
 /// <param name="parsObjects"></param>
 public void NavOnLoad(params object[] parsObjects)
 {
     UserItems.Clear();
     CurrentSelectUser = new UserInfoViewModel();
     NavOnLoadUserInfo();
     NavOnLoadPrivilege();
     RequestAllUserInfomation();
 }
 public override void NavOnLoadr(params object[] parsObjects)
 {
     if (_isViewVisual)
     {
         return;
     }
     _isViewVisual = true;
     UserItems.Clear();
     TypeItems.Clear();
     Items.Clear();
     IsAdvanceQueryChecked = false;
     BeginDate             = DateTime.Now.AddDays(-1);
     EndDate = DateTime.Now;
     RequestAllUserInfomation();
     RequestAllOperatorTypeHttp();
     Remind = "请设置好查询日期[最多一个月]以及高级查询条件进行查询...";
 }
Exemple #3
0
        private void ReflectToUser(string c)
        {
            Current = c;

            if (UserItems != null)
            {
                UserItems.Clear();
            }

            SelectedIndex = 1;

            if (string.IsNullOrWhiteSpace(Current))
            {
                return;
            }

            IsProgressVisible = true;
            getItems(Current).Subscribe(x =>
            {
                UserItems = x.ToObservableCollectionLimit();
                RaisePropertyChanged(() => UserItems);
                IsProgressVisible = false;
            });
        }
Exemple #4
0
 public void ClearUserItems()
 {
     UserItems.ForEach(i => i.Count++);
     UserItems.Clear();
 }