001/* 002 * Copyright 2007 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.sys; 017 018import java.util.ArrayList; 019import java.util.Collections; 020import java.util.HashMap; 021import java.util.List; 022import java.util.Map; 023 024import org.apache.commons.lang.StringUtils; 025import org.kuali.ole.gl.businessobject.OriginEntryFull; 026import org.kuali.ole.module.purap.PurapConstants; 027import org.kuali.ole.sys.context.SpringContext; 028import org.kuali.rice.core.api.util.type.KualiDecimal; 029import org.kuali.rice.core.api.util.type.KualiInteger; 030import org.kuali.rice.kew.api.KewApiConstants; 031import org.kuali.rice.kns.service.DataDictionaryService; 032import org.kuali.rice.krad.util.KRADConstants; 033 034/** 035 * This class is used to define global constants. 036 */ 037public class OLEConstants { 038 private static final long serialVersionUID = 2882277719647128949L; 039 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OLEConstants.class); 040 public static final String APPLICATION_NAMESPACE_CODE = "OLE"; 041 042 public static final String KFS_CORE_SERVICE_NAMESPACE = "http://kfs.kuali.org/core/v5_0"; 043 044 public static final String KFS_CORE_DISTRIBUTED_CACHE_MANAGER = "kfs.core.DistributedCacheManager"; 045 public static Map<String, Boolean> PO_NOTE_MAP = new HashMap<String, Boolean>(); 046 public static final String MULTIPLE_ITEM_LOC = "Multiple"; 047 public static final int BIG_DECIMAL_SCALE = 2; 048 @Deprecated 049 public static class ParameterNamespaces { 050 public static final String OLE = "OLE-SYS"; 051 public static final String CHART = "OLE-COA"; 052 public static final String FINANCIAL = "OLE-FP"; 053 public static final String GL = "OLE-GL"; 054 public static final String PDP = "OLE-PDP"; 055 public static final String KNS = KRADConstants.KNS_NAMESPACE; 056 } 057 058 public static class CoreModuleNamespaces { 059 public static final String OLE = "OLE-SYS"; 060 public static final String CHART = "OLE-COA"; 061 public static final String FINANCIAL = "OLE-FP"; 062 public static final String GL = "OLE-GL"; 063 public static final String VENDOR = "OLE-VND"; 064 public static final String PDP = "OLE-PDP"; 065 public static final String KNS = KRADConstants.KNS_NAMESPACE; 066 public static final String ACCESS_SECURITY = "OLE-SEC"; 067 public static final String SELECT = "OLE-SELECT"; 068 } 069 070 // for ease of reference, a list of the optional modules delivered with and supported by the KFS project 071 public static final class OptionalModuleNamespaces { 072 public static final String PURCHASING_ACCOUNTS_PAYABLE = "OLE-PURAP"; 073 } 074 075 public static class DocumentTypeAttributes { 076 public static final String INDICATOR_ATTRIBUTE_TRUE_VALUE = "Y"; 077 078 public static final String TRANSACTION_SCRUBBER_OFFSET_INDICATOR_ATTRIBUTE_KEY = "TRANSACTION_SCRUBBER_OFFSET_GENERATION"; 079 public static final String ACCOUNTING_DOCUMENT_TYPE_NAME = "OLE_ACCT"; 080 } 081 082 // special user used in the post-processor 083 //TODO: eventually this should be removed and the system user should be pulled from a parameter 084 // right now, you HAVE to make sure that a 'ole' user exists in your system, either in the DB 085 // or in an external system such as LDAP if implemented 086 public static final String SYSTEM_USER = "ole"; 087 088 public static final String BATCH_FAILURE_ATCH_NAME_BIB="Failure Bib File"; 089 public static final String BATCH_FAILURE_ATCH_NAME_EDI="Failure Edi File"; 090 public static final String BATCH_FAILURE_EXTRA_ATCH_NAME_BIB="Extra Bib Records File"; 091 public static final String BATCH_FAILURE_EXTRA_ATCH_NAME_EDI="Extra Edi Records File"; 092 public static final String BATCH_FAILURE_BIB_FILE_ETN="_bib_err.xml"; 093 public static final String BATCH_FAILURE_EDI_FILE_ETN="_edi_err.xml"; 094 public static final String BATCH_FAILURE_FILE_MRK="_err.mrk"; 095 public static final String BATCH_REQ_ID_FILE="_reqId.txt"; 096 public static final String BATCH_FAILURE_CONTENT_TYPE="text/xml"; 097 public static final String ACCOUNT_MAINTENANCE_DOCUMENT_TYPE_DD_KEY = "AccountMaintenanceDocument"; 098 public static final String ENVIRONMENT_KEY = "environment"; 099 public static final String VERSION_KEY = "version"; 100 public static final String LOG4J_SETTINGS_FILE_KEY = "log4j.settings.file"; 101 public static final String LOGS_DIRECTORY_KEY = "logs.directory"; 102 public static final String LOG4J_RELOAD_MINUTES_KEY = "log4j.reload.minutes"; 103 public static final String LOG4J_OVERRIDE_KEY = "ole.fs.log4j.override"; 104 public static final String APPLICATION_URL_KEY = "application.url"; 105 public static final String ATTACHMENTS_DIRECTORY_KEY = "attachments.directory"; 106 public static final String ATTACHMENTS_PENDING_DIRECTORY_KEY = "attachments.pending.directory"; 107 public static final String STAGING_DIRECTORY_KEY = "staging.directory"; 108 public static final String TEMP_DIRECTORY_KEY = "temp.directory"; 109 public static final String EXTERNALIZABLE_HELP_URL_KEY = "externalizable.help.url"; 110 public static final String EXTERNALIZABLE_IMAGES_URL_KEY = "externalizable.images.url"; 111 public static final String EXTERNALIZABLE_XML_URL_KEY = "externalizable.xml.url"; 112 public static final String RICE_EXTERNALIZABLE_IMAGES_URL_KEY = "kr.externalizable.images.url"; 113 public static final String REPORTS_DIRECTORY_KEY = "reports.directory"; 114 public static final String WORKFLOW_URL_KEY = "workflow.url"; 115 public static final String PROD_ENVIRONMENT_CODE_KEY = "production.environment.code"; 116 public static final String USE_STANDALONE_WORKFLOW = "rice.use.standalone.workflow"; 117 public static final String BATCH_FILE_LOOKUP_ROOT_DIRECTORIES = "batch.file.lookup.root.directories"; 118 public static final String BATCH_UPLOAD_HELP_SYS_PARAM_NAME = "BATCH_UPLOAD_HELP_URL"; 119 public static final String BATCH_ISBN_DUPLICATE_FOUND="ISBN_DUP_FOUND"; 120 public static final String BATCH_VNO_DUPLICATE_FOUND="VEN_NO_DUP_FOUND"; 121 public static final String BATCH_LOAD_FAILD_FOUND="LOAD_FAILD_FOUND"; 122 public static final String BATCH_TITLE_FAILD_FOUND="TITLE_NOT_FOUND"; 123 public static final String BATCH_VNO_NOT_FOUND="VEN_NO_NOT_FOUND"; 124 public static final String BAD_BFN_NO_FOUND="BAD_BFN_NUMBER_FOUND"; 125 public static final String BAD_CONTROLL_LINE_FOUND="BAD_CONTROL_LINE_FOUND"; 126 public static final String APO_RULE_FAILED="APO_RULE_FAILED"; 127 public static final String BATCH_FAILURE_ATCH_NAME="Failure Mrk File"; 128 public static final String DOWNLOAD_CUSTM_BO_ATTACHMENT_METHOD="downloadCustomBOAttachment"; 129 public static final String LICENSE_WEB_SERVICE_URL="license.web.service.url"; 130 public static final String EXCEPTION="EXCEPTION"; 131 public static final String FINAL="FINAL"; 132 public static final String REQ_IDENTIFIER="requisitionIdentifier"; 133 public static final String PUR_DOC_IDENTIFIER="purapDocumentIdentifier"; 134 public static final String LOCATION_WEB_SERVICE_URL = "location.web.service.url"; 135 public static final String PATRON_WEB_SERVICE_URL = "patron.web.service.url"; 136 public static final String PATRON_SERVICE_CLASSNAME = "org.kuali.ole.select.document.service.OlePatronWebService"; 137 public static final String PATRON_SERVICE_NAME = "olePatronWebService"; 138 139 public static final String DATABASE_REPOSITORY_FILES_LIST_NAME = "databaseRepositoryFilePaths"; 140 public static final String JOB_NAMES_LIST_NAME = "jobNames"; 141 public static final String TRIGGER_NAMES_LIST_NAME = "triggerNames"; 142 143 public static final String LOOKUP_RESULTS_LIMIT_URL_KEY = "RESULTS_LIMIT"; 144 public static final String DOCHANDLER_DO_URL = "/DocHandler.do?docId="; 145 public static final String DOCHANDLER_URL_CHUNK = "&command=displayDocSearchView"; 146 147 public static final String ACCOUNT_NUMBER_PROPERTY_NAME = "accountNumber"; 148 public static final String MODULE_ID_PROPERTY_NAME = "moduleId"; 149 public static final String MODULE_CODE_PROPERTY_NAME = "moduleCode"; 150 public static final String ACCOUNT_STATUS_CLOSED = "Y"; 151 public static final String ACCOUNTING_PERIOD_ACTIVE_INDICATOR_FIELD = "active"; 152 public static final String ACTION_FORM_UTIL_MAP_METHOD_PARM_DELIMITER = "~"; 153 public static final String ADD_LINE_METHOD = "addLine"; 154 public static final String ADD_PREFIX = "add"; 155 public static final String ACTIVE_INDICATOR = "Y"; 156 public static final String AGGREGATE_ENCUMBRANCE_BALANCE_TYPE_CODE = "EN"; 157 public static final String AMOUNT_PROPERTY_NAME = "amount"; 158 public static final String APPROVE_METHOD = "approve"; 159 public static final String NON_ACTIVE_INDICATOR = "N"; 160 public static final String BLANK_SPACE = " "; 161 public static final String BACK_LOCATION = "backLocation"; 162 public static final String BACKDOOR_PARAMETER = "backdoorId"; 163 public static final String BALANCE_INQUIRY_REPORT_MENU_ACTION = "balanceInquiryReportMenu.do"; 164 public static final String ASSET_INQUIRY_MENU_ACTION = "camsAssetPayment.do"; 165 public static final String BALANCE_TYPE_PROPERTY_NAME = "balanceTypeCode"; 166 public static final String BALANCE_TYPE_CURRENT_BUDGET = "CB"; 167 public static final String BALANCE_TYPE_BASE_BUDGET = "BB"; 168 public static final String BALANCE_TYPE_MONTHLY_BUDGET = "MB"; 169 public static final String BALANCE_TYPE_EXTERNAL_ENCUMBRANCE = "EX"; 170 public static final String BALANCE_TYPE_INTERNAL_ENCUMBRANCE = "IE"; 171 public static final String BALANCE_TYPE_COST_SHARE_ENCUMBRANCE = "CE"; 172 public static final String BALANCE_TYPE_ACTUAL = "AC"; 173 public static final String BALANCE_TYPE_AUDIT_TRAIL = "NB"; 174 public static final String BALANCE_TYPE_PRE_ENCUMBRANCE = "PE"; 175 public static final String BLANKET_APPROVE_METHOD = "blanketApprove"; 176 public static final String BUSINESS_OBJECT_CLASS_ATTRIBUTE = "businessObjectClassName"; 177 public static final String CALLING_METHOD = "caller"; 178 public static final String CASH_MANAGEMENT_DOCUMENT_ACTION = "financialCashManagement.do"; 179 public static final String CHANGE_JOURNAL_VOUCHER_BALANCE_TYPE_METHOD = "changeBalanceType"; 180 public static final String CHART_OF_ACCOUNTS_CODE_PROPERTY_NAME = "chartOfAccountsCode"; 181 public static final String CONFIRMATION_QUESTION = "confirmationQuestion"; 182 public static final String CONSOLIDATED_SUBACCOUNT = "*ALL*"; 183 public static final String CONVERSION_FIELDS_PARAMETER = "conversionFields"; 184 public static final String LOOKUP_READ_ONLY_FIELDS = "readOnlyFields"; 185 public static final String LOOKUP_AUTO_SEARCH = "autoSearch"; 186 public static final String OBJECT_SUB_TYPES_DIFFERENT_QUESTION = "Object Subtypes different Question"; 187 188 public static final String CREDIT_AMOUNT_PROPERTY_NAME = "newSourceLineCredit"; 189 public static final String DEBIT_AMOUNT_PROPERTY_NAME = "newSourceLineDebit"; 190 public static final String DELETE_LINE_METHOD = "deleteLine"; 191 public static final String DICTIONARY_BO_NAME = "dictionaryBusinessObjectName"; 192 public static final String DISBURSEMENT_VOUCHER_PDP_EXTRACT_FILE_NAME = "extr_fr_disb_voucher"; 193 public static final String DISENCUMBRANCE = "Disencumbrance"; 194 public static final String DISPATCH_REQUEST_PARAMETER = "methodToCall"; 195 public static final String DOC_FORM_KEY = "docFormKey"; 196 public static final String FORM_KEY = "formKey"; 197 public static final String BALANCE_INQUIRY_REPORT_MENU_CALLER_DOC_FORM_KEY = "balanceInquiryReportMenuCallerDocFormKey"; 198 public static final String ASSET_INQUIRY_CALLER_DOC_FORM_KEY = "assetInquiryCallerDocFormKey"; 199 public static final String DOCUMENT_CANCEL_QUESTION = "DocCancel"; 200 public static final String DOCUMENT_DELETE_QUESTION = "DocDelete"; 201 public static final String DOCUMENT_DISAPPROVE_QUESTION = "DocDisapprove"; 202 public static final String DOCUMENT_HEADER_ID = "documentHeaderId"; 203 public static final String DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME = "financialDocumentStatusCode"; 204 public static final String NOTE_TEXT_PROPERTY_NAME = "noteText"; 205 public static final String DOCUMENT_HEADER_PROPERTY_NAME = "documentHeader"; 206 public static final String DOCUMENT_SAVE_BEFORE_CLOSE_QUESTION = "DocSaveBeforeClose"; 207 public static final String EMPLOYEE_ACTIVE_STATUS = "A"; 208 public static final String EXISTING_SOURCE_ACCT_LINE_PROPERTY_NAME = "sourceAccountingLine"; 209 public static final String EXISTING_TARGET_ACCT_LINE_PROPERTY_NAME = "targetAccountingLine"; 210 public static final String SOURCE_ACCT_LINE_TYPE_CODE = "F"; // F = From, the label for this on most documents 211 public static final String TARGET_ACCT_LINE_TYPE_CODE = "T"; // T = To, the label for this on most documents 212 public static final String EXTRA_BUTTON_SOURCE = "extraButtonSource"; 213 public static final String EXTRA_BUTTON_PARAMS = "extraButtonParams"; 214 public static final String NEW_DOCUMENT_NOTE_PROPERTY_NAME = "newDocumentNote"; 215 public static final String NEW_AD_HOC_ROUTE_PERSON_PROPERTY_NAME = "newAdHocRoutePerson"; 216 public static final String NEW_AD_HOC_ROUTE_WORKGROUP_PROPERTY_NAME = "newAdHocRouteWorkgroup"; 217 public static final String EXISTING_AD_HOC_ROUTE_PERSON_PROPERTY_NAME = "adHocRoutePerson"; 218 public static final String EXISTING_AD_HOC_ROUTE_WORKGROUP_PROPERTY_NAME = "adHocRouteWorkgroup"; 219 public static final String NEW_SOURCE_ACCT_LINE_PROPERTY_NAME = "newSourceLine"; 220 public static final String NEW_TARGET_ACCT_LINES_PROPERTY_NAME = "newTargetLines"; 221 public static final String NEW_TARGET_ACCT_LINE_PROPERTY_NAME = "newTargetLine"; 222 public static final String DOCUMENT_PROPERTY_NAME = "document"; 223 public static final String DOCUMENT_TYPE_NAME = "docTypeName"; 224 public static final String EDIT_PREFIX = "edit"; 225 public static final String DASH = "-"; 226 public static final String EMPTY_STRING = ""; 227 public static final String ENCUMBRANCE = "Encumbrance"; 228 public static final String EXPENSE = "Expense"; 229 public static final String FIELD_CONVERSION_PAIR_SEPERATOR = ":"; 230 public static final String FIELD_CONVERSIONS_SEPERATOR = ","; 231 public static final String REFERENCES_TO_REFRESH_SEPARATOR = ","; 232 public static final String FIELD_CONVERSION_PREFIX_PARAMETER = "fieldConversionPrefix"; 233 public static final String FINANCIAL_OBJECT_CODE_PROPERTY_NAME = "financialObjectCode"; 234 public static final String FINANCIAL_OBJECT_LEVEL_CODE_PROPERTY_NAME = "financialObjectLevelCode"; 235 public static final String FINANCIAL_SUB_OBJECT_CODE_PROPERTY_NAME = "financialSubObjectCode"; 236 public static final String FISCAL_CHART_NAME = "fiscalChartOfAccountsCode"; 237 public static final String FISCAL_ORG_NAME = "fiscalOrganizationCode"; 238 public static final String FROM = "From"; 239 public static final String GENERIC_FIELD_NAME = "Field"; 240 public static final String GENERIC_CODE_PROPERTY_NAME = "code"; 241 public static final String GL_BALANCE_INQUIRY_FLAG = "inquiryFlag"; 242 public static final String GL_ACCOUNT_BALANCE_BY_CONSOLIDATION_LOOKUP_ACTION = "glAccountBalanceByConsolidationLookup.do"; 243 public static final String AR_CUSTOMER_AGING_REPORT_LOOKUP_ACTION = "arCustomerAgingReportLookup.do"; 244 public static final String GL_BALANCE_INQUIRY_ACTION = "glBalanceInquiry.do"; 245 public static final String GL_MODIFIED_INQUIRY_ACTION = "glModifiedInquiry.do"; 246 public static final String GL_PE_OFFSET_STRING = "TP Generated Offset"; 247 public static final String SUB_OBJECT_CODE_PROPERTY_NAME = "subObjectCode"; 248 public static final String UNIVERSITY_FISCAL_YEAR_PROPERTY_NAME = "universityFiscalYear"; 249 public static final String UNIVERSITY_FISCAL_PERIOD_CODE_PROPERTY_NAME = "universityFiscalPeriodCode"; 250 public static final String FINANCIAL_BALANCE_TYPE_CODE_PROPERTY_NAME = "financialBalanceTypeCode"; 251 public static final String ACCOUNT_SUFFICIENT_FUNDS_CODE_PROPERTY_NAME = "accountSufficientFundsCode"; 252 public static final String CURRENT_BUDGET_BALANCE_AMOUNT_PROPERTY_NAME = "currentBudgetBalanceAmount"; 253 public static final String ACCOUNT_ENCUMBRANCE_AMOUNT_PROPERTY_NAME = "accountEncumbranceAmount"; 254 public static final String TRANSACTION_DEBIT_CREDIT_CODE = "transactionDebitCreditCode"; 255 public static final String TRANSACTION_LEDGER_ENTRY_AMOUNT = "transactionLedgerEntryAmount"; 256 public static final String ACCOUNT_SUFFICIENT_FUNDS_FINANCIAL_OBJECT_CODE_PROPERTY_NAME = "acctSufficientFundsFinObjCd"; 257 public static final String FINANCIAL_OBJECT_TYPE_CODE = "financialObjectTypeCode"; 258 public static final String FINANCIAL_DOCUMENT_TYPE_CODE = "financialDocumentTypeCode"; 259 public static final String ORGANIZATION_CODE_PROPERTY_NAME = "organizationCode"; 260 public static final String ORIGIN_CODE_KUALI = "01"; 261 public static final String TRANSFER_FUNDS = "TF"; 262 public static final String[] ENCUMBRANCE_BALANCE_TYPE = new String[] { BALANCE_TYPE_EXTERNAL_ENCUMBRANCE, BALANCE_TYPE_INTERNAL_ENCUMBRANCE, BALANCE_TYPE_PRE_ENCUMBRANCE }; 263 public static final String STAND_IN_BUSINESS_OBJECT_FOR_ATTRIBUTES = "GenericAttributes"; 264 public static final String EMPLOYEE_FUNDING_INQUIRY_ACTION = "employeeFundingInquiry.do"; 265 public static final String OVERRIDE_KEYS = "overrideKeys"; 266 public static final String PERCENTAGE_SIGN = "%"; 267 public static final String RICE_PATH_PREFIX = "kr/"; 268 public static final String USE_CONTINUATION_BANK_QUESTION = "UseContinuationBankQuestion"; 269 public static final String NEW_WINDOW_URL_TARGET = "_blank"; 270 public static final String AND = "and"; 271 public static final String COMMA = ","; 272 public static final String PERFORMANCE_BALANCE_INQUIRY_FOR_METHOD = "performBalanceInquiryFor"; 273 public static final String INSERT_METHOD = "insert"; 274 public static final String SOURCE_ACCOUNTING_LINES_GROUP_NAME = "source"; 275 public static final String TARGET_ACCOUNTING_LINES_GROUP_NAME = "target"; 276 public static final String SUB_ACCOUNT_EDIT_CG_ICR_SECTION_ID = "Edit CG ICR"; 277 public static final String INITIATE_LICENSE_REQUEST = "ILR"; 278 public static final String OLE_WEB_SERVICE_PROVIDER = "oleWebServiceProvider"; 279 public static final String OLE_NMSPC="OLE-SYS"; 280 public static final String OLE_CMPNT="OLE"; 281 public static final String APPL_ID="KUALI"; 282 283 public static final String SCRIPT_CONFIGURATION_FILES_LIST_NAME = "scriptConfigurationFilePaths"; 284 /** 285 * This value denotes that a max length has not been defined for a given lookup results field 286 */ 287 public static final int LOOKUP_RESULT_FIELD_MAX_LENGTH_NOT_DEFINED = -1; 288 289 /** 290 * The number of levels BusinessObjectDictionaryServiceImpl will recurse. If this number is high, it may lead to serious 291 * performance problems 292 */ 293 public static final int BUSINESS_OBJECT_DICTIONARY_SERVICE_PERFORM_FORCE_UPPERCASE_RECURSION_MAX_DEPTH = 3; 294 295 296 /** 297 * When checkboxes are rendered on the form, a hidden field will also be rendered corresponding to each checkbox with the 298 * checkbox's name suffixed with the value of this constant. No real fields should have names that contain this suffix, since 299 * this may lead to undesired results. 300 */ 301 public static final String CHECKBOX_PRESENT_ON_FORM_ANNOTATION = "{CheckboxPresentOnFormAnnotation}"; 302 303 public static class OrgReversion { 304 public static final String VALID_PREFIX = "EXTENDED_DEFINITIONS_INCLUDE_"; 305 public static final String INVALID_PREFIX = "EXTENDED_DEFINITIONS_EXCLUDE_"; 306 public static final String OBJECT_CONSOL_PARAM_SUFFIX = "OBJECT_CONSOLIDATIONS_BY_ORGANIZATION_REVERSION_CATEGORY"; 307 public static final String OBJECT_LEVEL_PARAM_SUFFIX = "OBJECT_LEVELS_BY_ORGANIZATION_REVERSION_CATEGORY"; 308 public static final String OBJECT_TYPE_PARAM_SUFFIX = "OBJECT_TYPES_BY_ORGANIZATION_REVERSION_CATEGORY"; 309 public static final String OBJECT_SUB_TYPE_PARAM_SUFFIX = "OBJECT_SUB_TYPES_BY_ORGANIZATION_REVERSION_CATEGORY"; 310 public static final String IS_EXPENSE_PARAM = "EXTENDED_DEFINITIONS_EXPENSE_CATEGORIES"; 311 } 312 313 // CR doc properties 314 public static final String NEW_CHECK_PROPERTY_NAME = "newCheck"; 315 public static final String EXISTING_CHECK_PROPERTY_NAME = "check"; 316 317 public static final int DOCUMENT_ANNOTATION_MAX_LENGTH = 2000; 318 319 // TRN_LDGR_DEBIT_CRDT_CD valid values 320 public static final String GL_DEBIT_CODE = "D"; 321 public static final String GL_CREDIT_CODE = "C"; 322 public static final String GL_BUDGET_CODE = " "; 323 324 // TRN_ENCUM_UPDT_CD value values 325 public static final String ENCUMB_UPDT_DOCUMENT_CD = "D"; 326 public static final String ENCUMB_UPDT_REFERENCE_DOCUMENT_CD = "R"; 327 public static final String ENCUMB_UPDT_NO_ENCUMBRANCE_CD = "N"; 328 329 // GL Reversal Generated Entry Description Prefix 330 public static final String GL_REVERSAL_DESCRIPTION_PREFIX = "AUTO REVERSAL-"; 331 332 // Misc GL text. 333 public static final String PLANT_INDEBTEDNESS_ENTRY_DESCRIPTION = "GENERATED TRANSFER TO NET PLANT"; 334 335 // Sufficient Funds Type Codes 336 public static final String SF_TYPE_NO_CHECKING = "N"; 337 public static final String SF_TYPE_OBJECT = "O"; 338 public static final String SF_TYPE_LEVEL = "L"; 339 public static final String SF_TYPE_CONSOLIDATION = "C"; 340 public static final String SF_TYPE_CASH_AT_ACCOUNT = "H"; 341 public static final String SF_TYPE_ACCOUNT = "A"; 342 public static final String NOTIFICATION_APPROVER = "ole-butt"; 343 344 public static final String GRANT = "Grant"; 345 public static final String HIDE_LOOKUP_RETURN_LINK = "hideReturnLink"; 346 public static final String SUPPRESS_ACTIONS = "suppressActions"; 347 public static final String REFERENCES_TO_REFRESH = "referencesToRefresh"; 348 public static final String CHECK_IN_OPERATION = "checkIn"; 349 public static final String INCOME = "Income"; 350 public static final String INITIAL_KUALI_DOCUMENT_STATUS_CD = "?"; 351 public static final String INSERT_SOURCE_LINE_METHOD = "insertSourceLine"; 352 public static final String INSERT_TARGET_LINE_METHOD = "insertTargetLine"; 353 public static final String ICR = "Receipt"; 354 public static final String PROJECT_CODE_PROPERTY_NAME = "projectCode"; 355 356 public static final String INQUIRY_ACTION = "kr/inquiry.do"; 357 public static final String JOURNAL_VOUCHER_CHANGE_BALANCE_TYPE_QUESTION = "JournalVoucherChangeBalanceTypeQuestion"; 358 public static final String JOURNAL_VOUCHER_ROUTE_OUT_OF_BALANCE_DOCUMENT_QUESTION = "JournalVoucherRouteOutOfBalanceDocumentQuestion"; 359 public static final String JOURNAL_LINE_HELPER_PROPERTY_NAME = "journalLineHelper"; 360 public static final String AUXILIARY_LINE_HELPER_PROPERTY_NAME = "auxiliaryLineHelper"; 361 public static final String VOUCHER_LINE_HELPER_CREDIT_PROPERTY_NAME = ".credit"; 362 public static final String VOUCHER_LINE_HELPER_DEBIT_PROPERTY_NAME = ".debit"; 363 public static final String LOOKUP_ACTION = "kr/lookup.do"; 364 public static final String LOOKUP_RESULTS_SEQUENCE_NUMBER = "lookupResultsSequenceNumber"; 365 public static final String LOOKUP_RESULTS_BO_CLASS_NAME = "lookupResultsBOClassName"; 366 public static final String LOOKED_UP_COLLECTION_NAME = "lookedUpCollectionName"; 367 public static final String MULTIPLE_VALUE_LOOKUP_PREVIOUSLY_SELECTED_OBJ_IDS_PARAM = "previouslySelectedObjectIds"; 368 public static final String MULTIPLE_VALUE_LOOKUP_DISPLAYED_OBJ_ID_PARAM_PREFIX = "displayedObjId-"; 369 public static final String MULTIPLE_VALUE_LOOKUP_SELECTED_OBJ_ID_PARAM_PREFIX = "selectedObjId-"; 370 public static final String LOOKUP_ANCHOR = "lookupAnchor"; 371 public static final String LOOKUPABLE_IMPL_ATTRIBUTE_NAME = "lookupableImplServiceName"; 372 public static final String LOOKUPABLE_SUFFIX = "Lookupable"; 373 public static final String KUALI_LOOKUPABLE_IMPL = "kualiLookupable"; 374 public static final String KUALI_DISBURSEMENT_PAYEE_LOOKUPABLE_IMPL = "disbursementPayeeLookupable"; 375 public static final String KUALI_VENDOR_ADDRESS_LOOKUPABLE_IMPL = "vendorAddressLookupable"; 376 public static final String DOC_HANDLER_ACTION = "DocHandler.do"; 377 public static final String DOC_HANDLER_METHOD = "docHandler"; 378 public static final String DOC_HANDLER_URL ="/kew/DocHandler.do?command=displayDocSearchView&docId"; 379 public static final String PARAMETER_DOC_ID = "docId"; 380 public static final String PARAMETER_COMMAND = "command"; 381 public static final String METHOD_DISPLAY_DOC_SEARCH_VIEW = "displayDocSearchView"; 382 public static final String MAINTENANCE_ACTION = "maintenance.do"; 383 public static final String MAINTENANCE_ADD_PREFIX = "add."; 384 public static final String MAINTENANCE_COPY_ACTION = "Copy"; 385 public static final String MAINTENANCE_EDIT_ACTION = "Edit"; 386 public static final String MAINTENANCE_NEW_ACTION = "New"; 387 public static final String MAINTENANCE_COPY_METHOD_TO_CALL = "copy"; 388 public static final String MAINTENANCE_EDIT_METHOD_TO_CALL = "edit"; 389 public static final String MAINTENANCE_NEW_METHOD_TO_CALL = "start"; 390 public static final String MAINTENANCE_NEWWITHEXISTING_ACTION = "newWithExisting"; 391 public static final String MAINTENANCE_NEW_MAINTAINABLE = "document.newMaintainableObject."; 392 public static final String MAINTENANCE_OLD_MAINTAINABLE = "document.oldMaintainableObject."; 393 public static final String MAPPING_BASIC = "basic"; 394 public static final String MAPPING_VIEW = "view"; 395 public static final String MAPPING_CANCEL = "cancel"; 396 public static final String MAPPING_CLOSE = "close"; 397 public static final String MAPPING_ERROR = "error"; 398 public static final String MAPPING_PORTAL = "portal"; 399 public static final String MAPPING_BALANCE_INQUIRY_REPORT_MENU = "balanceInquiryReportMenu"; 400 public static final String MAPPING_DV_PER_DIEM_LINKS = "dvPerDiemLinks"; 401 public static final String METHOD_TO_CALL_ATTRIBUTE = "methodToCallAttribute"; 402 public static final String METHOD_TO_CALL_PATH = "methodToCallPath"; 403 public static final String METHOD_TO_CALL_BOPARM_LEFT_DEL = "(!!"; 404 public static final String METHOD_TO_CALL_BOPARM_RIGHT_DEL = "!!)"; 405 public static final String METHOD_TO_CALL_PARM1_LEFT_DEL = "((("; 406 public static final String METHOD_TO_CALL_PARM1_RIGHT_DEL = ")))"; 407 public static final String METHOD_TO_CALL_PARM2_LEFT_DEL = "((#"; 408 public static final String METHOD_TO_CALL_PARM2_RIGHT_DEL = "#))"; 409 public static final String METHOD_TO_CALL_PARM3_LEFT_DEL = "((<"; 410 public static final String METHOD_TO_CALL_PARM3_RIGHT_DEL = ">))"; 411 public static final String METHOD_TO_CALL_PARM4_LEFT_DEL = "((["; 412 public static final String METHOD_TO_CALL_PARM4_RIGHT_DEL = "]))"; 413 public static final String METHOD_TO_CALL_PARM5_LEFT_DEL = "((*"; 414 public static final String METHOD_TO_CALL_PARM5_RIGHT_DEL = "*))"; 415 public static final String METHOD_TO_CALL_PARM6_LEFT_DEL = "((%"; 416 public static final String METHOD_TO_CALL_PARM6_RIGHT_DEL = "%))"; 417 public static final String METHOD_TO_CALL_PARM7_LEFT_DEL = "((^"; 418 public static final String METHOD_TO_CALL_PARM7_RIGHT_DEL = "^))"; 419 public static final String METHOD_TO_CALL_PARM8_LEFT_DEL = "((&"; 420 public static final String METHOD_TO_CALL_PARM8_RIGHT_DEL = "&))"; 421 public static final String METHOD_TO_CALL_PARM9_LEFT_DEL = "((~"; 422 public static final String METHOD_TO_CALL_PARM9_RIGHT_DEL = "~))"; 423 public static final String METHOD_TO_CALL_PARM10_LEFT_DEL = "((/"; 424 public static final String METHOD_TO_CALL_PARM10_RIGHT_DEL = "/))"; 425 public static final String METHOD_TO_CALL_PARM11_LEFT_DEL = "(:;"; 426 public static final String METHOD_TO_CALL_PARM11_RIGHT_DEL = ";:)"; 427 public static final String METHOD_TO_CALL_PARM12_LEFT_DEL = "(::;"; 428 public static final String METHOD_TO_CALL_PARM12_RIGHT_DEL = ";::)"; 429 public static final String METHOD_TO_CALL_PARM13_LEFT_DEL = "(:::;"; 430 public static final String METHOD_TO_CALL_PARM13_RIGHT_DEL = ";:::)"; 431 // if more strings needed, then add more colons to the PARM11 strings above, e.g. (::; (:::;, etc. 432 433 public static final String ACTION_EXTENSION_DOT_DO = ".do"; 434 public static final String ANCHOR = "anchor"; 435 public static final String ANCHOR_TOP_OF_FORM = "topOfForm"; 436 public static final String NOT_AVAILABLE_STRING = "N/A"; 437 public static final int NEGATIVE_ONE = -1; 438 @Deprecated 439 public static final String OBJECT_TYPE_CODE_PROPERTY_NAME = OLEPropertyConstants.OBJECT_TYPE_CODE; 440 public static final String QUESTION_CLICKED_BUTTON = "buttonClicked"; 441 public static final String QUESTION_INST_ATTRIBUTE_NAME = "questionIndex"; 442 public static final String QUESTION_REFRESH = "QuestionRefresh"; 443 public static final String QUESTION_CONTEXT = "context"; 444 public static final String QUESTION_REASON_ATTRIBUTE_NAME = "reason"; 445 public static final String RELOAD_METHOD_TO_CALL = "reload"; 446 public static final String REFRESH_CALLER = "refreshCaller"; 447 public static final String REQUIRED_FIELD_SYMBOL = "*"; 448 public static final String RETURN_LOCATION_PARAMETER = "returnLocation"; 449 public static final String RETURN_METHOD_TO_CALL = "refresh"; 450 public static final String ROUTE_METHOD = "route"; 451 public static final String SAVE_METHOD = "save"; 452 public static final String START_METHOD = "start"; 453 public static final String SEARCH_METHOD = "search"; 454 public static final String COPY_METHOD = "copy"; 455 public static final String ERRORCORRECT_METHOD = "correct"; 456 public static final String SOURCE = "Source"; 457 public static final String SQUARE_BRACKET_LEFT = "["; 458 public static final String SQUARE_BRACKET_RIGHT = "]"; 459 @Deprecated 460 public static final String SUB_ACCOUNT_NUMBER_PROPERTY_NAME = OLEPropertyConstants.SUB_ACCOUNT_NUMBER; 461 public static final String TARGET = "Target"; 462 public static final String TO = "To"; 463 public static final String USER_SESSION_KEY = "UserSession"; 464 public static final String VERSION_NUMBER = "versionNumber"; 465 466 public static final String SEARCH_LIST_REQUEST_KEY = "searchResultKey"; 467 468 public static final int CORRECTION_RECENT_GROUPS_DAY = 10; 469 470 public static final String GLOBAL_ERRORS = "GLOBAL_ERRORS"; 471 public static final String GLOBAL_MESSAGES = "GlobalMessages"; 472 public static final String DOCUMENT_DOCUMENT_ERRORS = "document.document*"; 473 public static final String DOCUMENT_EXPLANATION_ERRORS = "document.explanation*"; 474 public static final String DOCUMENT_REVERSAL_ERRORS = "document.reversal*"; 475 public static final String DOCUMENT_SELECTED_ERRORS = "document.selected*"; 476 public static final String DOCUMENT_HEADER_ERRORS = "document.header*"; 477 public static final String DOCUMENT_ERRORS_LESS_DOCUMENT = DOCUMENT_EXPLANATION_ERRORS + "," + DOCUMENT_REVERSAL_ERRORS + "," + DOCUMENT_SELECTED_ERRORS + "," + DOCUMENT_HEADER_ERRORS; 478 public static final String DOCUMENT_ERRORS = DOCUMENT_DOCUMENT_ERRORS + "," + DOCUMENT_EXPLANATION_ERRORS + "," + DOCUMENT_REVERSAL_ERRORS + "," + DOCUMENT_SELECTED_ERRORS + "," + DOCUMENT_HEADER_ERRORS; 479 public static final String DOCUMENT_NOTES_ERRORS = "newDocumentNote*"; 480 481 public enum NoteTypeEnum { 482 BUSINESS_OBJECT_NOTE_TYPE("BO", "documentBusinessObject"), DOCUMENT_HEADER_NOTE_TYPE("DH", "documentHeader"); 483 private String noteTypeCode; 484 private String noteTypePath; 485 486 private NoteTypeEnum(String noteTypeCode, String noteTypePath) { 487 this.noteTypeCode = noteTypeCode; 488 this.noteTypePath = noteTypePath; 489 } 490 491 public String getCode() { 492 return this.noteTypeCode; 493 } 494 495 public String getPath() { 496 return this.noteTypePath; 497 } 498 499 public String getFullPath() { 500 return OLEConstants.DOCUMENT_PROPERTY_NAME + "." + getPath(); 501 } 502 } 503 504 public static final String EDIT_JOURNAL_VOUCHER_ERRORS = "EditJournalVoucherErrors"; 505 public static final String EDIT_AUXILIARY_VOUCHER_ERRORS = "EditAuxiliaryVoucherErrors"; 506 public static final String EDIT_PRE_ENCUMBRANCE_ERRORS = "EditPreEncumbranceErrors"; 507 508 public static final String ACCOUNTING_LINE_ERRORS = "document.accountingLines"; 509 public static final String OHQ_REQUISITION_STATUS = "OLE_REQS"; 510 //cannot use SOURCE_ACCOUNTING_LINE_ERROR_PATTERN due to doubled error displayed in checking already added source accounting line 511 public static final String NEW_SOURCE_LINE_ERRORS = "newSourceLine*"; 512 public static final String SOURCE_ACCOUNTING_LINE_ERROR_PATTERN = "document.sourceAccounting*,sourceAccountingLines,newSourceLine*,journalLineHelper*,auxiliaryLineHelper*"; 513 public static final String TARGET_ACCOUNTING_LINE_ERROR_PATTERN = "document.targetAccounting*,targetAccountingLines,newTargetLine*"; 514 public static final String ACCOUNTING_LINE_GROUP_SUFFIX = "s"; 515 public static final String SOURCE_ACCOUNTING_LINE_ERRORS = EXISTING_SOURCE_ACCT_LINE_PROPERTY_NAME + ACCOUNTING_LINE_GROUP_SUFFIX; 516 public static final String TARGET_ACCOUNTING_LINE_ERRORS = EXISTING_TARGET_ACCT_LINE_PROPERTY_NAME + ACCOUNTING_LINE_GROUP_SUFFIX; 517 public static final String ITEM_LINE_ERRORS = "newItem*,document.item*"; 518 519 public static final String CREDIT_CARD_RECEIPTS_LINE_ERRORS = "newCreditCardReceipt*,document.creditCardReceipt*"; 520 public static final String ADVANCE_DEPOSITS_LINE_ERRORS = "newAdvanceDeposit*,document.advanceDeposit*"; 521 public static final String GENERAL_LEDGER_PENDING_ENTRIES_TAB_ERRORS = "document.generalLedgerPendingEntr*"; 522 523 public static final String WILDCARD_CHARACTER = "*"; 524 public static final String WILDCARD_NOT_ALLOWED_ON_FIELD = "error.fieldDoNotAllowWildcard"; 525 526 // disbursement voucher error fields 527 public static final String DV_PAYEE_TAB_ERRORS = "DVPayeeErrors,document.dvPayeeDetail.disbVchrPayeeIdNumber,document.dvPayeeDetail.disbVchrPayeeCityName,document.dvPayeeDetail.disbVchrPayeePersonName," + "document.dvPayeeDetail.disbVchrPayeeStateCode,document.dvPayeeDetail.disbVchrPayeeLine1Addr,document.dvPayeeDetail.disbVchrPayeeZipCode,document.dvPayeeDetail.disbVchrPayeeLine2Addr,document.dvPayeeDetail.disbVchrPayeeCountryCode,document.dvPayeeDetail.disbursementVoucherPayeeTypeCode,"; 528 public static final String DV_PAYEE_INIT_TAB_ERRORS = "DVPayeeErrors,payeeIdNumber,payeePersonName,payeeTypeCode"; 529 public static final String DV_PAYMENT_TAB_ERRORS = "DVPaymentErrors,document.dvPayeeDetail.disbVchrPaymentReasonCode,document.disbVchrCheckTotalAmount,document.disbursementVoucherDueDate,document.dvPayeeDetail.disbVchrAlienPaymentCode," + "document.dvPayeeDetail.disbVchrPayeeEmployeeCode,document.disbVchrAttachmentCode,document.disbVchrSpecialHandlingCode,document.disbVchrPayeeW9CompleteCode" + "document.disbVchrPaymentMethodCode,document.disbursementVoucherDocumentationLocationCode,document.disbVchrCheckStubText"; 530 public static final String DV_NRATAX_TAB_ERRORS = "DVNRATaxErrors,document.dvNonResidentAlienTax.incomeClassCode,document.dvNonResidentAlienTax.incomeTaxTreatyExemptCode,document.dvNonResidentAlienTax.federalIncomeTaxPercent," + "document.dvNonResidentAlienTax.foreignSourceIncomeCode,document.dvNonResidentAlienTax.stateIncomeTaxPercent,document.dvNonResidentAlienTax.incomeTaxGrossUpCode,document.dvNonResidentAlienTax.postalCountryCode," + "document.dvNonResidentAlienTax.referenceFinancialDocumentNumber"; 531 public static final String DV_FOREIGNDRAFTS_TAB_ERRORS = "DVForeignDraftErrors,document.dvWireTransfer.disbursementVoucherForeignCurrencyTypeCode,document.dvWireTransfer.disbursementVoucherForeignCurrencyTypeName"; 532 public static final String DV_CONTACT_TAB_ERRORS = "DVContactErrors,document.disbVchrContact*"; 533 public static final String DV_SPECHAND_TAB_ERRORS = "DVSpecialHandlingErrors,document.dvPayeeDetail.disbVchrSpecialHandlingPersonName,document.dvPayeeDetail.disbVchrSpecialHandlingCityName,document.dvPayeeDetail.disbVchrSpecialHandlingLine1Addr,document.dvPayeeDetail.disbVchrSpecialHandlingStateCode," + "document.dvPayeeDetail.disbVchrSpecialHandlingLine2Addr,document.dvPayeeDetail.disbVchrSpecialHandlingZipCode,document.dvPayeeDetail.disbVchrSpecialHandlingCountryName"; 534 public static final String DV_WIRETRANSFER_TAB_ERRORS = "DVWireTransfersErrors,document.dvWireTransfer.disbursementVoucherBankName,document.dvWireTransfer.disbVchrBankRoutingNumber,document.dvWireTransfer.disbVchrBankCityName,document.dvWireTransfer.disbVchrBankStateCode," + "document.dvWireTransfer.disbVchrBankCountryCode,document.dvWireTransfer.disbVchrAttentionLineText,document.dvWireTransfer.disbVchrAdditionalWireText,document.dvWireTransfer.disbVchrPayeeAccountNumber,document.dvWireTransfer.disbVchrCurrencyTypeName,document.dvWireTransfer.disbVchrCurrencyTypeCode," + "document.dvWireTransfer.disbursementVoucherWireTransferFeeWaiverIndicator,document.dvWireTransfer.disbursementVoucherPayeeAccountName,document.dvWireTransfer.disbursementVoucherPayeeAccountTypeCode,document.dvWireTransfer.disbursementVoucherAutomatedClearingHouseProfileNumber"; 535 public static final String DV_NON_EMPL_TRAVEL_TAB_ERRORS = "DVNonEmployeeTravelErrors,newPrePaidNonEmployeeExpenseLine.*,newNonEmployeeExpenseLine.*,document.dvNonEmployeeTravel.*"; 536 public static final String DV_PREPAID_TAB_ERRORS = "DVPrePaidTravelErrors,newPreConferenceRegistrantLine.*,document.dvPreConferenceDetail.*"; 537 public static final String GENERAL_PAYMENT_TAB_ERRORS = "DVPaymentErrors"; 538 public static final String GENERAL_NRATAX_TAB_ERRORS = "DVNRATaxErrors"; 539 public static final String GENERAL_SPECHAND_TAB_ERRORS = "DVSpecialHandlingErrors"; 540 public static final String GENERAL_PREPAID_TAB_ERRORS = "DVPrePaidTravelErrors"; 541 public static final String GENERAL_NONEMPLOYEE_TAB_ERRORS = "DVNonEmployeeTravelErrors,document.dvNonEmployeeTravel.totalTravelAmount"; 542 public static final String DV_CHECK_TRAVEL_TOTAL_ERROR = "document.dvNonEmployeeTravel.totalTravelAmount"; 543 544 // country 545 public static final String COUNTRY_CODE_UNITED_STATES = "US"; 546 547 // CashManagement tab errors 548 public static final String CASH_MANAGEMENT_DEPOSIT_ERRORS = "document.deposit*"; 549 550 // Coin and Currency Amounts 551 public static class CoinTypeAmounts { 552 public static final KualiDecimal HUNDRED_CENT_AMOUNT = new KualiDecimal(1.0); 553 public static final KualiDecimal FIFTY_CENT_AMOUNT = new KualiDecimal(0.5); 554 public static final KualiDecimal TWENTY_FIVE_CENT_AMOUNT = new KualiDecimal(0.25); 555 public static final KualiDecimal TEN_CENT_AMOUNT = new KualiDecimal(0.1); 556 public static final KualiDecimal FIVE_CENT_AMOUNT = new KualiDecimal(0.05); 557 public static final KualiDecimal ONE_CENT_AMOUNT = new KualiDecimal(0.01); 558 } 559 560 public static class CurrencyTypeAmounts { 561 public static final KualiDecimal HUNDRED_DOLLAR_AMOUNT = new KualiDecimal(100.0); 562 public static final KualiDecimal FIFTY_DOLLAR_AMOUNT = new KualiDecimal(50.0); 563 public static final KualiDecimal TWENTY_DOLLAR_AMOUNT = new KualiDecimal(20.0); 564 public static final KualiDecimal TEN_DOLLAR_AMOUNT = new KualiDecimal(10.0); 565 public static final KualiDecimal FIVE_DOLLAR_AMOUNT = new KualiDecimal(5.0); 566 public static final KualiDecimal TWO_DOLLAR_AMOUNT = new KualiDecimal(2.0); 567 public static final KualiDecimal ONE_DOLLAR_AMOUNT = new KualiDecimal(1.0); 568 } 569 570 // Cashiering source constants 571 public static class CurrencyCoinSources { 572 public static final String CASH_MANAGEMENT_IN = "R"; // money coming in through cashiering activity 573 public static final String DEPOSITS = "D"; // money going out through deposits 574 public static final String CASH_RECEIPTS = "C"; // money coming in through cash receipts 575 public static final String CASH_MANAGEMENT_OUT = "O"; // money going out through cashiering activity 576 public static final String CASH_MANAGEMENT_MASTER = "M"; // an amalgamation of a cashiering transaction 577 public static final String CASH_CHANGE_REQUEST = "Q"; // requesting some change money back 578 public static final String CASH_CHANGE_GRANTED = "G"; // verified change request 579 } 580 581 // Constants for check sources 582 // Why are these constants different from the Currency/Coin constants? 583 // Why, I ask you in return, is the sky blue? That's right, because of 584 // the effect of Rayleigh scattering on atmospheric particles. That's why. 585 public static class CheckSources { 586 public static final String CASH_RECEIPTS = "C"; 587 public static final String CASH_MANAGEMENT = "R"; 588 } 589 590 public static final String CASHIERING_TRANSACTION_OPEN_ITEM_IN_PROCESS_PROPERTY = "document.currentTransaction.openItemInProcess"; 591 592 // Tab error patterns must be at the top level; JSPs do not have access to the nested classes. 593 public static final String EDIT_CASH_RECEIPT_CASH_RECONCILIATION_ERRORS = "document.totalCashAmount,document.totalCheckAmount,document.totalCoinAmount,document.sumTotalAmount"; 594 public static final String EDIT_CASH_RECEIPT_CHECK_DETAIL_ERRORS = "newCheck*,document.check*"; 595 public static final String EDIT_CASH_RECEIPT_CURRENCY_COIN_ERRORS = "document.currencyDetail.*,document.coinDetail.*"; 596 public static final String EDIT_CASH_MANAGEMENT_CASHIERING_TRANSACTION_ERRORS = "document.currentTransaction.*"; 597 public static final String EDIT_CAPITAL_ASSET_INFORMATION_ERRORS = "document.capitalAssetInformation*"; 598 public static final String EDIT_CAPITAL_ASSET_MODIFY_ERRORS = "document.capitalAssetModify*"; 599 public static final String EDIT_ACCOUNTING_LINES_FOR_CAPITALIZATION_ERRORS = "document.capitalAccountingLines*"; 600 601 public static final String MULTIPLE_VALUE = "multipleValues"; 602 603 // special chars that I don't know how to put into string literals in JSP expression language 604 public static final String NEWLINE = "\n"; 605 606 // Workflow constants 607 608 public static final String IS_FAILURE_RECORDS = "IsFailureRecords"; 609 610 @Deprecated 611 public static final String WORKFLOW_FYI_REQUEST = KewApiConstants.ACTION_REQUEST_FYI_REQ; 612 613 public static class DocumentStatusCodes { 614 public static final String INITIATED = "?"; 615 public static final String CANCELLED = "X"; 616 public static final String ENROUTE = "R"; 617 public static final String DISAPPROVED = "D"; 618 public static final String APPROVED = "A"; 619 620 public static class CashReceipt { 621 // once a CashReceipt gets approved, its financialDocumentStatus goes to "verified" 622 public static final String VERIFIED = "V"; 623 624 // when a CashReceipt associated with a Deposit, its financialDocumentStatus changes to "interim" or "final" 625 public static final String INTERIM = "I"; 626 public static final String FINAL = "F"; 627 628 // when the CMDoc is finalized, the CRs of its Deposits change to status "approved" 629 } 630 } 631 632 public static class AuxiliaryVoucher { 633 public static final String ADJUSTMENT_DOC_TYPE = "OLE_AVAD"; 634 public static final String ADJUSTMENT_DOC_TYPE_NAME = "Adjustment"; 635 public static final String RECODE_DOC_TYPE = "OLE_AVRC"; 636 public static final String RECODE_DOC_TYPE_NAME = "Recode"; 637 public static final String ACCRUAL_DOC_TYPE = "OLE_AVAE"; 638 public static final String ACCRUAL_DOC_TYPE_NAME = "Accrual"; 639 public static final int ACCRUAL_DOC_DAY_OF_MONTH = 15; 640 public static final String ERROR_DOCUMENT_RECODE_DISTRIBUTION_OF_INCOME_AND_EXPENSE_UNSUCCESSFUL = "Unable to auto-generate Distribution of Income and Expense for document with number \"%s.\" Please contact your System Administrator for a Distribution of Income and Expense to be created manually."; 641 public static final String ERROR_DOCUMENT_HAS_TARGET_LINES = "AV document doesn't have target accounting lines. This method should have never been entered"; 642 public static final String RECODE_DISTRIBUTION_OF_INCOME_AND_EXPENSE_DESCRIPTION = "Auto-generated for Auxiliary Voucher"; 643 public static final String RECODE_DISTRIBUTION_OF_INCOME_AND_EXPENSE_EXPLANATION = "Auxiliary Voucher recode document type was chosen. A Distribution of Income And Expense needs to be routed to FINAL along with it. This Document is routed by Auxiliary Voucher \"%s\"."; 644 public static final String CHANGE_VOUCHER_TYPE = "changeVoucherType"; 645 } 646 647 public static class CashDrawerConstants { 648 public static final String STATUS_CLOSED = "C"; 649 public static final String STATUS_OPEN = "O"; 650 public static final String STATUS_LOCKED = "L"; 651 } 652 653 public static class CashReceiptConstants { 654 public static final String DEFAULT_CASH_RECEIPT_CAMPUS_LOCATION_CODE = "??"; 655 656 public static final String CASH_RECEIPT_CAMPUS_LOCATION_CODE_PROPERTY_NAME = "campusLocationCode"; 657 public static final String CASH_RECEIPT_DOC_HEADER_STATUS_CODE_PROPERTY_NAME = OLEConstants.DOCUMENT_HEADER_PROPERTY_NAME + "." + OLEConstants.DOCUMENT_HEADER_DOCUMENT_STATUS_CODE_PROPERTY_NAME; 658 } 659 660 public static class DepositConstants { 661 public static final String DEPOSIT_TYPE_VERIFIED = "V"; 662 public static final String DEPOSIT_TYPE_INTERIM = "I"; 663 public static final String DEPOSIT_TYPE_FINAL = "F"; 664 665 public static final String DEPOSIT_WIZARD_CASHRECEIPT_ERROR = "cashReceiptErrors"; 666 public static final String DEPOSIT_WIZARD_DEPOSITHEADER_ERROR = "depositHeaderErrors"; 667 } 668 669 public static class BudgetAdjustmentDocumentConstants { 670 public static final String SOURCE_BA = "From/Decrease"; 671 public static final String TARGET_BA = "To/Increase"; 672 public static final String GENERATE_BENEFITS_QUESTION_ID = "GenerateBenefitsQuestion"; 673 public static final String ADJUSTMENT_RESTRICTION_LEVEL_FUND = "F"; 674 public static final String ADJUSTMENT_RESTRICTION_LEVEL_CHART = "C"; 675 public static final String ADJUSTMENT_RESTRICTION_LEVEL_ORGANIZATION = "O"; 676 public static final String ADJUSTMENT_RESTRICTION_LEVEL_ACCOUNT = "A"; 677 public static final String ADJUSTMENT_RESTRICTION_LEVEL_SUBFUND = "S"; 678 public static final String ADJUSTMENT_RESTRICTION_LEVEL_NONE = "N"; 679 public static final String CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_FUND_GROUPS = "CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_FUND_GROUPS"; 680 public static final String CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_SUB_FUND_GROUPS = "CROSS_INCOME_STREAM_GLPE_TRANSFER_GENERATING_SUB_FUND_GROUPS"; 681 } 682 683 public static class DisbursementVoucherDocumentConstants { 684 public static final String CLEAR_NON_EMPLOYEE_TAB_QUESTION_ID = "ClearNonEmplTravTabQuestion"; 685 public static final String CLEAR_WIRE_TRANSFER_TAB_QUESTION_ID = "ClearWireTransferTabQuestion"; 686 public static final String CLEAR_FOREIGN_DRAFT_TAB_QUESTION_ID = "ClearForeignDraftTabQuestion"; 687 } 688 689 public static final String ACCOUNTING_LINE_IMPORT_MAX_FILE_SIZE_PARM_NM = "MAX_FILE_SIZE_ACCOUNTING_LINE_IMPORT"; 690 public static final String ORIGIN_ENTRY_IMPORT_MAX_FILE_SIZE_PARM_NM = "MAX_FILE_SIZE_ORIGIN_ENTRY_IMPORT"; 691 692 public static class ChartApcParms { 693 694 public static final String FISCAL_YEAR_MAKER_REPLACE_MODE = "OVERRIDE_TARGET_YEAR_DATA_IND"; 695 public static final String FISCAL_YEAR_MAKER_SOURCE_FISCAL_YEAR = "SOURCE_FISCAL_YEAR"; 696 697 // added from parameter refactoring. 698 public static final String APC_HRMS_ACTIVE_KEY = "USE_HRMS_ORGANIZATION_ATTRIBUTES_IND"; 699 public final static String OBJECT_CODE_ILLEGAL_VALUES = "OBJECT_CODES"; 700 public static final String DOCTYPE_AND_OBJ_CODE_ACTIVE = "DOCUMENT_TYPES_REQUIRING_ACTIVE_OBJECT_CODES"; 701 public static final String CG_ALLOWED_SUBACCOUNT_TYPE_CODES = "SUB_ACCOUNT_TYPES"; 702 703 // Account parms 704 public static final String INCOME_STREAM_ACCOUNT_REQUIRING_FUND_GROUPS = "INCOME_STREAM_ACCOUNT_REQUIRING_FUND_GROUPS"; 705 public static final String INCOME_STREAM_ACCOUNT_REQUIRING_SUB_FUND_GROUPS = "INCOME_STREAM_ACCOUNT_REQUIRING_SUB_FUND_GROUPS"; 706 707 // Org parms 708 public static final String DEFAULT_ACCOUNT_NOT_REQUIRED_ORG_TYPES = "ORGANIZATION_TYPES_NOT_REQUIRING_DEFAULT_ACCOUNT"; 709 public static final String ORG_MUST_REPORT_TO_SELF_ORG_TYPES = "ORGANIZATION_TYPES_THAT_MUST_REPORT_TO_SELF"; 710 711 public static final String ACCOUNT_FUND_GROUP_DENOTES_CG = "FUND_GROUP_DENOTES_CG_IND"; 712 public static final String ACCOUNT_CG_DENOTING_VALUE = "CG_DENOTING_VALUE"; 713 714 // newly created prior year accounts to be added 715 public static final String PRIOR_YEAR_ACCOUNTS_TO_BE_ADDED = "PRIOR_YEAR_ACCOUNTS_TO_BE_ADDED"; 716 } 717 718 public static class FinancialApcParms { 719 public static final String ACCOUNTING_LINE_IMPORT_HELP = "ACCOUNTING_LINE_IMPORT"; 720 } 721 722 public static class SystemGroupParameterNames { 723 724 public static final String FLEXIBLE_OFFSET_ENABLED_FLAG = "USE_FLEXIBLE_OFFSET_IND"; 725 public static final String PURGE_GL_ACCT_BALANCES_T_BEFORE_YEAR = "PRIOR_TO_YEAR"; 726 public static final String PURGE_GL_ENCUMBRANCE_T_BEFORE_YEAR = "PRIOR_TO_YEAR"; 727 public static final String PURGE_GL_SF_BALANCES_T_BEFORE_YEAR = "PRIOR_TO_YEAR"; 728 public static final String PURGE_GL_BALANCE_T_BEFORE_YEAR = "PRIOR_TO_YEAR"; 729 public static final String PURGE_GL_ENTRY_T_BEFORE_YEAR = "PRIOR_TO_YEAR"; 730 public static final String PURGE_GL_ID_BILL_T_BEFORE_YEAR = "PRIOR_TO_YEAR"; 731 732 public static final String GL_ANNUAL_CLOSING_DOC_TYPE = "ANNUAL_CLOSING_DOCUMENT_TYPE"; 733 public static final String GL_INDIRECT_COST_RECOVERY = "INDIRECT_COST_RECOVERY_DOCUMENT_TYPE"; 734 public static final String GL_ORIGINATION_CODE = "MANUAL_FEED_ORIGINATION"; 735 public static final String GL_SCRUBBER_VALIDATION_DAYS_OFFSET = "CG_ACCOUNT_EXPIRATION_EXTENSION_DAYS"; 736 737 public static final String MULTIPLE_VALUE_LOOKUP_RESULTS_PER_PAGE = "MULTIPLE_VALUE_RESULTS_PER_PAGE"; 738 public static final String MULTIPLE_VALUE_LOOKUP_RESULTS_EXPIRATION_AGE = "MULTIPLE_VALUE_RESULTS_EXPIRATION_SECONDS"; 739 740 public static final String ACTIVE_INPUT_TYPES_PARAMETER_NAME = "ACTIVE_FILE_TYPES"; 741 742 public static final String COLLECTOR_VALIDATOR_EMAIL_SUBJECT_PARAMETER_NAME = "VALIDATION_EMAIL_SUBJECT_LINE"; 743 public static final String COLLECTOR_VALIDATOR_ERROR_EMAIL_SUBJECT_PARAMETER_NAME = "VALIDATION_ERROR_EMAIL_SUBJECT_LINE"; 744 public static final String COLLECTOR_DEMERGER_EMAIL_SUBJECT_PARAMETER_NAME = "ERROR_EMAIL_SUBJECT_LINE"; 745 public static final String COLLECTOR_EQUAL_DC_TOTAL_DOCUMENT_TYPES = "EQUAL_DEBIT_CREDIT_TOTAL_DOCUMENT_TYPES"; 746 public static final String COLLECTOR_PERFORM_DUPLICATE_HEADER_CHECK = "PERFORM_DUPLICATE_HEADER_CHECK_IND"; 747 748 public static final String BATCH_SCHEDULE_CUTOFF_TIME = "CUTOFF_TIME"; 749 public static final String BATCH_SCHEDULE_CUTOFF_TIME_IS_NEXT_DAY = "CUTOFF_TIME_NEXT_DAY_IND"; 750 public static final String BATCH_SCHEDULE_STATUS_CHECK_INTERVAL = "STATUS_CHECK_INTERVAL"; 751 752 /** 753 * Used by PurgePendingAttachmentsJob to compute the maximum amount of time a pending attachment is allowed to persist on 754 * the file system before being deleted. 755 */ 756 public static final String PURGE_PENDING_ATTACHMENTS_STEP_MAX_AGE = "MAX_AGE"; 757 758 public static final String NUMBER_OF_DAYS_SINCE_LAST_UPDATE = "NUMBER_OF_DAYS_SINCE_LAST_UPDATE"; 759 760 public static final String ACCOUNTS_CAN_CROSS_CHARTS_IND = "ACCOUNTS_CAN_CROSS_CHARTS_IND"; 761 762 public static final String BATCH_CONTAINER_SEMAPHORE_PROCESSING_INTERVAL = "SEMAPHORE_PROCESSING_INTERVAL"; 763 } 764 765 public static class GeneralLedgerApplicationParameterKeys { 766 public static final String INCOME_OBJECT_TYPE_CODES = "INCOME_OBJECT_TYPE_CODES"; 767 public static final String INCOME_TRANSFER_OBJECT_TYPE_CODES = "INCOME_TRANSFER_OBJECT_TYPE_CODES"; 768 public static final String EXPENSE_OBJECT_TYPE_CODES = "EXPENSE_OBJECT_TYPE_CODES"; 769 public static final String EXPENSE_TRANSFER_OBJECT_TYPE_CODES = "EXPENSE_TRANSFER_OBJECT_TYPE_CODES"; 770 } 771 772 public static class GeneralLedgerCorrectionProcessApplicationParameterKeys { 773 public static final String RECORD_COUNT_FUNCTIONALITY_LIMIT = "RECORD_COUNT_FUNCTIONALITY_LIMIT"; 774 public static final String RECORDS_PER_PAGE = "RECORDS_PER_PAGE"; 775 } 776 777 public static class EnterpriseFeederApplicationParameterKeys { 778 public static final String TO_ADDRESS = "INVALID_FILE_TO_EMAIL_ADDRESSES"; 779 } 780 781 public static class ParameterValues { 782 public static final String YES = "Y"; 783 public static final String NO = "N"; 784 } 785 786 public static class Maintenance { 787 public static final String AFTER_CLASS_DELIM = "!!"; 788 public static final String AFTER_FIELDNAME_DELIM = "^^"; 789 public static final String AFTER_VALUE_DELIM = "::"; 790 } 791 792 public static class ObjectCodeConstants { 793 public static final String INACTIVE_OBJECT_LEVEL_QUESTION_ID = "InactiveObjectLevelQuestion"; 794 public static final String SECTION_ID_RESEARCH_ADMIN_ATTRIBUTES = "researchAdminAttributes"; 795 } 796 797 public static final String MONTH1 = "01"; 798 public static final String MONTH2 = "02"; 799 public static final String MONTH3 = "03"; 800 public static final String MONTH4 = "04"; 801 public static final String MONTH5 = "05"; 802 public static final String MONTH6 = "06"; 803 public static final String MONTH7 = "07"; 804 public static final String MONTH8 = "08"; 805 public static final String MONTH9 = "09"; 806 public static final String MONTH10 = "10"; 807 public static final String MONTH11 = "11"; 808 public static final String MONTH12 = "12"; 809 public static final String MONTH13 = "13"; 810 public static final String PERIOD_CODE_ANNUAL_BALANCE = "AB"; 811 public static final String PERIOD_CODE_BEGINNING_BALANCE = "BB"; 812 public static final String PERIOD_CODE_CG_BEGINNING_BALANCE = "CB"; 813 814 public static final String REQUEST_SEARCH_RESULTS = "reqSearchResults"; 815 public static final String REQUEST_SEARCH_RESULTS_SIZE = "reqSearchResultsSize"; 816 public static final String GL_COLLECTOR_STAGING_DIRECTORY = "collector.staging.directory"; 817 818 public static final String DISBURSEMENT_VOUCHER_DOCUMENTATION_LOCATION_CODE_PROPERTY_NAME = "disbursementVoucherDocumentationLocationCode"; 819 public static final String FUND_GROUP_CODE_PROPERTY_NAME = "code"; 820 public static final String SUB_FUND_GROUP_CODE_PROPERTY_NAME = "subFundGroupCode"; 821 822 public static final String RULE_CODE_R1 = "R1"; 823 public static final String RULE_CODE_R2 = "R2"; 824 public static final String RULE_CODE_N1 = "N1"; 825 public static final String RULE_CODE_N2 = "N2"; 826 public static final String RULE_CODE_C1 = "C1"; 827 public static final String RULE_CODE_C2 = "C2"; 828 public static final String RULE_CODE_A = "A"; 829 public static final String TRANSACTION_DT = "TRANSACTION_DT"; 830 public static final String UNALLOC_OBJECT_CD = "UNALLOC_OBJECT_CD"; 831 public static final String BEG_BUD_CASH_OBJECT_CD = "BEG_BUD_CASH_OBJECT_CD"; 832 public static final String FUND_BAL_OBJECT_CD = "FUND_BAL_OBJECT_CD"; 833 public static final String UNIV_FISCAL_YR = "UNIV_FISCAL_YR"; 834 835 public static final String EMPLOYEE_LOOKUP_ERRORS = "document.employeeLookups,document.emplid,universityFiscalYear"; 836 837 public static class BudgetConstructionConstants { 838 839 /* OLEConstants for the budget construction flag names */ 840 public final static String BUDGET_ADMINSTRATION_ACTIVE = "BAACTV"; 841 public final static String BASE_BUDGET_UPDATES_OK = "BASEAD"; 842 public final static String BUDGET_BATCH_SYNCHRONIZATION_OK = "BSSYNC"; 843 public final static String CSF_UPDATES_OK = "CSFUPD"; 844 public final static String BUDGET_CONSTRUCTION_ACTIVE = "BCACTV"; 845 public final static String BUDGET_CONSTRUCTION_GENESIS_RUNNING = "BCGENE"; 846 public final static String BUDGET_CONSTRUCTION_UPDATES_OK = "BCUPDT"; 847 public final static String BUDGET_ON_LINE_SYNCHRONIZATION_OK = "PSSYNC"; 848 849 /* 850 * object code which stores amounts by which pending general ledger rows in budget construction are out of balance 851 */ 852 @Deprecated 853 public final static String OBJECT_CODE_2PLG = "2PLG"; 854 855 } 856 857 public static class OperationType { 858 public static final String READ = "read"; 859 public static final String REPORT_ERROR = "with error"; 860 public static final String INSERT = "insert"; 861 public static final String UPDATE = "update"; 862 public static final String DELETE = "delete"; 863 public static final String SELECT = "select"; 864 public static final String BYPASS = "bypassed"; 865 } 866 867 public static class PENDING_ENTRY_APPROVED_STATUS_CODE { 868 public static final String APPROVED = "A"; 869 public static final String PROCESSED = "X"; 870 } 871 872 public static class TableRenderConstants { 873 public static final String SWITCH_TO_PAGE_METHOD = "switchToPage"; 874 public static final String SORT_METHOD = "sort"; 875 876 public static final String PREVIOUSLY_SORTED_COLUMN_INDEX_PARAM = "previouslySortedColumnIndex"; 877 public static final String VIEWED_PAGE_NUMBER = "viewedPageNumber"; 878 } 879 880 public static final String PCDO_FILE_TYPE_INDENTIFIER = "procurementCardInputFileType"; 881 public static final String COLLECTOR_XML_FILE_TYPE_INDENTIFIER = "collectorXmlInputFileType"; 882 public static final String COLLECTOR_FLAT_FILE_TYPE_INDENTIFIER = "collectorFlatFileInputFileType"; 883 public static final String ENTERPRISE_FEEDER_FILE_SET_TYPE_INDENTIFIER = "enterpriseFeederFileSetType"; 884 885 //variables for upload of vendor information relating to OLE Select batch upload 886 public static final String REQUISITION_FILE_TYPE_INDENTIFIER = "requisitionInputFileType"; 887 public static final String MARC_FILE_TYPE_INDENTIFIER = "marcInputFileType"; 888 public static final String ORD_FILE_TYPE_INDENTIFIER = "ordInputFileType"; 889 // next 2 variables for the enterprise feeder batch upload 890 public static final String DATA_FILE_TYPE = "DATA"; 891 public static final String RECON_FILE_TYPE = "RECON"; 892 893 // next variable used by the batch upload framework 894 public static final String DONE_FILE_TYPE = "DONE_FILE"; 895 896 // variables for batch upload inquiry 897 public static final String BATCH_UPLOAD_ACTION_PATH = "acqBatchUpload.do"; 898 899 /** 900 * The base implementation of {@link org.kuali.ole.gl.batch.service.impl.EnterpriseFeederStatusBase} uses strings contained within 901 * ApplicationResources.properties to store the human-readable descriptions of each status object. The fully qualified class 902 * name is appended to the end of this key to generate the true key. For example, 903 * gl.EnterpriseFeeder.StatusDescriptionPrefix.org.kuali.ole.gl.batch.service.impl.FileReconBadLoadAbortedStatus 904 */ 905 public static final String ENTERPRISE_FEEDER_STATUS_DESCRIPTION_PREFIX = "gl.EnterpriseFeeder.StatusDescription."; 906 907 public static final String BATCH_STEP_RUNNER_JOB_NAME = "stepRunByBatchStepRunner"; 908 909 // Some static method calls below that could be done in static variables instead but isn't safe to do during class loading 910 // w/SpringContext. 911 private static String DASH_FINANCIAL_OBJECT_CODE = null; 912 913 public static String getDashFinancialObjectCode() { 914 if (DASH_FINANCIAL_OBJECT_CODE == null) { 915 DASH_FINANCIAL_OBJECT_CODE = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.FINANCIAL_OBJECT_CODE), '-'); 916 } 917 return DASH_FINANCIAL_OBJECT_CODE; 918 } 919 920 private static String DASH_FINANCIAL_SUB_OBJECT_CODE = null; 921 922 public static String getDashFinancialSubObjectCode() { 923 if (DASH_FINANCIAL_SUB_OBJECT_CODE == null) { 924 DASH_FINANCIAL_SUB_OBJECT_CODE = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.FINANCIAL_SUB_OBJECT_CODE), '-'); 925 } 926 return DASH_FINANCIAL_SUB_OBJECT_CODE; 927 } 928 929 private static String DASH_SUB_ACCOUNT_NUMBER = null; 930 931 public static String getDashSubAccountNumber() { 932 if (DASH_SUB_ACCOUNT_NUMBER == null) { 933 DASH_SUB_ACCOUNT_NUMBER = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.SUB_ACCOUNT_NUMBER), '-'); 934 } 935 return DASH_SUB_ACCOUNT_NUMBER; 936 } 937 938 private static String SPACE_SUB_ACCOUNT_NUMBER = null; 939 940 public static String getSpaceSubAccountNumber() { 941 if (SPACE_SUB_ACCOUNT_NUMBER == null) { 942 SPACE_SUB_ACCOUNT_NUMBER = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.SUB_ACCOUNT_NUMBER), ' '); 943 } 944 return SPACE_SUB_ACCOUNT_NUMBER; 945 } 946 947 private static String DASH_PROJECT_CODE = null; 948 949 public static String getDashProjectCode() { 950 if (DASH_PROJECT_CODE == null) { 951 DASH_PROJECT_CODE = StringUtils.rightPad("", SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(OriginEntryFull.class, OLEPropertyConstants.PROJECT_CODE), '-'); 952 } 953 return DASH_PROJECT_CODE; 954 } 955 956 public static final class ReportGeneration{ 957 public final static String PARAMETER_NAME_SUBREPORT_DIR = "SUBREPORT_DIR"; 958 public final static String PARAMETER_NAME_SUBREPORT_TEMPLATE_NAME = "SUBREPORT_TEMPLATE_NAMES"; 959 public final static String DESIGN_FILE_EXTENSION = ".jrxml"; 960 public final static String JASPER_REPORT_EXTENSION = ".jasper"; 961 public final static String PDF_FILE_EXTENSION = ".pdf"; 962 public final static String PDF_MIME_TYPE = "application/pdf"; 963 public final static String TEXT_MIME_TYPE = "text/plain"; 964 public final static String ACCOUNT_EXPORT_FILE_NAME = "account_export.txt"; 965 public final static String MONTHLY_EXPORT_FILE_NAME = "monthly_export.txt"; 966 public final static String FUNDING_EXPORT_FILE_NAME = "funding_export.txt"; 967 } 968 969 public final static KualiInteger ONE_HUNDRED = new KualiInteger(100); 970 public final static KualiInteger ONE = new KualiInteger(1); 971 972 // effort certification period status codes 973 public static final class PeriodStatusCodes { 974 public static final String CLOSED = "C"; 975 public static final String NOT_OPEN = "N"; 976 public static final String OPEN = "O"; 977 } 978 979 public static final class CustomerParameter { 980 public static final String TAX_NUMBER_REQUIRED_IND = "TAX_NUMBER_REQUIRED_IND"; 981 } 982 983 // financial document type codes 984 public static final class FinancialDocumentTypeCodes { 985 public static final String ALL = "ALL"; 986 987 // financial processing 988 public static final String GENERAL_ERROR_CORRECTION = "OLE_GEC"; 989 public static final String YEAR_END_GENERAL_ERROR_CORRECTION = "OLE_YEGE"; 990 public static final String DISTRIBUTION_OF_INCOME_AND_EXPENSE = "OLE_DI"; 991 public static final String YEAR_END_DISTRIBUTION_OF_INCOME_AND_EXPENSE = "OLE_YEDI"; 992 public static final String SERVICE_BILLING = "OLE_SB"; 993 public static final String INTERNAL_BILLING = "OLE_IB"; 994 public static final String CASH_RECEIPT = "OLE_CR"; 995 public static final String PROCUREMENT_CARD = "OLE_PCDO"; 996 public static final String ADVANCE_DEPOSIT = "OLE_AD"; 997 public static final String CASH_MANAGEMENT = "OLE_CMD"; 998 public static final String CREDIT_CARD_RECEIPT = "OLE_CCR"; 999 public static final String NON_CHECK_DISBURSEMENT = "OLE_ND"; 1000 1001 // purap 1002 public static final String REQUISITION = "OLE_REQS"; 1003 public static final String REQUESTOR = "OLE_REQSTR"; 1004 public static final String PAYMENT_REQUEST = "OLE_PREQ"; 1005 public static final String INVOICE = "OLE_PRQS"; 1006 public static final String PURCHASE_ORDER = "OLE_PO"; 1007 public static final String PURCHASE_ORDER_AMENDMENT = "OLE_POA"; 1008 public static final String PURCHASE_ORDER_CLOSE = "OLE_POC"; 1009 public static final String PURCHASE_ORDER_SPLIT = "OLE_POSP"; 1010 public static final String PURCHASE_ORDER_REOPEN = "OLE_POR"; 1011 public static final String PURCHASE_ORDER_PAYMENT_HOLD = "OLE_POPH"; 1012 public static final String PURCHASE_ORDER_REMOVE_HOLD = "OLE_PORH"; 1013 public static final String PURCHASE_ORDER_RETRANSMIT = "OLE_PORT"; 1014 public static final String PURCHASE_ORDER_VOID = "OLE_POV"; 1015 public static final String LINE_ITEM_RECEIVING = "OLE_RCVL"; 1016 public static final String CORRECTION_RECEIVING = "OLE_RCVC"; 1017 public static final String VENDOR_CREDIT_MEMO = "OLE_CM"; 1018 public static final String BULK_RECEIVING = "OLE_RCVB"; 1019 public static final String ELECTRONIC_INVOICE_REJECT = "OLE_EIRT"; 1020 public static final String ACQ_BATCH_UPLOAD = "OLE_ACQBTHUPLOAD"; 1021 } 1022 1023 // financial document type names 1024 @Deprecated 1025 public static final class FinancialDocumentTypeNames { 1026 public static final String GENERAL_ERROR_CORRECTION = "General Error Correction"; 1027 public static final String YEAR_END_GENERAL_ERROR_CORRECTION = "Year End General Error Correction"; 1028 public static final String DISTRIBUTION_OF_INCOME_AND_EXPENSE = "Distribution of Income and Expense"; 1029 public static final String YEAR_END_DISTRIBUTION_OF_INCOME_AND_EXPENSE = "Year End Distribution of Income and Expense"; 1030 public static final String SERVICE_BILLING = "Service Billing"; 1031 public static final String INTERNAL_BILLING = "Internal Billing"; 1032 public static final String CASH_RECEIPT = "Cash Receipt"; 1033 public static final String PROCUREMENT_CARD = "Procurement Card"; 1034 } 1035 1036 public static final class AccountingLineViewStandardBlockNames { 1037 public static final String ACTION_BLOCK = "actions"; 1038 public static final String SEQUENCE_NUMBER_BLOCK = "sequenceNumber"; 1039 public static final String SALES_TAX_BLOCK = "salesTaxInformation"; 1040 } 1041 1042 public static final class TaxRegionConstants { 1043 public static final String TAX_REGION_RATES = "taxRegionRates"; 1044 public static final String TAX_REGION_COUNTIES = "taxRegionCounties"; 1045 public static final String TAX_REGION_STATES = "taxRegionStates"; 1046 public static final String TAX_REGION_POSTAL_CODES = "taxRegionPostalCodes"; 1047 public static final String TAX_REGION_STATE_CODE = "stateCode"; 1048 public static final String TAX_REGION_COUNTY_CODE = "countyCode"; 1049 public static final String TAX_REGION_POSTAL_CODE = "postalCode"; 1050 public static final String TAX_REGION_TAX_RATE = "taxRate"; 1051 public static final String TAX_REGION_EFFECTIVE_DATE = "effectiveDate"; 1052 public static final String TAX_REGION_TYPE_CODE = "taxRegionTypeCode"; 1053 public static final String TAX_REGION_COUNTIES_SECTION_ID = "TaxRegionCounties"; 1054 public static final String TAX_REGION_STATES_SECTION_ID = "TaxRegionStates"; 1055 public static final String TAX_REGION_POSTAL_CODES_SECTION_ID = "TaxRegionPostalCodes"; 1056 public static final String TAX_REGION_RATES_SECTION_ID = "TaxRegionRates"; 1057 public static final String TAX_REGION_CREATE_SECTION_ID = "CreateTaxRegion"; 1058 1059 public static final String TAX_REGION_TYPE_CODE_COUNTY = "CNTY"; 1060 public static final String TAX_REGION_TYPE_CODE_POSTAL_CODE = "POST"; 1061 public static final String TAX_REGION_TYPE_CODE_STATE = "ST"; 1062 } 1063 1064 public static final class SubAccountType { 1065 public static final String COST_SHARE = "CS"; 1066 public static final String EXPENSE = "EX"; 1067 1068 public static final List<String> ELIGIBLE_SUB_ACCOUNT_TYPE_CODES = getEligibleSubAccountTypeCodes(); 1069 1070 private static final List<String> getEligibleSubAccountTypeCodes(){ 1071 List<String> subAccountTypeCodesList = new ArrayList<String>(); 1072 subAccountTypeCodesList.add(OLEConstants.SubAccountType.COST_SHARE); 1073 subAccountTypeCodesList.add(OLEConstants.SubAccountType.EXPENSE); 1074 return subAccountTypeCodesList; 1075 } 1076 } 1077 1078 @Deprecated // move to PDP 1079 public static final class PdpConstants { 1080 public static final String PAYMENT_OPEN_STATUS_CODE = "OPEN"; 1081 } 1082 1083 // define a set of indicators related to payments, including payee types, tax review requirements and others 1084 public static class AdHocPaymentIndicator{ 1085 public static final String EMPLOYEE_VENDOR = "E"; 1086 public static final String ALIEN_VENDOR = "A"; 1087 public static final String EMPLOYEE_PAYEE = "E"; 1088 public static final String ALIEN_PAYEE = "A"; 1089 public static final String TAX_CONTROL_REQUIRING_TAX_REVIEW = "T"; 1090 public static final String PAYMENT_REASON_REQUIRING_TAX_REVIEW = "P"; 1091 public static final String OTHER = "N"; 1092 } 1093 1094 public static class SysKimApiConstants{ 1095 public static final String ACCOUNT_SUPERVISOR_KIM_ROLE_NAME = "Account Supervisor"; 1096 public static final String CONTRACTS_AND_GRANTS_PROJECT_DIRECTOR = "Contracts & Grants Project Director"; 1097 public static final String FISCAL_OFFICER_KIM_ROLE_NAME = "Fiscal Officer"; 1098 public static final String FISCAL_OFFICER_PRIMARY_DELEGATE_KIM_ROLE_NAME = "Fiscal Officer Primary Delegate"; 1099 public static final String FISCAL_OFFICER_SECONDARY_DELEGATE_KIM_ROLE_NAME = "Fiscal Officer Secondary Delegate"; 1100 public static final String AWARD_SECONDARY_DIRECTOR_KIM_ROLE_NAME = "Award Project Director"; 1101 public static final String ACTIVE_FACULTY_OR_STAFF_KIM_ROLE_NAME = "Active Faculty or Staff"; 1102 public static final String ACTIVE_PROFESSIONAL_EMPLOYEE_KIM_ROLE_NAME = "Active Professional Employee"; 1103 public static final String ACTIVE_EMPLOYEE_AND_KFS_USER_KIM_ROLE_NAME = "Active Employee & Financial System User"; 1104 public static final String ACTIVE_PROFESSIONAL_EMPLOYEE_AND_KFS_USER_KIM_ROLE_NAME = "Active Professional Employee & Financial System User"; 1105 public static final String CHART_MANAGER_KIM_ROLE_NAME = "Chart Manager"; 1106 public static final String ORGANIZATION_REVIEWER_ROLE_NAMESPACECODE = CoreModuleNamespaces.OLE; 1107 public static final String ACCOUNTING_REVIEWER_ROLE_NAMESPACECODE = CoreModuleNamespaces.OLE; 1108 public static final String ACCOUNTING_REVIEWER_ROLE_NAME = "Accounting Reviewer"; 1109 public static final String ORGANIZATION_REVIEWER_ROLE_NAME = "Organization Reviewer"; 1110 public static final String KFS_USER_ROLE_NAME = "User"; 1111 } 1112 1113 public enum PermissionAttributeValue { 1114 SOURCE_ACCOUNTING_LINES("sourceAccountingLines"), TARGET_ACCOUNTING_LINES("targetAccountingLines"); 1115 1116 public final String value; 1117 1118 private PermissionAttributeValue(String value) { 1119 this.value = value; 1120 } 1121 } 1122 1123 public enum PermissionTemplate { 1124 DEFAULT( KRADConstants.DEFAULT_NAMESPACE, "Default"), 1125 ERROR_CORRECT_DOCUMENT( OLEConstants.CoreModuleNamespaces.OLE, "Error Correct Document"), 1126 MODIFY_ACCOUNTING_LINES(OLEConstants.CoreModuleNamespaces.OLE, "Modify Accounting Lines"), 1127 CLAIM_ELECTRONIC_PAYMENT(OLEConstants.CoreModuleNamespaces.OLE, "Claim Electronic Payment"), 1128 MODIFY_BATCH_JOB(OLEConstants.CoreModuleNamespaces.OLE, "Modify Batch Job"), 1129 EDIT_BANK_CODE(OLEConstants.CoreModuleNamespaces.OLE, "Edit Bank Code"), 1130 ADMINISTER_ROUTING_FOR_DOCUMENT(KRADConstants.KUALI_RICE_WORKFLOW_NAMESPACE, "Administer Routing for Document"), 1131 VIEW_BATCH_FILES(OLEConstants.CoreModuleNamespaces.OLE, "Administer Batch File"), 1132 UPLOAD_BATCH_INPUT_FILES(OLEConstants.CoreModuleNamespaces.OLE, "Upload Batch Input File(s)"); 1133 1134 public final String name; 1135 public final String namespace; 1136 private PermissionTemplate(String namespace, String name) { 1137 this.namespace = namespace; 1138 this.name = name; 1139 } 1140 } 1141 1142 public enum PermissionNames { 1143 EDIT_INACTIVE_ACCOUNT( OLEConstants.CoreModuleNamespaces.CHART, "Edit Inactive Account" ), 1144 SERVE_AS_ACCOUNT_MANAGER( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Account Manager" ), 1145 SERVE_AS_ACCOUNT_SUPERVISOR( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Account Supervisor" ), 1146 SERVE_AS_FISCAL_OFFICER( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Fiscal Officer" ), 1147 SERVE_AS_FISCAL_OFFICER_DELEGATE( OLEConstants.CoreModuleNamespaces.CHART, "Serve As Fiscal Officer Delegate" ); 1148 1149 public final String name; 1150 public final String namespace; 1151 private PermissionNames(String namespace, String name) { 1152 this.namespace = namespace; 1153 this.name = name; 1154 } 1155 } 1156 1157 public static final String KFS_ACTION_CAN_ERROR_CORRECT = "canErrorCorrect"; 1158 public static final String KFS_ACTION_CAN_EDIT_BANK = "canEditBank"; 1159 1160 1161 public static final String AMOUNT_TOTALING_EDITING_MODE = "amountTotaling"; 1162 public static final String BANK_ENTRY_VIEWABLE_EDITING_MODE = "bankEntryViewable"; 1163 public static final String BANK_ENTRY_EDITABLE_EDITING_MODE = "bankEntry"; 1164 1165 public class RouteLevelNames { 1166 public static final String ACCOUNT = "Account"; 1167 public static final String ACCOUNTING_ORGANIZATION_HIERARCHY = "AccountingOrganizationHierarchy"; 1168 public static final String ACCOUNT_REVIEW_FULL_EDIT = "AccountFullEdit"; 1169 public static final String PROJECT_MANAGEMENT = "ProjectManagement"; 1170 public static final String ORGANIZATION_HIERARCHY = "OrganizationHierarchy"; 1171 } 1172 1173 public static final String ROOT_DOCUMENT_TYPE = "OLE"; 1174 public static final String FINANCIAL_SYSTEM_LEDGER_ONLY_ROOT_DOCUMENT_TYPE = "OpenLibraryEnvironmentLedgerOnlyDocument"; 1175 1176 public static class COAConstants{ 1177 public static final String FINANCIAL_SYSTEM_DOCUMENT = ROOT_DOCUMENT_TYPE; 1178 public static final String FINANCIAL_SYSTEM_TRANSACTIONAL_DOCUMENT = "OpenLibraryEnvironmentTransactionalDocument"; 1179 public static final String FINANCIAL_SYSTEM_COMPLEX_MAINTENANCE_DOCUMENT = "OpenLibraryEnvironmentComplexMaintenanceDocument"; 1180 public static final String FINANCIAL_SYSTEM_SIMPLE_MAINTENANCE_DOCUMENT = "OpenLibraryEnvironmentSimpleMaintenanceDocument"; 1181 1182 public static final String NODE_NAME_ORGANIZATION_HIERARCHY = "OrganizationHierarchy"; 1183 public static final String NODE_NAME_ACCOUNTING_ORGANIZATION_HIERARCHY = "AccountingOrganizationHierarchy"; 1184 1185 public static final String ORG_REVIEW_ROLE_ORG_ACC_ONLY_CODE = "A"; 1186 public static final String ORG_REVIEW_ROLE_ORG_ACC_ONLY_TEXT = "Organization Accounting Only"; 1187 public static final String ORG_REVIEW_ROLE_ORG_ONLY_CODE = "O"; 1188 public static final String ORG_REVIEW_ROLE_ORG_ONLY_TEXT = "Organization Only"; 1189 public static final String ORG_REVIEW_ROLE_ORG_ACC_BOTH_CODE = "B"; 1190 public static final String ORG_REVIEW_ROLE_ORG_ACC_BOTH_TEXT = "Both"; 1191 public static final String ORG_REVIEW_ROLE_DOCUMENT_TYPE_NAME = "OLE_ORR"; 1192 public static final String ORG_REVIEW_ROLE_CREATE_DELEGATION_DISPLAY_TEXT = "create delegation"; 1193 1194 } 1195 1196 public static class ReportConstants{ 1197 public static final String EMPTY_CELL_ENTRY_KEY_PREFIX = "EMPTY_CELL"; 1198 1199 public static final String TABLE_HEADER_LINE_KEY = "tableHeaderLine"; 1200 public static final String SEPARATOR_LINE_KEY = "separatorLine"; 1201 public static final String TABLE_CELL_FORMAT_KEY = "tableCellFormat"; 1202 public static final String[] FORMAT_ESCAPE_CHARACTERS = new String[]{"%", "\\"}; 1203 } 1204 1205 public static final String DOCUMENT_LOCKOUT_PARM_NM = "LOCKOUT_IND"; 1206 public static final String DOCUMENT_LOCKOUT_PARM_DESC = "This parameter is to lock document during the lockout time."; 1207 public static final String DOCUMENT_LOCKOUT_DEFAULT_MESSAGE = "DOCUMENT_LOCKOUT_DEFAULT_MESSAGE"; 1208 public static final String FROM_EMAIL_ADDRESS_PARM_NM = "FROM_EMAIL_ADDRESS"; 1209 1210 1211 // System Parameters 1212 public static final String RESULT_SUMMARY_TO_EMAIL_ADDRESSES = "RESULT_SUMMARY_TO_EMAIL_ADDRESSES"; 1213 public static final String SOURCE_URL_PARAMETER = "SOURCE_URL"; 1214 1215 public static final String REPORT_WRITER_SERVICE_PAGE_NUMBER_PLACEHOLDER = "${pageNumber}"; 1216 1217 public static class SchemaBuilder { 1218 public static final String SCHEMA_FILE_DD_VALIDATION_PLACEHOLDER_BEGIN = "${"; 1219 public static final String SCHEMA_FILE_DD_VALIDATION_PLACEHOLDER_END = "}"; 1220 public static final String XSD_VALIDATION_PREFIX = "xsd:"; 1221 public static final String DD_VALIDATION_PREFIX = "dd:"; 1222 } 1223 1224 public static class CapitalAssets { 1225 //C ==> create asset action, M ==> modify asset action 1226 public static final String CAPITAL_ASSET_CREATE_ACTION_INDICATOR = "C"; 1227 public static final String CAPITAL_ASSET_MODIFY_ACTION_INDICATOR = "M"; 1228 public static final String CAPITAL_ASSET_TAB_STATE_OPEN = "OPEN"; 1229 public static final String CAPITAL_ASSET_TAB_STATE_CLOSE = "CLOSE"; 1230 public static final String CAPITAL_ASSET_PROCESSED_IND = "N"; 1231 1232 public static final String ACCOUNTING_LINES_FOR_CAPITALIZATION_TAB_TITLE = "Accounting Lines for Capitalization"; 1233 public static final String CREATE_CAPITAL_ASSETS_TAB_TITLE = "Create Capital Assets"; 1234 public static final String MODIFY_CAPITAL_ASSETS_TAB_TITLE = "Modify Capital Assets"; 1235 1236 public static final String DISTRIBUTE_COST_EQUALLY_CODE = "2"; 1237 public static final String DISTRIBUTE_COST_EQUALLY_DESCRIPTION = "Distribute cost evenly"; 1238 public static final String DISTRIBUTE_COST_BY_INDIVIDUAL_ASSET_AMOUNT_CODE = "1"; 1239 public static final String DISTRIBUTE_COST_BY_INDIVIDUAL_ASSET_AMOUNT_DESCRIPTION = "Distribute cost by amount"; 1240 1241 public static final Integer PERCENT_SCALE = new Integer(2); 1242 public static final Integer CAPITAL_ACCOUNT_LINE_PERCENT_SCALE = new Integer(20); 1243 } 1244 1245 public static final String CREATE_TAX_REGION_FROM_LOOKUP_PARM = "createTaxRegionFromLookup"; 1246 1247 public static class OleRequisitionItem{ 1248 public static final String ORDER_HOLD_QUEUE_ROLE = "OLE_ORDQU-User"; 1249 public static final String ORDER_HOLD_QUEUE_ROLE_NAMESPACE = CoreModuleNamespaces.SELECT; 1250 public static final String ORDER_HOLD_QUEUE_ASSIGN_PERMISSION = "Assign To Others"; 1251 public static final String ORDER_HOLD_QUEUE_FROM_DATE_LAST_MODIFIED = "fromDateLastModified"; 1252 public static final String ORDER_HOLD_QUEUE_TO_DATE_LAST_MODIFIED = "toDateLastModified"; 1253 public static final String ORDER_HOLD_QUEUE_SELECTOR = "selector"; 1254 public static final String ORDER_HOLD_QUEUE_EXTERNAL_REQUESTOR = "externalRequestorName"; 1255 public static final String ORDER_HOLD_QUEUE_INTERNAL_REQUESTOR = "internalRequestorName"; 1256 public static final String ORDER_HOLD_QUEUE_EXTERNAL_REQUESTORID = "requestorId"; 1257 public static final String ORDER_HOLD_QUEUE_INTERNAL_REQUESTORID = "internalRequestorId"; 1258 public static final String ORDER_HOLD_QUEUE_REQUESTOR_FNAME = "requestorFirstName"; 1259 public static final String ORDER_HOLD_QUEUE_ASSIGN_OWN_REQ = "Assign own Requisition"; 1260 public static final String ORDER_HOLD_QUEUE_APPROVE_REQ = "Approve REQ"; 1261 } 1262 1263 public static class OleLineItemReceiving{ 1264 public static final String ADD_NEW_LINE_ITEM = "Add New Line Item"; 1265 public static final String LINE_ITEM_RECEIVING_NAMESPACE = CoreModuleNamespaces.SELECT; 1266 public static final String RECEIVED_STATUS = "Received"; 1267 public static final String SEE_COPIES_SECTION = "See Copies Section"; 1268 public static final String NOT_APPLICABLE = "N/A"; 1269 public static final String NOT_RECEIVED_STATUS="Not Received"; 1270 1271 } 1272 1273 public static class OlePaymentRequest{ 1274 public static final String CAN_CLOSE_PO = "Close Purchase Order"; 1275 public static final String PAYMENT_REQUEST_NAMESPACE = CoreModuleNamespaces.SELECT; 1276 public static final String HAS_INVOICE_TYPE = "HasInvoiceType"; 1277 public static final String HAS_PREPAID_INVOICE_TYPE = "HasPrepaidInvoiceType"; 1278 public static final String HAS_PAYMENT_METHOD = "HasPaymentMethod"; 1279 } 1280 1281 public static class OleInvoice{ 1282 public static final String INVOICE_SAVED = "Saved"; 1283 public static final String CAN_CLOSE_PO = "Close Purchase Order"; 1284 public static final String PAYMENT_REQUEST_NAMESPACE = CoreModuleNamespaces.SELECT; 1285 public static final String HAS_INVOICE_TYPE = "HasInvoiceType"; 1286 public static final String HAS_PREPAID_INVOICE_TYPE = "HasPrepaidInvoiceType"; 1287 public static final String HAS_PAYMENT_METHOD = "HasPaymentMethod"; 1288 } 1289 1290 public static class OleRequisition{ 1291 public static final String FIRM_TYPE_ORDERS = "Firm Type Requisition Edit"; 1292 public static final String OTHER_TYPE_ORDERS = "Other Type Requisition Edit"; 1293 public static final String REQUISITION_NAMESPACE = CoreModuleNamespaces.SELECT; 1294 public static final String REQUISITION = "OLE_REQS"; 1295 public static final String EDIT_OWN_DOCUMENT = "Edit Own Requisition Document"; 1296 public static final String EDIT_OWN_ASSIGNED_DOCUMENT = "Edit Own Assigned Requisition Document"; 1297 public static final String CREATE_BIBEDITOR = "Create BibEditor"; 1298 public static final String EDIT_BIBEDITOR = "Edit BibEditor"; 1299 1300 } 1301 1302 public static class OleLoadSummary{ 1303 public static final String CAN_VIEW_LOAD_SUMMARY = "View Load Summary"; 1304 public static final String CAN_SEARCH_LOAD_SUMMARY = "Search Load Summary"; 1305 public static final String LOAD_SUMMARY_NAMESPACE = CoreModuleNamespaces.SELECT; 1306 public static final String LOAD_SUMMARY = "OLE_LOADSUM"; 1307 1308 1309 } 1310 1311 public static class Vendor{ 1312 public static final String DOCUMENT_TYPE = "OLE_PVEN"; 1313 public static final String VENDOR_NAMESPACE = CoreModuleNamespaces.SELECT; 1314 public static final String BLANKET_APPROVE = "Blanket Approve Document"; 1315 public static final String VENDOR_REVIEW = "Review"; 1316 public static final String VENDOR_MANAGEMENT="Management"; 1317 public static final String BLANKET_APPROVE_VENDOR_DOCUMENT = "Blanket Approve Vendor Document"; 1318 public static final String VENDOR_REVIEW_DOCUMENT= "Review PVEN Management"; 1319 public static final String DEACTIVATE_VENDOR = "Deactivate Vendor"; 1320 public static final String CREATE_VENDOR_DIVISION = "Create Vendor Division"; 1321 public static final String EDIT_VENDOR_LINKING_NUM = "Edit Vendor Linking Number"; 1322 } 1323 1324 public static class OlePurchaseOrder{ 1325 public static final String PRINT_PURCHASE_ORDER = "Print Purchase Order"; 1326 public static final String PO_NAMESPACE = CoreModuleNamespaces.SELECT; 1327 public static final String PO_DOCUMENT_TYPE = "OLE_PO"; 1328 public static final String POR_DOCUMENT_TYPE = "OLE_POR"; 1329 public static final String POSP_DOCUMENT_TYPE = "OLE_POSP"; 1330 public static final String POV_DOCUMENT_TYPE = "OLE_POV"; 1331 public static final String EDIT_OWN_DOCUMENT = "Edit Own Requisition Document"; 1332 public static final String EDIT_VOID_DOCUMENT = "Edit Void Document"; 1333 public static final String EDIT_SPLIT_DOCUMENT = "Edit Split Document"; 1334 public static final String EDIT_REOPEN_DOCUMENT = "Edit Reopen Document"; 1335 public static final String CREATE_APO = "Create APO"; 1336 1337 } 1338 1339 1340 1341 1342 public static class BibInfoBean{ 1343 public static final String ITEM_AUTHOR = "author"; 1344 public static final String ITEM_TITLE = "title"; 1345 } 1346 public static class OrderQueue{ 1347 public static final String PRINCIPAL_NAME = "document.principalName"; 1348 public static final String TOTAL_PRICE = "TOTAL_PRICE"; 1349 public static final String DOCUMENT_TYPE = "OLE_ORDQU"; 1350 public static final String SUBMIT_ANNOTATION = "Completed from Order Hold Queue"; 1351 public static final String CANCEL_ANNOTATION = "Cancelled from Order Hold Queue"; 1352 public static final String APPROVE_ANNOTATION = " approved for "; 1353 public static final String CONSTANTS = "OrderQueueConstants"; 1354 public static final String OBJECT_ID = "objectId"; 1355 public static final String REQUISITIONS = "requisitions"; 1356 public static final String CHART_CODE = "Chart Code"; 1357 public static final String OBJECT_CODE = "Object Code"; 1358 1359 1360 // Added for OLE-1976 Order Queue Search Enhancements Starts 1361 public static final String ORDQ_REQ_DOC_NUMBER = "requisitionDocNumber"; 1362 public static final String REQ_ITM_REQ_DOC_NUMBER = "requisition.documentNumber"; 1363 public static final String ORDQ_REQ_STATUS = "requisitionStatusCode"; 1364 public static final String REQ_ITM_REQ_STATUS = "requisition.documentHeader.workflowDocument.applicationDocumentStatus"; 1365 public static final String ORDQ_VND_NAME = "vendorName"; 1366 public static final String REQ_ITM_VND_NAME = "requisition.vendorName"; 1367 public static final String ORDQ_INT_REQID = "internalRequestorId"; 1368 public static final String REQ_ITM_INT_REQID = "internalRequestorId"; 1369 public static final String ORDQ_EXT_REQID = "externalRequestorId"; 1370 public static final String REQ_ITM_EXT_REQID = "requestorId"; 1371 public static final String ORDQ_FMT_TYP_ID = "formatTypeId"; 1372 public static final String REQ_ITM_FMT_TYP_ID = "formatTypeId"; 1373 public static final String ORDQ_TITLE = "title"; 1374 public static final String REQ_ITM_TITLE = "docData.title"; 1375 public static final String ORDQ_AUTHOR = "author"; 1376 public static final String REQ_ITM_AUTHOR = "docData.author"; 1377 public static final String ORDQ_PUBLISHER = "publisher"; 1378 public static final String REQ_ITM_PUBLISHER = "docData.publisher"; 1379 public static final String ORDQ_ISBN = "isbn"; 1380 public static final String REQ_ITM_ISBN = "docData.isbn"; 1381 public static final String OLE_SUPER_SELECTOR = "OLE_Super-Selectors"; 1382 public static final String REQ_ACCT_NUM = "sourceAccountingLines.accountNumber"; 1383 public static final String ORDQ_ACCT_NUM = "accountNumber"; 1384 public static final String REQ_CHART_CODE = "sourceAccountingLines.chartOfAccountsCode"; 1385 public static final String ORDQ_CHART_CODE = "chartOfAccountsCode"; 1386 public static final String REQ_OBJ_CODE = "sourceAccountingLines.financialObjectCode"; 1387 public static final String ORDQ_OBJ_CODE = "objectCode"; 1388 1389 public static final Map<String, String> getRequisitionFieldNames() { 1390 Map<String, String> requisitionFields = new HashMap<String, String>(); 1391 requisitionFields.put(ORDQ_REQ_DOC_NUMBER, REQ_ITM_REQ_DOC_NUMBER); 1392 // requisitionFields.put(ORDQ_REQ_STATUS, REQ_ITM_REQ_STATUS); 1393 requisitionFields.put(ORDQ_VND_NAME, REQ_ITM_VND_NAME); 1394 requisitionFields.put(ORDQ_INT_REQID, REQ_ITM_INT_REQID); 1395 requisitionFields.put(ORDQ_EXT_REQID, REQ_ITM_EXT_REQID); 1396 requisitionFields.put(ORDQ_FMT_TYP_ID, REQ_ITM_FMT_TYP_ID); 1397 requisitionFields.put(ORDQ_TITLE, REQ_ITM_TITLE); 1398 requisitionFields.put(ORDQ_AUTHOR, REQ_ITM_AUTHOR); 1399 requisitionFields.put(ORDQ_ACCT_NUM, REQ_ACCT_NUM); 1400 requisitionFields.put(ORDQ_CHART_CODE, REQ_CHART_CODE); 1401 requisitionFields.put(ORDQ_OBJ_CODE, REQ_OBJ_CODE); 1402 requisitionFields.put(ORDQ_PUBLISHER, REQ_ITM_PUBLISHER); 1403 requisitionFields.put(ORDQ_ISBN, REQ_ITM_ISBN); 1404 return Collections.unmodifiableMap(requisitionFields); 1405 } 1406 1407 public static final Map<String, String> REQUISITION_FIELDS = getRequisitionFieldNames(); 1408 public static final String selectorField = "selectorUserId"; 1409 public static final String workflowStatusChangeDateFrom = "workflowStatusChangeDateFrom"; 1410 public static final String workflowStatusChangeDateTo = "workflowStatusChangeDateTo"; 1411 // Added for OLE-1976 Order Queue Search Enhancements Ends 1412 } 1413 1414 public static final String DOCSTORE_URL_KEY = "ole.docstore.url"; 1415 public static final String DOCSTORE_URL_KEY_FOR_POS = "docstore.url"; 1416 public static final String DOCSTORE_APP_URL_KEY = "ole.docstoreapp.url"; 1417 public static final String BIBEDITOR_URL_KEY = "ole.bibeditor.url"; 1418 public static final String INSTANCEEDITOR_URL_KEY = "ole.instanceEditor.url"; 1419 public static final String BIBEDITOR_CREATE_URL_KEY = "ole.bibeditor.create.url"; 1420 public static final String BIBEDITOR_SEARCH_URL_KEY = "ole.bibsearch.url"; 1421 public static final String DOCSEARCH_URL_KEY = "ole.docsearch.url"; 1422 public static final String DOCSEARCH_APP_URL_KEY = "ole.docsearch.app.url"; 1423 public static final String DOCSTORE_APP_CONTENT_TYPE_KEY = "ole.docstoreapp.contenttype"; 1424 public static final String DOCSTORE_APP_CHARSET_CONTENT_TYPE_KEY = "ole.docstoreapp.charset.contenttyp"; 1425 public static final String DOCSTORE_APP_POST_DATA_KEY = "ole.docstoreapp.postdata"; 1426 public static final String DOCSTORE_APP_POST_DATA_EDIT_KEY = "ole.docstoreapp.edit.postdata"; 1427 public static final String DOCSTORE_APP_POST_DATA_DELETE_KEY = "ole.docstoreapp.delete.postdata"; 1428 public static final String DOCSTORE_FILE_KEY = "ole.docstore.file"; 1429 public static final String DOCSEARCH_ORDERQUEUE_LIMIT_KEY = "orderqueue.docsearch.maxLimit"; 1430 public static final String SPECIAL_CONDITIONS_NOTE = "Special Conditions Note"; 1431 public static final String SPECIAL_PROCESSING_INSTRUCTION_NOTE = "Special Processing Instruction Note"; 1432 public static final String PR_LOOKUP_ACTION = "prlookup.do"; 1433 public static final String BIB_LOOKUP_ACTION = "bibLookUp.do"; 1434 public static final String MANUAL_INGEST_DOCUMENT_DESCRIPTION = "YBP_Firm_Ingest"; 1435 public static final String DOCUMENT_DESCRIPTION = "YBP"; 1436 public static final String ORDER_TYPE="Firm"; 1437 1438 public static final String DOCSEARCH_LIMIT_KEY = "docsearch.noOfRows"; 1439 1440 public static final String INSTANCE_MARC_XML_STRING= "<instanceCollection>\n" + 1441 " <instance>\n" + 1442 " <instanceIdentifier></instanceIdentifier>\n" + 1443 " <oleHoldings primary=\"true\">\n" + 1444 " <holdingsIdentifier></holdingsIdentifier>\n" + 1445 " <receiptStatus></receiptStatus>\n" + 1446 " <uri></uri>\n" + 1447 " <note type=\"public\"></note>\n" + 1448 " <location primary=\"true\" status=\"permanent\">\n" + 1449 " <locationLevel>\n" + 1450 " <name></name>\n" + 1451 " <level></level>\n" + 1452 " <locationLevel>\n" + 1453 " <name></name>\n" + 1454 " <level></level>\n" + 1455 " <locationLevel>\n" + 1456 " <name></name>\n" + 1457 " <level></level>\n" + 1458 " <locationLevel>\n" + 1459 " <name></name>\n" + 1460 " <level></level>\n" + 1461 " </locationLevel>\n" + 1462 " </locationLevel>\n" + 1463 " </locationLevel>\n" + 1464 " </locationLevel>\n" + 1465 " </location>\n" + 1466 " <extension>\n" + 1467 " <additionalAttributes>\n" + 1468 " <createdBy></createdBy>\n" + 1469 " <dateEntered></dateEntered>\n" + 1470 " </additionalAttributes>\n" + 1471 " </extension>\n" + 1472 " <callNumber>\n" + 1473 " <type></type>\n" + 1474 " <prefix></prefix>\n" + 1475 " <number></number>\n" + 1476 " <shelvingScheme>\n" + 1477 " <codeValue></codeValue>\n" + 1478 " </shelvingScheme>\n" + 1479 " <shelvingOrder>\n" + 1480 " <codeValue></codeValue>\n" + 1481 " </shelvingOrder>\n" + 1482 " </callNumber>\n" + 1483 " </oleHoldings>\n" + 1484 " <items>\n" + 1485 " <item>\n" + 1486 " <staffOnlyFlag>false</staffOnlyFlag>\n" + 1487 " <fastAddFlag>false</fastAddFlag>\n" + 1488 " <extension reference=\"../../../oleHoldings/extension\"/>\n" + 1489 " </item>\n" + 1490 " </items>\n" + 1491 " </instance>\n" + 1492 "</instanceCollection>" ; 1493 1494 1495 public static final String BIB_CATEGORY_WORK = "work"; 1496 public static final String BIB_TYPE_BIBLIOGRAPHY = "bibliographic"; 1497 public static final String BIB_TYPE_INSTANCE = "instance"; 1498 public static final String BIB_FORMAT_MARC = "marc"; 1499 public static final String BIB_FORMAT_OLEML = "oleml"; 1500 public static final String ITEM_DOC_TYPE = "item"; 1501 public static final String HOLDING_DOC_TYPE = "holdings"; 1502 public static final String NEW_ITEM_ID = "NEW_ITEM"; 1503 public static final String INGEST_OPERATION = "ingest"; 1504 1505 public static final String PRORATE_BY_QTY = "QTY"; 1506 public static final String PRORATE_BY_DOLLAR = "DOLLAR"; 1507 public static final String MANUAL_PRORATE = "MANUAL"; 1508 public static final String NO_PRORATE = "NO_PRORATE"; 1509 public static final String DEFAULT_PRORATE_BY_INVOICE = "DOLLAR"; 1510 public static final String RCV_LN_ITM_IDN = "receivingLineItemIdentifier"; 1511 public static final String LN_ITM_IDN= "itemIdentifier"; 1512 1513 public static final String YEAR_END_ACCOUNTING_PERIOD_EDIT_PERMISSION = "Edit Accounting Period"; 1514 public static final String YEAR_END_ACCOUNTING_PERIOD_VIEW_PERMISSION = "View Accounting Period"; 1515 public static final String YEAR_END_ACCOUNTING_PERIOD_EDIT_DOCUMENT_ACTION = "AccountingPeriodEditAction"; 1516 public static final String YEAR_END_ACCOUNTING_PERIOD_VIEW_DOCUMENT_ACTION = "AccountingPeriodViewAction"; 1517 1518 public static class LicenseRequest{ 1519 public static final String CANCEL_ANNOTATION = "Cancelled from License Request"; 1520 public static final String APPROVE_ANNOTATION = " approved for "; 1521 public static final String REQUISITIONS = "requisitions"; 1522 public static final String REQUISITIONS_DOC_NUMBER = "documentNumber"; 1523 1524 } 1525 1526 public static final String REQ_SRC_CD = "STAN"; 1527 public static final String OLE_FS_KEYSTORE_FILE_PROPERTY = "keystore.file"; 1528 public static final String OLE_FS_DEFAULT_KEYSTORE_FILE_LOCATION_PROPERTY = "keystore.file.default"; 1529 public static final String ORD_TYPE_FIRM_FIX = "Firm, Fixed"; 1530 public static final String ITEM = "ITEM"; 1531 public static final String APPROVAL = "Approval"; 1532 public static final String FIRM_MUL_PART = "Firm (multi part)"; 1533 1534 public static final String OVER = "Over"; 1535 public static final String UNDER = "Under"; 1536 public static final String NONE = "None"; 1537 public static final String PERCENTAGE = "%"; 1538 public static final String HASH = "#"; 1539 1540 public static final String NOTES_TAB_ERROR= "document.oleFinancialNotes"; 1541 1542 public static final String HAS_VENDOR_DEPOSIT_ACCOUNT = "HasVendorDepositAccount"; 1543 public static final String CLEARING_ACCOUNT_CODE = "CLRREV"; 1544 public static final String OLE_PREPAYMENT = "OLE_Prepayment"; 1545 public static final String REQUIRES_SEPARATION_OF_DUTIES= "RequiresSeparationOfDutiesReview"; 1546 public static final String OLE_FUND_LOOKUP = "oleFundLookup.do"; 1547 public static final int START_INDEX = 24; 1548 public static final int END_INDEX = 28; 1549 public static final String BAL_TYP_CD = "CB"; 1550 public static final String FIN_DOC_STS_CD="R"; 1551 public static final String FIN_DOC_STS_APP_CD = "A"; 1552 public static final String ERROR_MSG_FOR_INSUFF_FUND = "insuff.fund.preq"; 1553 public static final String INSUFF_FUND = "Insufficient fund to continue PREQ for this account number "; 1554 1555 public static class Account { 1556 public static final String ACCOUNT_NAMESPACE = CoreModuleNamespaces.SELECT; 1557 public static final String ACCOUNT_RESTRICTIONS= "Edit Restriction"; 1558 public static final String ACCOUNT_SUFFICIENT_FUND = "Edit Sufficient fund check"; 1559 public static final String ACCOUNT_RESTRICTED_STATUS_CD = "accountRestrictedStatusCode"; 1560 public static final String ACCOUNT_SUFFICIENT_FUND_CODE = "accountSufficientFundsCode"; 1561 public static final String UPLOAD_BUDGET = "Upload Budget"; 1562 public static final String LABOR_BENEFIT_RATE_CATEGORY_CODE = "--"; 1563 1564 } 1565 1566 public static final String ERROR_AMOUNT = "error.amount"; 1567 public static final String ACCOUNT_NEW_SRC_LINE = "newSourceLine"; 1568 public static final String ACCOUNT_NEW_TRGT_LINE = "newTargetLine"; 1569 1570 1571 // Added for Jira OLE-1900 Starts 1572 1573 public static final String ITEM_LOCATION_REQUIRED = "error.itemLocation.required"; 1574 1575 public static final String PART_ENUMERATION_COPY = "ole.partEnumeration.copy"; 1576 1577 public static final String PART_ENUMERATION_VOLUME = "ole.partEnumeration.volume"; 1578 1579 public static final String ITEM_COPIES_ITEMCOPIES_GREATERTHAN_ITEMCOPIESORDERED = "item.copies.itemCopies.greatethan.itemCopiesOrdered"; 1580 1581 public static final String TOTAL_OF_ITEM_COPIES_ITEMCOPIES_GREATERTHAN_ITEMCOPIESORDERED = "total.of.item.copies.itemCopies.greatethan.itemCopiesOrdered"; 1582 1583 public static final String ITEM_STARTINGCOPYNUMBER_SHOULDNOT_BE_GREATERTHAN_ITEMCOPIESORDERED = "item.copies.startingCopyNumber.shouldnot.be.greatethan.itemCopiesOrdered"; 1584 1585 public static final String ADDITION_OF_ITEM_STARTINGCOPYNUMBER_AND_ITEMCOPIES_SHOULDNOT_BE_GREATERTHAN_ITEMCOPIESORDERED = "addition.of.item.startingCopyNumber.and.item.itemcopies.shouldnot.be.greatethan.itemCopiesOrdered"; 1586 1587 public static final String ITEM_ITEMCOPIES_OR_LOCATIONCOPIES_SHOULDNOT_BE_NULL = "item.itemCopies.or.locationCopies.shouldnot.be.null"; 1588 1589 public static final String ADD_COPIES_AT_LINE_ITEM_WHEN_COPIESORDERED_AND_PARTSORDERED_GREATERTHAN_1 = "add.copies.at.lineItem.when.copiesOrdered.and.partsOrdered.greaterThan.1"; 1590 1591 public static final String TOTAL_OF_ITEMCOPIES_SHOULDNOT_BE_LESSTHAN_ITEMQUANTITY = "total.of.itemcopies.shouldnot.be.lessthan.itemQuantity"; 1592 1593 public static final String LOCATION_LEVEL_CODE_INSTITUTION = "Institution"; 1594 1595 public static final String LOCATION_LEVEL_CODE_LIBRARY = "Library"; 1596 1597 public static final String LOCATION_LEVEL_CODE_CAMPUS = "Campus"; 1598 1599 public static final String LOCATION_PRIMARY = "true"; 1600 1601 public static final String LOCATION_STATUS = "temporary"; 1602 1603 public static final String OLE_DOCSTORE_RESTFUL_URL = "ole.docstore.restful.url"; 1604 1605 public static final String IDENTIFIER_TYPE = "identifierType"; 1606 1607 public static final String UUID = "UUID"; 1608 1609 public static final String OPERATION = "operation"; 1610 1611 public static final String DELETE = "delete"; 1612 1613 public static final String DOC_CATEGORY = "docCategory"; 1614 1615 public static final String DOC_TYPE = "docType"; 1616 1617 public static final String DOC_FORMAT = "docFormat"; 1618 1619 public static final String PO_RECEIPT_STATUS_PARTIALLY_RECEIVED = "PR"; 1620 1621 public static final String PO_RECEIPT_STATUS_FULLY_RECEIVED = "FR"; 1622 1623 public static final String PO_RECEIPT_STATUS_NOT_RECEIVED = "NR"; 1624 1625 public static final String DOC_NUMBER = "documentNumber"; 1626 1627 public static final String RCPT_STATUS_CD = "receiptStatusCd"; 1628 1629 public static final String PO_IDNTFR = "purchaseOrderIdentifier"; 1630 1631 public static final String RCPT_STS_DOC_TYP = "receiptStatusDocType"; 1632 1633 public static final String RCV_RCPT_STS_DOC_TYP = "RCV"; 1634 1635 public static final String RCV_RECEIPT_STATUS_RCVD = "RCVD"; 1636 1637 public static final String RCV_RECEIPT_STATUS_EXPTD = "EXP"; 1638 1639 public static final String RCV_RECEIPT_STATUS_NONE = "NON"; 1640 1641 public static final String COMMA_TO_SEPARATE_ENUMERATION = ", "; 1642 1643 public static final String DOT_TO_SEPARATE_COPIES_PARTS = "."; 1644 1645 // Added for Jira OLE-1900 Ends 1646 1647 public static final String VOLUME_NUMBER_VALIDATIONS = "error.volumeNumber.validations"; 1648 1649 public static final String VOLUME_NUMBER_REGEX_VALIDATIONS = "error.volumeNumber.regex.validations"; 1650 1651 public static final String VOLUME_NUMBER_PATTERN = "^([0-9]+,?)+$"; 1652 1653 public static final String USER_ID = "userId"; 1654 1655 public static class OlePersonRequestorLookupable { 1656 public static final String FIRST_NAME = "firstName"; 1657 public static final String LAST_NAME = "lastName"; 1658 public static final String EMAIL = "email"; 1659 public static final String EMAIL_ADDRESS = "emailAddress"; 1660 public static final String PHONE_NUMBER = "phoneNumber"; 1661 public static final String ID = "id"; 1662 public static final String REQUESTOR_TYPE_ID = "requestorTypeId"; 1663 public static final String REF_KRIM_ID = "refKrimId"; 1664 public static final String PRINCIPAL_ID = "principalId"; 1665 public static final String REQUESTOR_FIRST_NAME = "requestorFirstName"; 1666 public static final String REQUESTOR_LAST_NAME = "requestorLastName"; 1667 public static final String REQUESTOR_EMAIL = "requestorEmail"; 1668 public static final String REQUESTOR_PHONE_NUMBER = "requestorPhoneNumber"; 1669 public static final String REQUESTOR_ID = "requestorId"; 1670 public static final String NULLSTRING = "null"; 1671 public static final String EMPTY = ""; 1672 } 1673 1674 public static final String ACCOUNT_FUND_CODE = "A"; 1675 1676 public static final String OBJECT_FUND_CODE = "O"; 1677 1678 public static final int DATE_START_INDEX = 6; 1679 1680 public static final int DATE_END_INDEX = 10; 1681 1682 public static final String BLOCK_USR_KEY = "block_user"; 1683 public static final String BLOCK_USR_VAL = "Block User"; 1684 public static final String WAR_USR_KEY = "warning"; 1685 public static final String WAR_USR_VAL = "Warning"; 1686 public static final String NOT_USR_KEY = "notification"; 1687 public static final String NOT_USR_VAL = "Notification"; 1688 public static final String ROU_USR_KEY = "routing"; 1689 public static final String ROU_USR_VAL = "Routing"; 1690 public static final String ACC_NUM = "Account number "; 1691 public static final String EXC_BUD_AMT = " exceeds budget amount"; 1692 public static final String ITM_TYP_CD = "ITEM"; 1693 public static final String ITM_TYP_CD_KEY = "itemTypeCode"; 1694 public static final String PUR_AP_IDEN = "purapDocumentIdentifier"; 1695 1696 public static class SufficientFundCheck { 1697 public static String REQUISITION_SFC_CHECKING = "message.requisition.sfc.checking"; 1698 public static String INVOICE_SFC_CHECKING = "message.invoice.sfc.checking"; 1699 public static String REQUISITION_SFC_CHECKING_STRING = "Sufficient Fund Check"; 1700 public static final String ERROR_MSG_FOR_INSUFF_FUND = "insuff.fund.req"; 1701 public static final String INSUFF_FUND_REQ = "Insufficient fund to continue Requisition for this account number "; 1702 public static final String INSUFF_FUND_INV = "Insufficient fund to continue Invoice for this account number "; 1703 public static final String DATE_FORMAT = "MM/dd/yyyy"; 1704 public static final String REQ_NOTE = "Routed this document to budget approval due to insufficient fund"; 1705 public static final String PO_NOTE = "Routed this document to budget approval due to insufficient fund"; 1706 public static final String POA_NOTE = "Routed this document to budget approval due to insufficient fund"; 1707 public static final String PREQ_NOTE = "Routed this document to budget approval due to insufficient fund"; 1708 public static final String INV_NOTE = "Routed this document to budget approval due to insufficient fund"; 1709 public static final String INSUFF_FUND_POA = "Insufficient fund to continue POA for this account number "; 1710 public static final String FYI_NOTE = "Sent FYI to budget reviewer due to insufficient fund"; 1711 1712 } 1713 1714 public static class OleCopy { 1715 public static final String BIB_ID = "bibId"; 1716 public static final String LOC = "location"; 1717 public static final String INSTANCE_ID = "instanceId"; 1718 public static final String REQ_ITM_ID = "reqItemId"; 1719 public static final String PO_DOC_NUM = "poDocNum"; 1720 public static final String PO_ITM_ID = "poItemId"; 1721 public static final String COPY_NUM = "copyNumber"; 1722 public static final String COPY_ID = "copyId"; 1723 1724 1725 } 1726 public static class InvoiceDocument { 1727 public static final String VENDOR_HEADER_IDENTIFIER="vendorHeaderGeneratedIdentifier"; 1728 public static final String VENDOR_DETAIL_IDENTIFIER="vendorDetailAssignedIdentifier"; 1729 public static final String VENDOR_NUMBER="vendorNumber"; 1730 public static final String TITLE="title"; 1731 public static final String AUTHOR="author"; 1732 public static final String ISBN="isbn"; 1733 public static final String VENDOR_NAME="vendorName"; 1734 public static final String INVOICE_DOCUMENT_NUMBER = "documentNumber"; 1735 public static final String INVOICE_PURAP_DOCUMENT_IDENTIFIER = "purapDocumentIdentifier"; 1736 public static final String FDOC_NBR = "FDOC_NBR"; 1737 public static final String PO_ID = "PO_ID"; 1738 public static final String CMPNT_CD = "Invoice"; 1739 public static final String VENDOR_NOT_FOUND = "Vendor not selected"; 1740 public static final String ERROR_SELECT_INVOICE_ITEM = "error.select.invoiceItem"; 1741 public static final String ERROR_DUPLICATE_INVOICE_DATE_NUMBER_VND = "error.duplicate.invoice.date.number"; 1742 public static final String INVOICE_NUMBER = "invoiceNumber"; 1743 public static final String INVOICE_DATE = "invoiceDate"; 1744 public static final String VENDOR_GENERATED_IDENTIFIER = "vendorHeaderGeneratedIdentifier"; 1745 public static final String VENDOR_DETAIL_ASSIGNED_GENERATED_IDENTIFIER = "vendorDetailAssignedIdentifier"; 1746 public static final String INVOICE_DOCUMENT_INITIATED="Initiated"; 1747 public static final List<String> getItemtypeCodes() { 1748 List<String> itemTypeCodes = new ArrayList<String>(); 1749 itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_FREIGHT_CODE); 1750 itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_SHIP_AND_HAND_CODE); 1751 itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_MIN_ORDER_CODE); 1752 itemTypeCodes.add(PurapConstants.ItemTypeCodes.ITEM_TYPE_MISC_CODE); 1753 return Collections.unmodifiableList(itemTypeCodes); 1754 } 1755 1756 1757 } 1758 1759 public static final String VENDOR_NOT_FOUND = "error.vendor.notFound"; 1760 public static final String VENDOR_NOT_SAME = "error.vendor.notSame"; 1761 public static final String VENDOR_SELECT ="error.vendor.select"; 1762 public static final String REFRESH_VENDOR_CALLER = "vendorLookupable"; 1763 public static final String VENDOR_HEADER_IDENTIFIER="vendorHeaderGeneratedIdentifier"; 1764 public static final String VENDOR_DETAIL_IDENTIFIER="vendorDetailAssignedIdentifier"; 1765 public static final String VENDOR_ALIAS_NAME="vendorAliasName"; 1766 public static final String VENDOR_DETAILS="vendorDetail"; 1767 public static final String VENDOR_CONTRACT="vendorContract"; 1768 public static final String REFRESH_DV_VENDOR_CALLER="disbursementPayeeLookupable"; 1769 public static final String SFC_INSUFF_WARN = "Insufficient Fund to continue invoice for this account number "; 1770 public static final String ERROR_RECEIVING_EXIST="error.receiving.exist"; 1771 public static final String ERROR_SELECT_PO_ITM="error.select.purchaseOrderItem"; 1772 public static final String ERROR_SELECT_PO_ITM_FORMAT="error.select.purchaseOrderItem.format"; 1773 public static final String SUFF_FUND_CHECK = "oleSufficientFundCheck"; 1774 public static final String ERROR_SELECT_EMCUM_METHOD = "error.document.encum.required"; 1775 public static final String ERROR_SELECT_EMCUM_CON_TYP = "error.document.con.typ.required"; 1776 public static final String ERROR_SELECT_EMCUM_AMT = "error.document.enc.amt.required"; 1777 public static final String ERROR_SELECT_EXP_AMT = "error.document.exp.amt.required"; 1778 public static final String ERROR_SELECT_NOT_TYP = "error.document.not.typ.required"; 1779 1780 public static final String PATRON_ID = "olePatronId"; 1781 public static final String PO_ITEM_ID = "itemIdentifier"; 1782 public static final String PO_LINE_ITEM_URL = "/" + "DocHandler.do?command=displayDocSearchView&docId="; 1783 public static final String INV_INSUFF_FUND = "Insufficient fund to continue invoice for this account number "; 1784 1785 public static final String TITLE_SORT = "Title_sort"; 1786 public static final String TITLE_DISPLAY = "Title_display"; 1787 public static final String UUID_FOR_TITLE_SORT = "uuid"; 1788 1789}