Fix possibilità deroga misure collaudo a utenti abilitati
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,7 +28,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server"> <%--EnablePartialRendering="false"--%>
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
||||
<%--EnablePartialRendering="false"--%>
|
||||
<Scripts>
|
||||
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
|
||||
<%--Framework Scripts--%>
|
||||
@@ -103,7 +104,7 @@
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<asp:Image ID="ProgressBar" ImageUrl="~/images/loader.gif" runat="server" />
|
||||
<i class="fa fa-cog fa-spin fa-2x"></i> <i class="fa fa-cog fa-spin fa-2x"></i> <i class="fa fa-cog fa-spin fa-2x"></i>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<asp:Image ID="ProgressBar" ImageUrl="~/images/loader.gif" runat="server" />
|
||||
<i class="fa fa-cog fa-spin fa-2x"></i> <i class="fa fa-cog fa-spin fa-2x"></i> <i class="fa fa-cog fa-spin fa-2x"></i>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
<add key="autoEnrollEnabled" value="false" />
|
||||
<add key="SuperAdminRole" value="SuperAdmin" />
|
||||
<add key="CapoOfficinaRole" value="CapoOfficina" />
|
||||
<add key="CapoGruppo" value="CapoOfficina" />
|
||||
<add key="AnagAdminRole" value="CqSetSC" />
|
||||
<!--gestione auth dispositivi-->
|
||||
<add key="AuthCookieName" value="AuthDeviceCMS_SC" />
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getDataFilt" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.MisureTableAdapter" FilterExpression=" CodSchedaVersNum LIKE '%{0}%' OR CodMisura LIKE '%{0}%' OR NomeMisura LIKE '%{0}%' OR NomePar LIKE '%{0}%' OR CodDeroga LIKE '%{0}%' " UpdateMethod="updateMis" OnUpdating="ods_Updating">
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getDataFilt" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.MisureTableAdapter" FilterExpression=" CodSchedaVersNum LIKE '%{0}%' OR CodMisura LIKE '%{0}%' OR NomeMisura LIKE '%{0}%' OR NomePar LIKE '%{0}%' " UpdateMethod="updateMis" OnUpdating="ods_Updating">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
|
||||
</FilterParameters>
|
||||
|
||||
@@ -114,9 +114,26 @@ namespace CMS_SC.WebUserControls
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = true;
|
||||
|
||||
return answ;
|
||||
return (userIsCapoOfficina || userIsCapoGruppo);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se utente sia SuperUser
|
||||
/// </summary>
|
||||
public bool userIsCapoOfficina
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoOfficinaRole"));
|
||||
}
|
||||
} /// <summary>
|
||||
/// verifica se utente sia SuperUser
|
||||
/// </summary>
|
||||
public bool userIsCapoGruppo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoGruppo"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
@@ -433,6 +433,15 @@ namespace CMS_SC.WebUserControls
|
||||
{
|
||||
return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoOfficinaRole"));
|
||||
}
|
||||
} /// <summary>
|
||||
/// verifica se utente sia SuperUser
|
||||
/// </summary>
|
||||
public bool userIsCapoGruppo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.stObj.userHasRight(memLayer.ML.CRS("CapoGruppo"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se utente sia SuperUser
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -32,6 +32,7 @@
|
||||
<add key="autoEnrollEnabled" value="false" />
|
||||
<add key="SuperAdminRole" value="SuperAdmin" />
|
||||
<add key="CapoOfficinaRole" value="CapoOfficina" />
|
||||
<add key="CapoGruppo" value="CapoOfficina" />
|
||||
<add key="AnagAdminRole" value="CqSetSC" />
|
||||
<!--gestione auth dispositivi-->
|
||||
<add key="AuthCookieName" value="AuthDeviceCMS_SC" />
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user