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

点击:668

[回复顶层(需要先登录)] [表状] [详细]
[回复(需要先登录)] [引用(需要先登录)]普通文章跟帖
文章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



  • 普通文章 MarcQuery测试用例 xietao 2013-01-30 17:04:16[点击:9877]
  • 普通文章 追加字段、选择字段 xietao 2013-01-30 17:08:04 (ID:73) [点击:668]
  • 普通文章 修改字段名 xietao 2013-01-30 17:10:23 (ID:74) [点击:907]
  •  

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