コード例 #1
0
        public void LoadStudent(Guid AccessCode)
        {
            currentHomeStudentData.Visible = true;
            // HouseId = Guid.Parse("8313D02D-FA75-474A-A93B-0EFD3B817A88");

            List <User> userList = User.SelectUserByHouseId("HouseId", AccessCode, "RoleName", "student");

            DataListCurrentHomeStudent.DataSource = userList;
            DataListCurrentHomeStudent.DataBind();
        }
コード例 #2
0
        public void LoadStudent()
        {
            user = User.Select(Guid.Parse(Membership.GetUser().ProviderUserKey.ToString()));

            if (user.HouseId.HasValue)
            {
                //user.HouseId = Guid.Parse("8313D02D-FA75-474A-A93B-0EFD3B817A83");
                List <User> userList = User.SelectUserByHouseId("HouseId", user.HouseId.Value, "RoleName", "student");

                DataListCurrentHomeStudent.DataSource = userList;
                DataListCurrentHomeStudent.DataBind();

                if (userList.Count > 0)
                {
                    currentHomeStudentData.Visible = true;
                }
            }
        }
コード例 #3
0
ファイル: Land_Load_House.aspx.cs プロジェクト: tjsas1/RHP
        public void LoadStudent(Guid AccessCode, Guid AccessCode2)
        {
            // user = RHP.UserManagement.User.Select(Guid.Parse(Membership.GetUser().ProviderUserKey.ToString()));

            if (AccessCode != null)
            {
                HyperLinkPublicView.NavigateUrl   = "~/Land_load/Land_load_Public_Profile.aspx?AccessCode=" + AccessCode + "&AccessCode2=" + AccessCode2;
                HyperLinkHouseDetails.NavigateUrl = "~/Land_load/Land_Load_House_View.aspx?AccessCode=" + AccessCode + "&AccessCode2=" + AccessCode2;

                // AccessCode = Guid.Parse("8313D02D-FA75-474A-A93B-0EFD3B817A88");
                List <User> userList = RHP.UserManagement.User.SelectUserByHouseId("HouseId", AccessCode, "RoleName", "student");

                DataListCurrentHomeStudent.DataSource = userList;
                DataListCurrentHomeStudent.DataBind();

                if (userList.Count > 0)
                {
                    currentHomeStudentData.Visible = true;
                }
            }
        }