62,243
社区成员




protected void GV_LS_RowDataBound(object sender, GridViewRowEventArgs e)
{
CommData.GVRowDataBound(lblCurrentPage, GV_LS, e, lnkbtnFrist, lnkbtnPre, lnkbtnNext, lnkbtnLast, 4, TableString.F_LS_Name); //绑定gridview1主页上的
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView row = (DataRowView)e.Row.DataItem;
e.Row.ID = GV_LS.DataKeys[e.Row.RowIndex]["LS_ID"].ToString();//LS_ID为唯一能够标识一条记录的字段
if (e.Row.ID != null && row != null)
{
e.Row.Cells[2].Attributes.Add("onclick", "javascript:MaskDialog.show('');"
+ "setBoxTitle('【系统管理—角色管理信息】','" + e.Row.Cells[0].Text + "');"
+ "MaskDialog.$$('boxIframe').src=boxSRC;"
+ "MaskDialog.$$('boxIframe').style.display='block'");
CommData.GVBind(TableString.T_SZ_PersonnelRole, "where " + TableString.F_PR_ID + "=" + e.Row.Cells[0].Text + " order by " + TableString.F_PR_ID + "", LbRowsRM, GV_RM, TableString.F_PR_ID, DDLRM, LbRM, dhlRM, DigText.Str_Personne + DigText.Str_Role, "");
}
}
}
protected void GridView1_ItemDataBound(object sender, DataGridItemEventArgs e)
{
e.Item.Cells[1].Attributes.Add("onclick", "javascript:alert('" + e.Item.Cells[1].Text + "');");
}