completata navigazioen verso spostsamento fasi e commesse!
This commit is contained in:
Generated
+24
-1
@@ -1227,7 +1227,7 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters {
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_selClienti";
|
||||
@@ -1238,6 +1238,12 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters {
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ricerca", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_vsc_getByValue";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@value", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -1280,6 +1286,23 @@ namespace ETS_Data.DS_utilsProjEtsTableAdapters {
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_utilsProjEts.v_selClientiDataTable getByValue(global::System.Nullable<int> value) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((value.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(value.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_utilsProjEts.v_selClientiDataTable dataTable = new DS_utilsProjEts.v_selClientiDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -34,6 +34,17 @@
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="ETS_PROJConnectionString (Settings)" DbObjectName="[ETS-PROJ].dbo.stp_vsc_getByValue" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByValue" GetMethodModifier="Public" GetMethodName="getByValue" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByValue" UserSourceName="getByValue">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_vsc_getByValue</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@value" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selProgettiTableAdapter" GeneratorDataComponentClassName="v_selProgettiTableAdapter" Name="v_selProgetti" UserDataComponentName="v_selProgettiTableAdapter">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:v_selClienti" ZOrder="2" X="70" Y="70" Height="134" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selClienti" ZOrder="2" X="70" Y="70" Height="153" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selProgetti" ZOrder="1" X="430" Y="128" Height="191" Width="254" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Progetti.Master" AutoEventWireup="true" CodeBehind="Progetti.aspx.cs" Inherits="PROJ_ETS.Progetti" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_progetti.ascx" TagName="mod_progetti" TagPrefix="uc1" %>
|
||||
<%@ Register Src="WebUserControls/mod_commesse.ascx" TagName="mod_commesse" TagPrefix="uc2" %>
|
||||
|
||||
@@ -10,7 +11,7 @@
|
||||
</div>
|
||||
<div class="divSx">
|
||||
<div style="height: 46px"></div>
|
||||
<uc2:mod_commesse ID="mod_commesse1" runat="server" Visible="false" />
|
||||
<uc2:mod_commesse ID="mod_commesse1" runat="server" Visible="false" enableNewFromEmpty="true" />
|
||||
</div>
|
||||
<div class="clearDiv"></div>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<SortedDescendingHeaderStyle CssClass="sortDescHead" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Button ID="btnNewEmpty" runat="server" OnClick="btnNewEmpty_Click" Text="Nuova Commessa" CssClass="btnNew"
|
||||
ToolTip="Aggiungi una nuova commessa al progetto" Visible='<%# isWritable() %>' />
|
||||
ToolTip="Aggiungi una nuova commessa al progetto" Visible='<%# isWritable() && enableNewFromEmpty %>' Width ="200px"/>
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
|
||||
|
||||
@@ -461,6 +461,24 @@ namespace PROJ_ETS.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// possibilità creazioen nuovo
|
||||
/// </summary>
|
||||
public bool _enableNewFromEmpty { get; set; }
|
||||
/// <summary>
|
||||
/// determina se sia visibile creazione nuova commessa da selezione progetto empty
|
||||
/// </summary>
|
||||
public bool enableNewFromEmpty
|
||||
{
|
||||
get
|
||||
{
|
||||
return _enableNewFromEmpty;
|
||||
}
|
||||
set
|
||||
{
|
||||
_enableNewFromEmpty = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola se sia ancestore la fase
|
||||
/// </summary>
|
||||
/// <param name="idxFaseAncest"></param>
|
||||
|
||||
@@ -76,28 +76,24 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv labelInput" style="width:500px; white-space:normal;">
|
||||
<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>
|
||||
<div class="divSx">
|
||||
Cliente:<br />
|
||||
<asp:DropDownList runat="server" ID="dlidxCliente" SelectedValue='<%# Bind("idxCliente") %>' DataSourceID="odsClienti" DataTextField="label"
|
||||
DataValueField="value" />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<div class="fontNormale">
|
||||
Nome progetto<br />
|
||||
<asp:TextBox ID="txtnomeProj" runat="server" Text='<%# Bind("nomeProj") %>' Width="15em" />
|
||||
</div>
|
||||
</div>
|
||||
<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 labelInput" style="width:500px;">
|
||||
<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="4em" />
|
||||
<asp:TextBox ID="txtdescrProj" runat="server" Text='<%# Bind("descrProj") %>' Width="45em" TextMode="MultiLine" Height="6em" Font-Size="8pt" />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
Attivo:
|
||||
@@ -107,23 +103,20 @@
|
||||
</EditItemTemplate>
|
||||
|
||||
<FooterTemplate>
|
||||
<div>
|
||||
<div class="divSx">
|
||||
Cliente:<br />
|
||||
<asp:DropDownList runat="server" ID="dlidxCliente" SelectedValue='<%# Bind("idxCliente") %>' DataSourceID="odsClienti" DataTextField="label"
|
||||
DataValueField="value" />
|
||||
</div>
|
||||
<div class="divDx">
|
||||
<div class="fontNormale">
|
||||
Nome progetto<br />
|
||||
<asp:TextBox ID="txtnomeProj" runat="server" Text='<%# Bind("nomeProj") %>' Width="15em" />
|
||||
</div>
|
||||
</div>
|
||||
<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 labelInput" style="width:500px;">
|
||||
descrizione:<br />
|
||||
<asp:TextBox ID="txtdescrProj" runat="server" Text='<%# Bind("descrProj") %>' Width="45em" TextMode="MultiLine" Height="4em" />
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
@@ -309,14 +309,23 @@ namespace PROJ_ETS.WebUserControls
|
||||
case "dettFasi":
|
||||
// salvo idxCli...
|
||||
int idxCli = 0;
|
||||
string nomeCli = "";
|
||||
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);
|
||||
Response.Redirect("fasi.aspx");
|
||||
utils.obj.setSessionVal("nomeCli_sel", nomeCli);
|
||||
Response.Redirect("SpostaCommesse");
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
|
||||
@@ -2,53 +2,53 @@
|
||||
<%@ Register Src="mod_commesse.ascx" TagName="mod_commesse" TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_autocomplete.ascx" TagName="mod_autocomplete" TagPrefix="uc2" %>
|
||||
<div style="background-color: #cdcdcd; padding: 2px; height: 100%; min-height: 400px; display: block;">
|
||||
<div style="background-color: #EFEFEF;">
|
||||
<div class="divCenter" style="padding: .4em;">
|
||||
<asp:Button runat="server" ID="btnSposta" Text="→" CssClass="btnGrigio ui-corner-all shadowBox" Height="1.3em" Width="12em"
|
||||
Font-Size="24pt" Font-Bold="true" ToolTip="Sposta" OnClick="btnSposta_Click" />
|
||||
<asp:Label runat="server" Font-Size="36pt" Font-Bold="true" Text="→" />
|
||||
<asp:Button runat="server" ID="btnClona" Text="→" CssClass="btnGrigio ui-corner-all shadowBox" Height="1.3em" Width="12em"
|
||||
Font-Size="24pt" Font-Bold="true" ToolTip="Clona" OnClick="btnClona_Click" />
|
||||
</div>
|
||||
<div>
|
||||
<div class="divSx gradBlu ui-corner-all shadowBox" style="min-width: 400px; width: 48%; padding: 8px;">
|
||||
<h2>Origine</h2>
|
||||
<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="filtroCliFrom" runat="server" minCharAutocomplete="2" contextKey="c" labelRicerca="[C]liente" textEmWidht="15" showKey="false" ServicePath="/Services/WS_data.asmx/Clienti" />
|
||||
</div>
|
||||
<div class="divSx filtro_2 ui-corner-all" style="padding: 3px; margin-right: 4px; height: 32px;">
|
||||
<asp:Label runat="server" ID="lblProjFrom" Text="Progetto" AssociatedControlID="ddlProgettiFrom" Font-Size="0.8em" />
|
||||
<asp:DropDownList ID="ddlProgettiFrom" runat="server" DataSourceID="OdsProgettiFrom" DataTextField="label" DataValueField="value" Font-Size="7pt" />
|
||||
<asp:ObjectDataSource ID="OdsProgettiFrom" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="ETS_Data.DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxCliFrom" Name="conditio" Type="String" />
|
||||
<asp:Parameter DefaultValue="false" Name="soloAttivi" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<uc1:mod_commesse ID="fasiFrom" runat="server" enableShowRA="true" />
|
||||
<div style="background-color: #EFEFEF;">
|
||||
<div class="divCenter" style="padding: .4em;">
|
||||
<asp:Button runat="server" ID="btnSposta" Text="→" CssClass="btnGrigio ui-corner-all shadowBox" Height="1.3em" Width="12em"
|
||||
Font-Size="24pt" Font-Bold="true" ToolTip="Sposta" OnClick="btnSposta_Click" />
|
||||
<asp:Label runat="server" Font-Size="36pt" Font-Bold="true" Text="→" />
|
||||
<asp:Button runat="server" ID="btnClona" Text="→" CssClass="btnGrigio ui-corner-all shadowBox" Height="1.3em" Width="12em"
|
||||
Font-Size="24pt" Font-Bold="true" ToolTip="Clona" OnClick="btnClona_Click" />
|
||||
</div>
|
||||
<div class="divDx gradVerde ui-corner-all shadowBox" style="min-width: 400px; width: 48%; padding: 8px;">
|
||||
<h2>Destinazione</h2>
|
||||
<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="filtroCliTo" runat="server" minCharAutocomplete="2" contextKey="l" labelRicerca="C[l]iente" textEmWidht="15" showKey="false" ServicePath="/Services/WS_data.asmx/Clienti" />
|
||||
</div>
|
||||
<div class="divSx filtro_2 ui-corner-all" style="padding: 3px; margin-right: 4px; height: 32px;">
|
||||
<asp:Label runat="server" ID="lblProjTo" Text="Progetto" AssociatedControlID="ddlProgettiFrom" Font-Size="0.8em" />
|
||||
<asp:DropDownList ID="ddlProgettiTo" runat="server" DataSourceID="OdsProgettiTo" DataTextField="label" DataValueField="value" Font-Size="7pt" />
|
||||
<asp:ObjectDataSource ID="OdsProgettiTo" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="ETS_Data.DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxCliTo" Name="conditio" Type="String" />
|
||||
<asp:Parameter DefaultValue="false" Name="soloAttivi" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<div>
|
||||
<div class="divSx gradBlu ui-corner-all shadowBox" style="min-width: 400px; width: 48%; padding: 8px;">
|
||||
<h2>Origine</h2>
|
||||
<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="filtroCliFrom" runat="server" minCharAutocomplete="2" contextKey="c" labelRicerca="[C]liente" textEmWidht="15" showKey="false" ServicePath="/Services/WS_data.asmx/Clienti" />
|
||||
</div>
|
||||
<div class="divSx filtro_2 ui-corner-all" style="padding: 3px; margin-right: 4px; height: 32px;">
|
||||
<asp:Label runat="server" ID="lblProjFrom" Text="Progetto" AssociatedControlID="ddlProgettiFrom" Font-Size="0.8em" />
|
||||
<asp:DropDownList ID="ddlProgettiFrom" runat="server" DataSourceID="OdsProgettiFrom" DataTextField="label" DataValueField="value" Font-Size="7pt" AutoPostBack="True" OnSelectedIndexChanged="ddlProgettiFrom_SelectedIndexChanged" />
|
||||
<asp:ObjectDataSource ID="OdsProgettiFrom" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="ETS_Data.DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxCliFrom" Name="conditio" Type="String" />
|
||||
<asp:Parameter DefaultValue="false" Name="soloAttivi" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<uc1:mod_commesse ID="fasiFrom" runat="server" enableShowRA="true" enableNewFromEmpty="false" />
|
||||
</div>
|
||||
<div class="divDx gradVerde ui-corner-all shadowBox" style="min-width: 400px; width: 48%; padding: 8px;">
|
||||
<h2>Destinazione</h2>
|
||||
<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="filtroCliTo" runat="server" minCharAutocomplete="2" contextKey="l" labelRicerca="C[l]iente" textEmWidht="15" showKey="false" ServicePath="/Services/WS_data.asmx/Clienti" />
|
||||
</div>
|
||||
<div class="divSx filtro_2 ui-corner-all" style="padding: 3px; margin-right: 4px; height: 32px;">
|
||||
<asp:Label runat="server" ID="lblProjTo" Text="Progetto" AssociatedControlID="ddlProgettiFrom" Font-Size="0.8em" />
|
||||
<asp:DropDownList ID="ddlProgettiTo" runat="server" DataSourceID="OdsProgettiTo" DataTextField="label" DataValueField="value" Font-Size="7pt" AutoPostBack="True" OnSelectedIndexChanged="ddlProgettiTo_SelectedIndexChanged" />
|
||||
<asp:ObjectDataSource ID="OdsProgettiTo" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="ETS_Data.DS_utilsProjEtsTableAdapters.v_selProgettiTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter SessionField="idxCliTo" Name="conditio" Type="String" />
|
||||
<asp:Parameter DefaultValue="false" Name="soloAttivi" Type="Boolean" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<uc1:mod_commesse ID="fasiTo" runat="server" enableShowRA="false" enableNewFromEmpty="false" />
|
||||
</div>
|
||||
<uc1:mod_commesse ID="fasiTo" runat="server" enableShowRA="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,10 +19,52 @@ namespace PROJ_ETS.WebUserControls
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
fasiFrom.idxProgetto = -1;
|
||||
fasiTo.idxProgetto = -1;
|
||||
utils.obj.setSessionVal("idxCliFrom", -1);
|
||||
utils.obj.setSessionVal("idxCliTo", -1);
|
||||
//fasiFrom.idxProgetto = -1;
|
||||
//fasiTo.idxProgetto = -1;
|
||||
//utils.obj.setSessionVal("idxCliFrom", -1);
|
||||
//utils.obj.setSessionVal("idxCliTo", -1);
|
||||
// se ho in sessione valori li seleziono!
|
||||
if (utils.obj.isInSessionObject("idxCli_sel"))
|
||||
{
|
||||
filtroCliFrom.valore = utils.obj.StringSessionObj("idxCli_sel");
|
||||
filtroCliTo.valore = utils.obj.StringSessionObj("idxCli_sel");
|
||||
utils.obj.setSessionVal("idxCliFrom", utils.obj.StringSessionObj("idxCli_sel"));
|
||||
utils.obj.setSessionVal("idxCliTo", utils.obj.StringSessionObj("idxCli_sel"));
|
||||
OdsProgettiFrom.DataBind();
|
||||
ddlProgettiFrom.DataBind();
|
||||
OdsProgettiTo.DataBind();
|
||||
ddlProgettiTo.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
filtroCliFrom.valore = "-1";
|
||||
filtroCliTo.valore = "-1";
|
||||
utils.obj.setSessionVal("idxCliFrom", -1);
|
||||
utils.obj.setSessionVal("idxCliTo", -1);
|
||||
}
|
||||
if (utils.obj.isInSessionObject("nomeCli_sel"))
|
||||
{
|
||||
filtroCliFrom.selezione = utils.obj.StringSessionObj("nomeCli_sel");
|
||||
filtroCliTo.selezione = utils.obj.StringSessionObj("nomeCli_sel");
|
||||
}
|
||||
else
|
||||
{
|
||||
filtroCliFrom.selezione = "";
|
||||
filtroCliTo.selezione = "";
|
||||
}
|
||||
// se ho in sessione valori li seleziono!
|
||||
if (utils.obj.isInSessionObject("idxProgetto_sel"))
|
||||
{
|
||||
ddlProgettiFrom.SelectedValue = utils.obj.StringSessionObj("idxProgetto_sel");
|
||||
ddlProgettiTo.SelectedValue = utils.obj.StringSessionObj("idxProgetto_sel");
|
||||
fasiFrom.idxProgetto = utils.obj.IntSessionObj("idxProgetto_sel");
|
||||
fasiTo.idxProgetto = utils.obj.IntSessionObj("idxProgetto_sel");
|
||||
}
|
||||
else
|
||||
{
|
||||
fasiFrom.idxProgetto = -1;
|
||||
fasiTo.idxProgetto = -1;
|
||||
}
|
||||
}
|
||||
filtroCliFrom.eh_valSelezionato += filtroCliFrom_eh_valSelezionato;
|
||||
filtroCliTo.eh_valSelezionato += filtroCliTo_eh_valSelezionato;
|
||||
@@ -69,6 +111,26 @@ namespace PROJ_ETS.WebUserControls
|
||||
{ }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// update sel progetto from
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlProgettiFrom_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// imposto progetto selezionato!
|
||||
fasiFrom.idxProgetto = Convert.ToInt32(ddlProgettiFrom.SelectedValue);
|
||||
}
|
||||
/// <summary>
|
||||
/// update sel progetto to
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlProgettiTo_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// imposto progetto selezionato!
|
||||
fasiTo.idxProgetto = Convert.ToInt32(ddlProgettiTo.SelectedValue);
|
||||
}
|
||||
void fasiTo_eh_resetSelezione(object sender, EventArgs e)
|
||||
{
|
||||
fixBtnFunc();
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user