コード例 #1
0
ファイル: NoticeService.cs プロジェクト: memoryrobber/VideoAI
        public void last()
        {
            ActiveResult vret = new ActiveResult();
            XT_NOTICE    vo   = dao.FindLast();

            vret = ActiveResult.returnObject(vo);
            response.Write(vret.toJSONString());
        }
コード例 #2
0
ファイル: NoticeService.cs プロジェクト: memoryrobber/VideoAI
        public void finditem(String cDBKey)
        {
            ActiveResult vret = new ActiveResult();
            XT_NOTICE    vo   = dao.FindOne(cDBKey);

            vret = ActiveResult.returnObject(vo);
            response.Write(vret.toJSONString());
        }
コード例 #3
0
ファイル: NoticeService.cs プロジェクト: memoryrobber/VideoAI
        public void save()
        {
            ActiveResult vret    = new ActiveResult();
            String       cKeyID  = StringEx.getString(request[AppConfig.__DBKEY]);
            String       cORG_ID = StringEx.getString(request[AppConfig.ORG_ID]);
            XT_NOTICE    vo      = new XT_NOTICE();

            vo             = (XT_NOTICE)RequestUtil.readFromRequest(request, vo);
            vo.notice_date = vo.notice_date.Replace("-", "");
            vo.notice_id   = AutoID.getAutoID(cORG_ID);
            int iCode = dao.save(vo, cKeyID);

            vret = ActiveResult.Valid(iCode);
            response.Write(vret.toJSONString());
        }