// 首先获取到SPWeb对象web
SPListCollection lists = web.Lists;
SPList scoreList = lists["Score"];
SPList passList = lists["Pass"];
SPQuery query = new SPQuery();
query.Query = "<Where><Geq><FieldRef Name='Score'/>" +
"<Value Type='Number'>60</Value></Geq></Where>";
SPListItemCollection items = scoreList.GetItems(query);
foreach(SPListItem item in items)
{
string title = item["Title"] + "(合格)";
item["Title"] = title;
item.Update();
}
SPListItem newItem = passList.Items.Add();
newItem["Count"] = items.Count;
newItem.Update();
SPListCollection lists = web.Lists;
SPList scoreList = lists["Score"];
SPList passList = lists["Pass"];
SPQuery query = new SPQuery();
query.Query = "<Where><Geq><FieldRef Name='Score'/>" +
"<Value Type='Number'>60</Value></Geq></Where>";
SPListItemCollection items = scoreList.GetItems(query);
foreach(SPListItem item in items)
{
string title = item["Title"] + "(合格)";
item["Title"] = title;
item.Update();
}
SPListItem newItem = passList.Items.Add();
newItem["Count"] = items.Count;
newItem.Update();
0
0
Go中定时器实现原理及源码解析
Go语言实现布谷鸟过滤器
详解Go语言调度循环源码实现
Go语言中时间轮的实现
详解Go语言I/O多路复用netpoller模型
详解Go中内存分配源码实现
Go中由WaitGroup引发对内存对齐思考
【分享】java精品实战教程
nginx实战教程