package net.risesoft.microstrategy;
import com.microstrategy.web.objects.WebDisplayUnit;
import com.microstrategy.web.objects.WebObjectInfo;
/**
* MSTR报表
*
* @author gf
*
*/
public class MstrReportViewMode {
public void getReportViewMode(WebDisplayUnit wdu) {
if (wdu instanceof WebObjectInfo) {
WebObjectInfo wi = (WebObjectInfo) wdu;
if (wi.getSubType() == 768) {
// 表
System.out.println("表:reportViewMode=1");
} else if (wi.getSubType() == 769) {
// 图
System.out.println("图:reportViewMode=2");
} else {
// 图表774
System.out.println("图表:reportViewMode=3");
}
}
}
}