switch(anyType)
        {
            case Types::String:
                return any2Str(value);
                break;
            
            case Types::VarString:
                return any2Str(value);
                break;
                        
            case Types::Integer:
                return any2Int(value);
                break;

            case Types::Int64:
                return any2Int64(value);
                break;
                        
            case Types::Enum:
                return any2Enum(anyData)
                break;
                        
            case Types::Real:
                return any2Real(value);
                break;
            
            case Types::Date:
                table.setFieldValue(conPeek(nameCon,j), any2Date(anyData));
                break;

            case Types::Time:
                table.setFieldValue(conPeek(nameCon,j), str2Time(any2Str(anyData)));
                break;

            case Types::UtcDateTime:
                System.DateTime a =  anyValue;
                TimeOfDay time = 0; 
                
                utcdatetime utcData = DateTimeUtil::newDateTime(a.Date,time);
                utcData=DateTimeUtil::addHours(utcData,a.Hour);
                utcData=DateTimeUtil::addMinutes(utcData,a.Minute);
                utcData=DateTimeUtil::addSeconds(utcData,a.Second);
                table.setFieldValue(conPeek(nameCon,j), utcData);
                break;
            
            case Types::Guid:
                table.setFieldValue(conPeek(nameCon,j), any2Guid(anyData));
                break;
            
            case Types::Container:
                table.setFieldValue(conPeek(nameCon,j), str2con(anyData, ","));  // not validate
                break;
            
            default:
                Info(strFmt("%1(%2)类型未定义", conPeek(nameCon,j), dictField.baseType()));
                break;
        }

标签: none

添加新评论