/// <summary> /// ��ȡ������ϢId /// </summary> /// <param name="rankKeyId">�����ؼ���Id</param> /// <param name="rank">����</param> /// <param name="moduleName">ģ������</param> /// <returns></returns> protected long GetRankingInfoId(long rankKeyId, short rank, string moduleName) { if (rankKeyId <= 0) return 0; if (rank <= 0 || rank > XYECOM.Configuration.Ranking.Instance.Total) return 0; Model.RankingInfo rankingInfo = new Business.Ranking().GetItem(rankKeyId, rank); if (rankingInfo == null) return 0; long infoId = rankingInfo.GetInfoId(moduleName); return infoId; }
protected void btnDelete_Click(object sender, EventArgs e) { string ids = ""; foreach (GridViewRow GR in this.gvList.Rows) { if (((CheckBox)(GR.FindControl("chkExport"))).Checked == true) { ids += "," + gvList.DataKeys[GR.DataItemIndex].Value.ToString(); } } if (ids.IndexOf(",") == 0) { ids = ids.Substring(1); int i = new Business.Ranking().Delete(ids); if (i >= 0) BindData(); else Alert("ɾ��ʧ�ܣ�"); } }