CodeMaid:

- reord codice
This commit is contained in:
Samuele Locatelli
2022-09-28 17:50:19 +02:00
parent 803a2103c9
commit 39f6cdd1f3
4 changed files with 70 additions and 65 deletions
+31 -30
View File
@@ -149,6 +149,23 @@ namespace MoonProTablet.WebUserControls
}
}
public DateTime inizioOdl
{
get
{
DateTime answ = DateTime.Now.AddYears(-1);
if (idxOdl > 0)
{
var odlDetail = getCurrOdlRow();
if (odlDetail != null)
{
answ = odlDetail.DataInizio;
}
}
return answ;
}
}
public string keyRichiesta
{
get
@@ -170,36 +187,6 @@ namespace MoonProTablet.WebUserControls
return answ;
}
}
public DateTime inizioOdl
{
get
{
DateTime answ = DateTime.Now.AddYears(-1);
if (idxOdl > 0)
{
var odlDetail = getCurrOdlRow();
if (odlDetail != null)
{
answ = odlDetail.DataInizio;
}
}
return answ;
}
}
public DS_ProdTempi.ODLRow getCurrOdlRow()
{
DS_ProdTempi.ODLRow answ = null;
if (idxOdl > 0)
{
DS_ProdTempi.ODLDataTable odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
if (odlDetail != null && odlDetail.Rows.Count > 0)
{
answ = odlDetail[0];
}
}
return answ;
}
/// <summary>
/// Num giorni configurati x selezione ODL in scadenza
@@ -291,6 +278,20 @@ namespace MoonProTablet.WebUserControls
return answ;
}
public DS_ProdTempi.ODLRow getCurrOdlRow()
{
DS_ProdTempi.ODLRow answ = null;
if (idxOdl > 0)
{
DS_ProdTempi.ODLDataTable odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
if (odlDetail != null && odlDetail.Rows.Count > 0)
{
answ = odlDetail[0];
}
}
return answ;
}
/// <summary>
/// url completo immagine icona
/// </summary>