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.endow.document.web.struts;
017
018 import org.kuali.kfs.module.endow.EndowConstants;
019 import org.kuali.kfs.module.endow.document.EndowmentUnitShareAdjustmentDocument;
020
021 /**
022 * This class...
023 */
024 public class EndowmentUnitShareAdjustmentDocumentForm extends EndowmentTransactionLinesDocumentFormBase {
025
026 /**
027 * Constructs a EndowmentUnitShareAdjustmentDocumentForm.java.
028 */
029 public EndowmentUnitShareAdjustmentDocumentForm() {
030 super();
031
032 // don't show these values on the edoc.
033 setShowPrincipalTotalAmount(false);
034 setShowIncomeTotalAmount(false);
035 setShowTransactionAmount(false);
036
037 // do not show the etran code on the UI screen
038 setShowETranCode(false);
039 }
040
041 /**
042 * @see org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase#getDefaultDocumentTypeName()
043 */
044 @Override
045 protected String getDefaultDocumentTypeName() {
046 return "EUSA";
047 }
048
049 /**
050 * This method...
051 *
052 * @return
053 */
054 public EndowmentUnitShareAdjustmentDocument getEndowmentUnitShareAdjustmentDocument() {
055 return (EndowmentUnitShareAdjustmentDocument) getDocument();
056 }
057
058 /**
059 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getSourceGroupLabelName()
060 */
061 @Override
062 public String getSourceGroupLabelName() {
063 return EndowConstants.DECREASE_TRANSACTION_LINE_GROUP_LABEL_NAME;
064 }
065
066 /**
067 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getTargetGroupLabelName()
068 */
069 @Override
070 public String getTargetGroupLabelName() {
071 return EndowConstants.INCREASE_TRANSACTION_LINE_GROUP_LABEL_NAME;
072 }
073
074 /**
075 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getSourceTaxLotsLabelName()
076 */
077 @Override
078 public String getSourceTaxLotsLabelName() {
079 return EndowConstants.DECREASE_TAX_LOTS_LABEL_NAME;
080 }
081
082 /**
083 * @see org.kuali.kfs.module.endow.document.web.struts.EndowmentTransactionLinesDocumentFormBase#getTargetTaxLotsLabelName()
084 */
085 @Override
086 public String getTargetTaxLotsLabelName() {
087 return EndowConstants.INCREASE_TAX_LOTS_LABEL_NAME;
088 }
089 }