コード例 #1
0
        public ActionResult OrgInfos2(int limit, int page, string Province, string CompanyCity, string CompanyUnderCity, string CompanyUnderArea)
        {
            PageModel ret = new PageModel();

            BLL.OrgInfoBLL _BLL  = new OrgInfoBLL();
            UserModel      user  = Session["UserModel"] as UserModel;
            string         OrgID = "";

            if (Province._ToInt32() > 0)
            {
                OrgID = Province;
            }
            if (CompanyCity._ToInt32() > 0)
            {
                OrgID = CompanyCity;
            }
            if (CompanyUnderCity._ToInt32() > 0)
            {
                OrgID = CompanyUnderCity;
            }
            if (CompanyUnderArea._ToInt32() > 0)
            {
                OrgID = CompanyUnderArea;
            }
            ret = _BLL.GetOrgByParentID(OrgID._ToInt32(), limit, page, user.OrgID, user.Level);
            var js = JsonConvert.SerializeObject(ret);

            return(Content(js));
        }
コード例 #2
0
        public JsonResult OrgInfos(string str)
        {
            retValue ret = new retValue();

            BLL.OrgInfoBLL _BLL = new OrgInfoBLL();
            UserModel      user = Session["UserModel"] as UserModel;

            ret = _BLL.GetOrgByParentID(str._ToInt32(), user.OrgID, user.Level);
            var js = JsonConvert.SerializeObject(ret);

            return(Json(js, JsonRequestBehavior.AllowGet));
        }