/// <summary>
        /// 绑定数据
        /// </summary>
        public new void DataBind()
        {
            DataTable dt = bcontent.GetContentAll();

            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #2
0
        public void MyBind()
        {
            DataTable dt = surBll.GetCountScore(Sid);

            Egv.DataSource = dt;
            Egv.DataBind();
        }
        private void MyBind(string key = "")
        {
            DataTable dts = bkBll.SelectAll(type, key);

            Egv.DataSource = dts;
            Egv.DataBind();
        }
        //初始化
        public void DataBind(string key = "")
        {
            DataTable dt = sstbll.GetAllStyle();

            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #5
0
        public void DataBind(string key = "")
        {
            DataTable dt = hisBll.SelByType_U(ExpType, Convert.ToInt32(Request.QueryString["UserID"]));

            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #6
0
        public void MyBind()
        {
            DataTable dt = fareBll.Sel();

            Egv.DataSource = dt;
            Egv.DataBind();
        }
        public void DataBind(string key = "")
        {
            DataTable dt = new DataTable();

            Egv.DataSource = dt;// gsmbll.GetAllGatherStrain(Guid.Empty, string.Empty, null);
            Egv.DataBind();
        }
예제 #8
0
        public void DataBind(string key = "")
        {
            DataTable dt = new DataTable();

            if (!string.IsNullOrEmpty(Request.QueryString["ZoneId"]) && DataConverter.CLng(Request.QueryString["ZoneId"]) > 0)
            {
                int type   = DataConverter.CLng(Request.QueryString["type"]);
                int zoneid = DataConverter.CLng(Request.QueryString["ZoneId"]);
                if (!string.IsNullOrEmpty(Request.QueryString["type"]) && type > 0)
                {
                    dt = advBll.GetAdvByTypeAndZoneId(type, zoneid);
                }
                else
                {
                    dt = advBll.GetTableADList(zoneid);
                }
            }
            else
            {
                if (!string.IsNullOrEmpty(Request.QueryString["type"]))
                {
                    dt = B_Advertisement.GetAdvByType(Convert.ToInt32(Request.QueryString["type"]));
                }
                else
                {
                    dt = B_Advertisement.GetAllAdvertisementList();
                }
            }

            Egv.DataSource = dt;
            Egv.DataBind();
        }
        public void DataBind(string key = "")
        {
            DataTable dt = bs.Select_All();

            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #10
0
    /// <summary>
    /// 管理所有的内容讨论
    /// </summary>
    public void Bind()
    {
        DataView dv = this.bpro.GetDiscussAll();

        Egv.DataSource = dv;
        Egv.DataBind();
    }
        public void MyBind()
        {
            DataTable dt = B_GuestBook.GetAllTips(DataConverter.CLng(this.HdnCateID.Value), Status, Key_T.Text.Trim(), 0);

            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #12
0
        public void DataBind(string key = "")
        {
            B_ModelField mll  = new B_ModelField();
            DataTable    list = mll.SelectTableName("ZL_CommonModel", "Tablename like 'ZL_Store_%'  order by GeneralID desc");

            switch (Request.QueryString["type"])
            {
            case "0":
                list.DefaultView.RowFilter = "Status=99";
                break;

            case "1":
                list.DefaultView.RowFilter = "Status=0";
                break;

            case "2":
                list.DefaultView.RowFilter = "Status=99 AND EliteLevel=1";
                break;

            default:
                break;
            }
            this.modeinfo  = list;
            Egv.DataSource = list.DefaultView.ToTable();
            Egv.DataBind();
        }
예제 #13
0
        private void DataBind(string key = "")
        {
            DataTable dt = new DataTable();

            if (!string.IsNullOrEmpty(Request.QueryString["type"]))
            {
                if (Request.QueryString["type"] == "1")
                {
                    dt = B_ADZone.Select_Bytype("饼状图");
                }
                if (Request.QueryString["type"] == "2")
                {
                    dt = B_ADZone.Select_Bytype("线状图");
                }
                if (Request.QueryString["type"] == "3")
                {
                    dt = B_ADZone.Select_Bytype("柱状图");
                }
            }
            else
            {
                dt = B_ADZone.SelectChart();
            }
            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #14
0
        public void DataBind(string key = "")
        {
            DataTable dt = surBll.GetAnswerByUID(Uid, Sid);

            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #15
0
        public void DataBind(string key = "")
        {
            DataTable dt = new DataTable();

            if (!string.IsNullOrEmpty(Request.QueryString["type"]))
            {
                int type = DataConverter.CLng(Request.QueryString["type"]);
                dt = B_ADZone.ADZone_ByCondition(" Where ShowTime=" + type + " order by ID desc");
                Egv.DataKeyNames = new string[] { "ZoneID" };
            }
            else
            {
                string adname = this.ViewState["AdName"].ToString();
                if (string.IsNullOrEmpty(adname))
                {
                    dt = B_A.SelectAdbuy();
                    Egv.DataKeyNames = new string[] { "ID" };
                }
                else
                {
                    dt = B_ADZone.ADZone_ByCondition(" Where ShowTime like @adname order by ID desc", new SqlParameter[] { new SqlParameter("adname", "%" + adname + "%") });
                    Egv.DataKeyNames = new string[] { "ID" };
                }
            }
            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #16
0
        public void DataBind(string key = "")
        {
            DataTable dt = bsource.GetSourceAll();

            Egv.DataSource = dt;
            Egv.DataBind();
        }
        public void DataBind(string key = "")
        {
            DataTable dt = wordBll.Sel();

            Egv.DataSource = dt;
            Egv.DataBind();
        }
        protected void MyBind(string key = "")
        {
            DataTable dt = contentBll.GetContentRecycle(NodeID);

            Egv.DataSource = dt;
            Egv.DataBind();
        }
        public void DataBind(string key = "")
        {
            DataTable dt = new DataTable();

            if (NodeID > 0)
            {
                dt = bll.GetProductnodidRecycler(NodeID);
            }
            else
            {
                dt = bll.GetProductAllRecycler();
            }
            if (!string.IsNullOrEmpty(Request.QueryString["keyWord"]))
            {
                dt = bll.GetProductnodidRecycler(0);
                if (DataConverter.CLng(Request.QueryString["keyWord"]) > 0)
                {
                    dt.DefaultView.RowFilter = "ID=" + DataConverter.CLng(Request.QueryString["keyWord"]);
                }
                else
                {
                    dt.DefaultView.RowFilter = "ProName like '%" + Request.QueryString["keyWord"] + "%'";
                }
                dt = dt.DefaultView.ToTable();
            }
            Egv.DataSource = dt;
            Egv.DataBind();
        }
        protected void MyBind(string key = "")
        {
            string    type   = Request.QueryString["type"];
            int       nodeid = DataConverter.CLng(Request.QueryString["NodeID"]);
            DataTable dt     = new DataTable();

            if (!string.IsNullOrEmpty(type))
            {
                switch (type)
                {
                case "0":
                    dt = commentBll.SeachAllComment();
                    break;

                case "1":
                    dt = commentBll.SeachAllComment(true);
                    break;

                case "2":
                    dt = commentBll.SeachAllComment(false);
                    break;
                }
            }
            else
            {
                dt = commentBll.SeachAllComment();
            }
            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #21
0
        void MyBind()
        {
            B_Content conbll = new B_Content();
            DataTable dt     = conbll.GetCommModelsByNodeId(Convert.ToInt32(Request.QueryString["nodeid"]));

            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #22
0
        //搜索店铺
        public void SearchStore(object sender, EventArgs e)
        {
            DataTable dt = cbll.SelBySkey(SKey.Text);

            modeinfo       = dt;
            Egv.DataSource = dt;
            Egv.DataBind();
        }
예제 #23
0
        public void DataBind(string key = "")
        {
            DataTable dt = bll.Select_All();

            dt.DefaultView.Sort = "Flow desc";
            Egv.DataSource      = dt.DefaultView.ToTable();
            Egv.DataBind();
        }
        public void DataBind(string key = "")
        {
            int       GID = Convert.ToInt32(Request.QueryString["GID"]);
            DataTable dt  = GetAllReply(GID);

            Egv.DataSource = dt;
            Egv.DataBind();
        }
 protected void Btn_DelAll_Click(object sender, EventArgs e)
 {
     if (bll.Page_ClearRecycle())
     {
         Egv.DataSource = bll.Page_GetRecycle();
         Egv.DataBind();
         function.WriteSuccessMsg("清空成功!");
     }
 }
예제 #26
0
        private void myBind()
        {
            DataTable dt = bc.Sel();
            DataView  dv = new DataView(dt);

            dv.Sort        = "AddTime desc";
            Egv.DataSource = dv;
            Egv.DataBind();
        }
        protected void DataBind(string key = "")
        {
            DataTable dt       = this.bfield.GetModelFieldList(Convert.ToInt32(HdnModel.Value));
            Call      commCall = new Call();
            DataTable table    = commCall.GetDTFromPage(dt, Page, ViewState, null, false);

            Egv.DataSource = table;
            Egv.DataBind();
        }
예제 #28
0
 public void BindList()
 {
     if (Request.QueryString["wid"] != null)
     {
         B_ProjectDiscuss bprodis = new B_ProjectDiscuss();
         int wid = DataConverter.CLng(Request.QueryString["wid"].Trim());
         Egv.DataSource = bprodis.GetDiscussByWid(wid);
         Egv.DataBind();
     }
 }
예제 #29
0
    /// <summary>
    /// 管理指定的内容表讨论
    /// </summary>
    /// <param name="wid"></param>
    public void BindWorkDis(int wid)
    {
        int      pid = 0;
        DataView dv  = this.bpro.GetDiscussByWid(wid);

        Egv.DataSource = dv;
        Egv.DataBind();
        pid = DataConverter.CLng(this.bwork.SelectWorkByWID(wid).ProjectID);
        HLpro.NavigateUrl = "WorkManage.aspx?Pid=" + pid;
    }
예제 #30
0
        public void DataBind(string key = "")
        {
            DataTable dt = pubBll.SelByType(2);

            if (!badmin.GetAdminLogin().RoleList.Contains(",1,"))
            {
                GetTable(dt, B_Role.GetPowerInfoByIDs(badmin.GetAdminLogin().RoleList));
            }
            Egv.DataSource = dt;
            Egv.DataBind();
        }