completata fase gestione ricerche filtrate x
- commessa - fasi - fonti - oggetto su valori presenti nella tab documenti
This commit is contained in:
Binary file not shown.
@@ -20,6 +20,7 @@ namespace ETS_WS.WS
|
||||
[System.Web.Script.Services.ScriptService]
|
||||
public class AutoCompletamento : System.Web.Services.WebService
|
||||
{
|
||||
#region ricerca dati COMPLETA (tutti)
|
||||
|
||||
[System.Web.Services.WebMethod]
|
||||
public string[] elencoFonti(string prefixText, int count)
|
||||
@@ -30,7 +31,7 @@ namespace ETS_WS.WS
|
||||
if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete")))
|
||||
{
|
||||
// elenco candidati
|
||||
DS_utils.v_selFontiDataTable tabella = utils.obj.taSelFonti.getByLikeSearch(prefixText);
|
||||
DS_utils.v_selFontiDataTable tabella = utils.obj.taSelFonti.getByLikeSearch(prefixText);
|
||||
// aggiungo ogni riga...
|
||||
foreach (DS_utils.v_selFontiRow riga in tabella)
|
||||
{
|
||||
@@ -79,6 +80,88 @@ namespace ETS_WS.WS
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ricerca dati FILTRATA (solo x dati presenti in taDocumenti)
|
||||
|
||||
[System.Web.Services.WebMethod]
|
||||
public string[] elencoFontiByDoc(string prefixText, int count)
|
||||
{
|
||||
// inizializzo risposta
|
||||
List<string> suggerimenti = new List<string>();
|
||||
// proseguo SOLO SE min "MinCharAutocomplete" char...
|
||||
if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete")))
|
||||
{
|
||||
// elenco candidati
|
||||
DS_utils.v_tbDocs_selFontiDataTable tabella = utils.obj.taTDSelFonti.getByLikeSearch(prefixText);
|
||||
// aggiungo ogni riga...
|
||||
foreach (DS_utils.v_tbDocs_selFontiRow riga in tabella)
|
||||
{
|
||||
//suggerimenti.Add(riga.label);
|
||||
suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value));
|
||||
}
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
[System.Web.Services.WebMethod]
|
||||
public string[] elencoCommesseByDoc(string prefixText, int count)
|
||||
{
|
||||
// inizializzo risposta
|
||||
List<string> suggerimenti = new List<string>();
|
||||
// proseguo SOLO SE min "MinCharAutocomplete" char...
|
||||
if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete")))
|
||||
{
|
||||
// elenco candidati
|
||||
DS_utils.v_tbDocs_selCommesseDataTable tabella = utils.obj.taTDSelCommesse.getByLikeSearch(prefixText);
|
||||
// aggiungo ogni riga...
|
||||
foreach (DS_utils.v_tbDocs_selCommesseRow riga in tabella)
|
||||
{
|
||||
//suggerimenti.Add(riga.label);
|
||||
suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value.ToString()));
|
||||
}
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
[System.Web.Services.WebMethod]
|
||||
public string[] elencoFasiByDoc(string prefixText, int count)
|
||||
{
|
||||
// inizializzo risposta
|
||||
List<string> suggerimenti = new List<string>();
|
||||
// proseguo SOLO SE min "MinCharAutocomplete" char...
|
||||
if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete")))
|
||||
{
|
||||
// elenco candidati
|
||||
DS_utils.v_tbDocs_selFasiDataTable tabella = utils.obj.taTDSelFasi.getByLikeSearch(prefixText);
|
||||
// aggiungo ogni riga...
|
||||
foreach (DS_utils.v_tbDocs_selFasiRow riga in tabella)
|
||||
{
|
||||
//suggerimenti.Add(riga.label);
|
||||
suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value.ToString()));
|
||||
}
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
[System.Web.Services.WebMethod]
|
||||
public string[] elencoOggettiByDoc(string prefixText, int count)
|
||||
{
|
||||
// inizializzo risposta
|
||||
List<string> suggerimenti = new List<string>();
|
||||
// proseguo SOLO SE min "MinCharAutocomplete" char...
|
||||
if (count >= Convert.ToInt32(ConfigurationManager.AppSettings.Get("MinCharAutocomplete")))
|
||||
{
|
||||
// elenco candidati
|
||||
DS_utils.v_tbDocs_selOggettoDataTable tabella = utils.obj.taTDSelOggetti.getByLikeSearch(prefixText);
|
||||
// aggiungo ogni riga...
|
||||
foreach (DS_utils.v_tbDocs_selOggettoRow riga in tabella)
|
||||
{
|
||||
//suggerimenti.Add(riga.label);
|
||||
suggerimenti.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(riga.label, riga.value.ToString()));
|
||||
}
|
||||
}
|
||||
return suggerimenti.ToArray();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
[System.Web.Services.WebMethod]
|
||||
[System.Web.Script.Services.ScriptMethod]
|
||||
|
||||
@@ -21,35 +21,40 @@
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblCerca" Text="Ricerca Libera" CssClass="labelInput" /><br />
|
||||
<asp:TextBox runat="server" ID="txtSearchAll" OnTextChanged="txtSearchAll_TextChanged"
|
||||
AutoPostBack="True" />
|
||||
AutoPostBack="True" Width="15em" />
|
||||
</div>
|
||||
<%--<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblCommessa" Text="Commessa (autocomplete)" CssClass="labelInput" /><br />
|
||||
<div class="clearDiv">
|
||||
<asp:CheckBox runat="server" ID="chkCommessa" Text="Filtra per Commessa" CssClass="labelInput"
|
||||
AutoPostBack="true" OnCheckedChanged="chkCommessa_CheckedChanged" /><br />
|
||||
<uc1:mod_textAutocomplete ID="tacCommesse" runat="server" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoCommesse" minCharAutocomplete="2" showKey="false" toolTip="Digitare per iniziare ricerca, min 2 char" />
|
||||
ServiceMethod="elencoCommesseByDoc" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char"
|
||||
textEmWidht="15" Visible="false" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblFase" Text="Fase (autocomplete)" CssClass="labelInput" /><br />
|
||||
<asp:CheckBox runat="server" ID="chkFase" Text="Filtra per Fase" CssClass="labelInput"
|
||||
AutoPostBack="true" OnCheckedChanged="chkFase_CheckedChanged" /><br />
|
||||
<uc1:mod_textAutocomplete ID="tacFasi" runat="server" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoFasi" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" />
|
||||
ServiceMethod="elencoFasiByDoc" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char"
|
||||
textEmWidht="15" Visible="false" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblFonte" Text="Fonte (autocomplete)" CssClass="labelInput"
|
||||
TabIndex="0" />
|
||||
<asp:CheckBox runat="server" ID="chkFonte" Text="Filtra per Fonte" CssClass="labelInput"
|
||||
AutoPostBack="true" OnCheckedChanged="chkFonte_CheckedChanged" />
|
||||
<br />
|
||||
<uc1:mod_textAutocomplete ID="tacFonti" runat="server" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoFonti" minCharAutocomplete="3" showKey="false" toolTip="Digitare per iniziare ricerca, min 3 char" />
|
||||
ServiceMethod="elencoFontiByDoc" minCharAutocomplete="2" showKey="false" toolTip="Digitare per iniziare ricerca, min 2 char"
|
||||
textEmWidht="15" Visible="false" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblOggetto" Text="Oggetto" CssClass="labelInput" /><br />
|
||||
<asp:TextBox runat="server" ID="txtOggetto" Width="20em" ToolTip="Campo libero" OnTextChanged="txtOggetto_TextChanged" />
|
||||
<div class="clearDiv">
|
||||
<asp:CheckBox runat="server" ID="chkOggetto" Text="Filtra per Oggetto" CssClass="labelInput"
|
||||
AutoPostBack="true" OnCheckedChanged="chkOggetto_CheckedChanged" />
|
||||
<br />
|
||||
<uc1:mod_textAutocomplete ID="tacOggetto" runat="server" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoOggettiByDoc" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char"
|
||||
textEmWidht="15" Visible="false" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblFullPath" CssClass="labelInput" />
|
||||
</div>--%>
|
||||
<div class="clearDiv">
|
||||
<asp:Button ID="btnUpdate" runat="server" Text="Aggiorna" CssClass="submit" TabIndex="1"
|
||||
OnClick="btnUpdate_Click" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -25,16 +25,74 @@ namespace ETS_WS.WebUserControls
|
||||
{
|
||||
updateVisual();
|
||||
}
|
||||
//tacCommesse.eh_valSelezionato += new EventHandler(tacCommesse_eh_valSelezionato);
|
||||
tacCommesse.eh_valSelezionato += new EventHandler(tacCommesse_eh_valSelezionato);
|
||||
tacFasi.eh_valSelezionato += new EventHandler(tacFasi_eh_valSelezionato);
|
||||
tacFonti.eh_valSelezionato += new EventHandler(tacFonti_eh_valSelezionato);
|
||||
tacOggetto.eh_valSelezionato += new EventHandler(tacOggetto_eh_valSelezionato);
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto valori secondari
|
||||
/// salvo ricerca oggetto
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void tacOggetto_eh_valSelezionato(object sender, EventArgs e)
|
||||
{
|
||||
if (tacOggetto.valore != "")
|
||||
{
|
||||
utils.obj.setSessionVal("srcOggetto", tacOggetto.valore);
|
||||
}
|
||||
else
|
||||
{
|
||||
utils.obj.emptySessionVal("srcOggetto");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo ricerca fonte
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void tacFonti_eh_valSelezionato(object sender, EventArgs e)
|
||||
{
|
||||
if (tacFonti.valore != "")
|
||||
{
|
||||
utils.obj.setSessionVal("srcFonte", tacFonti.valore);
|
||||
}
|
||||
else
|
||||
{
|
||||
utils.obj.emptySessionVal("srcFonte");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo ricerca fase
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void tacFasi_eh_valSelezionato(object sender, EventArgs e)
|
||||
{
|
||||
if (tacFasi.valore != "")
|
||||
{
|
||||
utils.obj.setSessionVal("srcFase", tacFasi.valore);
|
||||
}
|
||||
else
|
||||
{
|
||||
utils.obj.emptySessionVal("srcFase");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo ricerca commessa
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void tacCommesse_eh_valSelezionato(object sender, EventArgs e)
|
||||
{
|
||||
updateVisual();
|
||||
if (tacCommesse.valore != "")
|
||||
{
|
||||
utils.obj.setSessionVal("srcCommessa", tacCommesse.valore);
|
||||
}
|
||||
else
|
||||
{
|
||||
utils.obj.emptySessionVal("srcCommessa");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna tutti i valori visualizzati
|
||||
@@ -112,5 +170,85 @@ namespace ETS_WS.WebUserControls
|
||||
// salvo valore selezionato
|
||||
utils.obj.setSessionVal("srcSearchAll", txtSearchAll.Text.Trim());
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto visibilità campo ricerca da selezione check
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkCommessa_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkCommessa.Checked)
|
||||
{
|
||||
chkCommessa.Text = "Elimina filtro Commesse (autocomplete)";
|
||||
utils.obj.setSessionVal("srcCommessa", tacCommesse.valore);
|
||||
tacCommesse.setFocus();
|
||||
}
|
||||
else
|
||||
{
|
||||
chkCommessa.Text = "Filtra per Commessa";
|
||||
utils.obj.emptySessionVal("srcCommessa");
|
||||
}
|
||||
tacCommesse.Visible = chkCommessa.Checked;
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto visibilità campo ricerca da selezione check
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkFase_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkFase.Checked)
|
||||
{
|
||||
chkFase.Text = "Elimina filtro Fasi (autocomplete)";
|
||||
utils.obj.setSessionVal("srcFase", tacFasi.valore);
|
||||
tacFasi.setFocus();
|
||||
}
|
||||
else
|
||||
{
|
||||
chkFase.Text = "Filtra per Fase";
|
||||
utils.obj.emptySessionVal("srcFase");
|
||||
}
|
||||
tacFasi.Visible = chkFase.Checked;
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto visibilità campo ricerca da selezione check
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkFonte_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkFonte.Checked)
|
||||
{
|
||||
chkFonte.Text = "Elimina filtro Fonte (autocomplete)";
|
||||
utils.obj.setSessionVal("srcFonte", tacFonti.valore);
|
||||
tacFonti.setFocus();
|
||||
}
|
||||
else
|
||||
{
|
||||
chkFonte.Text = "Filtra per Fonte";
|
||||
utils.obj.emptySessionVal("srcFonte");
|
||||
}
|
||||
tacFonti.Visible = chkFonte.Checked;
|
||||
}
|
||||
/// <summary>
|
||||
/// imposto visibilità campo ricerca da selezione check
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkOggetto_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (chkOggetto.Checked)
|
||||
{
|
||||
chkOggetto.Text = "Elimina filtro Oggetto (autocomplete)";
|
||||
utils.obj.setSessionVal("srcOggetto", tacOggetto.valore);
|
||||
tacOggetto.setFocus();
|
||||
}
|
||||
else
|
||||
{
|
||||
chkOggetto.Text = "Filtra per Oggetto";
|
||||
utils.obj.emptySessionVal("srcOggetto");
|
||||
}
|
||||
tacOggetto.Visible = chkOggetto.Checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,12 +31,84 @@ namespace ETS_WS.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.TextBox txtSearchAll;
|
||||
|
||||
/// <summary>
|
||||
/// btnUpdate control.
|
||||
/// chkCommessa 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 btnUpdate;
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkCommessa;
|
||||
|
||||
/// <summary>
|
||||
/// tacCommesse control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacCommesse;
|
||||
|
||||
/// <summary>
|
||||
/// chkFase 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.CheckBox chkFase;
|
||||
|
||||
/// <summary>
|
||||
/// tacFasi control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacFasi;
|
||||
|
||||
/// <summary>
|
||||
/// chkFonte 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.CheckBox chkFonte;
|
||||
|
||||
/// <summary>
|
||||
/// tacFonti control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacFonti;
|
||||
|
||||
/// <summary>
|
||||
/// chkOggetto 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.CheckBox chkOggetto;
|
||||
|
||||
/// <summary>
|
||||
/// tacOggetto control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::ETS_WS.WebUserControls.mod_textAutocomplete tacOggetto;
|
||||
|
||||
/// <summary>
|
||||
/// lblFullPath 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 lblFullPath;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,30 +31,30 @@
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblCommessa" Text="Commessa (autocomplete)" CssClass="labelInput" /><br />
|
||||
<uc1:mod_textAutocomplete ID="tacCommesse" runat="server" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoCommesse" minCharAutocomplete="2" showKey="false" toolTip="Digitare per iniziare ricerca, min 2 char" />
|
||||
ServiceMethod="elencoCommesse" minCharAutocomplete="2" showKey="false" toolTip="Digitare per iniziare ricerca, min 2 char" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblFase" Text="Fase (autocomplete)" CssClass="labelInput" /><br />
|
||||
<uc1:mod_textAutocomplete ID="tacFasi" runat="server" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoFasi" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" />
|
||||
ServiceMethod="elencoFasi" minCharAutocomplete="1" showKey="false" toolTip="Digitare per iniziare ricerca, min 1 char" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblFonte" Text="Fonte (autocomplete)" CssClass="labelInput" TabIndex="0" />
|
||||
<asp:Label runat="server" ID="lblFonte" Text="Fonte (autocomplete)" CssClass="labelInput"
|
||||
TabIndex="0" />
|
||||
<br />
|
||||
<uc1:mod_textAutocomplete ID="tacFonti" runat="server" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoFonti" minCharAutocomplete="3" showKey="false" toolTip="Digitare per iniziare ricerca, min 3 char" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblOggetto" Text="Oggetto" CssClass="labelInput" /><br />
|
||||
<asp:TextBox runat="server" ID="txtOggetto" Width="20em" toolTip="Campo libero"
|
||||
ontextchanged="txtOggetto_TextChanged" />
|
||||
<asp:TextBox runat="server" ID="txtOggetto" Width="20em" ToolTip="Campo libero" OnTextChanged="txtOggetto_TextChanged" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Label runat="server" ID="lblFullPath" CssClass="labelInput" />
|
||||
</div>
|
||||
<div class="clearDiv">
|
||||
<asp:Button ID="btnUpdate" runat="server" Text="Aggiorna" CssClass="submit"
|
||||
TabIndex="1" onclick="btnUpdate_Click" />
|
||||
<asp:Button ID="btnUpdate" runat="server" Text="Aggiorna" CssClass="submit" TabIndex="1"
|
||||
OnClick="btnUpdate_Click" />
|
||||
|
||||
<asp:Button ID="btnSubmit" runat="server" Text="Archivia" CssClass="submit" OnClick="btnSubmit_Click" />
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:TextBox runat="server" ID="hiddenFieldID" AutoPostBack="true" OnTextChanged="hiddenFieldID_TextChanged"
|
||||
Visible="true" ViewStateMode="Enabled" Width="3em" Font-Size="6pt" BackColor="Transparent" BorderStyle="None" />
|
||||
<asp:TextBox runat="server" ID="txtValue" Width="20em" />
|
||||
<asp:TextBox runat="server" ID="txtValue" Width="20em" AutoPostBack="true"
|
||||
ontextchanged="txtValue_TextChanged" />
|
||||
<asp:AutoCompleteExtender ID="txtValueAce" runat="server" TargetControlID="txtValue"
|
||||
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoFonti" CompletionInterval="50"
|
||||
MinimumPrefixLength="1" CompletionListCssClass="CompletionListCssClass" CompletionListItemCssClass="autocomplete"
|
||||
|
||||
@@ -166,5 +166,39 @@ namespace ETS_WS.WebUserControls
|
||||
eh_valSelezionato(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// in caso di modifica del solo valore text... a vuoto tipicamente...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtValue_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (txtValue.Text.Trim() == "")
|
||||
{
|
||||
hiddenFieldID.Text = "";
|
||||
_valore = "";
|
||||
if (eh_valSelezionato != null)
|
||||
{
|
||||
eh_valSelezionato(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// larghezza textbox in unità EM
|
||||
/// </summary>
|
||||
public int textEmWidht
|
||||
{
|
||||
set
|
||||
{
|
||||
txtValue.Width = Unit.Parse(string.Format("{0}em", value));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il focus sulal textBox
|
||||
/// </summary>
|
||||
public void setFocus()
|
||||
{
|
||||
txtValue.Focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Generated
+595
-1
@@ -36,6 +36,8 @@ namespace ETS_Data {
|
||||
|
||||
private v_tbDocs_selFontiDataTable tablev_tbDocs_selFonti;
|
||||
|
||||
private v_tbDocs_selOggettoDataTable tablev_tbDocs_selOggetto;
|
||||
|
||||
private filesDataTable tablefiles;
|
||||
|
||||
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
@@ -84,6 +86,9 @@ namespace ETS_Data {
|
||||
if ((ds.Tables["v_tbDocs_selFonti"] != null)) {
|
||||
base.Tables.Add(new v_tbDocs_selFontiDataTable(ds.Tables["v_tbDocs_selFonti"]));
|
||||
}
|
||||
if ((ds.Tables["v_tbDocs_selOggetto"] != null)) {
|
||||
base.Tables.Add(new v_tbDocs_selOggettoDataTable(ds.Tables["v_tbDocs_selOggetto"]));
|
||||
}
|
||||
if ((ds.Tables["files"] != null)) {
|
||||
base.Tables.Add(new filesDataTable(ds.Tables["files"]));
|
||||
}
|
||||
@@ -165,6 +170,16 @@ namespace ETS_Data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
||||
public v_tbDocs_selOggettoDataTable v_tbDocs_selOggetto {
|
||||
get {
|
||||
return this.tablev_tbDocs_selOggetto;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -260,6 +275,9 @@ namespace ETS_Data {
|
||||
if ((ds.Tables["v_tbDocs_selFonti"] != null)) {
|
||||
base.Tables.Add(new v_tbDocs_selFontiDataTable(ds.Tables["v_tbDocs_selFonti"]));
|
||||
}
|
||||
if ((ds.Tables["v_tbDocs_selOggetto"] != null)) {
|
||||
base.Tables.Add(new v_tbDocs_selOggettoDataTable(ds.Tables["v_tbDocs_selOggetto"]));
|
||||
}
|
||||
if ((ds.Tables["files"] != null)) {
|
||||
base.Tables.Add(new filesDataTable(ds.Tables["files"]));
|
||||
}
|
||||
@@ -332,6 +350,12 @@ namespace ETS_Data {
|
||||
this.tablev_tbDocs_selFonti.InitVars();
|
||||
}
|
||||
}
|
||||
this.tablev_tbDocs_selOggetto = ((v_tbDocs_selOggettoDataTable)(base.Tables["v_tbDocs_selOggetto"]));
|
||||
if ((initTable == true)) {
|
||||
if ((this.tablev_tbDocs_selOggetto != null)) {
|
||||
this.tablev_tbDocs_selOggetto.InitVars();
|
||||
}
|
||||
}
|
||||
this.tablefiles = ((filesDataTable)(base.Tables["files"]));
|
||||
if ((initTable == true)) {
|
||||
if ((this.tablefiles != null)) {
|
||||
@@ -360,6 +384,8 @@ namespace ETS_Data {
|
||||
base.Tables.Add(this.tablev_tbDocs_selFasi);
|
||||
this.tablev_tbDocs_selFonti = new v_tbDocs_selFontiDataTable();
|
||||
base.Tables.Add(this.tablev_tbDocs_selFonti);
|
||||
this.tablev_tbDocs_selOggetto = new v_tbDocs_selOggettoDataTable();
|
||||
base.Tables.Add(this.tablev_tbDocs_selOggetto);
|
||||
this.tablefiles = new filesDataTable();
|
||||
base.Tables.Add(this.tablefiles);
|
||||
}
|
||||
@@ -400,6 +426,12 @@ namespace ETS_Data {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private bool ShouldSerializev_tbDocs_selOggetto() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private bool ShouldSerializefiles() {
|
||||
@@ -479,6 +511,9 @@ namespace ETS_Data {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public delegate void v_tbDocs_selFontiRowChangeEventHandler(object sender, v_tbDocs_selFontiRowChangeEvent e);
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public delegate void v_tbDocs_selOggettoRowChangeEventHandler(object sender, v_tbDocs_selOggettoRowChangeEvent e);
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public delegate void filesRowChangeEventHandler(object sender, filesRowChangeEvent e);
|
||||
|
||||
@@ -2092,6 +2127,269 @@ namespace ETS_Data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
[global::System.Serializable()]
|
||||
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
||||
public partial class v_tbDocs_selOggettoDataTable : global::System.Data.TypedTableBase<v_tbDocs_selOggettoRow> {
|
||||
|
||||
private global::System.Data.DataColumn columnvalue;
|
||||
|
||||
private global::System.Data.DataColumn columnlabel;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_tbDocs_selOggettoDataTable() {
|
||||
this.TableName = "v_tbDocs_selOggetto";
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal v_tbDocs_selOggettoDataTable(global::System.Data.DataTable table) {
|
||||
this.TableName = table.TableName;
|
||||
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
||||
this.CaseSensitive = table.CaseSensitive;
|
||||
}
|
||||
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
||||
this.Locale = table.Locale;
|
||||
}
|
||||
if ((table.Namespace != table.DataSet.Namespace)) {
|
||||
this.Namespace = table.Namespace;
|
||||
}
|
||||
this.Prefix = table.Prefix;
|
||||
this.MinimumCapacity = table.MinimumCapacity;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected v_tbDocs_selOggettoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context) {
|
||||
this.InitVars();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn valueColumn {
|
||||
get {
|
||||
return this.columnvalue;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn labelColumn {
|
||||
get {
|
||||
return this.columnlabel;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
public int Count {
|
||||
get {
|
||||
return this.Rows.Count;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_tbDocs_selOggettoRow this[int index] {
|
||||
get {
|
||||
return ((v_tbDocs_selOggettoRow)(this.Rows[index]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowChanging;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowChanged;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowDeleting;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_tbDocs_selOggettoRowChangeEventHandler v_tbDocs_selOggettoRowDeleted;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void Addv_tbDocs_selOggettoRow(v_tbDocs_selOggettoRow row) {
|
||||
this.Rows.Add(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_tbDocs_selOggettoRow Addv_tbDocs_selOggettoRow(string value, string label) {
|
||||
v_tbDocs_selOggettoRow rowv_tbDocs_selOggettoRow = ((v_tbDocs_selOggettoRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
value,
|
||||
label};
|
||||
rowv_tbDocs_selOggettoRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowv_tbDocs_selOggettoRow);
|
||||
return rowv_tbDocs_selOggettoRow;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public override global::System.Data.DataTable Clone() {
|
||||
v_tbDocs_selOggettoDataTable cln = ((v_tbDocs_selOggettoDataTable)(base.Clone()));
|
||||
cln.InitVars();
|
||||
return cln;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override global::System.Data.DataTable CreateInstance() {
|
||||
return new v_tbDocs_selOggettoDataTable();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.columnvalue = base.Columns["value"];
|
||||
this.columnlabel = base.Columns["label"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitClass() {
|
||||
this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnvalue);
|
||||
this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnlabel);
|
||||
this.columnvalue.MaxLength = 250;
|
||||
this.columnlabel.MaxLength = 250;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_tbDocs_selOggettoRow Newv_tbDocs_selOggettoRow() {
|
||||
return ((v_tbDocs_selOggettoRow)(this.NewRow()));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
||||
return new v_tbDocs_selOggettoRow(builder);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override global::System.Type GetRowType() {
|
||||
return typeof(v_tbDocs_selOggettoRow);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanged(e);
|
||||
if ((this.v_tbDocs_selOggettoRowChanged != null)) {
|
||||
this.v_tbDocs_selOggettoRowChanged(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanging(e);
|
||||
if ((this.v_tbDocs_selOggettoRowChanging != null)) {
|
||||
this.v_tbDocs_selOggettoRowChanging(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleted(e);
|
||||
if ((this.v_tbDocs_selOggettoRowDeleted != null)) {
|
||||
this.v_tbDocs_selOggettoRowDeleted(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleting(e);
|
||||
if ((this.v_tbDocs_selOggettoRowDeleting != null)) {
|
||||
this.v_tbDocs_selOggettoRowDeleting(this, new v_tbDocs_selOggettoRowChangeEvent(((v_tbDocs_selOggettoRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void Removev_tbDocs_selOggettoRow(v_tbDocs_selOggettoRow row) {
|
||||
this.Rows.Remove(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
||||
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
||||
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
||||
DS_utils ds = new DS_utils();
|
||||
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
||||
any1.MinOccurs = new decimal(0);
|
||||
any1.MaxOccurs = decimal.MaxValue;
|
||||
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any1);
|
||||
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
||||
any2.MinOccurs = new decimal(1);
|
||||
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any2);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute1.Name = "namespace";
|
||||
attribute1.FixedValue = ds.Namespace;
|
||||
type.Attributes.Add(attribute1);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute2.Name = "tableTypeName";
|
||||
attribute2.FixedValue = "v_tbDocs_selOggettoDataTable";
|
||||
type.Attributes.Add(attribute2);
|
||||
type.Particle = sequence;
|
||||
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
||||
if (xs.Contains(dsSchema.TargetNamespace)) {
|
||||
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
||||
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
||||
try {
|
||||
global::System.Xml.Schema.XmlSchema schema = null;
|
||||
dsSchema.Write(s1);
|
||||
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
||||
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
||||
s2.SetLength(0);
|
||||
schema.Write(s2);
|
||||
if ((s1.Length == s2.Length)) {
|
||||
s1.Position = 0;
|
||||
s2.Position = 0;
|
||||
for (; ((s1.Position != s1.Length)
|
||||
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
||||
;
|
||||
}
|
||||
if ((s1.Position == s1.Length)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if ((s1 != null)) {
|
||||
s1.Close();
|
||||
}
|
||||
if ((s2 != null)) {
|
||||
s2.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
xs.Add(dsSchema);
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
@@ -2739,6 +3037,77 @@ namespace ETS_Data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
public partial class v_tbDocs_selOggettoRow : global::System.Data.DataRow {
|
||||
|
||||
private v_tbDocs_selOggettoDataTable tablev_tbDocs_selOggetto;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal v_tbDocs_selOggettoRow(global::System.Data.DataRowBuilder rb) :
|
||||
base(rb) {
|
||||
this.tablev_tbDocs_selOggetto = ((v_tbDocs_selOggettoDataTable)(this.Table));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public string value {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tablev_tbDocs_selOggetto.valueColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_tbDocs_selOggetto\' is DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tablev_tbDocs_selOggetto.valueColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public string label {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tablev_tbDocs_selOggetto.labelColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_tbDocs_selOggetto\' is DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tablev_tbDocs_selOggetto.labelColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IsvalueNull() {
|
||||
return this.IsNull(this.tablev_tbDocs_selOggetto.valueColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void SetvalueNull() {
|
||||
this[this.tablev_tbDocs_selOggetto.valueColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IslabelNull() {
|
||||
return this.IsNull(this.tablev_tbDocs_selOggetto.labelColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void SetlabelNull() {
|
||||
this[this.tablev_tbDocs_selOggetto.labelColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
@@ -3070,6 +3439,40 @@ namespace ETS_Data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public class v_tbDocs_selOggettoRowChangeEvent : global::System.EventArgs {
|
||||
|
||||
private v_tbDocs_selOggettoRow eventRow;
|
||||
|
||||
private global::System.Data.DataRowAction eventAction;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_tbDocs_selOggettoRowChangeEvent(v_tbDocs_selOggettoRow row, global::System.Data.DataRowAction action) {
|
||||
this.eventRow = row;
|
||||
this.eventAction = action;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_tbDocs_selOggettoRow Row {
|
||||
get {
|
||||
return this.eventRow;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataRowAction Action {
|
||||
get {
|
||||
return this.eventAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
@@ -4015,7 +4418,7 @@ namespace ETS_Data.DS_utilsTableAdapters {
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "dbo.stp_Fasi_likeSearch";
|
||||
this._commandCollection[1].CommandText = "dbo.stp_tbDocs_Fasi_likeSearch";
|
||||
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("@search", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
@@ -4254,6 +4657,197 @@ namespace ETS_Data.DS_utilsTableAdapters {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the connection and commands used to retrieve and save data.
|
||||
///</summary>
|
||||
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[global::System.ComponentModel.ToolboxItem(true)]
|
||||
[global::System.ComponentModel.DataObjectAttribute(true)]
|
||||
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
||||
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public partial class v_tbDocs_selOggettoTableAdapter : global::System.ComponentModel.Component {
|
||||
|
||||
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
||||
|
||||
private global::System.Data.SqlClient.SqlConnection _connection;
|
||||
|
||||
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
||||
|
||||
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
||||
|
||||
private bool _clearBeforeFill;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_tbDocs_selOggettoTableAdapter() {
|
||||
this.ClearBeforeFill = true;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
||||
get {
|
||||
if ((this._adapter == null)) {
|
||||
this.InitAdapter();
|
||||
}
|
||||
return this._adapter;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal global::System.Data.SqlClient.SqlConnection Connection {
|
||||
get {
|
||||
if ((this._connection == null)) {
|
||||
this.InitConnection();
|
||||
}
|
||||
return this._connection;
|
||||
}
|
||||
set {
|
||||
this._connection = value;
|
||||
if ((this.Adapter.InsertCommand != null)) {
|
||||
this.Adapter.InsertCommand.Connection = value;
|
||||
}
|
||||
if ((this.Adapter.DeleteCommand != null)) {
|
||||
this.Adapter.DeleteCommand.Connection = value;
|
||||
}
|
||||
if ((this.Adapter.UpdateCommand != null)) {
|
||||
this.Adapter.UpdateCommand.Connection = value;
|
||||
}
|
||||
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
||||
if ((this.CommandCollection[i] != null)) {
|
||||
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
||||
get {
|
||||
return this._transaction;
|
||||
}
|
||||
set {
|
||||
this._transaction = value;
|
||||
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
||||
this.CommandCollection[i].Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.DeleteCommand != null))) {
|
||||
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.InsertCommand != null))) {
|
||||
this.Adapter.InsertCommand.Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.UpdateCommand != null))) {
|
||||
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
||||
get {
|
||||
if ((this._commandCollection == null)) {
|
||||
this.InitCommandCollection();
|
||||
}
|
||||
return this._commandCollection;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool ClearBeforeFill {
|
||||
get {
|
||||
return this._clearBeforeFill;
|
||||
}
|
||||
set {
|
||||
this._clearBeforeFill = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitAdapter() {
|
||||
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
||||
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
||||
tableMapping.SourceTable = "Table";
|
||||
tableMapping.DataSetTable = "v_tbDocs_selOggetto";
|
||||
tableMapping.ColumnMappings.Add("value", "value");
|
||||
tableMapping.ColumnMappings.Add("label", "label");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitConnection() {
|
||||
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
||||
this._connection.ConnectionString = global::ETS_Data.Properties.Settings.Default.ETS_WSConnectionString;
|
||||
}
|
||||
|
||||
[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[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT value, label FROM dbo.v_tbDocs_selOggetto";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "dbo.stp_tbDocs_Oggetto_likeSearch";
|
||||
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("@search", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[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.Fill, true)]
|
||||
public virtual int Fill(DS_utils.v_tbDocs_selOggettoDataTable dataTable) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
int returnValue = this.Adapter.Fill(dataTable);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[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, true)]
|
||||
public virtual DS_utils.v_tbDocs_selOggettoDataTable GetData() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
DS_utils.v_tbDocs_selOggettoDataTable dataTable = new DS_utils.v_tbDocs_selOggettoDataTable();
|
||||
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_utils.v_tbDocs_selOggettoDataTable getByLikeSearch(string search) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((search == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(search));
|
||||
}
|
||||
DS_utils.v_tbDocs_selOggettoDataTable dataTable = new DS_utils.v_tbDocs_selOggettoDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
||||
///</summary>
|
||||
|
||||
+51
-2
@@ -141,10 +141,10 @@ ORDER BY value</CommandText>
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_Fasi_likeSearch" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByLikeSearch" GetMethodModifier="Public" GetMethodName="getByLikeSearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByLikeSearch" UserSourceName="getByLikeSearch">
|
||||
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_tbDocs_Fasi_likeSearch" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByLikeSearch" GetMethodModifier="Public" GetMethodName="getByLikeSearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByLikeSearch" UserSourceName="getByLikeSearch">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_Fasi_likeSearch</CommandText>
|
||||
<CommandText>dbo.stp_tbDocs_Fasi_likeSearch</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="nvarchar" DbType="String" Direction="Input" ParameterName="@search" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -183,6 +183,35 @@ ORDER BY value</CommandText>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_tbDocs_selOggettoTableAdapter" GeneratorDataComponentClassName="v_tbDocs_selOggettoTableAdapter" Name="v_tbDocs_selOggetto" UserDataComponentName="v_tbDocs_selOggettoTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.v_tbDocs_selOggetto" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT value, label FROM dbo.v_tbDocs_selOggetto</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_tbDocs_Oggetto_likeSearch" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByLikeSearch" GetMethodModifier="Public" GetMethodName="getByLikeSearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByLikeSearch" UserSourceName="getByLikeSearch">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_tbDocs_Oggetto_likeSearch</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="nvarchar" DbType="String" Direction="Input" ParameterName="@search" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
@@ -309,6 +338,26 @@ ORDER BY value</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_tbDocs_selOggetto" msprop:Generator_TableClassName="v_tbDocs_selOggettoDataTable" msprop:Generator_TableVarName="tablev_tbDocs_selOggetto" msprop:Generator_TablePropName="v_tbDocs_selOggetto" msprop:Generator_RowDeletingName="v_tbDocs_selOggettoRowDeleting" msprop:Generator_RowChangingName="v_tbDocs_selOggettoRowChanging" msprop:Generator_RowEvHandlerName="v_tbDocs_selOggettoRowChangeEventHandler" msprop:Generator_RowDeletedName="v_tbDocs_selOggettoRowDeleted" msprop:Generator_UserTableName="v_tbDocs_selOggetto" msprop:Generator_RowChangedName="v_tbDocs_selOggettoRowChanged" msprop:Generator_RowEvArgName="v_tbDocs_selOggettoRowChangeEvent" msprop:Generator_RowClassName="v_tbDocs_selOggettoRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="label" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
|
||||
@@ -6,13 +6,14 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:v_selFonti" ZOrder="7" X="167" Y="206" Height="134" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selCommesse" ZOrder="6" X="551" Y="226" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selFasi" ZOrder="5" X="894" Y="226" Height="134" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:files" ZOrder="4" X="1115" Y="226" Height="125" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:v_tbDocs_selCommesse" ZOrder="3" X="141" Y="449" Height="134" Width="280" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selFonti" ZOrder="8" X="167" Y="206" Height="134" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selCommesse" ZOrder="7" X="551" Y="226" Height="134" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selFasi" ZOrder="6" X="894" Y="226" Height="134" Width="194" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_tbDocs_selCommesse" ZOrder="4" X="141" Y="449" Height="134" Width="280" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_tbDocs_selFasi" ZOrder="2" X="511" Y="462" Height="134" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_tbDocs_selFonti" ZOrder="1" X="841" Y="473" Height="134" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_tbDocs_selFonti" ZOrder="3" X="841" Y="473" Height="134" Width="247" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:files" ZOrder="5" X="1115" Y="226" Height="125" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:v_tbDocs_selOggetto" ZOrder="1" X="182" Y="672" Height="134" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
@@ -16,6 +16,10 @@ namespace ETS_Data
|
||||
public DS_utilsTableAdapters.v_selFontiTableAdapter taSelFonti;
|
||||
public DS_utilsTableAdapters.v_selCommesseTableAdapter taSelCommesse;
|
||||
public DS_utilsTableAdapters.v_selFasiTableAdapter taSelFasi;
|
||||
public DS_utilsTableAdapters.v_tbDocs_selFontiTableAdapter taTDSelFonti;
|
||||
public DS_utilsTableAdapters.v_tbDocs_selCommesseTableAdapter taTDSelCommesse;
|
||||
public DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter taTDSelFasi;
|
||||
public DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter taTDSelOggetti;
|
||||
|
||||
public DS_WebScipTableAdapters.tbDocumentiTableAdapter taDoc;
|
||||
|
||||
@@ -29,6 +33,10 @@ namespace ETS_Data
|
||||
taSelFonti = new DS_utilsTableAdapters.v_selFontiTableAdapter();
|
||||
taSelCommesse = new DS_utilsTableAdapters.v_selCommesseTableAdapter();
|
||||
taSelFasi = new DS_utilsTableAdapters.v_selFasiTableAdapter();
|
||||
taTDSelFonti = new DS_utilsTableAdapters.v_tbDocs_selFontiTableAdapter();
|
||||
taTDSelCommesse = new DS_utilsTableAdapters.v_tbDocs_selCommesseTableAdapter();
|
||||
taTDSelFasi = new DS_utilsTableAdapters.v_tbDocs_selFasiTableAdapter();
|
||||
taTDSelOggetti = new DS_utilsTableAdapters.v_tbDocs_selOggettoTableAdapter();
|
||||
taDoc = new DS_WebScipTableAdapters.tbDocumentiTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
@@ -44,6 +52,10 @@ namespace ETS_Data
|
||||
taSelFonti.Connection.ConnectionString = connStringETS_WS;
|
||||
taSelCommesse.Connection.ConnectionString = connStringETS_WS;
|
||||
taSelFasi.Connection.ConnectionString = connStringETS_WS;
|
||||
taTDSelFonti.Connection.ConnectionString = connStringETS_WS;
|
||||
taTDSelCommesse.Connection.ConnectionString = connStringETS_WS;
|
||||
taTDSelFasi.Connection.ConnectionString = connStringETS_WS;
|
||||
taTDSelOggetti.Connection.ConnectionString = connStringETS_WS;
|
||||
taDoc.Connection.ConnectionString = connStringETS_WS;
|
||||
}
|
||||
|
||||
@@ -224,6 +236,23 @@ namespace ETS_Data
|
||||
return _done;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// svuota una variabile dalla session
|
||||
/// </summary>
|
||||
/// <param name="nome"></param>
|
||||
public bool emptySessionVal(string nome)
|
||||
{
|
||||
bool _done = false;
|
||||
try
|
||||
{
|
||||
HttpContext.Current.Session.Remove(nome);
|
||||
_done = true;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return _done;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione file config
|
||||
|
||||
Reference in New Issue
Block a user