Quintiq file version 2.0
|
#parent: #root
|
StaticMethod GetDayOfWeek (
|
Number dayofweek
|
) declarative remote as String
|
{
|
Description: 'Return the day of the week in string.'
|
TextBody:
|
[*
|
// Check if day of week equals to monday
|
day := '';
|
|
if( dayofweek = monday )
|
{
|
day := Translations::MP_GlobalParameters_Day_Monday();
|
}
|
// Check if day of week equals to tuesday
|
else if( dayofweek = tuesday )
|
{
|
day := Translations::MP_GlobalParameters_Day_Tuesday();
|
}
|
// Check if day of week equals to wednesday
|
else if( dayofweek = wednesday )
|
{
|
day := Translations::MP_GlobalParameters_Day_Wednesday();
|
}
|
// Check if day of week equals to thursday
|
else if( dayofweek = thursday )
|
{
|
day := Translations::MP_GlobalParameters_Day_Thursday();
|
}
|
// Check if day of week equals to friday
|
else if( dayofweek = friday )
|
{
|
day := Translations::MP_GlobalParameters_Day_Friday();
|
}
|
// Check if day of week equals to saturday
|
else if( dayofweek = saturday )
|
{
|
day := Translations::MP_GlobalParameters_Day_Saturday();
|
}
|
// Check if day of week equals to sunday
|
else
|
{
|
day := Translations::MP_GlobalParameters_Day_Sunday();
|
}
|
|
return day;
|
*]
|
}
|