62,267
社区成员
发帖
与我相关
我的任务
分享
protected bool checked_eid()
{
bool check_id = false;
string emp_id = Session["EmployeeID"].ToString();
int rid = Convert.ToInt32(Request.QueryString["id"]);
DataSet ds_eid = af.find_isok(rid);
if (ds_eid.Tables[0].Rows.Count > 0)
{
ArrayList list = new ArrayList();
for (int i = 0; i < ds_eid.Tables[0].Rows.Count; i++)
{
list.Add(ds_eid.Tables[0].Rows[i][1]);
}
for (int j = 0; j < list.Count; j++)
{
string emp = list[j].ToString();
if (emp == emp_id)
{
check_id=true;
}
}
}
else
{
check_id=false;
}
ds_eid.Dispose();
return check_id;
}