回复 1楼大额头撞树的帖子
HTML5 Viewer 动态绑定数据方法,请参考附件,关键代码如下:
- protected override void OnLocateCredentialsHandler(object sender,LocateCredentialsEventArgs args)
- {
- args.Password = "1234";
- }
- protected override void OnLocateDataSourceHandler(object sender, LocateDataSourceEventArgs args)
- {
- if (args.DataSourceName == "DS_Department" && args.DataSetName == "Department")
- {
- args.Data = GetDepartment();
- }
- if (args.DataSourceName == "DS_Employee" && args.DataSetName == "Employee")
- {
- args.Data = GetEmployee();
- }
- }
复制代码
|