/** * Initialize class fields. */ public void init(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.setEditing(false); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); //+new AssetDrControl(this); } /**
if (BookingScreenHandler.BOOKING_LOOKUP.equalsIgnoreCase(strCommand)) BasePanel parentScreen = Screen.makeWindow(this.getTask().getApplication()); Record record = this.getMainRecord(); Map<String,Object> properties = 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 (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) return (this.onForm(null, ScreenConstants.DETAIL_MODE, true, iCommandOptions, null) != null); else 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; }
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(MessageInfo.PROCESS_DETAIL_SCREEN), MenuConstants.GRID, MessageInfo.PROCESS_DETAIL_SCREEN, null); super.addToolbarButtons(toolScreen); }
/** * 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 (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) return (this.onForm(null, AutoDist.AUTO_DIST_DETAIL_SCREEN, true, iCommandOptions, null) != null); else 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; }
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { super.addToolbarButtons(toolScreen); BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, application.getResources(ResourceConstants.ACCTPAY_RESOURCE, true).getString(AcctDetailDist.DIST_DISTRIBUTION), AcctDetailDist.DIST_DISTRIBUTION, AcctDetailDist.DIST_DISTRIBUTION, null); } /**
/** * Initialize class fields. */ public void init(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new ProductControl(this); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.setProperty("swingResizeHack", DBConstants.TRUE); // Swing doesn't layout this screen correctly } /**
/** * 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 (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) return (this.onForm(null, TicketTrx.OVERRIDE_GRID_SCREEN, true, iCommandOptions, null) != null); else return super.doCommand(strCommand, sourceSField, iCommandOptions); }
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);
/** * Add button(s) to the toolbar. */ public void addToolbarButtons(ToolScreen toolScreen) { super.addToolbarButtons(toolScreen); BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(toolScreen.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.SET_ANCHOR), toolScreen, null, ScreenConstants.DEFAULT_DISPLAY, null, application.getResources(ResourceConstants.ACCTPAY_RESOURCE, true).getString(AcctDetailDist.DIST_DISTRIBUTION), AcctDetailDist.DIST_DISTRIBUTION, AcctDetailDist.DIST_DISTRIBUTION, null); } /**
/** * Initialize class fields. */ public void init(Record record, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String,Object> properties) { super.init(record, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new ApControl(this); } /**