◆ onBack()
void org.turro.erp.time.TimeControlComposer.onBack |
( |
| ) |
|
◆ onCancelSelect()
void org.turro.erp.time.TimeControlComposer.onCancelSelect |
( |
| ) |
|
◆ onChange()
void org.turro.erp.time.TimeControlComposer.onChange |
( |
Event |
evt | ) |
|
Definition at line 78 of file TimeControlComposer.java.
79 Object obj = evt.getData();
80 if(obj instanceof TimeControl) {
81 TimeControl tc = (TimeControl) obj;
82 TimeControlUtil tcu =
new TimeControlUtil();
84 tabHr.setSelected(
true);
85 }
else if(obj instanceof Workload) {
86 Workload wl = (Workload) obj;
87 TimeControlUtil tcu =
new TimeControlUtil();
88 tcu.setHumanResource(selected);
89 tcu.setTask(wl.getTask());
91 tabHr.setSelected(
true);
◆ onExport()
void org.turro.erp.time.TimeControlComposer.onExport |
( |
| ) |
|
Definition at line 111 of file TimeControlComposer.java.
112 Dao dao =
new ErpPU();
113 List<HumanResource> list = dao.getResultList(
114 "select hr from HumanResource as hr where hr.active = true order by hr.name");
115 Application app = Application.getApplication();
116 XMLHumanResourceSet xhrs =
new XMLHumanResourceSet(app.getConstructor());
118 for(HumanResource hr : list) {
119 XMLHumanResource xhr =
new XMLHumanResource();
120 xhr.setId(hr.getId());
121 xhr.setName(hr.getName());
124 File file =
new File(ElephantContext.getRealPath(XMLHumanResourceSet.XML_HUMANRESOURCE));
125 FileUtil.getFolderFile(file).mkdirs();
126 xhrs.saveCollection();
128 Filedownload.save(file,
"text/xml");
129 }
catch (FileNotFoundException ex) {
130 Logger.getLogger(TimeControlComposer.class.getName()).log(Level.SEVERE,
null, ex);
◆ onHumanResourceSelect()
void org.turro.erp.time.TimeControlComposer.onHumanResourceSelect |
( |
Event |
evt | ) |
|
Definition at line 67 of file TimeControlComposer.java.
68 selected = (HumanResource) evt.getData();
69 if(selected !=
null) {
71 info.getChildren().clear();
72 info.appendChild(
new Label(selected.
getName()));
73 tabTask.setSelected(
true);
void setHumanResource(HumanResource humanResource)
◆ onNext()
void org.turro.erp.time.TimeControlComposer.onNext |
( |
| ) |
|
Definition at line 149 of file TimeControlComposer.java.
150 currDate =
new CheckDate(currDate).addDays(1).getDate();
151 currDay.setValue(DateFormats.format(currDate,
true));
◆ onPrevious()
void org.turro.erp.time.TimeControlComposer.onPrevious |
( |
| ) |
|
Definition at line 142 of file TimeControlComposer.java.
143 currDate =
new CheckDate(currDate).addDays(-1).getDate();
144 currDay.setValue(DateFormats.format(currDate,
true));
◆ onReport()
void org.turro.erp.time.TimeControlComposer.onReport |
( |
| ) |
|
Definition at line 135 of file TimeControlComposer.java.
136 tabReport.setSelected(
true);
137 currDay.setValue(DateFormats.format(currDate,
true));
◆ onStart()
void org.turro.erp.time.TimeControlComposer.onStart |
( |
| ) |
|
Definition at line 96 of file TimeControlComposer.java.
97 if(selected !=
null) {
98 TimeControlUtil tcu =
new TimeControlUtil();
99 tcu.setHumanResource(selected);
101 tabHr.setSelected(
true);
The documentation for this class was generated from the following file: