protected void Page_Load(object sender, EventArgs e)
        {
            int id = DataConverter.CLng(Request.QueryString["ID"]);

            if (!string.IsNullOrEmpty(Request.QueryString["menu"]) && Request.QueryString["menu"] == "del")
            {
                int cids = DataConverter.CLng(Request.QueryString["id"]);
                bep.DeleteByGroupID(cids);
            }
            if (!IsPostBack)
            {
                //Bind();
                M_ExamPoint mep = bep.GetSelect(id);
                //if (mep != null && mep.ID > 0)
                //{
                //Label1.Text = "修改考点";
                this.txtCoureTime.Text = DataConverter.CDate(mep.AddTime).ToString();
                this.txt_End.Text      = mep.OrderBy.ToString();
                //ddpoint.SelectedValue = mep.TID.ToString();
                //}
                //else
                //{
                //    Label1.Text = "添加考点";
                //}
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li> <li><a href='Papers_System_Manage.aspx'>教育模块</a></li> <li><a href='QuestionManage.aspx'>考试管理</a></li> <li>添加考点</li>");
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["menu"] != null && Request.QueryString["menu"] != "")
                {
                    string menu = Request.QueryString["menu"].ToString();
                    if (menu.Equals("Edit")) //修改知识点
                    {
                        this.Label2.Text = "修改知识点";
                        this.Label1.Text = "修改知识点";

                        GetClassList();
                        int kid = DataConverter.CLng(Request.QueryString["k_id"]);
                        bqk = new B_ExamPoint();
                        M_ExamPoint mqk = bqk.GetSelect(kid);
                        if (mqk != null && mqk.ID > 0)
                        {
                            this.txtK_Name.Text        = mqk.TestPoint;
                            this.txtK_OrderBy.Text     = mqk.OrderBy.ToString();
                            this.txtClassId.Visible    = false;
                            ddlC_ClassId.Visible       = true;
                            ddlC_ClassId.SelectedValue = mqk.ID.ToString();
                        }
                    }
                    if (menu.Equals("Add"))  //添加知识点
                    {
                        this.Label2.Text = "添加知识点";
                        this.Label1.Text = "添加知识点";
                        if (Request.QueryString["C_id"] != null && Request.QueryString["C_id"] != "")
                        {
                            int c_id = DataConverter.CLng(Request.QueryString["C_id"]);
                            bqc = new B_Exam_Class();
                            M_Exam_Class mqc = bqc.GetSelect(c_id);
                            if (mqc != null && mqc.C_id > 0)
                            {
                                txtClassId.Text         = mqc.C_ClassName;
                                this.txtClassId.Enabled = false;
                                ddlC_ClassId.Visible    = false;
                            }
                        }
                    }
                    Call.SetBreadCrumb(Master, "<li>教育模块</li><li><a href='QuestionManage.aspx'>在线考试系统</a></li><li>知识点管理</li><li>" + Label2.Text + "</li>");
                }
            }
        }
Exemplo n.º 3
0
        public ActionResult AddExamPoint()
        {
            M_ExamPoint pointMod = pointBll.GetSelect(Mid);

            return(View(pointMod));
        }