개정판 a597e7cf
issue #0000
ID2 Admin, Manager 만 project, user 등록/수정 가능하도록 수정
user or 삼설user 는 불가
Change-Id: I4352f4a427ccf9f8c4effd4344d27a11c07a2cb0
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
33 | 33 |
public partial class Main : RadRibbonForm |
34 | 34 |
{ |
35 | 35 |
readonly Informations informations = Informations.Instance; |
36 |
bool IsID2Manager = false; |
|
36 | 37 |
List<MarkupText> Markups = new List<MarkupText>(); |
37 | 38 |
List<Documents> documents = new List<Documents>(); |
38 | 39 |
List<Documents> orgDocuments = null; |
... | ... | |
210 | 211 |
this.ID2ManagerRadRibbonBar.Expanded = false; |
211 | 212 |
|
212 | 213 |
this.radLabelElementUser.Text = $"{informations.ActiveUser.ID} {informations.ActiveUser.Name}"; |
213 |
|
|
214 |
if ((new string[] { "Manager", "User" }).Contains(informations.ActiveUser.Role) && string.IsNullOrEmpty(informations.ActiveUser.RefProjectID)) |
|
214 |
|
|
215 |
this.IsID2Manager = (new string[] { "Admin", "Manager" }).Contains(informations.ActiveUser.Role) && string.IsNullOrEmpty(informations.ActiveUser.RefProjectID); |
|
216 |
|
|
217 |
if (this.IsID2Manager) |
|
215 | 218 |
{ |
216 | 219 |
this.backstageViewPageOpenProject.Controls[0].Visible = true; |
217 | 220 |
this.backstageTabItemOpenProject.Visibility = ElementVisibility.Visible; |
... | ... | |
219 | 222 |
} |
220 | 223 |
else |
221 | 224 |
{ |
222 |
foreach(Control ctrl in this.backstageViewPageOpenProject.Controls) |
|
225 |
if (string.IsNullOrEmpty(informations.ActiveUser.RefProjectID)) |
|
226 |
{ |
|
227 |
this.backstageViewPageOpenProject.Controls[0].Visible = true; |
|
228 |
} |
|
229 |
else |
|
223 | 230 |
{ |
224 |
ctrl.Visible = false; |
|
231 |
foreach (Control ctrl in this.backstageViewPageOpenProject.Controls) |
|
232 |
{ |
|
233 |
ctrl.Visible = false; |
|
234 |
} |
|
225 | 235 |
} |
226 | 236 |
this.backstageTabItemOpenProject.Visibility = ElementVisibility.Collapsed; |
227 | 237 |
this.backstageButtonItemUserRegistration.Visibility = ElementVisibility.Collapsed; |
내보내기 Unified diff