Beispiel #1
0
 private void LoadData()
 {
     if (ViewState["inviteId"] != null)
     {
         DataSet ds = ResumeService.GetList("inviteId = " + ViewState["inviteId"]);
         if (ds.Tables[0].Rows.Count > 0)
         {
             this.repInfo.DataSource = ds;
             repInfo.DataBind();
         }
         else
         {
             this.repInfo.DataSource = null;
             repInfo.DataBind();
         }
     }
     else
     {
         DataSet ds = ResumeService.GetList("");
         if (ds.Tables[0].Rows.Count > 0)
         {
             this.repInfo.DataSource = ds;
             repInfo.DataBind();
         }
         else
         {
             this.repInfo.DataSource = null;
             repInfo.DataBind();
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// 查询获取的简历数量
 /// </summary>
 /// <param name="inviteId"></param>
 /// <returns></returns>
 protected int GetResumeCount(object inviteId)
 {
     return(ResumeService.GetList("inviteId = " + inviteId).Tables[0].Rows.Count);
 }