Update sel quantità e imballi
This commit is contained in:
@@ -179,16 +179,16 @@
|
||||
<add key="owin:AutomaticAppStartup" value="false" />
|
||||
<!--Sviluppo TK = Initial Catalog=TK_GMW-->
|
||||
<!--Sviluppo SP = Initial Catalog=GMW-->
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="GMWConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=SP_Produzione;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=GMW_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="GMWConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=ProduzionePossidonio;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=GMW_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<!--Sviluppo TK-->
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SQL2012DEV;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.webServer>
|
||||
<modules runAllManagedModulesForAllRequests="true">
|
||||
|
||||
@@ -179,16 +179,16 @@
|
||||
<add key="owin:AutomaticAppStartup" value="false" />
|
||||
<!--Sviluppo TK = Initial Catalog=TK_GMW-->
|
||||
<!--Sviluppo SP = Initial Catalog=GMW-->
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="GMWConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=SP_Produzione;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_Prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="GMWConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_Prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=ProduzionePossidonio;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_Prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=GMW_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_Prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<!--Sviluppo TK-->
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SQL2012PROD;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=SQL2012PROD;Initial Catalog=TK_GMW_Prod;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.webServer>
|
||||
<modules runAllManagedModulesForAllRequests="true">
|
||||
|
||||
@@ -134,7 +134,8 @@
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<asp:LinkButton runat="server" ID="lbtShowAllImb" CssClass="btn btn-info btn-block" OnClick="lbtShowAllImb_Click"><i class="fa fa-list"></i> TUTTI</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtShowAllImb" CssClass="btn btn-info btn-block" OnClick="lbtShowAllImb_Click" Visible="true"><i class="fa fa-list"></i> TUTTI</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtShowLastImb" CssClass="btn btn-default btn-block" OnClick="lbtShowLastImb_Click" Visible="false"><i class="fa fa-list-ol"></i> ULTIMI</asp:LinkButton>
|
||||
<asp:Label runat="server" ID="lblPart" />
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace GMW.WebUserControls
|
||||
if (currParticolare != "")
|
||||
{
|
||||
lblParticolareAttivo.Text = string.Format("<b>{0}</b>", currParticolare);
|
||||
lblPart.Text = currParticolare;
|
||||
if(lbtShowAllImb.Visible) lblPart.Text = currParticolare;
|
||||
// aggiungo descrizione del particolare
|
||||
string descr = "";
|
||||
string disegno = "";
|
||||
@@ -921,6 +921,8 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// preseleziono
|
||||
ddlImballi.SelectedValue = codImb;
|
||||
// fix QTA..
|
||||
qta = pezziUdcImballo;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -933,6 +935,7 @@ namespace GMW.WebUserControls
|
||||
protected void lbtShowAllImb_Click(object sender, EventArgs e)
|
||||
{
|
||||
lblPart.Text = "*";
|
||||
fixShowImb(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// In caso di cambio sel imballo reimposto qta...
|
||||
@@ -944,5 +947,20 @@ namespace GMW.WebUserControls
|
||||
// imposto QTA alla selezione imballo (ultima qta x particoalre/stato/imballo, sennò 0!!!)
|
||||
qta = pezziUdcImballo;
|
||||
}
|
||||
|
||||
protected void lbtShowLastImb_Click(object sender, EventArgs e)
|
||||
{
|
||||
lblPart.Text = currParticolare;
|
||||
fixShowImb(false);
|
||||
}
|
||||
/// <summary>
|
||||
/// Sistemazione visualizzazione imballi
|
||||
/// </summary>
|
||||
/// <param name="showLast"></param>
|
||||
private void fixShowImb(bool showLast)
|
||||
{
|
||||
lbtShowLastImb.Visible = showLast;
|
||||
lbtShowAllImb.Visible = !showLast;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -210,6 +210,15 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtShowAllImb;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtShowLastImb.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtShowLastImb;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblPart.
|
||||
/// </summary>
|
||||
|
||||
@@ -2447,7 +2447,6 @@ namespace GMW_data
|
||||
tabella = taElencoListePrelievo.getByCodLista(CodLista);
|
||||
riga = tabella[0];
|
||||
trovate = tabella.Rows.Count;
|
||||
|
||||
// se la lista esiste...
|
||||
if (trovate > 0)
|
||||
{
|
||||
@@ -2602,8 +2601,10 @@ namespace GMW_data
|
||||
answ = esitoOperazione.errore;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
catch(Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Eccezione:{0}{1}", Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user