Example #1
0
        public IHttpActionResult Query(string keyword, string ipdFlag, int currentPage, int pageSize, string FloorName, string RoomName)
        {
            BaseRequest <ResidentFilter> request = new BaseRequest <ResidentFilter>();

            request.CurrentPage    = currentPage;
            request.PageSize       = pageSize;
            request.Data.Name      = keyword;
            request.Data.IdNo      = keyword;
            request.Data.keyword   = keyword;
            request.Data.IpdFlag   = ipdFlag;
            request.Data.FloorName = FloorName;
            request.Data.RoomName  = RoomName;
            request.Data.OrgId     = SecurityHelper.CurrentPrincipal.OrgId;
            var response = service.QueryPersonsExtend(request);


            return(Ok(response));
        }