欢迎您来到 数字平台。 您尚未登录。[登录] [注册新用户]
当前位置: 论坛首页 / 栏目 文档与手册 / 文章 71

点击:9837[回复顶层] [树状] [详细]
[回复(需要先登录)] [引用(需要先登录)]普通文章第 1 楼
文章id: 71
MarcQuery测试用例

作者: xietao


MarcQuery测试用例。


发表时间: 2013-01-30 17:04:16



[回复(需要先登录)] [引用(需要先登录)]普通文章第 2 楼
文章id: 73
追加字段、选择字段

作者: xietao


using System;

using System.Collections;

using System.Collections.Generic;

using System.Text;

using System.Windows.Forms;

using DigitalPlatform.Script;

using dp2Circulation;

public class MyHost : MarcQueryHost

{

    public override void Main()

    {

        MarcRoot record = new MarcRoot(this.MarcRecord);

        record.ChildNodes.Add(new MarcField("200", "  ",SUBFLD + "aAAAA"));

        record.ChildNodes.Add(new MarcField("300", "  ", SUBFLD + "bBBBB"));

        

        MarcNodeList nodes = record.SelectNodes("200");

        MessageBox.Show(this.MainForm, nodes.Count.ToString());

        this.MarcRecord = record.Content;

        this.Changed = true;

    }

}



发表时间: 2013-01-30 17:08:04



[回复(需要先登录)] [引用(需要先登录)]普通文章第 3 楼
文章id: 74
修改字段名

作者: xietao


        MarcRoot record = new MarcRoot(this.MarcRecord);

        record.ChildNodes.Add(new MarcField("200", "  ",SUBFLD + "aAAAA"));

        record.ChildNodes.Add(new MarcField("300", "  ", SUBFLD + "bBBBB"));

        

        MarcNodeList nodes = record.SelectNodes("200");

        nodes.First().Name = "999";    // 修改了第一个200字段的字段名

        this.MarcRecord = record.Content;

        this.Changed = true;



发表时间: 2013-01-30 17:10:23



页 1 / 1
 

在线用户
(无) 
当前栏目在线用户数 0, 总在线用户数 2