Rifatti installers
aggiunto script 291 x processing packing lists git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@306 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -330,14 +330,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_Term"
|
||||
"ProductCode" = "8:{CCFA8747-6598-4A2D-8CE2-147C5F05DA5C}"
|
||||
"PackageCode" = "8:{4918A1A6-A703-4E70-B9DD-100E1E5F648A}"
|
||||
"ProductCode" = "8:{4E2352E2-8A1B-46A8-8E8A-A8B9EFF41B23}"
|
||||
"PackageCode" = "8:{7392B025-C522-42F0-AADE-8D8BF66DFB03}"
|
||||
"UpgradeCode" = "8:{B348C50D-8DAD-4430-AEF0-60800C94CB78}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.286"
|
||||
"ProductVersion" = "8:1.0.290"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
|
||||
Binary file not shown.
@@ -117,6 +117,9 @@
|
||||
<add key="BilanciaMP" value="MP"/>
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
|
||||
<!--Configurazioni ad hoc Ambivere-->
|
||||
<add key="Cosumo84PostDelibera" value="true"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
|
||||
+17
-20
@@ -463,15 +463,7 @@ namespace GMW_WS
|
||||
{ }
|
||||
}
|
||||
// creo nuovo cartellino!
|
||||
DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilanciaTrim, string.Format("{0:yy}", DateTime.Now), CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, "UDC_PESA", Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, false); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
|
||||
// se NON richiesto di generare movimento a magazzino crea rettifica in tab batch
|
||||
if (!toAS400)
|
||||
{
|
||||
DataProxy.obj.taCartellini.stp_rettMovAs400(ParticolareTrim, IdxPosizione.ToString(), Quantita);
|
||||
// !!!FARE!!! modificare x passare UDC, e poi rivedere il crea cart consumando x cui se parte da consumo 84 sarà un cartellino in realtà già nel -84, mettere in web.config
|
||||
//<!--Configurazioni ad hoc Ambivere-->
|
||||
//<add key="Cosumo84PostDelibera" value="true"/>
|
||||
}
|
||||
DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilanciaTrim, string.Format("{0:yy}", DateTime.Now), CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, "UDC_PESA", Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, false); // ATTENZIONE: "UDC_PESA" è "hard coded" nel db... !!!
|
||||
// leggo la riga
|
||||
try
|
||||
{
|
||||
@@ -481,6 +473,11 @@ namespace GMW_WS
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// se NON richiesto di generare movimento a magazzino crea rettifica in tab batch
|
||||
if (!toAS400)
|
||||
{
|
||||
DataProxy.obj.taCartellini.stp_rettMovAs400(ParticolareTrim, answ, IdxPosizione.ToString(), Quantita);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -556,11 +553,6 @@ namespace GMW_WS
|
||||
}
|
||||
// creo nuovo cartellino!
|
||||
DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilanciaTrim, string.Format("{0:yy}", DateTime.Now), CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, "UDC_FINITO", Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, false); // ATTENZIONE: "UDC_FINITO" è "hard coded" nel db... !!!
|
||||
// se NON richiesto di generare movimento a magazzino crea rettifica in tab batch
|
||||
if (!toAS400)
|
||||
{
|
||||
DataProxy.obj.taCartellini.stp_rettMovAs400(ParticolareTrim, IdxPosizione.ToString(), Quantita);
|
||||
}
|
||||
// leggo la riga
|
||||
try
|
||||
{
|
||||
@@ -568,6 +560,11 @@ namespace GMW_WS
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// se NON richiesto di generare movimento a magazzino crea rettifica in tab batch
|
||||
if (!toAS400)
|
||||
{
|
||||
DataProxy.obj.taCartellini.stp_rettMovAs400(ParticolareTrim, answ, IdxPosizione.ToString(), Quantita);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -643,11 +640,6 @@ namespace GMW_WS
|
||||
}
|
||||
// creo nuovo cartellino!
|
||||
DS_Applicazione.ElencoCartelliniDataTable tabUdc = DataProxy.obj.taCartellini.stp_insNewFull(CodCS, CodBilanciaTrim, string.Format("{0:yy}", DateTime.Now), CodClienteTrim, ParticolareTrim, CodImpiantoTrim, CodStampoTrim, EsponenteTrim, FiguraTrim, DataRif, TurnoRif, CodImballoTrim, CodSoggettoTrim, Tara, IdxPosizione, CodTipoDichiarazioneTrim, "UDC_WIP", Quantita, PesoTot, PesoCad, CodStatoTrim, UDC_ParentTrim, false); // ATTENZIONE: "UDC_WIP" è "hard coded" nel db... !!!
|
||||
// se NON richiesto di generare movimento a magazzino crea rettifica in tab batch
|
||||
if (!toAS400)
|
||||
{
|
||||
DataProxy.obj.taCartellini.stp_rettMovAs400(ParticolareTrim, IdxPosizione.ToString(), Quantita);
|
||||
}
|
||||
// leggo la riga
|
||||
try
|
||||
{
|
||||
@@ -657,6 +649,11 @@ namespace GMW_WS
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// se NON richiesto di generare movimento a magazzino crea rettifica in tab batch
|
||||
if (!toAS400)
|
||||
{
|
||||
DataProxy.obj.taCartellini.stp_rettMovAs400(ParticolareTrim, answ, IdxPosizione.ToString(), Quantita);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -697,7 +694,7 @@ namespace GMW_WS
|
||||
{
|
||||
// consuma il vecchio (parent) in magazzino... da 84 a -84...
|
||||
MagClass.magazzino.scaricaUdcMpWip(UDC_ParentTrim);
|
||||
// salvo associazioen parent-child tra UDC!
|
||||
// salvo associazione parent-child tra UDC!
|
||||
DataProxy.obj.taRelazUDC.Insert(UDC_ParentTrim, UDC_ChildTrim);
|
||||
answ = true;
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -36,6 +36,9 @@
|
||||
<add key="CodImballoMP" value="I0054"/>
|
||||
<add key="CodStatoMP" value="MP"/>
|
||||
|
||||
<!--Configurazioni ad hoc Ambivere-->
|
||||
<add key="Cosumo84PostDelibera" value="true"/>
|
||||
|
||||
<!--Setup codici postazioni-->
|
||||
<add key="IdxPosizMP" value="56"/>
|
||||
<add key="IdxPosNewFusi" value="80"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -345,7 +345,7 @@
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_WS"
|
||||
"ProductCode" = "8:{F532F1C4-AAED-48FB-AC7C-AC086DFD52DD}"
|
||||
"PackageCode" = "8:{FF9145E8-FDE7-44AD-A4E7-91E88D6CC510}"
|
||||
"PackageCode" = "8:{EFFC665B-E922-4CE0-A583-AE2DFAA50DB6}"
|
||||
"UpgradeCode" = "8:{BA470335-3D4B-4C20-8152-90A5F0F14FE0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
|
||||
Binary file not shown.
@@ -160,6 +160,7 @@
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<None Include="SqlScripts\GMW_00291.sql" />
|
||||
<None Include="SqlScripts\GMW_00290.sql" />
|
||||
<None Include="SqlScripts\GMW_00289.sql" />
|
||||
<None Include="SqlScripts\GMW_00288.sql" />
|
||||
|
||||
@@ -414,6 +414,232 @@ go
|
||||
|
||||
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
alter VIEW v_selDestinatariListePrelievo
|
||||
AS
|
||||
SELECT CAST('*' AS NVARCHAR(6)) AS value, CAST('*' AS NVARCHAR(50)) AS label, '01-PreFus' AS conditio
|
||||
UNION
|
||||
SELECT CAST(CodCliente AS NVARCHAR(6)) AS value, CAST(RagSociale AS NVARCHAR(50)) AS label, '02-PreCli' AS conditio
|
||||
FROM RilPro.AnagClienti
|
||||
UNION
|
||||
SELECT CAST(CodTerzista AS NVARCHAR(6)) AS value, CAST(DescTerzista AS NVARCHAR(50)) AS label, '03-TerWip' AS conditio
|
||||
FROM RilPro.AnagDepositi
|
||||
go
|
||||
|
||||
exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
||||
Begin DesignProperties =
|
||||
Begin PaneConfigurations =
|
||||
Begin PaneConfiguration = 0
|
||||
NumPanes = 4
|
||||
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
||||
End
|
||||
Begin PaneConfiguration = 1
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1 [50] 4 [25] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 2
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1 [50] 2 [25] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 3
|
||||
NumPanes = 3
|
||||
Configuration = "(H (4 [30] 2 [40] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 4
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1 [56] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 5
|
||||
NumPanes = 2
|
||||
Configuration = "(H (2 [66] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 6
|
||||
NumPanes = 2
|
||||
Configuration = "(H (4 [50] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 7
|
||||
NumPanes = 1
|
||||
Configuration = "(V (3))"
|
||||
End
|
||||
Begin PaneConfiguration = 8
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1[56] 4[18] 2) )"
|
||||
End
|
||||
Begin PaneConfiguration = 9
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1 [75] 4))"
|
||||
End
|
||||
Begin PaneConfiguration = 10
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1[66] 2) )"
|
||||
End
|
||||
Begin PaneConfiguration = 11
|
||||
NumPanes = 2
|
||||
Configuration = "(H (4 [60] 2))"
|
||||
End
|
||||
Begin PaneConfiguration = 12
|
||||
NumPanes = 1
|
||||
Configuration = "(H (1) )"
|
||||
End
|
||||
Begin PaneConfiguration = 13
|
||||
NumPanes = 1
|
||||
Configuration = "(V (4))"
|
||||
End
|
||||
Begin PaneConfiguration = 14
|
||||
NumPanes = 1
|
||||
Configuration = "(V (2))"
|
||||
End
|
||||
ActivePaneConfig = 0
|
||||
End
|
||||
Begin DiagramPane =
|
||||
Begin Origin =
|
||||
Top = 0
|
||||
Left = 0
|
||||
End
|
||||
Begin Tables =
|
||||
End
|
||||
End
|
||||
Begin SQLPane =
|
||||
End
|
||||
Begin DataPane =
|
||||
Begin ParameterDefaults = ""
|
||||
End
|
||||
Begin ColumnWidths = 9
|
||||
Width = 284
|
||||
Width = 1500
|
||||
Width = 3360
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
End
|
||||
End
|
||||
Begin CriteriaPane =
|
||||
Begin ColumnWidths = 11
|
||||
Column = 1440
|
||||
Alias = 900
|
||||
Table = 1170
|
||||
Output = 720
|
||||
Append = 1400
|
||||
NewValue = 1170
|
||||
SortType = 1350
|
||||
SortOrder = 1410
|
||||
GroupBy = 1350
|
||||
Filter = 1350
|
||||
Or = 1350
|
||||
Or = 1350
|
||||
Or = 1350
|
||||
End
|
||||
End
|
||||
End
|
||||
', 'SCHEMA', 'dbo', 'VIEW', 'v_selDestinatariListePrelievo'
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_rettMovAs400
|
||||
*
|
||||
* inserisce nella tabella per i trasferimenti batch verso magazzino AS una quantità di rettifica (con segno - )per UDC eventualmente già scaricati a sistema
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.11.02
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_rettMovAs400
|
||||
(
|
||||
@Particolare NVARCHAR(50),
|
||||
@UDC NVARCHAR(20),
|
||||
@CodMagAS NVARCHAR(50),
|
||||
@Qta DECIMAL(10,2)
|
||||
)
|
||||
AS
|
||||
|
||||
BEGIN
|
||||
|
||||
INSERT INTO AS400_BatchMovimenti(DataIns, CodEvento, Particolare, UDC, CodMagAS, Quantita)
|
||||
VALUES (GETDATE(), 'UDC_NOQTY', @Particolare, @UDC, @CodMagAS, -@Qta)
|
||||
|
||||
END
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_selDestListePrelByConditio
|
||||
*
|
||||
* Ottiene i destinatari delle liste di prelievo data la condizione indicata
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.11.02
|
||||
*
|
||||
****************************************/
|
||||
create PROCEDURE stp_selDestListePrelByConditio
|
||||
(
|
||||
@conditio NVARCHAR(20)
|
||||
)
|
||||
AS
|
||||
|
||||
IF (@conditio='01-PreFus')
|
||||
BEGIN
|
||||
SELECT CAST('*' AS NVARCHAR(6)) AS value, CAST('*' AS NVARCHAR(50)) AS label, '01-PreFus' AS conditio
|
||||
END
|
||||
|
||||
ELSE IF (@conditio='02-PreCli')
|
||||
BEGIN
|
||||
SELECT CAST(CodCliente AS NVARCHAR(6)) AS value, CAST(RagSociale AS NVARCHAR(50)) AS label, '02-PreCli' AS conditio
|
||||
FROM RilPro.AnagClienti
|
||||
ORDER BY label
|
||||
END
|
||||
|
||||
ELSE
|
||||
BEGIN
|
||||
SELECT CAST(CodTerzista AS NVARCHAR(6)) AS value, CAST(DescTerzista AS NVARCHAR(50)) AS label, '03-TerWip' AS conditio
|
||||
FROM RilPro.AnagDepositi
|
||||
ORDER BY label
|
||||
END
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,299 @@
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
alter table RigheListePrelievo_AS add
|
||||
DataBatch datetime
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_Description', 'dataora di caricamento batch verso AS', 'SCHEMA', 'dbo', 'TABLE', 'RigheListePrelievo_AS', 'COLUMN', 'DataBatch'
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/*****************************************
|
||||
* STORED stp_processaCodaMovimPackList
|
||||
*
|
||||
* Processa la coda delle packing list e chiama procedura x salvataggio dato su AS400
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.10.22
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE BatchQueue.stp_processaCodaMovimPackList
|
||||
AS
|
||||
|
||||
-- BOZZA DA VERIFICARE E COMPLETARE A CURA MAZZUCCONI!!!
|
||||
|
||||
-- campi x cursore e valorizzazione riga a riga
|
||||
DECLARE @IdxRiga INT
|
||||
DECLARE @CodLista NVARCHAR(12)
|
||||
DECLARE @CodListaPre NVARCHAR(12)
|
||||
DECLARE @CodStab CHAR(2)
|
||||
DECLARE @UDC NVARCHAR(15)
|
||||
DECLARE @Particolare NVARCHAR(15)
|
||||
DECLARE @CodImb NVARCHAR(15)
|
||||
DECLARE @Matr INT
|
||||
DECLARE @Tipo NVARCHAR(2)
|
||||
DECLARE @Dest NVARCHAR(10)
|
||||
DECLARE @Qta INT
|
||||
DECLARE @PesoNet NUMERIC(7,3)
|
||||
DECLARE @PesoLor NUMERIC(7,3)
|
||||
DECLARE @Stato CHAR(1)
|
||||
DECLARE @Data NVARCHAR(8)
|
||||
|
||||
DECLARE @ScritturaRigaOK AS INT -- Flag errore su riga ritornato da Stored che va su As400 0 = Ok
|
||||
SET @ScritturaRigaOK = 0;
|
||||
|
||||
DECLARE @ScritturaASOK AS INT -- Flag errore Packing generale su Stored che va su As400 0 = Ok
|
||||
SET @ScritturaASOK = 0;
|
||||
|
||||
-- qui è meglio usare una tabella temporanea o ancor meglio una variabile tabella x pochi
|
||||
-- record per non bloccare le tabelle sottostanti
|
||||
-- query con un cursore x processare tutte le righe di Packing che sono ancora da inviare ad AS400 ( DataBatch IS NULL )
|
||||
DECLARE RigaPackList CURSOR LOCAL FOR
|
||||
SELECT IdxRiga, CodLista FROM v_datiPackingList ORDER BY CodLista
|
||||
|
||||
-- setto il codice stabilimento da inviare ad AS... VERIFICARE!!!
|
||||
SET @CodStab = '05';
|
||||
|
||||
-- imposto prima codListaPre a vuoto...
|
||||
SET @CodListaPre = '';
|
||||
|
||||
-- inizio cursore caricando le righe
|
||||
OPEN RigaPackList
|
||||
FETCH NEXT FROM RigaPackList
|
||||
INTO @IdxRiga , @CodLista
|
||||
|
||||
SET @CodListaPre = @CodLista
|
||||
|
||||
WHILE @@FETCH_STATUS = 0
|
||||
BEGIN
|
||||
-- controllo ci sia almento una riga di Packing ( PER ME NON SERVE )
|
||||
IF (SELECT COUNT(IdxRiga) FROM v_datiPackingList WHERE IdxRiga = @IdxRiga) > 0
|
||||
BEGIN
|
||||
-- carico valori che mi servono
|
||||
SELECT @Particolare=pl.Particolare, @UDC=UDC, @CodImb=pl.CodImballo, @Matr = pl.matrUdc, @Tipo=pl.tipo, @Dest=pl.Destinatario,
|
||||
@Qta=ABS(pl.Qta), @PesoNet=pl.PesoNetto, @PesoLor=pl.PesoTot, @Stato=pl.Stato, @Data=dbo.dateToAsFormat(pl.data),
|
||||
@CodLista=pl.CodLista
|
||||
FROM v_datiPackingList pl
|
||||
WHERE IdxRiga = @IdxRiga
|
||||
|
||||
-- Eseguo la stored che registra la Packing List con le righe sue righe
|
||||
EXECUTE @ScritturaRigaOK = BatchQueue.stp_registraPackList @CodStab, @UDC, @Particolare , @CodImb , @Matr , @Tipo , @Dest , @Qta , @PesoNet , @PesoLor , @Stato , @Data
|
||||
|
||||
-- se scrittura riga è ok allora salvo sulla riga la data di invio... così poi non la rivedo tra quelle da processare...
|
||||
IF @ScritturaRigaOK = 0
|
||||
UPDATE RigheListePrelievo_AS SET DataBatch = GETDATE() WHERE IdxRiga = @IdxRiga;
|
||||
|
||||
|
||||
-- Se scrittura Riga Packing non ok metto Flag Packing list non Ok
|
||||
IF @ScritturaRigaOK <> 0 SET @ScritturaASOK = @ScritturaRigaOK
|
||||
|
||||
FETCH NEXT FROM RigaPackList
|
||||
INTO @IdxRiga , @CodLista
|
||||
|
||||
-- controllo: se la lista precedente è diversa dall'attuale la indico come scaricata (precedente)
|
||||
IF(@CodListaPre <> @CodLista)
|
||||
BEGIN
|
||||
-- ATTENZIONE!!! Qui è da controllare perchè lo faccio una sola volta per la
|
||||
-- lista e non per riga prelievo ... boh non so se ok ... se UDC già presente in As400 errore 7343
|
||||
IF @ScritturaASOK = 0
|
||||
UPDATE ElencoListePrelievo_AS SET DataBatch = GETDATE() WHERE CodLista = @CodListaPre;
|
||||
ELSE
|
||||
SET @ScritturaASOK = 0; -- resetto il flag di controllo
|
||||
|
||||
-- cambio il cod pre da confrontare
|
||||
SET @CodListaPre = @CodLista
|
||||
END
|
||||
END
|
||||
|
||||
END
|
||||
|
||||
-- Aggiorno anche l'ultima lista prelievo
|
||||
-- **** è corretto ??? se poi ricarico tutto il Packing list che succede???
|
||||
-- x gli UDC già in AS400 da errore 7343
|
||||
IF @ScritturaASOK = 0 -- OR @ScritturaASOK = 7343 ???
|
||||
UPDATE ElencoListePrelievo_AS SET DataBatch = GETDATE() WHERE CodLista = @CodLista
|
||||
-- registro la data del movimento BATCH dell'ultima lista processata
|
||||
|
||||
-- se c'è un errore mi rimane aperto il cursore? nn dovrebbe perchè LOCAL
|
||||
CLOSE RigaPackList
|
||||
DEALLOCATE RigaPackList
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
alter VIEW v_datiPackingList
|
||||
AS
|
||||
SELECT dbo.ElencoListePrelievo_AS.CodLista, dbo.RigheListePrelievo_AS.IdxRiga, dbo.ElencoCartellini.UDC, dbo.ElencoListePrelievo_AS.Particolare,
|
||||
dbo.ElencoCartellini.CodImballo, CAST(RIGHT(LTRIM(dbo.RigheListePrelievo_AS.UDC), 6) AS INT) AS matrUdc,
|
||||
CASE WHEN (dbo.ElencoListePrelievo_AS.CodTipoLista = '03-TerWip') THEN 'FO' ELSE 'CL' END AS tipo, dbo.ElencoListePrelievo_AS.Destinatario,
|
||||
dbo.ElencoCartellini.Qta, ROUND(dbo.ElencoCartellini.PesoTot - dbo.ElencoCartellini.Tara, 3) AS PesoNetto, ROUND(dbo.ElencoCartellini.PesoTot, 3) AS PesoTot,
|
||||
'P' AS Stato, GETDATE() AS data, dbo.RigheListePrelievo_AS.DataBatch
|
||||
FROM dbo.ElencoListePrelievo_AS INNER JOIN
|
||||
dbo.RigheListePrelievo_AS ON dbo.ElencoListePrelievo_AS.CodLista = dbo.RigheListePrelievo_AS.CodLista INNER JOIN
|
||||
dbo.ElencoCartellini ON dbo.RigheListePrelievo_AS.UDC = dbo.ElencoCartellini.UDC
|
||||
WHERE (dbo.RigheListePrelievo_AS.DataBatch IS NULL)
|
||||
go
|
||||
|
||||
exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
||||
Begin DesignProperties =
|
||||
Begin PaneConfigurations =
|
||||
Begin PaneConfiguration = 0
|
||||
NumPanes = 4
|
||||
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
||||
End
|
||||
Begin PaneConfiguration = 1
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1 [50] 4 [25] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 2
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1 [50] 2 [25] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 3
|
||||
NumPanes = 3
|
||||
Configuration = "(H (4 [30] 2 [40] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 4
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1 [56] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 5
|
||||
NumPanes = 2
|
||||
Configuration = "(H (2 [66] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 6
|
||||
NumPanes = 2
|
||||
Configuration = "(H (4 [50] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 7
|
||||
NumPanes = 1
|
||||
Configuration = "(V (3))"
|
||||
End
|
||||
Begin PaneConfiguration = 8
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1[56] 4[18] 2) )"
|
||||
End
|
||||
Begin PaneConfiguration = 9
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1 [75] 4))"
|
||||
End
|
||||
Begin PaneConfiguration = 10
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1[66] 2) )"
|
||||
End
|
||||
Begin PaneConfiguration = 11
|
||||
NumPanes = 2
|
||||
Configuration = "(H (4 [60] 2))"
|
||||
End
|
||||
Begin PaneConfiguration = 12
|
||||
NumPanes = 1
|
||||
Configuration = "(H (1) )"
|
||||
End
|
||||
Begin PaneConfiguration = 13
|
||||
NumPanes = 1
|
||||
Configuration = "(V (4))"
|
||||
End
|
||||
Begin PaneConfiguration = 14
|
||||
NumPanes = 1
|
||||
Configuration = "(V (2))"
|
||||
End
|
||||
ActivePaneConfig = 0
|
||||
End
|
||||
Begin DiagramPane =
|
||||
Begin Origin =
|
||||
Top = 0
|
||||
Left = 0
|
||||
End
|
||||
Begin Tables =
|
||||
Begin Table = "ElencoListePrelievo_AS"
|
||||
Begin Extent =
|
||||
Top = 6
|
||||
Left = 38
|
||||
Bottom = 367
|
||||
Right = 238
|
||||
End
|
||||
DisplayFlags = 280
|
||||
TopColumn = 0
|
||||
End
|
||||
Begin Table = "ElencoCartellini"
|
||||
Begin Extent =
|
||||
Top = 14
|
||||
Left = 658
|
||||
Bottom = 376
|
||||
Right = 828
|
||||
End
|
||||
DisplayFlags = 280
|
||||
TopColumn = 0
|
||||
End
|
||||
Begin Table = "RigheListePrelievo_AS"
|
||||
Begin Extent =
|
||||
Top = 5
|
||||
Left = 353
|
||||
Bottom = 200
|
||||
Right = 557
|
||||
End
|
||||
DisplayFlags = 280
|
||||
TopColumn = 0
|
||||
End
|
||||
End
|
||||
End
|
||||
Begin SQLPane =
|
||||
End
|
||||
Begin DataPane =
|
||||
Begin ParameterDefaults = ""
|
||||
End
|
||||
Begin ColumnWidths = 15
|
||||
Width = 284
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
End
|
||||
End
|
||||
Begin CriteriaPane =
|
||||
Begin ColumnWidths = 11
|
||||
Column = 1440
|
||||
Alias = 900
|
||||
Table = 1170
|
||||
Output = 720
|
||||
Append = 1400
|
||||
NewValue = 1170
|
||||
SortType = 1350
|
||||
SortOrder = 1410
|
||||
GroupBy = 1350
|
||||
Filter = 1350
|
||||
Or = 1350
|
||||
Or = 1350
|
||||
Or = 1350
|
||||
End
|
||||
End
|
||||
End
|
||||
', 'SCHEMA', 'dbo', 'VIEW', 'v_datiPackingList'
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(291, GETDATE())
|
||||
GO
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -54,6 +54,13 @@
|
||||
</WebConfigReplacementFiles>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets" />
|
||||
<!--Config Steamware-->
|
||||
<ItemGroup>
|
||||
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.txt" />
|
||||
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\logs\*.txt" />
|
||||
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\logs\*.zip" />
|
||||
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.pdb" />
|
||||
</ItemGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.WebDeployment.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -55,23 +55,6 @@ namespace GMW.WS
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
[System.Web.Services.WebMethod]
|
||||
public string[] elencoDestListePrel(string prefixText, int count)
|
||||
{
|
||||
// inizializzo risposta
|
||||
List<string> suggerimenti = new List<string>();
|
||||
// proseguo SOLO SE min "MinCharAutocomplete" char...
|
||||
if (count >= memLayer.ML.confReadInt("MinCharAutocomplete"))
|
||||
{
|
||||
// elenco candidati
|
||||
DS_Utility.v_selDestinatariListePrelievoDataTable tabella = utils.obj.taDestListePre.getBySearchLike(prefixText);
|
||||
// aggiungo ogni riga...
|
||||
foreach (DS_Utility.v_selDestinatariListePrelievoRow riga in tabella)
|
||||
{
|
||||
suggerimenti.Add(riga.Destinatario);
|
||||
}
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -349,14 +349,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{A6F41B4E-B884-4F5E-9EA6-1333CD7240D7}"
|
||||
"PackageCode" = "8:{B1CCCE9D-6F6B-424F-A143-8EF698011ED6}"
|
||||
"ProductCode" = "8:{90B2985F-ABC3-44EC-B2A5-DEFF4008F141}"
|
||||
"PackageCode" = "8:{B91F07D5-AD01-43EA-B198-0120A5D406BF}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.286"
|
||||
"ProductVersion" = "8:1.0.290"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
@@ -829,7 +829,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_4FD0E5B75A7F47B79080EC0983BE6583"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
@@ -857,7 +857,7 @@
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8BDD7AA9D46A46EC80880F83F13C902E"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
|
||||
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user