/** * Get this field in SQL format. * ie., number 1,234.56 -> 1234.56. * @return This field as a SQL string. */ public String getSQLString() { return this.toString(); // By Default } /**
/** * Output this screen using HTML.. */ public void printHtmlTitle(PrintWriter out, String strTag, String strParams, String strData) { out.print(m_recDetail.getField(Menus.kName).toString()); } /**
/** * Output this screen using HTML.. */ public void printHtmlTitle(PrintWriter out, String strTag, String strParams, String strData) { out.print(m_recDetail.getField(MenusModel.NAME).toString()); } /**
/** * Output this screen using HTML. */ public void printHtmlType(PrintWriter out, String strTag, String strParams, String strData) { out.print(m_recDetail.getField(MenusModel.TYPE).toString()); } /**
public boolean checkTrxStatus(TrxStatus recTrxStatus) { if ((recTrxStatus.getField(TrxStatus.STATUS_CODE).toString().indexOf(ApTrx.PREPAYMENT_REQUEST) != -1) || (recTrxStatus.getField(TrxStatus.STATUS_CODE).toString().indexOf(ApTrx.BROKER_PAYMENT_HEADER) != -1) || (recTrxStatus.getField(TrxStatus.STATUS_CODE).toString().indexOf(ApTrx.DEBIT_MEMO) != -1)) return true; // Include this return false; // Don't include this. } });
public boolean checkTrxStatus(TrxStatus recTrxStatus) { if ((recTrxStatus.getField(TrxStatus.STATUS_CODE).toString().indexOf(ApTrx.DEP_ESTIMATE.substring(0, 6)) != -1) || (recTrxStatus.getField(TrxStatus.STATUS_CODE).toString().indexOf(ApTrx.INVOICE) != -1) || (recTrxStatus.getField(TrxStatus.STATUS_CODE).toString().indexOf(ApTrx.CREDIT_MEMO) != -1)) return true; // Include this return false; // Don't include this. } });
/** * Get the description of the product for this line item. * Usually, you just get the description of the current product. * For manual lines, the manual description is returned. */ public String getProductDesc() { return this.getField(BookingDetail.DESCRIPTION).toString(); } /**
/** * Output this screen using HTML. */ public void printHtmlMenuDesc(PrintWriter out, String strTag, String strParams, String strData) { String strText = m_recDetail.getField(Menus.kComment).toString(); strText = MenuParser.stripHtmlOverhead(strText); out.print(strText); } /**
/** * SaveProductParam Method. */ public static Map<String,Object> addFieldParam(Map<String,Object> map, BaseField field) { if (!field.isNull()) map.put(field.getFieldName(), field.toString()); return map; } /**
/** * Get the item description. */ public String getDescription() throws RemoteException { Product recProduct = (Product)this.setRecordCurrent(); return recProduct.getField(Product.DESCRIPTION).toString(); } /**
/** * MakeContactRecord Method. */ public Record makeContactRecord(RecordOwner recordOwner) { String strRecordClass = this.getField(ContactType.kRecordClass).toString(); return Record.makeRecordFromClassName(strRecordClass, recordOwner, true, false); }
/** * Get the item description. */ public String getDescription() throws RemoteException { Product recProduct = (Product)this.setRecordCurrent(); return recProduct.getField(Product.DESCRIPTION).toString(); } /**
/** * Get this property. */ public String getProperty(String strKey) { if (TrxMessageHeader.DESTINATION_PARAM.equalsIgnoreCase(strKey)) return this.getField(Vendor.WEB).toString(); else return ((PropertiesField)this.getField(Vendor.PROPERTIES)).getProperty(strKey); }
/** * SaveProductParam Method. */ public static String addFieldParam(String strCommand, BaseField field) { if (!field.isNull()) strCommand = Utility.addURLParam(strCommand, field.getFieldName(), field.toString()); return strCommand; } /**
/** * Get the message to display in the message box. */ public String getDisplayMessage() { String strMessage = this.getOwner().getRecord().getField(BaseStatus.DESCRIPTION).toString(); return strMessage; }
/** * Code to display a Menu. */ public void preSetupGrid(String strMenu) { if (strMenu == null) // Always strMenu = m_recDetail.getField(Menus.kID).toString(); m_recDetail.setKeyArea(Menus.kParentFolderIDKey); m_recDetail.addListener(new StringSubFileFilter(strMenu, Menus.kParentFolderID, null, -1, null, -1)); } /**
public void addMessageProperty(BaseMessage message, Record screenRecord, String iFieldSeq) { if (!screenRecord.getField(iFieldSeq).isNull()) message.put(screenRecord.getField(iFieldSeq).getFieldName(), screenRecord.getField(iFieldSeq).toString()); } });
/** * SaveProductParam Method. */ public String saveProductParam(String strCommand, String iFieldSeq) { if (!this.getScreenRecord().getField(iFieldSeq).isNull()) strCommand = Utility.addURLParam(strCommand, this.getScreenRecord().getField(iFieldSeq).getFieldName(), this.getScreenRecord().getField(iFieldSeq).toString()); return strCommand; } /**
/** * Move the data in this record to the thin version. * @param fieldList. */ public void moveDataToThin(Record record, FieldList fieldList) { if (!record.getField(OTACodes.VALUE).isNull()) fieldList.getField(record.getField(OTACode.ID).getFieldName()).setString(record.getField(OTACodes.VALUE).toString()); this.moveFieldToThin(fieldList.getField(record.getField(OTACodes.NAME).getFieldName()), null, record); } /**
/** * Move the data in this record to the thin version. * @param fieldList. */ public void moveDataToThin(Record record, FieldList fieldList) { if (!record.getField(OTACodes.VALUE).isNull()) fieldList.getField(record.getField(OTACode.ID).getFieldName()).setString(record.getField(OTACodes.VALUE).toString()); this.moveFieldToThin(fieldList.getField(record.getField(OTACodes.NAME).getFieldName()), null, record); } /**