Merge branch 'develop' into SDK
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
|
||||
</ApplicationInsights>
|
||||
+24
-24
@@ -3,30 +3,30 @@ using System;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class BCode : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class BCode : BasePage
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmBCode_CodPre");
|
||||
mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR";
|
||||
mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre;
|
||||
mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase");
|
||||
mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo");
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmBCode_CodPre");
|
||||
mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR";
|
||||
mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre;
|
||||
mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase");
|
||||
mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo");
|
||||
}
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmBCodeEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione BarCode disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmBCodeEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione BarCode disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class Barcode : System.Web.UI.Page
|
||||
public partial class Barcode : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public class BasePage : System.Web.UI.Page
|
||||
{
|
||||
/// <summary>
|
||||
/// Prox pagina da aprire
|
||||
/// </summary>
|
||||
protected string _nextPage
|
||||
{
|
||||
get
|
||||
{
|
||||
string pagina = memLayer.ML.StringSessionObj("nextPage");
|
||||
if (pagina == "")
|
||||
{
|
||||
pagina = "menu.aspx";
|
||||
}
|
||||
return pagina;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
internal DataLayer DataLayerObj = new DataLayer();
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
using MapoDb;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public class BaseUserControl : System.Web.UI.UserControl
|
||||
{
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_nuovoValore;
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_selValore;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Solleva evento nuovo valore
|
||||
/// </summary>
|
||||
public void raiseNewVal()
|
||||
{
|
||||
// evento come nuovo...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
public void raiseSelNew()
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selValore != null)
|
||||
{
|
||||
eh_selValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Solleva evento reset
|
||||
/// </summary>
|
||||
public void raiseReset()
|
||||
{
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico NON singleton x scalare
|
||||
/// </summary>
|
||||
internal DataLayer DataLayerObj = new DataLayer();
|
||||
|
||||
/// <summary>
|
||||
/// UID formattato con "_"
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// titolo pagina
|
||||
/// </summary>
|
||||
public string titolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
|
||||
}
|
||||
}
|
||||
|
||||
#region utils
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// formatta in minuti/sec partendo da min.cent
|
||||
/// </summary>
|
||||
/// <param name="minCent"></param>
|
||||
/// <returns></returns>
|
||||
public string minSec(object minCent)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format("{0:mm}:{0:ss}", minCent2Sec(Convert.ToDecimal(minCent.ToString().Replace(".", ","))));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// conversione da tempo minuti centesimali a minuti/secondi
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
protected TimeSpan minCent2Sec(decimal valore)
|
||||
{
|
||||
TimeSpan answ = new TimeSpan(0, 0, 1);
|
||||
try
|
||||
{
|
||||
answ = new TimeSpan(0, Convert.ToInt32(valore), Convert.ToInt32((valore - Convert.ToInt32(valore)) * 60));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+22
-22
@@ -3,28 +3,28 @@ using System;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class CTrackBCode : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class CTrackBCode : BasePage
|
||||
{
|
||||
((MoonPro)this.Master).headCssClass = "bg-secondary text-warning";
|
||||
((MoonPro)this.Master).mainCssClass = "table-secondary";
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmCTrack_CodPre");
|
||||
mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR";
|
||||
mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptCTrack_enbSelFase");
|
||||
mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptCTrack_CodGruppo");
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
((MoonPro)this.Master).headCssClass = "bg-secondary text-warning";
|
||||
((MoonPro)this.Master).mainCssClass = "table-secondary";
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmCTrack_CodPre");
|
||||
mod_barcode.codOrdPre = codPre != "" ? codPre : "OPR";
|
||||
mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptCTrack_enbSelFase");
|
||||
mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptCTrack_CodGruppo");
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmCTrackEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione CTrack disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmCTrackEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione CTrack disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
}
|
||||
+31
-35
@@ -4,43 +4,39 @@ using System;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class DataImport : System.Web.UI.Page
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class DataImport : BasePage
|
||||
{
|
||||
checkEnabled();
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
checkEnabled();
|
||||
}
|
||||
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmDB_IS_EnabFileImp");
|
||||
lbtProImportIS.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: import disabilitato";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmDB_IS_EnabFileImp");
|
||||
lbtProImportIS.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: import disabilitato";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Esegue import dati
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtProImportIS_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool OptAdmDB_IS_EnabFileImp = memLayer.ML.CRB("OptAdmDB_IS_EnabFileImp");
|
||||
// se abilitato...
|
||||
if (OptAdmDB_IS_EnabFileImp)
|
||||
{
|
||||
// chiamo import...
|
||||
DataLayerObj.taWKS.All_ImportFile_Process(null, null, null, null, 0, 0);
|
||||
}
|
||||
/// <summary>
|
||||
/// Esegue import dati
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtProImportIS_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool OptAdmDB_IS_EnabFileImp = memLayer.ML.CRB("OptAdmDB_IS_EnabFileImp");
|
||||
// se abilitato...
|
||||
if (OptAdmDB_IS_EnabFileImp)
|
||||
{
|
||||
// chiamo import...
|
||||
DataLayerObj.taWKS.All_ImportFile_Process(null, null, null, null, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class _Default : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class _Default : System.Web.UI.Page
|
||||
{
|
||||
Response.Redirect("./login.aspx");
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("./login.aspx");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+55
-55
@@ -3,65 +3,65 @@ using System;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class GestKIT : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class GestKIT : BasePage
|
||||
{
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmKit_CodPre");
|
||||
mod_barcode.codOrdPre = codPre != "" ? codPre : "KIT";
|
||||
mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre;
|
||||
mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase");
|
||||
mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo");
|
||||
mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato;
|
||||
mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead;
|
||||
mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit;
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmKit_CodPre");
|
||||
mod_barcode.codOrdPre = codPre != "" ? codPre : "KIT";
|
||||
mod_gestPromODL.codOrdPre = mod_barcode.codOrdPre;
|
||||
mod_gestPromODL.enableSelFase = memLayer.ML.CRB("OptBCode_enbSelFase");
|
||||
mod_gestPromODL.CodGruppo = memLayer.ML.CRS("OptBCode_CodGruppo");
|
||||
mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato;
|
||||
mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead;
|
||||
mod_gestKIT.eh_selKit += Mod_gestKIT_eh_selKit;
|
||||
}
|
||||
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmKitEnabled");
|
||||
divContent.Visible = optPar;
|
||||
lblDataImportOut.Visible = !optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione KIT disabilitata";
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmKitEnabled");
|
||||
divContent.Visible = optPar;
|
||||
lblDataImportOut.Visible = !optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione KIT disabilitata";
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
|
||||
private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
|
||||
{
|
||||
// invio ultimo kit creato a barcode...
|
||||
mod_barcode.BCodeVal = mod_gestKIT.lastKitMade;
|
||||
mod_barcode.processInput();
|
||||
}
|
||||
private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
|
||||
{
|
||||
// invio ultimo kit creato a barcode...
|
||||
mod_barcode.BCodeVal = mod_gestKIT.lastKitMade;
|
||||
mod_barcode.processInput();
|
||||
}
|
||||
|
||||
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
|
||||
{
|
||||
// verifico input su KIT x lettura "grezza"
|
||||
string rawInput = mod_barcode.rawInput;
|
||||
mod_gestKIT.lastInput = rawInput;
|
||||
mod_gestKIT.doUpdate();
|
||||
}
|
||||
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
|
||||
{
|
||||
// verifico input su KIT x lettura "grezza"
|
||||
string rawInput = mod_barcode.rawInput;
|
||||
mod_gestKIT.lastInput = rawInput;
|
||||
mod_gestKIT.doUpdate();
|
||||
}
|
||||
|
||||
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
|
||||
{
|
||||
// verifico input su KIT x comando completo
|
||||
string BCodeVal = mod_barcode.BCodeVal;
|
||||
// se è un ORDINE... procedo!
|
||||
if (BCodeVal.IndexOf("OPR") == 0)
|
||||
{
|
||||
// aggiungo ordine...
|
||||
mod_gestKIT.addOrdArt(mod_barcode.codOrd, mod_barcode.codArt, mod_barcode.descArt, mod_barcode.qta);
|
||||
mod_gestKIT.lastInput = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_gestKIT.lastInput = mod_barcode.BCodeVal;
|
||||
}
|
||||
mod_gestKIT.doUpdate();
|
||||
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
|
||||
{
|
||||
// verifico input su KIT x comando completo
|
||||
string BCodeVal = mod_barcode.BCodeVal;
|
||||
// se è un ORDINE... procedo!
|
||||
if (BCodeVal.IndexOf("OPR") == 0)
|
||||
{
|
||||
// aggiungo ordine...
|
||||
mod_gestKIT.addOrdArt(mod_barcode.codOrd, mod_barcode.codArt, mod_barcode.descArt, mod_barcode.qta);
|
||||
mod_gestKIT.lastInput = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_gestKIT.lastInput = mod_barcode.BCodeVal;
|
||||
}
|
||||
mod_gestKIT.doUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,11 +7,11 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class HwSwInfo : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class HwSwInfo : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -282,9 +282,6 @@
|
||||
<Content Include="GestKIT.aspx" />
|
||||
<Content Include="gestPromesseODL.aspx" />
|
||||
<Content Include="Global.asax" />
|
||||
<Content Include="ApplicationInsights.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="help\content_style\content.css" />
|
||||
<Content Include="help\content_style\images\accordion_arrow.gif" />
|
||||
<Content Include="help\content_style\images\ExcursusBack.gif" />
|
||||
@@ -655,6 +652,12 @@
|
||||
<Compile Include="Barcode.aspx.designer.cs">
|
||||
<DependentUpon>Barcode.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BasePage.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BaseUserControl.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BCode.aspx.cs">
|
||||
<DependentUpon>BCode.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
+72
-72
@@ -3,98 +3,98 @@ using System;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class Planner : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class Planner : BasePage
|
||||
{
|
||||
if(!Page.IsPostBack)
|
||||
{
|
||||
toggleVisibility();
|
||||
}
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmKit_CodPre");
|
||||
mod_planStats.eh_reset += Mod_planStats_eh_reset;
|
||||
mod_planStats.eh_selVal += Mod_planStats_eh_selVal;
|
||||
mod_planCreate.eh_ucev += Mod_planCreate_eh_ucev;
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
toggleVisibility();
|
||||
}
|
||||
checkEnabled();
|
||||
string codPre = memLayer.ML.CRS("OptAdmKit_CodPre");
|
||||
mod_planStats.eh_reset += Mod_planStats_eh_reset;
|
||||
mod_planStats.eh_selVal += Mod_planStats_eh_selVal;
|
||||
mod_planCreate.eh_ucev += Mod_planCreate_eh_ucev;
|
||||
}
|
||||
|
||||
private void Mod_planCreate_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
// se trovo evento select/reset mostro/nascondo dettagli...
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.ReqUpdateParent:
|
||||
mod_planStats.doReset();
|
||||
mod_gestPromODL_OUT.resetSelezione();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void Mod_planCreate_eh_ucev(object sender, EventArgs e)
|
||||
{
|
||||
// se trovo evento select/reset mostro/nascondo dettagli...
|
||||
ucEvent evento = (ucEvent)e;
|
||||
switch (evento.tipoEvento)
|
||||
{
|
||||
case ucEvType.ReqUpdateParent:
|
||||
mod_planStats.doReset();
|
||||
mod_gestPromODL_OUT.resetSelezione();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected void lbtToggle_Click(object sender, EventArgs e)
|
||||
{
|
||||
toggleVisibility();
|
||||
}
|
||||
protected void lbtToggle_Click(object sender, EventArgs e)
|
||||
{
|
||||
toggleVisibility();
|
||||
}
|
||||
|
||||
private void toggleVisibility()
|
||||
{
|
||||
divPromOUT.Visible = !divPromOUT.Visible;
|
||||
tgIcon.Attributes["class"] = divPromOUT.Visible ? "fa fa-chevron-up" : "fa fa-chevron-down";
|
||||
}
|
||||
private void Mod_planStats_eh_selVal(object sender, EventArgs e)
|
||||
{
|
||||
fixSelStat();
|
||||
}
|
||||
private void toggleVisibility()
|
||||
{
|
||||
divPromOUT.Visible = !divPromOUT.Visible;
|
||||
tgIcon.Attributes["class"] = divPromOUT.Visible ? "fa fa-chevron-up" : "fa fa-chevron-down";
|
||||
}
|
||||
private void Mod_planStats_eh_selVal(object sender, EventArgs e)
|
||||
{
|
||||
fixSelStat();
|
||||
}
|
||||
|
||||
private void Mod_planStats_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
fixSelStat();
|
||||
}
|
||||
private void Mod_planStats_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
fixSelStat();
|
||||
}
|
||||
|
||||
protected void fixSelStat()
|
||||
{
|
||||
mod_planCreate.CodGruppo = mod_planStats.CodGruppo;
|
||||
mod_planCreate.IdxMacchina = mod_planStats.IdxMacchina;
|
||||
mod_planCreate.CodArticolo = mod_planStats.CodArticolo;
|
||||
mod_planCreate.doUpdate();
|
||||
}
|
||||
protected void fixSelStat()
|
||||
{
|
||||
mod_planCreate.CodGruppo = mod_planStats.CodGruppo;
|
||||
mod_planCreate.IdxMacchina = mod_planStats.IdxMacchina;
|
||||
mod_planCreate.CodArticolo = mod_planStats.CodArticolo;
|
||||
mod_planCreate.doUpdate();
|
||||
}
|
||||
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmKitEnabled");
|
||||
divContent.Visible = optPar;
|
||||
lblDataImportOut.Visible = !optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione KIT disabilitata";
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmKitEnabled");
|
||||
divContent.Visible = optPar;
|
||||
lblDataImportOut.Visible = !optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: Gestione KIT disabilitata";
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
|
||||
private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
|
||||
{
|
||||
private void Mod_gestKIT_eh_selKit(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
// invio ultimo kit creato a barcode...
|
||||
mod_barcode.BCodeVal = mod_gestKIT.lastKitMade;
|
||||
mod_barcode.processInput();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
|
||||
{
|
||||
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
// verifico input su KIT x lettura "grezza"
|
||||
string rawInput = mod_barcode.rawInput;
|
||||
mod_gestKIT.lastInput = rawInput;
|
||||
mod_gestKIT.doUpdate();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
|
||||
{
|
||||
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
// verifico input su KIT x comando completo
|
||||
string BCodeVal = mod_barcode.BCodeVal;
|
||||
@@ -111,6 +111,6 @@ namespace MP_ADM
|
||||
}
|
||||
mod_gestKIT.doUpdate();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class StoricoTC : System.Web.UI.Page
|
||||
public partial class StoricoTC : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
+356
-354
@@ -4,356 +4,358 @@
|
||||
https://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="elmah">
|
||||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
|
||||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<!--Redis conn-->
|
||||
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
|
||||
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false" />
|
||||
<add key="redisDb" value="1" />
|
||||
<!--altri parametri-->
|
||||
<add key="CodModulo" value="MoonPro" />
|
||||
<add key="cacheOnRedis" value="true" />
|
||||
<add key="maxAgeAppConf_min" value="5" />
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="logMitigSec" value="30" />
|
||||
<!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
|
||||
<add key="sqlLongCommandTimeout" value="600" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionStringIS" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Jetco;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionStringES3" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString" connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6.2" />
|
||||
<httpRuntime targetFramework="4.6.2" />
|
||||
<pages>
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Optimization" />
|
||||
</namespaces>
|
||||
<controls>
|
||||
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
|
||||
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /></controls>
|
||||
</pages>
|
||||
<httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
|
||||
</httpModules>
|
||||
<sessionState mode="Custom" customProvider="MySessionStateStore">
|
||||
<providers>
|
||||
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="MP_ADM" databaseId="1" />
|
||||
</providers>
|
||||
</sessionState></system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XmlSerializer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ValueTuple" publicKeyToken="CC7B13FFCD2DDD51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Timer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.RegularExpressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.Encoding.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.Encoding" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.SecureString" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Principal" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Cryptography.Algorithms" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Xml" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Json" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Numerics" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Resources.ResourceManager" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ObjectModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Requests" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.NetworkInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Queryable" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Expressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Globalization.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Globalization" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Dynamic.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Tools" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.StackTrace" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Debug" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Contracts" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Data.Common" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ComponentModel.EventBasedAsync" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ComponentModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Collections" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Collections.Concurrent" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.24.0.0" newVersion="0.24.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.webServer>
|
||||
<modules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
||||
<remove name="Session" />
|
||||
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
|
||||
</modules>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
</system.webServer>
|
||||
<elmah>
|
||||
<!--
|
||||
<configSections>
|
||||
<sectionGroup name="elmah">
|
||||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
|
||||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<!--Redis conn-->
|
||||
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
|
||||
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false" />
|
||||
<add key="redisDb" value="1" />
|
||||
<!--altri parametri-->
|
||||
<add key="CodModulo" value="MoonPro" />
|
||||
<add key="cacheOnRedis" value="true" />
|
||||
<add key="maxAgeAppConf_min" value="5" />
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="logMitigSec" value="30" />
|
||||
<!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
|
||||
<add key="sqlLongCommandTimeout" value="600" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionStringIS" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Jetco;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionStringES3" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString" connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.6.2" />
|
||||
<httpRuntime targetFramework="4.6.2" />
|
||||
<pages>
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Optimization" />
|
||||
</namespaces>
|
||||
<controls>
|
||||
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
|
||||
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
|
||||
</controls>
|
||||
</pages>
|
||||
<httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
|
||||
</httpModules>
|
||||
<sessionState mode="Custom" customProvider="MySessionStateStore">
|
||||
<providers>
|
||||
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="MP_ADM" databaseId="1" />
|
||||
</providers>
|
||||
</sessionState>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XmlSerializer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ValueTuple" publicKeyToken="CC7B13FFCD2DDD51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Timer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.RegularExpressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.Encoding.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.Encoding" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.SecureString" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Principal" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Cryptography.Algorithms" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Xml" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Json" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Numerics" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Resources.ResourceManager" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ObjectModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Requests" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.NetworkInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Queryable" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Expressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Globalization.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Globalization" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Dynamic.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Tools" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.StackTrace" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Debug" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Contracts" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Data.Common" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ComponentModel.EventBasedAsync" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ComponentModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Collections" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Collections.Concurrent" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.24.0.0" newVersion="0.24.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.webServer>
|
||||
<modules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
||||
<remove name="Session" />
|
||||
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
|
||||
</modules>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
</system.webServer>
|
||||
<elmah>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on remote access and securing ELMAH.
|
||||
-->
|
||||
<security allowRemoteAccess="false" />
|
||||
</elmah>
|
||||
<location path="elmah.axd" inheritInChildApplications="false">
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
||||
</httpHandlers>
|
||||
<!--
|
||||
<security allowRemoteAccess="false" />
|
||||
</elmah>
|
||||
<location path="elmah.axd" inheritInChildApplications="false">
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
||||
</httpHandlers>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on using ASP.NET authorization securing ELMAH.
|
||||
|
||||
@@ -362,11 +364,11 @@
|
||||
<deny users="*" />
|
||||
</authorization>
|
||||
-->
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</location>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</location>
|
||||
</configuration>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="True" Inherits="AjaxSimple" CodeBehind="AjaxSimple.master.cs" %>
|
||||
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagName="mod_menuBottom" TagPrefix="uc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagPrefix="uc1" TagName="mod_menuBottom" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
@@ -28,7 +29,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bottomWrite">
|
||||
<uc1:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
|
||||
<uc1:mod_menuBottom runat="server" id="mod_menuBottom" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
public partial class AjaxSimple : System.Web.UI.MasterPage
|
||||
{
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
Page.Title = SteamWare.memLayer.ML.CRS("_titoloPagina");
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
Page.Title = memLayer.ML.CRS("_titoloPagina");
|
||||
}
|
||||
}
|
||||
|
||||
+24
-23
@@ -1,49 +1,50 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class AjaxSimple {
|
||||
|
||||
public partial class AjaxSimple
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 control.
|
||||
/// Controllo form1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// sm control.
|
||||
/// Controllo sm.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.ScriptManager sm;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPlaceHolder1 control.
|
||||
/// Controllo ContentPlaceHolder1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.ContentPlaceHolder ContentPlaceHolder1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Mod_menuBottom1 control.
|
||||
/// Controllo mod_menuBottom.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_menuBottom Mod_menuBottom1;
|
||||
protected global::MP_ADM.WebUserControls.mod_menuBottom mod_menuBottom;
|
||||
}
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
namespace MP_ADM.WebMasterPages
|
||||
{
|
||||
public partial class Bootstrap : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class Bootstrap : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,82 +3,82 @@
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuTop.ascx" TagName="mod_menuTop" TagPrefix="uc1" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_pageTitleAndSearch.ascx" TagName="mod_pageTitleAndSearch"
|
||||
TagPrefix="uc3" %>
|
||||
TagPrefix="uc3" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagName="mod_ricercaGenerica"
|
||||
TagPrefix="uc4" %>
|
||||
TagPrefix="uc4" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_menuBottom.ascx" TagName="mod_menuBottom"
|
||||
TagPrefix="uc5" %>
|
||||
TagPrefix="uc5" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>MP-ADM: <%: SteamWare.devicesAuthProxy.getPage(Request.Url) %></title>
|
||||
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/Content/Style.min.css" rel="stylesheet" type="text/css" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="description" content="MP ADM" />
|
||||
<meta name="author" content="Steamware" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="~/favicon.ico" />
|
||||
<title>MP-ADM: <%: SteamWare.devicesAuthProxy.getPage(Request.Url) %></title>
|
||||
<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="~/Content/Style.min.css" rel="stylesheet" type="text/css" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="description" content="MP ADM" />
|
||||
<meta name="author" content="Steamware" />
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="~/favicon.ico" />
|
||||
|
||||
<%--
|
||||
--%>
|
||||
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
|
||||
<%: Scripts.Render("~/bundles/jquery") %>
|
||||
<%: Scripts.Render("~/bundles/jqueryui") %>
|
||||
</asp:PlaceHolder>
|
||||
<webopt:bundlereference id="BundleReference2" runat="server" path="~/Content/bootstrap" />
|
||||
<webopt:bundlereference id="BundleReference1" runat="server" path="~/Content/css" />
|
||||
<%--
|
||||
--%>
|
||||
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
|
||||
<%: Scripts.Render("~/bundles/jquery") %>
|
||||
<%: Scripts.Render("~/bundles/jqueryui") %>
|
||||
</asp:PlaceHolder>
|
||||
<webopt:bundlereference id="BundleReference2" runat="server" path="~/Content/bootstrap" />
|
||||
<webopt:bundlereference id="BundleReference1" runat="server" path="~/Content/css" />
|
||||
</head>
|
||||
<body class="body">
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
|
||||
<Scripts>
|
||||
<%--Framework Scripts--%>
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<%--<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
|
||||
<form id="form1" runat="server">
|
||||
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
|
||||
<Scripts>
|
||||
<%--Framework Scripts--%>
|
||||
<asp:ScriptReference Name="MsAjaxBundle" />
|
||||
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
|
||||
<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
|
||||
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
|
||||
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
|
||||
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
|
||||
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
|
||||
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
|
||||
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
|
||||
<asp:ScriptReference Name="WebFormsBundle" />
|
||||
<%--Site Scripts--%>
|
||||
</Scripts>
|
||||
</asp:ScriptManager>
|
||||
<%--<asp:ScriptManager ID="sm" runat="server" EnablePartialRendering="true" EnableScriptGlobalization="true" EnableScriptLocalization="true">
|
||||
</asp:ScriptManager>--%>
|
||||
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
|
||||
<div class="container-fluid mt-5">
|
||||
<div class="row py-2">
|
||||
<div class="col-12">
|
||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<div class="card">
|
||||
<div class='<%: "card-header " + headCssClass %>'>
|
||||
<div class="row">
|
||||
<div class="col-8 text-left">
|
||||
<uc3:mod_pageTitleAndSearch ID="Mod_pageTitleAndSearch1" runat="server" />
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
<uc4:mod_ricercaGenerica ID="Mod_ricercaGenerica1" runat="server" Visible="false" />
|
||||
</div>
|
||||
</div>
|
||||
<uc1:mod_menuTop ID="Mod_menuTop1" runat="server" />
|
||||
<div class="container-fluid mt-5">
|
||||
<div class="row py-2">
|
||||
<div class="col-12">
|
||||
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
||||
<ContentTemplate>
|
||||
<div class="card">
|
||||
<div class='<%: "card-header " + headCssClass %>'>
|
||||
<div class="row">
|
||||
<div class="col-8 text-left">
|
||||
<uc3:mod_pageTitleAndSearch ID="Mod_pageTitleAndSearch1" runat="server" />
|
||||
</div>
|
||||
<div class="col-4 text-right">
|
||||
<uc4:mod_ricercaGenerica ID="Mod_ricercaGenerica1" runat="server" Visible="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='<%: "card-body " + mainCssClass %>'>
|
||||
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
<div class='<%: "card-body " + mainCssClass %>'>
|
||||
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<uc5:mod_menuBottom ID="Mod_menuBottom1" runat="server" />
|
||||
</form>
|
||||
<uc5:mod_menuBottom runat="server" id="mod_menuBottom" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -3,37 +3,37 @@ using System;
|
||||
|
||||
public partial class MoonPro : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
protected string _mainCssClass;
|
||||
/// <summary>
|
||||
/// classe css area BODY
|
||||
/// </summary>
|
||||
public string mainCssClass
|
||||
{
|
||||
get
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
return _mainCssClass;
|
||||
}
|
||||
set
|
||||
protected string _mainCssClass;
|
||||
/// <summary>
|
||||
/// classe css area BODY
|
||||
/// </summary>
|
||||
public string mainCssClass
|
||||
{
|
||||
_mainCssClass = value;
|
||||
get
|
||||
{
|
||||
return _mainCssClass;
|
||||
}
|
||||
set
|
||||
{
|
||||
_mainCssClass = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
protected string _headCssClass;
|
||||
/// <summary>
|
||||
/// classe css area HEADER
|
||||
/// </summary>
|
||||
public string headCssClass
|
||||
{
|
||||
get
|
||||
protected string _headCssClass;
|
||||
/// <summary>
|
||||
/// classe css area HEADER
|
||||
/// </summary>
|
||||
public string headCssClass
|
||||
{
|
||||
return _headCssClass;
|
||||
get
|
||||
{
|
||||
return _headCssClass;
|
||||
}
|
||||
set
|
||||
{
|
||||
_headCssClass = value;
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
_headCssClass = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+16
-15
@@ -9,8 +9,9 @@
|
||||
|
||||
|
||||
|
||||
public partial class MoonPro {
|
||||
|
||||
public partial class MoonPro
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo PlaceHolder1.
|
||||
/// </summary>
|
||||
@@ -19,7 +20,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder PlaceHolder1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo BundleReference2.
|
||||
/// </summary>
|
||||
@@ -28,7 +29,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo BundleReference1.
|
||||
/// </summary>
|
||||
@@ -37,7 +38,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::Microsoft.AspNet.Web.Optimization.WebForms.BundleReference BundleReference1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo form1.
|
||||
/// </summary>
|
||||
@@ -46,7 +47,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ScriptManager1.
|
||||
/// </summary>
|
||||
@@ -55,7 +56,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.ScriptManager ScriptManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_menuTop1.
|
||||
/// </summary>
|
||||
@@ -63,8 +64,8 @@ public partial class MoonPro {
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonPro_site.WebUserControls.mod_menuTop Mod_menuTop1;
|
||||
|
||||
protected global::MP_ADM.WebUserControls.mod_menuTop Mod_menuTop1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo UpdatePanel1.
|
||||
/// </summary>
|
||||
@@ -73,7 +74,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel UpdatePanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_pageTitleAndSearch1.
|
||||
/// </summary>
|
||||
@@ -82,7 +83,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_pageTitleAndSearch Mod_pageTitleAndSearch1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_ricercaGenerica1.
|
||||
/// </summary>
|
||||
@@ -91,7 +92,7 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_ricercaGenerica Mod_ricercaGenerica1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ContentPlaceHolder1.
|
||||
/// </summary>
|
||||
@@ -100,13 +101,13 @@ public partial class MoonPro {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_menuBottom1.
|
||||
/// Controllo mod_menuBottom.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_menuBottom Mod_menuBottom1;
|
||||
protected global::MP_ADM.WebUserControls.mod_menuBottom mod_menuBottom;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
<h5 class="mb-1">Module</h5>
|
||||
</div>
|
||||
<p class="mb-1"><%: SteamWare.memLayer.ML.confReadString("CodModulo") %></p>
|
||||
<p class="mb-1"><%: memLayer.ML.confReadString("CodModulo") %></p>
|
||||
</div>
|
||||
<div class="list-group-item">
|
||||
<div class="d-flex w-100 justify-content-between">
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class cmp_HwSwInfo : System.Web.UI.UserControl
|
||||
public partial class cmp_HwSwInfo : BaseUserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_anagArticoli : System.Web.UI.UserControl
|
||||
public partial class mod_anagArticoli : BaseUserControl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
@@ -37,7 +37,7 @@ namespace MP_ADM.WebUserControls
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selValore != null)
|
||||
{
|
||||
@@ -167,7 +167,7 @@ namespace MP_ADM.WebUserControls
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
|
||||
@@ -6,161 +6,148 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_approvProd : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_approvProd : BaseUserControl
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziona/deseleziona le righe indicate...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSelAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
// seleziono tutti i valori visibili nel datagrid
|
||||
CheckBox chkbox = ((CheckBox)sender);
|
||||
bool isChecked = chkbox.Checked;
|
||||
if (!isChecked)
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnSelAll");
|
||||
}
|
||||
else
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnDeselAll");
|
||||
}
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// conferma dati produzione verso As400
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtApprovaProd_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
int IdxODL = 0;
|
||||
DateTime DataRif = DateTime.Now.Date;
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible)
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
try
|
||||
{
|
||||
IdxODL = Convert.ToInt32(((Label)riga.FindControl("lblIdxODL")).Text);
|
||||
DataRif = Convert.ToDateTime(((Label)riga.FindControl("lblDataRif")).Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
DataLayerObj.taAs400.insProdAs400(IdxODL, DataRif);
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// seleziona/deseleziona le righe indicate...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSelAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
// seleziono tutti i valori visibili nel datagrid
|
||||
CheckBox chkbox = ((CheckBox)sender);
|
||||
bool isChecked = chkbox.Checked;
|
||||
if (!isChecked)
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnSelAll");
|
||||
}
|
||||
else
|
||||
{
|
||||
chkbox.ToolTip = traduci("btnDeselAll");
|
||||
}
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
((CheckBox)riga.FindControl("chkSelect")).Checked = isChecked;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// conferma dati produzione verso As400
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtApprovaProd_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
int IdxODL = 0;
|
||||
DateTime DataRif = DateTime.Now.Date;
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible)
|
||||
{
|
||||
try
|
||||
{
|
||||
IdxODL = Convert.ToInt32(((Label)riga.FindControl("lblIdxODL")).Text);
|
||||
DataRif = Convert.ToDateTime(((Label)riga.FindControl("lblDataRif")).Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
DataLayerObj.taAs400.insProdAs400(IdxODL, DataRif);
|
||||
}
|
||||
}
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbt_Command(object sender, CommandEventArgs e)
|
||||
{
|
||||
memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int IdxODL = 0;
|
||||
DateTime DataRif = DateTime.Now.Date;
|
||||
try
|
||||
{
|
||||
IdxODL = Convert.ToInt32(grView.SelectedDataKey[0]);
|
||||
DataRif = Convert.ToDateTime(grView.SelectedDataKey[1]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// gestione buttons approvazione
|
||||
string _comando = "";
|
||||
if (memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
switch (_comando)
|
||||
{
|
||||
case "Approva":
|
||||
DataLayerObj.taAs400.insProdAs400(IdxODL, DataRif);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua caricamento interventi pending
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtImportPending_Click(object sender, EventArgs e)
|
||||
{
|
||||
// forzo rilettura dati da approvare...
|
||||
DataLayerObj.taAs400.ImportDati_ElencoConfermeProd();
|
||||
// update tab...
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbt_Command(object sender, CommandEventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int IdxODL = 0;
|
||||
DateTime DataRif = DateTime.Now.Date;
|
||||
try
|
||||
{
|
||||
IdxODL = Convert.ToInt32(grView.SelectedDataKey[0]);
|
||||
DataRif = Convert.ToDateTime(grView.SelectedDataKey[1]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// gestione buttons approvazione
|
||||
string _comando = "";
|
||||
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
switch (_comando)
|
||||
{
|
||||
case "Approva":
|
||||
DataLayerObj.taAs400.insProdAs400(IdxODL, DataRif);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua caricamento interventi pending
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtImportPending_Click(object sender, EventArgs e)
|
||||
{
|
||||
// forzo rilettura dati da approvare...
|
||||
DataLayerObj.taAs400.ImportDati_ElencoConfermeProd();
|
||||
// update tab...
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,167 +6,131 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_approvazioneODL : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_approvazioneODL : BaseUserControl
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 10;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(txtPageSize.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbt_Command(object sender, CommandEventArgs e)
|
||||
{
|
||||
memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(grView.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
MapoDb.DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByIdx(idxOdl, false)[0];
|
||||
// gestione buttons approvazione
|
||||
string _comando = "";
|
||||
if (memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
switch (_comando)
|
||||
{
|
||||
case "Approva":
|
||||
DataLayerObj.taODL.approvaTC(idxOdl, string.Format("{0}{1}Approvato da: {2}", rigaOdl.Note, Environment.NewLine, user_std.UtSn.CognomeNome), user_std.UtSn.CognomeNome, true);
|
||||
break;
|
||||
case "Rifiuta":
|
||||
DataLayerObj.taODL.approvaTC(idxOdl, string.Format("{0}{1}Rifiutato da: {2}", rigaOdl.Note, Environment.NewLine, user_std.UtSn.CognomeNome), user_std.UtSn.CognomeNome, false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
/// <summary>
|
||||
/// Classe css colore testo calcolato in abse ai TC
|
||||
/// </summary>
|
||||
/// <param name="_tcAssegnato"></param>
|
||||
/// <param name="_tcAttrezzato"></param>
|
||||
/// <returns></returns>
|
||||
public string cssFromTempi(object _tcAssegnato, object _tcAttrezzato)
|
||||
{
|
||||
string answ = "text-dark";
|
||||
double tcAssegnato = 0;
|
||||
double tcAttrezzato = 0;
|
||||
double.TryParse(_tcAssegnato.ToString(), out tcAssegnato);
|
||||
double.TryParse(_tcAttrezzato.ToString(), out tcAttrezzato);
|
||||
if (tcAttrezzato > tcAssegnato)
|
||||
{
|
||||
answ = "text-danger";
|
||||
}
|
||||
else
|
||||
if (tcAttrezzato < tcAssegnato)
|
||||
{
|
||||
answ = "text-success";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtPageSize.Text = value.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbt_Command(object sender, CommandEventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(grView.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
MapoDb.DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByIdx(idxOdl, false)[0];
|
||||
// gestione buttons approvazione
|
||||
string _comando = "";
|
||||
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
switch (_comando)
|
||||
{
|
||||
case "Approva":
|
||||
DataLayerObj.taODL.approvaTC(idxOdl, string.Format("{0}{1}Approvato da: {2}", rigaOdl.Note, Environment.NewLine, user_std.UtSn.CognomeNome), user_std.UtSn.CognomeNome, true);
|
||||
break;
|
||||
case "Rifiuta":
|
||||
DataLayerObj.taODL.approvaTC(idxOdl, string.Format("{0}{1}Rifiutato da: {2}", rigaOdl.Note, Environment.NewLine, user_std.UtSn.CognomeNome), user_std.UtSn.CognomeNome, false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio dim pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.PageSize = pageSize;
|
||||
}
|
||||
/// <summary>
|
||||
/// formatta in minuti/sec partendo da min.cent
|
||||
/// </summary>
|
||||
/// <param name="minCent"></param>
|
||||
/// <returns></returns>
|
||||
public string minSec(object minCent)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format("{0:mm}:{0:ss}", minCent2Sec(Convert.ToDecimal(minCent.ToString().Replace(".", ","))));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// conversione da tempo minuti centesimali a minuti/secondi
|
||||
/// </summary>
|
||||
/// <param name="valore"></param>
|
||||
/// <returns></returns>
|
||||
protected TimeSpan minCent2Sec(decimal valore)
|
||||
{
|
||||
TimeSpan answ = new TimeSpan(0, 0, 1);
|
||||
try
|
||||
{
|
||||
answ = new TimeSpan(0, Convert.ToInt32(valore), Convert.ToInt32((valore - Convert.ToInt32(valore)) * 60));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// Classe css colore testo calcolato in abse ai TC
|
||||
/// </summary>
|
||||
/// <param name="_tcAssegnato"></param>
|
||||
/// <param name="_tcAttrezzato"></param>
|
||||
/// <returns></returns>
|
||||
public string cssFromTempi(object _tcAssegnato, object _tcAttrezzato)
|
||||
{
|
||||
string answ = "text-dark";
|
||||
double tcAssegnato = 0;
|
||||
double tcAttrezzato = 0;
|
||||
double.TryParse(_tcAssegnato.ToString(), out tcAssegnato);
|
||||
double.TryParse(_tcAttrezzato.ToString(), out tcAttrezzato);
|
||||
if (tcAttrezzato > tcAssegnato)
|
||||
{
|
||||
answ = "text-danger";
|
||||
}
|
||||
else
|
||||
if (tcAttrezzato < tcAssegnato)
|
||||
{
|
||||
answ = "text-success";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_calChiusura" CodeBehind="mod_calChiusura.ascx.cs" %>
|
||||
Inherits="MP_ADM.WebUserControls.mod_calChiusura" CodeBehind="mod_calChiusura.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
DataKeyNames="data" DataSourceID="ods" OnDataBound="grView_DataBound">
|
||||
|
||||
@@ -4,114 +4,117 @@ using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class mod_calChiusura : ApplicationUserControl
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public partial class mod_calChiusura : ApplicationUserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
public event EventHandler eh_resetSelezione;
|
||||
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.Page_Load(sender, e);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = _righeDataGridMed;
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
btnInsPeriodo.Text = traduci("btnInsPeriodo");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
// reset selezione...
|
||||
resetSelezione();
|
||||
// i primi valori ("0") di default sono "ND"... li inserisco come standard...
|
||||
DataLayerObj.taCalFF.Insert(DateTime.Now.Date, "-- [NUOVO] non definito --");
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento dati associati a controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
base.Page_Load(sender, e);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
grView.PageSize = _righeDataGridMed;
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
btnInsPeriodo.Text = traduci("btnInsPeriodo");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// gestione evento inserimento nuovo record standard (se ZERO presenti)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
// reset selezione...
|
||||
resetSelezione();
|
||||
// i primi valori ("0") di default sono "ND"... li inserisco come standard...
|
||||
DataLayerObj.taCalFF.Insert(DateTime.Now.Date, "-- [NUOVO] non definito --");
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento dati associati a controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.Rows.Count > 0)
|
||||
{
|
||||
LinkButton lb;
|
||||
// aggiorno gli headers
|
||||
foreach (TableCell cella in grView.HeaderRow.Cells)
|
||||
{
|
||||
try
|
||||
{
|
||||
lb = (LinkButton)cella.Controls[0];
|
||||
lb.Text = traduci(lb.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
protected void btnShowInsPeriodo_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlInsPeriodo.Visible = !pnlInsPeriodo.Visible;
|
||||
if (pnlInsPeriodo.Visible)
|
||||
{
|
||||
btnShowInsPeriodo.Text = traduci("btnHideInsPeriodo");
|
||||
}
|
||||
else
|
||||
{
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
}
|
||||
}
|
||||
protected void btnInsPeriodo_Click(object sender, EventArgs e)
|
||||
{
|
||||
// verifico date congrue...
|
||||
DateTime inizio = Convert.ToDateTime(txtDataFrom.Text);
|
||||
DateTime fine = Convert.ToDateTime(txtDataTo.Text);
|
||||
if (fine.CompareTo(inizio) >= 0)
|
||||
{
|
||||
// inserisco le voci x tutte le date nell'intervallo...
|
||||
while (fine.CompareTo(inizio) >= 0)
|
||||
{
|
||||
DataLayerObj.taCalFF.Insert(inizio, txtDescrizione.Text);
|
||||
inizio = inizio.AddDays(1);
|
||||
}
|
||||
// update e nascondo pannello
|
||||
grView.DataBind();
|
||||
pnlInsPeriodo.Visible = false;
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblWarning.Visible = true;
|
||||
lblWarning.Text = traduci("OrdineDateErrato");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
|
||||
lblNumRec.Text = string.Format("{0} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblNumRec.Text = "";
|
||||
}
|
||||
}
|
||||
protected void btnShowInsPeriodo_Click(object sender, EventArgs e)
|
||||
{
|
||||
pnlInsPeriodo.Visible = !pnlInsPeriodo.Visible;
|
||||
if (pnlInsPeriodo.Visible)
|
||||
{
|
||||
btnShowInsPeriodo.Text = traduci("btnHideInsPeriodo");
|
||||
}
|
||||
else
|
||||
{
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
}
|
||||
}
|
||||
protected void btnInsPeriodo_Click(object sender, EventArgs e)
|
||||
{
|
||||
// verifico date congrue...
|
||||
DateTime inizio = Convert.ToDateTime(txtDataFrom.Text);
|
||||
DateTime fine = Convert.ToDateTime(txtDataTo.Text);
|
||||
if (fine.CompareTo(inizio) >= 0)
|
||||
{
|
||||
// inserisco le voci x tutte le date nell'intervallo...
|
||||
while (fine.CompareTo(inizio) >= 0)
|
||||
{
|
||||
DataLayerObj.taCalFF.Insert(inizio, txtDescrizione.Text);
|
||||
inizio = inizio.AddDays(1);
|
||||
}
|
||||
// update e nascondo pannello
|
||||
grView.DataBind();
|
||||
pnlInsPeriodo.Visible = false;
|
||||
btnShowInsPeriodo.Text = traduci("btnShowInsPeriodo");
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblWarning.Visible = true;
|
||||
lblWarning.Text = traduci("OrdineDateErrato");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+118
-114
@@ -1,121 +1,125 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_calChiusura {
|
||||
|
||||
/// <summary>
|
||||
/// grView 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.GridView grView;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumRec 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.Label lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// ods 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.ObjectDataSource ods;
|
||||
|
||||
/// <summary>
|
||||
/// btnShowInsPeriodo 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 btnShowInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// pnlInsPeriodo 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 pnlInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// txtDataFrom 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 txtDataFrom;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
|
||||
|
||||
/// <summary>
|
||||
/// txtDataTo 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 txtDataTo;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender3 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender3;
|
||||
|
||||
/// <summary>
|
||||
/// txtDescrizione 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 txtDescrizione;
|
||||
|
||||
/// <summary>
|
||||
/// btnInsPeriodo 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 btnInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning 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.Label lblWarning;
|
||||
public partial class mod_calChiusura
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grView.
|
||||
/// </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 grView;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblNumRec.
|
||||
/// </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 lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ods.
|
||||
/// </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 ods;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnShowInsPeriodo.
|
||||
/// </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 btnShowInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo pnlInsPeriodo.
|
||||
/// </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.Panel pnlInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtDataFrom.
|
||||
/// </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 txtDataFrom;
|
||||
|
||||
/// <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 txtDataTo.
|
||||
/// </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 txtDataTo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo CalendarExtender3.
|
||||
/// </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 CalendarExtender3;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo txtDescrizione.
|
||||
/// </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 txtDescrizione;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnInsPeriodo.
|
||||
/// </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 btnInsPeriodo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarning.
|
||||
/// </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 lblWarning;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_fixCal" Codebehind="mod_fixCal.ascx.cs" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MP_ADM.WebUserControls.mod_fixCal" Codebehind="mod_fixCal.ascx.cs" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Visible="false">
|
||||
</asp:TextBox>
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
using System;
|
||||
|
||||
public partial class mod_fixCal : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_fixCal : BaseUserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+26
-25
@@ -1,32 +1,33 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_fixCal
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo TextBox1.
|
||||
/// </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 TextBox1;
|
||||
|
||||
public partial class mod_fixCal {
|
||||
|
||||
/// <summary>
|
||||
/// TextBox1 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 TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// CalendarExtender1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_footer : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_footer : BaseUserControl
|
||||
{
|
||||
lblLastUpdt.Text = DateTime.Now.ToString("yyyy.MM.dd HH:mm:ss");
|
||||
lblVers.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblLastUpdt.Text = DateTime.Now.ToString("yyyy.MM.dd HH:mm:ss");
|
||||
lblVers.Text = string.Format("v.{0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,266 +4,243 @@ using System;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_gestKIT : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
|
||||
public event EventHandler eh_selKit;
|
||||
|
||||
#region setup VARS
|
||||
|
||||
/// <summary>
|
||||
/// RegExp x RESET / CANCEL
|
||||
/// </summary>
|
||||
protected string regExp_KO = memLayer.ML.cdv("regExp_KO");
|
||||
/// <summary>
|
||||
/// RegExp x CONFERMA
|
||||
/// </summary>
|
||||
protected string regExp_OK = memLayer.ML.cdv("regExp_OK");
|
||||
/// <summary>
|
||||
/// RegExp x START KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitStart = memLayer.ML.cdv("regExp_KitStart");
|
||||
/// <summary>
|
||||
/// RegExp x SAVE KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitSave = memLayer.ML.cdv("regExp_KitSave");
|
||||
|
||||
#endregion
|
||||
|
||||
#region variabili in sessione
|
||||
|
||||
/// <summary>
|
||||
/// UID formattato con "_"
|
||||
/// </summary>
|
||||
public string uid
|
||||
public partial class mod_gestKIT : BaseUserControl
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// titolo pagina
|
||||
/// </summary>
|
||||
public string titolo
|
||||
{
|
||||
get
|
||||
{
|
||||
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
|
||||
}
|
||||
}
|
||||
|
||||
public string codKitTemp
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("codKitTemp_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("codKitTemp_{0}", uid), value);
|
||||
hlCodKitTemp.Value = value;
|
||||
grViewWSK.DataBind();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Ultimo Codice KIT creato
|
||||
/// </summary>
|
||||
public string lastKitMade
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("lastKitMade");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("lastKitMade", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiunge (in obj OrdineKit) l'ordine coi parametri indicati
|
||||
/// </summary>
|
||||
/// <param name="codOrd"></param>
|
||||
/// <param name="codArt"></param>
|
||||
/// <param name="descArt"></param>
|
||||
/// <param name="qta"></param>
|
||||
/// <returns></returns>
|
||||
public bool addOrdArt(string codOrd, string codArt, string descArt, int qta)
|
||||
{
|
||||
bool answ = false;
|
||||
// verifico di avere un codiceKIT
|
||||
checkCodKit();
|
||||
// salvo info x il cod temporaneo...
|
||||
DataLayerObj.taWKS.insertQuery(codKitTemp, codOrd, codArt, descArt, qta);
|
||||
// verifico SE HO un KIT riconosciuto e quindi un CodArt di KIT valido...
|
||||
string currCodArtKit = "###";
|
||||
var TksTab = DataLayerObj.taTKS.GetData(codKitTemp, 1);
|
||||
bool showPODL = false;
|
||||
if (TksTab.Rows.Count > 0)
|
||||
{
|
||||
// verifico se ho aderenza 100%...
|
||||
if (TksTab[0].TotalScore == 1)
|
||||
public event EventHandler eh_selKit;
|
||||
|
||||
#region setup VARS
|
||||
|
||||
/// <summary>
|
||||
/// RegExp x RESET / CANCEL
|
||||
/// </summary>
|
||||
protected string regExp_KO = memLayer.ML.cdv("regExp_KO");
|
||||
/// <summary>
|
||||
/// RegExp x CONFERMA
|
||||
/// </summary>
|
||||
protected string regExp_OK = memLayer.ML.cdv("regExp_OK");
|
||||
/// <summary>
|
||||
/// RegExp x START KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitStart = memLayer.ML.cdv("regExp_KitStart");
|
||||
/// <summary>
|
||||
/// RegExp x SAVE KIT
|
||||
/// </summary>
|
||||
protected string regExp_KitSave = memLayer.ML.cdv("regExp_KitSave");
|
||||
|
||||
#endregion
|
||||
|
||||
#region variabili in sessione
|
||||
|
||||
|
||||
|
||||
public string codKitTemp
|
||||
{
|
||||
currCodArtKit = TksTab[0].CodArtParent;
|
||||
showPODL = true;
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("codKitTemp_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("codKitTemp_{0}", uid), value);
|
||||
hlCodKitTemp.Value = value;
|
||||
grViewWSK.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
hfCodArtKit.Value = currCodArtKit;
|
||||
divPODL.Visible = showPODL;
|
||||
answ = true;
|
||||
grViewWSK.DataBind();
|
||||
grViewKitSel.DataBind();
|
||||
grViewPODL.DataBind();
|
||||
grViewIstanzeKIT.DataBind();
|
||||
return answ;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
bool OptAdmKitEnabled = memLayer.ML.CRB("OptAdmKitEnabled");
|
||||
if (!Page.IsPostBack && OptAdmKitEnabled)
|
||||
{
|
||||
doReset();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Ultimo input registrato
|
||||
/// </summary>
|
||||
public string lastInput
|
||||
{
|
||||
get
|
||||
{
|
||||
return hlLastInput.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hlLastInput.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiorno controllo secondo ULTIMO input
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
// aggiorno label...
|
||||
messOut = "";
|
||||
// controllo input (reset/inizio o salva...)
|
||||
if (lastInput == regExp_KO)
|
||||
{
|
||||
// resetto dati
|
||||
doReset();
|
||||
messOut = "Effettuato reset!";
|
||||
}
|
||||
else if (lastInput == regExp_KitStart)
|
||||
{
|
||||
// resetto dati
|
||||
doReset();
|
||||
messOut = "Inizio configurazione KIT";
|
||||
}
|
||||
else if (lastInput == regExp_KitSave)
|
||||
{
|
||||
// controllo SE HO un kit selezionato...
|
||||
string currCodArtKit = "###";
|
||||
var TksTab = DataLayerObj.taTKS.GetData(codKitTemp, 1);
|
||||
bool showPODL = false;
|
||||
if (TksTab.Rows.Count > 0)
|
||||
/// <summary>
|
||||
/// Ultimo Codice KIT creato
|
||||
/// </summary>
|
||||
public string lastKitMade
|
||||
{
|
||||
// verifico se ho aderenza 100%...
|
||||
if (TksTab[0].TotalScore == 1)
|
||||
{
|
||||
currCodArtKit = TksTab[0].CodArtParent;
|
||||
showPODL = true;
|
||||
}
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("lastKitMade");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("lastKitMade", value);
|
||||
}
|
||||
}
|
||||
if (showPODL)
|
||||
/// <summary>
|
||||
/// Aggiunge (in obj OrdineKit) l'ordine coi parametri indicati
|
||||
/// </summary>
|
||||
/// <param name="codOrd"></param>
|
||||
/// <param name="codArt"></param>
|
||||
/// <param name="descArt"></param>
|
||||
/// <param name="qta"></param>
|
||||
/// <returns></returns>
|
||||
public bool addOrdArt(string codOrd, string codArt, string descArt, int qta)
|
||||
{
|
||||
// in questo caso creo istanza!
|
||||
creazioneIstanzaKit(currCodArtKit);
|
||||
bool answ = false;
|
||||
// verifico di avere un codiceKIT
|
||||
checkCodKit();
|
||||
// salvo info x il cod temporaneo...
|
||||
DataLayerObj.taWKS.insertQuery(codKitTemp, codOrd, codArt, descArt, qta);
|
||||
// verifico SE HO un KIT riconosciuto e quindi un CodArt di KIT valido...
|
||||
string currCodArtKit = "###";
|
||||
var TksTab = DataLayerObj.taTKS.GetData(codKitTemp, 1);
|
||||
bool showPODL = false;
|
||||
if (TksTab.Rows.Count > 0)
|
||||
{
|
||||
// verifico se ho aderenza 100%...
|
||||
if (TksTab[0].TotalScore == 1)
|
||||
{
|
||||
currCodArtKit = TksTab[0].CodArtParent;
|
||||
showPODL = true;
|
||||
}
|
||||
}
|
||||
hfCodArtKit.Value = currCodArtKit;
|
||||
divPODL.Visible = showPODL;
|
||||
answ = true;
|
||||
grViewWSK.DataBind();
|
||||
grViewKitSel.DataBind();
|
||||
grViewPODL.DataBind();
|
||||
grViewIstanzeKIT.DataBind();
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
else if (lastInput == regExp_OK)
|
||||
{
|
||||
|
||||
}
|
||||
// ennesimo check cod TEMP
|
||||
checkCodKit();
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void doReset()
|
||||
{
|
||||
// elimino eventuali record ODL
|
||||
DataLayerObj.taWKS.deleteQuery(codKitTemp);
|
||||
codKitTemp = "";
|
||||
divPODL.Visible = false;
|
||||
checkCodKit();
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifico SE HO un codKit Temporaneo sennò lo creo...
|
||||
/// </summary>
|
||||
private void checkCodKit()
|
||||
{
|
||||
if (codKitTemp == "")
|
||||
{
|
||||
// genero un NUOVO cod temp kit...
|
||||
codKitTemp = string.Format("KIT_{0:yyMMdd_HHmmss}", DateTime.Now);
|
||||
}
|
||||
}
|
||||
|
||||
public string messOut
|
||||
{
|
||||
set
|
||||
{
|
||||
lblOut.Text = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return lblOut.Text;
|
||||
}
|
||||
}
|
||||
|
||||
protected void grViewKitSel_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// se ho selezionato recupero CHIAVE = CodArticolo del KIT
|
||||
string CodArtParent = grViewKitSel.SelectedValue.ToString();
|
||||
// crea KIT x quel CodArtParent...
|
||||
creazioneIstanzaKit(CodArtParent);
|
||||
}
|
||||
/// <summary>
|
||||
/// Crea una NUOVA istanza KIT
|
||||
/// </summary>
|
||||
/// <param name="CodArtParent">CodArt dell'Assieme/KIT</param>
|
||||
private void creazioneIstanzaKit(string CodArtParent)
|
||||
{
|
||||
// calcolo NUOVO codice kit...
|
||||
var tabKey = DataLayerObj.taIstK.getNewKey();
|
||||
if (tabKey.Rows.Count == 1)
|
||||
{
|
||||
// stacco un NUOVO codice KIT
|
||||
lastKitMade = tabKey[0].KeyKit;
|
||||
// inserisco ISTANZA KIT!
|
||||
DataLayerObj.taIstK.insertByWKS(lastKitMade, CodArtParent, codKitTemp);
|
||||
// faccio reset valori WKS...
|
||||
doReset();
|
||||
// ora resetto ordine caricato...
|
||||
messOut = string.Format("Creato NUOVA P.ODL cod {0} per il KIT {1}", lastKitMade, CodArtParent);
|
||||
// sollevo evento x impostare lettura KIT a BARCODE (x conferma successiva...)
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selKit != null)
|
||||
/// <summary>
|
||||
/// Caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
eh_selKit(this, new EventArgs());
|
||||
bool OptAdmKitEnabled = memLayer.ML.CRB("OptAdmKitEnabled");
|
||||
if (!Page.IsPostBack && OptAdmKitEnabled)
|
||||
{
|
||||
doReset();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Ultimo input registrato
|
||||
/// </summary>
|
||||
public string lastInput
|
||||
{
|
||||
get
|
||||
{
|
||||
return hlLastInput.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hlLastInput.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Aggiorno controllo secondo ULTIMO input
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
// aggiorno label...
|
||||
messOut = "";
|
||||
// controllo input (reset/inizio o salva...)
|
||||
if (lastInput == regExp_KO)
|
||||
{
|
||||
// resetto dati
|
||||
doReset();
|
||||
messOut = "Effettuato reset!";
|
||||
}
|
||||
else if (lastInput == regExp_KitStart)
|
||||
{
|
||||
// resetto dati
|
||||
doReset();
|
||||
messOut = "Inizio configurazione KIT";
|
||||
}
|
||||
else if (lastInput == regExp_KitSave)
|
||||
{
|
||||
// controllo SE HO un kit selezionato...
|
||||
string currCodArtKit = "###";
|
||||
var TksTab = DataLayerObj.taTKS.GetData(codKitTemp, 1);
|
||||
bool showPODL = false;
|
||||
if (TksTab.Rows.Count > 0)
|
||||
{
|
||||
// verifico se ho aderenza 100%...
|
||||
if (TksTab[0].TotalScore == 1)
|
||||
{
|
||||
currCodArtKit = TksTab[0].CodArtParent;
|
||||
showPODL = true;
|
||||
}
|
||||
}
|
||||
if (showPODL)
|
||||
{
|
||||
// in questo caso creo istanza!
|
||||
creazioneIstanzaKit(currCodArtKit);
|
||||
}
|
||||
}
|
||||
else if (lastInput == regExp_OK)
|
||||
{
|
||||
|
||||
}
|
||||
// ennesimo check cod TEMP
|
||||
checkCodKit();
|
||||
}
|
||||
|
||||
private void doReset()
|
||||
{
|
||||
// elimino eventuali record ODL
|
||||
DataLayerObj.taWKS.deleteQuery(codKitTemp);
|
||||
codKitTemp = "";
|
||||
divPODL.Visible = false;
|
||||
checkCodKit();
|
||||
}
|
||||
/// <summary>
|
||||
/// Verifico SE HO un codKit Temporaneo sennò lo creo...
|
||||
/// </summary>
|
||||
private void checkCodKit()
|
||||
{
|
||||
if (codKitTemp == "")
|
||||
{
|
||||
// genero un NUOVO cod temp kit...
|
||||
codKitTemp = string.Format("KIT_{0:yyMMdd_HHmmss}", DateTime.Now);
|
||||
}
|
||||
}
|
||||
|
||||
public string messOut
|
||||
{
|
||||
set
|
||||
{
|
||||
lblOut.Text = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return lblOut.Text;
|
||||
}
|
||||
}
|
||||
|
||||
protected void grViewKitSel_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// se ho selezionato recupero CHIAVE = CodArticolo del KIT
|
||||
string CodArtParent = grViewKitSel.SelectedValue.ToString();
|
||||
// crea KIT x quel CodArtParent...
|
||||
creazioneIstanzaKit(CodArtParent);
|
||||
}
|
||||
/// <summary>
|
||||
/// Crea una NUOVA istanza KIT
|
||||
/// </summary>
|
||||
/// <param name="CodArtParent">CodArt dell'Assieme/KIT</param>
|
||||
private void creazioneIstanzaKit(string CodArtParent)
|
||||
{
|
||||
// calcolo NUOVO codice kit...
|
||||
var tabKey = DataLayerObj.taIstK.getNewKey();
|
||||
if (tabKey.Rows.Count == 1)
|
||||
{
|
||||
// stacco un NUOVO codice KIT
|
||||
lastKitMade = tabKey[0].KeyKit;
|
||||
// inserisco ISTANZA KIT!
|
||||
DataLayerObj.taIstK.insertByWKS(lastKitMade, CodArtParent, codKitTemp);
|
||||
// faccio reset valori WKS...
|
||||
doReset();
|
||||
// ora resetto ordine caricato...
|
||||
messOut = string.Format("Creato NUOVA P.ODL cod {0} per il KIT {1}", lastKitMade, CodArtParent);
|
||||
// sollevo evento x impostare lettura KIT a BARCODE (x conferma successiva...)
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selKit != null)
|
||||
{
|
||||
eh_selKit(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestioneDatiMacchine.ascx.cs"
|
||||
Inherits="MoonPro_site.WebUserControls.mod_gestioneDatiMacchine" %>
|
||||
Inherits="MP_ADM.WebUserControls.mod_gestioneDatiMacchine" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
|
||||
@@ -3,9 +3,9 @@ using System;
|
||||
using System.Data;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_gestioneDatiMacchine : System.Web.UI.UserControl
|
||||
public partial class mod_gestioneDatiMacchine : BaseUserControl
|
||||
{
|
||||
|
||||
#region area da NON modificare
|
||||
@@ -31,12 +31,8 @@ namespace MoonPro_site.WebUserControls
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selValore != null)
|
||||
{
|
||||
eh_selValore(this, new EventArgs());
|
||||
}
|
||||
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
raiseSelNew();
|
||||
}
|
||||
/// <summary>
|
||||
/// traduce gli header delle colonne
|
||||
@@ -127,61 +123,29 @@ namespace MoonPro_site.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// evento come nuovo...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
raiseNewVal();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region are public
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
raiseReset();
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_nuovoValore;
|
||||
public event EventHandler eh_selValore;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area da modificare
|
||||
|
||||
|
||||
+24
-23
@@ -1,51 +1,52 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_gestioneDatiMacchine {
|
||||
|
||||
public partial class mod_gestioneDatiMacchine
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// Controllo grView.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 grView;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblNumRec control.
|
||||
/// Controllo lblNumRec.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 lblNumRec;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning control.
|
||||
/// Controllo lblWarning.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 lblWarning;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ods control.
|
||||
/// Controllo ods.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 ods;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestioneODL.ascx.cs"
|
||||
Inherits="MoonPro_site.WebUserControls.mod_gestioneODL" %>
|
||||
Inherits="MP_ADM.WebUserControls.mod_gestioneODL" %>
|
||||
<%@ Register Src="mod_newOdl.ascx" TagName="mod_newOdl" TagPrefix="uc1" %>
|
||||
|
||||
|
||||
|
||||
@@ -5,14 +5,10 @@ using System.Data;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_gestioneODL : System.Web.UI.UserControl
|
||||
public partial class mod_gestioneODL : BaseUserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
|
||||
/// <summary>
|
||||
/// dimensione pagina
|
||||
@@ -59,7 +55,7 @@ namespace MoonPro_site.WebUserControls
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in session il valore selezionato...
|
||||
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||
// mostro edit quantità...
|
||||
divEditQta.Visible = true;
|
||||
lbtNewODL.Visible = enableCreateNew;
|
||||
@@ -158,41 +154,19 @@ namespace MoonPro_site.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// evento come nuovo...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
raiseNewVal();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region are public
|
||||
|
||||
/// <summary>
|
||||
/// effettua traduzione del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua traduzione in inglese del lemma
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduciEn(string lemma)
|
||||
{
|
||||
return user_std.UtSn.TraduciEn(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
idxMaccEdit = "";
|
||||
@@ -200,24 +174,13 @@ namespace MoonPro_site.WebUserControls
|
||||
mod_newOdl1.Visible = false;
|
||||
lbtNewODL.Visible = enableCreateNew;
|
||||
lblWarning.Visible = false;
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
|
||||
raiseReset();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_resetSelezione;
|
||||
public event EventHandler eh_nuovoValore;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area da modificare
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
@@ -364,7 +327,7 @@ namespace MoonPro_site.WebUserControls
|
||||
if (numPzEditable)
|
||||
{
|
||||
// recupero da config il max...
|
||||
int numPzMaxFix = 50;
|
||||
int numPzMaxFix = 100;
|
||||
try
|
||||
{
|
||||
numPzMaxFix = memLayer.ML.cdvi("numPzMaxFix");
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace MoonPro_site.WebUserControls
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonPro_site.WebUserControls.mod_newOdl mod_newOdl1;
|
||||
protected global::MP_ADM.WebUserControls.mod_newOdl mod_newOdl1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo divEditQta.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_login" Codebehind="mod_login.ascx.cs" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MP_ADM.WebUserControls.mod_login" Codebehind="mod_login.ascx.cs" %>
|
||||
<asp:Panel ID="pnlForceUser" runat="server">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
|
||||
@@ -2,85 +2,97 @@ using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
|
||||
/// <summary>
|
||||
/// classe gestione login e forzatura login
|
||||
/// </summary>
|
||||
public partial class mod_login : SteamWare.ApplicationUserControl
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
#region area protected/private
|
||||
|
||||
#region area proprietà
|
||||
|
||||
private SteamWare.loginMode _isForceUser = SteamWare.loginMode.normale;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area metodi
|
||||
|
||||
/// <summary>
|
||||
/// imposta la modalità di login tra normale / forceUser
|
||||
/// classe gestione login e forzatura login
|
||||
/// </summary>
|
||||
private void setLoginMode()
|
||||
public partial class mod_login : SteamWare.ApplicationUserControl
|
||||
{
|
||||
switch (_isForceUser)
|
||||
{
|
||||
case SteamWare.loginMode.normale:
|
||||
pnlForceUser.Visible = false;
|
||||
pnlSelectUser.Visible = false;
|
||||
break;
|
||||
case SteamWare.loginMode.forceUser:
|
||||
pnlForceUser.Visible = true;
|
||||
pnlSelectUser.Visible = false;
|
||||
break;
|
||||
case SteamWare.loginMode.standardUser:
|
||||
pnlForceUser.Visible = false;
|
||||
pnlSelectUser.Visible = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
#region area protected/private
|
||||
|
||||
protected override void traduciObj()
|
||||
{
|
||||
lblPwd.Text = user_std.UtSn.Traduci("lblPwd");
|
||||
lblUser.Text = user_std.UtSn.Traduci("lblUser");
|
||||
lblDominio.Text = user_std.UtSn.Traduci("lblDominio");
|
||||
lblTitolo.Text = user_std.UtSn.Traduci("ForzaUtente");
|
||||
btnOk.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
btnOkUserStd.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
}
|
||||
#region area proprietà
|
||||
|
||||
/// <summary>
|
||||
/// prova a verificare se l'utente sia ok x AD credentials
|
||||
/// </summary>
|
||||
private void AdLogin()
|
||||
{
|
||||
lblMessage.Text = "User not authenticated...";
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
private SteamWare.loginMode _isForceUser = SteamWare.loginMode.normale;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area metodi
|
||||
|
||||
/// <summary>
|
||||
/// imposta la modalità di login tra normale / forceUser
|
||||
/// </summary>
|
||||
private void setLoginMode()
|
||||
{
|
||||
//recupera user windows se c'è...
|
||||
string ad_name = Page.User.Identity.Name;
|
||||
string delimStr = "\\";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] dom_user = ad_name.Split(delimiter, 2);
|
||||
// passo al controllo di verifica ADuserOk...
|
||||
user_std _utente = new user_std();
|
||||
if (_utente.ADuserOk(dom_user[0], dom_user[1]))
|
||||
switch (_isForceUser)
|
||||
{
|
||||
bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
|
||||
if (fatto)
|
||||
case SteamWare.loginMode.normale:
|
||||
pnlForceUser.Visible = false;
|
||||
pnlSelectUser.Visible = false;
|
||||
break;
|
||||
case SteamWare.loginMode.forceUser:
|
||||
pnlForceUser.Visible = true;
|
||||
pnlSelectUser.Visible = false;
|
||||
break;
|
||||
case SteamWare.loginMode.standardUser:
|
||||
pnlForceUser.Visible = false;
|
||||
pnlSelectUser.Visible = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void traduciObj()
|
||||
{
|
||||
lblPwd.Text = user_std.UtSn.Traduci("lblPwd");
|
||||
lblUser.Text = user_std.UtSn.Traduci("lblUser");
|
||||
lblDominio.Text = user_std.UtSn.Traduci("lblDominio");
|
||||
lblTitolo.Text = user_std.UtSn.Traduci("ForzaUtente");
|
||||
btnOk.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
btnOkUserStd.Text = user_std.UtSn.Traduci("btnCommit");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// prova a verificare se l'utente sia ok x AD credentials
|
||||
/// </summary>
|
||||
private void AdLogin()
|
||||
{
|
||||
lblMessage.Text = "User not authenticated...";
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
{
|
||||
//recupera user windows se c'è...
|
||||
string ad_name = Page.User.Identity.Name;
|
||||
string delimStr = "\\";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] dom_user = ad_name.Split(delimiter, 2);
|
||||
// passo al controllo di verifica ADuserOk...
|
||||
user_std _utente = new user_std();
|
||||
if (_utente.ADuserOk(dom_user[0], dom_user[1]))
|
||||
{
|
||||
SteamWare.logger.lg.scriviLog(string.Format("L'utente {0} ({1}) ha effettuato il login correttamente", _utente.CognomeNome, _utente.userNameAD), SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
|
||||
if (fatto)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
SteamWare.logger.lg.scriviLog(string.Format("L'utente {0} ({1}) ha effettuato il login correttamente", _utente.CognomeNome, _utente.userNameAD), SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>There are some problems instatiating user: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>There are some problems instatiating user: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, problemi ad istanziare l'utente {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.ERROR);
|
||||
lblMessage.Text = String.Format("{0}<br>user not allowed: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
@@ -89,63 +101,64 @@ public partial class mod_login : SteamWare.ApplicationUserControl
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>user not allowed: {1}/{2}", user_std.UtSn.Traduci("AccessFail"), dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Utente non autorizzato: {0}/{1}", dom_user[0], dom_user[1]), SteamWare.tipoLog.WARNING);
|
||||
lblMessage.Text = user_std.UtSn.Traduci("AccessFail") + user_std.UtSn.Traduci("UsrNotAuth");
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = user_std.UtSn.Traduci("AccessFail") + user_std.UtSn.Traduci("UsrNotAuth");
|
||||
SteamWare.logger.lg.scriviLog(String.Format("Accesso fallito, utente non autenticato"), SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// effettua verifiche e se concesso permette di forzare l'accesso utente
|
||||
/// </summary>
|
||||
private void ForceUserIdentity()
|
||||
{
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
/// <summary>
|
||||
/// effettua verifiche e se concesso permette di forzare l'accesso utente
|
||||
/// </summary>
|
||||
private void ForceUserIdentity()
|
||||
{
|
||||
bool _allowForceUser = false;
|
||||
try
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
{
|
||||
_allowForceUser = SteamWare.memLayer.ML.CRB("_allowForceUser");
|
||||
}
|
||||
catch
|
||||
{
|
||||
_allowForceUser = false;
|
||||
}
|
||||
if (_allowForceUser)
|
||||
{
|
||||
if (authKey.Text == "forzaInter") // verifica passphrase...
|
||||
bool _allowForceUser = false;
|
||||
try
|
||||
{
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(dominio.Text, user.Text);
|
||||
if (fatto)
|
||||
_allowForceUser = memLayer.ML.CRB("_allowForceUser");
|
||||
}
|
||||
catch
|
||||
{
|
||||
_allowForceUser = false;
|
||||
}
|
||||
if (_allowForceUser)
|
||||
{
|
||||
if (authKey.Text == "forzaInter") // verifica passphrase...
|
||||
{
|
||||
string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(dominio.Text, user.Text);
|
||||
if (fatto)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>key not allowed for operation!! operation logged!!", user_std.UtSn.Traduci("AccessFail"));
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblMessage.Text = String.Format("{0}<br>key not allowed for operation!! operation logged!!", user_std.UtSn.Traduci("AccessFail"));
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la sua key autorizzativa e' sbagliata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - wrong password - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
@@ -155,155 +168,145 @@ public partial class mod_login : SteamWare.ApplicationUserControl
|
||||
}
|
||||
else
|
||||
{
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}\\{2}", Page.User.Identity.Name, dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
lblMessage.Text = string.Format("{0}<br>user not authenticated!<br>", user_std.UtSn.Traduci("AccessFail"));
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
}
|
||||
}
|
||||
else
|
||||
/// <summary>
|
||||
/// se concesso il generico ForceUser permette di forzare l'accesso utente ad uno degli standard
|
||||
/// </summary>
|
||||
private void StdUserIdentity()
|
||||
{
|
||||
lblMessage.Text = string.Format("{0}<br>user not authenticated!<br>", user_std.UtSn.Traduci("AccessFail"));
|
||||
if (Login_Error != null)
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// se concesso il generico ForceUser permette di forzare l'accesso utente ad uno degli standard
|
||||
/// </summary>
|
||||
private void StdUserIdentity()
|
||||
{
|
||||
if (Page.User.Identity.IsAuthenticated)
|
||||
{
|
||||
bool _allowForceUser = false;
|
||||
try
|
||||
{
|
||||
_allowForceUser = SteamWare.memLayer.ML.CRB("_allowForceUser");
|
||||
}
|
||||
catch
|
||||
{
|
||||
_allowForceUser = false;
|
||||
}
|
||||
if (_allowForceUser)
|
||||
{
|
||||
//leggo e codifico utente indicato
|
||||
string delimStr = "\\";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] dom_user = ddlStdUser.SelectedValue.Split(delimiter, 2);
|
||||
//forzo login!
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
|
||||
if (fatto)
|
||||
bool _allowForceUser = false;
|
||||
try
|
||||
{
|
||||
string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
_allowForceUser = memLayer.ML.CRB("_allowForceUser");
|
||||
}
|
||||
catch
|
||||
{
|
||||
_allowForceUser = false;
|
||||
}
|
||||
if (_allowForceUser)
|
||||
{
|
||||
//leggo e codifico utente indicato
|
||||
string delimStr = "\\";
|
||||
char[] delimiter = delimStr.ToCharArray();
|
||||
string[] dom_user = ddlStdUser.SelectedValue.Split(delimiter, 2);
|
||||
//forzo login!
|
||||
user_std _utente = new user_std();
|
||||
user_std.UtSn.isForcedUser = true;
|
||||
bool fatto = _utente.startUpUtente(dom_user[0], dom_user[1]);
|
||||
if (fatto)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
string _rigaLog = String.Format("User {0} has forced user identity ok: logged as \t {1}\\{2}", Page.User.Identity.Name, dom_user[0], dom_user[1]);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.INFO);
|
||||
if (Login_ok != null)
|
||||
{
|
||||
Login_ok(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}", Page.User.Identity.Name, ddlStdUser.SelectedValue);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
mandaEmail(_fromEmail, _adminEmail, "Attenzione: tentativo di accesso non autorizzato!", String.Format("Tentativo di forcing user non autorizzato!<br>L'utente {0} ha tentato di accedere a {1} forzando l'utente ma la funzione e' disabilitata...", Page.User.Identity.Name, user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("defaultApp"))));
|
||||
string _rigaLog = String.Format("User {0}\t tried to force user - access disabled - he tried to log as \t {1}", Page.User.Identity.Name, ddlStdUser.SelectedValue);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
lblMessage.Text = string.Format("{0}<br>user not authenticated!<br>", user_std.UtSn.Traduci("AccessFail"));
|
||||
if (Login_Error != null)
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
}
|
||||
string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
/// <summary>
|
||||
/// fa login con force user e controllo pwd
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
lblMessage.Text = string.Format("{0}<br>user not authenticated!<br>", user_std.UtSn.Traduci("AccessFail"));
|
||||
if (Login_Error != null)
|
||||
ForceUserIdentity();
|
||||
}
|
||||
/// <summary>
|
||||
/// fa login utente tipo standard
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOkUserStd_Click(object sender, EventArgs e)
|
||||
{
|
||||
StdUserIdentity();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
#region eventi pubblici esposti
|
||||
|
||||
public event EventHandler Login_ok;
|
||||
public event EventHandler Login_Error;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area proprietà
|
||||
|
||||
/// <summary>
|
||||
/// modalità funzionamento controllo tra normale (ActiveDirectory e user auth di default) e forceUser
|
||||
/// </summary>
|
||||
public SteamWare.loginMode modoLogin
|
||||
{
|
||||
get
|
||||
{
|
||||
Login_Error(this, new EventArgs());
|
||||
return _isForceUser;
|
||||
}
|
||||
set
|
||||
{
|
||||
_isForceUser = value;
|
||||
}
|
||||
string _rigaLog = String.Format("\t Someone tried to force user - real user: \t - not autenticated - \t tried to log as \t {0}\\{1}", dominio.Text, user.Text);
|
||||
SteamWare.logger.lg.scriviLog(_rigaLog, SteamWare.tipoLog.WARNING);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// fa login con force user e controllo pwd
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
ForceUserIdentity();
|
||||
}
|
||||
/// <summary>
|
||||
/// fa login utente tipo standard
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOkUserStd_Click(object sender, EventArgs e)
|
||||
{
|
||||
StdUserIdentity();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region area public
|
||||
|
||||
#region eventi pubblici esposti
|
||||
|
||||
public event EventHandler Login_ok;
|
||||
public event EventHandler Login_Error;
|
||||
|
||||
#endregion
|
||||
|
||||
#region area proprietà
|
||||
|
||||
/// <summary>
|
||||
/// modalità funzionamento controllo tra normale (ActiveDirectory e user auth di default) e forceUser
|
||||
/// </summary>
|
||||
public SteamWare.loginMode modoLogin
|
||||
{
|
||||
get
|
||||
/// <summary>
|
||||
/// avvio pagina
|
||||
/// </summary>
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
return _isForceUser;
|
||||
}
|
||||
set
|
||||
{
|
||||
_isForceUser = value;
|
||||
base.Page_Load(sender, e);
|
||||
//carico da web.config i default values
|
||||
loadDefaultsWebConfig();
|
||||
// procedo...
|
||||
setLoginMode();
|
||||
Session.RemoveAll();
|
||||
if (_isForceUser == SteamWare.loginMode.normale)
|
||||
{
|
||||
AdLogin();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// avvio pagina
|
||||
/// </summary>
|
||||
protected override void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
base.Page_Load(sender, e);
|
||||
//carico da web.config i default values
|
||||
loadDefaultsWebConfig();
|
||||
// procedo...
|
||||
setLoginMode();
|
||||
Session.RemoveAll();
|
||||
if (_isForceUser == SteamWare.loginMode.normale)
|
||||
{
|
||||
AdLogin();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
+136
-133
@@ -1,140 +1,143 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_login {
|
||||
|
||||
/// <summary>
|
||||
/// pnlForceUser 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 pnlForceUser;
|
||||
|
||||
/// <summary>
|
||||
/// lblTitolo 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.Label lblTitolo;
|
||||
|
||||
/// <summary>
|
||||
/// lblPwd 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.Label lblPwd;
|
||||
|
||||
/// <summary>
|
||||
/// authKey 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 authKey;
|
||||
|
||||
/// <summary>
|
||||
/// lblDominio 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.Label lblDominio;
|
||||
|
||||
/// <summary>
|
||||
/// dominio 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 dominio;
|
||||
|
||||
/// <summary>
|
||||
/// lblUser 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.Label lblUser;
|
||||
|
||||
/// <summary>
|
||||
/// user 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 user;
|
||||
|
||||
/// <summary>
|
||||
/// btnOk 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 btnOk;
|
||||
|
||||
/// <summary>
|
||||
/// pnlSelectUser 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 pnlSelectUser;
|
||||
|
||||
/// <summary>
|
||||
/// ddlStdUser 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.DropDownList ddlStdUser;
|
||||
|
||||
/// <summary>
|
||||
/// btnOkUserStd 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 btnOkUserStd;
|
||||
|
||||
/// <summary>
|
||||
/// lblMessage 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.Label lblMessage;
|
||||
|
||||
/// <summary>
|
||||
/// HypLinkSSO 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.HyperLink HypLinkSSO;
|
||||
public partial class mod_login
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo pnlForceUser.
|
||||
/// </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.Panel pnlForceUser;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblTitolo.
|
||||
/// </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 lblTitolo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblPwd.
|
||||
/// </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 lblPwd;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo authKey.
|
||||
/// </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 authKey;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblDominio.
|
||||
/// </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 lblDominio;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo dominio.
|
||||
/// </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 dominio;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblUser.
|
||||
/// </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 lblUser;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo user.
|
||||
/// </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 user;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnOk.
|
||||
/// </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 btnOk;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo pnlSelectUser.
|
||||
/// </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.Panel pnlSelectUser;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo ddlStdUser.
|
||||
/// </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 ddlStdUser;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnOkUserStd.
|
||||
/// </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 btnOkUserStd;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblMessage.
|
||||
/// </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 lblMessage;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo HypLinkSSO.
|
||||
/// </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.HyperLink HypLinkSSO;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,91 +1,91 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_main_help" CodeBehind="mod_main_help.ascx.cs" %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtAnagArticoli" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnAnagArticoli_Click">
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtAnagArticoli" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnAnagArticoli_Click">
|
||||
<div><i class="fa fa-tasks fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnAnagArticoli") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestPromesseOdl" CssClass="btn btn-outline-primary btn-block py-3" OnClick="btnGestPromesseOdl_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestPromesseOdl" CssClass="btn btn-outline-primary btn-block py-3" OnClick="btnGestPromesseOdl_Click">
|
||||
<div><i class="fa fa-list-ol fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestPromesseOdl") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestOdl" CssClass="btn btn-outline-success btn-block py-3" OnClick="btnGestOdl_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestOdl" CssClass="btn btn-outline-success btn-block py-3" OnClick="btnGestOdl_Click">
|
||||
<div><i class="fa fa-wrench fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestOdl") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestDatiMacchina" CssClass="btn btn-outline-secondary btn-block py-3" OnClick="btnGestDatiMacchina_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestDatiMacchina" CssClass="btn btn-outline-secondary btn-block py-3" OnClick="btnGestDatiMacchina_Click">
|
||||
<div><i class="fa fa-industry fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestDatiMacchina") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtApprovaTC" CssClass="btn btn-outline-warning btn-block py-3" OnClick="btnApprovaTC_Click"> <div><i class="fa fa-clock-o fa-4x"></i></div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtApprovaTC" CssClass="btn btn-outline-warning btn-block py-3" OnClick="btnApprovaTC_Click"> <div><i class="fa fa-clock-o fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnApprovaTC") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtApprovaProd" CssClass="btn btn-outline-danger btn-block py-3" OnClick="btnApprovaProd_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtApprovaProd" CssClass="btn btn-outline-danger btn-block py-3" OnClick="btnApprovaProd_Click">
|
||||
<div><i class="fa fa-thumbs-up fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnApprovaProd") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtBCode" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnBCode_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtBCode" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnBCode_Click">
|
||||
<div><i class="fa fa-barcode fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnBCode") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestKIT" CssClass="btn btn-outline-info btn-block py-3" OnClick="lbtGestKIT_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestKIT" CssClass="btn btn-outline-info btn-block py-3" OnClick="lbtGestKIT_Click">
|
||||
<div><i class="fa fa-object-group fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnGestKIT") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestPlan" CssClass="btn btn-outline-warning btn-block py-3" OnClick="lbtGestPlan_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtGestPlan" CssClass="btn btn-outline-warning btn-block py-3" OnClick="lbtGestPlan_Click">
|
||||
<div><i class="fa fa-map-signs fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnPlanner") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtDataImport" CssClass="btn btn-outline-info btn-block py-3" OnClick="lbtDataImport_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtDataImport" CssClass="btn btn-outline-info btn-block py-3" OnClick="lbtDataImport_Click">
|
||||
<div><i class="fa fa-download fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnDataImport") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtBCodeCtrack" CssClass="btn btn-outline-primary btn-block py-3" OnClick="lbtBCodeCtrack_Click">
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
<div class="col-3 py-4">
|
||||
<asp:LinkButton runat="server" ID="lbtBCodeCtrack" CssClass="btn btn-outline-primary btn-block py-3" OnClick="lbtBCodeCtrack_Click">
|
||||
<div><i class="fa fa-barcode fa-4x"></i></div>
|
||||
<div class="font-weight-bold mt-1 table-dark text-light">
|
||||
<%: traduci("btnBCodeCTrack") %>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true"
|
||||
Inherits="mod_menuBottom" CodeBehind="mod_menuBottom.ascx.cs" %>
|
||||
Inherits="MP_ADM.WebUserControls.mod_menuBottom" CodeBehind="mod_menuBottom.ascx.cs" %>
|
||||
|
||||
<div class="navbar navbar-dark bg-dark text-light fixed-bottom p-0" role="navigation">
|
||||
<div class="container-fluid">
|
||||
|
||||
@@ -3,19 +3,22 @@ using System.Configuration;
|
||||
using System.Diagnostics;
|
||||
using System.Web.UI;
|
||||
|
||||
public partial class mod_menuBottom : System.Web.UI.UserControl
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_menuBottom : BaseUserControl
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// sistemo le stringhe...
|
||||
//lblApp.Text = string.Format("<b>{0}</b> v.{1}.{2}", ConfigurationManager.AppSettings.Get("appName"), ConfigurationManager.AppSettings.Get("mainRev"), ConfigurationManager.AppSettings.Get("minRev"));
|
||||
var versionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
lblCopyRight.Text = string.Format("<b>{0}</b>", versionInfo.LegalCopyright);
|
||||
lblApp.Text = string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// sistemo le stringhe...
|
||||
var versionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
lblCopyRight.Text = string.Format("<b>{0}</b>", versionInfo.LegalCopyright);
|
||||
lblApp.Text = string.Format("{0} v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+41
-37
@@ -9,41 +9,45 @@
|
||||
|
||||
|
||||
|
||||
public partial class mod_menuBottom {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblrev.
|
||||
/// </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 lblrev;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblApp.
|
||||
/// </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 lblApp;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCopyRight.
|
||||
/// </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 lblCopyRight;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo updtRicerca.
|
||||
/// </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.UpdateProgress updtRicerca;
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_menuBottom
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblrev.
|
||||
/// </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 lblrev;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblApp.
|
||||
/// </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 lblApp;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCopyRight.
|
||||
/// </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 lblCopyRight;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo updtRicerca.
|
||||
/// </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.UpdateProgress updtRicerca;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,51 +1,50 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MoonPro_site.WebUserControls.mod_menuTop"
|
||||
CodeBehind="mod_menuTop.ascx.cs" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MP_ADM.WebUserControls.mod_menuTop"
|
||||
CodeBehind="mod_menuTop.ascx.cs" %>
|
||||
|
||||
<%-- Gestione resize --%>
|
||||
<asp:HiddenField runat="server" ID="HiddenHeight" OnValueChanged="HiddenHeight_ValueChanged" />
|
||||
<asp:HiddenField runat="server" ID="HiddenWidth" OnValueChanged="HiddenWidth_ValueChanged" />
|
||||
|
||||
|
||||
|
||||
<nav class="navbar navbar-expand fixed-top navbar-dark bg-black text-light titleBlock p-0">
|
||||
<div style="width: 100%;">
|
||||
<div class="row topTitle p-1">
|
||||
<div class="col-3 text-left">
|
||||
<div class="d-flex justify-content-start pl-3 text-left">
|
||||
<asp:LinkButton ID="btnUpdate" runat="server" CssClass="btn btn-sm btn-outline-info" OnClick="btnUpdate_Click"></asp:LinkButton>
|
||||
<asp:LinkButton ID="btnLogOut" runat="server" CssClass="dxButtonClass" Visible="False"
|
||||
OnClick="btnLogOut_Click"></asp:LinkButton>
|
||||
<span class="mx-2 dateTimeSmall">
|
||||
<%: DateTime.Now.ToString("yyyy.MM.dd") %><br />
|
||||
<%: DateTime.Now.ToString("HH.mm.ss") %>
|
||||
<asp:Label runat="server" ID="lastUpdate" CssClass="dateTimeSmall"></asp:Label>
|
||||
</span>
|
||||
<asp:UpdateProgress ID="updtPage" runat="server" DisplayAfter="10" DynamicLayout="true">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<i class="fa fa-cog fa-spin"></i> <i class="fa fa-cog fa-spin"></i> <i class="fa fa-cog fa-spin"></i>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
<asp:Image ID="Image1" runat="server" src="Images/LogoMapoNoText.png" CssClass="img-fluid" Height="1.5em" />
|
||||
<asp:HyperLink runat="server" is="hlHome" CssClass="btn btn-outline-info" NavigateUrl="~/menu"><i class="fa fa-home" aria-hidden="true"></i> MAPO ADMIN - Menu generale </asp:HyperLink>
|
||||
<asp:Image ID="Image2" runat="server" src="Images/LogoMapoNoText.png" CssClass="img-fluid" Height="1.5em" />
|
||||
</div>
|
||||
<div class="col-3 text-right">
|
||||
<asp:HyperLink runat="server" ID="hlGuida" NavigateUrl="~/help/index.html" Target="_blank" Style="text-decoration: none; color: White; font-size: small;" Visible="false" >
|
||||
<asp:Image ID="imgHelp" ImageUrl="~/images/Help.png" runat="server" ToolTip="Guida" Height="32px" />
|
||||
</asp:HyperLink>
|
||||
|
||||
<asp:HyperLink runat ="server" ID="hlSteamware" CssClass="btn btn-sm btn-outline-info" Target="_blank" NavigateUrl="https://www.steamware.net/MAPO">
|
||||
|
||||
<div style="width: 100%;">
|
||||
<div class="row topTitle p-1">
|
||||
<div class="col-3 text-left">
|
||||
<div class="d-flex justify-content-start pl-3 text-left">
|
||||
<asp:LinkButton ID="btnUpdate" runat="server" CssClass="btn btn-sm btn-outline-info" OnClick="btnUpdate_Click"></asp:LinkButton>
|
||||
<asp:LinkButton ID="btnLogOut" runat="server" CssClass="dxButtonClass" Visible="False"
|
||||
OnClick="btnLogOut_Click"></asp:LinkButton>
|
||||
<span class="mx-2 dateTimeSmall">
|
||||
<%: DateTime.Now.ToString("yyyy.MM.dd") %><br />
|
||||
<%: DateTime.Now.ToString("HH.mm.ss") %>
|
||||
<asp:Label runat="server" ID="lastUpdate" CssClass="dateTimeSmall"></asp:Label>
|
||||
</span>
|
||||
<asp:UpdateProgress ID="updtPage" runat="server" DisplayAfter="10" DynamicLayout="true">
|
||||
<ProgressTemplate>
|
||||
<div id="progress_back">
|
||||
</div>
|
||||
<div id="progress_top">
|
||||
<i class="fa fa-circle-o-notch fa-spin text-warning"></i>
|
||||
</div>
|
||||
</ProgressTemplate>
|
||||
</asp:UpdateProgress>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
<asp:Image ID="Image1" runat="server" src="Images/LogoMapoNoText.png" CssClass="img-fluid" Height="1.5em" />
|
||||
<asp:HyperLink runat="server" is="hlHome" CssClass="btn btn-outline-info" NavigateUrl="~/menu"><i class="fa fa-home" aria-hidden="true"></i> MAPO ADMIN - Menu generale </asp:HyperLink>
|
||||
<asp:Image ID="Image2" runat="server" src="Images/LogoMapoNoText.png" CssClass="img-fluid" Height="1.5em" />
|
||||
</div>
|
||||
<div class="col-3 text-right">
|
||||
<asp:HyperLink runat="server" ID="hlGuida" NavigateUrl="~/help/index.html" Target="_blank" Style="text-decoration: none; color: White; font-size: small;" Visible="false">
|
||||
<asp:Image ID="imgHelp" ImageUrl="~/images/Help.png" runat="server" ToolTip="Guida" Height="32px" />
|
||||
</asp:HyperLink>
|
||||
|
||||
<asp:HyperLink runat="server" ID="hlSteamware" CssClass="btn btn-sm btn-outline-info" Target="_blank" NavigateUrl="https://www.steamware.net/MAPO">
|
||||
Steamware - sito</asp:HyperLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="mb-3"> </div>
|
||||
|
||||
|
||||
@@ -3,179 +3,168 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_menuTop : System.Web.UI.UserControl
|
||||
{
|
||||
private string _titleString;
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_toggleMenuSx;
|
||||
public event EventHandler eh_reqUpdateMenu;
|
||||
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_menuTop : BaseUserControl
|
||||
{
|
||||
btnLogOut.Visible = user_std.UtSn.isForcedUser;
|
||||
if (memLayer.ML.isInSessionObject("doUpdateNow"))
|
||||
{
|
||||
doFullDataUpdate();
|
||||
memLayer.ML.emptySessionVal("doUpdateNow");
|
||||
}
|
||||
}
|
||||
protected void btnLogOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Session.Abandon();
|
||||
Response.Redirect("forceUser.aspx");
|
||||
}
|
||||
protected void btnUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
doFullDataUpdate();
|
||||
updateWindowSize();
|
||||
}
|
||||
private string _titleString;
|
||||
|
||||
private void doFullDataUpdate()
|
||||
{
|
||||
// salvo i dati attuali...
|
||||
string cod_cdc = SteamWare.memLayer.ML.StringSessionObj("valRicercaCdC");
|
||||
string lingua = user_std.UtSn.lingua;
|
||||
string USER_NAME = SteamWare.memLayer.ML.StringSessionObj("USER_NAME");
|
||||
string DOMINIO = SteamWare.memLayer.ML.StringSessionObj("DOMINIO");
|
||||
bool isForceUser = user_std.UtSn.isForcedUser;
|
||||
// salvo i valori delle tab in session...
|
||||
Dictionary<string, string> sessionParam = SteamWare.memLayer.ML.valSess2SurvUpd;
|
||||
#region gestione eventi
|
||||
|
||||
// svuoto session e cache per rileggere i dati da Db
|
||||
Session.RemoveAll();
|
||||
public event EventHandler eh_toggleMenuSx;
|
||||
public event EventHandler eh_reqUpdateMenu;
|
||||
|
||||
SteamWare.memLayer.ML.flushRegisteredCache();
|
||||
#endregion
|
||||
|
||||
// rimemorizzo
|
||||
SteamWare.memLayer.ML.setSessionVal("valRicercaCdC", cod_cdc);
|
||||
user_std.UtSn.startUpUtente(DOMINIO, USER_NAME);
|
||||
user_std.UtSn.lingua = lingua;
|
||||
user_std.UtSn.isForcedUser = isForceUser;
|
||||
DataWrap.DW.resetVocabolario();
|
||||
|
||||
// risalvo in session i valori...
|
||||
foreach (KeyValuePair<string, string> kvp in sessionParam)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal(kvp.Key, kvp.Value, true);
|
||||
}
|
||||
|
||||
// cambio visibilità del menù laterale...
|
||||
if (eh_reqUpdateMenu != null)
|
||||
{
|
||||
eh_reqUpdateMenu(this, new EventArgs());
|
||||
}
|
||||
|
||||
Response.Redirect(Page.Request.Url.ToString());
|
||||
}
|
||||
|
||||
protected void bindControlli()
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
//lnkHelp.ToolTip = traduci("ApriManualeHelp");
|
||||
// solo se user è auth...
|
||||
if (user_std.UtSn.isAuth)
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
//lnkShowHide.Text = user_std.UtSn.Traduci("lnkShowHide");
|
||||
//lblTitle.Text = user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("titleApp"));
|
||||
if (_titleString != "")
|
||||
{
|
||||
//// traduzione di tutti i termini
|
||||
//lblMessUtente.Text = user_std.UtSn.Traduci(_titleString);
|
||||
////doppio in english!
|
||||
//lblMessUtenteEn.Text = "(" + user_std.UtSn.TraduciEn(_titleString) + ")";
|
||||
_titleString = "";
|
||||
Session["_titleString"] = _titleString;
|
||||
Session["SessionUpdateMenu"] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
//string titolo = user_std.UtSn.Traduci(SteamWare.memLayer.ML.CRS("welcomeApp"));
|
||||
//lblMessUtente.Text = string.Format("{0} - {1}", titolo, memLayer.ML.CRS("SiteName"));
|
||||
//lblMessUtenteEn.Text = "";
|
||||
Session["SessionUpdateMenu"] = false;
|
||||
}
|
||||
btnLogOut.Text = user_std.UtSn.Traduci("LogOut");
|
||||
btnUpdate.Text = user_std.UtSn.Traduci("Update");
|
||||
//lblUser.Text = String.Format("{0}: {1}", user_std.UtSn.Traduci("User"), user_std.UtSn.CognomeNome);
|
||||
setTimer();
|
||||
setClock();
|
||||
btnLogOut.Visible = user_std.UtSn.isForcedUser;
|
||||
if (memLayer.ML.isInSessionObject("doUpdateNow"))
|
||||
{
|
||||
doFullDataUpdate();
|
||||
memLayer.ML.emptySessionVal("doUpdateNow");
|
||||
}
|
||||
}
|
||||
protected void btnLogOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Session.Abandon();
|
||||
Response.Redirect("forceUser.aspx");
|
||||
}
|
||||
protected void btnUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
doFullDataUpdate();
|
||||
updateWindowSize();
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
}
|
||||
protected void lnkShowHide_Click(object sender, EventArgs e)
|
||||
{
|
||||
// cambio visibilità del menù laterale...
|
||||
if (eh_toggleMenuSx != null)
|
||||
{
|
||||
eh_toggleMenuSx(this, new EventArgs());
|
||||
}
|
||||
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
setClock();
|
||||
}
|
||||
private void doFullDataUpdate()
|
||||
{
|
||||
// salvo i dati attuali...
|
||||
string cod_cdc = memLayer.ML.StringSessionObj("valRicercaCdC");
|
||||
string lingua = user_std.UtSn.lingua;
|
||||
string USER_NAME = memLayer.ML.StringSessionObj("USER_NAME");
|
||||
string DOMINIO = memLayer.ML.StringSessionObj("DOMINIO");
|
||||
bool isForceUser = user_std.UtSn.isForcedUser;
|
||||
// salvo i valori delle tab in session...
|
||||
Dictionary<string, string> sessionParam = memLayer.ML.valSess2SurvUpd;
|
||||
|
||||
private void setClock()
|
||||
{
|
||||
//lblDateTime.Text = DateTime.Now.ToString("HH:mm:ss");
|
||||
}
|
||||
protected void lblUser_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("./chLang.aspx");
|
||||
}
|
||||
// svuoto session e cache per rileggere i dati da Db
|
||||
Session.RemoveAll();
|
||||
|
||||
memLayer.ML.flushRegisteredCache();
|
||||
|
||||
// rimemorizzo
|
||||
memLayer.ML.setSessionVal("valRicercaCdC", cod_cdc);
|
||||
user_std.UtSn.startUpUtente(DOMINIO, USER_NAME);
|
||||
user_std.UtSn.lingua = lingua;
|
||||
user_std.UtSn.isForcedUser = isForceUser;
|
||||
DataWrap.DW.resetVocabolario();
|
||||
|
||||
// risalvo in session i valori...
|
||||
foreach (KeyValuePair<string, string> kvp in sessionParam)
|
||||
{
|
||||
memLayer.ML.setSessionVal(kvp.Key, kvp.Value, true);
|
||||
}
|
||||
|
||||
// cambio visibilità del menù laterale...
|
||||
if (eh_reqUpdateMenu != null)
|
||||
{
|
||||
eh_reqUpdateMenu(this, new EventArgs());
|
||||
}
|
||||
|
||||
Response.Redirect(Page.Request.Url.ToString());
|
||||
}
|
||||
|
||||
protected void bindControlli()
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// solo se user è auth...
|
||||
if (user_std.UtSn.isAuth)
|
||||
{
|
||||
if (_titleString != "")
|
||||
{
|
||||
_titleString = "";
|
||||
Session["_titleString"] = _titleString;
|
||||
Session["SessionUpdateMenu"] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Session["SessionUpdateMenu"] = false;
|
||||
}
|
||||
btnLogOut.Text = user_std.UtSn.Traduci("LogOut");
|
||||
btnUpdate.Text = user_std.UtSn.Traduci("Update");
|
||||
setTimer();
|
||||
setClock();
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
}
|
||||
protected void lnkShowHide_Click(object sender, EventArgs e)
|
||||
{
|
||||
// cambio visibilità del menù laterale...
|
||||
if (eh_toggleMenuSx != null)
|
||||
{
|
||||
eh_toggleMenuSx(this, new EventArgs());
|
||||
}
|
||||
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
setClock();
|
||||
}
|
||||
|
||||
private void setClock()
|
||||
{
|
||||
//lblDateTime.Text = DateTime.Now.ToString("HH:mm:ss");
|
||||
}
|
||||
protected void lblUser_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("./chLang.aspx");
|
||||
}
|
||||
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
btnUpdate.Text = "Update";
|
||||
updateWindowSize();
|
||||
}
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
btnUpdate.Text = "Update";
|
||||
updateWindowSize();
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
}
|
||||
protected override void OnPreRender(EventArgs e)
|
||||
{
|
||||
base.OnPreRender(e);
|
||||
}
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
}
|
||||
protected override void OnPreRender(EventArgs e)
|
||||
{
|
||||
base.OnPreRender(e);
|
||||
}
|
||||
|
||||
private void updateWindowSize()
|
||||
{
|
||||
if (HiddenHeight.Value != "")
|
||||
{
|
||||
memLayer.ML.setSessionVal("WindowHeight", HiddenHeight.Value, true);
|
||||
}
|
||||
if (HiddenWidth.Value != "")
|
||||
{
|
||||
memLayer.ML.setSessionVal("WindowWidth", HiddenWidth.Value);
|
||||
}
|
||||
}
|
||||
private void updateWindowSize()
|
||||
{
|
||||
if (HiddenHeight.Value != "")
|
||||
{
|
||||
memLayer.ML.setSessionVal("WindowHeight", HiddenHeight.Value, true);
|
||||
}
|
||||
if (HiddenWidth.Value != "")
|
||||
{
|
||||
memLayer.ML.setSessionVal("WindowWidth", HiddenWidth.Value);
|
||||
}
|
||||
}
|
||||
|
||||
protected void HiddenHeight_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateWindowSize();
|
||||
}
|
||||
protected void HiddenHeight_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateWindowSize();
|
||||
}
|
||||
|
||||
protected void HiddenWidth_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateWindowSize();
|
||||
}
|
||||
protected void HiddenWidth_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
updateWindowSize();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
-15
@@ -7,11 +7,13 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_menuTop {
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_menuTop
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo HiddenHeight.
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField HiddenHeight;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo HiddenWidth.
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField HiddenWidth;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnUpdate.
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton btnUpdate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnLogOut.
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton btnLogOut;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lastUpdate.
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lastUpdate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo updtPage.
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdateProgress updtPage;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Image1.
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image Image1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Image2.
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image Image2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlGuida.
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlGuida;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo imgHelp.
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace MoonPro_site.WebUserControls {
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Image imgHelp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hlSteamware.
|
||||
/// </summary>
|
||||
|
||||
@@ -5,93 +5,93 @@ using System.Web.UI;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_menuTopCompact : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_menuTopCompact : BaseUserControl
|
||||
{
|
||||
string lastPage = Request.Url.LocalPath.Split('/').Last();
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// fix visibilità TASK
|
||||
hlTask.Visible = devicesAuthProxy.stObj.userHasRight("CT_userStart");
|
||||
// se l'utente NON c'è torno a login...
|
||||
if (!devicesAuthProxy.stObj.isAuth)
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (lastPage != "" && lastPage != "login")
|
||||
{
|
||||
Session["nextPage"] = lastPage;
|
||||
}
|
||||
// SE non sono in "safe page"
|
||||
if (memLayer.ML.CRS("_loginPages").IndexOf(lastPage) < 0)
|
||||
{
|
||||
Response.Redirect("login");
|
||||
}
|
||||
string lastPage = Request.Url.LocalPath.Split('/').Last();
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// fix visibilità TASK
|
||||
hlTask.Visible = devicesAuthProxy.stObj.userHasRight("CT_userStart");
|
||||
// se l'utente NON c'è torno a login...
|
||||
if (!devicesAuthProxy.stObj.isAuth)
|
||||
{
|
||||
if (lastPage != "" && lastPage != "login")
|
||||
{
|
||||
Session["nextPage"] = lastPage;
|
||||
}
|
||||
// SE non sono in "safe page"
|
||||
if (memLayer.ML.CRS("_loginPages").IndexOf(lastPage) < 0)
|
||||
{
|
||||
Response.Redirect("login");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
PagCorrente();
|
||||
}
|
||||
}
|
||||
// controllo pagina...
|
||||
bool pageAuth = devicesAuthProxy.stObj.isPageEnabled(lastPage);
|
||||
// controllo pag auth...
|
||||
if (!pageAuth)
|
||||
{
|
||||
Response.Redirect("~/login");
|
||||
}
|
||||
lblTitolo.Text = memLayer.ML.CRS("appName");
|
||||
}
|
||||
else
|
||||
/// <summary>
|
||||
/// salva in variabile pagina il nome della pagina corrente
|
||||
/// </summary>
|
||||
protected void PagCorrente()
|
||||
{
|
||||
PagCorrente();
|
||||
string[] uri = Request.Url.LocalPath.Split('/');
|
||||
// salvo pagina corrente
|
||||
devicesAuthProxy.pagCorrente = uri.Last();
|
||||
if (devicesAuthProxy.pagPrecedente == "")
|
||||
{
|
||||
devicesAuthProxy.pagPrecedente = devicesAuthProxy.pagCorrente;
|
||||
}
|
||||
}
|
||||
}
|
||||
// controllo pagina...
|
||||
bool pageAuth = devicesAuthProxy.stObj.isPageEnabled(lastPage);
|
||||
// controllo pag auth...
|
||||
if (!pageAuth)
|
||||
{
|
||||
Response.Redirect("~/login");
|
||||
}
|
||||
lblTitolo.Text = memLayer.ML.CRS("appName");
|
||||
}
|
||||
/// <summary>
|
||||
/// salva in variabile pagina il nome della pagina corrente
|
||||
/// </summary>
|
||||
protected void PagCorrente()
|
||||
{
|
||||
string[] uri = Request.Url.LocalPath.Split('/');
|
||||
// salvo pagina corrente
|
||||
devicesAuthProxy.pagCorrente = uri.Last();
|
||||
if (devicesAuthProxy.pagPrecedente == "")
|
||||
{
|
||||
devicesAuthProxy.pagPrecedente = devicesAuthProxy.pagCorrente;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string CodPost
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodPost");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string CodOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodOpr");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice TASK corrente
|
||||
/// </summary>
|
||||
public string CurrNumTask
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CurrNumTask");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string DescPost
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string CodPost
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodPost");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string CodOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodOpr");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice TASK corrente
|
||||
/// </summary>
|
||||
public string CurrNumTask
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CurrNumTask");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice postazione di lavoro
|
||||
/// </summary>
|
||||
public string DescPost
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
#if false
|
||||
if (memLayer.ML.isInSessionObject("DescPost"))
|
||||
{
|
||||
@@ -107,17 +107,17 @@ namespace MP_ADM.WebUserControls
|
||||
memLayer.ML.setSessionVal("DescPost", answ);
|
||||
}
|
||||
#endif
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string NomeOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Codice Operatore
|
||||
/// </summary>
|
||||
public string NomeOpr
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
#if false
|
||||
if (memLayer.ML.isInSessionObject("NomeOpr"))
|
||||
{
|
||||
@@ -133,8 +133,8 @@ namespace MP_ADM.WebUserControls
|
||||
memLayer.ML.setSessionVal("NomeOpr", answ);
|
||||
}
|
||||
#endif
|
||||
return answ;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_newOdl.ascx.cs"
|
||||
Inherits="MoonPro_site.WebUserControls.mod_newOdl" %>
|
||||
Inherits="MP_ADM.WebUserControls.mod_newOdl" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<div style="font-size: 0.8em; background-color: #EFEFEF;">
|
||||
<div style="float: none; clear: both;">
|
||||
|
||||
@@ -2,162 +2,158 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_newOdl : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_newOdl : BaseUserControl
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_nuovoValore;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// conferma inserimento TC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
// controllo se ho tutti i valori ok...
|
||||
string CodArticolo = "";
|
||||
string IdxMacchina = "";
|
||||
int numPezzi = 0;
|
||||
int pzPallet = 1;
|
||||
decimal TCiclo = 0;
|
||||
|
||||
try
|
||||
{
|
||||
CodArticolo = ddlArticolo.SelectedValue;
|
||||
IdxMacchina = ddlMacchine.SelectedValue;
|
||||
//IdxMacchina = txtMacchina.Text.Trim();
|
||||
// se IdxMacchina è vuoto metto null...
|
||||
if (IdxMacchina == "")
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
IdxMacchina = "0";
|
||||
}
|
||||
numPezzi = Convert.ToInt32(txtPezzi.Text.Trim());
|
||||
TCiclo = Convert.ToDecimal(txtTempoCiclo.Text.Trim().Replace(".", ","));
|
||||
pzPallet = Convert.ToInt32(txtPzPallet.Text.Trim());
|
||||
DataLayerObj.taODL.InsertQuery(CodArticolo, DataLayerObj.MatrOpr, IdxMacchina, numPezzi, TCiclo, pzPallet, chkToAs400.Checked, txtCommessa.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito ad inserire l'ODL con i seguenti parametri: {0} | {1} | {2} | {3} | {4}", CodArticolo, IdxMacchina, numPezzi, TCiclo, pzPallet), tipoLog.ERROR);
|
||||
}
|
||||
// segnalo update
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// annullamento inserimento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorno label min e centesimi
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtTempoCiclo_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
string text = "";
|
||||
string txtMinCent = txtTempoCiclo.Text.Trim().Replace(".", ",");
|
||||
int min = 0;
|
||||
int sec = 0;
|
||||
try
|
||||
{
|
||||
// cerco di convertire in min/sec
|
||||
min = Convert.ToInt32(Math.Floor(Convert.ToDouble(txtMinCent)));
|
||||
sec = Convert.ToInt32((Convert.ToDouble(txtMinCent) - min) * 60);
|
||||
text = string.Format("{0}:{1:00}", min, sec);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
lblMinSec.Text = text;
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione articolo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlArticolo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro elenco ultimi 5 tempi e note...
|
||||
/// </summary>
|
||||
private void showLastTimeAndNote()
|
||||
{
|
||||
// update tempi ciclo!
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlMacchine_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
#region gestione eventi
|
||||
|
||||
public event EventHandler eh_nuovoValore;
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// conferma inserimento TC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
// controllo se ho tutti i valori ok...
|
||||
string CodArticolo = "";
|
||||
string IdxMacchina = "";
|
||||
int numPezzi = 0;
|
||||
int pzPallet = 1;
|
||||
decimal TCiclo = 0;
|
||||
|
||||
try
|
||||
{
|
||||
CodArticolo = ddlArticolo.SelectedValue;
|
||||
IdxMacchina = ddlMacchine.SelectedValue;
|
||||
//IdxMacchina = txtMacchina.Text.Trim();
|
||||
// se IdxMacchina è vuoto metto null...
|
||||
if (IdxMacchina == "")
|
||||
{
|
||||
IdxMacchina = "0";
|
||||
}
|
||||
numPezzi = Convert.ToInt32(txtPezzi.Text.Trim());
|
||||
TCiclo = Convert.ToDecimal(txtTempoCiclo.Text.Trim().Replace(".", ","));
|
||||
pzPallet = Convert.ToInt32(txtPzPallet.Text.Trim());
|
||||
DataLayerObj.taODL.InsertQuery(CodArticolo, DataLayerObj.MatrOpr, IdxMacchina, numPezzi, TCiclo, pzPallet, chkToAs400.Checked, txtCommessa.Text.Trim());
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("Non sono riuscito ad inserire l'ODL con i seguenti parametri: {0} | {1} | {2} | {3} | {4}", CodArticolo, IdxMacchina, numPezzi, TCiclo, pzPallet), tipoLog.ERROR);
|
||||
}
|
||||
// segnalo update
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// annullamento inserimento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorno label min e centesimi
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtTempoCiclo_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
string text = "";
|
||||
string txtMinCent = txtTempoCiclo.Text.Trim().Replace(".", ",");
|
||||
int min = 0;
|
||||
int sec = 0;
|
||||
try
|
||||
{
|
||||
// cerco di convertire in min/sec
|
||||
min = Convert.ToInt32(Math.Floor(Convert.ToDouble(txtMinCent)));
|
||||
sec = Convert.ToInt32((Convert.ToDouble(txtMinCent) - min) * 60);
|
||||
text = string.Format("{0}:{1:00}", min, sec);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
lblMinSec.Text = text;
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione articolo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlArticolo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro elenco ultimi 5 tempi e note...
|
||||
/// </summary>
|
||||
private void showLastTimeAndNote()
|
||||
{
|
||||
// update tempi ciclo!
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlMacchine_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grViewTempi.SelectedIndex = -1;
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grViewTempi_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(grViewTempi.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
MapoDb.DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByIdx(idxOdl, false)[0];
|
||||
// precompilo dati pezzi/tempi
|
||||
txtPezzi.Text = rigaOdl.NumPezzi.ToString();
|
||||
txtTempoCiclo.Text = rigaOdl.TCAssegnato.ToString("0.00");
|
||||
txtPzPallet.Text = rigaOdl.PzPallet.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grViewTempi.SelectedIndex = -1;
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grViewTempi_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(grViewTempi.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
MapoDb.DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByIdx(idxOdl, false)[0];
|
||||
// precompilo dati pezzi/tempi
|
||||
txtPezzi.Text = rigaOdl.NumPezzi.ToString();
|
||||
txtTempoCiclo.Text = rigaOdl.TCAssegnato.ToString("0.00");
|
||||
txtPzPallet.Text = rigaOdl.PzPallet.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
+80
-79
@@ -1,177 +1,178 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_newOdl {
|
||||
|
||||
public partial class mod_newOdl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// ddlArticolo control.
|
||||
/// Controllo ddlArticolo.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 ddlArticolo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// odsArticoli control.
|
||||
/// Controllo odsArticoli.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 odsArticoli;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlMacchine control.
|
||||
/// Controllo ddlMacchine.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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>
|
||||
/// odsMacchine control.
|
||||
/// Controllo odsMacchine.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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>
|
||||
/// txtPezzi control.
|
||||
/// Controllo txtPezzi.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 txtPezzi;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rfvPezzi control.
|
||||
/// Controllo rfvPezzi.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.RequiredFieldValidator rfvPezzi;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// chkToAs400 control.
|
||||
/// Controllo chkToAs400.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.CheckBox chkToAs400;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTempoCiclo control.
|
||||
/// Controllo txtTempoCiclo.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 txtTempoCiclo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblMinSec control.
|
||||
/// Controllo lblMinSec.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 lblMinSec;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rfvTempoCiclo control.
|
||||
/// Controllo rfvTempoCiclo.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.RequiredFieldValidator rfvTempoCiclo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPzPallet control.
|
||||
/// Controllo txtPzPallet.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 txtPzPallet;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rfvPzPallet control.
|
||||
/// Controllo rfvPzPallet.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.RequiredFieldValidator rfvPzPallet;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCommessa control.
|
||||
/// Controllo txtCommessa.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 txtCommessa;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnOk control.
|
||||
/// Controllo btnOk.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 btnOk;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnCancel control.
|
||||
/// Controllo btnCancel.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 btnCancel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// divTempi control.
|
||||
/// Controllo divTempi.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.HtmlControls.HtmlGenericControl divTempi;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// grViewTempi control.
|
||||
/// Controllo grViewTempi.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 grViewTempi;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// odsTempi control.
|
||||
/// Controllo odsTempi.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 odsTempi;
|
||||
}
|
||||
|
||||
@@ -5,211 +5,207 @@ using System.Web.UI;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_newPromessaODL : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
/// </summary>
|
||||
DataLayer DataLayerObj = new DataLayer();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class mod_newPromessaODL : BaseUserControl
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
setDefaults();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Testo conferma salvataggio (create/Edit)
|
||||
/// </summary>
|
||||
public string testoConf
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "Crea Promessa ODL";
|
||||
if (memLayer.ML.isInSessionObject("idxProm2Edit"))
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
answ = "Edit Promessa ODL";
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
setDefaults();
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public void doSelPODL()
|
||||
{
|
||||
// se ho una promessa da clonare copio dati da quella...
|
||||
int idxProm = 0;
|
||||
try
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("idxProm2Clone"))
|
||||
/// <summary>
|
||||
/// Testo conferma salvataggio (create/Edit)
|
||||
/// </summary>
|
||||
public string testoConf
|
||||
{
|
||||
idxProm = memLayer.ML.IntSessionObj("idxProm2Clone");
|
||||
get
|
||||
{
|
||||
string answ = "Crea Promessa ODL";
|
||||
if (memLayer.ML.isInSessionObject("idxProm2Edit"))
|
||||
{
|
||||
answ = "Edit Promessa ODL";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
else if (memLayer.ML.isInSessionObject("idxProm2Edit"))
|
||||
public void doSelPODL()
|
||||
{
|
||||
idxProm = memLayer.ML.IntSessionObj("idxProm2Edit");
|
||||
// se ho una promessa da clonare copio dati da quella...
|
||||
int idxProm = 0;
|
||||
try
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("idxProm2Clone"))
|
||||
{
|
||||
idxProm = memLayer.ML.IntSessionObj("idxProm2Clone");
|
||||
}
|
||||
else if (memLayer.ML.isInSessionObject("idxProm2Edit"))
|
||||
{
|
||||
idxProm = memLayer.ML.IntSessionObj("idxProm2Edit");
|
||||
}
|
||||
// provo a selezionare
|
||||
var tPODL = DataLayerObj.taPODL.getByKey(idxProm);
|
||||
if (tPODL.Rows.Count > 0)
|
||||
{
|
||||
var rPODL = tPODL[0];
|
||||
txtSearch.Text = rPODL.CodArticolo;
|
||||
ddlArticolo.DataBind();
|
||||
ddlArticolo.SelectedValue = rPODL.CodArticolo;
|
||||
ddlGruppi.DataBind();
|
||||
ddlGruppi.SelectedValue = rPODL.CodGruppo;
|
||||
txtNumPz.Text = rPODL.NumPezzi.ToString();
|
||||
txtPzPallet.Text = rPODL.PzPallet.ToString();
|
||||
txtPrio.Text = rPODL.Priorita.ToString();
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
{
|
||||
txtTCms.Text = TempiCiclo.minSec(rPODL.TCAssegnato);
|
||||
}
|
||||
else
|
||||
{
|
||||
txtTCmc.Text = rPODL.TCAssegnato.ToString("N3");
|
||||
}
|
||||
ddlMacchine.SelectedValue = rPODL.IdxMacchina;
|
||||
txtKeyExt.Text = rPODL.KeyRichiesta;
|
||||
// svuoto se ci fosse cloning......
|
||||
memLayer.ML.emptySessionVal("idxProm2Clone");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
// provo a selezionare
|
||||
var tPODL = DataLayerObj.taPODL.getByKey(idxProm);
|
||||
if (tPODL.Rows.Count > 0)
|
||||
{
|
||||
var rPODL = tPODL[0];
|
||||
txtSearch.Text = rPODL.CodArticolo;
|
||||
ddlArticolo.DataBind();
|
||||
ddlArticolo.SelectedValue = rPODL.CodArticolo;
|
||||
ddlGruppi.DataBind();
|
||||
ddlGruppi.SelectedValue = rPODL.CodGruppo;
|
||||
txtNumPz.Text = rPODL.NumPezzi.ToString();
|
||||
txtPzPallet.Text = rPODL.PzPallet.ToString();
|
||||
txtPrio.Text = rPODL.Priorita.ToString();
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
{
|
||||
txtTCms.Text = TempiCiclo.minSec(rPODL.TCAssegnato);
|
||||
}
|
||||
else
|
||||
{
|
||||
txtTCmc.Text = rPODL.TCAssegnato.ToString("N3");
|
||||
}
|
||||
ddlMacchine.SelectedValue = rPODL.IdxMacchina;
|
||||
txtKeyExt.Text = rPODL.KeyRichiesta;
|
||||
// svuoto se ci fosse cloning......
|
||||
memLayer.ML.emptySessionVal("idxProm2Clone");
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
|
||||
private void setDefaults()
|
||||
{
|
||||
// se abilitato in config inserisce i valori defaults x insert...
|
||||
if (memLayer.ML.cdvb("resetDefaultPromessaOdl"))
|
||||
{
|
||||
txtNumPz.Text = "1";
|
||||
txtPzPallet.Text = "1";
|
||||
txtPrio.Text = "1";
|
||||
// in base ad impostazione mostro TC come min:sec o min.cent
|
||||
divTCms.Visible = false;
|
||||
divTCmc.Visible = false;
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
private void setDefaults()
|
||||
{
|
||||
divTCms.Visible = true;
|
||||
txtTCms.Text = "1:00";
|
||||
// se abilitato in config inserisce i valori defaults x insert...
|
||||
if (memLayer.ML.cdvb("resetDefaultPromessaOdl"))
|
||||
{
|
||||
txtNumPz.Text = "1";
|
||||
txtPzPallet.Text = "1";
|
||||
txtPrio.Text = "1";
|
||||
// in base ad impostazione mostro TC come min:sec o min.cent
|
||||
divTCms.Visible = false;
|
||||
divTCmc.Visible = false;
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
{
|
||||
divTCms.Visible = true;
|
||||
txtTCms.Text = "1:00";
|
||||
}
|
||||
else
|
||||
{
|
||||
divTCmc.Visible = true;
|
||||
txtTCmc.Text = "1.00";
|
||||
}
|
||||
memLayer.ML.emptySessionVal("idxProm2Clone");
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
protected void txtSearch_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
divTCmc.Visible = true;
|
||||
txtTCmc.Text = "1.00";
|
||||
ddlArticolo.DataBind();
|
||||
}
|
||||
memLayer.ML.emptySessionVal("idxProm2Clone");
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
}
|
||||
}
|
||||
|
||||
protected void txtSearch_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
ddlArticolo.DataBind();
|
||||
}
|
||||
#region gestione eventi
|
||||
|
||||
#region gestione eventi
|
||||
public event EventHandler eh_nuovoValore;
|
||||
|
||||
public event EventHandler eh_nuovoValore;
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// conferma inserimento TC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
// controllo se ho tutti i valori ok...
|
||||
string CodArticolo = "";
|
||||
string Gruppo = "";
|
||||
string IdxMacchina = "";
|
||||
string KeyReq = "";
|
||||
int numPezzi = 0;
|
||||
int pzPallet = 1;
|
||||
decimal TCiclo = 0;
|
||||
bool attiv = false;
|
||||
int prio = 0;
|
||||
|
||||
try
|
||||
{
|
||||
CodArticolo = ddlArticolo.SelectedValue;
|
||||
Gruppo = ddlGruppi.SelectedValue;
|
||||
IdxMacchina = ddlMacchine.SelectedValue;
|
||||
KeyReq = txtKeyExt.Text.Trim();
|
||||
//IdxMacchina = txtMacchina.Text.Trim();
|
||||
// se IdxMacchina è vuoto metto null...
|
||||
if (IdxMacchina == "")
|
||||
/// <summary>
|
||||
/// conferma inserimento TC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
IdxMacchina = "0";
|
||||
}
|
||||
numPezzi = Convert.ToInt32(txtNumPz.Text.Trim());
|
||||
// controllo se ho tutti i valori ok...
|
||||
string CodArticolo = "";
|
||||
string Gruppo = "";
|
||||
string IdxMacchina = "";
|
||||
string KeyReq = "";
|
||||
int numPezzi = 0;
|
||||
int pzPallet = 1;
|
||||
decimal TCiclo = 0;
|
||||
bool attiv = false;
|
||||
int prio = 0;
|
||||
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
{
|
||||
string[] sTC = txtTCms.Text.Trim().Split(':');
|
||||
int numMin = 0;
|
||||
int numSec = 0;
|
||||
int.TryParse(sTC[0], out numMin);
|
||||
int.TryParse(sTC[1], out numSec);
|
||||
TCiclo = numMin + ((decimal)numSec) / 60;
|
||||
}
|
||||
else
|
||||
{
|
||||
decimal.TryParse(txtTCmc.Text.Replace(".", ","), out TCiclo);
|
||||
}
|
||||
pzPallet = Convert.ToInt32(txtPzPallet.Text.Trim());
|
||||
attiv = chkAttiv.Checked;
|
||||
int.TryParse(txtPrio.Text, out prio);
|
||||
try
|
||||
{
|
||||
CodArticolo = ddlArticolo.SelectedValue;
|
||||
Gruppo = ddlGruppi.SelectedValue;
|
||||
IdxMacchina = ddlMacchine.SelectedValue;
|
||||
KeyReq = txtKeyExt.Text.Trim();
|
||||
//IdxMacchina = txtMacchina.Text.Trim();
|
||||
// se IdxMacchina è vuoto metto null...
|
||||
if (IdxMacchina == "")
|
||||
{
|
||||
IdxMacchina = "0";
|
||||
}
|
||||
numPezzi = Convert.ToInt32(txtNumPz.Text.Trim());
|
||||
|
||||
// controllo se sono in modalità EDIT faccio un update, altrimenti faccio un INSERT...
|
||||
if (memLayer.ML.isInSessionObject("idxProm2Edit"))
|
||||
{
|
||||
int idxProm = memLayer.ML.IntSessionObj("idxProm2Edit");
|
||||
DataLayerObj.taPODL.updateQuery(KeyReq, KeyReq, attiv, CodArticolo, Gruppo, IdxMacchina, numPezzi, TCiclo, DateTime.Now, prio, pzPallet, idxProm);
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
{
|
||||
string[] sTC = txtTCms.Text.Trim().Split(':');
|
||||
int numMin = 0;
|
||||
int numSec = 0;
|
||||
int.TryParse(sTC[0], out numMin);
|
||||
int.TryParse(sTC[1], out numSec);
|
||||
TCiclo = numMin + ((decimal)numSec) / 60;
|
||||
}
|
||||
else
|
||||
{
|
||||
decimal.TryParse(txtTCmc.Text.Replace(".", ","), out TCiclo);
|
||||
}
|
||||
pzPallet = Convert.ToInt32(txtPzPallet.Text.Trim());
|
||||
attiv = chkAttiv.Checked;
|
||||
int.TryParse(txtPrio.Text, out prio);
|
||||
|
||||
// controllo se sono in modalità EDIT faccio un update, altrimenti faccio un INSERT...
|
||||
if (memLayer.ML.isInSessionObject("idxProm2Edit"))
|
||||
{
|
||||
int idxProm = memLayer.ML.IntSessionObj("idxProm2Edit");
|
||||
DataLayerObj.taPODL.updateQuery(KeyReq, KeyReq, attiv, CodArticolo, Gruppo, IdxMacchina, numPezzi, TCiclo, DateTime.Now, prio, pzPallet, idxProm);
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
}
|
||||
else
|
||||
{
|
||||
// 2018.09.25 --> inserisco PROMESSA ODL
|
||||
//MapoDb.DataLayerObj.taODL.InsertQuery(CodArticolo, MapoDb.DataLayer.MatrOpr, IdxMacchina, numPezzi, TCiclo, pzPallet, chkToAs400.Checked, txtCommessa.Text.Trim());
|
||||
DataLayerObj.taPODL.insertQuery(KeyReq, KeyReq, attiv, CodArticolo, Gruppo, IdxMacchina, numPezzi, TCiclo, DateTime.Now, prio, pzPallet, "");
|
||||
}
|
||||
}
|
||||
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} | {8}{9}{10}", KeyReq, attiv, CodArticolo, IdxMacchina, numPezzi, TCiclo, prio, pzPallet, memLayer.ML.IntSessionObj("idxProm2Edit"), Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
}
|
||||
// segnalo update
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
/// <summary>
|
||||
/// annullamento inserimento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
// 2018.09.25 --> inserisco PROMESSA ODL
|
||||
//MapoDb.DataLayerObj.taODL.InsertQuery(CodArticolo, MapoDb.DataLayer.MatrOpr, IdxMacchina, numPezzi, TCiclo, pzPallet, chkToAs400.Checked, txtCommessa.Text.Trim());
|
||||
DataLayerObj.taPODL.insertQuery(KeyReq, KeyReq, attiv, CodArticolo, Gruppo, IdxMacchina, numPezzi, TCiclo, DateTime.Now, prio, pzPallet, "");
|
||||
memLayer.ML.emptySessionVal("idxProm2Clone");
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
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} | {8}{9}{10}", KeyReq, attiv, CodArticolo, IdxMacchina, numPezzi, TCiclo, prio, pzPallet, memLayer.ML.IntSessionObj("idxProm2Edit"), Environment.NewLine, exc), tipoLog.EXCEPTION);
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
}
|
||||
// segnalo update
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// annullamento inserimento
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
memLayer.ML.emptySessionVal("idxProm2Clone");
|
||||
memLayer.ML.emptySessionVal("idxProm2Edit");
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorno label min e centesimi
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtTempoCiclo_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
/// <summary>
|
||||
/// aggiorno label min e centesimi
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtTempoCiclo_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
string text = "";
|
||||
string txtMinCent = txtTempoCiclo.Text.Trim().Replace(".", ",");
|
||||
@@ -226,87 +222,87 @@ namespace MP_ADM.WebUserControls
|
||||
{ }
|
||||
lblMinSec.Text = text;
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione articolo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlArticolo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro elenco ultimi 5 tempi e note...
|
||||
/// </summary>
|
||||
private void showLastTimeAndNote()
|
||||
{
|
||||
// update tempi ciclo!
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlMacchine_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlGruppi_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
ddlMacchine.DataBind();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione articolo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlArticolo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showLastTimeAndNote();
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro elenco ultimi 5 tempi e note...
|
||||
/// </summary>
|
||||
private void showLastTimeAndNote()
|
||||
{
|
||||
// update tempi ciclo!
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// selezione impianto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlMacchine_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
/// <summary>
|
||||
/// reset della selezione
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grViewTempi.SelectedIndex = -1;
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grViewTempi_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(grViewTempi.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByIdx(idxOdl, false)[0];
|
||||
// precompilo dati pezzi/tempi
|
||||
txtNumPz.Text = rigaOdl.NumPezzi.ToString();
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
{
|
||||
txtTCms.Text = TempiCiclo.minSec(rigaOdl.TCAssegnato);
|
||||
}
|
||||
else
|
||||
{
|
||||
txtTCmc.Text = rigaOdl.TCAssegnato.ToString("N3");
|
||||
}
|
||||
txtPzPallet.Text = rigaOdl.PzPallet.ToString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||
/// </summary>
|
||||
public void resetSelezione()
|
||||
{
|
||||
grViewTempi.SelectedIndex = -1;
|
||||
grViewTempi.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// evento selezione riga: salvo tempo e qta nei campi input...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grViewTempi_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricavo i dati selezionati
|
||||
int idxOdl = 0;
|
||||
try
|
||||
{
|
||||
idxOdl = Convert.ToInt32(grViewTempi.SelectedValue);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
DS_ProdTempi.ODLRow rigaOdl = DataLayerObj.taODL.getByIdx(idxOdl, false)[0];
|
||||
// precompilo dati pezzi/tempi
|
||||
txtNumPz.Text = rigaOdl.NumPezzi.ToString();
|
||||
if (memLayer.ML.cdvb("ADM_TC_MinSec"))
|
||||
{
|
||||
txtTCms.Text = TempiCiclo.minSec(rigaOdl.TCAssegnato);
|
||||
}
|
||||
else
|
||||
{
|
||||
txtTCmc.Text = rigaOdl.TCAssegnato.ToString("N3");
|
||||
}
|
||||
txtPzPallet.Text = rigaOdl.PzPallet.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,12 +67,12 @@ public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
{
|
||||
if (testoRicerca == "")
|
||||
{
|
||||
SteamWare.memLayer.ML.emptySessionVal("valoreCercato");
|
||||
SteamWare.memLayer.ML.emptySessionVal("listaMatricoleSearch");
|
||||
memLayer.ML.emptySessionVal("valoreCercato");
|
||||
memLayer.ML.emptySessionVal("listaMatricoleSearch");
|
||||
}
|
||||
else
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("valoreCercato", testoRicerca);
|
||||
memLayer.ML.setSessionVal("valoreCercato", testoRicerca);
|
||||
// verifico ricerche accessorie
|
||||
if (_cercaMatricole)
|
||||
{
|
||||
@@ -105,7 +105,7 @@ public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
{
|
||||
listaMatricoleSearch = listaMatricoleSearch.Remove(listaMatricoleSearch.Length - 2);
|
||||
}
|
||||
SteamWare.memLayer.ML.setSessionVal("listaMatricoleSearch", listaMatricoleSearch);
|
||||
memLayer.ML.setSessionVal("listaMatricoleSearch", listaMatricoleSearch);
|
||||
}
|
||||
/// <summary>
|
||||
/// ricerca utenti e salva lista username x SQL IN
|
||||
@@ -123,7 +123,7 @@ public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
{
|
||||
listaUsernameSearch = listaUsernameSearch.Remove(listaUsernameSearch.Length - 2);
|
||||
}
|
||||
SteamWare.memLayer.ML.setSessionVal("listaUsernameSearch", listaUsernameSearch);
|
||||
memLayer.ML.setSessionVal("listaUsernameSearch", listaUsernameSearch);
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -135,9 +135,9 @@ public partial class mod_ricercaGenerica : ApplicationUserControl
|
||||
/// </summary>
|
||||
public void updateText()
|
||||
{
|
||||
if (SteamWare.memLayer.ML.StringSessionObj("valoreCercato") != "" && !Page.IsPostBack)
|
||||
if (memLayer.ML.StringSessionObj("valoreCercato") != "" && !Page.IsPostBack)
|
||||
{
|
||||
testoRicerca = SteamWare.memLayer.ML.StringSessionObj("valoreCercato");
|
||||
testoRicerca = memLayer.ML.StringSessionObj("valoreCercato");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Web.UI;
|
||||
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_storicoTC : System.Web.UI.UserControl
|
||||
public partial class mod_storicoTC : BaseUserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MoonPro_site.WebUserControls.mod_unauthorized" Codebehind="mod_unauthorized.ascx.cs" %>
|
||||
<table id="Table7" cellspacing="1" cellpadding="1" width="100%" border="0">
|
||||
<tr>
|
||||
<td class="UnauthAppTitle">
|
||||
<asp:Label runat="server" ID="lblTitleMain" Text="MoonPro" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label id="lblTitle" CssClass="UnauthTitle" runat="server" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label id="lblMess" CssClass="UnauthMess" runat="server" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="MP_ADM.WebUserControls.mod_unauthorized" CodeBehind="mod_unauthorized.ascx.cs" %>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<asp:Label runat="server" ID="lblTitleMain" CssClass="UnauthAppTitle" Text="MoonPro" />
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<asp:Label ID="lblTitle" CssClass="UnauthTitle" runat="server" />
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<asp:Label ID="lblMess" CssClass="UnauthMess" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
using MP_ADM;
|
||||
using SteamWare;
|
||||
using System;
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
public partial class mod_unauthorized : System.Web.UI.UserControl
|
||||
public partial class mod_unauthorized : BaseUserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblTitle.Text = user_std.UtSn.Traduci("NonDisponibile");
|
||||
lblMess.Text = user_std.UtSn.Traduci("NonAuth");
|
||||
lblTitle.Text = traduci("NonDisponibile");
|
||||
lblMess.Text = traduci("NonAuth");
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
-20
@@ -1,43 +1,43 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site.WebUserControls
|
||||
namespace MP_ADM.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_unauthorized {
|
||||
|
||||
public partial class mod_unauthorized
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// lblTitleMain control.
|
||||
/// Controllo lblTitleMain.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 lblTitleMain;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblTitle control.
|
||||
/// Controllo lblTitle.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 lblTitle;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblMess control.
|
||||
/// Controllo lblMess.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 lblMess;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class anagArticoli : System.Web.UI.Page
|
||||
public partial class anagArticoli : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="MPADM | apertura impianti" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="aperturaImpianti" Codebehind="aperturaImpianti.aspx.cs" %>
|
||||
<%@ Page Title="MPADM | apertura impianti" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="MP_ADM.aperturaImpianti" Codebehind="aperturaImpianti.aspx.cs" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_aperturaImpianti.ascx" tagname="mod_aperturaImpianti" tagprefix="uc1" %>
|
||||
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
|
||||
public partial class aperturaImpianti : System.Web.UI.Page
|
||||
namespace MP_ADM
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class aperturaImpianti : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+14
-10
@@ -7,16 +7,20 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
|
||||
public partial class aperturaImpianti {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_aperturaImpianti1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_aperturaImpianti mod_aperturaImpianti1;
|
||||
public partial class aperturaImpianti
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_aperturaImpianti1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_aperturaImpianti mod_aperturaImpianti1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,22 +3,22 @@ using System;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class approvazioneODL : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class approvazioneODL : BasePage
|
||||
{
|
||||
checkEnabled();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
checkEnabled();
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmApprTempiEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: gestione approvazione cambio TC disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmApprTempiEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: gestione approvazione cambio TC disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+1
-1
@@ -1,4 +1,4 @@
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
|
||||
@@ -3,23 +3,22 @@ using System;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class approvazioneProd : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class approvazioneProd : BasePage
|
||||
{
|
||||
|
||||
checkEnabled();
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
checkEnabled();
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmApprProdEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: gestione approvazione produzione disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
private void checkEnabled()
|
||||
{
|
||||
bool optPar = memLayer.ML.CRB("OptAdmApprProdEnabled");
|
||||
divContent.Visible = optPar;
|
||||
string messaggio = "";
|
||||
if (!optPar)
|
||||
{
|
||||
messaggio = "Attenzione: gestione approvazione produzione disabilitata";
|
||||
}
|
||||
lblDataImportOut.Text = messaggio;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
<%@ Page Title="MPADM | Calendario" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="calendChiusura" Codebehind="calendChiusura.aspx.cs" %>
|
||||
<%@ Page Title="MPADM | Calendario" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="MP_ADM.calendChiusura" Codebehind="calendChiusura.aspx.cs" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_fixCal.ascx" TagPrefix="uc1" TagName="mod_fixCal" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_calChiusura.ascx" TagPrefix="uc1" TagName="mod_calChiusura" %>
|
||||
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_calChiusura.ascx" tagname="mod_calChiusura" tagprefix="uc1" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_fixCal.ascx" tagname="mod_fixCal" tagprefix="uc2" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
|
||||
<uc2:mod_fixCal ID="mod_fixCal1" runat="server" />
|
||||
<uc1:mod_calChiusura ID="mod_calChiusura1" runat="server" />
|
||||
<uc1:mod_fixcal runat="server" id="mod_fixCal" />
|
||||
<uc1:mod_calChiusura runat="server" ID="mod_calChiusura" />
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
|
||||
public partial class calendChiusura : System.Web.UI.Page
|
||||
namespace MP_ADM
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class calendChiusura : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+23
-19
@@ -7,25 +7,29 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
|
||||
public partial class calendChiusura {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_fixCal1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_fixCal mod_fixCal1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_calChiusura1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_calChiusura mod_calChiusura1;
|
||||
public partial class calendChiusura
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_fixCal.
|
||||
/// </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_ADM.WebUserControls.mod_fixCal mod_fixCal;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_calChiusura.
|
||||
/// </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_ADM.WebUserControls.mod_calChiusura mod_calChiusura;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimple.master" AutoEventWireup="true"
|
||||
Inherits="forceUser" Title="MPADM | ForceUser" Codebehind="forceUser.aspx.cs" %>
|
||||
Inherits="MP_ADM.forceUser" Title="MPADM | ForceUser" Codebehind="forceUser.aspx.cs" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_login.ascx" TagPrefix="uc1" TagName="mod_login" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
|
||||
<div class="centerAll">
|
||||
<uc1:mod_login ID="Mod_login1" runat="server" />
|
||||
<uc1:mod_login runat="server" id="mod_login" />
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
+29
-38
@@ -1,45 +1,36 @@
|
||||
using System;
|
||||
|
||||
public partial class forceUser : System.Web.UI.Page
|
||||
namespace MP_ADM
|
||||
{
|
||||
protected string _nextPage
|
||||
public partial class forceUser : BasePage
|
||||
{
|
||||
get
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage");
|
||||
if (pagina == "")
|
||||
{
|
||||
pagina = "menu.aspx";
|
||||
}
|
||||
return pagina;
|
||||
mod_login.modoLogin = SteamWare.loginMode.forceUser;
|
||||
}
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
mod_login.Login_ok += new EventHandler(Mod_login1_Login_ok);
|
||||
mod_login.Login_Error += new EventHandler(Mod_login1_Login_Error);
|
||||
}
|
||||
|
||||
void Mod_login1_Login_Error(object sender, EventArgs e)
|
||||
{
|
||||
//Response.Redirect("./unauthorized.aspx");
|
||||
}
|
||||
|
||||
void Mod_login1_Login_ok(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect(_nextPage);
|
||||
}
|
||||
protected override void OnUnload(EventArgs e)
|
||||
{
|
||||
base.OnUnload(e);
|
||||
mod_login.Login_ok -= new EventHandler(Mod_login1_Login_ok);
|
||||
mod_login.Login_Error -= new EventHandler(Mod_login1_Login_Error);
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Mod_login1.modoLogin = SteamWare.loginMode.forceUser;
|
||||
}
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
Mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok);
|
||||
Mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error);
|
||||
}
|
||||
|
||||
void Mod_login1_Login_Error(object sender, EventArgs e)
|
||||
{
|
||||
//Response.Redirect("./unauthorized.aspx");
|
||||
}
|
||||
|
||||
void Mod_login1_Login_ok(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect(_nextPage);
|
||||
}
|
||||
protected override void OnUnload(EventArgs e)
|
||||
{
|
||||
base.OnUnload(e);
|
||||
Mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok);
|
||||
Mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+14
-11
@@ -7,17 +7,20 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
public partial class forceUser
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_login1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_login Mod_login1;
|
||||
|
||||
public partial class forceUser
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_login.
|
||||
/// </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_ADM.WebUserControls.mod_login mod_login;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class gestPromesseODL : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class gestPromesseODL : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="MPADM | Gest Dati Macc" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="gestioneDatiMacchine.aspx.cs" Inherits="MoonPro_site.gestioneDatiMacchine" %>
|
||||
<%@ Page Title="MPADM | Gest Dati Macc" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="gestioneDatiMacchine.aspx.cs" Inherits="MP_ADM.gestioneDatiMacchine" %>
|
||||
<%@ Register src="WebUserControls/mod_gestioneDatiMacchine.ascx" tagname="mod_gestioneDatiMacchine" tagprefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_gestioneDatiMacchine ID="mod_gestioneDatiMacchine1" runat="server" />
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace MoonPro_site
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class gestioneDatiMacchine : System.Web.UI.Page
|
||||
public partial class gestioneDatiMacchine : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
+3
-2
@@ -7,7 +7,8 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site {
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
|
||||
public partial class gestioneDatiMacchine {
|
||||
@@ -19,6 +20,6 @@ namespace MoonPro_site {
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonPro_site.WebUserControls.mod_gestioneDatiMacchine mod_gestioneDatiMacchine1;
|
||||
protected global::MP_ADM.WebUserControls.mod_gestioneDatiMacchine mod_gestioneDatiMacchine1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="MPADM | ODL" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="gestioneODL.aspx.cs" Inherits="MoonPro_site.gestioneODL" %>
|
||||
<%@ Page Title="MPADM | ODL" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="gestioneODL.aspx.cs" Inherits="MP_ADM.gestioneODL" %>
|
||||
<%@ Register src="WebUserControls/mod_gestioneODL.ascx" tagname="mod_gestioneODL" tagprefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_gestioneODL ID="mod_gestioneODL1" runat="server" />
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace MoonPro_site
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class gestioneODL : System.Web.UI.Page
|
||||
public partial class gestioneODL : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Generated
+3
-2
@@ -7,7 +7,8 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site {
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
|
||||
public partial class gestioneODL {
|
||||
@@ -19,6 +20,6 @@ namespace MoonPro_site {
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::MoonPro_site.WebUserControls.mod_gestioneODL mod_gestioneODL1;
|
||||
protected global::MP_ADM.WebUserControls.mod_gestioneODL mod_gestioneODL1;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-3
@@ -1,8 +1,10 @@
|
||||
<%@ Page Title="MPADM | Login" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro_noAjax.master" AutoEventWireup="true" Inherits="MoonPro_site.login" Codebehind="login.aspx.cs" %>
|
||||
<%@ Page Title="MPADM | Login" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro_noAjax.master" AutoEventWireup="true" Inherits="MP_ADM.login" Codebehind="login.aspx.cs" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_login.ascx" TagPrefix="uc1" TagName="mod_login" %>
|
||||
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_login.ascx" TagName="mod_login" TagPrefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
|
||||
<div class="centerAll">
|
||||
<uc1:mod_login ID="Mod_login1" runat="server" />
|
||||
<uc1:mod_login runat="server" id="mod_login" />
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
+9
-22
@@ -1,48 +1,35 @@
|
||||
using System;
|
||||
|
||||
namespace MoonPro_site
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class login : System.Web.UI.Page
|
||||
public partial class login : BasePage
|
||||
{
|
||||
protected string _nextPage
|
||||
{
|
||||
get
|
||||
{
|
||||
string pagina = SteamWare.memLayer.ML.StringSessionObj("nextPage");
|
||||
if (pagina == "")
|
||||
{
|
||||
pagina = "menu.aspx";
|
||||
}
|
||||
return pagina;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Mod_login1.modoLogin = SteamWare.loginMode.normale;
|
||||
mod_login.modoLogin = SteamWare.loginMode.normale;
|
||||
}
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
Mod_login1.Login_ok += new EventHandler(Mod_login1_Login_ok);
|
||||
Mod_login1.Login_Error += new EventHandler(Mod_login1_Login_Error);
|
||||
mod_login.Login_ok += new EventHandler(mod_login_Login_ok);
|
||||
mod_login.Login_Error += new EventHandler(mod_login_Login_Error);
|
||||
}
|
||||
|
||||
void Mod_login1_Login_Error(object sender, EventArgs e)
|
||||
void mod_login_Login_Error(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("./unauthorized.aspx");
|
||||
}
|
||||
|
||||
void Mod_login1_Login_ok(object sender, EventArgs e)
|
||||
void mod_login_Login_ok(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect(_nextPage);
|
||||
}
|
||||
protected override void OnUnload(EventArgs e)
|
||||
{
|
||||
base.OnUnload(e);
|
||||
Mod_login1.Login_ok -= new EventHandler(Mod_login1_Login_ok);
|
||||
Mod_login1.Login_Error -= new EventHandler(Mod_login1_Login_Error);
|
||||
mod_login.Login_ok -= new EventHandler(mod_login_Login_ok);
|
||||
mod_login.Login_Error -= new EventHandler(mod_login_Login_Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+9
-7
@@ -7,18 +7,20 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site {
|
||||
|
||||
|
||||
public partial class login {
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
|
||||
public partial class login
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Mod_login1.
|
||||
/// Controllo mod_login.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_login Mod_login1;
|
||||
protected global::MP_ADM.WebUserControls.mod_login mod_login;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="MoonPro_site.menu" Title="MPADM" Codebehind="menu.aspx.cs" %>
|
||||
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" Inherits="MP_ADM.menu" Title="MPADM" Codebehind="menu.aspx.cs" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_main_help.ascx" TagName="mod_main_help" TagPrefix="uc2" %>
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
namespace MoonPro_site
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class menu : System.Web.UI.Page
|
||||
public partial class menu : BasePage
|
||||
{
|
||||
}
|
||||
}
|
||||
Generated
+2
-1
@@ -7,7 +7,8 @@
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MoonPro_site {
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
|
||||
public partial class menu {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true"
|
||||
Inherits="test" Title="Untitled Page" CodeBehind="test.aspx.cs" %>
|
||||
Inherits="MP_ADM.test" Title="TEST Page" CodeBehind="test.aspx.cs" %>
|
||||
|
||||
<%@ Register Assembly="SteamWare" Namespace="SteamWare" TagPrefix="cc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
|
||||
|
||||
+6
-3
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
|
||||
public partial class test : System.Web.UI.Page
|
||||
namespace MP_ADM
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
public partial class test : BasePage
|
||||
{
|
||||
lblOut.Text = string.Format("H: {0} - W: {1}", Session["WindowHeight"], Session["WindowWidth"]);
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblOut.Text = string.Format("H: {0} - W: {1}", Session["WindowHeight"], Session["WindowWidth"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+55
-52
@@ -1,59 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
|
||||
|
||||
public partial class test {
|
||||
|
||||
/// <summary>
|
||||
/// Image1 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.Image Image1;
|
||||
|
||||
/// <summary>
|
||||
/// Image4 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.Image Image4;
|
||||
|
||||
/// <summary>
|
||||
/// Image2 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.Image Image2;
|
||||
|
||||
/// <summary>
|
||||
/// Image3 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.Image Image3;
|
||||
|
||||
/// <summary>
|
||||
/// lblOut 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.Label lblOut;
|
||||
public partial class test
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Image1.
|
||||
/// </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.Image Image1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Image4.
|
||||
/// </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.Image Image4;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Image2.
|
||||
/// </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.Image Image2;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Image3.
|
||||
/// </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.Image Image3;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblOut.
|
||||
/// </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 lblOut;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Web.UI;
|
||||
|
||||
namespace MP_ADM
|
||||
{
|
||||
public partial class testUtente : System.Web.UI.Page
|
||||
public partial class testUtente : BasePage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
+278
-70
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Per altre informazioni su come configurare l'applicazione ASP.NET, vedere
|
||||
https://go.microsoft.com/fwlink/?LinkId=169433
|
||||
@@ -6,136 +6,344 @@
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="elmah">
|
||||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
|
||||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
|
||||
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
|
||||
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
|
||||
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/>
|
||||
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<appSettings>
|
||||
<!--Redis conn-->
|
||||
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
|
||||
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false" />
|
||||
<add key="redisDb" value="1" />
|
||||
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false"/>
|
||||
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false"/>
|
||||
<add key="redisDb" value="1"/>
|
||||
<!--altri parametri-->
|
||||
<add key="CodModulo" value="MoonPro" />
|
||||
<add key="cacheOnRedis" value="true" />
|
||||
<add key="maxAgeAppConf_min" value="5" />
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="logMitigSec" value="30" />
|
||||
<add key="CodModulo" value="MoonPro"/>
|
||||
<add key="cacheOnRedis" value="true"/>
|
||||
<add key="maxAgeAppConf_min" value="5"/>
|
||||
<add key="_logDir" value="~/logs/"/>
|
||||
<add key="logMitigSec" value="30"/>
|
||||
<!--gestione timeout "esteso" x chiamate SQL critiche, in secondi -->
|
||||
<add key="sqlLongCommandTimeout" value="600" />
|
||||
<add key="sqlLongCommandTimeout" value="600"/>
|
||||
<!--charting-->
|
||||
<add key="fastColorDecode" value="true" />
|
||||
<add key="AutoCleanUpInterval" value="10" />
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=30;" />
|
||||
<add key="fastColorDecode" value="true"/>
|
||||
<add key="AutoCleanUpInterval" value="10"/>
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=30;"/>
|
||||
<!--DB 2016-->
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=Donati_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
|
||||
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;"/>
|
||||
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;"/>
|
||||
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;"/>
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=Donati_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;"/>
|
||||
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;"/>
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
||||
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient"/>
|
||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient"/>
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
|
||||
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
||||
</httpHandlers>
|
||||
<compilation debug="true" targetFramework="4.6.2">
|
||||
<assemblies>
|
||||
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
|
||||
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
|
||||
</assemblies>
|
||||
</compilation>
|
||||
<httpRuntime targetFramework="4.6.2" executionTimeout="240" maxRequestLength="32768" />
|
||||
<httpRuntime targetFramework="4.6.2" executionTimeout="240" maxRequestLength="32768"/>
|
||||
<pages>
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Optimization" />
|
||||
<add namespace="System.Web.Optimization"/>
|
||||
</namespaces>
|
||||
<controls>
|
||||
<add tagPrefix="webopt" namespace="Microsoft.AspNet.Web.Optimization.WebForms" assembly="Microsoft.AspNet.Web.Optimization.WebForms" />
|
||||
<add tagPrefix="webopt" namespace="Microsoft.AspNet.Web.Optimization.WebForms" assembly="Microsoft.AspNet.Web.Optimization.WebForms"/>
|
||||
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /></controls>
|
||||
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/></controls>
|
||||
</pages>
|
||||
<httpModules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
|
||||
</httpModules>
|
||||
<sessionState mode="Custom" customProvider="MySessionStateStore">
|
||||
<providers>
|
||||
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="MP_SITE" databaseId="1" />
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="MP_SITE" databaseId="1"/>
|
||||
</providers>
|
||||
</sessionState>
|
||||
</system.web>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XPath.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XmlSerializer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.XDocument" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ValueTuple" publicKeyToken="CC7B13FFCD2DDD51" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Timer" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Overlapped" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.RegularExpressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.Encoding.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Text.Encoding" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.SecureString" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Principal" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Security.Cryptography.Algorithms" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Xml" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Serialization.Json" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Numerics" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Resources.ResourceManager" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Reflection" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ObjectModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Sockets" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Requests" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Primitives" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.NetworkInformation" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Net.Http" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Queryable" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Parallel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq.Expressions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Linq" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Compression" publicKeyToken="B77A5C561934E089" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Globalization.Extensions" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Globalization" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Dynamic.Runtime" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Tools" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.StackTrace" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Debug" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Diagnostics.Contracts" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Data.Common" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ComponentModel.EventBasedAsync" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.ComponentModel" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Collections" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Collections.Concurrent" publicKeyToken="B03F5F7F11D50A3A" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.11.0" newVersion="4.0.11.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.24.0.0" newVersion="0.24.0.0" />
|
||||
<assemblyIdentity name="SharpCompress" publicKeyToken="afb0a02973931d96" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.24.0.0" newVersion="0.24.0.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
<assemblyIdentity name="System.Threading.Channels" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
|
||||
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2"/>
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
<validation validateIntegratedModeConfiguration="false"/>
|
||||
<modules>
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
||||
<remove name="Session" />
|
||||
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/>
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler"/>
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler"/>
|
||||
<remove name="Session"/>
|
||||
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode"/>
|
||||
</modules>
|
||||
<handlers>
|
||||
<remove name="ChartImageHandler" />
|
||||
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
||||
<remove name="ChartImageHandler"/>
|
||||
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
<elmah>
|
||||
@@ -143,12 +351,12 @@
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
more information on remote access and securing ELMAH.
|
||||
-->
|
||||
<security allowRemoteAccess="false" />
|
||||
<security allowRemoteAccess="false"/>
|
||||
</elmah>
|
||||
<location path="elmah.axd" inheritInChildApplications="false">
|
||||
<system.web>
|
||||
<httpHandlers>
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
|
||||
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
|
||||
</httpHandlers>
|
||||
<!--
|
||||
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
||||
@@ -162,7 +370,7 @@
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<handlers>
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
|
||||
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"/>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
</location>
|
||||
|
||||
Reference in New Issue
Block a user