コード例 #1
0
        private void BindFileLink()
        {
            string roots = "";

            //Check to see if we already did this, if not then calculate sub root string for FB
            if (!GetFileRoots(out roots))
            {
                Users         userda = new Users(Globals.CurrentIdentity);
                User.UserList users  = CourseMatrixControl.GetFeedbackUsers(GetUserList());
                foreach (User user in users)
                {
                    Components.Submission.SubmissionList subs = userda.GetAsstSubmissions(user.UserName, GetAsstID());
                    foreach (Components.Submission sub in subs)
                    {
                        roots += sub.LocationID.ToString() + "|";
                    }
                }

                ViewState["fileroots"] = roots;
            }

            lnkLoadAll.Attributes.Add("onClick",
                                      @"window.open('filebrowser.aspx?Roots=" + roots +
                                      @"', '" + 8 + @"', 'width=730, height=630')");
        }
コード例 #2
0
        private void BindData()
        {
            string userstr = GetUserList();

            User.UserList users = CourseMatrixControl.GetFeedbackUsers(userstr);

            DataTable userset = TabulateUsers(users);

            dgAggregate.DataSource = new DataView(userset);
            dgAggregate.DataBind();
        }