130 lines
3.3 KiB
C#
130 lines
3.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using CMS_SC_Data;
|
|
using SteamWare;
|
|
|
|
namespace CMS_SC.WebUserControls
|
|
{
|
|
public partial class mod_StatoCollaudi : SteamWare.UserControl
|
|
{
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// dimensione pagina grid view
|
|
/// </summary>
|
|
public int pageSize
|
|
{
|
|
get
|
|
{
|
|
return grView.PageSize;
|
|
}
|
|
set
|
|
{
|
|
grView.PageSize = value;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// dossier selezionato
|
|
/// </summary>
|
|
public string idxDossier
|
|
{
|
|
get
|
|
{
|
|
return hfIdxDossier.Value;
|
|
}
|
|
set
|
|
{
|
|
hfIdxDossier.Value = value;
|
|
grView.DataBind();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// dossier selezionato
|
|
/// </summary>
|
|
public string Fase
|
|
{
|
|
get
|
|
{
|
|
return hfFase.Value;
|
|
}
|
|
set
|
|
{
|
|
hfFase.Value = value;
|
|
grView.DataBind();
|
|
}
|
|
}
|
|
|
|
public string CodSchedaVersNum
|
|
{
|
|
get
|
|
{
|
|
string answ = "";
|
|
try
|
|
{
|
|
answ = string.Format("{0}.{1}.{2}", grView.SelectedDataKey["CodScheda"], grView.SelectedDataKey["Vers"], grView.SelectedDataKey["NumScheda"]);
|
|
}
|
|
catch
|
|
{ }
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
grView.SelectedIndex = 0;
|
|
}
|
|
}
|
|
|
|
public void doUpdate()
|
|
{
|
|
grView.DataBind();
|
|
}
|
|
/// <summary>
|
|
/// selezione scheda...
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
#if false
|
|
string CodSchedaVersNum = "";
|
|
CodSchedaVersNum = string.Format("{0}.{1}.{2}", grView.SelectedDataKey["CodScheda"], grView.SelectedDataKey["Vers"], grView.SelectedDataKey["NumScheda"]);
|
|
#endif
|
|
if (CodSchedaVersNum != "")
|
|
{
|
|
// salvo parametro
|
|
savePar("ddlSelScheda", CodSchedaVersNum);
|
|
// sollevo evento...
|
|
raiseEvent(ucEvType.Selected);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// salva su DB il parametro scelto dall'utente
|
|
/// </summary>
|
|
/// <param name="paramName"></param>
|
|
/// <param name="paramValue"></param>
|
|
protected void savePar(string paramName, string paramValue)
|
|
{
|
|
DtProxy.man.taUsrPar.upsert(OpAuth.currAuth.email, paramName, paramValue);
|
|
}
|
|
protected void btnReset_Click(object sender, EventArgs e)
|
|
{
|
|
resetSelezione();
|
|
}
|
|
/// <summary>
|
|
/// resetto selezione
|
|
/// </summary>
|
|
private void resetSelezione()
|
|
{
|
|
grView.SelectedIndex = -1;
|
|
grView.DataBind();
|
|
raiseEvent(ucEvType.Reset);
|
|
}
|
|
|
|
}
|
|
} |