diff --git a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
index dfb83ba8..d6603fa8 100644
--- a/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_AnagCliFor.ascx.cs
@@ -41,7 +41,7 @@ namespace MP_MAG.WebUserControls
{
divMain.Visible = true;
divDetail.Visible = showDetail;
- string mainCss = showDetail ? "col-7 pr-0" : "col-12";
+ string mainCss = showDetail ? "col-6 pr-0" : "col-12";
divMain.Attributes.Remove("class");
divMain.Attributes.Add("class", mainCss);
for (int i = 7; i < 11; i++)
@@ -50,6 +50,11 @@ namespace MP_MAG.WebUserControls
}
}
+ protected void grView_PageIndexChanged(object sender, EventArgs e)
+ {
+ doReset();
+ }
+
protected void grView_RowDeleted(object sender, System.Web.UI.WebControls.GridViewDeletedEventArgs e)
{
doReset();
@@ -60,6 +65,12 @@ namespace MP_MAG.WebUserControls
grView.SelectedIndex = e.NewEditIndex;
}
+ protected void grView_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showDet = true;
+ cmp_destClienti.codCli = $"{grView.SelectedValue}";
+ }
+
///
/// Aggiunta nuovo record
///
@@ -104,16 +115,5 @@ namespace MP_MAG.WebUserControls
}
#endregion Public Methods
-
- protected void grView_SelectedIndexChanged(object sender, EventArgs e)
- {
- showDet = true;
- cmp_destClienti.codCli = $"{grView.SelectedValue}";
- }
-
- protected void grView_PageIndexChanged(object sender, EventArgs e)
- {
- doReset();
- }
}
}
\ No newline at end of file
diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx b/MP-MAG/WebUserControls/cmp_destClienti.ascx
index 26d25d45..c1c369a8 100644
--- a/MP-MAG/WebUserControls/cmp_destClienti.ascx
+++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx
@@ -4,9 +4,28 @@
0 Record Found
+
+
Aggiungi Nuovo
+
+
+
+
+
+
+
+
+
+
+
<%----%>
@@ -15,11 +34,24 @@
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
index 462a8e49..6ef05fd8 100644
--- a/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
+++ b/MP-MAG/WebUserControls/cmp_destClienti.ascx.cs
@@ -1,18 +1,10 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
namespace MP_MAG.WebUserControls
{
- public partial class cmp_destClienti : System.Web.UI.UserControl
+ public partial class cmp_destClienti : BaseUserControl
{
- protected void Page_Load(object sender, EventArgs e)
- {
-
- }
+ #region Public Properties
public string codCli
{
@@ -27,5 +19,47 @@ namespace MP_MAG.WebUserControls
grView.SelectedIndex = -1;
}
}
+
+ #endregion Public Properties
+
+ #region Protected Methods
+
+ ///
+ /// Aggiunta nuovo record
+ ///
+ ///
+ ///
+ 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();
+ }
+
+ ///
+ /// comando reset
+ ///
+ ///
+ ///
+ 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
}
}
\ No newline at end of file