Merge branch 'develop'

This commit is contained in:
Samuele Locatelli
2021-03-20 09:15:16 +01:00
23 changed files with 361 additions and 175 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ using System.Web.UI.WebControls;
namespace GPW_Commesse
{
public class BaseUserControl : System.Web.UI.UserControl
public class BaseUserControl : SteamWare.UserControl
{
#region Public Events
+26 -5
View File
@@ -1,4 +1,5 @@
using GPW_data;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -10,6 +11,8 @@ namespace GPW_Commesse.Controllers
{
public class TempHistController : ApiController
{
#region Private Methods
/// <summary>
/// Metodo effettivo recupero dati
/// </summary>
@@ -20,16 +23,33 @@ namespace GPW_Commesse.Controllers
private static List<chartJsXY> getDataFilt(int id, int numRec, DateTime dtRif)
{
List<chartJsXY> answ = new List<chartJsXY>();
var tabDati = DataProxy.DP.taHT.GetData(id, dtRif, numRec);
// ciclo
foreach (var item in tabDati)
// cerco su redis...
string histTemp = SteamWare.memLayer.ML.redHash($"Temp:Hist:{id}_{dtRif:yyyyMMdd}_{numRec}");
string rawData = SteamWare.memLayer.ML.getRSV(histTemp);
if (!string.IsNullOrEmpty(rawData))
{
answ.Add(new chartJsXY() { x = item.tempRil, y = item.freq });
answ = JsonConvert.DeserializeObject<List<chartJsXY>>(rawData);
}
else
{
var tabDati = DataProxy.DP.taHT.GetData(id, dtRif, numRec);
// ciclo
foreach (var item in tabDati)
{
answ.Add(new chartJsXY() { x = item.tempRil, y = item.freq });
}
// salvo
rawData = JsonConvert.SerializeObject(answ);
SteamWare.memLayer.ML.setRSV(histTemp, rawData, 5);
}
// restituisco
return answ;
}
#endregion Private Methods
#region Public Methods
// GET api/TempHist
public string Get()
{
@@ -45,7 +65,6 @@ namespace GPW_Commesse.Controllers
return getDataFilt(id, numRec, dtRif);
}
// GET api/TempHist/5?date=2020-09-01&numRec=10
public List<chartJsXY> Get(int id, string date, int numRec)
{
@@ -54,5 +73,7 @@ namespace GPW_Commesse.Controllers
// restituisco oggetto!
return getDataFilt(id, numRec, dtRif);
}
#endregion Public Methods
}
}
+28 -4
View File
@@ -1,4 +1,5 @@
using GPW_data;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -10,6 +11,8 @@ namespace GPW_Commesse.Controllers
{
public class TempRilController : ApiController
{
#region Private Methods
/// <summary>
/// Metodo effettivo recupero dati
/// </summary>
@@ -20,15 +23,34 @@ namespace GPW_Commesse.Controllers
private static List<chartJsTSerie> getDataFilt(int id, int numRec, DateTime dtRif)
{
List<chartJsTSerie> answ = new List<chartJsTSerie>();
var tabDati = DataProxy.DP.taRT.getByUserPeriod(id, dtRif, numRec);
// ciclo
foreach (var item in tabDati)
// cerco su redis...
string histTemp = SteamWare.memLayer.ML.redHash($"Temp:Ril:{id}_{dtRif:yyyyMMdd}_{numRec}");
string rawData = SteamWare.memLayer.ML.getRSV(histTemp);
if (!string.IsNullOrEmpty(rawData))
{
answ.Add(new chartJsTSerie() { x = item.dtRilievo, y = item.tempRil });
answ = JsonConvert.DeserializeObject<List<chartJsTSerie>>(rawData);
}
else
{
var tabDati = DataProxy.DP.taRT.getByUserPeriod(id, dtRif, numRec);
// ciclo
foreach (var item in tabDati)
{
answ.Add(new chartJsTSerie() { x = item.dtRilievo, y = item.tempRil });
}
// salvo
rawData = JsonConvert.SerializeObject(answ);
SteamWare.memLayer.ML.setRSV(histTemp, rawData, 5);
}
// restituisco
return answ;
}
#endregion Private Methods
#region Public Methods
// GET api/TempRil
public string Get()
{
@@ -43,6 +65,7 @@ namespace GPW_Commesse.Controllers
// restituisco oggetto!
return getDataFilt(id, numRec, dtRif);
}
// GET api/TempRil/5?date=2020-09-01&numRec=10
public List<chartJsTSerie> Get(int id, string date, int numRec)
{
@@ -52,5 +75,6 @@ namespace GPW_Commesse.Controllers
return getDataFilt(id, numRec, dtRif);
}
#endregion Public Methods
}
}
-6
View File
@@ -375,7 +375,6 @@
<Content Include="images\StatoOk_l.png" />
<Content Include="images\StatoOk_m.png" />
<Content Include="images\StatoOk_s.png" />
<Content Include="libzstd.dll" />
<Content Include="login.aspx" />
<Content Include="logs\PlaceHolder.file" />
<None Include="bundleconfig.json" />
@@ -390,7 +389,6 @@
<Content Include="Content\Roboto.woff" />
<Content Include="Content\RobotoCondensed.woff" />
<Content Include="Content\fonts.less" />
<Content Include="mongocrypt.dll" />
<Content Include="Properties\PublishProfiles\IISDEV.pubxml.user" />
<Content Include="Scripts\bootstrap.bundle.js" />
<Content Include="Scripts\bootstrap.bundle.min.js" />
@@ -407,8 +405,6 @@
<Content Include="Scripts\esm\popper.js.map" />
<Content Include="Scripts\esm\popper-utils.min.js.map" />
<Content Include="Scripts\esm\popper-utils.js.map" />
<Content Include="libmongocrypt.so" />
<Content Include="libmongocrypt.dylib" />
<None Include="Properties\PublishProfiles\IISDEV.pubxml" />
<Content Include="Scripts\bootstrap.min.js.map" />
<Content Include="Scripts\bootstrap.js.map" />
@@ -496,8 +492,6 @@
<Content Include="Scripts\umd\popper-utils.min.js" />
<Content Include="Scripts\umd\popper.js" />
<Content Include="Scripts\umd\popper.min.js" />
<Content Include="snappy32.dll" />
<Content Include="snappy64.dll" />
<Content Include="test01.aspx" />
<Content Include="WebMasterPages\AjaxSimpleFull.Master" />
<Content Include="WebUserControls\cmp_chart.ascx" />
+50 -41
View File
@@ -13,8 +13,6 @@
// console.log('add_endRequest!');
//});
//Sys.Application.add_load(redrawAll);
// funzione eseguita se successo al caricamento
function OnSuccess_(reponse) {
@@ -41,23 +39,27 @@
},
};
// recupero obj chart
var ctx = document.getElementById('myChartTS').getContext('2d');
var chart = new Chart(ctx, {
type: 'line',
data: {
datasets: [{
borderColor: 'rgb(7, 173, 236)',
lineTension: 0,
steppedLine: true,
label: 'Temperatura Rilevata',
data: dataTS
}]
},
options: myOptions
});
try {
// recupero obj chart
var ctx = document.getElementById('myChartTS').getContext('2d');
var chart = new Chart(ctx, {
type: 'line',
data: {
datasets: [{
borderColor: 'rgb(7, 173, 236)',
lineTension: 0,
steppedLine: true,
label: 'Temperatura Rilevata',
data: dataTS
}]
},
options: myOptions
});
//console.log('TS draw!');
//console.log('TS draw!');
}
catch
{ }
}
// errore in reload!
function OnErrorCall_(repo) {
@@ -96,20 +98,25 @@
//console.log('bars: ', barVal);
// recupero obj chart
var ctx = document.getElementById('myChartHist').getContext('2d');
var chart = new Chart(ctx, {
type: 'bar',
data: {
labels: barLabels,
datasets: [{
label: 'Freq. Osservate',
backgroundColor: 'rgb(7, 173, 236)',
data: barVal
}]
},
options: myOptions
});
try {
var ctx = document.getElementById('myChartHist').getContext('2d');
var chart = new Chart(ctx, {
type: 'bar',
data: {
labels: barLabels,
datasets: [{
label: 'Freq. Osservate',
backgroundColor: 'rgb(7, 173, 236)',
data: barVal
}]
},
options: myOptions
});
//console.log('Hist draw!');
}
catch
{ }
}
// errore in reload!
function HistOnErrorCall_(repo) {
@@ -141,15 +148,15 @@
}
function redrawAll() {
console.log('numRec: <%=ddlMaxNum.SelectedValue%>');
//console.log('numRec: <%=ddlMaxNum.SelectedValue%>');
plotTS();
plotHist();
}
// funzione di drawing ad OGNI pageload!
function pageLoad() {
//redrawAll();
}
//// funzione di drawing ad OGNI pageload!
//function pageLoad() {
// //redrawAll();
//}
</script>
<asp:HiddenField runat="server" ID="hfIdxDip" />
@@ -169,9 +176,11 @@
</asp:DropDownList>
</div>
</div>
<div class="col-12 col-md-6">
<canvas id="myChartTS" width="300" height="120"></canvas>
</div>
<div class="col-12 col-md-6">
<canvas id="myChartHist" width="300" height="120"></canvas>
<div class="row">
<div class="col-12 col-md-6">
<canvas id="myChartTS" width="300" height="120"></canvas>
</div>
<div class="col-12 col-md-6">
<canvas id="myChartHist" width="300" height="120"></canvas>
</div>
</div>
+14 -14
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Commesse.WebUserControls
@@ -15,29 +15,29 @@ namespace GPW_Commesse.WebUserControls
{
/// <summary>
/// Controllo hfIdxDip.
/// hfIdxDip control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfIdxDip;
/// <summary>
/// Controllo hfData.
/// hfData control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfData;
/// <summary>
/// Controllo ddlMaxNum.
/// ddlMaxNum control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlMaxNum;
}
+36 -15
View File
@@ -12,33 +12,54 @@
<asp:HiddenField runat="server" ID="hfDataFrom" />
<asp:HiddenField runat="server" ID="hfDataTo" />
<script>
</script>
<div class="row mt-0">
<div class="col-12">
<asp:UpdatePanel ID="upFilt" runat="server" UpdateMode="Conditional" RenderMode="Block">
<ContentTemplate>
<div class="filtro_1 py-1 mx-0 row" style="height: 2em;">
<div class="col-6 text-left">
<div class="d-flex filtro_1">
<div class="p-2 flex-grow-1">
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" realtimeUpdate="true" />
</div>
<div class="col-6 text-right small">
<div class="p-2 small">
Temperatura:
<uc2:cmp_toggle runat="server" ID="cmp_toggleTemp" classOn="text-light" classOff="text-secondary" />
</div>
<div class="p-2 small">
Sel globale:
<uc2:cmp_toggle runat="server" ID="cmp_toggle" classOn="text-dark" classOff="text-dark" />
<uc2:cmp_toggle runat="server" ID="cmp_toggle" classOn="text-dark" classOff="text-secondary" />
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="upCharts" runat="server" UpdateMode="Conditional" RenderMode="Block">
<ContentTemplate>
<div class="py-1 mx-0 row bg-light" id="divRilTemp" runat="server">
<div class="col-4">
<script>
function toggleCharts() {
$("#<%:divCharts.ClientID%>").toggle();
//console.log("toggleCharts");
}
function showCharts() {
$("#<%:divCharts.ClientID%>").toggle(true);
//console.log("showCharts");
}
function hideCharts() {
$("#<%:divCharts.ClientID%>").toggle(false);
//console.log("hideCharts");
}
</script>
<div class="py-1 mx-0 row bg-light">
<div class="col-4" id="divRilTemp" runat="server">
<asp:UpdatePanel ID="upCharts" runat="server" UpdateMode="Conditional" RenderMode="Block">
<ContentTemplate>
<uc2:cmp_rilTemp runat="server" ID="cmp_rilTemp" />
</div>
<div class="col-8">
<uc2:cmp_chart runat="server" ID="cmp_chart" />
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div class="col-8" runat="server" id="divCharts">
<uc2:cmp_chart runat="server" ID="cmp_chart" />
</div>
</div>
<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional" RenderMode="Block">
<ContentTemplate>
<div class="row">
@@ -105,16 +105,24 @@ namespace GPW_Commesse.WebUserControls
private void cmp_rilTemp_ehCancel(object sender, EventArgs e)
{
cmp_toggleTemp.toggleValue = false;
activeMode = modoCommesse.elenco;
showPanels();
grView.SelectedIndex = -1;
grView.DataBind();
showCharts(false);
raiseEvent(ucEvType.Reset);
}
private void cmp_rilTemp_ehSave(object sender, EventArgs e)
{
cmp_toggleTemp.toggleValue = false;
activeMode = modoCommesse.elenco;
showPanels();
showCharts(false);
raiseEvent(ucEvType.Reset);
}
private void Cmp_toggle_ehToggle(object sender, EventArgs e)
@@ -148,6 +156,9 @@ namespace GPW_Commesse.WebUserControls
// imposto modalità
activeMode = modoCommesse.editRilTemp;
showPanels();
showCharts(true);
raiseEvent(ucEvType.ReqUpdateParent);
}
private void editTimbr(string dataRif)
@@ -216,6 +227,7 @@ namespace GPW_Commesse.WebUserControls
protected void lbShowTemp_Click(object sender, EventArgs e)
{
string dataRif = ((LinkButton)sender).CommandArgument;
cmp_toggleTemp.toggleValue = true;
// verifico se dip sia attivo...
if (DataProxy.currDipIsActive)
{
@@ -302,8 +314,8 @@ namespace GPW_Commesse.WebUserControls
mod_TagCloudProgetti1.modo = TagCloudMode.standard;
break;
}
showPanels();
}
showPanels();
grView.DataBind();
mod_commUtMancTimbr1.eh_nuovoValore += new EventHandler(mod_commUtMancTimbr1_eh_nuovoValore);
mod_commAttivitaDesk1.eh_nuovoValore += new EventHandler(mod_commAttivitaDesk1_eh_nuovoValore);
@@ -315,6 +327,18 @@ namespace GPW_Commesse.WebUserControls
cmp_rilTemp.ehSave += cmp_rilTemp_ehSave;
}
protected void showCharts(bool doShow)
{
if (doShow)
{
ScriptManager.RegisterStartupScript(upCharts, this.GetType(), "MyAction", "showCharts();", true);
}
else
{
ScriptManager.RegisterStartupScript(upCharts, this.GetType(), "MyAction", "hideCharts();", true);
}
}
/// <summary>
/// imposta visualizzazione dei pannelli opzionali laterali a seocnda del modo attivo
/// </summary>
@@ -402,11 +426,11 @@ namespace GPW_Commesse.WebUserControls
pnlEditOre.Visible = timbr;
mod_commAttivitaDesk1.Visible = commesse;
mod_commUtMancTimbr1.Visible = timbr;
divRilTemp.Visible = temp;
cmp_rilTemp.Visible = temp;
cmp_chart.Visible = true;
showCharts(temp);
upMain.Update();
upFilt.Update();
upCharts.Update();
}
+98 -80
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
// <auto-generated>
// This code was generated by a tool.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GPW_Commesse.WebUserControls
@@ -15,209 +15,227 @@ namespace GPW_Commesse.WebUserControls
{
/// <summary>
/// Controllo hfDataFrom.
/// hfDataFrom control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfDataFrom;
/// <summary>
/// Controllo hfDataTo.
/// hfDataTo control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfDataTo;
/// <summary>
/// Controllo upFilt.
/// upFilt control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upFilt;
/// <summary>
/// Controllo mod_periodoAnalisi1.
/// mod_periodoAnalisi1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_periodoAnalisi mod_periodoAnalisi1;
/// <summary>
/// Controllo cmp_toggle.
/// cmp_toggleTemp control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.cmp_toggle cmp_toggleTemp;
/// <summary>
/// cmp_toggle control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.cmp_toggle cmp_toggle;
/// <summary>
/// Controllo upCharts.
/// divRilTemp control.
/// </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.UpdatePanel upCharts;
/// <summary>
/// Controllo divRilTemp.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRilTemp;
/// <summary>
/// Controllo cmp_rilTemp.
/// upCharts control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upCharts;
/// <summary>
/// cmp_rilTemp control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.cmp_rilTemp cmp_rilTemp;
/// <summary>
/// Controllo cmp_chart.
/// divCharts control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCharts;
/// <summary>
/// cmp_chart control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.cmp_chart cmp_chart;
/// <summary>
/// Controllo upMain.
/// upMain control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel upMain;
/// <summary>
/// Controllo divSx.
/// divSx control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSx;
/// <summary>
/// Controllo pnlEditOre.
/// pnlEditOre control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlEditOre;
/// <summary>
/// Controllo btnCloseTimb.
/// btnCloseTimb control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnCloseTimb;
/// <summary>
/// Controllo mod_elencoTimbr1.
/// mod_elencoTimbr1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.mod_elencoTimbr mod_elencoTimbr1;
/// <summary>
/// Controllo mod_commUtMancTimbr1.
/// mod_commUtMancTimbr1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.mod_commUtMancTimbr mod_commUtMancTimbr1;
/// <summary>
/// Controllo divCn.
/// divCn control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCn;
/// <summary>
/// Controllo grView.
/// grView control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// Controllo ods.
/// ods control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
/// <summary>
/// Controllo divDx.
/// divDx control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divDx;
/// <summary>
/// Controllo pnlEditCom.
/// pnlEditCom control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel pnlEditCom;
/// <summary>
/// Controllo btnCloseRA.
/// btnCloseRA control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnCloseRA;
/// <summary>
/// Controllo mod_TagCloudProgetti1.
/// mod_TagCloudProgetti1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.mod_TagCloudProgetti mod_TagCloudProgetti1;
/// <summary>
/// Controllo mod_commAttivitaDesk1.
/// mod_commAttivitaDesk1 control.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.mod_commAttivitaDesk mod_commAttivitaDesk1;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+13 -2
View File
@@ -1,7 +1,8 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.master" AutoEventWireup="true" CodeBehind="test01.aspx.cs" Inherits="GPW_Commesse.test01" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.master" AutoEventWireup="true" CodeBehind="test01.aspx.cs" Inherits="GPW_Commesse.test01" EnableEventValidation="false" %>
<%@ Register Src="~/WebUserControls/cmp_chart.ascx" TagPrefix="uc1" TagName="cmp_chart" %>
<%@ Register Src="~/WebUserControls/mod_commUtLog.ascx" TagPrefix="uc1" TagName="mod_commUtLog" %>
<%@ Register Src="~/WebUserControls/cmp_toggle.ascx" TagPrefix="uc1" TagName="cmp_toggle" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="server">
<%--<asp:UpdatePanel ID="upChart" runat="server" UpdateMode="Always" ChildrenAsTriggers="true" RenderMode="Block">
@@ -26,12 +27,22 @@
function toggle02() {
$("#div02").toggle();
}
function show01() {
$("#div01").toggle(true);
}
function hide01() {
$("#div01").toggle(false);
}
</script>
<asp:HiddenField runat="server" ID="hfShow01" Value="0" />
<asp:HiddenField runat="server" ID="hfShow02" Value="0" />
<asp:UpdatePanel ID="upChart" runat="server" UpdateMode="Always" ChildrenAsTriggers="true" RenderMode="Block">
<ContentTemplate>
<div class="row mt-5">
<div class="col-3">
<uc1:cmp_toggle runat="server" ID="cmp_toggle01" classOn="text-dark" classOff="text-secondary" />
<uc1:cmp_toggle runat="server" ID="cmp_toggle02" classOn="text-dark" classOff="text-secondary" />
</div>
<div class="col-3">
<asp:LinkButton runat="server" ID="lbt01" CssClass="btn btn-sm btn-info btn-block" OnClientClick="toggle01()">temp</asp:LinkButton>
</div>
@@ -41,7 +52,7 @@
</div>
</ContentTemplate>
</asp:UpdatePanel>
<div class="row">
<div class="row table-secondary">
<div class="col-12" id="div01">
<uc1:cmp_chart runat="server" ID="cmp_chart" dtRif="2021-03-18" />
</div>
+49 -1
View File
@@ -1,4 +1,5 @@
using System;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -9,6 +10,51 @@ namespace GPW_Commesse
{
public partial class test01 : System.Web.UI.Page
{
#region Private Methods
private void Mod_commUtLog_eh_ucev(object sender, EventArgs e)
{
// verifico evento: se trovo mostro/nascondo dettagli...
ucEvent evento = (ucEvent)e;
switch (evento.tipoEvento)
{
case ucEvType.Delete:
break;
case ucEvType.Edit:
break;
case ucEvType.New:
break;
case ucEvType.Reset:
ScriptManager.RegisterStartupScript(
upChart,
this.GetType(),
"MyAction",
"hide01();",
true);
break;
case ucEvType.ReqUpdateParent:
ScriptManager.RegisterStartupScript(
upChart,
this.GetType(),
"MyAction",
"show01();",
true);
break;
case ucEvType.Selected:
break;
default:
break;
}
}
#endregion Private Methods
#region Protected Methods
protected void Page_Load(object sender, EventArgs e)
@@ -16,6 +62,8 @@ namespace GPW_Commesse
cmp_chart.dtRif = DateTime.Today;
hfShow01.Value = "false";
hfShow02.Value = "true";
mod_commUtLog.eh_ucev += Mod_commUtLog_eh_ucev;
}
#endregion Protected Methods
+18
View File
@@ -41,6 +41,24 @@ namespace GPW_Commesse
/// </remarks>
protected global::System.Web.UI.UpdatePanel upChart;
/// <summary>
/// cmp_toggle01 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.cmp_toggle cmp_toggle01;
/// <summary>
/// cmp_toggle02 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GPW_Commesse.WebUserControls.cmp_toggle cmp_toggle02;
/// <summary>
/// lbt01 control.
/// </summary>
-2
View File
@@ -559,8 +559,6 @@
<Content Include="Scripts\moment-with-locales.min.js" />
<Content Include="Scripts\moment.js" />
<Content Include="Scripts\moment.min.js" />
<Content Include="snappy32.dll" />
<Content Include="snappy64.dll" />
<Content Include="Test.aspx" />
<Content Include="WebUserControls\cmp_chart.ascx" />
<None Include="compilerconfig.json" />
Binary file not shown.
Binary file not shown.
Vendored
+1 -1
View File
@@ -10,7 +10,7 @@ pipeline {
steps {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=4151']) {
withEnv(['NEXT_BUILD_NUMBER=4152']) {
// env.versionNumber = VersionNumber(versionNumberString : '2.7.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '2.7.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'GPW'