Line 11... |
Line 11... |
11 |
* When distributing the software, include this License Header Notice in each file.
|
11 |
* When distributing the software, include this License Header Notice in each file.
|
12 |
*/
|
12 |
*/
|
13 |
|
13 |
|
14 |
package org.openconcerto.erp.core.humanresources.payroll.element;
|
14 |
package org.openconcerto.erp.core.humanresources.payroll.element;
|
15 |
|
15 |
|
- |
|
16 |
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
|
16 |
import org.openconcerto.erp.core.common.ui.SQLJavaEditor;
|
17 |
import org.openconcerto.erp.core.common.ui.SQLJavaEditor;
|
17 |
import org.openconcerto.erp.core.humanresources.payroll.component.FormuleTreeNode;
|
18 |
import org.openconcerto.erp.core.humanresources.payroll.component.FormuleTreeNode;
|
18 |
import org.openconcerto.erp.core.humanresources.payroll.component.RubriqueSQLComponent;
|
19 |
import org.openconcerto.erp.core.humanresources.payroll.component.RubriqueSQLComponent;
|
19 |
import org.openconcerto.erp.core.humanresources.payroll.component.VariableTree;
|
20 |
import org.openconcerto.erp.core.humanresources.payroll.component.VariableTree;
|
20 |
import org.openconcerto.erp.core.humanresources.payroll.report.LignePayeSimplifieeComboBox;
|
21 |
import org.openconcerto.erp.core.humanresources.payroll.report.LignePayeSimplifieeComboBox;
|
21 |
import org.openconcerto.erp.core.humanresources.payroll.report.LignePayeSimplifieeRowItemView;
|
22 |
import org.openconcerto.erp.core.humanresources.payroll.report.LignePayeSimplifieeRowItemView;
|
22 |
import org.openconcerto.erp.core.humanresources.payroll.report.LigneSimplifieeCellRenderer;
|
23 |
import org.openconcerto.erp.core.humanresources.payroll.report.LigneSimplifieeCellRenderer;
|
23 |
import org.openconcerto.sql.element.ConfSQLElement;
|
- |
|
24 |
import org.openconcerto.sql.element.ElementSQLObject;
|
24 |
import org.openconcerto.sql.element.ElementSQLObject;
|
25 |
import org.openconcerto.sql.element.SQLComponent;
|
25 |
import org.openconcerto.sql.element.SQLComponent;
|
26 |
import org.openconcerto.sql.element.SQLElement;
|
26 |
import org.openconcerto.sql.element.SQLElement;
|
- |
|
27 |
import org.openconcerto.sql.model.DBRoot;
|
27 |
import org.openconcerto.sql.sqlobject.ElementComboBox;
|
28 |
import org.openconcerto.sql.sqlobject.ElementComboBox;
|
- |
|
29 |
import org.openconcerto.sql.sqlobject.SQLRequestComboBox;
|
28 |
import org.openconcerto.sql.view.list.SQLTableModelSource;
|
30 |
import org.openconcerto.sql.view.list.SQLTableModelSource;
|
29 |
import org.openconcerto.ui.DefaultGridBagConstraints;
|
31 |
import org.openconcerto.ui.DefaultGridBagConstraints;
|
30 |
import org.openconcerto.utils.ListMap;
|
32 |
import org.openconcerto.utils.ListMap;
|
31 |
import org.openconcerto.utils.NoneSelectedButtonGroup;
|
33 |
import org.openconcerto.utils.NoneSelectedButtonGroup;
|
32 |
|
34 |
|
Line 53... |
Line 55... |
53 |
import javax.swing.SwingConstants;
|
55 |
import javax.swing.SwingConstants;
|
54 |
import javax.swing.tree.TreePath;
|
56 |
import javax.swing.tree.TreePath;
|
55 |
|
57 |
|
56 |
// FIXME bug Layout
|
58 |
// FIXME bug Layout
|
57 |
|
59 |
|
58 |
public class RubriqueCotisationSQLElement extends ConfSQLElement {
|
60 |
public class RubriqueCotisationSQLElement extends ComptaSQLConfElement {
|
59 |
|
61 |
|
60 |
public RubriqueCotisationSQLElement() {
|
62 |
public RubriqueCotisationSQLElement(final DBRoot root) {
|
61 |
super("RUBRIQUE_COTISATION", "une rubrique de cotisation", "rubriques de cotisation");
|
63 |
super(root.getTable("RUBRIQUE_COTISATION"), "une rubrique de cotisation", "rubriques de cotisation");
|
62 |
}
|
64 |
}
|
63 |
|
65 |
|
64 |
@Override
|
66 |
@Override
|
65 |
protected synchronized void _initTableSource(SQLTableModelSource res) {
|
67 |
protected synchronized void _initTableSource(SQLTableModelSource res) {
|
66 |
res.init();
|
68 |
res.init();
|
Line 235... |
Line 237... |
235 |
cPanel.gridy++;
|
237 |
cPanel.gridy++;
|
236 |
cPanel.gridx = 1;
|
238 |
cPanel.gridx = 1;
|
237 |
cPanel.weightx = 0;
|
239 |
cPanel.weightx = 0;
|
238 |
panelProp.add(labelSelTypeImpression, cPanel);
|
240 |
panelProp.add(labelSelTypeImpression, cPanel);
|
239 |
|
241 |
|
240 |
ElementComboBox comboSelTypeImpression = new ElementComboBox(false);
|
242 |
SQLRequestComboBox comboSelTypeImpression = new SQLRequestComboBox(false);
|
241 |
cPanel.gridx++;
|
243 |
cPanel.gridx++;
|
242 |
cPanel.weightx = 1;
|
244 |
cPanel.weightx = 1;
|
243 |
panelProp.add(comboSelTypeImpression, cPanel);
|
245 |
panelProp.add(comboSelTypeImpression, cPanel);
|
244 |
|
246 |
|
245 |
// Ligne simplifiée
|
247 |
// Ligne simplifiée
|