2024年1月

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;
        }

    IWS_DefaultDimensionHelper::MereDimensionFromDimension(
                projJournalTrans.DefaultDimension,
                DimensionAttributeValueDerivedDimensions::findByDimensionAttributeValue(
                    DimAttributeValue.DimensionAttribute,
                    DimAttributeValue.RecId
                ).DefaultDimension
            );

Set-Location -Path "cert:\LocalMachine\My"
$OldCert = (Get-ChildItem -Path 56f4cc4ac43dbf0aa1bbc8d8fb4317ab22128c5d)
New-SelfSignedCertificate -CloneCert $OldCert -NotAfter (Get-Date).AddMonths(999)

    MenuFunction menuFunction;
    menuFunction = new MenuFunction(menuItemDisplayStr(xxx), MenuItemType::Display);

    Args args = new Args();
    args.record(_task);
    args.caller(_caller);
    menuFunction.run(args);