Example #1
0
 /// <summary>
 ///     设置DataFilter
 /// </summary>
 private void SetCurrDataFilter()
 {
     //清除以前的结果和内部变量,重要!
     _currentDataViewInfo.MDataFilter.Clear();
     _currentDataViewInfo.MDataFilter.DbName         = RuntimeMongoDbContext.GetCurrentDataBase().Name;
     _currentDataViewInfo.MDataFilter.CollectionName = RuntimeMongoDbContext.GetCurrentCollection().Name;
     _currentDataViewInfo.MDataFilter.QueryFieldList = QueryFieldPicker.GetQueryFieldList();
     ConditionPan.SetCurrDataFilter(_currentDataViewInfo);
 }
Example #2
0
 /// <summary>
 ///     设置DataFilter
 /// </summary>
 private void SetCurrDataFilter()
 {
     //清除以前的结果和内部变量,重要!
     CurrentDataViewInfo.mDataFilter.Clear();
     CurrentDataViewInfo.mDataFilter.DBName         = SystemManager.GetCurrentDataBase().Name;
     CurrentDataViewInfo.mDataFilter.CollectionName = SystemManager.GetCurrentCollection().Name;
     CurrentDataViewInfo.mDataFilter.QueryFieldList = QueryFieldPicker.getQueryFieldList();
     ConditionPan.SetCurrDataFilter(CurrentDataViewInfo);
 }
Example #3
0
 /// <summary>
 ///     设置DataFilter
 /// </summary>
 private void SetCurrentDataFilter()
 {
     //清除以前的结果和内部变量,重要!
     //FieldList 和 FieldPicker 是引用关系,所以这里Clear掉之后FieldPicker也会被清除掉。GetQueryFieldList就会始终为空!
     _currentDataViewInfo.MDataFilter.QueryConditionList.Clear();
     _currentDataViewInfo.MDataFilter.DbName         = RuntimeMongoDbContext.GetCurrentDataBaseName();
     _currentDataViewInfo.MDataFilter.CollectionName = RuntimeMongoDbContext.GetCurrentCollectionName();
     _currentDataViewInfo.MDataFilter.QueryFieldList = QueryFieldPicker.GetQueryFieldList();
     ConditionPan.SetCurrDataFilter(_currentDataViewInfo);
     if (RuntimeMongoDbContext.CollectionFilter.ContainsKey(RuntimeMongoDbContext.GetCurrentCollectionName()))
     {
         RuntimeMongoDbContext.CollectionFilter[RuntimeMongoDbContext.GetCurrentCollectionName()] = _currentDataViewInfo.MDataFilter;
     }
     else
     {
         RuntimeMongoDbContext.CollectionFilter.Add(RuntimeMongoDbContext.GetCurrentCollectionName(), _currentDataViewInfo.MDataFilter);
     }
 }