BrightSide Workbench Full Report + Source Code
org.turro.erp.task.logic.TaskWrapper Class Reference
Inheritance diagram for org.turro.erp.task.logic.TaskWrapper:
Collaboration diagram for org.turro.erp.task.logic.TaskWrapper:

Public Member Functions

 TaskWrapper (Task entity)
 
String getTabLabel ()
 
String getSelfLabel ()
 
boolean canDelete ()
 
- Public Member Functions inherited from org.turro.erp.task.TaskWrapper
Task save ()
 
IIssue getIssue ()
 
- Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
 DaoEntity ()
 
 DaoEntity (Class< T > persistentClass)
 
 DaoEntity (T entity)
 
Dao getDao ()
 
getEntity ()
 
IElephantEntity getIee ()
 
find (ID id)
 
boolean delete ()
 
ID getId ()
 
List< String > getMessages ()
 
boolean canSave ()
 
boolean equals (Object obj)
 
int hashCode ()
 

Static Public Member Functions

static void createTask (Task task, PredecessorType type)
 
static void createTask (WorkOrder workOrder)
 
static void createTask (OrderReference orderReference)
 
- Static Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
static Object getEntityId (Object entity)
 
static boolean isNewId (Object id)
 

Protected Member Functions

void logEntity (LogType logType, String path, String action, String data)
 
- Protected Member Functions inherited from org.turro.erp.task.TaskWrapper
Dao createDao ()
 
boolean shouldLog ()
 
- Protected Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
void logEntity (SystemLogType logType, Object entity, String action, String data)
 
String dataEntity (Object entity)
 
void initOperation ()
 
void addMessage (String message)
 

Additional Inherited Members

- Protected Attributes inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
entity
 
ID id
 
List< String > messages = new ArrayList<>()
 

Detailed Description

Constructor & Destructor Documentation

◆ TaskWrapper()

org.turro.erp.task.logic.TaskWrapper.TaskWrapper ( Task  entity)

Member Function Documentation

◆ canDelete()

boolean org.turro.erp.task.logic.TaskWrapper.canDelete ( )

Reimplemented from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >.

Definition at line 48 of file bserp-www/src/main/java/org/turro/erp/task/logic/TaskWrapper.java.

48  {
49  if(entity.getId() == 0) return false;
50 // Dao dao = getDao();
51 // Long count = (Long) dao.getSingleResult(
52 // "select count(*) from Document " +
53 // "where contract = ?",
54 // new Object[] { contract });
55 // if(count == 0) {
56 // count = (Long) dao.getSingleResult(
57 // "select count(*) from DocumentLine " +
58 // "where store = ?",
59 // new Object[] { contract });
60 // }
61 // return count == 0;
62  return true;
63  }

◆ createTask() [1/3]

static void org.turro.erp.task.logic.TaskWrapper.createTask ( OrderReference  orderReference)
static

Definition at line 96 of file bserp-www/src/main/java/org/turro/erp/task/logic/TaskWrapper.java.

96  {
97  if(orderReference == null) {
98  return;
99  }
100  Task t = new Task();
102  t.setOrderReference(orderReference);
104  HashMap<String, Object> map = new HashMap<String, Object>();
105  map.put("task", t);
106  ErpMenu.showModalZulFile("lNewTask", "/WEB-INF/_zul/erp/task/newTask.zul", map, null);
107  }
Here is the call graph for this function:

◆ createTask() [2/3]

static void org.turro.erp.task.logic.TaskWrapper.createTask ( Task  task,
PredecessorType  type 
)
static

Definition at line 70 of file bserp-www/src/main/java/org/turro/erp/task/logic/TaskWrapper.java.

70  {
71  if(task == null || type == null) {
72  return;
73  }
74  Task t = new Task();
78  Predecessor predecessor = new Predecessor();
79  predecessor.setLag(0);
80  predecessor.setPredecessor(task);
81  predecessor.setTask(t);
82  predecessor.setType(type);
83  t.getPredecessors().add(predecessor);
84  HashMap<String, Object> map = new HashMap<String, Object>();
85  map.put("task", t);
86  ErpMenu.showModalZulFile("lNewTask", "/WEB-INF/_zul/erp/task/newTask.zul", map, null);
87  }
void setType(PredecessorType type)
void setPredecessor(Task predecessor)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createTask() [3/3]

static void org.turro.erp.task.logic.TaskWrapper.createTask ( WorkOrder  workOrder)
static

Definition at line 89 of file bserp-www/src/main/java/org/turro/erp/task/logic/TaskWrapper.java.

89  {
90  if(workOrder == null) {
91  return;
92  }
93  createTask(findOrderReference(workOrder));
94  }
Here is the call graph for this function:

◆ getSelfLabel()

String org.turro.erp.task.logic.TaskWrapper.getSelfLabel ( )

Definition at line 43 of file bserp-www/src/main/java/org/turro/erp/task/logic/TaskWrapper.java.

43  {
44  return Application.getString("lTask");
45  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabLabel()

String org.turro.erp.task.logic.TaskWrapper.getTabLabel ( )

Definition at line 39 of file bserp-www/src/main/java/org/turro/erp/task/logic/TaskWrapper.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ logEntity()

void org.turro.erp.task.logic.TaskWrapper.logEntity ( LogType  logType,
String  path,
String  action,
String  data 
)
protected

Definition at line 66 of file bserp-www/src/main/java/org/turro/erp/task/logic/TaskWrapper.java.

66  {
67  Authentication.log(logType, path, action, data);
68  }

The documentation for this class was generated from the following file: