refresh ODL

This commit is contained in:
Samuele E. Locatelli
2018-07-18 17:18:09 +02:00
parent 0766583d3a
commit 1cc2131966
4 changed files with 62 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
<add key="urlDisegni" value="~/Files/Disegni/{0}.pdf" />
<!--gestione check / warning-->
<add key="durMinWarning" value="20" />
<add key="intervalloControlli" value="90"/>
<add key="intervalloControlli" value="90" />
<!--gg precedenti da visualizzare standard-->
<add key="defDayFrom" value="90" />
<!--refresh MSE-->
+18
View File
@@ -1,5 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ODL.ascx.cs" Inherits="MoonProTablet.WebUserControls.mod_ODL" %>
<%@ Register Src="~/WebUserControls/mod_tempoMSMC.ascx" TagPrefix="uc1" TagName="mod_tempoMSMC" %>
<%@ Register Src="~/WebUserControls/cmp_newODL.ascx" TagPrefix="uc1" TagName="cmp_newODL" %>
<div class="row">
@@ -61,6 +63,22 @@
<asp:LinkButton runat="server" ID="lbtSplitODL" OnClick="lbtSplitODL_Click" Visible="false" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaRiattrezzaggio") %>' CssClass="btn btn-block btn-info"><i class="fa fa-exclamation-triangle"></i> Effettua Riattrezzaggio</asp:LinkButton>
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12">
<div class="card">
<div class="card-header p-0">
<div class="row">
<div class="col-12">
<asp:LinkButton runat="server" ID="lbtShowCreaOdlProvv" CssClass="btn btn-block btn-danger" OnClick="lbtShowCreaOdlProvv_Click"><i class="fa fa-exclamation-circle"></i> <%: lblCreaOdl %></asp:LinkButton>
</div>
</div>
</div>
<div class="card-body p-1 table-info text-dark table-secondary">
<uc1:cmp_newODL runat="server" ID="cmp_newODL" Visible="false" />
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 text-center">
<asp:Label runat="server" ID="lblOut" ForeColor="Red" />
+25 -1
View File
@@ -581,7 +581,7 @@ namespace MoonProTablet.WebUserControls
protected void chkTutti_CheckedChanged(object sender, EventArgs e)
{
// SE selezionato tutti cambio valore idxMacchina...
if(chkTutti.Checked)
if (chkTutti.Checked)
{
hfIdxMacchina.Value = "0";
}
@@ -592,5 +592,29 @@ namespace MoonProTablet.WebUserControls
ddlODL.DataBind();
checkDDL();
}
/// <summary>
/// toggle visualizzazione creazioen ODL provvisorio
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtShowCreaOdlProvv_Click(object sender, EventArgs e)
{
cmp_newODL.Visible = !cmp_newODL.Visible;
}
/// <summary>
/// Testo x button creazione nuovo ODL
/// </summary>
public string lblCreaOdl
{
get
{
string answ = "CREAZIONE ODL PROVVISORIO";
if (cmp_newODL.Visible)
{
answ = "NASCONDI creazione ODL provvisorio";
}
return answ;
}
}
}
}
+18
View File
@@ -156,6 +156,24 @@ namespace MoonProTablet.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtSplitODL;
/// <summary>
/// Controllo lbtShowCreaOdlProvv.
/// </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 lbtShowCreaOdlProvv;
/// <summary>
/// Controllo cmp_newODL.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MoonProTablet.WebUserControls.cmp_newODL cmp_newODL;
/// <summary>
/// Controllo lblOut.
/// </summary>