Aggiunta stored x inserimento parametri macchine missing
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_machParams.ascx.cs" Inherits="ES3.WebUserControls.cmp_machParams" %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
Impianto <asp:DropDownList runat="server" ID="ddlMacchine" DataSourceID="odsMacc" DataTextField="label" DataValueField="value" AppendDataBoundItems="true" AutoPostBack="True">
|
||||
<asp:ListItem Text="--- TUTTI ---" Value=""></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsMacc" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getAttive" TypeName="MapoDb.DS_UtilityTableAdapters.v_selMacchineTableAdapter"></asp:ObjectDataSource>
|
||||
<div class="col-8">
|
||||
aggiungere select + edit
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<asp:LinkButton runat="server" ID="lbtClonaSel" CssClass="btn btn-sm btn-block btn-info"><i class="fa fa-magic" aria-hidden="true"></i> Clona</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<asp:LinkButton runat="server" ID="lbtAddNew" CssClass="btn btn-sm btn-block btn-success"><i class="fa fa-plus-square" aria-hidden="true"></i> Nuovo</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtAddNew" CssClass="btn btn-sm btn-block btn-success" OnClick="lbtAddNew_Click"><i class="fa fa-plus-square" aria-hidden="true"></i> Mancanti</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
aggiungere select + edit
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxMacchina" DataSourceID="ods" CssClass="table table-sm table-striped" AllowPaging="True">
|
||||
<HeaderStyle CssClass="table-primary" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using MapoDb;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -53,7 +54,7 @@ namespace ES3.WebUserControls
|
||||
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
#endif
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
doUpdate();
|
||||
#if false
|
||||
divEditQta.Visible = false;
|
||||
mod_newPromessaODL.Visible = false;
|
||||
@@ -65,5 +66,12 @@ namespace ES3.WebUserControls
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
protected void lbtAddNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
// aggiungo macchine con parametri mancanti... MULTI --> OEE madre a 0%!!!
|
||||
DataLayer.obj.taMacParams.insMissing();
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
-27
@@ -14,33 +14,6 @@ namespace ES3.WebUserControls
|
||||
public partial class cmp_machParams
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlMacchine.
|
||||
/// </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.DropDownList ddlMacchine;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsMacc.
|
||||
/// </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.ObjectDataSource odsMacc;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtClonaSel.
|
||||
/// </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 lbtClonaSel;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lbtAddNew.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user