bozza gestione gruppi macchine
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
<div class="row my-2 textCondens font-weight-bold">
|
||||
<div class="col-6 pr-0">
|
||||
<div class="col-4 pr-0">
|
||||
<div class="text-truncate">
|
||||
Articolo (ricerca + selezione)
|
||||
</div>
|
||||
@@ -20,6 +20,21 @@
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2 pr-0 pl-1">
|
||||
<div class="text-truncate">
|
||||
Gruppo
|
||||
</div>
|
||||
<div class="my-0 small">
|
||||
<asp:DropDownList ID="ddlGruppi" runat="server" DataTextField="label" DataValueField="value" AutoPostBack="True" DataSourceID="odsGruppi" CssClass="form-control form-control-sm" OnSelectedIndexChanged="ddlGruppi_SelectedIndexChanged"/>
|
||||
<asp:ObjectDataSource ID="odsGruppi" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="MapoDb.DS_UtilityTableAdapters.v_selGruppiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="REPARTO" Name="conditio" Type="String" />
|
||||
</SelectParameters>
|
||||
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-2 pr-0 pl-1">
|
||||
<div class="text-truncate">
|
||||
@@ -99,20 +114,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="font-size: 0.8em; background-color: #EFEFEF;">
|
||||
<%--<div style="float: none; clear: both;">
|
||||
<div style="float: left; border: 1px solid #ABABAB; padding: 2px; margin: 1px; height: 4em;">
|
||||
Tempo Ciclo min.cent<br />
|
||||
<asp:TextBox ID="txtTempoCiclo" runat="server" Width="4em"
|
||||
OnTextChanged="txtTempoCiclo_TextChanged" AutoPostBack="True" />
|
||||
( =
|
||||
<asp:Label runat="server" ID="lblMinSec" />
|
||||
min:sec)
|
||||
<asp:RequiredFieldValidator ID="rfvTempoCiclo" ControlToValidate="txtTempoCiclo"
|
||||
runat="server" ErrorMessage="!!!" />
|
||||
</div>
|
||||
</div>--%>
|
||||
|
||||
<div style="font-size: 0.8em; background-color: #EFEFEF;">
|
||||
<div runat="server" id="divTempi" style="clear: both;">
|
||||
<asp:GridView ID="grViewTempi" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="IdxODL" DataSourceID="odsTempi" ForeColor="Black" GridLines="None" OnSelectedIndexChanged="grViewTempi_SelectedIndexChanged" Width="100%">
|
||||
<AlternatingRowStyle BackColor="PaleGoldenrod" />
|
||||
|
||||
@@ -75,17 +75,17 @@ namespace MoonProAdmin.WebUserControls
|
||||
int numSec = 0;
|
||||
int.TryParse(sTC[0], out numMin);
|
||||
int.TryParse(sTC[1], out numSec);
|
||||
TCiclo = numMin + ((decimal)numSec) / 60;
|
||||
TCiclo = numMin + ((decimal)numSec) / 60;
|
||||
pzPallet = Convert.ToInt32(txtPzPallet.Text.Trim());
|
||||
attiv=chkAttiv.Checked;
|
||||
attiv = chkAttiv.Checked;
|
||||
int.TryParse(txtPrio.Text, out prio);
|
||||
// 2018.09.25 --> inserisco PROMESSA ODL
|
||||
//MapoDb.DataLayer.obj.taODL.InsertQuery(CodArticolo, MapoDb.DataLayer.MatrOpr, IdxMacchina, numPezzi, TCiclo, pzPallet, chkToAs400.Checked, txtCommessa.Text.Trim());
|
||||
MapoDb.DataLayer.obj.taPODL.insertQuery(KeyReq, KeyReq, attiv, CodArticolo, "", IdxMacchina, numPezzi, TCiclo, DateTime.Now, prio, pzPallet);
|
||||
}
|
||||
catch
|
||||
catch (Exception exc)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito ad inserire la PromessaODL con i seguenti parametri: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7}", KeyReq, attiv, CodArticolo, IdxMacchina, numPezzi, TCiclo, prio, pzPallet), tipoLog.ERROR);
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito ad inserire la PromessaODL con i seguenti parametri: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7}{8}{9}", KeyReq, attiv, CodArticolo, IdxMacchina, numPezzi, TCiclo, prio, pzPallet, Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
// segnalo update
|
||||
if (eh_nuovoValore != null)
|
||||
@@ -155,6 +155,15 @@ namespace MoonProAdmin.WebUserControls
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlGruppi_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
ddlMacchine.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
@@ -203,8 +212,8 @@ namespace MoonProAdmin.WebUserControls
|
||||
TC_MinSec = string.Format("{0}:{1:00}", min, sec);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
txtTC.Text = TC_MinSec;
|
||||
{ }
|
||||
txtTC.Text = TC_MinSec;
|
||||
txtPzPallet.Text = rigaOdl.PzPallet.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,24 @@ namespace MoonProAdmin.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsArticoli;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlGruppi.
|
||||
/// </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 ddlGruppi;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsGruppi.
|
||||
/// </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 odsGruppi;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlMacchine.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user