在sql中有一张表结构如下:
id     fromstate1    totime1    fromstate2   totime2
1        0000         0202        0000         0202用DataGrid取数据出来,能否再对fromstate1等字段进行判断再输出如fromstate1为0000  为正常刷卡
  totime1           为未刷卡是否能用DataGrid,或者可以用别的其它方法