private hasOption ( string duz, string optionName, string fieldNum ) : bool | ||
duz | string | |
optionName | string | |
fieldNum | string | |
Результат | bool |
internal bool hasOption(string duz, string optionName, string fieldNum)
{
if (StringUtils.isEmpty(duz) || StringUtils.isEmpty(optionName))
{
throw new ArgumentException("Invalid args");
}
string optIen = getOptionIen(optionName);
string arg = "$D(^VA(200," + duz + "," + fieldNum + ",\"B\"," + optIen + "))";
string result = VistaUtils.getVariableValue(cxn, arg);
return (result != "0");
}