public void grid4bind()
        {
            Maticsoft.BLL.fenshu_list_view flv_bll = new BLL.fenshu_list_view();
            string    str = "[peixunban]= '" + qishu.SelectedItem.Text.ToString() + "'";
            DataTable dt2 = flv_bll.getdistinct_list_total(str);
            DataTable dt  = flv_bll.GetList("DATALENGTH(neirong)>2").Tables[0];

            GridView4.DataSource = getnewtable(dt, dt2);
            GridView4.DataBind();
        }
        public void grid5bind()
        {
            Maticsoft.BLL.fenshu_list_view flv_bll = new BLL.fenshu_list_view();
            string        str   = "[peixunban]= '" + qishu.SelectedItem.Text.ToString() + "'";
            DataTable     dt    = flv_bll.get_yuanyi(str);
            StringBuilder strbu = new StringBuilder();

            strbu.Append("愿意的数目为" + count_yuanyi(dt, "愿意") + ",");
            strbu.Append("看情况的数目为" + count_yuanyi(dt, "看情况") + ",");
            strbu.Append("不愿意的数目为" + count_yuanyi(dt, "不愿意") + "。");
            yuanyi.Text = strbu.ToString();
        }
Пример #3
0
        public void gridbind()
        {
            Maticsoft.BLL.huishou_tongji hstj = new BLL.huishou_tongji();
            string str = "fenzu_id=" + Convert.ToInt16(fenzu.SelectedValue.ToString());

            GridView1.DataSource = hstj.GetList(str);
            GridView1.DataBind();
            //Session["open_id"] = "ozBiSt0zxI4W3ROkC4Xf0IxAC_Qg";

            if (Session["open_id"] != null)
            {
                Maticsoft.BLL.fenshu_list_view fs_l_v_bll = new BLL.fenshu_list_view();
                GridView2.DataSource = fs_l_v_bll.get_by_openid(Session["open_id"].ToString().Trim(), skv.peixunban_id);
                GridView2.DataBind();
            }
        }