protected void Btnadd_Click(object sender, EventArgs e) { string Gtitle = TextBoxGtitle.Text.Trim(); if (!string.IsNullOrEmpty(Gtitle)) { string hid = tcook.Hid.ToString(); string Gtype = DDLtype.SelectedValue; LearnSite.Model.Gauge gmodel = new LearnSite.Model.Gauge(); gmodel.Gcount = 0; gmodel.Gdate = DateTime.Now; gmodel.Ghid = Int32.Parse(hid); gmodel.Gtitle = Gtitle; gmodel.Gtype = Gtype; LearnSite.BLL.Gauge gbll = new LearnSite.BLL.Gauge(); gbll.Add(gmodel); System.Threading.Thread.Sleep(200); TextBoxGtitle.Text = ""; ShowGauge(); } else { LearnSite.Common.WordProcess.Alert("请输入自定义评价标准的标题!", this.Page); } }
private void showGauge() { if (Request.QueryString["Gid"] != null) { string Mgid = Request.QueryString["Gid"].ToString(); LearnSite.BLL.Gauge gbll = new LearnSite.BLL.Gauge(); LabelGtitle.Text = gbll.GetGtitle(Int32.Parse(Mgid)); } }
private void ShowMgid() { string hidstr = Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname].Values["Hid"].ToString(); LearnSite.BLL.Gauge gbll = new LearnSite.BLL.Gauge(); DDLMgid.DataSource = gbll.GetListGauge(Int32.Parse(hidstr)); DDLMgid.DataTextField = "Gtitle"; DDLMgid.DataValueField = "Gid"; DDLMgid.DataBind(); }
private void ShowGauge() { if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null) { string hid = tcook.Hid.ToString(); LearnSite.BLL.Gauge gbll = new LearnSite.BLL.Gauge(); GVGauge.DataSource = gbll.GetTeacherList(hid); GVGauge.DataBind(); } }
private void ShowMgid() { LearnSite.Model.TeaCook tcook = new LearnSite.Model.TeaCook(); int hid = tcook.Hid; LearnSite.BLL.Gauge gbll = new LearnSite.BLL.Gauge(); DDLMgid.DataSource = gbll.GetListGauge(hid); DDLMgid.DataTextField = "Gtitle"; DDLMgid.DataValueField = "Gid"; DDLMgid.DataBind(); }
protected void GVGauge_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Del") { string Gid = e.CommandArgument.ToString(); LearnSite.BLL.GaugeItem mbll = new LearnSite.BLL.GaugeItem(); if (!mbll.ExistsMgid(Int32.Parse(Gid))) { LearnSite.BLL.Gauge gbll = new LearnSite.BLL.Gauge(); gbll.Delete(Int32.Parse(Gid)); System.Threading.Thread.Sleep(200); ShowGauge(); } else { LearnSite.Common.WordProcess.Alert("请先删除该评价标准下的内容项!", this.Page); } } }