Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
etudiants:2014:bertrand:scrumtool6 [2014/06/03 00:33] – jordi | etudiants:2014:bertrand:scrumtool6 [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
Cette fonctionnalité permet d' | Cette fonctionnalité permet d' | ||
- | ===== 1 - Fonctionnalités | + | ==== 1 - Fonctionnalités ==== |
Acteur : Administrateur | Acteur : Administrateur | ||
Ligne 13: | Ligne 13: | ||
{{ : | {{ : | ||
- | ===== 2 - Vues ===== | + | ==== 2 - Vues ==== |
{{ : | {{ : | ||
Ligne 19: | Ligne 19: | ||
{{ : | {{ : | ||
- | ===== 3 - Contrôleurs | + | ==== 3 - Contrôleurs ==== |
- | ==== 3.1 CeditCollaboratorsProduct - Add collaborator==== | + | === 3.1 CeditCollaboratorsProduct - Add collaborator=== |
+ | <sxh php; | ||
+ | view.getBtnEditCollaborator().addSelectionListener(new SelectionListener() { | ||
+ | |||
+ | @Override | ||
+ | public void widgetSelected(SelectionEvent arg0) { | ||
+ | |||
+ | if (view.getBtnEditCollaborator().getText() == " | ||
+ | // Code remove collaborator | ||
+ | } else { | ||
+ | PlayroleId id = new PlayroleId(collaboratorActif.getId(), | ||
+ | Playrole pl = new Playrole(id, | ||
+ | |||
+ | DAO.addPlayrole(pl); | ||
+ | |||
+ | view.getTableRoleCollaborators().setEnabled(false); | ||
+ | view.getBtnEditCollaborator().setEnabled(false); | ||
+ | view.getTableViewerAddCollaborators().remove(collaboratorActif); | ||
+ | view.getTableViewerRemoveCollaborator().add(pl); | ||
+ | |||
+ | Utils.MsgBox(view.getShell(), | ||
+ | } | ||
+ | |||
+ | } | ||
+ | }); | ||
+ | </ | ||
+ | |||
+ | === 3.2 CeditCollaboratorsProduct - Remove collaborator === | ||
+ | |||
+ | <sxh php; | ||
+ | view.getBtnEditCollaborator().addSelectionListener(new SelectionListener() { | ||
+ | |||
+ | @Override | ||
+ | public void widgetSelected(SelectionEvent arg0) { | ||
+ | |||
+ | if (view.getBtnEditCollaborator().getText() == " | ||
+ | Collaborator col = new Collaborator(playroleActif.getCollaborator().getId(), | ||
+ | |||
+ | DAO.delPlayrole(playroleActif); | ||
+ | |||
+ | view.getSashForm_1().setWeights(new int[] { 1, 0 }); | ||
+ | view.getTableViewerRemoveCollaborator().remove(playroleActif); | ||
+ | view.getTableViewerAddCollaborators().add(col); | ||
+ | view.getBtnEditCollaborator().setEnabled(false); | ||
+ | view.getBtnEditRole().setEnabled(false); | ||
+ | |||
+ | Utils.MsgBox(view.getShell(), | ||
+ | } else { | ||
+ | // Code add collaborator | ||
+ | } | ||
+ | |||
+ | } | ||
+ | }); | ||
+ | </ | ||
+ | |||
+ | === 3.3 - CeditCollaboratorsProduct - Edit role === | ||
+ | |||
+ | <sxh php; | ||
+ | view.getBtnSaveEditRole().addSelectionListener(new SelectionListener() { | ||
+ | |||
+ | @Override | ||
+ | public void widgetSelected(SelectionEvent arg0) { | ||
+ | |||
+ | PlayroleId id = new PlayroleId(playroleActif.getCollaborator().getId(), | ||
+ | Playrole pl = new Playrole(id, | ||
+ | |||
+ | DAO.delPlayrole(playroleActif); | ||
+ | DAO.addPlayrole(pl); | ||
+ | |||
+ | view.getSashForm_1().setWeights(new int[] { 1, 0 }); | ||
+ | view.getBtnEditRole().setEnabled(false); | ||
+ | view.getBtnEditCollaborator().setEnabled(false); | ||
+ | view.getTableViewerRemoveCollaborator().remove(playroleActif); | ||
+ | view.getTableViewerRemoveCollaborator().add(pl); | ||
+ | |||
+ | Utils.MsgBox(view.getShell(), | ||
+ | } | ||
+ | }); | ||
+ | </ |