Start produzione:

- machcine slave ricevono start produzione (es valvital)
This commit is contained in:
Samuele Locatelli
2023-01-17 12:11:13 +01:00
parent 38a20c2a48
commit 56a7e02c50
3 changed files with 58 additions and 55 deletions
+28 -28
View File
@@ -1,32 +1,32 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_datiConfermati.ascx.cs"
Inherits="MP_SITE.WebUserControls.mod_datiConfermati" %>
Inherits="MP_SITE.WebUserControls.mod_datiConfermati" %>
<div id="DatiConfermati" style="margin-top: 0px;">
<asp:GridView ID="grView" runat="server" CssClass="table table-striped table-sm" AutoGenerateColumns="False" DataKeyNames="DataOraConf,idxMacchina" DataSourceID="ods" AllowPaging="True" AllowSorting="True">
<HeaderStyle CssClass="table-success" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="info" />
<Columns>
<asp:BoundField DataField="DataOraConf" HeaderText="Conferma" ReadOnly="True" SortExpression="DataOraConf" />
<asp:BoundField DataField="CommessaEsterna" HeaderText="Commessa" SortExpression="CommessaEsterna" />
<asp:TemplateField HeaderText="Macchina" SortExpression="IdxMacchina">
<ItemTemplate>
<asp:Label ID="lblIdxMacchina" runat="server" Text='<%# filtName(Eval("IdxMacchina")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="pezziConf" HeaderText="pz. Conf" SortExpression="pezziConf" />
<asp:BoundField DataField="pezziScar" HeaderText="pz. Scar" SortExpression="pezziScar" />
<asp:BoundField DataField="CognomeNomeOpr" HeaderText="Operatore" ReadOnly="True" SortExpression="CognomeNomeOpr" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMacchinaPeriodo" TypeName="MapoDb.DS_ProdTempiTableAdapters.ElencoConfermeProdTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="1" Name="IdxMacchina" SessionField="IdxMacchina" Type="String" />
<asp:SessionParameter DefaultValue="DateTime.Now.AddWeeks(-1)" Name="dataFrom" SessionField="_inizio" Type="DateTime" />
<asp:SessionParameter DefaultValue="DateTime.Now" Name="dataTo" SessionField="_fine" Type="DateTime" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:GridView ID="grView" runat="server" CssClass="table table-striped table-sm" AutoGenerateColumns="False" DataKeyNames="DataOraConf,idxMacchina" DataSourceID="ods" AllowPaging="True" AllowSorting="True">
<HeaderStyle CssClass="table-success" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
<SelectedRowStyle CssClass="info" />
<Columns>
<asp:BoundField DataField="DataOraConf" HeaderText="Conferma" ReadOnly="True" SortExpression="DataOraConf" />
<asp:BoundField DataField="CommessaEsterna" HeaderText="Commessa" SortExpression="CommessaEsterna" />
<asp:TemplateField HeaderText="Macchina" SortExpression="IdxMacchina">
<ItemTemplate>
<asp:Label ID="lblIdxMacchina" runat="server" Text='<%# filtName(Eval("IdxMacchina")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="pezziConf" HeaderText="pz. Conf" SortExpression="pezziConf" />
<asp:BoundField DataField="pezziScar" HeaderText="pz. Scar" SortExpression="pezziScar" />
<asp:BoundField DataField="CognomeNomeOpr" HeaderText="Operatore" ReadOnly="True" SortExpression="CognomeNomeOpr" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByMacchinaPeriodo" TypeName="MapoDb.DS_ProdTempiTableAdapters.ElencoConfermeProdTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="1" Name="IdxMacchina" SessionField="IdxMacchina" Type="String" />
<asp:SessionParameter DefaultValue="DateTime.Now.AddWeeks(-1)" Name="dataFrom" SessionField="_inizio" Type="DateTime" />
<asp:SessionParameter DefaultValue="DateTime.Now" Name="dataTo" SessionField="_fine" Type="DateTime" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<asp:HyperLink ID="HyperLink1" runat="server" AccessKey="X" Target="_blank" NavigateUrl="~/excelExportDatiConfermati.aspx" Visible="false">Excel Dati Confermati - solo macchina corrente</asp:HyperLink>
<asp:HyperLink ID="hlMaccCurr" runat="server" AccessKey="X" Target="_blank" NavigateUrl="~/excelExportDatiConfermati.aspx" Visible="false">Excel Dati Confermati - solo macchina corrente</asp:HyperLink>
&nbsp;-&nbsp;&nbsp;
<asp:HyperLink ID="HyperLink3" runat="server" AccessKey="X" Target="_blank" NavigateUrl="~/excelAllMacchineDatiConfermati.aspx" Visible="false">Excel Dati Confermati - tutte le macchine</asp:HyperLink>
<asp:HyperLink ID="hlMaccAll" runat="server" AccessKey="X" Target="_blank" NavigateUrl="~/excelAllMacchineDatiConfermati.aspx" Visible="false">Excel Dati Confermati - tutte le macchine</asp:HyperLink>
+29 -27
View File
@@ -1,51 +1,53 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MP_SITE.WebUserControls {
public partial class mod_datiConfermati {
namespace MP_SITE.WebUserControls
{
public partial class mod_datiConfermati
{
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// Controllo HyperLink1.
/// hlMaccCurr control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
protected global::System.Web.UI.WebControls.HyperLink hlMaccCurr;
/// <summary>
/// Controllo HyperLink3.
/// hlMaccAll control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HyperLink HyperLink3;
protected global::System.Web.UI.WebControls.HyperLink hlMaccAll;
}
}
+1
View File
@@ -1364,6 +1364,7 @@ namespace MoonProTablet.WebUserControls
// invio chiusura attrezzaggio
ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now);
string outData = $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|ODL:{idxODLStart}";
processaEvento(machine.IdxMacchinaSlave, idxEvento, sb.ToString(), idxODLStart);
DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData);
}