aggiunto segnaposto stile x edit fasi
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Progetti.master" AutoEventWireup="true" CodeBehind="FasiCommessa.aspx.cs" Inherits="PROJ_ETS.FasiCommessa" %>
|
||||
|
||||
<%@ Register src="WebUserControls/mod_fasi.ascx" tagname="mod_fasi" tagprefix="uc1" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="Contenuto" runat="server">
|
||||
<p>
|
||||
<img alt="WorkInProgress" class="auto-style1" longdesc="Work In Progress" src="Images/WorkInProgress.jpg" />
|
||||
</p>
|
||||
<uc1:mod_fasi ID="mod_fasi1" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
+14
-7
@@ -3,15 +3,22 @@
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PROJ_ETS
|
||||
{
|
||||
|
||||
|
||||
public partial class FasiCommessa
|
||||
{
|
||||
namespace PROJ_ETS {
|
||||
|
||||
|
||||
public partial class FasiCommessa {
|
||||
|
||||
/// <summary>
|
||||
/// mod_fasi1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PROJ_ETS.WebUserControls.mod_fasi mod_fasi1;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 940 B |
@@ -222,6 +222,9 @@
|
||||
<Content Include="Images\InOutArrows_m.png" />
|
||||
<Content Include="Images\InOutArrows_s.png" />
|
||||
<Content Include="Images\integrazioni.png" />
|
||||
<Content Include="Images\NavigaSub_l.png" />
|
||||
<Content Include="Images\NavigaSub_m.png" />
|
||||
<Content Include="Images\NavigaSub_s.png" />
|
||||
<Content Include="Images\newBlu_l.png" />
|
||||
<Content Include="Images\newBlu_m.png" />
|
||||
<Content Include="Images\newBlu_s.png" />
|
||||
@@ -279,6 +282,7 @@
|
||||
<Content Include="packages.config" />
|
||||
<Content Include="Progetti.aspx" />
|
||||
<Content Include="RiepilogoCommessa.aspx" />
|
||||
<Content Include="Scratch\imgDemoFasi.png" />
|
||||
<Content Include="Scripts\jquery-ui-i18n.js" />
|
||||
<Content Include="Scripts\jquery-ui-i18n.min.js" />
|
||||
<Content Include="Scripts\WebForms\MSAjax\MicrosoftAjax.js" />
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
@@ -24,10 +24,16 @@
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Seleziona" ImageUrl="../images/view_m.png" Visible='<%# showSelect %>' />
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Modifica" ImageUrl="../images/edit_m.png" Visible='<%# isWritable() && showEdit %>' />
|
||||
<asp:ImageButton ID="imgDettComm" runat="server" CausesValidation="False" CommandArgument="dettComm" CommandName="Update"
|
||||
ToolTip="Dati Commessa" ImageUrl="../images/naviga_m.png" OnClick="imgDettComm_Click" Visible='<%# isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
<div class="divSx">
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Seleziona" ImageUrl="../images/view_m.png" Visible='<%# showSelect %>' />
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Modifica" ImageUrl="../images/edit_m.png" Visible='<%# isWritable() && showEdit %>' />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<asp:ImageButton ID="imgDettComm" runat="server" CausesValidation="False" CommandArgument="dettComm" CommandName="Update"
|
||||
ToolTip="Dati Commessa" ImageUrl="../images/naviga_m.png" OnClick="imgDettComm_Click" Visible='<%# isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
<asp:ImageButton ID="imgDettFasi" runat="server" CausesValidation="False" CommandArgument="dettFasi" CommandName="Update"
|
||||
ToolTip="Dati Fasi" ImageUrl="../images/NavigaSub_m.png" OnClick="imgDettFasi_Click" Visible='<%# !isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ToolTip="Update" ImageUrl="../images/apply_m.png" />
|
||||
@@ -50,7 +56,7 @@
|
||||
<div class="divSx">
|
||||
<div style="text-align: left; padding: 2px 3px 2px 3px;" class='<%# classByCod(Eval("codFase")) %>'>
|
||||
<asp:Label ID="nomeFaseLabel" runat="server" Text='<%# Eval("nomeFase") %>' Font-Strikeout='<%# invBool(Eval("Attivo")) %>'
|
||||
Font-Bold="true" />
|
||||
Font-Bold="true" />
|
||||
</div>
|
||||
<div class="textGrigio" style="text-align: left; padding: 2px 3px 2px 3px;">
|
||||
<asp:Label ID="descrizioneFaseLabel" runat="server" Text='<%# Eval("descrizioneFase") %>' Font-Size="7pt" />
|
||||
|
||||
@@ -557,7 +557,7 @@ namespace PROJ_ETS.WebUserControls
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è ettaglio commesse...
|
||||
/// salvo in session che il prox comando è dettaglio commesse...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
@@ -566,6 +566,15 @@ namespace PROJ_ETS.WebUserControls
|
||||
utils.obj.setSessionVal("nextObjCommand", "dettComm");
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è dettaglio fasi...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void imgDettFasi_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
utils.obj.setSessionVal("nextObjCommand", "dettFasi");
|
||||
}
|
||||
/// <summary>
|
||||
/// intercetto eventuale update fittizio x rimandare a pagina dett fasi
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -582,12 +591,12 @@ namespace PROJ_ETS.WebUserControls
|
||||
utils.obj.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
// verifico il tipo di richiesta (clona o update normale)
|
||||
int idxCli = 0;
|
||||
string nomeCli = "";
|
||||
switch (_comando)
|
||||
{
|
||||
case "dettComm":
|
||||
// salvo idxCli...
|
||||
int idxCli = 0;
|
||||
string nomeCli = "";
|
||||
try
|
||||
{
|
||||
idxCli = DataProxy_ProjEts.DP.taAP.getByIdxPrj(utils.obj.IntSessionObj("idxProgetto_sel"))[0].idxCliente;
|
||||
@@ -607,6 +616,28 @@ namespace PROJ_ETS.WebUserControls
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
case "dettFasi":
|
||||
// salvo idxCli...
|
||||
try
|
||||
{
|
||||
idxCli = DataProxy_ProjEts.DP.taAP.getByIdxPrj(utils.obj.IntSessionObj("idxProgetto_sel"))[0].idxCliente;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// cerco di recuperare nome cliente...
|
||||
try
|
||||
{
|
||||
nomeCli = DataProxy_ProjEts.DP.taSelCli.getByValue(idxCli)[0].label;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
utils.obj.setSessionVal("idxCli_sel", idxCli);
|
||||
utils.obj.setSessionVal("nomeCli_sel", nomeCli);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
// redirect
|
||||
Response.Redirect("FasiCommessa");
|
||||
break;
|
||||
default:
|
||||
// faccio update!
|
||||
break;
|
||||
|
||||
@@ -25,11 +25,17 @@
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Modifica" ImageUrl="../images/edit_m.png" Visible='<%# isWritable() %>' />
|
||||
<asp:ImageButton ID="imgGoProj" runat="server" CausesValidation="False" CommandArgument="goProj" CommandName="Update"
|
||||
ToolTip="Dati Progetto" ImageUrl="../images/arrowLeft_m.png" OnClick="imgGoProj_Click" Visible='<%# isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
<asp:ImageButton ID="imgDettComm" runat="server" CausesValidation="False" CommandArgument="dettComm" CommandName="Update"
|
||||
ToolTip="Dati Commessa" ImageUrl="../images/naviga_m.png" OnClick="imgDettComm_Click" Visible='<%# isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
<div class="divSx">
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Modifica" ImageUrl="../images/edit_m.png" Visible='<%# isWritable() %>' />
|
||||
<asp:ImageButton ID="imgGoProj" runat="server" CausesValidation="False" CommandArgument="goProj" CommandName="Update"
|
||||
ToolTip="Dati Progetto" ImageUrl="../images/arrowLeft_m.png" OnClick="imgGoProj_Click" Visible='<%# isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<asp:ImageButton ID="imgDettComm" runat="server" CausesValidation="False" CommandArgument="dettComm" CommandName="Update"
|
||||
ToolTip="Dati Commessa" ImageUrl="../images/naviga_m.png" OnClick="imgDettComm_Click" Visible='<%# isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
<asp:ImageButton ID="imgDettFasi" runat="server" CausesValidation="False" CommandArgument="dettFasi" CommandName="Update"
|
||||
ToolTip="Dati Fasi" ImageUrl="../images/NavigaSub_m.png" OnClick="imgDettFasi_Click" Visible='<%# !isAncestor(Eval("idxFaseAncest")) %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ToolTip="Update" ImageUrl="../images/apply_m.png" />
|
||||
|
||||
@@ -582,7 +582,7 @@ namespace PROJ_ETS.WebUserControls
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è ettaglio commesse...
|
||||
/// salvo in session che il prox comando è dettaglio commesse...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
@@ -591,6 +591,15 @@ namespace PROJ_ETS.WebUserControls
|
||||
utils.obj.setSessionVal("nextObjCommand", "dettComm");
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è dettaglio fasi...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void imgDettFasi_Click(object sender, ImageClickEventArgs e)
|
||||
{
|
||||
utils.obj.setSessionVal("nextObjCommand", "dettFasi");
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session che il prox comando è ettaglio commesse...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -645,6 +654,28 @@ namespace PROJ_ETS.WebUserControls
|
||||
// redirect
|
||||
Response.Redirect("DatiCommessa");
|
||||
break;
|
||||
case "dettFasi":
|
||||
// salvo idxCli...
|
||||
try
|
||||
{
|
||||
idxCli = DataProxy_ProjEts.DP.taAP.getByIdxPrj(utils.obj.IntSessionObj("idxProgetto_sel"))[0].idxCliente;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// cerco di recuperare nome cliente...
|
||||
try
|
||||
{
|
||||
nomeCli = DataProxy_ProjEts.DP.taSelCli.getByValue(idxCli)[0].label;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
utils.obj.setSessionVal("idxCli_sel", idxCli);
|
||||
utils.obj.setSessionVal("nomeCli_sel", nomeCli);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
// redirect
|
||||
Response.Redirect("FasiCommessa");
|
||||
break;
|
||||
case "goProj":
|
||||
// salvo idxCli...
|
||||
try
|
||||
|
||||
@@ -1,2 +1,9 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_fasi.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_fasi" %>
|
||||
Elenco Fasi della SINGOLA commessa
|
||||
<style type="text/css">
|
||||
.auto-style1 {
|
||||
width: 947px;
|
||||
height: 603px;
|
||||
}
|
||||
</style>
|
||||
Elenco Fasi della SINGOLA commessa:<br />
|
||||
<asp:Image runat="server" ID="imgDemo" ImageUrl="~/Scratch/imgDemoFasi.png" />
|
||||
+14
-7
@@ -3,15 +3,22 @@
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PROJ_ETS.WebUserControls
|
||||
{
|
||||
|
||||
|
||||
public partial class mod_fasi
|
||||
{
|
||||
namespace PROJ_ETS.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_fasi {
|
||||
|
||||
/// <summary>
|
||||
/// imgDemo 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.Image imgDemo;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user