Previous: Implementing RDLC Report display in MVC view
In the last pass, Since I do not know how to instantiate the IxxxAppService.cs interface of the ABP in the aspx.cs background, I have taken the view page to store the queried data in a hidden domain of aspx, then get it in the Aspx.cs background event and assign the value to the ReportViewer control.
This approach actually affects performance, the query data will be stored and converted to the page many times, and when the amount of data is large, the page will not load the data.
I didn't know it later. The ABP framework actually provides a global approach specifically for acquiring the current set of IOC containers and finding instance objects through the incoming interface generics. The code is as follows:
var obj = abp.dependency.iocmanager.instance.resolve<ixxxappservice> ();
Among them, Ixxxappservice for its own API interface class.
My code reference in this project is as follows:
var _dbserver = abp.dependency.iocmanager.instance.resolve<idbserverappservice>= _ Dbserver.executegettable (Dbserid, SQLSTR);
Implementing the RDLC report presentation in the MVC View (supplemental)