| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package edu.sampleu.travel.web.form; |
| 17 |
|
|
| 18 |
|
import javax.servlet.http.HttpServletRequest; |
| 19 |
|
|
| 20 |
|
import org.apache.struts.action.ActionMapping; |
| 21 |
|
import org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase; |
| 22 |
|
import org.kuali.rice.kns.web.ui.HeaderField; |
| 23 |
|
import org.kuali.rice.kns.workflow.service.KualiWorkflowDocument; |
| 24 |
|
|
| 25 |
|
import edu.sampleu.travel.bo.TravelAccount; |
| 26 |
|
import edu.sampleu.travel.document.TravelDocument2; |
| 27 |
|
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 5 |
Complexity Density: 0.38 |
|
| 28 |
|
public class TravelDocumentForm2 extends KualiTransactionalDocumentFormBase { |
| 29 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
| 30 |
0
|
@Override... |
| 31 |
|
public void populateHeaderFields(KualiWorkflowDocument workflowDocument) { |
| 32 |
0
|
getDocInfo().clear(); |
| 33 |
0
|
getDocInfo().addAll(getStandardHeaderFields(workflowDocument)); |
| 34 |
0
|
getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!")); |
| 35 |
0
|
getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!")); |
| 36 |
0
|
getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!")); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
private TravelAccount travelAccount = new TravelAccount(); |
| 40 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 41 |
0
|
public TravelDocumentForm2() {... |
| 42 |
0
|
super(); |
| 43 |
0
|
this.setDocument(new TravelDocument2()); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
@param |
| 50 |
|
@param |
| 51 |
|
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 52 |
0
|
public void reset(ActionMapping mapping, HttpServletRequest request) {... |
| 53 |
0
|
this.setMethodToCall(null); |
| 54 |
0
|
this.setRefreshCaller(null); |
| 55 |
0
|
this.setAnchor(null); |
| 56 |
0
|
this.setCurrentTabIndex(0); |
| 57 |
|
} |
| 58 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
0
|
public TravelAccount getTravelAccount() {... |
| 60 |
0
|
return travelAccount; |
| 61 |
|
} |
| 62 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 63 |
0
|
public void setTravelAccount(TravelAccount travelAccount) {... |
| 64 |
0
|
this.travelAccount = travelAccount; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
} |