Example #1
0
 public JOperateNum(string fieldName, JValueType valueType)
     : this()
 {
     this.FieldName = fieldName;
     this.ValueType = valueType;
     this.Values    = new List <object>();
 }
Example #2
0
        private string GetFileValueFormat(JValueType valueType)
        {
            switch (valueType)
            {
            case JValueType.Numeric: return(this.NumericFieldValueFormat);

            case JValueType.String: return(this.StringFieldValueFormat);

            case JValueType.DateTime: return(this.DateTimeFieldValueFormat);

            default: return(this.StringFieldValueFormat);
            }
        }
Example #3
0
 private string GetFileValueFormat(JValueType valueType)
 {
     switch (valueType)
     {
         case JValueType.Numeric: return this.NumericFieldValueFormat;
         case JValueType.String: return this.StringFieldValueFormat;
         case JValueType.DateTime: return this.DateTimeFieldValueFormat;
         default: return this.StringFieldValueFormat;
     }
 }
Example #4
0
 private NotSupportedException GetException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy)
 {
     throw new NotSupportedException(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName));
 }
Example #5
0
 public FieldValueTypeNotSupportValueCategroyException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy)
     : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName))
 {
 }
Example #6
0
 public FieldValueTypeNotSupportOperatorException(string filedName, JValueType valueType, string operate)
     : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), operate, filedName))
 {
 }
Example #7
0
 public JOperateNum(string fieldName, JValueType valueType)
     : this()
 {
     this.FieldName = fieldName;
     this.ValueType = valueType;
     this.Values = new List<object>();
 }
Example #8
0
 public FieldValueTypeNotSupportOperatorException(string filedName, JValueType valueType, string operate)
     : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), operate, filedName))
 {
 }
Example #9
0
 public FieldValueTypeNotSupportValueCategroyException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy)
     : base(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName))
 {
 }
Example #10
0
 private NotSupportedException GetException(string filedName, JValueType valueType, JValueCategroy sourceValueCategroy)
 {
     throw new NotSupportedException(string.Format("{0}不支持{1},Filed:{2}", valueType.ToString(), sourceValueCategroy.ToString(), filedName));
 }