Beispiel #1
0
        /// <summary>
        /// 保存反馈数据
        /// </summary>
        public void save()
        {
            ActiveResult   vret   = new ActiveResult();
            String         cKeyID = StringEx.getString(request[AppConfig.__DBKEY]);
            XT_JB_FEEDBACK vo     = new XT_JB_FEEDBACK();

            vo    = (XT_JB_FEEDBACK)RequestUtil.readFromRequest(request, vo);
            vo.id = AutoID.getAutoID();
            int iCode = dao.save(vo, "");

            vret = ActiveResult.Valid(iCode);
            response.Write(vret.toJSONString());
        }
Beispiel #2
0
        public void find()
        {
            ActiveResult vret    = ActiveResult.Valid(AppConfig.FAILURE);
            String       cKEY_ID = StringEx.getString(request["ID"]);

            if (String.IsNullOrEmpty(cKEY_ID))
            {
                vret = ActiveResult.Valid("错误,ID参数为空!");
            }
            else
            {
                XT_JB_FEEDBACK vInfo = dao.FindOne(cKEY_ID);
                vret = ActiveResult.returnObject(vInfo);
            }
            response.Write(vret.toJSONString());
        }