update installers vers 230 x fix problemi e funzioni di jump da ricerca x terminalino
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@236 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
+14
-12
@@ -7,14 +7,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWare", "..\SteamWare\S
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GMW_data", "GMW_data\GMW_data.csproj", "{47143721-A018-4BDA-B544-EC3E10BC87A2}"
|
||||
EndProject
|
||||
Project("{2CFEAB61-6A3B-4EB8-B523-560B4BEEF521}") = "GMW_deploy", "GMW_deploy\GMW_deploy.wdproj", "{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}"
|
||||
EndProject
|
||||
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "GMW_installer", "GMW_installer\GMW_installer.vdproj", "{E5FC0485-009D-44F9-B05C-E0C8146AA9A3}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SetDirPerm", "..\SetDirectoryPermission\SetDirPerm.csproj", "{FB6006EA-4630-4ECB-82E4-FAC0866789D9}"
|
||||
EndProject
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "IISConsoleVB", "..\IISCustomActionVB\IISConsoleVB\IISConsoleVB.vbproj", "{67AF6121-D250-44E3-9C4E-0FC36599AAE4}"
|
||||
EndProject
|
||||
Project("{2CFEAB61-6A3B-4EB8-B523-560B4BEEF521}") = "GMW_deploy", "GMW_deploy\GMW_deploy.wdproj", "{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -59,16 +59,6 @@ Global
|
||||
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Installer|Any CPU.Build.0 = Release|Any CPU
|
||||
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{47143721-A018-4BDA-B544-EC3E10BC87A2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Deploy|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Deploy|Any CPU.Build.0 = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Installer_Offline|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Installer_Offline|Any CPU.Build.0 = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Installer_test|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Installer_test|Any CPU.Build.0 = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Installer|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Installer|Any CPU.Build.0 = Release|Any CPU
|
||||
{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E5FC0485-009D-44F9-B05C-E0C8146AA9A3}.Debug|Any CPU.ActiveCfg = Debug
|
||||
{E5FC0485-009D-44F9-B05C-E0C8146AA9A3}.Deploy|Any CPU.ActiveCfg = Release
|
||||
{E5FC0485-009D-44F9-B05C-E0C8146AA9A3}.Installer_Offline|Any CPU.ActiveCfg = Release
|
||||
@@ -90,6 +80,18 @@ Global
|
||||
{67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Installer|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Installer|Any CPU.Build.0 = Release|Any CPU
|
||||
{67AF6121-D250-44E3-9C4E-0FC36599AAE4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Deploy|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Deploy|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer_Offline|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer_Offline|Any CPU.Build.0 = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer_test|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer_test|Any CPU.Build.0 = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Installer|Any CPU.Build.0 = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0" />
|
||||
<add key="minRev" value="225"/>
|
||||
<add key="minRev" value="235"/>
|
||||
<add key="copyRight" value="SteamWare © 2010" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<table id="Table7" cellspacing="1" cellpadding="1" width="100%" border="0">
|
||||
<tr>
|
||||
<td class="UnauthAppTitle">
|
||||
<asp:Label runat="server" ID="lblTitle" Text='<%# traduci("GruppoMM") %>'></asp:Label>
|
||||
<asp:Label runat="server" ID="lblTitleMain" Text="Gruppo MM"></asp:Label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -12,6 +12,15 @@
|
||||
|
||||
public partial class mod_unauthorized {
|
||||
|
||||
/// <summary>
|
||||
/// lblTitleMain control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblTitleMain;
|
||||
|
||||
/// <summary>
|
||||
/// lblTitle control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@
|
||||
<add key="appName" value="GMW"/>
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minRev" value="225"/>
|
||||
<add key="minRev" value="235"/>
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,33 +15,39 @@ namespace GMW_Term
|
||||
mod_barcode1.eh_scannedParticolare += new EventHandler(mod_barcode1_eh_scannedParticolare);
|
||||
mod_barcode1.eh_scannedUdc += new EventHandler(mod_barcode1_eh_scannedUdc);
|
||||
mod_barcode1.eh_scannedUser += new EventHandler(mod_barcode1_eh_scannedUser);
|
||||
mod_barcode1.eh_scannedCella += new EventHandler(mod_barcode1_eh_scannedCella);
|
||||
mod_barcode1.eh_resetUser += new EventHandler(mod_barcode1_eh_resetUser);
|
||||
}
|
||||
|
||||
void mod_barcode1_eh_scannedCella(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/Cella.aspx");
|
||||
}
|
||||
|
||||
void mod_barcode1_eh_resetUser(object sender, EventArgs e)
|
||||
{
|
||||
TermUtils.TU.forceLogOut();
|
||||
Response.Redirect("Barcode.aspx");
|
||||
Response.Redirect("~/Barcode.aspx");
|
||||
}
|
||||
|
||||
void mod_barcode1_eh_scannedUser(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("Home.aspx");
|
||||
Response.Redirect("~/Home.aspx");
|
||||
}
|
||||
|
||||
void mod_barcode1_eh_scannedUdc(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("UDC.aspx");
|
||||
Response.Redirect("~/UDC.aspx");
|
||||
}
|
||||
|
||||
void mod_barcode1_eh_scannedParticolare(object sender, EventArgs e)
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
Response.Redirect("~/Particolare.aspx");
|
||||
}
|
||||
|
||||
void mod_barcode1_eh_scannedListaPrelievo(object sender, EventArgs e)
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
Response.Redirect("~/ListePrelievo.aspx");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<add key="appName" value="GMW_Term" />
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0" />
|
||||
<add key="minRev" value="230" />
|
||||
<add key="minRev" value="235" />
|
||||
<add key="copyRight" value="SteamWare © 2010" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace GMW_Term.WebUserControls
|
||||
public event EventHandler eh_scannedUdc;
|
||||
public event EventHandler eh_scannedListaPrelievo;
|
||||
public event EventHandler eh_scannedParticolare;
|
||||
public event EventHandler eh_scannedCella;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -109,8 +110,10 @@ namespace GMW_Term.WebUserControls
|
||||
verificaUdc();
|
||||
break;
|
||||
case tipoCodiceBarcode.Particolare:
|
||||
lblData.Text = traduci("Particular Code") + ": " + txtScansione;
|
||||
txtInput.Text = "";
|
||||
verificaParticolare();
|
||||
break;
|
||||
case tipoCodiceBarcode.Cella:
|
||||
verificaCella();
|
||||
break;
|
||||
default:
|
||||
lblData.Text = traduci("Code Not Recognized") + ": " + txtScansione;
|
||||
@@ -135,8 +138,13 @@ namespace GMW_Term.WebUserControls
|
||||
GMW_data.MagClass.magazzino.iniziaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), txtScansione, MagClass.magazzino.CodSoggCurrUser);
|
||||
// salvo in sessione che voglio mostrare il dettaglio della lista appena presa in carico
|
||||
memLayer.ML.setSessionVal("showDetListaPre", true, false);
|
||||
// mando alla pagina liste di prelievo
|
||||
Response.Redirect("~/ListePrelievo.aspx");
|
||||
|
||||
//// mando alla pagina liste di prelievo
|
||||
//Response.Redirect("~/ListePrelievo.aspx");
|
||||
if (eh_scannedListaPrelievo != null)
|
||||
{
|
||||
eh_scannedListaPrelievo(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -151,8 +159,13 @@ namespace GMW_Term.WebUserControls
|
||||
{
|
||||
// salvo in sessione che voglio mostrare il dettaglio della lista appena presa in carico
|
||||
memLayer.ML.setSessionVal("showDetListaPre", true, false);
|
||||
// mando alla pagina liste di prelievo
|
||||
Response.Redirect("~/ListePrelievo.aspx");
|
||||
|
||||
//// mando alla pagina liste di prelievo
|
||||
//Response.Redirect("~/ListePrelievo.aspx");
|
||||
if (eh_scannedListaPrelievo != null)
|
||||
{
|
||||
eh_scannedListaPrelievo(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -181,10 +194,57 @@ namespace GMW_Term.WebUserControls
|
||||
}
|
||||
else
|
||||
{
|
||||
lblData.Text = string.Format(traduci("UDC Code Invalid") + ": " + "{0}", valoreScan);
|
||||
lblData.Text = string.Format(traduci("UDCCodeInvalid") + ": " + "{0}", valoreScan);
|
||||
txtScansione = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica validità cella
|
||||
/// </summary>
|
||||
private void verificaCella()
|
||||
{
|
||||
// controllo cod cella se sia valido (==esistente)
|
||||
bool barcodeOk = MagClass.magazzino.checkCella(valoreScan);
|
||||
if (barcodeOk)
|
||||
{
|
||||
// salvo in session UDC selezionato
|
||||
memLayer.ML.setSessionVal("IdxCella_sel", txtScansione);
|
||||
memLayer.ML.setSessionVal("activeTask", string.Format("Cella: {0}", memLayer.ML.StringSessionObj("scannedValue")));
|
||||
if (eh_scannedCella != null)
|
||||
{
|
||||
eh_scannedCella(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblData.Text = string.Format(traduci("CellaCodeInvalid") + ": " + "{0}", valoreScan);
|
||||
txtScansione = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica validità particolare
|
||||
/// </summary>
|
||||
private void verificaParticolare()
|
||||
{
|
||||
// controllo se sia valido il particolare (==esistente)
|
||||
bool barcodeOk = MagClass.magazzino.checkParticolare(memLayer.ML.StringSessionObj("CodCS"), valoreScan);
|
||||
if (barcodeOk)
|
||||
{
|
||||
// salvo in session UDC selezionato
|
||||
memLayer.ML.setSessionVal("Particolare_sel", txtScansione);
|
||||
memLayer.ML.setSessionVal("activeTask", string.Format("Particolare: {0}", memLayer.ML.StringSessionObj("scannedValue")));
|
||||
if (eh_scannedParticolare != null)
|
||||
{
|
||||
eh_scannedParticolare(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblData.Text = string.Format(traduci("PartCodeInvalid") + ": " + "{0}", valoreScan);
|
||||
txtScansione = "";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua le chiamate per la login
|
||||
/// </summary>
|
||||
|
||||
@@ -1,6 +1,67 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execCella.ascx.cs"
|
||||
Inherits="GMW_Term.WebUserControls.mod_execCella" %>
|
||||
<div>
|
||||
W.I.P.
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<div id="contenuto" style="text-align: center;">
|
||||
<div id="Div1">
|
||||
<asp:Button ID="btnLoginPage" runat="server" OnClick="btnLoginPage_Click" Width="100px"
|
||||
Font-Size="Smaller" />
|
||||
<asp:Button ID="btnButtonsHome" runat="server" OnClick="btnButtonsHome_Click" Width="100px"
|
||||
Font-Size="Smaller" />
|
||||
</div>
|
||||
<div id="smallGrid">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
Width="100%" DataKeyNames="UDC" DataSourceID="ods" OnRowUpdating="grView_RowUpdating">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPagerWide" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<%--<asp:TemplateField HeaderText="Tipo" SortExpression="Tipo">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton runat="server" ID="imgCodTipo" ImageUrl='<%# pathImgTipo(Eval("Tipo")) %>'
|
||||
CausesValidation="False" CommandArgument='<%# Eval("Tipo") %>' OnClick="imgAzioneLista_Click"
|
||||
CommandName="Update" ToolTip='<%# tooltipTipo(Eval("Tipo")) %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<asp:TemplateField HeaderText="IdxBlocco" SortExpression="IdxBlocco">
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
</b>
|
||||
<div style="font-size: x-small;">
|
||||
<asp:Label ID="lblCodCella" runat="server" Text='<%# Eval("CodCella") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="label" SortExpression="label">
|
||||
<ItemTemplate>
|
||||
<b>
|
||||
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</b> -
|
||||
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta") %>' />
|
||||
<div style="font-size: x-small;">
|
||||
<asp:Label ID="lblDescStato" runat="server" Text='<%# Eval("DescStato") %>' />-
|
||||
<asp:Label ID="lblEsponente" runat="server" Text='<%# Eval("Esponente") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getUdcDetailByIdxCella" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="IdxCella" SessionField="IdxCella_sel" Type="Int32" DefaultValue="0" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/WIP.png" />
|
||||
@@ -1,17 +1,360 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Data;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW_Term.WebUserControls
|
||||
{
|
||||
public partial class mod_execCella : System.Web.UI.UserControl
|
||||
{
|
||||
#region area da NON modificare
|
||||
|
||||
#region area protected
|
||||
|
||||
protected string _idxGridView;
|
||||
protected string _idxGridViewExt;
|
||||
protected string _tabCache;
|
||||
protected bool _showNewBtn = false;
|
||||
|
||||
/// <summary>
|
||||
/// wrapper traduzione termini
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// recupera i dati di un nuovo record contenuti nel footer di un gridView;
|
||||
/// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
//recupero la riga footer...
|
||||
DataColumnCollection colonne = colonneObj();
|
||||
string nomeCol;
|
||||
string tipoColonna = "";
|
||||
foreach (DataColumn colonna in colonne)
|
||||
{
|
||||
nomeCol = colonna.ColumnName;
|
||||
// cerco un textbox o quello che sia...
|
||||
if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "textBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "dropDownList";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "checkBox";
|
||||
}
|
||||
else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
|
||||
{
|
||||
tipoColonna = "selAjax";
|
||||
}
|
||||
// in base al tipo salvo negli inputparameters dell'ODS
|
||||
switch (tipoColonna)
|
||||
{
|
||||
case "textBox":
|
||||
e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
|
||||
break;
|
||||
case "dropDownList":
|
||||
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
|
||||
break;
|
||||
case "checkBox":
|
||||
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
tipoColonna = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inserisce nuovo valore da footer
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lblIns_click(object sender, EventArgs e)
|
||||
{
|
||||
// click su inserimento, chiamo il metodo insert dell'ObjectDataSource
|
||||
ods.Insert();
|
||||
SteamWare.memLayer.ML.emptyCacheVal(_tabCache);
|
||||
}
|
||||
/// <summary>
|
||||
/// annulla inserimento nuovo valore da footer
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lblCanc_click(object sender, EventArgs e)
|
||||
{
|
||||
// annullo inserimento: nascondo footer, bind controlli...
|
||||
grView.FooterRow.Visible = false;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// gestione evento richeista nuovo valore (mostra footer, ...)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
// reset selezione...
|
||||
resetSelezione();
|
||||
// mostro il footer oppure la riga dei dettagli x nuovo...
|
||||
if (grView.FooterRow != null)
|
||||
{
|
||||
grView.FooterRow.Visible = true;
|
||||
}
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_nuovoValore;
|
||||
public event EventHandler eh_selValore;
|
||||
|
||||
#endregion
|
||||
|
||||
#region public
|
||||
|
||||
/// <summary>
|
||||
/// definisce visibilità btnNew
|
||||
/// </summary>
|
||||
public bool showNewBtn
|
||||
{
|
||||
get
|
||||
{
|
||||
return _showNewBtn;
|
||||
}
|
||||
set
|
||||
{
|
||||
_showNewBtn = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua update del modulo
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// metodi al caricamento della pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// scrive label e text bottoni
|
||||
btnLoginPage.Text = "[7]-LogOut";
|
||||
btnLoginPage.AccessKey = "7";
|
||||
btnButtonsHome.Text = "[9]-Home";
|
||||
btnButtonsHome.AccessKey = "9";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua logout...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnLoginPage_Click(object sender, EventArgs e)
|
||||
{
|
||||
TermUtils.TU.forceLogOut();
|
||||
Response.Redirect("~/Barcode.aspx");
|
||||
}
|
||||
/// <summary>
|
||||
/// va alla pagina dei buttons principale
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnButtonsHome_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/Home.aspx");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// elenco colonne del datagrid
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected DataColumnCollection colonneObj()
|
||||
{
|
||||
DS_magazzino.V_DettMagPartDataTable tabella = new DS_magazzino.V_DettMagPartDataTable();
|
||||
DataColumnCollection colonne = tabella.Columns;
|
||||
return colonne;
|
||||
}
|
||||
/// <summary>
|
||||
/// inizializzazione valori di default
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "TipoSearch";
|
||||
|
||||
aggiornaControlliDataGL();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna controlli datagrid e numero righe in pagina
|
||||
/// </summary>
|
||||
protected void aggiornaControlliDataGL()
|
||||
{
|
||||
grView.PageSize = 6;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// gestione cambio selezione valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è iniziare lista prelievo...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void imgAzioneLista_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
ImageButton imgb = (ImageButton)sender;
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", imgb.CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// in caso di aggiornamento verifico se sia salvato un comando inizia o completa lista prelievo...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_RowUpdating(object sender, GridViewUpdateEventArgs e)
|
||||
{
|
||||
//// carico l'idx dell'oggetto
|
||||
//string tipo = e.Keys["tipo"].ToString();
|
||||
//string valore = e.Keys["valore"].ToString();
|
||||
//// quale comando?
|
||||
//string _comando = "";
|
||||
//if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
//{
|
||||
// _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
// SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
//}
|
||||
//string CodSoggetto = MagClass.magazzino.CodSoggCurrUser;
|
||||
//switch (_comando)
|
||||
//{
|
||||
// case "UDC":
|
||||
// // salvo in sessione
|
||||
// memLayer.ML.setSessionVal("UDC_sel", valore);
|
||||
// // blocco update!
|
||||
// e.Cancel = true;
|
||||
// // faccio redirect
|
||||
// Response.Redirect("~/UDC.aspx");
|
||||
// break;
|
||||
// case "Particolare":
|
||||
// // salvo in sessione
|
||||
// memLayer.ML.setSessionVal("Particolare_sel", valore);
|
||||
// // blocco update!
|
||||
// e.Cancel = true;
|
||||
// // faccio redirect
|
||||
// Response.Redirect("~/Particolare.aspx");
|
||||
// break;
|
||||
// case "Cella":
|
||||
// // salvo in sessione
|
||||
// memLayer.ML.setSessionVal("IdxCella_sel", valore);
|
||||
// // blocco update!
|
||||
// e.Cancel = true;
|
||||
// // faccio redirect
|
||||
// Response.Redirect("~/Cella.aspx");
|
||||
// break;
|
||||
// default:
|
||||
// // faccio update!
|
||||
// break;
|
||||
//}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ssitema visualizzazione dal filtraggi
|
||||
/// </summary>
|
||||
private void checkFixOds()
|
||||
{
|
||||
// chiamo procedura che aggiorna ods principale
|
||||
grView.SelectedIndex = -1;
|
||||
updateOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorno il gridview
|
||||
/// </summary>
|
||||
protected void updateOds()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
+47
-2
@@ -14,12 +14,57 @@ namespace GMW_Term.WebUserControls {
|
||||
public partial class mod_execCella {
|
||||
|
||||
/// <summary>
|
||||
/// Image1 control.
|
||||
/// btnLoginPage control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image Image1;
|
||||
protected global::System.Web.UI.WebControls.Button btnLoginPage;
|
||||
|
||||
/// <summary>
|
||||
/// btnButtonsHome control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnButtonsHome;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumRec control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// ods control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,58 +297,49 @@ namespace GMW_Term.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void grView_RowUpdating(object sender, GridViewUpdateEventArgs e)
|
||||
{
|
||||
// carico l'idx dell'oggetto
|
||||
string tipo = e.Keys["tipo"].ToString();
|
||||
string valore = e.Keys["valore"].ToString();
|
||||
// quale comando?
|
||||
string _comando = "";
|
||||
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
string CodSoggetto = MagClass.magazzino.CodSoggCurrUser;
|
||||
switch (_comando)
|
||||
{
|
||||
case "UDC":
|
||||
// salvo in sessione
|
||||
memLayer.ML.setSessionVal("UDC_sel", valore);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
// faccio redirect
|
||||
Response.Redirect("~/UDC.aspx");
|
||||
break;
|
||||
case "Particolare":
|
||||
// salvo in sessione
|
||||
memLayer.ML.setSessionVal("Particolare_sel", valore);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
// faccio redirect
|
||||
Response.Redirect("~/Particolare.aspx");
|
||||
break;
|
||||
case "Cella":
|
||||
// salvo in sessione
|
||||
memLayer.ML.setSessionVal("IdxCella_sel", valore);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
// faccio redirect
|
||||
Response.Redirect("~/Cella.aspx");
|
||||
break;
|
||||
default:
|
||||
// faccio update!
|
||||
break;
|
||||
}
|
||||
//// carico l'idx dell'oggetto
|
||||
//string tipo = e.Keys["tipo"].ToString();
|
||||
//string valore = e.Keys["valore"].ToString();
|
||||
//// quale comando?
|
||||
//string _comando = "";
|
||||
//if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
//{
|
||||
// _comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
// SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
//}
|
||||
//string CodSoggetto = MagClass.magazzino.CodSoggCurrUser;
|
||||
//switch (_comando)
|
||||
//{
|
||||
// case "UDC":
|
||||
// // salvo in sessione
|
||||
// memLayer.ML.setSessionVal("UDC_sel", valore);
|
||||
// // blocco update!
|
||||
// e.Cancel = true;
|
||||
// // faccio redirect
|
||||
// Response.Redirect("~/UDC.aspx");
|
||||
// break;
|
||||
// case "Particolare":
|
||||
// // salvo in sessione
|
||||
// memLayer.ML.setSessionVal("Particolare_sel", valore);
|
||||
// // blocco update!
|
||||
// e.Cancel = true;
|
||||
// // faccio redirect
|
||||
// Response.Redirect("~/Particolare.aspx");
|
||||
// break;
|
||||
// case "Cella":
|
||||
// // salvo in sessione
|
||||
// memLayer.ML.setSessionVal("IdxCella_sel", valore);
|
||||
// // blocco update!
|
||||
// e.Cancel = true;
|
||||
// // faccio redirect
|
||||
// Response.Redirect("~/Cella.aspx");
|
||||
// break;
|
||||
// default:
|
||||
// // faccio update!
|
||||
// break;
|
||||
//}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// chiamato post modifica valore check/selezione nel selettore filtro stato
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void eh_selectedStato(object sender, EventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// ssitema visualizzazione dal filtraggi
|
||||
/// </summary>
|
||||
@@ -365,105 +356,6 @@ namespace GMW_Term.WebUserControls
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// chiamato post modifica valore check/selezione nel selettore filtro tipo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void eh_selectedTipo(object sender, EventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce URL immagine del codice da mostrare x TIPO lista
|
||||
/// </summary>
|
||||
/// <param name="codStato"></param>
|
||||
/// <returns></returns>
|
||||
public string pathImgTipo(object codice)
|
||||
{
|
||||
string answ = "";
|
||||
string tipo = codice.ToString();
|
||||
switch (tipo)
|
||||
{
|
||||
case "UDC":
|
||||
answ = string.Format("~/images/UDC.png", codice);
|
||||
break;
|
||||
case "Particolare":
|
||||
answ = string.Format("~/images/Part.png", codice);
|
||||
break;
|
||||
case "Cella":
|
||||
answ = string.Format("~/images/Cella.png", codice);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce tooltip da mostrare x TIPO lista
|
||||
/// </summary>
|
||||
/// <param name="codStato"></param>
|
||||
/// <returns></returns>
|
||||
public string tooltipTipo(object codice)
|
||||
{
|
||||
return traduci(codice.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// formatta una stringa di descrizione a aprtire dal tipo oggetto
|
||||
/// </summary>
|
||||
/// <param name="_tipo"></param>
|
||||
/// <param name="_valore"></param>
|
||||
/// <returns></returns>
|
||||
public string descOggetto(object _tipo, object _valore)
|
||||
{
|
||||
string tipo = _tipo.ToString();
|
||||
string valore = _valore.ToString();
|
||||
string answ = "";
|
||||
switch (tipo)
|
||||
{
|
||||
case "UDC":
|
||||
try
|
||||
{
|
||||
DS_magazzino.v_UdcDetailRow rigaUdc = MagClass.magazzino.taDettUDC.getByFullUdc(valore, memLayer.ML.StringSessionObj("CodCS"))[0];
|
||||
answ = string.Format("<b>{0}</b> {1:##} pz M:{2} C:{3}", rigaUdc.Particolare, rigaUdc.Qta, rigaUdc.CodMag, rigaUdc.CodCella);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione {0}", e), tipoLog.EXCEPTION);
|
||||
answ = string.Format("{0} - {1}", tipo, valore);
|
||||
}
|
||||
break;
|
||||
case "Particolare":
|
||||
try
|
||||
{
|
||||
DS_magazzino.V_ParticolariOverviewRow rigaPart = MagClass.magazzino.taVParticolariOverwiew.getByParticolareFull(valore, memLayer.ML.StringSessionObj("CodCS"))[0];
|
||||
answ = string.Format("UDC: <b>{0}</b> (<b>{2}</b> a mag.) - <b>{1:##}</b> pz", rigaPart.NumUDC, rigaPart.TotQta, rigaPart.NumInMag);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione {0}", e), tipoLog.EXCEPTION);
|
||||
answ = string.Format("{0} - {1}", tipo, valore);
|
||||
}
|
||||
break;
|
||||
case "Cella":
|
||||
try
|
||||
{
|
||||
DS_magazzino.V_statoCelleCapienzaAssegnatiRow rigaCelle = MagClass.magazzino.taStatoCelle.getByIdxCella(Convert.ToInt32(valore))[0];
|
||||
answ = string.Format("{0} / {1}", rigaCelle.UdcAssegnati, rigaCelle.Capienza);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione {0}", e), tipoLog.EXCEPTION);
|
||||
answ = string.Format("{0} - {1}", tipo, valore);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@
|
||||
<add key="appName" value="GMW_Term"/>
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minRev" value="230" />
|
||||
<add key="minRev" value="235" />
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -344,14 +344,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_Term"
|
||||
"ProductCode" = "8:{7BFDEF48-8EA1-48D5-8EA7-5271A37E55B2}"
|
||||
"PackageCode" = "8:{95F5A680-7B4C-4484-9B43-1442B90D595C}"
|
||||
"ProductCode" = "8:{2E188AAF-6A1E-471C-86FC-4103092C7169}"
|
||||
"PackageCode" = "8:{A313C926-EA92-4707-8331-1FA09A0F430A}"
|
||||
"UpgradeCode" = "8:{B348C50D-8DAD-4430-AEF0-60800C94CB78}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.230"
|
||||
"ProductVersion" = "8:1.0.235"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
|
||||
Binary file not shown.
@@ -441,6 +441,39 @@ namespace GMW_data
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica la cella indicata sia valida, ovvero esistente
|
||||
/// </summary>
|
||||
/// <param name="CodCella"></param>
|
||||
/// <returns></returns>
|
||||
public bool checkCella(string CodCella)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = (taCelle.getByCodCella(CodCella).Rows.Count > 0);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il particolare indicato sia valido, ovvero esistente
|
||||
/// </summary>
|
||||
/// <param name="CodCS">Codice company/sito</param>
|
||||
/// <param name="Particolare"></param>
|
||||
/// <returns></returns>
|
||||
public bool checkParticolare(string CodCS, string Particolare)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = (taVParticolariOverwiew.getByParticolareFull(Particolare, CodCS).Rows.Count > 0);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
-- =============================================
|
||||
-- Author: Samuele E. Locatelli
|
||||
-- Create date: 2009-09-13
|
||||
-- Description: trigger x inserimento valori in archivio storico alla cancellazione/modifica del dato
|
||||
-- =============================================
|
||||
create TRIGGER trg_storico
|
||||
ON PosizioneUdcCorrente
|
||||
AFTER DELETE,UPDATE
|
||||
AS
|
||||
BEGIN
|
||||
-- SET NOCOUNT ON added to prevent extra result sets from
|
||||
-- interfering with SELECT statements.
|
||||
SET NOCOUNT ON;
|
||||
|
||||
-- metto in storico la posizione attuale dell'UDC (SE esiste) CANCELLATO
|
||||
INSERT INTO PosizioneUdcStorico(UDC, IdxCella, CodCS, DataInizio, DataFine)
|
||||
(
|
||||
SELECT UDC, IdxCella, CodCS, DataRif as DataInizio, GETDATE() as DataFine
|
||||
FROM deleted
|
||||
)
|
||||
|
||||
END
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
--
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_spostaUdc
|
||||
*
|
||||
* sposta un UDC, salvandone la posizione precedente (se esiste) nella tab storica
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.06.11
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_spostaUdc
|
||||
(
|
||||
@CodCS VARCHAR(2),
|
||||
@UDC VARCHAR(50),
|
||||
@IdxCellaTo INT
|
||||
)
|
||||
AS
|
||||
|
||||
BEGIN TRAN
|
||||
/*
|
||||
-- inizio mettendo in storico la posizione attuale dell'UDC (SE esiste)
|
||||
INSERT INTO PosizioneUdcStorico(UDC, IdxCella, CodCS, DataInizio, DataFine)
|
||||
(
|
||||
SELECT UDC, IdxCella, CodCS, DataRif as DataInizio, GETDATE() as DataFine
|
||||
FROM PosizioneUdcCorrente
|
||||
WHERE UDC = @UDC
|
||||
)
|
||||
*/
|
||||
|
||||
-- libero la posizione attuale dell'UDC (se c'è...)
|
||||
DELETE
|
||||
FROM PosizioneUdcCorrente
|
||||
WHERE UDC = @UDC-- AND IdxCella = @IdxCellaFrom
|
||||
|
||||
-- creo una nuova posizione per l'UDC
|
||||
INSERT INTO PosizioneUdcCorrente(UDC, IdxCella, CodCS, DataRif)
|
||||
VALUES(@UDC, @IdxCellaTo, @CodCS, GETDATE())
|
||||
|
||||
COMMIT TRAN
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
--
|
||||
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
set ANSI_NULLS on
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_UDC_delibera
|
||||
*
|
||||
* fa la delibera dell'UDC andando a processare la state machien e quindi eventualmente cambiando la sua posizione
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.13
|
||||
*
|
||||
************************************/
|
||||
alter PROCEDURE stp_UDC_delibera
|
||||
(
|
||||
@CodTipoDelibera NVARCHAR(50),
|
||||
@UDC NVARCHAR(50),
|
||||
@CodSoggetto NVARCHAR(17),
|
||||
@CodCS VARCHAR(2)
|
||||
)
|
||||
|
||||
AS
|
||||
|
||||
BEGIN TRAN
|
||||
DECLARE @IdxPosizioneTo AS INT
|
||||
DECLARE @IdxCellaTo AS INT
|
||||
|
||||
-- registro delibera
|
||||
INSERT INTO DELIBERE
|
||||
VALUES (@CodTipoDelibera, @UDC, GETDATE(), @CodSoggetto)
|
||||
|
||||
-- ricavo nuova posizione
|
||||
SET @IdxPosizioneTo = (SELECT tt.IdxPosizioneTo
|
||||
FROM TabTranPosizEventi tt INNER JOIN AnagTipoDelibere atd ON tt.CodEvento = atd.CodEvento
|
||||
WHERE (atd.CodTipoDelibera = @CodTipoDelibera))
|
||||
|
||||
-- calcolo la prima cella della nuova posizione...
|
||||
SET @IdxCellaTo = (
|
||||
SELECT TOP 1 IdxCella FROM Celle
|
||||
WHERE IdxBlocco = (
|
||||
SELECT IdxBlocco FROM Blocchi
|
||||
WHERE CodMag=CAST(@IdxPosizioneTo AS VARCHAR(50)))
|
||||
)
|
||||
|
||||
-- faccio update posizione
|
||||
UPDATE ElencoCartellini
|
||||
SET IdxPosizione = @IdxPosizioneTo
|
||||
WHERE UDC = @UDC
|
||||
|
||||
-- ora cambio anche la posizione corrente dell'UDC (e tramite trigger storicizza...)
|
||||
EXEC stp_spostaUdc @CodCS, @UDC, @IdxCellaTo
|
||||
|
||||
COMMIT TRAN
|
||||
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit
|
||||
go
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -4,7 +4,7 @@
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=T110-WIN2008R2\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
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.
@@ -9,22 +9,18 @@
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}</ProjectGuid>
|
||||
<ProjectGuid>{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}</ProjectGuid>
|
||||
<SourceWebPhysicalPath>..\GMW</SourceWebPhysicalPath>
|
||||
<SourceWebProject>{F8710519-CA62-4482-9045-02577B939A79}|GMW\GMW.csproj</SourceWebProject>
|
||||
<SourceWebVirtualPath>/GMW.csproj</SourceWebVirtualPath>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>.\Debug</OutputPath>
|
||||
<EnableUpdateable>true</EnableUpdateable>
|
||||
<UseMerge>true</UseMerge>
|
||||
<SingleAssemblyName>GMW_deploy</SingleAssemblyName>
|
||||
<DeleteAppCodeCompiledFiles>true</DeleteAppCodeCompiledFiles>
|
||||
<UseWebConfigReplacement>true</UseWebConfigReplacement>
|
||||
<DeleteAppDataFolder>true</DeleteAppDataFolder>
|
||||
<ValidateWebConfigReplacement>true</ValidateWebConfigReplacement>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
@@ -32,37 +28,10 @@
|
||||
<EnableUpdateable>true</EnableUpdateable>
|
||||
<UseMerge>true</UseMerge>
|
||||
<SingleAssemblyName>GMW_deploy</SingleAssemblyName>
|
||||
<DeleteAppCodeCompiledFiles>true</DeleteAppCodeCompiledFiles>
|
||||
<UseWebConfigReplacement>true</UseWebConfigReplacement>
|
||||
<DeleteAppDataFolder>true</DeleteAppDataFolder>
|
||||
<ValidateWebConfigReplacement>true</ValidateWebConfigReplacement>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<WebConfigReplacementFiles Include="mazzAppSettings.config">
|
||||
<Section>appSettings</Section>
|
||||
</WebConfigReplacementFiles>
|
||||
<WebConfigReplacementFiles Include="mazzConnectionStrings.config">
|
||||
<Section>connectionStrings</Section>
|
||||
</WebConfigReplacementFiles>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
|
||||
<WebConfigReplacementFiles Include="mazzAppSettings.config">
|
||||
<Section>appSettings</Section>
|
||||
</WebConfigReplacementFiles>
|
||||
<WebConfigReplacementFiles Include="mazzConnectionStrings.config">
|
||||
<Section>connectionStrings</Section>
|
||||
</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">
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
{
|
||||
"Entry"
|
||||
{
|
||||
"MsmKey" = "8:_26222BD77C424E3A8E8B95A9887008FF"
|
||||
"MsmKey" = "8:_4FD0E5B75A7F47B79080EC0983BE6583"
|
||||
"OwnerKey" = "8:_UNDEFINED"
|
||||
"MsmSig" = "8:_UNDEFINED"
|
||||
}
|
||||
"Entry"
|
||||
{
|
||||
"MsmKey" = "8:_4FD0E5B75A7F47B79080EC0983BE6583"
|
||||
"MsmKey" = "8:_7AA2401E1CA24C0C83F1AA51E24FF593"
|
||||
"OwnerKey" = "8:_UNDEFINED"
|
||||
"MsmSig" = "8:_UNDEFINED"
|
||||
}
|
||||
@@ -34,13 +34,13 @@
|
||||
"Entry"
|
||||
{
|
||||
"MsmKey" = "8:_UNDEFINED"
|
||||
"OwnerKey" = "8:_26222BD77C424E3A8E8B95A9887008FF"
|
||||
"OwnerKey" = "8:_8BDD7AA9D46A46EC80880F83F13C902E"
|
||||
"MsmSig" = "8:_UNDEFINED"
|
||||
}
|
||||
"Entry"
|
||||
{
|
||||
"MsmKey" = "8:_UNDEFINED"
|
||||
"OwnerKey" = "8:_8BDD7AA9D46A46EC80880F83F13C902E"
|
||||
"OwnerKey" = "8:_7AA2401E1CA24C0C83F1AA51E24FF593"
|
||||
"MsmSig" = "8:_UNDEFINED"
|
||||
}
|
||||
"Entry"
|
||||
@@ -201,14 +201,14 @@
|
||||
}
|
||||
"File"
|
||||
{
|
||||
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_26222BD77C424E3A8E8B95A9887008FF"
|
||||
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_7AA2401E1CA24C0C83F1AA51E24FF593"
|
||||
{
|
||||
"AssemblyRegister" = "3:1"
|
||||
"AssemblyIsInGAC" = "11:FALSE"
|
||||
"AssemblyAsmDisplayName" = "8:System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
|
||||
"ScatterAssemblies"
|
||||
{
|
||||
"_26222BD77C424E3A8E8B95A9887008FF"
|
||||
"_7AA2401E1CA24C0C83F1AA51E24FF593"
|
||||
{
|
||||
"Name" = "8:System.Web.Extensions.dll"
|
||||
"Attributes" = "3:512"
|
||||
@@ -349,14 +349,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{02CAA3F5-7937-48CF-A056-69AECDC9CB46}"
|
||||
"PackageCode" = "8:{6E7AC9FC-9342-43E6-86C9-64838131A2D9}"
|
||||
"ProductCode" = "8:{69B005D1-8AEA-454A-A3F5-EADA3971F53F}"
|
||||
"PackageCode" = "8:{C2482763-C2E9-4854-95E5-C8904AB84E20}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.225"
|
||||
"ProductVersion" = "8:1.0.235"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
@@ -799,6 +799,34 @@
|
||||
}
|
||||
"ProjectOutput"
|
||||
{
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_1D78968D96A247A59D76A77EE8DF206B"
|
||||
{
|
||||
"SourcePath" = "8:"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
"Condition" = "8:"
|
||||
"Transitive" = "11:FALSE"
|
||||
"Vital" = "11:TRUE"
|
||||
"ReadOnly" = "11:FALSE"
|
||||
"Hidden" = "11:FALSE"
|
||||
"System" = "11:FALSE"
|
||||
"Permanent" = "11:FALSE"
|
||||
"SharedLegacy" = "11:FALSE"
|
||||
"PackageAs" = "3:1"
|
||||
"Register" = "3:1"
|
||||
"Exclude" = "11:FALSE"
|
||||
"IsDependency" = "11:FALSE"
|
||||
"IsolateTo" = "8:"
|
||||
"ProjectOutputGroupRegister" = "3:1"
|
||||
"OutputConfiguration" = "8:"
|
||||
"OutputGroupCanonicalName" = "8:Built"
|
||||
"OutputProjectGuid" = "8:{F6B68E94-B7A6-4DC7-A08C-E760B9F95F9F}"
|
||||
"ShowKeyOutput" = "11:TRUE"
|
||||
"ExcludeFilters"
|
||||
{
|
||||
}
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_4FD0E5B75A7F47B79080EC0983BE6583"
|
||||
{
|
||||
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
|
||||
@@ -855,34 +883,6 @@
|
||||
{
|
||||
}
|
||||
}
|
||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_9345EC6AE230417781B21B0C35DD3375"
|
||||
{
|
||||
"SourcePath" = "8:"
|
||||
"TargetName" = "8:"
|
||||
"Tag" = "8:"
|
||||
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
|
||||
"Condition" = "8:"
|
||||
"Transitive" = "11:FALSE"
|
||||
"Vital" = "11:TRUE"
|
||||
"ReadOnly" = "11:FALSE"
|
||||
"Hidden" = "11:FALSE"
|
||||
"System" = "11:FALSE"
|
||||
"Permanent" = "11:FALSE"
|
||||
"SharedLegacy" = "11:FALSE"
|
||||
"PackageAs" = "3:1"
|
||||
"Register" = "3:1"
|
||||
"Exclude" = "11:FALSE"
|
||||
"IsDependency" = "11:FALSE"
|
||||
"IsolateTo" = "8:"
|
||||
"ProjectOutputGroupRegister" = "3:1"
|
||||
"OutputConfiguration" = "8:"
|
||||
"OutputGroupCanonicalName" = "8:Built"
|
||||
"OutputProjectGuid" = "8:{28E4C4DF-7F24-4D23-A44C-F10F8168FC7D}"
|
||||
"ShowKeyOutput" = "11:TRUE"
|
||||
"ExcludeFilters"
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user