Example #1
0
 private void showGaugeItem()
 {
     if (Request.QueryString["Gid"] != null)
     {
         string Mgid = Request.QueryString["Gid"].ToString();
         LearnSite.BLL.GaugeItem mbll = new LearnSite.BLL.GaugeItem();
         GVGaugeItem.DataSource = mbll.GetListMgid(Mgid);
         GVGaugeItem.DataBind();
         int currentMsort = GVGaugeItem.Rows.Count + 1;
         DDLsort.SelectedValue = currentMsort.ToString();
     }
 }
Example #2
0
    private void ShowGauge(string Wid)
    {
        ShowFeedback(Int32.Parse(Wid));
        LearnSite.BLL.GaugeItem gbll = new LearnSite.BLL.GaugeItem();
        string myMgid = LabelMgid.Text;

        if (string.IsNullOrEmpty(myMgid) || myMgid == "0")
        {
            //当活动中未指定互评评价标准时,自动选取相应作品类型中的第一条评价标准
            DataListGauge.DataSource = gbll.GetListAutoGtype(LabelWtype.Text);
            DataListGauge.DataBind();
        }
        else
        {
            DataListGauge.DataSource = gbll.GetListMgid(LabelMgid.Text);
            DataListGauge.DataBind();
        }
    }