Skip to content

Instantly share code, notes, and snippets.

@noakesey
Created December 6, 2018 11:16
Show Gist options
  • Save noakesey/fbe5b5b6190cc3c966a7cb3ceb0dd35f to your computer and use it in GitHub Desktop.
Save noakesey/fbe5b5b6190cc3c966a7cb3ceb0dd35f to your computer and use it in GitHub Desktop.
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