Eliminazione componenti desueti da ADM

This commit is contained in:
Samuele E. Locatelli
2018-10-19 21:20:58 +02:00
parent cb350c6e85
commit f2e31570db
15 changed files with 0 additions and 927 deletions
-5
View File
@@ -1,5 +0,0 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="ResetDb.aspx.cs" Inherits="MoonPro_site.ResetDb" %>
<%@ Register src="WebUserControls/mod_resetDb.ascx" tagname="mod_resetDb" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc1:mod_resetDb ID="mod_resetDb1" runat="server" />
</asp:Content>
-12
View File
@@ -1,12 +0,0 @@
using System;
namespace MoonPro_site
{
public partial class ResetDb : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
-26
View File
@@ -1,26 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MoonPro_site
{
public partial class ResetDb {
/// <summary>
/// mod_resetDb1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::MoonPro_site.WebUserControls.mod_resetDb mod_resetDb1;
}
}
-25
View File
@@ -1,25 +0,0 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_resetDb.ascx.cs"
Inherits="MoonPro_site.WebUserControls.mod_resetDb" %>
<h1>
Reset DB</h1>
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Panel ID="pnlUpload" Visible="false" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Reset DB" />
</td>
</tr>
</table>
</asp:Panel>
</td>
<td valign="top">
<asp:Panel ID="pnlPasswd" runat="server" Visible="true">
Password di autorizzazione:&nbsp;<asp:TextBox ID="txtPwd" runat="server" TextMode="Password"
AutoPostBack="true" OnTextChanged="txtPwd_TextChanged"></asp:TextBox>
</asp:Panel>
</td>
</tr>
</table>
@@ -1,48 +0,0 @@
using System;
using System.Configuration;
namespace MoonPro_site.WebUserControls
{
public partial class mod_resetDb : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
checkAuth();
}
private void checkAuth()
{
// se in session è auth alora mostro pannello caricamento..
if (Convert.ToBoolean(Session["isAuthResetDb"]))
{
pnlUpload.Visible = true;
pnlPasswd.Visible = false;
}
else
{
pnlUpload.Visible = false;
pnlPasswd.Visible = true;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
// eseguo la stored di refresh del db
utility.obj.resetDb();
}
protected void txtPwd_TextChanged(object sender, EventArgs e)
{
string _pwdOk = ConfigurationManager.AppSettings.Get("_pdwRefreshDb");
// verifico la password ed eventualmente mostro pannello caricamento..
if (txtPwd.Text != "" && txtPwd.Text == _pwdOk)
{
Session["isAuthResetDb"] = true;
checkAuth();
}
else
{
Session["isAuthResetDb"] = false;
checkAuth();
}
}
}
}
-53
View File
@@ -1,53 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace MoonPro_site.WebUserControls
{
public partial class mod_resetDb {
/// <summary>
/// pnlUpload control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlUpload;
/// <summary>
/// Button1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button Button1;
/// <summary>
/// pnlPasswd control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlPasswd;
/// <summary>
/// txtPwd control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtPwd;
}
}
-25
View File
@@ -1,25 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="riepilogo" Title="MPADM - Riepilogo" Codebehind="riepilogo.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:GridView id="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" CellPadding="4" DataKeyNames="IdxMacchina" DataSourceID="ObjectDataSource1"
ForeColor="#333333" GridLines="None">
<footerstyle backcolor="#990000" font-bold="True" forecolor="White" />
<columns>
<asp:BoundField ReadOnly="True" DataField="IdxMacchina" SortExpression="IdxMacchina" HeaderText="IdxMacchina"></asp:BoundField>
<asp:BoundField DataField="CodMacchina" SortExpression="CodMacchina" HeaderText="CodMacchina"></asp:BoundField>
<asp:BoundField DataField="Nome" SortExpression="Nome" HeaderText="Nome"></asp:BoundField>
<asp:BoundField DataField="Descrizione" SortExpression="Descrizione" HeaderText="Descrizione"></asp:BoundField>
<asp:BoundField DataField="numEventi" SortExpression="numEventi" HeaderText="numEventi"></asp:BoundField>
<asp:BoundField DataField="numStati" SortExpression="numStati" HeaderText="numStati"></asp:BoundField>
</columns>
<rowstyle backcolor="#FFFBD6" forecolor="#333333" />
<selectedrowstyle backcolor="#FFCC66" font-bold="True" forecolor="Navy" />
<pagerstyle backcolor="#FFCC66" forecolor="#333333" horizontalalign="Center" />
<headerstyle backcolor="#990000" font-bold="True" forecolor="White" />
<alternatingrowstyle backcolor="White" />
</asp:GridView>
<asp:ObjectDataSource id="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetData" TypeName="MapoDb.DS_applicazioneTableAdapters.v_riepilogoDatiTableAdapter">
</asp:ObjectDataSource>
</asp:Content>
-9
View File
@@ -1,9 +0,0 @@
using System;
public partial class riepilogo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
-31
View File
@@ -1,31 +0,0 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
public partial class riepilogo {
/// <summary>
/// Controllo GridView1.
/// </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.GridView GridView1;
/// <summary>
/// Controllo ObjectDataSource1.
/// </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 ObjectDataSource1;
}
-91
View File
@@ -1,91 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true"
Inherits="rigenDiario" Title="MPADM | Rigen DDB" Codebehind="rigenDiario.aspx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table>
<tr>
<td colspan="3">
Macchina da elaborare:
<asp:DropDownList id="dl_idxMacchina" runat="server" DataSourceID="odsMacchine" DataTextField="Nome" DataValueField="IdxMacchina">
</asp:DropDownList>
<asp:ObjectDataSource id="odsMacchine" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetData" TypeName="MapoDb.DS_applicazioneTableAdapters.MacchineTableAdapter"></asp:ObjectDataSource></td>
<td>
dal:
<asp:TextBox id="txtDal" runat="server" >01/01/2007</asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDal" Format="dd/MM/yyyy" FirstDayOfWeek="Monday">
</asp:CalendarExtender>
</td>
<td>
al:
<asp:TextBox id="txtAl" runat="server">31/12/2007</asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtAl" Format="dd/MM/yyyy" FirstDayOfWeek="Monday">
</asp:CalendarExtender>
</td>
</tr>
<tr style="background-color:Maroon; font-weight:bold; color:Yellow;">
<td>
Tabella
</td>
<td>
Tot righe
</td>
<td>
Righe fermo generico
</td>
<td>
Righe lavora
</td>
<td>
Righe CambioPallet
</td>
</tr>
<tr>
<td style="font-weight:bold; ">
Stati
</td>
<td>
<asp:Label id="lblTotStati" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblRigheFermoGen" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblRigheLav" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblRigheCP" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="font-weight:bold; ">
Eventi
</td>
<td>
<asp:Label id="lblTotEventi" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblEventiFermoGen" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblEventiLav" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblEventiCP" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td colspan="3">
<asp:Button id="btnStep1" runat="server" OnClick="btnStep1_Click" Text="Rigenera Stati" />
(rigenerazione righe diario di bordo da lista eventi)</td>
<td colspan="2">
<asp:Label id="lblStep1" runat="server"></asp:Label>
</td>
</tr>
</table>
</asp:Content>
-35
View File
@@ -1,35 +0,0 @@
using MapoDb;
using SteamWare;
using System;
public partial class rigenDiario : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
inizializzaTab();
}
private void inizializzaTab()
{
// carico i dati nella tab...
lblTotStati.Text = DataLayer.obj.taStati.ContaTutti().ToString();
lblTotEventi.Text = DataLayer.obj.taEventi.ContaTutti().ToString();
lblRigheFermoGen.Text = DataLayer.obj.taStati.ContaStato(12).ToString();
lblRigheLav.Text = DataLayer.obj.taStati.ContaStato(13).ToString();
lblRigheCP.Text = DataLayer.obj.taStati.ContaStato(14).ToString();
lblEventiFermoGen.Text = DataLayer.obj.taEventi.ContaTipo(15).ToString();
lblEventiLav.Text = (Convert.ToInt32(DataLayer.obj.taEventi.ContaTipo(16)) + Convert.ToInt32(DataLayer.obj.taEventi.ContaTipo(21))).ToString();
lblEventiCP.Text = (Convert.ToInt32(DataLayer.obj.taEventi.ContaTipo(17)) + Convert.ToInt32(DataLayer.obj.taEventi.ContaTipo(22))).ToString();
}
protected void btnStep1_Click(object sender, EventArgs e)
{
MapoDb.MapoDb MapoObj = new MapoDb.MapoDb();
intervalloDate _intervallo = new intervalloDate();
_intervallo.inizio = Convert.ToDateTime(txtDal.Text);
_intervallo.fine = ((DateTime)Convert.ToDateTime(txtAl.Text)).Date.AddDays(1).AddMinutes(-1);
MapoObj.rigeneraDiarioDiBordo(dl_idxMacchina.SelectedValue, _intervallo.inizio, _intervallo.fine);
inizializzaTab();
}
}
-157
View File
@@ -1,157 +0,0 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
public partial class rigenDiario {
/// <summary>
/// Controllo dl_idxMacchina.
/// </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 dl_idxMacchina;
/// <summary>
/// Controllo odsMacchine.
/// </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 odsMacchine;
/// <summary>
/// Controllo txtDal.
/// </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.TextBox txtDal;
/// <summary>
/// Controllo CalendarExtender1.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
/// <summary>
/// Controllo txtAl.
/// </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.TextBox txtAl;
/// <summary>
/// Controllo CalendarExtender2.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
/// <summary>
/// Controllo lblTotStati.
/// </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.Label lblTotStati;
/// <summary>
/// Controllo lblRigheFermoGen.
/// </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.Label lblRigheFermoGen;
/// <summary>
/// Controllo lblRigheLav.
/// </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.Label lblRigheLav;
/// <summary>
/// Controllo lblRigheCP.
/// </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.Label lblRigheCP;
/// <summary>
/// Controllo lblTotEventi.
/// </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.Label lblTotEventi;
/// <summary>
/// Controllo lblEventiFermoGen.
/// </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.Label lblEventiFermoGen;
/// <summary>
/// Controllo lblEventiLav.
/// </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.Label lblEventiLav;
/// <summary>
/// Controllo lblEventiCP.
/// </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.Label lblEventiCP;
/// <summary>
/// Controllo btnStep1.
/// </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.Button btnStep1;
/// <summary>
/// Controllo lblStep1.
/// </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.Label lblStep1;
}
-111
View File
@@ -1,111 +0,0 @@
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true"
Inherits="ripulisciDb" Title="MPADM | DbMaint" Codebehind="ripulisciDb.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table>
<tr style="background-color:Maroon; font-weight:bold; color:Yellow;">
<td>
Tabella
</td>
<td>
Tot righe
</td>
<td>
Righe fermo generico
</td>
<td>
Righe lavora
</td>
<td>
Righe CambioPallet
</td>
</tr>
<tr>
<td style="font-weight:bold; ">
Stati
</td>
<td>
<asp:Label id="lblTotStati" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblRigheFermoGen" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblRigheLav" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblRigheCP" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td style="font-weight:bold; ">
Eventi
</td>
<td>
<asp:Label id="lblTotEventi" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblEventiFermoGen" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblEventiLav" runat="server"></asp:Label>
</td>
<td>
<asp:Label id="lblEventiCP" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td colspan="5">
Macchina da elaborare:
<asp:DropDownList id="dl_idxMacchina" runat="server">
<asp:ListItem Selected="True" Value="1">Caber 1</asp:ListItem>
<asp:ListItem Value="2">Caber 2</asp:ListItem>
<asp:ListItem Value="110">Sintesy L11 (13/12 -> 12)</asp:ListItem>
<asp:ListItem Value="210">Sintesy L11 (12/15 -> 15)</asp:ListItem>
<asp:ListItem Value="310">Sintesy L11 (14/15 -> 15)</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td colspan="2">
<asp:Button id="btnStep1" runat="server" OnClick="btnStep1_Click" Text="Esegui step 1" />
(conversione)</td>
<td colspan="3">
<asp:Label id="lblStep1" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button id="btnStep2" runat="server" OnClick="btnStep2_Click" Text="Esegui step 2" />
(elim stati)</td>
<td colspan="3">
<asp:Label id="lblStep2" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button id="btnStep3" runat="server" OnClick="btnStep3_Click" Text="Esegui step 3" />
(elim eventi)</td>
<td colspan="3">
<asp:Label id="lblStep3" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button id="btnStep4" runat="server" OnClick="btnStep4_Click" Text="Esegui step 4" />
(elim eventi SOLO 16-17 Caber)</td>
<td colspan="3">
<asp:Label id="lblStep4" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button id="btnStep5" runat="server" OnClick="btnStep5_Click" Text="Esegui step 5" />
(elim eventi SOLO 16-15 Sintesy)</td>
<td colspan="3">
<asp:Label id="lblStep5" runat="server"></asp:Label>
</td>
</tr>
</table>
</asp:Content>
-115
View File
@@ -1,115 +0,0 @@
using MapoDb;
using System;
public partial class ripulisciDb : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
inizializzaTab();
}
private void inizializzaTab()
{
// carico i dati nella tab...
lblTotStati.Text = DataLayer.obj.taStati.ContaTutti().ToString();
lblTotEventi.Text = DataLayer.obj.taEventi.ContaTutti().ToString();
lblRigheFermoGen.Text = DataLayer.obj.taStati.ContaStato(12).ToString();
lblRigheLav.Text = DataLayer.obj.taStati.ContaStato(13).ToString();
lblRigheCP.Text = DataLayer.obj.taStati.ContaStato(14).ToString();
lblEventiFermoGen.Text = DataLayer.obj.taEventi.ContaTipo(15).ToString();
lblEventiLav.Text = DataLayer.obj.taEventi.ContaTipo(16).ToString();
lblEventiCP.Text = DataLayer.obj.taEventi.ContaTipo(17).ToString();
}
protected void btnStep1_Click(object sender, EventArgs e)
{
if (dl_idxMacchina.SelectedValue == "1" || dl_idxMacchina.SelectedValue == "2")
{
utility.obj.ripulisciStepOne(dl_idxMacchina.SelectedValue, 13, 14, 17);
}
else if (dl_idxMacchina.SelectedValue == "110")
{
// tra stato 13 e 12 ---> stato 12 ( fermo generico )
// eventi: 15/16 --> 15
utility.obj.ripulisciStepOne("10", 13, 12, 15);
}
else if (dl_idxMacchina.SelectedValue == "210")
{
// tra stato 12 e 15 ---> stato 15 ( allarma CN )
// eventi: 15/18 --> 18
utility.obj.ripulisciStepOne("10", 12, 15, 18);
}
else if (dl_idxMacchina.SelectedValue == "310")
{
// tra stato 14 e 15 ---> stato 15 ( allarma CN )
// eventi: 17/18 --> 18
utility.obj.ripulisciStepOne("10", 14, 15, 18);
}
inizializzaTab();
}
protected void btnStep2_Click(object sender, EventArgs e)
{
if (dl_idxMacchina.SelectedValue == "1" || dl_idxMacchina.SelectedValue == "2")
{
utility.obj.ripulisciStepTwo(dl_idxMacchina.SelectedValue, 14);
}
else if (dl_idxMacchina.SelectedValue == "110")
{
// tra stato 13 e 12 ---> stato 12 ( fermo generico )
// eventi: 15/16 --> 15
utility.obj.ripulisciStepTwo("10", 12);
}
else if (dl_idxMacchina.SelectedValue == "210")
{
// tra stato 12 e 15 ---> stato 15 ( allarma CN )
// eventi: 15/18 --> 18
utility.obj.ripulisciStepTwo("10", 15);
}
else if (dl_idxMacchina.SelectedValue == "310")
{
// tra stato 14 e 15 ---> stato 15 ( allarma CN )
// eventi: 17/18 --> 18
utility.obj.ripulisciStepTwo("10", 15);
}
inizializzaTab();
}
protected void btnStep3_Click(object sender, EventArgs e)
{
if (dl_idxMacchina.SelectedValue == "1" || dl_idxMacchina.SelectedValue == "2")
{
utility.obj.ripulisciStepThree(dl_idxMacchina.SelectedValue, 17);
}
else if (dl_idxMacchina.SelectedValue == "110")
{
// tra stato 13 e 12 ---> stato 12 ( fermo generico )
// eventi: 15/16 --> 15
utility.obj.ripulisciStepThree("10", 15);
}
else if (dl_idxMacchina.SelectedValue == "210")
{
// tra stato 12 e 15 ---> stato 15 ( allarma CN )
// eventi: 15/18 --> 18
utility.obj.ripulisciStepThree("10", 18);
}
else if (dl_idxMacchina.SelectedValue == "310")
{
// tra stato 14 e 15 ---> stato 15 ( allarma CN )
// eventi: 17/18 --> 18
utility.obj.ripulisciStepThree("10", 18);
}
inizializzaTab();
}
protected void btnStep4_Click(object sender, EventArgs e)
{
utility.obj.ripulisciStepFour("1", 16, 17);
utility.obj.ripulisciStepFour("1", 16, 16);
utility.obj.ripulisciStepFour("2", 16, 17);
utility.obj.ripulisciStepFour("2", 16, 16);
inizializzaTab();
}
protected void btnStep5_Click(object sender, EventArgs e)
{
utility.obj.ripulisciStepFive("10", 16, 15);
inizializzaTab();
}
}
-184
View File
@@ -1,184 +0,0 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
public partial class ripulisciDb {
/// <summary>
/// Controllo lblTotStati.
/// </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.Label lblTotStati;
/// <summary>
/// Controllo lblRigheFermoGen.
/// </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.Label lblRigheFermoGen;
/// <summary>
/// Controllo lblRigheLav.
/// </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.Label lblRigheLav;
/// <summary>
/// Controllo lblRigheCP.
/// </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.Label lblRigheCP;
/// <summary>
/// Controllo lblTotEventi.
/// </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.Label lblTotEventi;
/// <summary>
/// Controllo lblEventiFermoGen.
/// </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.Label lblEventiFermoGen;
/// <summary>
/// Controllo lblEventiLav.
/// </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.Label lblEventiLav;
/// <summary>
/// Controllo lblEventiCP.
/// </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.Label lblEventiCP;
/// <summary>
/// Controllo dl_idxMacchina.
/// </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 dl_idxMacchina;
/// <summary>
/// Controllo btnStep1.
/// </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.Button btnStep1;
/// <summary>
/// Controllo lblStep1.
/// </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.Label lblStep1;
/// <summary>
/// Controllo btnStep2.
/// </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.Button btnStep2;
/// <summary>
/// Controllo lblStep2.
/// </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.Label lblStep2;
/// <summary>
/// Controllo btnStep3.
/// </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.Button btnStep3;
/// <summary>
/// Controllo lblStep3.
/// </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.Label lblStep3;
/// <summary>
/// Controllo btnStep4.
/// </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.Button btnStep4;
/// <summary>
/// Controllo lblStep4.
/// </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.Label lblStep4;
/// <summary>
/// Controllo btnStep5.
/// </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.Button btnStep5;
/// <summary>
/// Controllo lblStep5.
/// </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.Label lblStep5;
}