use of app.hongs.action.anno.Select in project HongsCORE by ihongs.
the class JointGate method create.
@Override
@Action("create")
@Preset(conf = "", form = "", deft = { ":create" })
@Select(conf = "", form = "", mode = 2)
@Verify(conf = "", form = "")
@CommitSuccess
public void create(ActionHelper helper) throws HongsException {
IEntity sr = getEntity(helper);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "create", rd);
Map sd = sr.create(rd);
sd = getRspMap(helper, sr, "create", sd);
String ss = getRspMsg(helper, sr, "create", 1);
helper.reply(ss, sd);
}
use of app.hongs.action.anno.Select in project HongsCORE by ihongs.
the class DBAction method create.
@Action("create")
@Preset(conf = "", form = "", deft = { ":create" })
@Select(conf = "", form = "", mode = 2)
@Verify(conf = "", form = "")
@CommitSuccess
@Override
public void create(ActionHelper helper) throws HongsException {
Model ett = getEntity(helper);
Map req = helper.getRequestData();
req = getReqMap(helper, ett, "create", req);
Map rsp = ett.create(req);
rsp = getRspMap(helper, ett, "create", rsp);
String msg = getRspMsg(helper, ett, "create", 1);
helper.reply(msg, rsp);
}
use of app.hongs.action.anno.Select in project HongsCORE by ihongs.
the class SearchAction method search.
@Action("search")
@Preset(conf = "", form = "")
@Select(conf = "", form = "")
@Spread(conf = "", form = "")
@Override
public void search(ActionHelper helper) throws HongsException {
/**
* 有指定查询条件则按匹配度排序
*/
Map rd = helper.getRequestData();
Object wd = rd.get(Cnst.WD_KEY);
if (null != wd && "".equals(wd)) {
List ob = Synt.asList(rd.get(Cnst.OB_KEY));
if (ob == null) {
ob = new ArrayList();
rd.put(Cnst.OB_KEY, ob);
ob.add(0, "-");
} else if (!ob.contains("-")) {
ob.add(0, "-");
}
}
super.search(helper);
}
use of app.hongs.action.anno.Select in project HongsCORE by ihongs.
the class FormAction method getList.
@Action("list")
@Select(conf = "matrix", form = "form")
public void getList(ActionHelper helper) throws HongsException {
Map data = model.getList(helper.getRequestData());
helper.reply(data);
}
use of app.hongs.action.anno.Select in project HongsCORE by ihongs.
the class FormAction method getInfo.
@Action("info")
@Select(conf = "matrix", form = "form")
public void getInfo(ActionHelper helper) throws HongsException {
Map data = model.getInfo(helper.getRequestData());
helper.reply(data);
}
Aggregations