Files
GPW/GPW_Admin/WebUserControls/cmp_dip2gruppi.ascx.cs
T
2022-02-03 07:29:11 +01:00

53 lines
1.1 KiB
C#

using GPW_data;
using System;
namespace GPW_Admin.WebUserControls
{
public partial class cmp_dip2gruppi : BaseUserControl
{
#region Protected Properties
protected int idxDipSel
{
get
{
int answ = 0;
int.TryParse(ddlDip.SelectedValue, out answ);
return answ;
}
}
#endregion Protected Properties
#region Public Properties
public string gruppoSel
{
get => hfGruppo.Value;
set
{
hfGruppo.Value = value;
grView.DataBind();
}
}
#endregion Public Properties
#region Protected Methods
protected void lbtAdd_Click(object sender, EventArgs e)
{
// eseguo inserimento valore in schema
DataProxy.DP.taDip2Gruppi.insertQuery(gruppoSel, idxDipSel);
ddlDip.DataBind();
grView.DataBind();
raiseAddNew();
}
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion Protected Methods
}
}