ok progetti e commesse x controllo accessi in modifica dati

This commit is contained in:
Samuele Locatelli
2013-09-13 12:52:04 +02:00
parent be097a86d3
commit 57c9a69a12
3 changed files with 51 additions and 16 deletions
@@ -167,6 +167,53 @@ commit transaction
go
set xact_abort on
go
begin transaction
go
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Andrea Fuselli', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Carlo Piazzalunga', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Daniele Togni', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Enrico Facchinetti', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Gianpietro Locatelli', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Luca Begnis', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Luca Bentoglio', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Marco Bergami', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Matteo Cugini', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Nino Romano', N'PROJ-ETS', N'User', N'')
INSERT INTO dbo.Diritti
(UtenteAD, codModulo, codFunzione, valore)
VALUES (N'ETS\Paolo Beretta', N'PROJ-ETS', N'User', N'')
DELETE FROM dbo.Diritti WHERE UtenteAD=N'ETS\SQLService' and codModulo=N'PROJ-ETS' and codFunzione=N'User'
DELETE FROM dbo.Diritti WHERE UtenteAD=N'STEAMWAREWIN\samuele' and codModulo=N'PROJ-ETS' and codFunzione=N'User'
go
commit transaction
go
@@ -319,19 +319,8 @@ namespace PROJ_ETS.WebUserControls
/// <returns></returns>
public bool delEnabled(object idxObj)
{
bool answ = isWritable();
// solo se ha diritti scrittura controllo
if (answ)
{
// la cancellazione è SEMPRE logica, x cui controllo che si veda solo se è attivo...
try
{
answ = DataProxy_ProjEts.DP.taAF.getByIdx(Convert.ToInt32(idxObj))[0].Attivo;
}
catch
{ }
}
return answ;
// mi basta sia scrivibile (la query decide se cancellare o disattivare progetto...)
return isWritable();
}
/// <summary>
/// calcola classe css dato codice fase
@@ -564,12 +553,12 @@ namespace PROJ_ETS.WebUserControls
/// <returns></returns>
public bool isWritable()
{
bool answ = true;
bool answ = false;
if (_paginaCorrente == null)
{
PagCorrente();
}
//answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente);
answ = user_std.UtSn.isPageWriteEnabled(_paginaCorrente);
return answ;
}
/// <summary>
@@ -752,6 +741,5 @@ namespace PROJ_ETS.WebUserControls
#endregion
}
}
Binary file not shown.