日期:2008-04-15 浏览次数:20381 次
后台处理此方法:
public int getindex (Object deptcode)
{
int ri=0;
DataView mydv=new depart().depart_getalldept();
for (int i=0;i<mydv.Count;i++)
{
if (mydv[i].Row["bmid"].ToString()==deptcode.ToString())
{
ri=i;
i=mydv.Count;
}
}
return ri;
}