59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
using GPW_data;
|
|
using System;
|
|
|
|
namespace GPW_Admin.WebUserControls
|
|
{
|
|
public partial class cmp_groupAssignClone : BaseUserControl
|
|
{
|
|
#region Protected Properties
|
|
|
|
protected int idxDipFrom
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(ddlFrom.SelectedValue, out answ);
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
protected int idxDipTo
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(ddlTo.SelectedValue, out answ);
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
/// <summary>
|
|
/// Clona assegnazioni dip FROM a dipendente TO
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void lbtClona_Click(object sender, EventArgs e)
|
|
{
|
|
// eseguo cloning assegnazioni dip a nuovo (deve essere attivo)
|
|
if (idxDipFrom > 0 && idxDipTo > 0)
|
|
{
|
|
DataProxy.DP.taDip2Gruppi.cloneDip(idxDipFrom, idxDipTo);
|
|
}
|
|
raiseAddNew();
|
|
}
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if(!Page.IsPostBack)
|
|
{
|
|
cbeClone.DataBind();
|
|
}
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |