using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;
namespace PUB.Services
{
///
/// Descrizione di riepilogo per WS_data
///
[WebService(Namespace = "http://www.steamware.net/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// Per consentire la chiamata di questo servizio Web dallo script utilizzando ASP.NET AJAX, rimuovere il commento dalla riga seguente.
[System.Web.Script.Services.ScriptService]
public class WS_data : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public string[] Prestazioni(string prefixText)
{
// inizializzo risposta
List suggerimenti = new List();
#if false
// elenco candidati
ScheMe_Data.DS_Utility.v_selPrestazioniDataTable tabella = DtProxy.man.taVSPrest.searchLike(prefixText);
// aggiungo ogni riga...
foreach (ScheMe_Data.DS_Utility.v_selPrestazioniRow riga in tabella)
{
//suggerimenti.Add(riga.label);
suggerimenti.Add(string.Format("{0}#{1}", riga.label, riga.value));
if (suggerimenti.Count == memLayer.ML.confReadInt("maxNumSuggest"))
{
suggerimenti.Add("...#");
return suggerimenti.ToArray();
}
}
#endif
return suggerimenti.ToArray();
}
///
/// stituisce un array di array di informazioni...
/// - TITOLO
/// - MaxValore
/// - vettore etichette
/// - vettore valori
///
///
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List