Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
任延华 authored Jul 15, 2018
1 parent 86dc086 commit f733f1f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MARCScriptLib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# MARCScriptLib

Marc转换脚本集锦
27 changes: 27 additions & 0 deletions MARCScriptLib/select/CheckContainHanzi.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;
using System.Text;
using System.Xml;

using dp2Circulation;
using DigitalPlatform.Marc;
using DigitalPlatform.Script;
using DigitalPlatform.Text;

public class CheckContainHanzi : MarcQueryHost
{
// 将包含汉字的记录选中
public override void OnRecord(object sender, StatisEventArgs e)
{
ListViewItem item = (ListViewItem)this.UiItem;

if (StringUtil.ContainHanzi(this.MarcRecord.Text))
item.Selected = true;
else
item.Selected = false;
}
}

6 changes: 6 additions & 0 deletions MARCScriptLib/select/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## CheckContainHanzi.cs 将包含汉字的Marc记录选中

一些说明

## 第2个cs

0 comments on commit f733f1f

Please sign in to comment.