Пример #1
0
        public static ReturnCode ReturnCode(string json) // The logic is this: if the message text is empty, then the result = Success, otherwise = depending on the code //
        {
            ReturnCode code = ReturnCodeFactory.Error(ExtractTextMessage(json));

            code.NumericValue = CxConvert.ToInt32(ExtractNumericCode(json), ReturnCodeFactory.NcError);
            if (code.StringValue == string.Empty)
            {
                code.NumericValue = ReturnCodeFactory.NcSuccess;
            }
            return(code);
        }
Пример #2
0
 public static int ZzGetIntegerValueByFieldName(this RadGridView grid, string FieldName, int DefaultValue) => CxConvert.ToInt32(ZzGetStringValue(grid, Standard.GetGridColumnName(FieldName)), DefaultValue);