回复 3楼ehecd的帖子
这个可通过WebViewer的LocateDataSource事件进行赋值
例如:
- void Document_LocateDataSource(object sender, LocateDataSourceEventArgs args)
- {
- try
- {
- if (args.DataSourceName == "WfObjects")
- {
- switch (args.DataSetName)
- {
- case "BPDataSet":
- args.Data = new[] {_bPDTO};
- break;
- case "InstanceFields":
- args.Data = new[] {CreateInstanceFieldsClassObject()};
- break;
- default:
- break;
- }
- }
- else
- {
- if (_responseDataSet != null && _responseDataSet.Tables.Contains(args.DataSetName))
- {
- args.Data = _responseDataSet.Tables[args.DataSetName];
- }
- }
- }
- catch (Exception exception)
- {
- Response.Write("Error: " + exception.Message);
- }
- }
复制代码 |