aggiunto cerca in progetti
spostato controllo commesse in user control progetti
This commit is contained in:
@@ -6,16 +6,16 @@
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="Contenuto" runat="server">
|
||||
|
||||
<div>
|
||||
<div class="divSx">
|
||||
<%--<div class="divSx">--%>
|
||||
<uc1:mod_progetti ID="mod_progetti1" runat="server" />
|
||||
</div>
|
||||
<%--</div>
|
||||
<div class="divSx" style="width: 600px;">
|
||||
<div style="height: 46px;"></div>
|
||||
<uc2:mod_commesse ID="mod_commesse1" runat="server" Visible="false" enableNew="true" enableNewFromEmpty="true" showSelect="false" showSelectSub="false" enableJump="true" showEdit="true" />
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:Button runat="server" ID="btnSposta" Text="Sposta/Clona Commesse e fasi" Visible="false" CssClass="btnMoveBig ui-corner-all" ToolTip="Spostamento Commesse e Fasi" OnClick="btnSposta_Click" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv"></div>
|
||||
</div>--%>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -28,8 +28,10 @@ namespace PROJ_ETS
|
||||
utils.obj.emptySessionVal("nomeCli_sel");
|
||||
}
|
||||
}
|
||||
mod_progetti1.eh_selValore +=mod_progetti1_eh_selValore;
|
||||
mod_progetti1.eh_resetSelezione+=mod_progetti1_eh_resetSelezione;
|
||||
#if false
|
||||
mod_progetti1.eh_selValore +=mod_progetti1_eh_selValore;
|
||||
#endif
|
||||
mod_progetti1.eh_resetSelezione += mod_progetti1_eh_resetSelezione;
|
||||
}
|
||||
/// <summary>
|
||||
/// reset selezione: nascondo dettaglio!
|
||||
@@ -38,8 +40,9 @@ namespace PROJ_ETS
|
||||
/// <param name="e"></param>
|
||||
private void mod_progetti1_eh_resetSelezione(object sender, EventArgs e)
|
||||
{
|
||||
showDetail(false);
|
||||
mod_progetti1.showDetail(false);
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// mostra dettagli
|
||||
/// </summary>
|
||||
@@ -48,7 +51,7 @@ namespace PROJ_ETS
|
||||
{
|
||||
mod_commesse1.Visible = visibile;
|
||||
btnSposta.Visible = visibile;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// selezionato progetto: mostro commesse + fasi associate!
|
||||
/// </summary>
|
||||
@@ -95,5 +98,6 @@ namespace PROJ_ETS
|
||||
utils.obj.setSessionVal("idxCli_sel", idxCli);
|
||||
utils.obj.setSessionVal("nomeCli_sel", nomeCli);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
-18
@@ -20,23 +20,5 @@ namespace PROJ_ETS {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PROJ_ETS.WebUserControls.mod_progetti mod_progetti1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_commesse1 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_commesse mod_commesse1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSposta 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.Button btnSposta;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_progetti.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_progetti" %>
|
||||
<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_autocomplete.ascx" TagName="mod_autocomplete" TagPrefix="uc2" %>
|
||||
<%@ Register Src="mod_commesse.ascx" TagName="mod_commesse" TagPrefix="uc3" %>
|
||||
<div class="filtro_1 fontPiccolo ui-corner-all" style="white-space: nowrap; height: 38px; padding: 4px;">
|
||||
<div class="divSx filtro_2 ui-corner-all" style="padding: 3px; margin-right: 4px; height: 32px;">
|
||||
<uc2:mod_autocomplete ID="filtroCli" runat="server" minCharAutocomplete="2" contextKey="c" labelRicerca="[C]liente" showKey="false" ServicePath="Services/WS_data.asmx/Clienti" />
|
||||
@@ -15,140 +16,144 @@
|
||||
<div class="divSx filtro_2 ui-corner-all" style="padding: 3px; margin-right: 4px; height: 32px;">
|
||||
<uc1:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" realtimeUpdate="true" labelPeriodo="Periodo (Resoconto Ore)" />
|
||||
</div>
|
||||
<div class="divSx filtro_2 ui-corner-all" style="padding: 3px; margin-right: 4px; height: 32px;">
|
||||
<asp:Label runat="server" ID="lblCerca" AssociatedControlID="txtCerca" Text="Ce[r]ca" Font-Size="0.8em" AccessKey="r" />
|
||||
<asp:TextBox runat="server" ID="txtCerca" AutoPostBack="true" OnTextChanged="txtCerca_TextChanged" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearDiv divSx" style="min-width: 600px;">
|
||||
<div class="fontPiccolo">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4"
|
||||
DataKeyNames="idxProgetto" DataSourceID="ods" ForeColor="#333333" GridLines="None" OnDataBound="grView_DataBound" OnSelectedIndexChanged="grView_SelectedIndexChanged" PageSize="20"
|
||||
OnRowUpdating="grView_RowUpdating">
|
||||
<AlternatingRowStyle CssClass="alternatingRowStyle" />
|
||||
<EditRowStyle CssClass="editRowStyle" />
|
||||
<FooterStyle CssClass="footerStyle" ForeColor="White" />
|
||||
<HeaderStyle CssClass="headerStyle" ForeColor="White" />
|
||||
<PagerStyle CssClass="pagerStyle" ForeColor="White" />
|
||||
<RowStyle CssClass="rowStyle" />
|
||||
<SelectedRowStyle CssClass="selectedRowStyle" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell" />
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" ItemStyle-Width="78px" ItemStyle-VerticalAlign="Middle"
|
||||
ItemStyle-Height="26px">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Seleziona"
|
||||
ImageUrl="../images/view_m.png" />
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Modifica"
|
||||
ImageUrl="../images/edit_m.png" Visible='<%# isWritable() %>' />
|
||||
<asp:ImageButton ID="imgDettFasi" runat="server" CausesValidation="False" CommandArgument="dettFasi" CommandName="Update"
|
||||
ToolTip="Spostamento Commesse e Fasi" ImageUrl="../images/InOutArrows_m.png" OnClick="imgDettFasi_Click" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ToolTip="Update"
|
||||
ImageUrl="../images/apply_s.png" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel"
|
||||
ImageUrl="../images/cancel_s.png" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert" runat="server" CausesValidation="False" CommandName="Insert" ToolTip="Inserisci"
|
||||
ImageUrl="../images/new_s.png" OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel"
|
||||
ImageUrl="../images/cancel_s.png" />
|
||||
</FooterTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:ImageButton ID="imgBtnReset" runat="server" ToolTip="Reset" CausesValidation="False" OnClick="btnReset_Click"
|
||||
ImageUrl="../images/reload_l.png" Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="Cliente/Progetto" SortExpression="RagSociale"
|
||||
ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<div class="divSx">
|
||||
<asp:Label ID="lblRagSociale" runat="server" Text='<%# Eval("RagSociale") %>' />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<div class="fontNormale">
|
||||
<b>
|
||||
<asp:Label ID="lblnomeProj" runat="server" Text='<%# Eval("nomeProj") %>' Font-Strikeout='<%# invBool(Eval("Attivo")) %>' /></b>
|
||||
<div class="divSx">
|
||||
<div class="clearDiv divSx" style="min-width: 600px;">
|
||||
<div class="fontPiccolo">
|
||||
<asp:GridView ID="grView" runat="server" AllowSorting="True" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4"
|
||||
DataKeyNames="idxProgetto" DataSourceID="ods" ForeColor="#333333" GridLines="None" OnDataBound="grView_DataBound" OnSelectedIndexChanged="grView_SelectedIndexChanged" PageSize="20"
|
||||
OnRowUpdating="grView_RowUpdating">
|
||||
<AlternatingRowStyle CssClass="alternatingRowStyle" />
|
||||
<EditRowStyle CssClass="editRowStyle" />
|
||||
<FooterStyle CssClass="footerStyle" ForeColor="White" />
|
||||
<HeaderStyle CssClass="headerStyle" ForeColor="White" />
|
||||
<PagerStyle CssClass="pagerStyle" ForeColor="White" />
|
||||
<RowStyle CssClass="rowStyle" />
|
||||
<SelectedRowStyle CssClass="selectedRowStyle" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle CssClass="sortAscCell" />
|
||||
<SortedAscendingHeaderStyle CssClass="sortAscHead" />
|
||||
<SortedDescendingCellStyle CssClass="sortDescCell" />
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false" ItemStyle-Width="78px" ItemStyle-VerticalAlign="Middle"
|
||||
ItemStyle-Height="26px">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Seleziona"
|
||||
ImageUrl="../images/view_m.png" />
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Modifica"
|
||||
ImageUrl="../images/edit_m.png" Visible='<%# isWritable() %>' />
|
||||
<asp:ImageButton ID="imgDettFasi" runat="server" CausesValidation="False" CommandArgument="dettFasi" CommandName="Update"
|
||||
ToolTip="Spostamento Commesse e Fasi" ImageUrl="../images/InOutArrows_m.png" OnClick="imgDettFasi_Click" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ToolTip="Update"
|
||||
ImageUrl="../images/apply_s.png" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel"
|
||||
ImageUrl="../images/cancel_s.png" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert" runat="server" CausesValidation="False" CommandName="Insert" ToolTip="Inserisci"
|
||||
ImageUrl="../images/new_s.png" OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel"
|
||||
ImageUrl="../images/cancel_s.png" />
|
||||
</FooterTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:ImageButton ID="imgBtnReset" runat="server" ToolTip="Reset" CausesValidation="False" OnClick="btnReset_Click"
|
||||
ImageUrl="../images/reload_l.png" Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderText="Cliente/Progetto" SortExpression="RagSociale"
|
||||
ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<div class="divSx">
|
||||
<asp:Label ID="lblRagSociale" runat="server" Text='<%# Eval("RagSociale") %>' />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<div class="fontNormale">
|
||||
<b>
|
||||
<asp:Label ID="lblnomeProj" runat="server" Text='<%# Eval("nomeProj") %>' Font-Strikeout='<%# invBool(Eval("Attivo")) %>' /></b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv labelInput" style="width: 500px; white-space: normal;">
|
||||
<asp:Label ID="lbldescrProj" runat="server" Text='<%# Eval("descrProj") %>' Font-Size="7pt" Font-Strikeout='<%# invBool(Eval("Attivo")) %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<div class="clearDiv">
|
||||
Cliente:<br />
|
||||
<asp:DropDownList runat="server" ID="dlidxCliente" SelectedValue='<%# Bind("idxCliente") %>' DataSourceID="odsClienti" DataTextField="label"
|
||||
DataValueField="value" Font-Size="7pt" />
|
||||
</div>
|
||||
<div class="clearDiv fontNormale">
|
||||
Nome progetto<br />
|
||||
<asp:TextBox ID="txtnomeProj" runat="server" Text='<%# Bind("nomeProj") %>' Width="45em" Font-Size="8pt" />
|
||||
</div>
|
||||
<div class="clearDiv labelInput" style="width: 500px;">
|
||||
<div class="divSx">
|
||||
descrizione:<br />
|
||||
<asp:TextBox ID="txtdescrProj" runat="server" Text='<%# Bind("descrProj") %>' Width="45em" TextMode="MultiLine" Height="6em" Font-Size="8pt" />
|
||||
<div class="clearDiv labelInput" style="width: 500px; white-space: normal;">
|
||||
<asp:Label ID="lbldescrProj" runat="server" Text='<%# Eval("descrProj") %>' Font-Size="7pt" Font-Strikeout='<%# invBool(Eval("Attivo")) %>' />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
Attivo:
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<div class="clearDiv">
|
||||
Cliente:<br />
|
||||
<asp:DropDownList runat="server" ID="dlidxCliente" SelectedValue='<%# Bind("idxCliente") %>' DataSourceID="odsClienti" DataTextField="label"
|
||||
DataValueField="value" Font-Size="7pt" />
|
||||
</div>
|
||||
<div class="clearDiv fontNormale">
|
||||
Nome progetto<br />
|
||||
<asp:TextBox ID="txtnomeProj" runat="server" Text='<%# Bind("nomeProj") %>' Width="45em" Font-Size="8pt" />
|
||||
</div>
|
||||
<div class="clearDiv labelInput" style="width: 500px;">
|
||||
<div class="divSx">
|
||||
descrizione:<br />
|
||||
<asp:TextBox ID="txtdescrProj" runat="server" Text='<%# Bind("descrProj") %>' Width="45em" TextMode="MultiLine" Height="6em" Font-Size="8pt" />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
Attivo:
|
||||
<asp:CheckBox runat="server" ID="chkAttivo" Checked='<%# Bind("Attivo") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</EditItemTemplate>
|
||||
</EditItemTemplate>
|
||||
|
||||
<FooterTemplate>
|
||||
<div class="clearDiv">
|
||||
Cliente:<br />
|
||||
<asp:DropDownList runat="server" ID="dlidxCliente" SelectedValue='<%# Bind("idxCliente") %>' DataSourceID="odsClienti" DataTextField="label"
|
||||
DataValueField="value" Font-Size="7pt" />
|
||||
</div>
|
||||
<div class="clearDiv fontNormale">
|
||||
Nome progetto<br />
|
||||
<asp:TextBox ID="txtnomeProj" runat="server" Text='<%# Bind("nomeProj") %>' Width="45em" Font-Size="8pt" />
|
||||
</div>
|
||||
<div class="clearDiv labelInput" style="width: 500px;">
|
||||
<div class="divSx">
|
||||
descrizione:<br />
|
||||
<asp:TextBox ID="txtdescrProj" runat="server" Text='<%# Bind("descrProj") %>' Width="45em" TextMode="MultiLine" Height="6em" Font-Size="8pt" />
|
||||
<FooterTemplate>
|
||||
<div class="clearDiv">
|
||||
Cliente:<br />
|
||||
<asp:DropDownList runat="server" ID="dlidxCliente" SelectedValue='<%# Bind("idxCliente") %>' DataSourceID="odsClienti" DataTextField="label"
|
||||
DataValueField="value" Font-Size="7pt" />
|
||||
</div>
|
||||
</div>
|
||||
</FooterTemplate>
|
||||
<div class="clearDiv fontNormale">
|
||||
Nome progetto<br />
|
||||
<asp:TextBox ID="txtnomeProj" runat="server" Text='<%# Bind("nomeProj") %>' Width="45em" Font-Size="8pt" />
|
||||
</div>
|
||||
<div class="clearDiv labelInput" style="width: 500px;">
|
||||
<div class="divSx">
|
||||
descrizione:<br />
|
||||
<asp:TextBox ID="txtdescrProj" runat="server" Text='<%# Bind("descrProj") %>' Width="45em" TextMode="MultiLine" Height="6em" Font-Size="8pt" />
|
||||
</div>
|
||||
</div>
|
||||
</FooterTemplate>
|
||||
|
||||
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
|
||||
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
|
||||
|
||||
<ItemStyle HorizontalAlign="Left" Wrap="False"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Ore" SortExpression="budgetTime" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Panel runat="server" ID="pnlTime" CssClass='<%# colorByVal(Eval("totOre"),Eval("budgetTime"))%>' Style="font-size: 9pt; padding: .3em;"
|
||||
Width="80px">
|
||||
<b>
|
||||
<asp:Label ID="lblRealTime" runat="server" Text='<%# Eval("totOre","{0:#,###.##}") %>' ToolTip="Ore Erogate" /></b>
|
||||
/
|
||||
<ItemStyle HorizontalAlign="Left" Wrap="False"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Ore" SortExpression="budgetTime" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Panel runat="server" ID="pnlTime" CssClass='<%# colorByVal(Eval("totOre"),Eval("budgetTime"))%>' Style="font-size: 9pt; padding: .3em;"
|
||||
Width="80px">
|
||||
<b>
|
||||
<asp:Label ID="lblRealTime" runat="server" Text='<%# Eval("totOre","{0:#,###.##}") %>' ToolTip="Ore Erogate" /></b>
|
||||
/
|
||||
<asp:Label ID="lblbudgetTime" runat="server" Text='<%# Eval("budgetTime","{0:#,###.##}") %>' ToolTip="OreBudget" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:Panel runat="server" ID="pnlTime" CssClass='<%# colorByVal(Eval("totOre"),Eval("budgetTime"))%>' Style="font-size: 9pt; padding: .3em;"
|
||||
Width="100px">
|
||||
<b>
|
||||
<asp:Label ID="lblRealTime" runat="server" Text='<%# Eval("totOre","{0:#,###.##}") %>' ToolTip="OreErogate" /></b>
|
||||
/
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:Panel runat="server" ID="pnlTime" CssClass='<%# colorByVal(Eval("totOre"),Eval("budgetTime"))%>' Style="font-size: 9pt; padding: .3em;"
|
||||
Width="100px">
|
||||
<b>
|
||||
<asp:Label ID="lblRealTime" runat="server" Text='<%# Eval("totOre","{0:#,###.##}") %>' ToolTip="OreErogate" /></b>
|
||||
/
|
||||
<asp:Label ID="lblbudgetTime" runat="server" Text='<%# Eval("budgetTime","{0:#,###.##}") %>' ToolTip="OreBudget" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- <asp:TemplateField HeaderText="budgetMoney" SortExpression="budgetMoney">
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<%-- <asp:TemplateField HeaderText="budgetMoney" SortExpression="budgetMoney">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblbudgetMoney" runat="server" Text='<%# Eval("budgetMoney","{0:#,###.##}€") %>' />
|
||||
</ItemTemplate>
|
||||
@@ -158,65 +163,72 @@
|
||||
<FooterTemplate>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idxProgetto") %>' CommandName="Delete"
|
||||
ImageUrl="../images/elimina_s.png" ToolTip="Delete" Visible='<%# delEnabled(Eval("idxProgetto")) %>' OnClientClick="return confirm('Confermi eliminazione record?')" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update" ImageUrl="../images/apply_s.png"
|
||||
ToolTip="Update" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="../images/cancel_s.png"
|
||||
ToolTip="Cancel" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert2" runat="server" CausesValidation="False" CommandName="Insert" ImageUrl="../images/new_s.png"
|
||||
OnClick="lblIns_click" ToolTip="Inserisci" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="../images/cancel_s.png"
|
||||
ToolTip="Cancel" />
|
||||
</FooterTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:ImageButton ID="imgBtnNew" runat="server" ToolTip="New" CausesValidation="False" OnClick="btnNew_Click"
|
||||
ImageUrl="~/images/new_m.png" Visible='<%# isWritable() %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OnInserting="recuperaFooter" DeleteMethod="deleteQuery" InsertMethod="insertQuery"
|
||||
OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ETS_Data.Ds_ProjEtsTableAdapters.AnagProgettiTableAdapter"
|
||||
UpdateMethod="updateQuery" FilterExpression=" (nomeProj like '%{0}%') OR (descrProj like '%{0}%')"
|
||||
OnUpdating="ods_Updating">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxProgetto" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter SessionField="valoreCercato" Type="String" />
|
||||
</FilterParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="idxCliente" Type="Int32" />
|
||||
<asp:Parameter Name="nomeProj" Type="String" />
|
||||
<asp:Parameter Name="descrProj" Type="String" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="0" Name="idxDipendente" Type="Int32" />
|
||||
<asp:SessionParameter Name="dataFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="dataTo" SessionField="_fine" Type="DateTime" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxCliente" SessionField="idxCli_sel" Type="Int32" />
|
||||
<asp:SessionParameter DefaultValue="False" Name="showPrjArch" SessionField="showPrjArch" Type="Boolean" />
|
||||
<asp:SessionParameter DefaultValue="True" Name="showPrjZeroH" SessionField="showPrjZeroH" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="idxCliente" Type="Int32" />
|
||||
<asp:Parameter Name="nomeProj" Type="String" />
|
||||
<asp:Parameter Name="descrProj" Type="String" />
|
||||
<asp:Parameter Name="Attivo" Type="Boolean" />
|
||||
<asp:Parameter Name="Original_idxProgetto" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsClienti" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
|
||||
TypeName="ETS_data.DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandArgument='<%# Eval("idxProgetto") %>' CommandName="Delete"
|
||||
ImageUrl="../images/elimina_s.png" ToolTip="Delete" Visible='<%# delEnabled(Eval("idxProgetto")) %>' OnClientClick="return confirm('Confermi eliminazione record?')" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update" ImageUrl="../images/apply_s.png"
|
||||
ToolTip="Update" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="../images/cancel_s.png"
|
||||
ToolTip="Cancel" />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert2" runat="server" CausesValidation="False" CommandName="Insert" ImageUrl="../images/new_s.png"
|
||||
OnClick="lblIns_click" ToolTip="Inserisci" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="../images/cancel_s.png"
|
||||
ToolTip="Cancel" />
|
||||
</FooterTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:ImageButton ID="imgBtnNew" runat="server" ToolTip="New" CausesValidation="False" OnClick="btnNew_Click"
|
||||
ImageUrl="~/images/new_m.png" Visible='<%# isWritable() %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OnInserting="recuperaFooter" DeleteMethod="deleteQuery" InsertMethod="insertQuery"
|
||||
OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ETS_Data.Ds_ProjEtsTableAdapters.AnagProgettiTableAdapter"
|
||||
UpdateMethod="updateQuery" FilterExpression=" (nomeProj like '%{0}%') OR (descrProj like '%{0}%')"
|
||||
OnUpdating="ods_Updating">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_idxProgetto" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter SessionField="valoreCercato" Type="String" />
|
||||
</FilterParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="idxCliente" Type="Int32" />
|
||||
<asp:Parameter Name="nomeProj" Type="String" />
|
||||
<asp:Parameter Name="descrProj" Type="String" />
|
||||
</InsertParameters>
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="0" Name="idxDipendente" Type="Int32" />
|
||||
<asp:SessionParameter Name="dataFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="dataTo" SessionField="_fine" Type="DateTime" />
|
||||
<asp:SessionParameter DefaultValue="0" Name="idxCliente" SessionField="idxCli_sel" Type="Int32" />
|
||||
<asp:SessionParameter DefaultValue="False" Name="showPrjArch" SessionField="showPrjArch" Type="Boolean" />
|
||||
<asp:SessionParameter DefaultValue="True" Name="showPrjZeroH" SessionField="showPrjZeroH" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="idxCliente" Type="Int32" />
|
||||
<asp:Parameter Name="nomeProj" Type="String" />
|
||||
<asp:Parameter Name="descrProj" Type="String" />
|
||||
<asp:Parameter Name="Attivo" Type="Boolean" />
|
||||
<asp:Parameter Name="Original_idxProgetto" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsClienti" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
|
||||
TypeName="ETS_data.DS_utilsProjEtsTableAdapters.v_selClientiTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="divSx" style="width: 600px;">
|
||||
<uc3:mod_commesse ID="mod_commesse1" runat="server" Visible="false" enableNew="true" enableNewFromEmpty="true" showSelect="false" showSelectSub="false" enableJump="true" showEdit="true" />
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:Button runat="server" ID="btnSposta" Text="Sposta/Clona Commesse e fasi" Visible="false" CssClass="btnMoveBig ui-corner-all" ToolTip="Spostamento Commesse e Fasi" OnClick="btnSposta_Click" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv"></div>
|
||||
|
||||
@@ -200,6 +200,18 @@ namespace PROJ_ETS.WebUserControls
|
||||
showVuoti = true;
|
||||
}
|
||||
filtroCli.eh_valSelezionato += filtroCli_eh_valSelezionato;
|
||||
filtroCli.eh_reset += filtroCli_eh_reset;
|
||||
}
|
||||
|
||||
void filtroCli_eh_reset(object sender, EventArgs e)
|
||||
{
|
||||
utils.obj.setSessionVal("idxCli_sel", 0);
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
if (eh_resetSelezione != null)
|
||||
{
|
||||
eh_resetSelezione(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// selezionato filtro cliente
|
||||
@@ -280,10 +292,14 @@ namespace PROJ_ETS.WebUserControls
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
idxProgetto = Convert.ToInt32(grView.SelectedDataKey["idxProgetto"]);
|
||||
#if false
|
||||
if (eh_selValore != null)
|
||||
{
|
||||
eh_selValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
mod_commesse1.idxProgetto = idxProgetto;
|
||||
showDetail(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// idxProgetto selezionato
|
||||
@@ -503,7 +519,59 @@ namespace PROJ_ETS.WebUserControls
|
||||
protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// salvo ricerca
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtCerca_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
utils.obj.setSessionVal("valoreCercato", txtCerca.Text.Trim());
|
||||
}
|
||||
/// <summary>
|
||||
/// mostra dettagli
|
||||
/// </summary>
|
||||
/// <param name="visibile"></param>
|
||||
public void showDetail(bool visibile)
|
||||
{
|
||||
mod_commesse1.Visible = visibile;
|
||||
btnSposta.Visible = visibile;
|
||||
}
|
||||
/// <summary>
|
||||
/// click x andare a spostamento commesse!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSposta_Click(object sender, EventArgs e)
|
||||
{
|
||||
salvaIdxCli();
|
||||
Response.Redirect("SpostaCommesse");
|
||||
}
|
||||
/// <summary>
|
||||
/// salva idxCliente selezionato
|
||||
/// </summary>
|
||||
private void salvaIdxCli()
|
||||
{
|
||||
// salvo idxCli...
|
||||
int idxCli = 0;
|
||||
string nomeCli = "";
|
||||
try
|
||||
{
|
||||
idxCli = DataProxy_ProjEts.DP.taAP.getByIdxPrj(idxProgetto)[0].idxCliente;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// cerco di recuperare nome cliente...
|
||||
try
|
||||
{
|
||||
nomeCli = DataProxy_ProjEts.DP.taSelCli.getByValue(idxCli)[0].label;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// salvo in sessione
|
||||
utils.obj.setSessionVal("idxCli_sel", idxCli);
|
||||
utils.obj.setSessionVal("nomeCli_sel", nomeCli);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -48,6 +48,24 @@ namespace PROJ_ETS.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::PROJ_ETS.WebUserControls.mod_periodoAnalisi mod_periodoAnalisi1;
|
||||
|
||||
/// <summary>
|
||||
/// lblCerca 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.Label lblCerca;
|
||||
|
||||
/// <summary>
|
||||
/// txtCerca 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.TextBox txtCerca;
|
||||
|
||||
/// <summary>
|
||||
/// grView control.
|
||||
/// </summary>
|
||||
@@ -83,5 +101,23 @@ namespace PROJ_ETS.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
||||
|
||||
/// <summary>
|
||||
/// mod_commesse1 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_commesse mod_commesse1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSposta 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.Button btnSposta;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user