Esempio n. 1
0
        private void SetUserField(Field field, UserFieldsControl userFieldControl, int fieldIndex)
        {
            SingleCondition cond = condition.FindByField(field);

            if (cond != null)
            {
                userFieldControl.SetValue(fieldIndex, (string)condition.FindByField(field).Value);
            }
        }
Esempio n. 2
0
 private void AddToCondition(Condition cond, Field field, Operator stringOperator, UserFieldsControl userFieldControl, int fieldIndex)
 {
     if (!string.IsNullOrEmpty(userFieldControl.GetValue(fieldIndex)))
     {
         if (dataBase.Master.UserCDFields[fieldIndex].Type == UserFieldType.Text)
         {
             cond.Add(new SingleCondition(field, stringOperator, userFieldControl.GetValue(fieldIndex)));
         }
         else
         {
             cond.Add(new SingleCondition(field, Operator.Equal, userFieldControl.GetValue(fieldIndex)));
         }
     }
 }