65 lines
1.5 KiB
C#
65 lines
1.5 KiB
C#
using System;
|
|
|
|
namespace MP_MAG.WebUserControls
|
|
{
|
|
public partial class cmp_destClienti : BaseUserControl
|
|
{
|
|
#region Public Properties
|
|
|
|
public string codCli
|
|
{
|
|
get
|
|
{
|
|
return hfCodCli.Value;
|
|
}
|
|
set
|
|
{
|
|
hfCodCli.Value = value;
|
|
grView.DataBind();
|
|
grView.SelectedIndex = -1;
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Methods
|
|
|
|
/// <summary>
|
|
/// Aggiunta nuovo record
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void lbtAddNew_Click(object sender, EventArgs e)
|
|
{
|
|
//MagDataLayerObj.taACF.insertQuery("__CodiceCliente", "Nuova Ragione Sociale", "Nuovo Indirizzo", "Nuova Località", "00000", "BA", "IT", false, true);
|
|
doReset();
|
|
}
|
|
|
|
/// <summary>
|
|
/// comando reset
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void lbtReset_Click(object sender, EventArgs e)
|
|
{
|
|
doReset();
|
|
raiseReset();
|
|
}
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Public Methods
|
|
|
|
public void doReset()
|
|
{
|
|
grView.SelectedIndex = -1;
|
|
grView.DataBind();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |