public ActionResult Agency(string name, string pwd, string code, string orgId) { BaseRequest <ORGFilter> request = new BaseRequest <ORGFilter>(); var response = userService.QueryOrgAgency(request); ViewBag.Msg = ""; if (response.ResultCode == 0) { ViewBag.OrgList = response.Data; } else { ViewBag.OrgList = new List <Agency>(); } //if (Constants.ServerIdentify.ContainsKey(Computer.DiskID) && Constants.ServerIdentify[Computer.DiskID] == Computer.MacAddress) if (true) { if (!string.IsNullOrEmpty(name)) { if (SignIn(name, pwd, orgId, OrgType.Agency)) { if (!string.IsNullOrEmpty(Request.QueryString["ReturnUrl"])) { return(Redirect(HttpUtility.UrlDecode(Request.QueryString["ReturnUrl"]))); } return(Redirect("/Home/Index")); } else { ViewBag.Msg = "请输入正确信息"; } } } else { ViewBag.Msg = "机器未注册,请联系管理员"; } return(View()); }
public IHttpActionResult Query(BaseRequest <ORGFilter> request) { var response = service.QueryOrgAgency(request); return(Ok(response)); }