예제 #1
0
    private void BindData()
    {
        if (ddlLottery.Items.Count < 1)
        {
            return;
        }

        DataTable dt = new DAL.Views.V_ExpertsTrys().Open("", "SiteID = " + _Site.ID.ToString() + (ddlLottery.SelectedValue == "0" ? "" : " and LotteryID = " + Shove._Web.Utility.FilteSqlInfusion(ddlLottery.SelectedValue)) + " and HandleResult = " + HandleResult.Trying.ToString(), "");

        if (dt == null)
        {
            PF.GoError(ErrorNumber.DataReadWrite, "数据库繁忙,请重试", "Admin_ExpertsTrys");

            return;
        }

        PF.DataGridBindData(g, dt, gPager);
    }
 private void BindData()
 {
     if (this.ddlLottery.Items.Count >= 1)
     {
         string[] strArray = new string[] { "SiteID = ", base._Site.ID.ToString(), (this.ddlLottery.SelectedValue == "0") ? "" : (" and LotteryID = " + Utility.FilteSqlInfusion(this.ddlLottery.SelectedValue)), " and HandleResult = ", ((short)0).ToString() };
         DataTable dt = new Views.V_ExpertsTrys().Open("", string.Concat(strArray), "");
         if (dt == null)
         {
             PF.GoError(4, "数据库繁忙,请重试", "Admin_ExpertsTrys");
         }
         else
         {
             PF.DataGridBindData(this.g, dt, this.gPager);
         }
     }
 }