exist() && existByRecID
static boolean exists(DLXClearanceStatus _allowedDeviceCustomStatus, DLXClearanceStatus _deviceCustomStatus)
{
if (!_allowedDeviceCustomStatus || !_deviceCustomStatus)
{
return false;
}
return (select firstonly RecId from DLXRulesUpdateDeviceCustomStatus
where DLXRulesUpdateDeviceCustomStatus.AllowedDeviceCustomStatus == _allowedDeviceCustomStatus
&& DLXRulesUpdateDeviceCustomStatus.DeviceCustomStatus == _deviceCustomStatus).RecId != 0;
}
static boolean exists(A_ExpressServiceCode _expressServiceCode)
{
return !_expressServiceCode && (select firstonly RecId from A_ExpressService
where A_ExpressService.ExpressServiceCode == _expressServiceCode).RecId != 0;
}
static boolean existsByRecId(A_ExpressServiceRefRecId _expressServiceRefRecId)
{
return !_expressServiceRefRecId && (select firstonly RecId from A_ExpressService
where A_ExpressService.RecId == _expressServiceRefRecId).RecId != 0;
}