public BaseScreen getSecurityScreen(int iErrorCode, BasePanel parentScreen)
{
BaseScreen screen = null;
if (iErrorCode == DBConstants.ACCESS_DENIED)
{
screen = new BaseScreen(null, null, parentScreen, null, 0, null);
String strDisplay = this.getTask().getApplication().getSecurityErrorText(iErrorCode);
BaseApplication application = (BaseApplication)this.getTask().getApplication();
String strMessage = application.getResources(ResourceConstants.ERROR_RESOURCE, true).getString(strDisplay);
BaseField fldFake = new StringField(null, DBConstants.BLANK, 128, DBConstants.BLANK, null);
fldFake.setString(strMessage);
new SStaticText(screen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), screen, fldFake, ScreenConstants.DEFAULT_DISPLAY);
}
else if ((iErrorCode == DBConstants.LOGIN_REQUIRED) || (iErrorCode == DBConstants.AUTHENTICATION_REQUIRED))
screen = new UserLoginScreen(null, null, parentScreen, null, 0, null);
else if (iErrorCode == DBConstants.CREATE_USER_REQUIRED)
screen = new UserEntryScreen(null, null, parentScreen, null, 0, null);
return screen;
}
/**