%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.google.gson.JsonArray"%>
<%@page import="com.google.gson.JsonObject"%>
<%@page import="java.util.HashMap"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="com.yc.factory.FactoryBean"%>
<%@page import="org.springframework.jdbc.support.rowset.SqlRowSet"%>
<%@page import="java.util.Map"%>
<%@page import="com.google.gson.Gson"%>
<%@page import="com.yc.service.top.Utils"%>
<%@page import="java.util.regex.*"%>
<%
Map controls =new HashMap();
@MapPut@
response.setCharacterEncoding("utf-8");
String field=request.getParameter("field"); //字段名
String fieldName=request.getParameter("fieldname");//字段描述
String callback=request.getParameter("callback");
String params=request.getParameter("params");
int state=Integer.parseInt(request.getParameter("state"));//当前控件状态
Map sqlParams=null;
int fieldtype=0;
try{
fieldtype=Integer.parseInt(request.getParameter("fieldtype"));//获得字段类型
if(null==field||"".equals(field.trim())){
out.write("{\"status\":1,\"info\":\"控件代码必须传递!\"}");
return;
}
if(!controls.containsKey(field)){
out.write("{\"status\":1,\"info\":\"\"}");//控件代码错误,请于系统管理员联系!
return;
}
if(params!=null){
try{
Gson gson=new Gson();
sqlParams=gson.fromJson(params,new com.google.gson.reflect.TypeToken