OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 180 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 180 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 115... Line 115...
115
            }
115
            }
116
        }, true);
116
        }, true);
117
        actionNewContrat.setPredicate(IListeEvent.getSingleSelectionPredicate());
117
        actionNewContrat.setPredicate(IListeEvent.getSingleSelectionPredicate());
118
        this.getRowActions().add(actionNewContrat);
118
        this.getRowActions().add(actionNewContrat);
119
 
119
 
-
 
120
        PredicateRowAction actionVarEdit = new PredicateRowAction(new AbstractAction("Editer les variables de période") {
-
 
121
 
-
 
122
            @Override
-
 
123
            public void actionPerformed(ActionEvent e) {
-
 
124
 
-
 
125
                final SQLRowAccessor rowSelected = IListe.get(e).getSelectedRow();
-
 
126
                final SQLElement infosPayeElement = getDirectory().getElement("VARIABLE_SALARIE");
-
 
127
                EditFrame f = new EditFrame(infosPayeElement, EditMode.MODIFICATION);
-
 
128
                final Integer rowVar = rowSelected.asRow().getForeignID("ID_VARIABLE_SALARIE");
-
 
129
                f.getSQLComponent().select(rowVar);
-
 
130
                FrameUtil.show(f);
-
 
131
            }
-
 
132
        }, true);
-
 
133
        actionVarEdit.setPredicate(IListeEvent.getSingleSelectionPredicate());
-
 
134
        this.getRowActions().add(actionVarEdit);
-
 
135
 
120
    }
136
    }
121
 
137
 
122
    protected List<String> getListFields() {
138
    protected List<String> getListFields() {
123
        final List<String> l = new ArrayList<String>();
139
        final List<String> l = new ArrayList<String>();
124
        l.add("CODE");
140
        l.add("CODE");
Line 215... Line 231...
215
                final ElementComboBox comboUser = new ElementComboBox(false, 50);
231
                final ElementComboBox comboUser = new ElementComboBox(false, 50);
216
                c.gridx = 0;
232
                c.gridx = 0;
217
                c.gridy++;
233
                c.gridy++;
218
                this.add(labelUser, c);
234
                this.add(labelUser, c);
219
                c.gridx++;
235
                c.gridx++;
220
                c.weightx = 0;
236
                c.weightx = 1;
221
                c.fill = GridBagConstraints.NONE;
237
                c.fill = GridBagConstraints.NONE;
222
                this.add(comboUser, c);
238
                this.add(comboUser, c);
223
                this.addView(comboUser, "ID_USER_COMMON");
239
                this.addView(comboUser, "ID_USER_COMMON");
224
 
240
 
225
                /***********************************************************************************
241
                /***********************************************************************************