jQuery MiniUI

 找回密码
 立即注册
查看: 2473|回复: 1
打印 上一主题 下一主题

关于datagrid 绑定JSOn格式 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2013-9-6 16:07:42 |只看该作者 |倒序浏览
[{"WaitingDate":"2012-10-22 00:00:00","WaitingTimeByIds":[{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_18"},{"AvgWaitingTimes":465,"ServiceStaffId":"cntaobaosandbox_c_6"}]},{"WaitingDate":"2012-11-10 00:00:00","WaitingTimeByIds":[{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_3"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_11"},{"AvgWaitingTimes":2512,"ServiceStaffId":"cntaobaosandbox_c_1"},{"AvgWaitingTimes":465,"ServiceStaffId":"cntaobaosandbox_c_19"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_20"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_2"}]},{"WaitingDate":"2012-10-23 00:00:00","WaitingTimeByIds":[{"AvgWaitingTimes":372,"ServiceStaffId":"cntaobaosandbox_c_15"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_19"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_6"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_11"},{"AvgWaitingTimes":1675,"ServiceStaffId":"cntaobaosandbox_c_2"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_6"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_14"}]},{"WaitingDate":"2012-10-22 00:00:00","WaitingTimeByIds":[{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_3"},{"AvgWaitingTimes":1675,"ServiceStaffId":"cntaobaosandbox_c_14"},{"AvgWaitingTimes":1675,"ServiceStaffId":"cntaobaosandbox_c_4"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_15"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_13"}]},{"WaitingDate":"2012-11-13 00:00:00","WaitingTimeByIds":[{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_2"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_11"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_12"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_14"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_13"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_7"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_5"}]},{"WaitingDate":"2012-10-11 00:00:00","WaitingTimeByIds":null},{"WaitingDate":"2012-11-20 00:00:00","WaitingTimeByIds":[{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_4"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_14"},{"AvgWaitingTimes":465,"ServiceStaffId":"cntaobaosandbox_c_6"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_4"},{"AvgWaitingTimes":465,"ServiceStaffId":"cntaobaosandbox_c_1"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_14"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_6"},{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_14"}]},{"WaitingDate":"2012-10-08 00:00:00","WaitingTimeByIds":[{"AvgWaitingTimes":186,"ServiceStaffId":"cntaobaosandbox_c_16"},{"AvgWaitingTimes":930,"ServiceStaffId":"cntaobaosandbox_c_13"},{"AvgWaitingTimes":279,"ServiceStaffId":"cntaobaosandbox_c_20"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_6"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_4"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_15"},{"AvgWaitingTimes":93,"ServiceStaffId":"cntaobaosandbox_c_17"}]}]

我绑定到datagrid上 只显示 WaitingDate 而不显示 AvgWaitingTimes和 ServiceStaffId 能不能支持呢?

Rank: 8Rank: 8

沙发
发表于 2013-9-6 16:39:56 |只看该作者
你的AvgWaitingTimes和 ServiceStaffId 不是在WaitingTimeByIds字段下的吗?

Archiver|普加软件

GMT+8, 2024-11-27 14:37 , Processed in 1.053891 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部