All Verbs | /Utilidades/Consultas/Lookups/Ejecucion |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EjecutaLookupRQ
{
public Integer IDLookup = null;
public HashMap<String,Object> Parametros = null;
public Lenguajes Lenguaje = null;
public Integer RecordSkip = null;
public Integer RecordTake = null;
public ArrayList<Object> Filter = null;
public gridSortOptions Sort = null;
public gridGroupOptions Group = null;
public ArrayList<gridSummaryOptions> SummaryGroupItems = null;
public ArrayList<gridSummaryOptions> SummaryTotalItems = null;
public Integer getIdLookup() { return IDLookup; }
public EjecutaLookupRQ setIdLookup(Integer value) { this.IDLookup = value; return this; }
public HashMap<String,Object> getParametros() { return Parametros; }
public EjecutaLookupRQ setParametros(HashMap<String,Object> value) { this.Parametros = value; return this; }
public Lenguajes getLenguaje() { return Lenguaje; }
public EjecutaLookupRQ setLenguaje(Lenguajes value) { this.Lenguaje = value; return this; }
public Integer getRecordSkip() { return RecordSkip; }
public EjecutaLookupRQ setRecordSkip(Integer value) { this.RecordSkip = value; return this; }
public Integer getRecordTake() { return RecordTake; }
public EjecutaLookupRQ setRecordTake(Integer value) { this.RecordTake = value; return this; }
public ArrayList<Object> getFilter() { return Filter; }
public EjecutaLookupRQ setFilter(ArrayList<Object> value) { this.Filter = value; return this; }
public gridSortOptions getSort() { return Sort; }
public EjecutaLookupRQ setSort(gridSortOptions value) { this.Sort = value; return this; }
public gridGroupOptions getGroup() { return Group; }
public EjecutaLookupRQ setGroup(gridGroupOptions value) { this.Group = value; return this; }
public ArrayList<gridSummaryOptions> getSummaryGroupItems() { return SummaryGroupItems; }
public EjecutaLookupRQ setSummaryGroupItems(ArrayList<gridSummaryOptions> value) { this.SummaryGroupItems = value; return this; }
public ArrayList<gridSummaryOptions> getSummaryTotalItems() { return SummaryTotalItems; }
public EjecutaLookupRQ setSummaryTotalItems(ArrayList<gridSummaryOptions> value) { this.SummaryTotalItems = value; return this; }
}
public static enum Lenguajes
{
Es,
Pt,
En;
}
public static class gridSortOptions
{
public String selector = null;
public Boolean desc = null;
public String getSelector() { return selector; }
public gridSortOptions setSelector(String value) { this.selector = value; return this; }
public Boolean isDesc() { return desc; }
public gridSortOptions setDesc(Boolean value) { this.desc = value; return this; }
}
public static class gridGroupOptions
{
public String selector = null;
public Boolean desc = null;
public Boolean isExpanded = null;
public String getSelector() { return selector; }
public gridGroupOptions setSelector(String value) { this.selector = value; return this; }
public Boolean isDesc() { return desc; }
public gridGroupOptions setDesc(Boolean value) { this.desc = value; return this; }
public Boolean getIsExpanded() { return isExpanded; }
public gridGroupOptions setIsExpanded(Boolean value) { this.isExpanded = value; return this; }
}
public static class gridSummaryOptions
{
public String selector = null;
public String summaryType = null;
public String getSelector() { return selector; }
public gridSummaryOptions setSelector(String value) { this.selector = value; return this; }
public String getSummaryType() { return summaryType; }
public gridSummaryOptions setSummaryType(String value) { this.summaryType = value; return this; }
}
public static class EjecutaLookupRS
{
public ArrayList<HashMap<String,Object>> DatosConsulta = null;
public String Version = null;
public Integer TotalRegistros = null;
public Integer TotalGrupos = null;
public ArrayList<Object> SummaryList = null;
public ArrayList<HashMap<String,Object>> getDatosConsulta() { return DatosConsulta; }
public EjecutaLookupRS setDatosConsulta(ArrayList<HashMap<String,Object>> value) { this.DatosConsulta = value; return this; }
public String getVersion() { return Version; }
public EjecutaLookupRS setVersion(String value) { this.Version = value; return this; }
public Integer getTotalRegistros() { return TotalRegistros; }
public EjecutaLookupRS setTotalRegistros(Integer value) { this.TotalRegistros = value; return this; }
public Integer getTotalGrupos() { return TotalGrupos; }
public EjecutaLookupRS setTotalGrupos(Integer value) { this.TotalGrupos = value; return this; }
public ArrayList<Object> getSummaryList() { return SummaryList; }
public EjecutaLookupRS setSummaryList(ArrayList<Object> value) { this.SummaryList = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/Consultas/Lookups/Ejecucion HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/json
Content-Type: application/json
Content-Length: length
{"IDLookup":0,"Parametros":{"String":{}},"Lenguaje":"ES","RecordSkip":0,"RecordTake":0,"Filter":[{}],"Sort":{"selector":"String","desc":false},"Group":{"selector":"String","desc":false,"isExpanded":false},"SummaryGroupItems":[{"selector":"String","summaryType":"String"}],"SummaryTotalItems":[{"selector":"String","summaryType":"String"}]}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"DatosConsulta":[{"String":{}}],"Version":"String","TotalRegistros":0,"TotalGrupos":0,"SummaryList":[{}]}