NUOVA MAPPA STATO!

This commit is contained in:
Samuele E. Locatelli
2019-09-25 09:58:46 +02:00
parent e5ab5e6ee8
commit df1ff9af32
5 changed files with 41 additions and 311 deletions
+6 -9
View File
@@ -12,13 +12,13 @@
<div>
<asp:Repeater runat="server" ID="repRows" DataSourceID="odsRows">
<ItemTemplate>
<div class="row mt-2">
<div class="row m-2">
<asp:Repeater runat="server" ID="dtListCols" DataSourceID="odsCols">
<ItemTemplate>
<div class='<%# Eval("css") %>'>
<%# Eval("IdxMacchina") %> | <%# Eval("locazione") %>
<%--<uc1:mod_statoMacchina ID="Mod_statoMacchina01" runat="server" locazione='<%# Eval("locazione") %>' />--%>
<%--<uc1:mod_statoMacchina ID="Mod_statoMacchina" runat="server" locazione='<%# Eval("locazione") %>' />
<asp:Label runat="server" ID="lblTest0" Text='<%# Eval("IdxMacchina") %>' /> | <asp:Label runat="server" ID="lblTest"><b><%# Eval("locazione") %></b></asp:Label>--%>
<uc1:mod_statoMacchina ID="Mod_statoMacchina01" runat="server" IdxMacchina='<%# Eval("IdxMacchina") %>' />
</div>
</ItemTemplate>
</asp:Repeater>
@@ -33,11 +33,8 @@
</ItemTemplate>
</asp:Repeater>
<asp:ObjectDataSource runat="server" ID="odsRows" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="MapoDb.DS_applicazioneTableAdapters.RigheMacchineTableAdapter" FilterExpression="RowNum > 0"></asp:ObjectDataSource>
</div>
<div class="row mt-2">
<%-- <div class="row mt-2">
<div class="col">
<uc1:mod_statoMacchina ID="Mod_statoMacchina01" runat="server" locazione="A0" />
</div>
@@ -132,5 +129,5 @@
<div class="col">
<uc1:mod_statoMacchina ID="Mod_statoMacchina50" runat="server" locazione="C9" />
</div>
</div>
</div>--%>
</asp:Content>
+10 -10
View File
@@ -3,16 +3,16 @@ using System.Web.UI.WebControls;
namespace MP_SITE
{
public partial class MappaStato : System.Web.UI.Page
public partial class MappaStato : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void lnkCambiaModo_Click(object sender, EventArgs e)
{
// passa alla pagina richiesta...
LinkButton lb = (LinkButton)sender;
Response.Redirect(lb.CommandArgument);
}
}
protected void lnkCambiaModo_Click(object sender, EventArgs e)
{
// passa alla pagina richiesta...
LinkButton lb = (LinkButton)sender;
Response.Redirect(lb.CommandArgument);
}
}
}
-270
View File
@@ -38,275 +38,5 @@ namespace MP_SITE {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsRows;
/// <summary>
/// Controllo Mod_statoMacchina01.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina01;
/// <summary>
/// Controllo Mod_statoMacchina02.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina02;
/// <summary>
/// Controllo Mod_statoMacchina03.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina03;
/// <summary>
/// Controllo Mod_statoMacchina04.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina04;
/// <summary>
/// Controllo Mod_statoMacchina05.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina05;
/// <summary>
/// Controllo Mod_statoMacchina06.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina06;
/// <summary>
/// Controllo Mod_statoMacchina07.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina07;
/// <summary>
/// Controllo Mod_statoMacchina08.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina08;
/// <summary>
/// Controllo Mod_statoMacchina09.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina09;
/// <summary>
/// Controllo Mod_statoMacchina10.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina10;
/// <summary>
/// Controllo Mod_statoMacchina21.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina21;
/// <summary>
/// Controllo Mod_statoMacchina22.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina22;
/// <summary>
/// Controllo Mod_statoMacchina23.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina23;
/// <summary>
/// Controllo Mod_statoMacchina24.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina24;
/// <summary>
/// Controllo Mod_statoMacchina25.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina25;
/// <summary>
/// Controllo Mod_statoMacchina26.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina26;
/// <summary>
/// Controllo Mod_statoMacchina27.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina27;
/// <summary>
/// Controllo Mod_statoMacchina28.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina28;
/// <summary>
/// Controllo Mod_statoMacchina29.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina29;
/// <summary>
/// Controllo Mod_statoMacchina30.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina30;
/// <summary>
/// Controllo Mod_statoMacchina41.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina41;
/// <summary>
/// Controllo Mod_statoMacchina42.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina42;
/// <summary>
/// Controllo Mod_statoMacchina43.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina43;
/// <summary>
/// Controllo Mod_statoMacchina44.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina44;
/// <summary>
/// Controllo Mod_statoMacchina45.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina45;
/// <summary>
/// Controllo Mod_statoMacchina46.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina46;
/// <summary>
/// Controllo Mod_statoMacchina47.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina47;
/// <summary>
/// Controllo Mod_statoMacchina48.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina48;
/// <summary>
/// Controllo Mod_statoMacchina49.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina49;
/// <summary>
/// Controllo Mod_statoMacchina50.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MP_SITE.WebUserControls.mod_statoMacchina Mod_statoMacchina50;
}
}
-8
View File
@@ -310,7 +310,6 @@
<Content Include="WebUserControls\mod_sequencerStatiJS.ascx" />
<Content Include="WebUserControls\mod_sequencerTempiCiclo.ascx" />
<Content Include="WebUserControls\mod_statoMacchina.ascx" />
<Content Include="WebUserControls\mod_statoMacchine.ascx" />
<Content Include="WS\AutoCompletamento.asmx" />
<Content Include="WS\MPData.asmx" />
<Content Include="images\semafori.xcf" />
@@ -766,13 +765,6 @@
<Compile Include="WebUserControls\mod_statoMacchina.ascx.designer.cs">
<DependentUpon>mod_statoMacchina.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_statoMacchine.ascx.cs">
<DependentUpon>mod_statoMacchine.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_statoMacchine.ascx.designer.cs">
<DependentUpon>mod_statoMacchine.ascx</DependentUpon>
</Compile>
<Compile Include="WS\AutoCompletamento.asmx.cs">
<DependentUpon>AutoCompletamento.asmx</DependentUpon>
<SubType>Component</SubType>
@@ -28,7 +28,7 @@ namespace MP_SITE.WebUserControls
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
updateMe();
//updateMe();
}
/// <summary>
/// aggiorna controllo
@@ -36,21 +36,28 @@ namespace MP_SITE.WebUserControls
public void updateMe()
{
//SE E SOLO SE ho una macchina e/o locazione...
if (IdxMacchina != "")
if (!string.IsNullOrEmpty(IdxMacchina))
{
// effettua update visualizzazione
retrieveData();
updateLayout();
updateText();
updateImg();
updateHL();
// controllo se link attivo...
if (!_linkActive)
try
{
valMacchina.Enabled = false;
retrieveData();
updateLayout();
updateText();
updateImg();
updateHL();
// controllo se link attivo...
if (!_linkActive)
{
valMacchina.Enabled = false;
}
//logger.lg.scriviLog(string.Format("Retrieve: {0}", DateTime.Now.Subtract(tick).Milliseconds), tipoLog.INFO);
divSegnaposto.Visible = false;
}
catch (Exception exc)
{
logger.lg.scriviLog($"Eccezione in fase popolamento statoMacchina per IdxMacchina {IdxMacchina} - locazione {locazione}{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
}
//logger.lg.scriviLog(string.Format("Retrieve: {0}", DateTime.Now.Subtract(tick).Milliseconds), tipoLog.INFO);
divSegnaposto.Visible = false;
}
else
{
@@ -299,8 +306,10 @@ namespace MP_SITE.WebUserControls
answ = (lastKA.AddMinutes(minuti) < DateTime.Now);
}
}
catch
{ }
catch (Exception exc)
{
logger.lg.scriviLog($"Eccezione in updateHL per IdxMacchina {IdxMacchina} - locazione {locazione}{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
}
}
}
hlComWarning.Visible = answ;
@@ -352,6 +361,7 @@ namespace MP_SITE.WebUserControls
}
_IdxMacchina = value;
_locazione = resoconti.mngr.locazioneDaIdx(_IdxMacchina);
updateMe();
}
}
/// <summary>
@@ -373,6 +383,7 @@ namespace MP_SITE.WebUserControls
try
{
_IdxMacchina = resoconti.mngr.idxDaLocazione(_locazione);
updateMe();
}
catch
{