Пример #1
0
        public ActionResult Nursing(string name, string pwd, string code, string orgId)
        {
            BaseRequest <ORGFilter> request = new BaseRequest <ORGFilter>();
            var response = userService.QueryOrgNsHome(request);

            ViewBag.Msg = "";
            if (response.ResultCode == 0)
            {
                ViewBag.OrgList = response.Data;
            }
            else
            {
                ViewBag.OrgList = new List <NursingHome>();
            }
            //if (Constants.ServerIdentify.ContainsKey(Computer.DiskID) && Constants.ServerIdentify[Computer.DiskID] == Computer.MacAddress)
            if (true)
            {
                if (!string.IsNullOrEmpty(name))
                {
                    if (SignIn(name, pwd, orgId, OrgType.NursingHome))
                    {
                        if (!string.IsNullOrEmpty(Request.QueryString["ReturnUrl"]))
                        {
                            return(Redirect(HttpUtility.UrlDecode(Request.QueryString["ReturnUrl"])));
                        }
                        return(Redirect("/NCIA/HlxSbaoDesk"));
                    }
                    else
                    {
                        ViewBag.Msg = "请输入正确信息";
                    }
                }
            }
            else
            {
                ViewBag.Msg = "机器未注册,请联系管理员";
            }

            return(View());
        }
Пример #2
0
        public IHttpActionResult Query(BaseRequest <ORGFilter> request)
        {
            var response = service.QueryOrgNsHome(request);

            return(Ok(response));
        }