Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Student        student        = (Student)Session["loginuser"];
            string         stuAccount     = student.StuAccount;
            TitleRecordBll titleRecordBll = new TitleRecordBll();
            TitleRecord    titleRecord    = titleRecordBll.getRtId(stuAccount);
            int            rtId           = titleRecord.TitleRecordId;
            Path           path           = pathBll.getState(rtId, 1);

            pstate = path.state;
            if (rtId == 0)
            {
                //未选题
                state = 3;
            }
            else
            {
                Result result = pathBll.selectByTitleRecordId(rtId.ToString());
                if (result == Result.记录存在)
                {
                    //显示页面
                    state = 1;
                }
                else
                {
                    state = 0;
                }
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Student        student        = (Student)Session["loginuser"];
            string         stuAccount     = student.StuAccount;
            TitleRecordBll titleRecordBll = new TitleRecordBll();
            PathBll        pathBll        = new PathBll();
            TitleRecord    titleRecord    = titleRecordBll.getRtId(stuAccount);
            int            titleRecordId  = titleRecord.TitleRecordId;
            OpenReport     openReport     = titleRecordBll.getState(titleRecordId);
            Path           path           = pathBll.getState(titleRecordId, 0);

            openState = openReport.state;
            state     = path.state;
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                stuAccount    = Request.QueryString["stuAccount"];
                titleRecordId = Convert.ToInt32(Request.QueryString["titleRecordId"]);
                if (stuAccount != null)
                {
                    Session["stuAccount"]    = stuAccount;
                    Session["titleRecordId"] = titleRecordId;
                }
                else
                {
                    stuAccount    = Session["stuAccount"].ToString();
                    titleRecordId = Convert.ToInt32(Session["titleRecordId"].ToString());
                }
            }
            //获取查重报告状态
            Path path = pathBll.getState(titleRecordId, 1);

            if (path == null)
            {
                checkState = 0;
            }
            else
            {
                checkState = path.state;
            }
            //获取中期质量报告状态
            MedtermQualityBll qualityBll = new MedtermQualityBll();
            MedtermQuality    medterm    = qualityBll.getState(titleRecordId);

            if (medterm == null)
            {
                midState = 0;
            }
            else
            {
                midState = medterm.state;
            }
            //获取论文完成状态
            Path pathPaper = pathBll.getState(titleRecordId, 0);

            if (pathPaper == null)
            {
                paperState = 0;
            }
            else
            {
                paperState = pathPaper.state;
            }
            getData = titlebll.GetByAccount(stuAccount);
            int i = getData.Tables[0].Rows.Count - 1;

            planId = Convert.ToInt32(getData.Tables[0].Rows[i]["planId"]);
            int proId = Convert.ToInt32(getData.Tables[0].Rows[i]["proId"]);

            teacher = (Teacher)Session["loginuser"];
            TeacherBll teaBll = new TeacherBll();
            int        a      = teacher.college.ColID;

            dsTitle = teaBll.getByColl(teacher.college.ColID, teacher.TeaAccount);
            string op = Request["op"];

            if (op == "submit")
            {
                insert();
            }
        }