Fix comportamento edit/preview STech
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ST_detail.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_ST_detail" %>
|
||||
<%@ Register Src="~/WebUserControls/cmp_ST_objView.ascx" TagPrefix="uc1" TagName="cmp_ST_objView" %>
|
||||
|
||||
<asp:Label runat="server" ID="lblWarning" Visible="false" CssClass="text-danger text-center" Font-Size="2em" />
|
||||
|
||||
<asp:Repeater ID="repDetail" runat="server" DataSourceID="ods">
|
||||
<ItemTemplate>
|
||||
<div class="border border-bottom-secondary">
|
||||
|
||||
@@ -41,22 +41,6 @@ namespace MP_ADM.WebUserControls
|
||||
|
||||
#region Private Methods
|
||||
|
||||
/// <summary>
|
||||
/// check ODL presente
|
||||
/// </summary>
|
||||
private void fixWarning()
|
||||
{
|
||||
if (IdxST == 0)
|
||||
{
|
||||
lblWarning.Text = traduci("MancaIdxST");
|
||||
lblWarning.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
lblWarning.Text = "";
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
@@ -64,7 +48,6 @@ namespace MP_ADM.WebUserControls
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
fixWarning();
|
||||
}
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
@@ -14,15 +14,6 @@ namespace MP_ADM.WebUserControls
|
||||
public partial class cmp_ST_detail
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarning.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo repDetail.
|
||||
/// </summary>
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace MP_ADM.WebUserControls
|
||||
|
||||
protected void lbtDoEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
raiseSelNew();
|
||||
raiseNewVal();
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user