001 /*
002 * Copyright 2011 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 */
016 package org.kuali.kfs.module.cg;
017
018 import java.util.Calendar;
019
020 import org.kuali.rice.core.util.JSTLConstants;
021 import org.kuali.rice.kns.util.KualiInteger;
022
023 /**
024 * Constants specific to the Contracts and Grants module.
025 */
026 public class CGConstants extends JSTLConstants {
027
028 public static final String CG_NAMESPACE_CODE = "KFS-CG";
029
030 /**
031 * The key for the document error map to grab errors for the close document.
032 */
033 public static final String CLOSE_DOCUMENT_TAB_ERRORS = "document.userInitiatedCloseDate";
034
035 public static final String SHORT_TIMESTAMP_FORMAT = "MM/dd/yyyy";
036 public static final String LONG_TIMESTAMP_FORMAT = "MM/dd/yyyy HH:mm:ss";
037
038 public static final int maximumPeriodLengthUnits = Calendar.YEAR;
039
040 public static final String DATABASE_TRUE_VALUE = "Y";
041
042 public static final String DROPDOWN_LIST_SELECT = "select:";
043
044 // System Parameters
045 public static final String RESULT_SUMMARY_TO_EMAIL_ADDRESSES = "RESULT_SUMMARY_TO_EMAIL_ADDRESSES";
046
047 public static final String SOURCE_URL_PARAMETER = "SOURCE_URL";
048
049 public static final String MANUAL_BASE = "MN";
050 public static final String MODIFIED_TOTAL_DIRECT_COST = "MT";
051
052 public static final String ORG_REVIEW_NODE_NAME = "Org Review";
053 public static final String ORG_REVIEW_TEMPLATE_NAME = "KualiResearchOrgReviewTemplate";
054
055 // Research Risk Types
056 public static final String RESEARCH_RISK_TYPE_ALL_COLUMNS = "A";
057 public static final String RESEARCH_RISK_TYPE_SOME_COLUMNS = "S";
058 public static final String RESEARCH_RISK_TYPE_DESCRIPTION = "D";
059
060 // Study Statuses
061 public static final String RESEARCH_RISK_STUDY_STATUS_APPROVED = "A";
062 public static final String RESEARCH_RISK_STUDY_STATUS_PENDING = "P";
063
064 // Study Review Statuses
065 public static final String RESEARCH_RISK_STUDY_REVIEW_EXEMPT = "X";
066
067 // Following are used in tags on Main Page.
068 public static final String SUBMISSION_TYPE_CHANGE = "SUBMISSION_TYPE_CHANGE";
069 public static final String PROJECT_TYPE_OTHER = "PROJECT_TYPE_OTHER";
070 public static final String PURPOSE_RESEARCH = "PURPOSE_RESEARCH";
071 public static final String PURPOSE_OTHER = "PURPOSE_OTHER";
072 public static final String CONTACT_PERSON_PARAM = "PERSON_ROLE_CODE_CONTACT_PERSON";
073 public static final String CO_PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_CO_PROJECT_DIRECTOR";
074 public static final String OTHER_PERSON_PARAM = "PERSON_ROLE_CODE_OTHER";
075 public static final String PROJECT_DIRECTOR_PARAM = "PERSON_ROLE_CODE_PROJECT_DIRECTOR";
076
077 public static final String MAXIMUM_ACCOUNT_RESPONSIBILITY_ID = "MAXIMUM_ACCOUNT_RESPONSIBILITY_ID";
078
079 public static class CGKimConstants{
080 public static final String AWARD_ROUTING_NODE_NAME = "Award";
081 public static final String MANAGEMENT_ROUTING_NODE_NAME = "Management";
082 public static final String UNPROCESSED_ROUTING_NODE_NAME = "Unprocessed";
083
084 }
085
086 public static class SectionId{
087 public static final String PROPOSAL_RESEARCH_RISKS = "proposalResearchRisks";
088 }
089
090 }