TransPort_Tracking
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.bestray.transtracking.controller;
import com.bestray.transtracking.exceptions.TransTrackException;
import com.bestray.transtracking.service.CodeService;
import com.bestray.transtracking.service.TaskService;
import com.bestray.transtracking.service.impl.CodeServiceImpl;
import com.bestray.transtracking.service.impl.TaskServiceImpl;
import com.bestray.transtracking.views.TaskMaster;
import com.bestray.trastrack.domain.Code;
import com.bestray.trastrack.domain.Task;
import java.util.List;
import java.util.Vector;
/**
*
* @author User1
*/
public class TaskController {
private TaskMaster taskMaster;
private TaskService taskService;
public static final String TASK_MAINTENANCE_CATAGORY = "MAINTENANCE_CATAGORY";
public static final String TASK_JOB_BASIS = "BASIS_TYPE";
private CodeService codeService ;
public TaskController(){
taskService = new TaskServiceImpl();
codeService = new CodeServiceImpl();
}
public boolean AddNewTask(Task task){
return taskService.registerTask(task);
}
public Vector<Code> getCodeList1() {
Vector codes = new Vector();
List<Code> codeList = codeService.getCodesByCodeTypeName(TASK_MAINTENANCE_CATAGORY);
for(Code code:codeList){
codes.addElement(code);
}
return codes;
}
public Vector<Code> getCodeList2() {
Vector codes = new Vector();
List<Code> codeList = codeService.getCodesByCodeTypeName(TASK_JOB_BASIS);
for(Code code:codeList){
codes.addElement(code);
}
return codes;
}
public Vector<Vector<String>> getTaskList(){
return taskService.getTaskList();
}
public Task getTaskRegistrationDetails(Long valueOf) {
return taskService.getTaskRegistrationDetails(valueOf);
}
public void deleteTask(Long taskId) {
taskService.deleteTask(taskId);
}
public Vector<Vector<String>> getAllTaskList() throws TransTrackException{
return taskService.findAllTasksList();
}
}
|
Revision |
Author |
Commited |
Message |
1
|
girijabapi
|
Sat 28 Jul, 2018 05:29:14 +0000 |
|