36 lines
1.2 KiB
SQL
36 lines
1.2 KiB
SQL
/*************************************
|
|
* STORED PROCEDURE sp_updateInterventoFull
|
|
* aggiorna TUTTI i dati dell'intervento
|
|
*
|
|
* modif.: S.E.L. - 2009.02.20
|
|
**************************************/
|
|
CREATE PROCEDURE sp_updateInterventoFull
|
|
(
|
|
@Original_numIntMtz INT,
|
|
@idxStato INT,
|
|
@inizioIntervento DATETIME,
|
|
@fineIntervento DATETIME,
|
|
@isPreventivabile BIT,
|
|
@descrizioneIntervento NVARCHAR(2500),
|
|
@matr NVARCHAR(50),
|
|
@guasto DATETIME,
|
|
@isFermo BIT,
|
|
@idxImpianto INT,
|
|
@idxMacchina INT,
|
|
@idxAmbito INT,
|
|
@idxPriorita INT,
|
|
@descrizione NVARCHAR(2500),
|
|
@idxTipo INT,
|
|
@idxCausale int,
|
|
@presaInCarico DATETIME
|
|
)
|
|
AS
|
|
|
|
UPDATE InterventiMtz
|
|
SET inizioIntervento = @inizioIntervento, fineIntervento = @fineIntervento, descrizioneIntervento = @descrizioneIntervento, isPreventivabile = @isPreventivabile,
|
|
idxStato = @idxStato, matr = @matr, guasto = @guasto, idxAmbito = @idxAmbito, idxPriorita = @idxPriorita, isFermo = @isFermo, idxTipo = @idxTipo,
|
|
idxImpianto = @idxImpianto, idxMacchina = @idxMacchina, descrizione = @descrizione, presaInCarico = @presaInCarico, idxCausale = @idxCausale
|
|
WHERE (numIntMtz = @Original_numIntMtz)
|
|
|
|
RETURN
|