Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
        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());
        }