update grafico x inserimento valori costo base Al + extra + calcolo totale
This commit is contained in:
BIN
Binary file not shown.
@@ -16,6 +16,7 @@
|
||||
-->
|
||||
<appSettings>
|
||||
<add key="C2PConnectionString" value="Data Source=localhost\SQLExpress2008R2;Initial Catalog=C2P;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="VocabolarioConnectionString" value="Data Source=localhost\SQLExpress2008R2;Initial Catalog=C2P;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="C2P_Data.Properties.Settings.Proxima_C2PConnectionString" connectionString="Data Source=localhost\SQLExpress2008R2;Initial Catalog=C2P;Persist Security Info=True;User ID=sa;Password=keyhammer" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
|
||||
@@ -25,20 +25,42 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2">
|
||||
Costi Al
|
||||
<div class="col-lg-4">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<asp:Label runat="server" Font-Size="0.8em" id="lblBaseAl" Text="[B]ase Al" />
|
||||
</span>
|
||||
<asp:TextBox runat="server" ID="txtBaseAl" AccessKey="b" placeholder="Base Al" CssClass="form-control" AutoPostBack="True" OnTextChanged="txtBaseAl_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
importo
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
Costi extra
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">
|
||||
<asp:Label runat="server" Font-Size="0.8em" id="lblExtraLega" Text="E[x]tra Lega" />
|
||||
</span>
|
||||
<asp:TextBox runat="server" ID="txtExtraLega" AccessKey="x" placeholder="Extra Lega" CssClass="form-control" AutoPostBack="True" OnTextChanged="txtExtraLega_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
importo
|
||||
<div class="input-group">
|
||||
<asp:Label runat="server" ID="lblImportoTot" CssClass="form-control" />
|
||||
<span class="input-group-addon">ImportoTot
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
note:
|
||||
<div class="row">
|
||||
<div class="col-lg-3">
|
||||
Lotto prod
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
Incoterms
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
note
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
- i campi compilati x nuovo FANNO da filtro x elenco sotto<br />
|
||||
- se ho almeno 1 campo calcolato mostro elenco sotto<br />
|
||||
|
||||
@@ -105,6 +105,45 @@ namespace C2P.WebUserControls
|
||||
eh_newSearchData(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// totale base lega + extra inserito...
|
||||
/// </summary>
|
||||
protected decimal totale
|
||||
{
|
||||
get
|
||||
{
|
||||
decimal answ = 0;
|
||||
try
|
||||
{
|
||||
answ += Convert.ToDecimal(txtBaseAl.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
answ += Convert.ToDecimal(txtExtraLega.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void txtExtraLega_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateTot();
|
||||
}
|
||||
|
||||
private void updateTot()
|
||||
{
|
||||
|
||||
lblImportoTot.Text = totale.ToString();
|
||||
}
|
||||
|
||||
protected void txtBaseAl_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateTot();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+45
@@ -47,5 +47,50 @@ namespace C2P.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::C2P.WebUserControls.mod_autocomplete acLega;
|
||||
|
||||
/// <summary>
|
||||
/// lblBaseAl 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 lblBaseAl;
|
||||
|
||||
/// <summary>
|
||||
/// txtBaseAl 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.TextBox txtBaseAl;
|
||||
|
||||
/// <summary>
|
||||
/// lblExtraLega 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 lblExtraLega;
|
||||
|
||||
/// <summary>
|
||||
/// txtExtraLega 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.TextBox txtExtraLega;
|
||||
|
||||
/// <summary>
|
||||
/// lblImportoTot 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 lblImportoTot;
|
||||
}
|
||||
}
|
||||
|
||||
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.
@@ -62,6 +62,26 @@ FROM dbo.RawMatDet
|
||||
WHERE (RawMat <> '')
|
||||
GO
|
||||
|
||||
-- =============================================
|
||||
-- Author: S.E. Locatelli
|
||||
-- Create date: 2014.02.18
|
||||
-- Description: Ricerca materiale Al
|
||||
-- =============================================
|
||||
create PROCEDURE [dbo].stp_VSRM_SearchLike
|
||||
(
|
||||
@value NVARCHAR(50)
|
||||
)
|
||||
|
||||
AS
|
||||
SET NOCOUNT ON;
|
||||
|
||||
SELECT value
|
||||
,label
|
||||
FROM v_selRawMat
|
||||
WHERE (value LIKE '%' + @value + '%')
|
||||
OR (label LIKE '%' + @value + '%')
|
||||
go
|
||||
|
||||
|
||||
PRINT N'Creating [dbo].[stp_esplodiVocab]...';
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user