Fix: add fasi SOLO in gestione fasi (NON in spostamento)
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_adminFasi.ascx.cs" Inherits="GPW_Admin.WebUserControls.mod_adminFasi" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<% if (false)
|
||||
{ %>
|
||||
<link href="~/css/Style.css" rel="stylesheet" type="text/css" />
|
||||
<% } %>
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfCardStyle" Value="default" />
|
||||
<asp:HiddenField runat="server" ID="hfEnableAdd" Value="default" />
|
||||
|
||||
<div runat="server" id="divCardMain" class="card border-dark">
|
||||
<div runat="server" id="divCardHeader" class="card-header bg-dark">
|
||||
@@ -42,7 +39,7 @@
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Button ID="btnNewEmpty" runat="server" OnClick="btnNewEmpty_Click" Text='<%# traduci("NewFase") %>' CssClass="btnNew"
|
||||
ToolTip='<%# traduci("NewFaseExpl") %>' Visible='<%# isWritable() %>' />
|
||||
ToolTip='<%# traduci("NewFaseExpl") %>' Visible='<%# isWritable() && enableAddFasi %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
|
||||
@@ -163,7 +160,7 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="percOpen" SortExpression="percOpen" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:label ID="lblpercOpen" runat="server" Text='<%# Eval("percOpen","{0:P2}") %>' Visible='<%# Eval("IdxFaseAncest").ToString() == "0" %>' />
|
||||
<asp:Label ID="lblpercOpen" runat="server" Text='<%# Eval("percOpen","{0:P2}") %>' Visible='<%# Eval("IdxFaseAncest").ToString() == "0" %>' />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtpercOpen" runat="server" Text='<%# Bind("percOpen") %>' Width="3em" Enabled='<%# Eval("IdxFaseAncest").ToString() == "0" %>' />
|
||||
@@ -185,21 +182,21 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtAddNewSub" CssClass="btn btn-sm btn-primary" OnClick="btnNew_Click" ToolTip='<%# traduci("AddNewSubFase") %>' Visible='<%# isAncestor(Eval("idxFaseAncest")) && chkLicOk %>' CommandArgument='<%# Eval("idxFase") %>'><i class="fa fa-plus" aria-hidden="true"></i> <%: traduci("AddNewSubFase") %></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtAddNewSub" CssClass="btn btn-sm btn-primary" OnClick="btnNew_Click" ToolTip='<%# traduci("AddNewSubFase") %>' Visible='<%# isAncestor(Eval("idxFaseAncest")) && chkLicOk && enableAddFasi %>' CommandArgument='<%# Eval("idxFase") %>'><i class="fa fa-plus" aria-hidden="true"></i> <%: traduci("AddNewSubFase") %></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
</FooterTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtAddNew" CssClass="btn btn-sm btn-success" OnClick="btnNew_Click" ToolTip='<%# traduci("New") %>' Visible='<%# isWritable() && chkLicOk %>'><i class="fa fa-plus" aria-hidden="true"></i> <%# traduci("NewFaseExpl") %></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtAddNew" CssClass="btn btn-sm btn-success" OnClick="btnNew_Click" ToolTip='<%# traduci("New") %>' Visible='<%# isWritable() && chkLicOk && enableAddFasi %>'><i class="fa fa-plus" aria-hidden="true"></i> <%# traduci("NewFaseExpl") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
<HeaderStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton runat="server" ID="lbtDelete" CssClass="btn btn-sm btn-danger" CausesValidation="False" CommandArgument='<%# Eval("idxFase") %>' CommandName="Delete" ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("totOre"),Eval("idxFase"),Eval("idxFaseAncest")) && chkLicOk %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lbtDelete" CssClass="btn btn-sm btn-danger" CausesValidation="False" CommandArgument='<%# Eval("idxFase") %>' CommandName="Delete" ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("totOre"),Eval("idxFase"),Eval("idxFaseAncest")) && chkLicOk && enableAddFasi %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
|
||||
<asp:ConfirmButtonExtender ID="cbeDelete" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="lbtDelete"></asp:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
@@ -253,4 +250,4 @@
|
||||
<asp:Label runat="server" ID="lblDet" Text="---" />
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -81,6 +81,23 @@ namespace GPW_Admin.WebUserControls
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// determina se sia visibile pnl dettaglio RA della fase selezionata
|
||||
/// </summary>
|
||||
public bool enableAddFasi
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
bool.TryParse(hfEnableAdd.Value, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfEnableAdd.Value= $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// idx del cliente selezionato
|
||||
/// </summary>
|
||||
|
||||
@@ -23,6 +23,15 @@ namespace GPW_Admin.WebUserControls
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfCardStyle;
|
||||
|
||||
/// <summary>
|
||||
/// hfEnableAdd control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfEnableAdd;
|
||||
|
||||
/// <summary>
|
||||
/// divCardMain control.
|
||||
/// </summary>
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
<b><%: traduci(titolo) %></b>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<uc1:mod_adminFasi ID="mod_adminFasi1" runat="server" changeSelCliEnabled="false" showReturnProj="true" CardStyle="secondary" />
|
||||
<uc1:mod_adminFasi ID="mod_adminFasi1" runat="server" changeSelCliEnabled="false" showReturnProj="true" CardStyle="secondary" enableAddFasi="true" />
|
||||
</div>
|
||||
<div class="card-footer text-right">
|
||||
<uc1:mod_pageSize runat="server" ID="mod_pageSize" />
|
||||
|
||||
Generated
+11
-11
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Admin
|
||||
@@ -15,20 +15,20 @@ namespace GPW_Admin
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_adminFasi1.
|
||||
/// mod_adminFasi1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.mod_adminFasi mod_adminFasi1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_pageSize.
|
||||
/// mod_pageSize control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize;
|
||||
}
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
</div>
|
||||
<div class="col-12 small">
|
||||
<h2>Origine</h2>
|
||||
<uc1:mod_adminFasi ID="fasiFrom" runat="server" changeSelCliEnabled="true" enableShowRA="true" showReturnProj="false" CardStyle="info" />
|
||||
<uc1:mod_adminFasi ID="fasiFrom" runat="server" changeSelCliEnabled="true" enableShowRA="true" showReturnProj="false" CardStyle="info" enableAddFasi="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<asp:Button runat="server" ID="btnClona" Text="→" CssClass="btn btn-lg btn-secondary btn-block" Font-Bold="true" ToolTip="Clona" OnClick="btnClona_Click" />
|
||||
<asp:Button runat="server" ID="btnClona" Text="→" CssClass="btn btn-lg btn-secondary btn-block" Font-Bold="true" ToolTip="Clona" OnClick="btnClona_Click" enableAddFasi="false" />
|
||||
</div>
|
||||
<div class="col-12 small">
|
||||
<h2>Destinazione</h2>
|
||||
@@ -38,4 +38,4 @@
|
||||
<uc1:mod_pageSize runat="server" ID="mod_pageSize" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
</asp:Content>
|
||||
|
||||
Generated
+20
-20
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GPW_Admin
|
||||
@@ -15,47 +15,47 @@ namespace GPW_Admin
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnSposta.
|
||||
/// btnSposta control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSposta;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo fasiFrom.
|
||||
/// fasiFrom control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.mod_adminFasi fasiFrom;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo btnClona.
|
||||
/// btnClona control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnClona;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo fasiTo.
|
||||
/// fasiTo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.mod_adminFasi fasiTo;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_pageSize.
|
||||
/// mod_pageSize control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GPW_Admin.WebUserControls.mod_pageSize mod_pageSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user