if (BookingScreenHandler.BOOKING_LOOKUP.equalsIgnoreCase(strCommand)) BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); Record record = this.getMainRecord(); Map<String,Object> properties = null;
BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication());
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { super.controlToField(); Bundle pAmBrocHist = new Bundle(null); BasePanel parentScreen = Screen.makeWindow(null); BundleList pBundleList = new BundleList(pAmBrocHist, null, parentScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null); pBundleList.setEditing(false); m_pAmRequests.addDependentScreen(pBundleList); // When this closes, closes dependent screen return DBConstants.NORMAL_RETURN; }
/** * Process the command. * <br />Step 1 - Process the command if possible and return true if processed. * <br />Step 2 - If I can't process, pass to all children (with me as the source). * <br />Step 3 - If children didn't process, pass to parent (with me as the source). * <br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop). * @param strCommand The command to process. * @param sourceSField The source screen field (to avoid echos). * @param iCommandOptions If this command creates a new screen, create in a new window? * @return true if success. */ public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if ("Request Detail".equalsIgnoreCase(strCommand)) { Record recProfile = this.getRecord(Profile.PROFILE_FILE); ScreenLocation itsLocation = null; int iDocMode = ScreenConstants.DETAIL_MODE; boolean bCloneThisQuery = false; boolean bReadCurrentRecord = true; boolean bUseBaseTable = true; boolean bLinkGridToQuery = true; BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); recProfile.makeScreen(itsLocation, parentScreen, iDocMode, bCloneThisQuery, bReadCurrentRecord, bUseBaseTable, bLinkGridToQuery, null); return true; } return super.doCommand(strCommand, sourceSField, iCommandOptions); } /**
/** * Process the command. * <br />Step 1 - Process the command if possible and return true if processed. * <br />Step 2 - If I can't process, pass to all children (with me as the source). * <br />Step 3 - If children didn't process, pass to parent (with me as the source). * <br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop). * @param strCommand The command to process. * @param sourceSField The source screen field (to avoid echos). * @param iCommandOptions If this command creates a new screen, create in a new window? * @return true if success. */ public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if ("Request Detail".equalsIgnoreCase(strCommand)) { Record recProfile = this.getRecord(Profile.PROFILE_FILE); ScreenLocation itsLocation = null; int iDocMode = ScreenConstants.DETAIL_MODE; boolean bCloneThisQuery = false; boolean bReadCurrentRecord = true; boolean bUseBaseTable = true; boolean bLinkGridToQuery = true; BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); recProfile.makeScreen(itsLocation, parentScreen, iDocMode, bCloneThisQuery, bReadCurrentRecord, bUseBaseTable, bLinkGridToQuery, null); return true; } return super.doCommand(strCommand, sourceSField, iCommandOptions); } /**
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { super.controlToField(); Bundle pAmBrocHist = new Bundle(null); BasePanel parentScreen = Screen.makeWindow(null); BundleList pBundleList = new BundleList(pAmBrocHist, null, parentScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null); pBundleList.setEditing(false); m_pAmRequests.addDependentScreen(pBundleList); // When this closes, closes dependent screen return DBConstants.NORMAL_RETURN; }
if (this.getTask().getApplication() != null) BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); Map<String,Object> properties = new Hashtable<String,Object>(); RequestType recRequestType = new RequestType(this);
if (this.getTask().getApplication() != null) BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); Map<String,Object> properties = new Hashtable<String,Object>(); RequestType recRequestType = new RequestType(this);
if (this.getTask().getApplication() != null) BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); Map<String,Object> properties = new Hashtable<String,Object>(); RequestType recRequestType = new RequestType(this);
if (this.getTask().getApplication() != null) BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); Map<String,Object> properties = new Hashtable<String,Object>(); RequestType recRequestType = new RequestType(this);
/** * StartEditor Method. */ public GridScreen startEditor(PropertiesField fldProperties, boolean bAllowAppending, Map<String,Object> mapKeyDescriptions) { this.setPropertiesField(fldProperties); BaseApplication application = ((BaseApplication)fldProperties.getRecord().getRecordOwner().getTask().getApplication()); BasePanel screenParent = Screen.makeWindow(application); GridScreen screen = (GridScreen)this.makeScreen(null, screenParent, ScreenConstants.DISPLAY_MODE, mapKeyDescriptions); screen.setAppending(bAllowAppending); fldProperties.getRecord().addDependentScreen(screen); return screen; }
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { int iErrorCode = super.controlToField(); if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; BasePanel parentScreen = Screen.makeWindow(null); HistoryDisplay pAmBrocHist = new HistoryDisplay(null); ScreenLocation itsLocation = null; BrocHistList pBrocHistList = new BrocHistList(pAmBrocHist, itsLocation, parentScreen, null, ScreenConstants.DONT_DISPLAY_DESC, null); pBrocHistList.setEditing(false); m_pAmRequests.addDependentScreen(pBrocHistList); // When this closes, closes dependent screen //xFileBehavior pSubFileBeh = new SubFileFilter(m_pAmRequests.getField(Request.USE_AGENCY), RequestHistory.USE_AGENCY, m_pAmRequests.getField(Request.PROFILE_ID), RequestHistory.AGENCY_NO, null, -1); //xpAmBrocHist.addListener(pSubFileBeh); m_pAmRequests.getField(Request.PROFILE_CODE).addListener(new FieldReSelectHandler(pBrocHistList)); // Reselect on file change return iErrorCode; }
BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); new RequestHistoryDisplayScreen(null, null, parentScreen, null, 0, null); return true;
/** * User clicked to button to add the booking passengers to the profile. */ public int doCommand(boolean bDisplayOption, int iMoveMode) { BookingPax recBookingPax = (BookingPax)m_screenParent.getRecord(BookingPax.BOOKING_PAX_FILE); Profile recProfile = (Profile)m_screenParent.getRecord(Profile.PROFILE_FILE); Profile recProfileDetail = (Profile)((ReferenceField)recBookingPax.getField(BookingPax.PROFILE_ID)).getReferenceRecord(); recBookingPax.addPaxDetail(recBookingPax, recProfileDetail); // Now create the maint screen for this new record if (recProfileDetail.getEditMode() == DBConstants.EDIT_CURRENT) { BasePanel parentScreen = Screen.makeWindow(m_screenParent.getTask().getApplication()); ScreenParent screen = recProfileDetail.makeScreen(null, parentScreen, ScreenConstants.MAINT_MODE, true, true, true, true, null); } return DBConstants.NORMAL_RETURN; }
App application = task.getApplication(); BasePanel parent = Screen.makeWindow(application); int iDocMode = ScreenConstants.SELECT_MODE; boolean bCloneThisQuery = true;
Application application = (Application)task.getApplication(); BasePanel parent = Screen.makeWindow(application); int iDocMode = ScreenConstants.SELECT_MODE; boolean bCloneThisQuery = true;
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { int iErrorCode = super.controlToField(); if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; BasePanel parentScreen = Screen.makeWindow(null); HistoryDisplay pAmBrocHist = new HistoryDisplay(null); ScreenLocation itsLocation = null; BrocHistList pBrocHistList = new BrocHistList(pAmBrocHist, itsLocation, parentScreen, null, ScreenConstants.DONT_DISPLAY_DESC, null); pBrocHistList.setEditing(false); m_pAmRequests.addDependentScreen(pBrocHistList); // When this closes, closes dependent screen //xFileBehavior pSubFileBeh = new SubFileFilter(m_pAmRequests.getField(Request.USE_AGENCY), RequestHistory.USE_AGENCY, m_pAmRequests.getField(Request.PROFILE_ID), RequestHistory.AGENCY_NO, null, -1); //xpAmBrocHist.addListener(pSubFileBeh); m_pAmRequests.getField(Request.PROFILE_CODE).addListener(new FieldReSelectHandler(pBrocHistList)); // Reselect on file change return iErrorCode; }
/** * User clicked to button to add the booking passengers to the profile. */ public int doCommand(boolean bDisplayOption, int iMoveMode) { BookingPax recBookingPax = (BookingPax)m_screenParent.getRecord(BookingPax.BOOKING_PAX_FILE); Profile recProfile = (Profile)m_screenParent.getRecord(Profile.PROFILE_FILE); Profile recProfileDetail = (Profile)((ReferenceField)recBookingPax.getField(BookingPax.PROFILE_ID)).getReferenceRecord(); recBookingPax.addPaxDetail(recBookingPax, recProfileDetail); // Now create the maint screen for this new record if (recProfileDetail.getEditMode() == DBConstants.EDIT_CURRENT) { BasePanel parentScreen = Screen.makeWindow(m_screenParent.getTask().getApplication()); ScreenParent screen = recProfileDetail.makeScreen(null, parentScreen, ScreenConstants.MAINT_MODE, true, true, true, true, null); } return DBConstants.NORMAL_RETURN; }
Application application = (Application)task.getApplication(); BasePanel parentScreen = Screen.makeWindow(application);
Application application = (Application)task.getApplication(); BasePanel parentScreen = Screen.makeWindow(application);