-- genero calcolo x valori ordinali ATTUALI
exec util.stp_setupOrdinal_SCFM
SELECT ROW_NUMBER() OVER(PARTITION BY CodFam ORDER BY  CodScheda, Vers) AS Riga, *
FROM SchemaCollFamMacc

exec util.stp_setupOrdinal_SCM
SELECT ROW_NUMBER() OVER(PARTITION BY IdxDossier ORDER BY  CodScheda, Vers, NumScheda) AS Riga, *
FROM SchemaCollMacc


exec util.stp_setupOrdinal_Mis
SELECT ROW_NUMBER() OVER(PARTITION BY IdxDossier, Fase ORDER BY  CodScheda, Vers, NumScheda, CodMisura) AS Riga, *
FROM Misure

/******************************************************
* FARE!!!!
* 
* - verifica di modifiche x procedure insert x SCFM, SCM, Misure
* - verifica di modifiche x procedure update x SCFM, SCM, Misure
* - modifica interfaccia x effettuare spostamenti ordine x SCFM e SCM (mis CREDO di no)
* - testare funzionamento pagine SCFM, SCM (Dossier), Misure (Collaudi)
*
******************************************************/




-- update vocabolario
exec voc.stp_insNewLemma 'btnClonaConfFamMacch',	'Merge da Famiglia Esistente'
