Files
MoonPro.net/MP-Tablet/fixODL.aspx.cs
T
2017-07-28 15:48:06 +02:00

59 lines
1.3 KiB
C#

using SteamWare;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MoonProTablet
{
public partial class fixODL : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
fixBtnImpostaODL();
DateTime adesso = DateTime.Now;
hfDataTo.Value = adesso.ToString();
hfDataFrom.Value = adesso.AddMonths(-1).ToString();
}
}
private void fixBtnImpostaODL()
{
// verifico se selezionato un ODL sorgente...
lbtSetODL.Visible = ddlODL.SelectedIndex > 0;
}
/// <summary>
/// idx macchina selezionata
/// </summary>
public int idxMacchina
{
get
{
return memLayer.ML.IntSessionObj("IdxMacchina");
}
set
{
memLayer.ML.setSessionVal("IdxMacchina", value);
}
}
protected void ddlODL_SelectedIndexChanged(object sender, EventArgs e)
{
fixBtnImpostaODL();
}
/// <summary>
/// Registra attivazione ODL per macchina corrente...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtSetODL_Click(object sender, EventArgs e)
{
}
}
}