completato prima versione controllo numKeyb
This commit is contained in:
@@ -14,7 +14,23 @@
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
quantita evasa
|
||||
<asp:TextBox runat="server" ID="txtQta" TextMode="Number" CssClass="form-control" AutoPostBack="True" OnTextChanged="txtQta_TextChanged" />
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<asp:LinkButton runat="server" ID="lbtKeyb" OnClick="lbtKeyb_Click" ToolTip="Mostra/Nascondi num key">
|
||||
<i class="fas fa-keyboard"></i>
|
||||
</asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
<asp:TextBox runat="server" ID="txtQta" TextMode="Number" CssClass="form-control" AutoPostBack="True" OnTextChanged="txtQta_TextChanged" />
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">
|
||||
<asp:LinkButton runat="server" ID="lbtReset" OnClick="lbtReset_Click" ToolTip="reset">
|
||||
<i class="fas fa-backspace"></i>
|
||||
</asp:LinkButton>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 text-center">
|
||||
<uc1:mod_numKeyb runat="server" ID="mod_numKeyb" />
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace C_TRACK.WebUserControls
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mod_numKeyb.Visible = false;
|
||||
setupValori();
|
||||
}
|
||||
mod_numKeyb.eh_comandoRegistrato += Mod_numKeyb_eh_comandoRegistrato;
|
||||
@@ -158,5 +159,22 @@ namespace C_TRACK.WebUserControls
|
||||
// salvo nuova qta...
|
||||
QtaFaseCurr = newQta;
|
||||
}
|
||||
|
||||
protected void lbtKeyb_Click(object sender, EventArgs e)
|
||||
{
|
||||
toggleNumKeyb();
|
||||
}
|
||||
/// <summary>
|
||||
/// Toggle visibilità numKeyb
|
||||
/// </summary>
|
||||
private void toggleNumKeyb()
|
||||
{
|
||||
mod_numKeyb.Visible = !mod_numKeyb.Visible;
|
||||
}
|
||||
|
||||
protected void lbtReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("~/barcode");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,15 @@ namespace C_TRACK.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divFaseCurr;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtKeyb.
|
||||
/// </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 lbtKeyb;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtQta.
|
||||
/// </summary>
|
||||
@@ -30,6 +39,15 @@ namespace C_TRACK.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtQta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtReset.
|
||||
/// </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 lbtReset;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_numKeyb.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user