Fatti tutti i nuovi installers...

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@324 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-11-17 17:37:29 +00:00
parent be41973304
commit 80a874b17e
28 changed files with 156 additions and 5 deletions
@@ -5,7 +5,8 @@
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="CodLista,UDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnSorted="grView_Sorted" OnRowUpdating="grView_RowUpdating" OnRowEditing="grView_RowEditing">
OnSorted="grView_Sorted" OnRowUpdating="grView_RowUpdating"
OnRowEditing="grView_RowEditing" onrowcancelingedit="grView_RowCancelingEdit">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -94,7 +95,7 @@
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getByCodLista" TypeName="GMW_data.DS_magazzinoTableAdapters.v_righeListePrelievoPosizioneTableAdapter"
UpdateMethod="updateUDC" DeleteMethod="DeleteQuery"
onupdated="ods_Updated">
OnUpdated="ods_Updated">
<UpdateParameters>
<asp:Parameter Name="Original_CodLista" Type="String" />
<asp:Parameter Name="Original_UDC" Type="String" />
@@ -498,6 +498,19 @@ namespace GMW.WebUserControls
{ }
memLayer.ML.setSessionVal("UdcByPart_conditio", particolare);
}
/// <summary>
/// ridisegno x cancel editing
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
// sollevo evento nuovo valore...
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
}
#endregion
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.
Binary file not shown.
@@ -331,7 +331,7 @@
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:GMW_Term"
"ProductCode" = "8:{0002F6D7-B175-44CF-BBAB-48486502FF8E}"
"PackageCode" = "8:{30D9ECA7-F24B-49DF-B303-334CF7F6D4DD}"
"PackageCode" = "8:{4A2DF545-DF27-4C28-B9B1-332F564AB543}"
"UpgradeCode" = "8:{B348C50D-8DAD-4430-AEF0-60800C94CB78}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
@@ -810,7 +810,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_9C1BA08A590A44EC9515C0F91AD50A1D"
{
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A89965CB827F476CB8D496FFFC9653DF"
@@ -838,7 +838,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_B0271B832DBE45F0B50639E61DAE3CF4"
{
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_A89965CB827F476CB8D496FFFC9653DF"
+35
View File
@@ -1075,6 +1075,41 @@ namespace GMW_WS
return answ;
}
/// <summary>
/// Sposta un UDC da 88 a 84 (SENZA consumo immediato se da web.config)
/// </summary>
/// <param name="UDC_req">codice dell'UDC)</param>
/// <param name="CodSoggetto">codice dell'operatore</param>
/// <returns>restituisce true/false a seconda che sia riuscito a fare lo spostamento</returns>
[WebMethod(Description = "Sposta un UDC da 88 a 84 (SENZA consumo immediato se da web.config)")]
public bool UdcCall_rientroInOVAS(string UDC_req, string CodSoggetto)
{
// trim fix
string UDC_reqTrim = UDC_req.Trim();
string CodSoggettoTrim = CodSoggetto.Trim();
string CodCs = memLayer.ML.confReadString("CodCS");
int idxCellaTo = MagClass.magazzino.taCelle.getByCodMag(CodCs, "84")[0].IdxCella; // è la cella WIP del mag 84...
// init
bool answ = false;
// loggo tutto!
if (logLevel > 5)
{
try
{
logger.lg.scriviLog(string.Format("UdcCall_rientroInWip: {0} | {1}", UDC_reqTrim, CodSoggettoTrim), tipoLog.INFO);
}
catch
{ }
}
try
{
answ = MagClass.magazzino.spostaUDC(CodCs, UDC_reqTrim, idxCellaTo);
}
catch
{ }
return answ;
}
/// <summary>
/// Sposta un UDC da 88 a 54
/// </summary>
/// <param name="UDC_req">codice dell'UDC)</param>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+102
View File
@@ -340,6 +340,108 @@ commit
go
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_processaSpedizTerz
*
* effettua la spedizione verso i terzisti, se deliberati è ok così, se non deliberati restano in posizione 305 da deliberare
*
* Steamware, S.E.L.
* mod: 2010.11.17
*
****************************************/
create PROCEDURE stp_processaSpedizTerz
AS
-- UDC x cursore
DECLARE @UDC NVARCHAR(50) -- UDC SQL
-- evento da usare
DECLARE @CodEvento AS NVARCHAR(10)
SET @CodEvento = 'SpeWipTerz'
-- Dichiaro e carico il cursore
DECLARE Udc4Ter CURSOR LOCAL FOR
SELECT UDC FROM ElencoCartellini WHERE IdxPosizione IN (SELECT IdxPosizione FROM TabTranPosizEventi WHERE CodEvento = @CodEvento)
OPEN Udc4Ter
FETCH NEXT FROM Udc4Ter
INTO @UDC
WHILE @@FETCH_STATUS = 0
BEGIN
-- processo gli UDC...
UPDATE ElencoCartellini
SET IdxPosizione = ttpe.IdxPosizioneTo
FROM ElencoCartellini ec INNER JOIN TabTranPosizEventi ttpe ON ec.IdxPosizione=ttpe.IdxPosizione
WHERE ec.UDC = @UDC AND ttpe.CodEvento = @CodEvento
FETCH NEXT FROM Udc4Ter INTO @UDC
END
CLOSE Udc4Ter
DEALLOCATE Udc4Ter
RETURN
go
commit
go
set xact_abort on
go
begin transaction
go
DELETE FROM dbo.TabTranPosizEventi WHERE CodEvento=N'SpeWipNoDe' and IdxPosizione=290
DELETE FROM dbo.TabTranPosizEventi WHERE CodEvento=N'SpeWipOkDe' and IdxPosizione=295
go
commit transaction
go
set xact_abort on
go
begin transaction
go
INSERT INTO dbo.AnagTipoEvento
VALUES (N'SpeWipTerz', N'Spedizione di materiale a terzisti')
DELETE FROM dbo.AnagTipoEvento WHERE CodEvento=N'SpeWipNoDe'
DELETE FROM dbo.AnagTipoEvento WHERE CodEvento=N'SpeWipOkDe'
go
commit transaction
go
set xact_abort on
go
begin transaction
go
INSERT INTO dbo.TabTranPosizEventi
VALUES (N'SpeWipTerz', 290, 305)
INSERT INTO dbo.TabTranPosizEventi
VALUES (N'SpeWipTerz', 295, 300)
go
commit transaction
go
-- registro versione...
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.