diff --git a/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll b/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll index f9c3b6b..5504090 100644 Binary files a/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll and b/CMS-SC-Data/bin/Debug/CMS-SC-Data.dll differ diff --git a/CMS-SC-Data/bin/Debug/SteamWare.dll b/CMS-SC-Data/bin/Debug/SteamWare.dll index 2d90de5..a64fc54 100644 Binary files a/CMS-SC-Data/bin/Debug/SteamWare.dll and b/CMS-SC-Data/bin/Debug/SteamWare.dll differ diff --git a/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll b/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll index f9c3b6b..5504090 100644 Binary files a/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll and b/CMS-SC-Data/obj/Debug/CMS-SC-Data.dll differ diff --git a/CMS_SC/WebUserControls/mod_DettScheda.ascx b/CMS_SC/WebUserControls/mod_DettScheda.ascx index 9849f6c..91cde42 100644 --- a/CMS_SC/WebUserControls/mod_DettScheda.ascx +++ b/CMS_SC/WebUserControls/mod_DettScheda.ascx @@ -56,7 +56,7 @@   - + diff --git a/CMS_SC/WebUserControls/mod_DettScheda.ascx.cs b/CMS_SC/WebUserControls/mod_DettScheda.ascx.cs index 8b6c4f5..982ee61 100644 --- a/CMS_SC/WebUserControls/mod_DettScheda.ascx.cs +++ b/CMS_SC/WebUserControls/mod_DettScheda.ascx.cs @@ -163,7 +163,7 @@ namespace CMS_SC.WebUserControls SteamWare.memLayer.ML.emptySessionVal("nextObjCommand"); } // SE c'era comando eseguo move... - if(_comando!="") + if (_comando != "") { DtProxy.man.taDS.moveUpDown(_comando, CodSchedaSel, VersSel, CodMisuraSel); grView.DataBind(); @@ -208,5 +208,26 @@ namespace CMS_SC.WebUserControls } return answ; } + + /// + /// determina visibilità delete (solo se è ultima misura) + /// + /// direzione: UP / DOWN + /// CodMisura da verificare + /// + public bool delEnabled(object _CodMisura) + { + bool answ = false; + string CodMisura = _CodMisura.ToString(); + if (memLayer.ML.QSS("CodSchedaVers") != "") + { + // recupero TUTTE le righe della scheda dett corrente + DS_Applicazione.DettSchedaDataTable tab = DtProxy.man.taDS.getByScheda(memLayer.ML.QSS("CodSchedaVers")); + // a seconda della direzione CERCO se ci siano misure prima/dopo... + string where = string.Format("CodMisura > '{0}'", CodMisura); + answ = tab.Select(where).Length == 0; + } + return answ; + } } } \ No newline at end of file diff --git a/CMS_SC/bin/CMS-SC-Data.dll b/CMS_SC/bin/CMS-SC-Data.dll index f9c3b6b..5504090 100644 Binary files a/CMS_SC/bin/CMS-SC-Data.dll and b/CMS_SC/bin/CMS-SC-Data.dll differ diff --git a/CMS_SC/bin/CMS_SC.dll b/CMS_SC/bin/CMS_SC.dll index 080561b..5f4f252 100644 Binary files a/CMS_SC/bin/CMS_SC.dll and b/CMS_SC/bin/CMS_SC.dll differ diff --git a/CMS_SC/bin/SteamWare.dll b/CMS_SC/bin/SteamWare.dll index 2d90de5..a64fc54 100644 Binary files a/CMS_SC/bin/SteamWare.dll and b/CMS_SC/bin/SteamWare.dll differ