90 lines
1.7 KiB
C#
90 lines
1.7 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Web.UI;
|
|
|
|
namespace C_TRACK.WebUserControls
|
|
{
|
|
public partial class mod_taskList : System.Web.UI.UserControl
|
|
{
|
|
/// <summary>
|
|
/// Gestione load pagina
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
statusFiter = 0;
|
|
}
|
|
}
|
|
|
|
public void doUpdate()
|
|
{
|
|
// aggiorno!
|
|
grView.DataBind();
|
|
}
|
|
|
|
/// <summary>
|
|
/// codice commessa in elaborazione
|
|
/// </summary>
|
|
protected string codCommessa
|
|
{
|
|
get
|
|
{
|
|
string answ;
|
|
if (memLayer.ML.isInSessionObject("barcodeRaw"))
|
|
{
|
|
answ = memLayer.ML.StringSessionObj("barcodeRaw");
|
|
}
|
|
else
|
|
{
|
|
answ = "";
|
|
}
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
memLayer.ML.setSessionVal("barcodeRaw", value, false);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Filtro stato comemssa
|
|
/// </summary>
|
|
private int statusFiter
|
|
{
|
|
set
|
|
{
|
|
hfCurrStatus.Value = value.ToString();
|
|
grView.DataBind();
|
|
}
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(hfCurrStatus.Value, out answ);
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
protected void lbCaricati_Click(object sender, EventArgs e)
|
|
{
|
|
statusFiter = 1;
|
|
}
|
|
|
|
protected void lbInCorso_Click(object sender, EventArgs e)
|
|
{
|
|
statusFiter = 2;
|
|
}
|
|
|
|
protected void lbConclusi_Click(object sender, EventArgs e)
|
|
{
|
|
statusFiter = 3;
|
|
}
|
|
|
|
protected void lbTutti_Click(object sender, EventArgs e)
|
|
{
|
|
statusFiter = 0;
|
|
}
|
|
|
|
}
|
|
} |