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.apache.struts.upload.FormFile;
019    import org.kuali.kfs.module.endow.EndowConstants;
020    import org.kuali.kfs.module.endow.EndowParameterKeyConstants;
021    import org.kuali.kfs.module.endow.businessobject.EndowmentSourceTransactionLine;
022    import org.kuali.kfs.module.endow.businessobject.EndowmentSourceTransactionSecurity;
023    import org.kuali.kfs.module.endow.businessobject.EndowmentTargetTransactionLine;
024    import org.kuali.kfs.module.endow.businessobject.EndowmentTargetTransactionSecurity;
025    import org.kuali.kfs.module.endow.businessobject.EndowmentTransactionLine;
026    import org.kuali.kfs.module.endow.document.EndowmentTransactionLinesDocumentBase;
027    import org.kuali.kfs.sys.KFSConstants;
028    import org.kuali.kfs.sys.context.SpringContext;
029    import org.kuali.kfs.sys.document.web.struts.FinancialSystemTransactionalDocumentFormBase;
030    import org.kuali.kfs.sys.service.impl.KfsParameterConstants;
031    import org.kuali.rice.kns.service.KualiConfigurationService;
032    import org.kuali.rice.kns.service.ParameterService;
033    
034    public abstract class EndowmentTransactionLinesDocumentFormBase extends FinancialSystemTransactionalDocumentFormBase {
035    
036        protected FormFile transactionLineImportFile;
037        protected FormFile transactionSourceLinesImportFile;
038        
039        protected EndowmentTransactionLine newSourceTransactionLine;
040        protected EndowmentTransactionLine newTargetTransactionLine;
041        private EndowmentSourceTransactionSecurity sourceTransactionSecurity;
042        private EndowmentTargetTransactionSecurity targetTransactionSecurity;
043    
044        private String balanceInquiryReturnAnchor;
045    
046        // labels that appear on the transaction lines as group headers.
047        protected String sourceGroupLabelName = EndowConstants.SOURCE_TRANSACTION_LINE_GROUP_LABEL_NAME;
048        protected String targetGroupLabelName = EndowConstants.TARGET_TRANSACTION_LINE_GROUP_LABEL_NAME;
049    
050        // labels for the source and taget tax lot lines
051        protected String sourceTaxLotsLabelName = EndowConstants.SOURCE_TRANSACTION_LINE_GROUP_LABEL_NAME;
052        protected String targetTaxLotsLabelName = EndowConstants.TARGET_TRANSACTION_LINE_GROUP_LABEL_NAME;
053    
054        // these properties control if the total amount and units show on the summary lines.
055        // the default is set to true to show the values on the document.
056        protected boolean showIncomeTotalAmount = true;
057        protected boolean showPrincipalTotalAmount = true;
058    
059        protected boolean showIncomeTotalUnits = true;
060        protected boolean showPrincipalTotalUnits = true;
061        protected boolean showTransactionAmount = true;
062        protected boolean showUnitAdjustmentAmount = false; // default -> do not show
063    
064        // the income or principal box value will be set on tag file using the property.
065        // if set to true, income or principal drop-down box will be readonly with value set to P-Principal
066        protected boolean fieldValueToPrincipal = false;
067    
068        // show the etran code on the document...
069        protected boolean showETranCode = true;
070    
071        // show the import button on source transaction lines
072        protected boolean showSourceImport = true;
073    
074        // show the import button on target transaction lines
075        protected boolean showTargetImport = true;
076    
077        // show the add button on the source transaction lines
078        protected boolean showSourceAdd = true;
079    
080        // show the add button on the target transaction lines
081        protected boolean showTargetAdd = true;
082    
083        // make the KEMID field on the source transaction lines read only.
084        protected boolean sourceKemidReadOnly = false;
085    
086        // make the KEMID field on the target transaction lines read only.
087        protected boolean targetKemidReadOnly = false;
088    
089        // make the income/principal indicator on the source transaction lines read only.
090        protected boolean sourceIncomePrincipalIndicatorReadOnly = false;
091    
092        // make the income/principal indicator on the target transaction lines read only.
093        protected boolean targetIncomePrincipalIndicatorReadOnly = false;
094    
095        // show all the added source transaction lines on the form.
096        protected boolean showSourceTransLines = true;
097    
098        // show all the added target transaction lines on the form.
099        protected boolean showTargetTransLines = true;
100    
101        protected boolean showSourceRefresh = true;
102        protected boolean showTargetRefresh = true;
103        protected boolean showSourceBalance = true;
104        protected boolean showTargetBalance = true;
105        protected boolean showSourceDelete = true;
106        protected boolean showTargetDelete = true;
107    
108        /**
109         * Constructs a EndowmentTransactionLinesDocumentFormBase.java.
110         */
111        public EndowmentTransactionLinesDocumentFormBase() {
112            super();
113            newSourceTransactionLine = new EndowmentSourceTransactionLine();
114            newTargetTransactionLine = new EndowmentTargetTransactionLine();
115            sourceTransactionSecurity = new EndowmentSourceTransactionSecurity();
116            targetTransactionSecurity = new EndowmentTargetTransactionSecurity();
117        }
118    
119        /**
120         * Gets an EndowmentTransactionLinesDocumentBase.
121         * 
122         * @return EndowmentTransactionLinesDocumentBase
123         */
124        public EndowmentTransactionLinesDocumentBase getEndowmentTransactionLinesDocumentBase() {
125            return (EndowmentTransactionLinesDocumentBase) getDocument();
126        }
127    
128        /**
129         * Gets the newSourceTransactionLine attribute.
130         * 
131         * @return Returns the newSourceTransactionLine.
132         */
133        public EndowmentTransactionLine getNewSourceTransactionLine() {
134            return newSourceTransactionLine;
135        }
136    
137        /**
138         * Sets the newSourceTransactionLine attribute value.
139         * 
140         * @param newSourceTransactionLine The newSourceTransactionLine to set.
141         */
142        public void setNewSourceTransactionLine(EndowmentTransactionLine newSourceTransactionLine) {
143            this.newSourceTransactionLine = newSourceTransactionLine;
144        }
145    
146        /**
147         * Gets the newTargetTransactionLine attribute.
148         * 
149         * @return Returns the newTargetTransactionLine.
150         */
151        public EndowmentTransactionLine getNewTargetTransactionLine() {
152            return newTargetTransactionLine;
153        }
154    
155        /**
156         * Sets the newTargetTransactionLine attribute value.
157         * 
158         * @param newTargetTransactionLine The newTargetTransactionLine to set.
159         */
160        public void setNewTargetTransactionLine(EndowmentTransactionLine newTargetTransactionLine) {
161            this.newTargetTransactionLine = newTargetTransactionLine;
162        }
163    
164        public EndowmentSourceTransactionSecurity getSourceTransactionSecurity() {
165            return sourceTransactionSecurity;
166        }
167    
168        public void setSourceTransactionSecurity(EndowmentSourceTransactionSecurity sourceTransactionSecurity) {
169            this.sourceTransactionSecurity = sourceTransactionSecurity;
170        }
171    
172        public EndowmentTargetTransactionSecurity getTargetTransactionSecurity() {
173            return targetTransactionSecurity;
174        }
175    
176        public void setTargetTransactionSecurity(EndowmentTargetTransactionSecurity targetTransactionSecurity) {
177            this.targetTransactionSecurity = targetTransactionSecurity;
178        }
179    
180        /**
181         * Gets the transactionLineImportFile.
182         * 
183         * @return transactionLineImportFile
184         */
185        public FormFile getTransactionLineImportFile() {
186            return transactionLineImportFile;
187        }
188    
189        /**
190         * Sets the transactionLineImportFile.
191         * 
192         * @param transactionLineImportFile
193         */
194        public void setTransactionLineImportFile(FormFile transactionLineImportFile) {
195            this.transactionLineImportFile = transactionLineImportFile;
196        }
197    
198        /**
199         * Gets the balanceInquiryReturnAnchor attribute.
200         * 
201         * @return Returns the balanceInquiryReturnAnchor.
202         */
203        public String getBalanceInquiryReturnAnchor() {
204            return balanceInquiryReturnAnchor;
205        }
206    
207        /**
208         * Sets the balanceInquiryReturnAnchor attribute value.
209         * 
210         * @param balanceInquiryReturnAnchor The balanceInquiryReturnAnchor to set.
211         */
212        public void setBalanceInquiryReturnAnchor(String balanceInquiryReturnAnchor) {
213            this.balanceInquiryReturnAnchor = balanceInquiryReturnAnchor;
214        }
215    
216        /**
217         * Tells whether the source transaction lines add transaction line section should be displayed. By default this returns true for
218         * all documents. If a document needs to handle this in a more special way than this method should be overridden in the document
219         * Form class.
220         * 
221         * @return true
222         */
223        public boolean getShowFromTransactionLine() {
224            return true;
225        }
226    
227        /**
228         * Tells whether the target transaction lines add transaction line section should be displayed. By default this returns true for
229         * all documents. If a document needs to handle this in a more special way than this method should be overridden in the document
230         * Form class.
231         * 
232         * @return true
233         */
234        public boolean getShowToTransactionLine() {
235            return true;
236        }
237    
238        /**
239         * Gets the sourceGroupLabelName attribute.
240         * 
241         * @return Returns the sourceGroupLabelName.
242         */
243        public String getSourceGroupLabelName() {
244            return sourceGroupLabelName;
245        }
246    
247        /**
248         * Sets the sourceGroupLabelName attribute value.
249         * 
250         * @param sourceGroupLabelName The sourceGroupLabelName to set.
251         */
252        public void setSourceGroupLabelName(String sourceGroupLabelName) {
253            this.sourceGroupLabelName = sourceGroupLabelName;
254        }
255    
256        /**
257         * Gets the targetGroupLabelName attribute.
258         * 
259         * @return Returns the targetGroupLabelName.
260         */
261        public String getTargetGroupLabelName() {
262            return targetGroupLabelName;
263        }
264    
265        /**
266         * Sets the targetGroupLabelName attribute value.
267         * 
268         * @param targetGroupLabelName The targetGroupLabelName to set.
269         */
270        public void setTargetGroupLabelName(String targetGroupLabelName) {
271            this.targetGroupLabelName = targetGroupLabelName;
272        }
273    
274        /**
275         * Gets the showIncomeTotalAmount attribute.
276         * 
277         * @return Returns the showIncomeTotalAmount.
278         */
279        public boolean isShowIncomeTotalAmount() {
280            return showIncomeTotalAmount;
281        }
282    
283        /**
284         * Sets the showIncomeTotalAmount attribute value.
285         * 
286         * @param showIncomeTotalAmount The showIncomeTotalAmount to set.
287         */
288        public void setShowIncomeTotalAmount(boolean showIncomeTotalAmount) {
289            this.showIncomeTotalAmount = showIncomeTotalAmount;
290        }
291    
292        /**
293         * Gets the showIncomeTotalAmount attribute.
294         * 
295         * @return Returns the showIncomeTotalAmount.
296         */
297        public boolean isShowPrincipalTotalAmount() {
298            return showPrincipalTotalAmount;
299        }
300    
301        /**
302         * Sets the showPrincipalTotalAmount attribute value.
303         * 
304         * @param showPrincipalTotalAmount The showPrincipalTotalAmount to set.
305         */
306        public void setShowPrincipalTotalAmount(boolean showPrincipalTotalAmount) {
307            this.showPrincipalTotalAmount = showPrincipalTotalAmount;
308        }
309    
310        /**
311         * Gets the showIncomeTotalUnits attribute.
312         * 
313         * @return Returns the showIncomeTotalUnits.
314         */
315        public boolean isShowIncomeTotalUnits() {
316            return showIncomeTotalUnits;
317        }
318    
319        /**
320         * Sets the showIncomeTotalUnits attribute value.
321         * 
322         * @param showIncomeTotalUnits The showIncomeTotalUnits to set.
323         */
324        public void setShowIncomeTotalUnits(boolean showIncomeTotalUnits) {
325            this.showIncomeTotalUnits = showIncomeTotalUnits;
326        }
327    
328        /**
329         * Gets the showPrincipalTotalUnits attribute.
330         * 
331         * @return Returns the showPrincipalTotalUnits.
332         */
333        public boolean isShowPrincipalTotalUnits() {
334            return showPrincipalTotalUnits;
335        }
336    
337        /**
338         * Sets the showIncomeTotalUnits attribute value.
339         * 
340         * @param showIncomeTotalUnits The showIncomeTotalUnits to set.
341         */
342        public void setShowPrincipalTotalUnits(boolean showPrincipalTotalUnits) {
343            this.showPrincipalTotalUnits = showPrincipalTotalUnits;
344        }
345    
346        /**
347         * Gets the fieldValueToPrincipal attribute.
348         * 
349         * @return Returns the fieldValueToPrincipal.
350         */
351        public boolean isFieldValueToPrincipal() {
352            return fieldValueToPrincipal;
353        }
354    
355        /**
356         * Sets the fieldValueToPrincipal attribute value.
357         * 
358         * @param fieldValueToPrincipal The fieldValueToPrincipal to set.
359         */
360        public void setFeildValueToPrincipal(boolean fieldValueToPrincipal) {
361            this.fieldValueToPrincipal = fieldValueToPrincipal;
362        }
363    
364        /**
365         * Gets the showETranCode attribute.
366         * 
367         * @return Returns the showETranCode.
368         */
369        public boolean isShowETranCode() {
370            return showETranCode;
371        }
372    
373        /**
374         * Sets the showETranCode attribute value.
375         * 
376         * @param showETranCode The showETranCode to set.
377         */
378        public void setShowETranCode(boolean showETranCode) {
379            this.showETranCode = showETranCode;
380        }
381    
382        /**
383         * Gets sourceTaxLotsLabelName.
384         * 
385         * @return sourceTaxLotsLabelName
386         */
387        public String getSourceTaxLotsLabelName() {
388            return sourceTaxLotsLabelName;
389        }
390    
391        /**
392         * Sets the sourceTaxLotsLabelName.
393         * 
394         * @param sourceTaxLotsLabelName
395         */
396        public void setSourceTaxLotsLabelName(String sourceTaxLotsLabelName) {
397            this.sourceTaxLotsLabelName = sourceTaxLotsLabelName;
398        }
399    
400        /**
401         * Gets the targetTaxLotsLabelName.
402         * 
403         * @return targetTaxLotsLabelName
404         */
405        public String getTargetTaxLotsLabelName() {
406            return targetTaxLotsLabelName;
407        }
408    
409        /**
410         * Sets targetTaxLotsLabelName.
411         * 
412         * @param targetTaxLotsLabelName
413         */
414        public void setTargetTaxLotsLabelName(String targetTaxLotsLabelName) {
415            this.targetTaxLotsLabelName = targetTaxLotsLabelName;
416        }
417    
418        /**
419         * Gets showTransactionAmount.
420         * 
421         * @return showTransactionAmount
422         */
423        public boolean isShowTransactionAmount() {
424            return showTransactionAmount;
425        }
426    
427        /**
428         * Sets showTransactionAmount.
429         * 
430         * @param showTransactionAmount
431         */
432        public void setShowTransactionAmount(boolean showTransactionAmount) {
433            this.showTransactionAmount = showTransactionAmount;
434        }
435    
436        /**
437         * Gets showUnitAdjustmentAmount.
438         * 
439         * @return showUnitAdjustmentAmount
440         */
441        public boolean isShowUnitAdjustmentAmount() {
442            return showUnitAdjustmentAmount;
443        }
444    
445        /**
446         * Sets showUnitAdjustmentAmount.
447         * 
448         * @param showUnitAdjustmentAmount
449         */
450        public void setShowUnitAdjustmentAmount(boolean showUnitAdjustmentAmount) {
451            this.showUnitAdjustmentAmount = showUnitAdjustmentAmount;
452        }
453    
454        /**
455         * Gets the showSourceImport.
456         * 
457         * @return showSourceImport
458         */
459        public boolean isShowSourceImport() {
460            return showSourceImport;
461        }
462    
463        /**
464         * Sets the showSourceImport.
465         * 
466         * @param showSourceImport
467         */
468        public void setShowSourceImport(boolean showSourceImport) {
469            this.showSourceImport = showSourceImport;
470        }
471    
472        /**
473         * Gets the showTargetImport.
474         * 
475         * @return showTargetImport
476         */
477        public boolean isShowTargetImport() {
478            return showTargetImport;
479        }
480    
481        /**
482         * Sets the showTargetImport.
483         * 
484         * @param showTargetImport
485         */
486        public void setShowTargetImport(boolean showTargetImport) {
487            this.showTargetImport = showTargetImport;
488        }
489    
490        /**
491         * Gets the showSourceAdd attribute.
492         * 
493         * @return Returns the showSourceAdd.
494         */
495        public boolean isShowSourceAdd() {
496            return showSourceAdd;
497        }
498    
499        /**
500         * Sets the showSourceAdd attribute value.
501         * 
502         * @param showSourceAdd The showSourceAdd to set.
503         */
504        public void setShowSourceAdd(boolean showSourceAdd) {
505            this.showSourceAdd = showSourceAdd;
506        }
507    
508        /**
509         * Gets the showTargetAdd attribute.
510         * 
511         * @return Returns the showTargetAdd.
512         */
513        public boolean isShowTargetAdd() {
514            return showTargetAdd;
515        }
516    
517        /**
518         * Sets the showTargetAdd attribute value.
519         * 
520         * @param showTargetAdd The showTargetAdd to set.
521         */
522        public void setShowTargetAdd(boolean showTargetAdd) {
523            this.showTargetAdd = showTargetAdd;
524        }
525    
526        /**
527         * Gets the sourceKemidReadOnly attribute.
528         * 
529         * @return Returns the sourceKemidReadOnly.
530         */
531        public boolean isSourceKemidReadOnly() {
532            return sourceKemidReadOnly;
533        }
534    
535        /**
536         * Sets the sourceKemidReadOnly attribute value.
537         * 
538         * @param sourceKemidReadOnly The sourceKemidReadOnly to set.
539         */
540        public void setSourceKemidReadOnly(boolean sourceKemidReadOnly) {
541            this.sourceKemidReadOnly = sourceKemidReadOnly;
542        }
543    
544        /**
545         * Gets the targetKemidReadOnly attribute.
546         * 
547         * @return Returns the targetKemidReadOnly.
548         */
549        public boolean isTargetKemidReadOnly() {
550            return targetKemidReadOnly;
551        }
552    
553        /**
554         * Sets the targetKemidReadOnly attribute value.
555         * 
556         * @param targetKemidReadOnly The targetKemidReadOnly to set.
557         */
558        public void setTargetKemidReadOnly(boolean targetKemidReadOnly) {
559            this.targetKemidReadOnly = targetKemidReadOnly;
560        }
561    
562        /**
563         * Gets the targetIncomePrincipalIndicatorReadOnly attribute.
564         * 
565         * @return Returns the targetIncomePrincipalIndicatorReadOnly.
566         */
567        public boolean isTargetIncomePrincipalIndicatorReadOnly() {
568            return targetIncomePrincipalIndicatorReadOnly;
569        }
570    
571        /**
572         * Sets the targetIncomePrincipalIndicatorReadOnly attribute value.
573         * 
574         * @param targetIncomePrincipalIndicatorReadOnly The targetIncomePrincipalIndicatorReadOnly to set.
575         */
576        public void setTargetIncomePrincipalIndicatorReadOnly(boolean targetIncomePrincipalIndicatorReadOnly) {
577            this.targetIncomePrincipalIndicatorReadOnly = targetIncomePrincipalIndicatorReadOnly;
578        }
579    
580        /**
581         * Gets the sourceIncomePrincipalIndicatorReadOnly attribute.
582         * 
583         * @return Returns the sourceIncomePrincipalIndicatorReadOnly.
584         */
585        public boolean isSourceIncomePrincipalIndicatorReadOnly() {
586            return sourceIncomePrincipalIndicatorReadOnly;
587        }
588    
589        /**
590         * Sets the sourceIncomePrincipalIndicatorReadOnly attribute value.
591         * 
592         * @param sourceIncomePrincipalIndicatorReadOnly The sourceIncomePrincipalIndicatorReadOnly to set.
593         */
594        public void setSourceIncomePrincipalIndicatorReadOnly(boolean sourceIncomePrincipalIndicatorReadOnly) {
595            this.sourceIncomePrincipalIndicatorReadOnly = sourceIncomePrincipalIndicatorReadOnly;
596        }
597    
598        /**
599         * Gets the showSourceTransLines attribute.
600         * 
601         * @return Returns the showSourceTransLines.
602         */
603        public boolean isShowSourceTransLines() {
604            return showSourceTransLines;
605        }
606    
607        /**
608         * Sets the showSourceTransLines attribute value.
609         * 
610         * @param showSourceTransLines The showSourceTransLines to set.
611         */
612        public void setShowSourceTransLines(boolean showSourceTransLines) {
613            this.showSourceTransLines = showSourceTransLines;
614        }
615    
616        /**
617         * Gets the showTargetTransLines attribute.
618         * 
619         * @return Returns the showTargetTransLines.
620         */
621        public boolean isShowTargetTransLines() {
622            return showTargetTransLines;
623        }
624    
625        /**
626         * Sets the showTargetTransLines attribute value.
627         * 
628         * @param showTargetTransLines The showTargetTransLines to set.
629         */
630        public void setShowTargetTransLines(boolean showTargetTransLines) {
631            this.showTargetTransLines = showTargetTransLines;
632        }
633    
634        /**
635         * Gets the showSourceRefresh attribute.
636         * 
637         * @return Returns the showSourceRefresh.
638         */
639        public boolean isShowSourceRefresh() {
640            return showSourceRefresh;
641        }
642    
643        /**
644         * Sets the showSourceRefresh attribute value.
645         * 
646         * @param showSourceRefresh The showSourceRefresh to set.
647         */
648        public void setShowSourceRefresh(boolean showSourceRefresh) {
649            this.showSourceRefresh = showSourceRefresh;
650        }
651    
652        /**
653         * Gets the showTargetRefresh attribute.
654         * 
655         * @return Returns the showTargetRefresh.
656         */
657        public boolean isShowTargetRefresh() {
658            return showTargetRefresh;
659        }
660    
661        /**
662         * Sets the showTargetRefresh attribute value.
663         * 
664         * @param showTargetRefresh The showTargetRefresh to set.
665         */
666        public void setShowTargetRefresh(boolean showTargetRefresh) {
667            this.showTargetRefresh = showTargetRefresh;
668        }
669    
670        /**
671         * Gets the showSourceBalance attribute.
672         * 
673         * @return Returns the showSourceBalance.
674         */
675        public boolean isShowSourceBalance() {
676            return showSourceBalance;
677        }
678    
679        /**
680         * Sets the showSourceBalance attribute value.
681         * 
682         * @param showSourceBalance The showSourceBalance to set.
683         */
684        public void setShowSourceBalance(boolean showSourceBalance) {
685            this.showSourceBalance = showSourceBalance;
686        }
687    
688        /**
689         * Gets the showTargetBalance attribute.
690         * 
691         * @return Returns the showTargetBalance.
692         */
693        public boolean isShowTargetBalance() {
694            return showTargetBalance;
695        }
696    
697        /**
698         * Sets the showTargetBalance attribute value.
699         * 
700         * @param showTargetBalance The showTargetBalance to set.
701         */
702        public void setShowTargetBalance(boolean showTargetBalance) {
703            this.showTargetBalance = showTargetBalance;
704        }
705    
706        /**
707         * Gets the showSourceDelete attribute.
708         * 
709         * @return Returns the showSourceDelete.
710         */
711        public boolean isShowSourceDelete() {
712            return showSourceDelete;
713        }
714    
715        /**
716         * Sets the showSourceDelete attribute value.
717         * 
718         * @param showSourceDelete The showSourceDelete to set.
719         */
720        public void setShowSourceDelete(boolean showSourceDelete) {
721            this.showSourceDelete = showSourceDelete;
722        }
723    
724        /**
725         * Gets the showTargetDelete attribute.
726         * 
727         * @return Returns the showTargetDelete.
728         */
729        public boolean isShowTargetDelete() {
730            return showTargetDelete;
731        }
732    
733        /**
734         * Sets the showTargetDelete attribute value.
735         * 
736         * @param showTargetDelete The showTargetDelete to set.
737         */
738        public void setShowTargetDelete(boolean showTargetDelete) {
739            this.showTargetDelete = showTargetDelete;
740        }
741    
742        /**
743         * @return the URL to the accounting line import instructions
744         */
745        public String getTransactionLineImportInstructionsUrl() {
746            return SpringContext.getBean(KualiConfigurationService.class).getPropertyString(KFSConstants.EXTERNALIZABLE_HELP_URL_KEY) + SpringContext.getBean(ParameterService.class).getParameterValue(KfsParameterConstants.ENDOWMENT_DOCUMENT.class, EndowParameterKeyConstants.ENDOWMENT_TRANSACTION_LINE_IMPORT);
747        }
748    
749        /**
750         * Gets the transactionSourceLinesImportFile.
751         * 
752         * @return transactionSourceLinesImportFile
753         */
754        public FormFile getTransactionSourceLinesImportFile() {
755            return transactionSourceLinesImportFile;
756        }
757    
758        /**
759         * Sets the transactionSourceLinesImportFile.
760         * 
761         * @param transactionSourceLinesImportFile
762         */
763        public void setTransactionSourceLinesImportFile(FormFile transactionSourceLinesImportFile) {
764            this.transactionSourceLinesImportFile = transactionSourceLinesImportFile;
765        }
766        
767    }