大佬,想办法实现啦~代码如下:- function goToNextPage(listviewName) {
- var location = Forguncy.Page.getListView(listviewName)._grid.getLocationString();
- var index = Forguncy.ForguncyData.pageingInfoList.GetPageIndex(location);
- goToPage(listviewName,index);
- }
- function goToFirstPage(listviewName) {
- goToPage(listviewName, 0);
- }
- function goToPage(listviewName, index) {
- var location = Forguncy.Page.getListView(listviewName)._grid.getLocationString();
- var limit = Forguncy.ForguncyData.pageingInfoList.GetLimit(location);
- var params = {
- targetPageKind: 2,
- ListviewName: listviewName,
- Limit: limit,
- TargetPageIndex: index
- };
- var command = new Forguncy.GoToPageCommand();
- command.CommandExecutingInfo = { runTimePageName: "p" };
- command.goto(params);
- }
- setInterval(function(){
- if($("div[fgcname='pageBtn'] input[id*='pcurrentPageIndexID']").val() == $("div[fgcname='pageBtn'] span[id*='pcurrentPageCountID']").text().trim()){
- goToFirstPage("表格1");
- }else{
- goToNextPage("表格1");
- };
- if($("div[fgcname='pageBtn2'] input[id*='pcurrentPageIndexID']").val() == $("div[fgcname='pageBtn2'] span[id*='pcurrentPageCountID']").text().trim()){
- goToFirstPage("表格2");
- }else{
- goToNextPage("表格2");
- };
- }, 5000);
复制代码 运行效果:
工程文件:
|