Example #1
0
        /// <summary>
        /// 通过审核
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnVeri_Click(object sender, ImageClickEventArgs e)
        {
            WeiSha.WebControl.RowVerify img = (WeiSha.WebControl.RowVerify)sender;
            int index = ((GridViewRow)(img.Parent.Parent)).RowIndex;
            int id    = int.Parse(this.GridView1.DataKeys[index].Value.ToString());

            Song.Entities.Links link = Business.Do <ILinks>().LinksSingle(id);
            Business.Do <ILinks>().LinksVerify(link);
            BindData(null, null);
        }
Example #2
0
 /// <summary>
 /// 通过审核
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btnVeri_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         WeiSha.WebControl.RowVerify img = (WeiSha.WebControl.RowVerify)sender;
         int index = ((GridViewRow)(img.Parent.Parent)).RowIndex;
         int id    = int.Parse(this.GridView1.DataKeys[index].Value.ToString());
         Business.Do <IContents>().ArticlePassVerify(id, Extend.LoginState.Admin.CurrentUser.Acc_Name);
         BindData(null, null);
     }
     catch (Exception ex)
     {
         Message.ExceptionShow(ex);
     }
 }