Ejemplo n.º 1
0
        public string GetTerUserListByCode(UserDeptView ud, int rows, int page)
        {
            ud.StartData = (page - 1) * rows + 1;
            ud.EndData   = ud.StartData + rows;
            UserInfo user = new UserInfo();

            user = (UserInfo)Session["LoginUser"];
            ud.Businessdivisioncode = user.UserDeptcode;


            IList <UserDeptView> lud = userDeptViewBll.GetTerUserViewPage(ud);
            int    a   = userDeptViewBll.GetTerUserViewCount(ud);
            string str = ConvertToJson(lud, a);

            return(str);
        }
Ejemplo n.º 2
0
        public string GetygListByzzjgId(UserDeptView ud, int rows, int page, string ChildrenSel)
        {
            ud.StartData = (page - 1) * rows + 1;
            ud.EndData   = ud.StartData + rows;
            if (ud.Businessdivisionid == null || ud.Businessdivisionid.Trim() == "")
            {
                UserInfo user = new UserInfo();
                user = (UserInfo)Session["LoginUser"];
                ud.Businessdivisionid = user.EnterId;
            }

            if (ChildrenSel == "true")
            {
                DeptInfo di = deptInfoBll.GetDeptInfo(ud.Businessdivisionid);
                ud.Businessdivisioncode = di.Businessdivisioncode;
                ud.Businessdivisionid   = "";
            }

            IList <UserDeptView> lud = userDeptViewBll.GetUserDeptViewPage(ud);
            int    a   = userDeptViewBll.GetUserDeptViewCount(ud);
            string str = ConvertToJson(lud, a);

            return(str);
        }