-
-
Save noakesey/fbe5b5b6190cc3c966a7cb3ceb0dd35f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SysDictEnum dictEnum = new SysDictEnum(enumNum(ProjSalesPriceMarkup)); | |
int enumValueCount = dictEnum.values(); | |
for (int enumValueIndex = 0; enumValueIndex < enumValueCount; enumValueIndex++) | |
{ | |
ProjSalesPriceMarkup value = dictEnum.index2Value(enumValueIndex); | |
str actual = dictEnum.index2Label(enumValueIndex); | |
str expected = strMin(); | |
switch (value) | |
{ | |
case ProjSalesPriceMarkup::No : | |
expected = "@SYS26062"; | |
break; | |
case ProjSalesPriceMarkup::Yes : | |
expected = "@SYS80120"; | |
break; | |
case ProjSalesPriceMarkup::MarkupPct : | |
expected = "@SYS78909"; | |
break; | |
default : | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment