public void ShowStudentInfo()
        {
            var user_view_model = new BLL.CCOM.View_User().GetModel(" User_id=" + UserID);
            var user_model      = new BLL.CCOM.User_information().GetModel(UserID);

            this.lblOtherNumber.InnerText     = user_view_model.User_number;
            this.lblOtherName.InnerText       = user_view_model.User_realname;
            this.ddlOtherGender.SelectedValue = (Boolean)user_view_model.User_gender ? "1" : "0";
            this.txtOtherPhone.Value          = user_model.User_phone;
            this.lblClass.InnerText           = user_view_model.Agency_name;
            if (user_view_model.User_birthday != null)
            {
                this.txtBirthday.Text = user_view_model.User_birthday.Value.ToString("yyyy-MM-dd");
            }
            new BLL.CCOM.Nationality().BindDDL(this.ddlNationality);
            this.ddlNationality.Items.Add(new ListItem("未设置", "0"));
            if (user_model.Nationality_id != null)
            {
                this.ddlNationality.SelectedValue = user_model.Nationality_id.ToString();
            }
            else
            {
                this.ddlNationality.SelectedValue = "0";
            }
            new BLL.CCOM.Politics().BindDDL(this.ddlPolitic);
            this.ddlPolitic.Items.Add(new ListItem("未设置", "0"));
            if (user_model.Politic_id != null)
            {
                this.ddlPolitic.SelectedValue = user_model.Politic_id.ToString();
            }
            else
            {
                this.ddlPolitic.SelectedValue = "0";
            }
        }
        private void RptBind(string _strWhere, string _order)
        {
            int    pageSize    = GetPageSize(15); //每页数量
            int    page        = MyRequest.GetQueryInt("page", 1);
            string keywords    = MyRequest.GetQueryString("keywords");
            int    start_index = pageSize * (page - 1) + 1;

            this.st_index = pageSize * (page - 1) + 1;
            int end_index = pageSize * page;

            this.txtKeywords.Value = keywords;

            BLL.CCOM.View_User bll = new BLL.CCOM.View_User();
            //计算数量
            int totalCount = bll.GetRecordCount(_strWhere);

            //绑定当页
            this.rptList.DataSource = bll.GetListByPage(_strWhere, _order, start_index, end_index);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("ScoreList.aspx", "fun_id={0}&keywords={1}&page={2}", this.fun_id, this.keywords, "__id__");

            this.PageContent.InnerHtml = Utils.OutPageList(pageSize, page, totalCount, pageUrl, 8, true);
        }
        public void ShowTeacherInfo()
        {
            var user_view_model = new BLL.CCOM.View_User().GetModel(" User_id=" + UserID);
            var user_model      = new BLL.CCOM.User_information().GetModel(UserID);
            var teacher_model   = new BLL.CCOM.Tutor().GetModel(" User_id=" + UserID);

            this.lblNumber.InnerText     = user_view_model.User_number;
            this.lblName.InnerText       = user_view_model.User_realname;
            this.ddlGender.SelectedValue = (Boolean)user_view_model.User_gender ? "1" : "0";
            this.lblAgency.InnerText     = user_view_model.Agency_name;
            this.txtPhone.Value          = user_model.User_phone;
            DataSet ds = new BLL.CCOM.Title().GetList("");

            this.ddlTitle.DataSource     = ds.Tables[0].DefaultView;
            this.ddlTitle.DataTextField  = "Title_name";
            this.ddlTitle.DataValueField = "Title_id";
            this.ddlTitle.DataBind();
            this.ddlTitle.Items.Add(new ListItem("未设置", "0"));
            if (teacher_model != null)
            {
                if (teacher_model.Title_id != null)
                {
                    this.ddlTitle.SelectedValue = teacher_model.Title_id.ToString();
                }
                else
                {
                    this.ddlTitle.SelectedValue = "0";
                }
                this.txtSubject.Value    = teacher_model.Subject;
                this.txtEmail.Value      = teacher_model.Tutor_email;
                this.txtFixedPhone.Value = teacher_model.Tutor_fixedphone;
                this.txtPlace.Value      = teacher_model.Tutor_location;
                this.txtIntroduce.Value  = teacher_model.Tutor_introduce;
            }
        }
        public void ShowInfo()
        {
            var tutor_model = new BLL.CCOM.Tutor().GetModel(" User_id=" + TeacherID);
            var user_model  = new BLL.CCOM.View_User().GetModel(" User_id=" + TeacherID);

            this.lblNumber.InnerText = user_model.User_number;
            this.lblName.InnerText   = user_model.User_realname;
            this.lblGender.InnerText = user_model.User_gender ? "女" : "男";
            this.lblAgency.InnerText = user_model.Agency_name;
            if (tutor_model.Title_id != null)
            {
                this.lblTitle.InnerText = new BLL.CCOM.Title().GetModel((int)tutor_model.Title_id).Title_name;
            }
            else
            {
                this.lblTitle.InnerText = "--";
            }
            if (tutor_model.Subject != null)
            {
                this.lblSubject.InnerText = tutor_model.Subject;
            }
            else
            {
                this.lblSubject.InnerText = "--";
            }
            if (tutor_model.Tutor_email != null)
            {
                this.lblEmail.InnerText = tutor_model.Tutor_email;
            }
            else
            {
                this.lblEmail.InnerText = "--";
            }
            this.lblPhone.InnerText = new BLL.CCOM.User_information().GetModel(TeacherID).User_phone;
            if (tutor_model.Tutor_fixedphone != null)
            {
                this.lblFixedPhone.InnerText = tutor_model.Tutor_fixedphone;
            }
            else
            {
                this.lblFixedPhone.InnerText = "--";
            }
            if (tutor_model.Tutor_location != null)
            {
                this.lblLocation.InnerText = tutor_model.Tutor_location;
            }
            else
            {
                this.lblLocation.InnerText = "--";
            }
            if (tutor_model.Tutor_introduce != null)
            {
                this.lblIntroduce.InnerText = tutor_model.Tutor_introduce;
            }
            else
            {
                this.lblIntroduce.InnerText = "--";
            }
        }
        protected void bindTitleInfo()
        {
            //Model.CCOM.Examination_arrangement exam_model = new BLL.CCOM.Examination_arrangement().GetModel(Group_id);
            //Model.CCOM.Examination_room room_model = new BLL.CCOM.Examination_room().GetModel(exam_model.Ea_room);
            //Model.CCOM.Examination_subject subject_model = new BLL.CCOM.Examination_subject().GetModel(" Ea_id='" + exam_model.Ea_id + "'");
            //string year = "";
            //if (subject_model != null)
            //{
            //    Model.CCOM.Subject s_model = new BLL.CCOM.Subject().GetModel(subject_model.Esn_id);
            //    year = new BLL.CCOM.Period().GetModel(s_model.Period_id).Period_year;
            //}
            //if (year == "") year = Utils.ObjectToStr(DateTime.Now.Year);
            //this.lbltime.Text = Convert.ToDateTime(exam_model.Ea_starttime).ToString("MM月dd日  HH:mm");
            //this.lblplace.Text = room_model.Er_building + room_model.Er_floor + "层" + room_model.Er_room;
            Model.CCOM.Reply_group rg_model = new BLL.CCOM.Reply_group().GetModel(Group_id);
            this.lbltime.Text  = rg_model.Reply_time.ToString("yyyy年MM月dd日 HH:mm");
            this.lblplace.Text = rg_model.Reply_room;
            this.lbltitle.Text = rg_model.Group_name;
            if (rg_model.Group_type == 0)
            {
                page_title        = "2017软件学院毕业设计答辩安排";
                this.lbltype.Text = "口头答辩";
            }
            else if (rg_model.Group_type == 1)
            {
                page_title        = "2017软件学院毕业设计软件验收安排";
                this.lbltype.Text = "软件验收";
            }
            else if (rg_model.Group_type == 2)
            {
                page_title        = "2017软件学院开题评审答辩安排";
                this.lbltype.Text = "开题评审";
            }

            //绑定答辩委员会
            var group_model  = new BLL.CCOM.Reply_group().GetModel(" Group_id=" + Group_id);
            var leader_model = new BLL.CCOM.View_User().GetModel(" User_id=" + group_model.User_id);

            reviewTr1 = "<tr><td style=\"text-align:center\">" + leader_model.User_realname + "</td><td style=\"text-align:center\">" + leader_model.Role_name + "</td><td style=\"text-align:center\">主席</td></tr>";
            var rcs = new BLL.CCOM.Reply_commission().GetModelList(" Group_id=" + Group_id);

            foreach (var rc in rcs)
            {
                var u_model = new BLL.CCOM.View_User().GetModel(" User_id=" + rc.User_id);
                reviewTr1 += "<tr><td style=\"text-align:center\">" + u_model.User_realname + "</td><td style=\"text-align:center\">" + u_model.Role_name + "</td><td style=\"text-align:center\">成员</td></tr>";
            }
            //绑定学生
            var rss = new BLL.CCOM.Reply_student().GetModelList("Group_id=" + Group_id + " order by User_id");

            BLL.CCOM.View_Selete_Topic user_bll = new BLL.CCOM.View_Selete_Topic();
            foreach (var rs in rss)
            {
                var s_model = new BLL.CCOM.View_Selete_Topic().GetModel(" Student_id=" + rs.User_id);
                reviewTr2 += "<tr><td style=\"text-align:center\">" + s_model.Student_name + "</td><td style=\"text-align:center\">" + s_model.User_number + "</td><td style=\"text-align:center\">" + s_model.Teacher_name + "</td><td style=\"text-align:center\">" + s_model.Topic_name + "</td></tr>";
            }
        }
Example #6
0
        public void ShowInfo()
        {
            // Model.CCOM.View_User user_model = new BLL.CCOM.View_User().GetModel(" User_id=" + UserID);
            var  group_model       = new BLL.CCOM.Reply_group().GetModel(" Group_id=" + Group_id);
            var  leader_model      = new BLL.CCOM.View_User().GetModel(" User_id=" + group_model.User_id);
            long Topic_relation_id = new BLL.CCOM.Topic_relation().GetModel(" Student_id=" + UserID).Topic_relation_id;
            var  comment_model     = new BLL.CCOM.Comment().GetModel(" Topic_relation_id=" + Topic_relation_id);

            // PageTitle = user_model.User_realname + "的答辩评语表";
            this.txtTeacherComment.Disabled = true;
            this.txtTeacherScore.Disabled   = true;
            string score = "--";

            if (comment_model != null)
            {
                score = comment_model.Reply_score.ToString();
            }
            reviewTr = "<tr><td class=\"firstTab\">" + leader_model.User_realname + "</td><td class=\"otherTab\">" + GetTitle(leader_model.User_id) + "</td><td class=\"otherTab\">主席</td><td class=\"otherTab\">" + score + "</td></tr>";
            var rcs = new BLL.CCOM.Reply_commission().GetModelList(" Group_id=" + Group_id);

            foreach (var rc in rcs)
            {
                var u_model          = new BLL.CCOM.View_User().GetModel(" User_id=" + rc.User_id);
                var mark_table_model = new BLL.CCOM.View_Mark_table().GetModel(" Teacher_id=" + rc.User_id + " and Student_id=" + UserID);
                score = "--";
                if (mark_table_model != null)
                {
                    score = mark_table_model.Score.ToString();
                }
                reviewTr += "<tr><td class=\"firstTab\">" + u_model.User_realname + "</td><td class=\"otherTab\">" + GetTitle(u_model.User_id) + "</td><td class=\"otherTab\">成员</td><td class=\"otherTab\">" + score + "</td></tr>";
            }

            if (comment_model != null)
            {
                this.txtTeacherComment.InnerText = comment_model.Teacher_comment;
                this.txtTeacherScore.Value       = comment_model.Teacher_score.ToString();
                this.txtProblem.InnerText        = comment_model.problem;
                this.txtReviewComment.InnerText  = comment_model.Comment_content;
                this.txtScore.Value = comment_model.Reply_score.ToString();
            }
            if (GetAdminInfo_CCOM().User_id != leader_model.User_id)
            {
                var mark_table_model = new BLL.CCOM.View_Mark_table().GetModel(" Teacher_id=" + GetAdminInfo_CCOM().User_id + "and student_id=" + UserID);
                score = "";
                if (mark_table_model != null)
                {
                    score = mark_table_model.Score.ToString();
                }
                this.txtScore.Value            = score;
                this.txtProblem.Disabled       = true;
                this.txtReviewComment.Disabled = true;
            }
        }
        public void ShowInfo()
        {
            var user_model = new BLL.CCOM.View_User().GetModel(" User_id=" + StudentID);

            this.lblNumber.InnerText = user_model.User_number;
            this.lblName.InnerText   = user_model.User_realname;
            this.lblGender.InnerText = user_model.User_gender ? "女" : "男";
            this.lblPhone.InnerText  = new BLL.CCOM.User_information().GetModel(StudentID).User_phone;
            this.lblAgency.InnerText = user_model.Agency_name;
            if (user_model.User_birthday != null)
            {
                this.lblBirthday.InnerText = user_model.User_birthday.Value.ToString("yyyy年MM月dd日");
            }
            else
            {
                this.lblBirthday.InnerText = "--";
            }

            var user = new BLL.CCOM.User_information().GetModel(StudentID);

            if (user.Nationality_id != null)
            {
                this.lblNationality.InnerText = new BLL.CCOM.Nationality().GetModel((int)user.Nationality_id).Nationality_name;
            }
            else
            {
                this.lblNationality.InnerText = "--";
            }
            if (user.Politic_id != null)
            {
                this.lblPolitic.InnerText = new BLL.CCOM.Politics().GetModel((int)user.Politic_id).Politics_name;
            }
            else
            {
                this.lblPolitic.InnerText = "--";
            }
        }
Example #8
0
        public void ShowInfo()
        {
            Model.CCOM.View_User user_model = new BLL.CCOM.View_User().GetModel(" User_id=" + UserID);
            long Group_id = GetGroupId(UserID);

            if (Group_id == 0)
            {
                this.print_div.InnerHtml = " <div class=\"content\" align=\"center\"><h3>您尚未被分配到任何软件验收组<h3><table class=\"table table-striped table-bordered dataTable\"></table></div>";;
                btnSubmit.Visible        = false;
                return;
            }
            var group_model  = new BLL.CCOM.Reply_group().GetModel(" Group_id=" + Group_id);
            var leader_model = new BLL.CCOM.View_User().GetModel(" User_id=" + group_model.User_id);

            PageTitle = user_model.User_realname + "的软件验收表";

            this.txtRunStatus.Disabled = true;
            this.txtFeature.Disabled   = true;
            this.txtScore.Disabled     = true;

            this.lblName.InnerText   = user_model.User_realname;
            this.lblNumber.InnerHtml = user_model.User_number;

            var relation_model = new BLL.CCOM.Topic_relation().GetModel(" Student_id=" + UserID);

            if (relation_model != null)
            {
                this.lblTeacher.InnerText = new BLL.CCOM.User_information().GetModel(relation_model.Teacher_id).User_realname;
                this.lblTitle.InnerText   = new BLL.CCOM.Topic().GetModel(relation_model.Topic_id).Topic_name;
            }
            else
            {
                return;
            }

            string leader_title       = "--";
            var    leader_tutor_model = new BLL.CCOM.Tutor().GetModel(" User_id=" + leader_model.User_id);

            if (leader_tutor_model != null)
            {
                if (leader_tutor_model.Title_id != null)
                {
                    leader_title = new BLL.CCOM.Title().GetModel((int)leader_tutor_model.Title_id).Title_name;
                }
                else
                {
                    leader_title = "--";
                }
            }
            reviewTr = "<tr><td style=\"text-align:center;\">组长</td><td style=\"text-align:center;\">" + leader_model.User_realname + "</td><td style=\"text-align:center;\">" + leader_title + "</td><td colspan=\"3\" style=\"text-align:center;\">" + leader_model.Agency_name + "</td></tr>";
            var rcs = new BLL.CCOM.Reply_commission().GetModelList(" Group_id=" + Group_id);

            foreach (var rc in rcs)
            {
                var    u_model     = new BLL.CCOM.View_User().GetModel(" User_id=" + rc.User_id);
                string title       = "--";
                var    tutor_model = new BLL.CCOM.Tutor().GetModel(" User_id=" + rc.User_id);
                if (tutor_model != null)
                {
                    if (tutor_model.Title_id != null)
                    {
                        title = new BLL.CCOM.Title().GetModel((int)tutor_model.Title_id).Title_name;
                    }
                    else
                    {
                        title = "--";
                    }
                }
                reviewTr += "</tr><td style=\"text-align:center;\">组员</td><td style=\"text-align:center;\">" + u_model.User_realname + "</td><td style=\"text-align:center;\">" + title + "</td><td colspan=\"3\" style=\"text-align:center;\">" + u_model.Agency_name + "</td></tr>";
            }

            var software_model = new BLL.CCOM.Software_accept().GetModel(" Topic_relation_id=" + relation_model.Topic_relation_id);

            if (software_model != null)
            {
                if (software_model.Time != null)
                {
                    this.lblTime.InnerText = software_model.Time.Value.ToString("yyyy年MM月dd日 HH:mm:ss");
                }
                this.txtDataList.InnerText      = software_model.Data_list;
                this.txtAnguage.InnerText       = software_model.anguage;
                this.txtEnvironmental.InnerText = software_model.Environmental;
                this.txtLineCount.InnerText     = software_model.Line_count;
                this.txtLineHand.InnerText      = software_model.Line_hand;
                this.txtRunStatus.InnerText     = software_model.Run_status;
                this.txtFeature.InnerText       = software_model.Feature;
                this.txtScore.Value             = software_model.Conclusion.ToString();
            }
        }
        public void ShowInfo()
        {
            Model.CCOM.View_User user_model = new BLL.CCOM.View_User().GetModel(" User_id=" + UserID);
            var group_model  = new BLL.CCOM.Reply_group().GetModel(" Group_id=" + Group_id);
            var leader_model = new BLL.CCOM.View_User().GetModel(" User_id=" + group_model.User_id);

            if (GetAdminInfo_CCOM().User_id != leader_model.User_id)
            {
                this.txtOpinion.Disabled = true;
                this.ddlresult.Enabled   = false;
                this.btnSubmit.Visible   = false;
            }

            this.lblName.InnerText   = user_model.User_realname;
            this.lblNumber.InnerHtml = user_model.User_number;
            var relation_model = new BLL.CCOM.Topic_relation().GetModel(" Student_id=" + UserID);

            if (relation_model != null)
            {
                this.lblTeacher.InnerText = new BLL.CCOM.User_information().GetModel(relation_model.Teacher_id).User_realname;
                var topic_model = new BLL.CCOM.Topic().GetModel(relation_model.Topic_id);
                this.lblTitle.InnerText  = topic_model.Topic_name;
                this.lblNature.InnerText = topic_model.Topic_nature;
                this.lblSource.InnerText = topic_model.Topic_source;
            }
            else
            {
                return;
            }

            string leader_title       = "--";
            var    leader_tutor_model = new BLL.CCOM.Tutor().GetModel(" User_id=" + leader_model.User_id);

            if (leader_tutor_model != null)
            {
                if (leader_tutor_model.Title_id != null)
                {
                    leader_title = new BLL.CCOM.Title().GetModel((int)leader_tutor_model.Title_id).Title_name;
                }
                else
                {
                    leader_title = "--";
                }
            }
            reviewTr = "<tr><td style=\"text-align:center;\">组长</td><td style=\"text-align:center;\">" + leader_model.User_realname + "</td><td style=\"text-align:center;\">" + leader_title + "</td><td colspan=\"3\" style=\"text-align:center;\">" + leader_model.Agency_name + "</td></tr>";
            var rcs = new BLL.CCOM.Reply_commission().GetModelList(" Group_id=" + Group_id);

            foreach (var rc in rcs)
            {
                var    u_model     = new BLL.CCOM.View_User().GetModel(" User_id=" + rc.User_id);
                string title       = "--";
                var    tutor_model = new BLL.CCOM.Tutor().GetModel(" User_id=" + rc.User_id);
                if (tutor_model != null)
                {
                    if (tutor_model.Title_id != null)
                    {
                        title = new BLL.CCOM.Title().GetModel((int)tutor_model.Title_id).Title_name;
                    }
                    else
                    {
                        title = "--";
                    }
                }
                reviewTr += "</tr><td style=\"text-align:center;\">组员</td><td style=\"text-align:center;\">" + u_model.User_realname + "</td><td style=\"text-align:center;\">" + title + "</td><td colspan=\"3\" style=\"text-align:center;\">" + u_model.Agency_name + "</td></tr>";
            }

            var proposal_model = new BLL.CCOM.Proposal().GetModel(" Topic_relation_id=" + relation_model.Topic_relation_id);

            if (proposal_model != null)
            {
                this.txtOpinion.InnerText    = proposal_model.Review;
                this.ddlresult.SelectedValue = proposal_model.Result.ToString();
            }
        }
Example #10
0
        protected String GetStudentBan(long userId)
        {
            var model = new BLL.CCOM.View_User().GetModel(" User_id=" + userId);

            return(model.Agency_name);
        }