48 lines
1.0 KiB
C#
48 lines
1.0 KiB
C#
using GPW_data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace GPW_Admin.WebUserControls
|
|
{
|
|
public partial class cmp_dip2gruppi : BaseUserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
public string gruppoSel
|
|
{
|
|
get => hfGruppo.Value;
|
|
set
|
|
{
|
|
hfGruppo.Value = value;
|
|
grView.DataBind();
|
|
}
|
|
}
|
|
|
|
protected int idxDipSel
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(ddlDip.SelectedValue, out answ);
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
protected void lbtAdd_Click(object sender, EventArgs e)
|
|
{
|
|
// eseguo inserimento valore in schema
|
|
DataProxy.DP.taDip2Gruppi.insertQuery(gruppoSel, idxDipSel);
|
|
ddlDip.DataBind();
|
|
grView.DataBind();
|
|
raiseAddNew();
|
|
}
|
|
}
|
|
} |