62,074
社区成员
发帖
与我相关
我的任务
分享
string sqlExec = "select * from HrbWeb_Person where Account='" + account.ToString() + "'";
DataSet dscyc = this.HrbGetDataSet(sqlExec);
if (dscyc.Tables[0].Rows[0]["Memo"].ToString().IndexOf("添加") == -1)
{
this.HrbMessageShow("您没有添加的记录的权限!!");
this.Response.End();
}
string sqlExec = "select * from HrbWeb_Person where Account='" + account.ToString() + "'";
DataSet dscyc = this.HrbGetDataSet(sqlExec);
if (dscyc.Tables[0].Rows[0]["Memo"].ToString().IndexOf("修改") == -1)
{
this.HrbMessageShow("您没有修改的记录的权限!!");
this.Response.End();
}
string sqlExec = "select * from HrbWeb_Person where Account='" + account.ToString() + "'";
DataSet dscyc = this.HrbGetDataSet(sqlExec);
if (dscyc.Tables[0].Rows[0]["Memo"].ToString().IndexOf("删除") == -1)
{
this.HrbMessageShow("您没有删除的记录的权限!!");
this.Response.End();
}
if (dscyc.Tables[0].Rows[0]["Memo"].ToString().IndexOf("修改") < 0)
{
this.HrbMessageShow("您没有添加的记录的权限!!");
this.Response.End();
}
string s = quanxian;
string[] array = s.Split(',');
int arrayLength = array.Length;
bool isOK = false;
for (int i = 0; i < arrayLength; i++)
{
if (array[i] == "添加")
{
isOK = true;
break;
}
}
if (!isOK)
{
WebMessage message3 = new WebMessage("提示!", "对不起,您没有此项操作的权限!<a href=\"default.aspx\">[返回]</a>", "ok.gif", HttpContext.Current.Request.Url.PathAndQuery);
}