异常详细信息: System.InvalidCastException: 指定的转换无效。源错误: 
行 146: SuntownBase.STFunction cnn=new SuntownBase.STFunction();
行 147: DataView dvsetup=cnn.OperateDBGetDataView("select   fromdate,todate from stsys.datesetup where name<>'上午' and name<>'下午'");
行 148: if(dvsetup.Count !=0)
行 149: {
行 150: for(int i=0;i<=dvsetup.Count-1 ;i++)
 
出错是在148行,我怎么也不知道哪里错了,帮忙看看啊