Esempio n. 1
0
 private void Showthink()
 {
     if (Request.QueryString["Cid"] != null)
     {
         string Fcid = Request.QueryString["Cid"].ToString();
         LearnSite.Model.Flection flection = new LearnSite.Model.Flection();
         LearnSite.BLL.Flection flectionbll = new LearnSite.BLL.Flection();
         flection = flectionbll.GetModel(Int32.Parse(Fcid));
         LearnSite.BLL.Courses cs = new LearnSite.BLL.Courses();
         Texttitle.Text = cs.GetTitle(Int32.Parse(Fcid));
         FCKeditor1.Value = HttpUtility.HtmlDecode(flection.Fcontent);
     }
 }
Esempio n. 2
0
 private void Showthink()
 {
     if (Request.QueryString["Cid"] != null)
     {
         string Fcid = Request.QueryString["Cid"].ToString();
         LearnSite.Model.Flection flection    = new LearnSite.Model.Flection();
         LearnSite.BLL.Flection   flectionbll = new LearnSite.BLL.Flection();
         flection = flectionbll.GetModel(Int32.Parse(Fcid));
         LearnSite.BLL.Courses cs = new LearnSite.BLL.Courses();
         Texttitle.Text     = cs.GetTitle(Int32.Parse(Fcid));
         mcontent.InnerText = HttpUtility.HtmlDecode(flection.Fcontent);
     }
 }
Esempio n. 3
0
    private void ShowLessonDetails()
    {
        int Cid =Int32.Parse( Request.QueryString["Cid"].ToString());
        LearnSite.BLL.Courses csbll = new LearnSite.BLL.Courses();
        Repeater1.DataSource = csbll.GetCourseDetail(Cid);
        Repeater1.DataBind();

        LearnSite.BLL.Mission msbll = new LearnSite.BLL.Mission();
        Repeater2.DataSource = msbll.GetMissionDetails(Cid);
        Repeater2.DataBind();

        LearnSite.BLL.Flection fcbll = new LearnSite.BLL.Flection();
        Repeater3.DataSource = fcbll.GetListCid(Cid);
        Repeater3.DataBind();
    }
Esempio n. 4
0
    private void ShowLessonDetails()
    {
        int Cid = Int32.Parse(Request.QueryString["Cid"].ToString());

        LearnSite.BLL.Courses csbll = new LearnSite.BLL.Courses();
        Repeater1.DataSource = csbll.GetCourseDetail(Cid);
        Repeater1.DataBind();

        LearnSite.BLL.Mission msbll = new LearnSite.BLL.Mission();
        Repeater2.DataSource = msbll.GetMissionDetails(Cid);
        Repeater2.DataBind();

        LearnSite.BLL.Flection fcbll = new LearnSite.BLL.Flection();
        Repeater3.DataSource = fcbll.GetListCid(Cid);
        Repeater3.DataBind();
    }
Esempio n. 5
0
 protected void BtnEdit_Click(object sender, EventArgs e)
 {
     if (Request.QueryString["Cid"] != null)
     {
         string Fcid     = Request.QueryString["Cid"].ToString();
         string Fcontent = HttpUtility.HtmlEncode(mcontent.InnerText);
         Labelmsg.Text = "添加反思成功";
         LearnSite.Model.Flection flection = new LearnSite.Model.Flection();
         flection.Fcid     = Int32.Parse(Fcid);
         flection.Fcontent = Fcontent;
         LearnSite.BLL.Flection flectionbll = new LearnSite.BLL.Flection();
         flectionbll.Update(flection);
         System.Threading.Thread.Sleep(500);
         string url = "~/Lessons/thinkshow.aspx?Cid=" + Int32.Parse(Fcid);
         Response.Redirect(url, false);
     }
 }
Esempio n. 6
0
 protected void Btnadd_Click(object sender, EventArgs e)
 {
     if (Request.QueryString["Cid"] != null)
     {
         string Fcid     = Request.QueryString["Cid"].ToString();
         string Fcontent = HttpUtility.HtmlEncode(Request.Form["textareaItem"].Trim());
         Labelmsg.Text = "添加反思成功";
         LearnSite.Model.Flection flection = new LearnSite.Model.Flection();
         flection.Fcontent = Fcontent;
         flection.Fdate    = DateTime.Now;
         flection.Fhid     = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString());//教师编号
         flection.Fcid     = Int32.Parse(Fcid);
         LearnSite.BLL.Flection flectionbll = new LearnSite.BLL.Flection();
         flectionbll.Add(flection);
         System.Threading.Thread.Sleep(500);
         string url = "~/Lessons/thinkshow.aspx?Cid=" + Int32.Parse(Fcid);
         Response.Redirect(url, false);
     }
 }
Esempio n. 7
0
 protected void BtnEdit_Click(object sender, EventArgs e)
 {
     if (Request.QueryString["Cid"] != null)
     {
         string Fcid = Request.QueryString["Cid"].ToString();
         string Fcontent = HttpUtility.HtmlEncode(FCKeditor1.Value);
         Labelmsg.Text = "添加反思成功";
         LearnSite.Model.Flection flection = new LearnSite.Model.Flection();
         flection.Fcid = Int32.Parse(Fcid);
         flection.Fcontent = Fcontent;
         LearnSite.BLL.Flection flectionbll = new LearnSite.BLL.Flection();
         flectionbll.Update(flection);
         this.Texttitle.Text = "";
         this.FCKeditor1.Value = "";
         System.Threading.Thread.Sleep(1000);
         string url = "~/Lessons/thinkshow.aspx?Cid=" + Int32.Parse(Fcid);
         Response.Redirect(url, false);
     }
 }
Esempio n. 8
0
 private void ShowThink()
 {
     if (Request.QueryString["Cid"] != null)
     {
         int Fcid =Int32.Parse( Request.QueryString["Cid"].ToString());
         LearnSite.BLL.Flection flection = new LearnSite.BLL.Flection();
         if (flection.ExistsFcid(Fcid))
         {
             Repeater1.DataSource = flection.GetListCid(Fcid);
             Repeater1.DataBind();
             LearnSite.BLL.Courses cs=new LearnSite.BLL.Courses();
             LabelTitle.Text = cs.GetTitle(Fcid);
         }
         else
         {
             string url = "~/Lessons/thinkadd.aspx?Cid=" + Fcid ;
             Response.Redirect(url, false);
         }
     }
 }
Esempio n. 9
0
 private void ShowThink()
 {
     if (Request.QueryString["Cid"] != null)
     {
         int Fcid = Int32.Parse(Request.QueryString["Cid"].ToString());
         LearnSite.BLL.Flection flection = new LearnSite.BLL.Flection();
         if (flection.ExistsFcid(Fcid))
         {
             Repeater1.DataSource = flection.GetListCid(Fcid);
             Repeater1.DataBind();
             LearnSite.BLL.Courses cs = new LearnSite.BLL.Courses();
             LabelTitle.Text = cs.GetTitle(Fcid);
         }
         else
         {
             string url = "~/Lessons/thinkadd.aspx?Cid=" + Fcid;
             Response.Redirect(url, false);
         }
     }
 }