public void finditem() { ActiveResult vret = new ActiveResult(); String cDBKey = StringEx.getString(request[AppConfig.__DBKEY]); S_ORG_INF_WX_CONFIG vo = dao.FindOne(cDBKey); vret = ActiveResult.returnObject(vo); response.Write(vret.toJSONString()); }
public void save() { ActiveResult vret = new ActiveResult(); String cKeyID = StringEx.getString(request["ORG_ID"]); S_ORG_INF_WX_CONFIG vo = new S_ORG_INF_WX_CONFIG(); vo = (S_ORG_INF_WX_CONFIG)RequestUtil.readFromRequest(request, vo); int iCode = dao.save(vo, cKeyID); vret = ActiveResult.Valid(iCode); response.Write(vret.toJSONString()); }
public void find() { ActiveResult vret = new ActiveResult(); String cORG_ID = StringEx.getString(request["ORG_ID"]); if (cORG_ID.Length == 0) { vret = ActiveResult.Valid("错误,参数ORG_ID未正常传递!"); } else { S_ORG_INF_WX_CONFIG vo = dao.FindOne(cORG_ID); vret = ActiveResult.returnObject(vo); } response.Write(vret.toJSONString()); }