예제 #1
0
        public List <sa_t_oper_type> GetOperTypeList()
        {
            JsonRequest r = new JsonRequest();

            r.request("/oper?t=GetOperType");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            List <sa_t_oper_type> list = r.GetList <sa_t_oper_type>();

            return(list);
        }
예제 #2
0
        public List <sys_t_oper_type> GetOperTypeList()
        {
            JsonRequest r = new JsonRequest();

            r.request("/mydestop?t=GetAll");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            List <sys_t_oper_type> lis = r.GetList <sys_t_oper_type>();

            return(lis);
        }
예제 #3
0
        public List <sa_t_oper_grant> GetAllGrant(sa_t_oper_grant grant)
        {
            JsonRequest r = new JsonRequest();

            r.Write("grant", grant);

            r.request("/sys?t=GetAllGrant");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            List <sa_t_oper_grant> lis = r.GetList <sa_t_oper_grant>();

            return(lis);
        }
예제 #4
0
        List <sys_t_oper_mylove> IMyDestop.GetMyLove(string oper_id)
        {
            JsonRequest r = new JsonRequest();

            r.Write("oper_id", oper_id);

            r.request("/mydestop?t=GetMyLove");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            List <sys_t_oper_mylove> lis = r.GetList <sys_t_oper_mylove>();

            return(lis);
        }