private void ShowTypename() { DDLclass.DataSource = LearnSite.Common.TypeNameList.CourseType(); DDLclass.DataBind(); DDLCks.DataSource = LearnSite.Common.TypeNameList.CoursePeriod(); DDLCks.DataBind(); }
private void GradeClass() { if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null) { LearnSite.BLL.Room room = new LearnSite.BLL.Room(); string Hid = tcook.Hid.ToString(); DDLgrade.DataSource = room.GetGrade(Int32.Parse(Hid)); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); if (Session[Hid + "grade"] != null) { DDLgrade.SelectedValue = Session[Hid + "grade"].ToString(); } int Rgrade = Int32.Parse(DDLgrade.SelectedValue); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitClass(Rgrade); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); if (Session[Hid + "class"] != null) { DDLclass.SelectedValue = Session[Hid + "class"].ToString(); } } }
private void GradeClass() { LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); LearnSite.Model.TeaCook tcook = new LearnSite.Model.TeaCook(); string Hid = tcook.Hid.ToString(); DDLgrade.DataSource = rm.GetGrade(Int32.Parse(Hid)); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); if (Request.QueryString["Sgrade"] != null) { DDLgrade.SelectedValue = Request.QueryString["Sgrade"].ToString(); } DDLgrade.Enabled = false; int Rgrade = Int32.Parse(DDLgrade.SelectedValue); DDLclass.DataSource = rm.GetLimitClass(Rgrade); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); if (Request.QueryString["Sclass"] != null) { DDLclass.SelectedValue = Request.QueryString["Sclass"].ToString(); } DDLclass.Enabled = false; }
private void Getclass() { LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLclass.DataSource = room.GetClass(); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); }
private void Getclass() { LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLclass.DataSource = room.GetLimitClass(Int32.Parse(DDLgrade.SelectedValue)); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); }
private void myClass(int Rgrade) { LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLclass.DataSource = room.GetLimitAllClass(Rgrade); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); }
private void ShowClass() { DDLclass.DataSource = LearnSite.Common.TypeNameList.QuizCourseType(); DDLclass.DataBind(); if (Session["classtype"] != null) { DDLclass.SelectedValue = Session["classtype"].ToString(); } }
protected void getClassOne() { string sql = "SELECT DISTINCT TY_FATHERNAME FROM TBMA_TYPEINFO WHERE TY_FATHERNAME<>'ROOT' ORDER BY TY_FATHERNAME"; DataTable dt = DBCallCommon.GetDTUsingSqlText(sql); DDLclass.DataSource = dt; DDLclass.DataTextField = "TY_FATHERNAME"; DDLclass.DataValueField = "TY_FATHERNAME"; DDLclass.DataBind(); }
protected void DDLgrade_SelectedIndexChanged(object sender, EventArgs e) { if (DDLgrade.SelectedItem != null) { int Rgrade = Int32.Parse(DDLgrade.SelectedValue); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitClass(Rgrade); DDLclass.DataBind(); SetSnum(); } }
protected void getClassOne() { string sql = "SELECT DISTINCT TY_NAME,TY_ID FROM TBMA_TYPEINFO WHERE TY_FATHERID='ROOT' ORDER BY TY_ID"; DataTable dt = DBCallCommon.GetDTUsingSqlText(sql); DDLclass.DataSource = dt; DDLclass.DataTextField = "TY_NAME"; DDLclass.DataValueField = "TY_ID"; DDLclass.DataBind(); DDLclass.Items.Insert(0, new ListItem("全部", "%")); DDLclass.SelectedIndex = 2; }
protected void DDLgrade_SelectedIndexChanged(object sender, EventArgs e) { if (!string.IsNullOrEmpty(DDLgrade.SelectedValue)) { LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLclass.DataSource = room.GetLimitClass(Int32.Parse(DDLgrade.SelectedValue)); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); showstudents(); } }
private void showGradeSclass() { LearnSite.BLL.Room rbll = new LearnSite.BLL.Room(); DDLgrade.DataSource = rbll.GetAllGrade(); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); DDLclass.DataSource = rbll.GetAllClass(); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); totalclass(); }
protected void Page_Load(object sender, EventArgs e) { LearnSite.Common.CookieHelp.JudgeTeacherCookies(); Master.Page.Title = LearnSite.Common.CookieHelp.SetMainPageTitle() + "试题添加页面"; if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null) { if (!IsPostBack) { DDLclass.DataSource = LearnSite.Common.TypeNameList.CourseType(); DDLclass.DataBind(); } } }
private void GradeClass() { LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLgrade.DataSource = room.GetFindGrade(); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetFindClass(); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); }
protected void DDLgrade_SelectedIndexChanged(object sender, EventArgs e) { if (DDLgrade.SelectedItem != null) { int Rgrade = Int32.Parse(DDLgrade.SelectedValue); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitClass(Rgrade); DDLclass.DataBind(); string Hid = tcook.Hid.ToString(); Session[Hid + "grade"] = DDLgrade.SelectedValue; Session[Hid + "class"] = DDLclass.SelectedValue; GVSignin.PageIndex = 0; ShowSigin(); } }
private void ShowClass() { if (DDLgrade.SelectedValue != "") { int Rgrade = Int32.Parse(DDLgrade.SelectedValue); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetClass(); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); } else { Labelmsg.Text = "当前没有班级制作网页!"; } }
protected void Page_Load(object sender, EventArgs e) { LearnSite.Common.CookieHelp.JudgeTeacherCookies(); if (Request.QueryString["Qid"] != null) { if (!IsPostBack) { Master.Page.Title = LearnSite.Common.CookieHelp.SetMainPageTitle() + "试题编辑页面"; DDLclass.DataSource = LearnSite.Common.TypeNameList.CourseType(); DDLclass.DataBind(); ShowQuiz(); } } else { Response.Redirect("~/Quiz/quiz.aspx", false); } }
private void ShowCid() { Labelshow.Text = Request.QueryString["Grade"].ToString() + "年级"; Labeltxt.Text = "班---作品展示"; int Sgrade = Int32.Parse(Request.QueryString["Grade"].ToString()); string myCid = Request.QueryString["Cid"].ToString();//直接url传递 string cterm = LearnSite.Common.XmlHelp.GetTerm(); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitClass(Sgrade); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses(); Labeltitle.Text = cbll.GetTitle(Int32.Parse(myCid)); ShowUploadMsort(); }
private void GradeClass() { string Sgrade = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString(); string Sclass = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString(); LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLgrade.DataSource = room.GetGrade(); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); DDLgrade.SelectedValue = Sgrade; LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetClass(); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); DDLclass.SelectedValue = Sclass; }
private void SetClass() { string Cgrade = DDLgrade.SelectedValue; if (string.IsNullOrEmpty(Cgrade)) { BtnRegister.Enabled = false; labelmsg.Text = "暂停注册"; } else { int Rgrade = Int32.Parse(Cgrade); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetRegClass(Rgrade); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); labelmsg.Text = ""; } }
private void Grade() { LearnSite.BLL.TermTotal tbll = new LearnSite.BLL.TermTotal(); DDLYear.DataSource = tbll.TyearList(); DDLYear.DataTextField = "Tyear"; DDLYear.DataValueField = "Tyear"; DDLYear.DataBind(); LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLgrade.DataSource = room.GetAllGrade(); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); DDLclass.DataSource = room.GetClass(); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); }
private void Grade() { LearnSite.BLL.TermTotal tbll = new LearnSite.BLL.TermTotal(); DDLYear.DataSource = tbll.TyearList(); DDLYear.DataTextField = "Tyear"; DDLYear.DataValueField = "Tyear"; DDLYear.DataBind(); LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLgrade.DataSource = room.GetAllGrade(); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); DDLgrade.SelectedIndex = 0; DDLclass.DataSource = room.GetLimitClass(Int32.Parse(DDLgrade.SelectedValue)); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); }
private void GradeClass() { LearnSite.Model.Cook cook = new LearnSite.Model.Cook(); string Sgrade = cook.Sgrade.ToString(); string Sclass = cook.Sclass.ToString(); LearnSite.BLL.Room room = new LearnSite.BLL.Room(); DDLgrade.DataSource = room.GetAllGrade(); DDLgrade.DataTextField = "Rgrade"; DDLgrade.DataValueField = "Rgrade"; DDLgrade.DataBind(); DDLgrade.SelectedValue = Sgrade; LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetAllClass(); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); DDLclass.SelectedValue = Sclass; }
protected void DDLgrade_SelectedIndexChanged(object sender, EventArgs e) { if (DDLgrade.SelectedItem != null) { int Rgrade = Int32.Parse(DDLgrade.SelectedValue); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitClass(Rgrade); DDLclass.DataBind(); GVStudent.PageIndex = 0; ShowStudents(); profileSet(); addStuJs(DDLgrade.SelectedValue, DDLclass.SelectedValue); if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null) { string Hid = Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString(); Session[Hid + "grade"] = DDLgrade.SelectedValue; Session[Hid + "class"] = DDLclass.SelectedValue; } } Labelmsg.Text = ""; }
private void showclass() { int sclass = cook.Sclass; Labelclass.Text = sclass.ToString(); int sgrade = cook.Sgrade; LearnSite.BLL.Room rbll = new LearnSite.BLL.Room(); if (rbll.GetRclassedit(sgrade, sclass)) { Btnclass.Enabled = true; LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitAllClass(sgrade); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); } else { Btnclass.Enabled = false; Labelstr.Text = "限制转班"; } }
private void showclass() { int sclass = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString()); Labelclass.Text = sclass.ToString(); int sgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString()); LearnSite.BLL.Room rbll = new LearnSite.BLL.Room(); if (rbll.GetRclassedit(sgrade, sclass)) { Btnclass.Enabled = true; LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitAllClass(sgrade); DDLclass.DataTextField = "Rclass"; DDLclass.DataValueField = "Rclass"; DDLclass.DataBind(); } else { Btnclass.Enabled = false; Labelstr.Text = "限制转班"; } }
protected void DDLgrade_SelectedIndexChanged(object sender, EventArgs e) { if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null) { if (DDLgrade.SelectedValue != null) { int Rgrade = Int32.Parse(DDLgrade.SelectedValue); LearnSite.BLL.Room rm = new LearnSite.BLL.Room(); DDLclass.DataSource = rm.GetLimitClass(Rgrade); DDLclass.DataBind(); Showkc(); ShowSigin(); ShowNoSigin(); HowManyWork(); string Hid = tcook.Hid.ToString(); Session[Hid + "grade"] = DDLgrade.SelectedValue; Session[Hid + "class"] = DDLclass.SelectedValue; BtnaAllQuit.Enabled = true; showLock(); showCid(); showwtUrl(); } } }