我正在尝试使用以下代码从Microsoft Exchange Server获取任务详细信息
public List readTask() throws Exception{
//Create the extended property definition.
try {
Task t=new Task(service);
ExtendedPropertyDefinition taskCompleteProp = new
ExtendedPropertyDefinition(DefaultExtendedPropertySet.Task, 0x0000811C,
MapiPropertyType.Boolean);
//Create the search filter.
SearchFilter.IsEqualTo filter = new
SearchFilter.IsEqualTo(taskCompleteProp, false);
//Get the tasks.
FindItemsResults<Item> tasks =
service.findItems(WellKnownFolderName.Tasks, filter, new ItemView(50));
service.loadPropertiesForItems(tasks.getItems(), new PropertySet());
for(Item task:tasks){
task.load();
System.out.println(task.getSubject());
System.out.println(task.getBody());
}
return null;
}
我应该如何开始任务并在for循环中执行特定任务
答案 0 :(得分:0)
这真的很简单。
<div id="canvas"/>
<script>
var svg = d3.select(document.getElementById('canvas')).append("svg")
svg.append("rect").attr("x",10).attr("y", 10).attr("width", 100).attr("height", 100)
.style("fill", "red")
.style("stroke", "#000")
svg.append('div')
.style('position','absolute')
.style('top', "10px")
.style('left', "10px")
.style('z-index', 9999)
.style('width', "120px")
.style('height', "50px")
.style('background-color', "#ff0")
</script>