Quintiq file version 2.0
|
#parent: #root
|
StaticMethod GetVersionInfo (
|
GlobalOTDSOP owner,
|
String businessname
|
) as owning Strings
|
{
|
Description: '获取大版本版本号及版本名称'
|
TextBody:
|
[*
|
// Administrator Sep-13-2023 (created)
|
businesstype := GlobalOTDTable::GetBusinessTypeName( businessname );
|
result := construct( Strings );
|
rootversion := VersionControl::FindLatestVersion( owner, businesstype );
|
|
if( not isnull( rootversion ) ){
|
result.Add( rootversion.VersionID() );
|
result.Add( rootversion.LongVersionName() );
|
result.Add( rootversion.VersionID() + "-" + rootversion.CalType() );
|
result.Add( rootversion.SingleVersionName() );
|
}else{
|
result.Add( "" );
|
result.Add( "" );
|
result.Add( "" );
|
result.Add( "" );
|
}
|
|
return &result;
|
*]
|
}
|