OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 140 Rev 147
Line 1... Line 1...
1
package org.openconcerto.modules.customerrelationship.lead;
1
package org.openconcerto.modules.customerrelationship.lead;
2
 
2
 
3
import org.openconcerto.sql.users.UserManager;
3
import org.openconcerto.sql.users.UserManager;
4
import org.openconcerto.sql.users.rights.UserRights;
4
import org.openconcerto.sql.users.rights.UserRights;
-
 
5
import org.openconcerto.sql.users.rights.UserRightsManager;
5
import org.openconcerto.ui.group.Group;
6
import org.openconcerto.ui.group.Group;
6
import org.openconcerto.ui.group.LayoutHints;
7
import org.openconcerto.ui.group.LayoutHints;
7
 
8
 
8
public class LeadGroup extends Group {
9
public class LeadGroup extends Group {
9
 
10
 
Line 46... Line 47...
46
        gState.addItem("RATING");
47
        gState.addItem("RATING");
47
        gState.addItem("SOURCE");
48
        gState.addItem("SOURCE");
48
        gState.addItem("STATUS");
49
        gState.addItem("STATUS");
49
        gState.addItem("ID_COMMERCIAL");
50
        gState.addItem("ID_COMMERCIAL");
50
        gState.addItem("REMIND_DATE");
51
        gState.addItem("REMIND_DATE");
51
        UserRights rights = UserManager.getInstance().getCurrentUser().getRights();
52
        UserRights rights = UserRightsManager.getCurrentUserRights();
52
        if (rights.haveRight("CLIENT_PROSPECT")) {
53
        if (rights.haveRight("CLIENT_PROSPECT")) {
53
            gState.addItem("ID_CLIENT");
54
            gState.addItem("ID_CLIENT");
54
        }
55
        }
55
        gState.addItem("DISPO");
56
        gState.addItem("DISPO");
56
        
57