コード例 #1
0
 //根据保密级别查询
 private void FindBySecrecyLevel()
 {
     try
     {
         ViewState["page"] = 9;
         int selevel = LevelChange(dCondition.SelectedText.Trim());
         List <Common.Entities.Achievement> list = achieve.FindBySecrecyLevel(selevel, Convert.ToInt32(Session["SecrecyLevel"]));
         Grid_Achievementt.RecordCount = list.Count();
         if (list != null)
         {
             Grid_Achievementt.DataSource = list.Skip(Grid_Achievementt.PageIndex * Grid_Achievementt.PageSize).Take(Grid_Achievementt.PageSize);
             Grid_Achievementt.DataBind();
         }
         else
         {
             return;
         }
     }
     catch (Exception ex)
     {
         pm.SaveError(ex, this.Request);
     }
 }