From f733f1f7d9e6ff55d02b54cc6b71d98c205a9d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E5=BB=B6=E5=8D=8E?= Date: Sun, 15 Jul 2018 12:30:10 +0800 Subject: [PATCH] Add files via upload --- MARCScriptLib/README.md | 3 +++ MARCScriptLib/select/CheckContainHanzi.cs | 27 +++++++++++++++++++++++ MARCScriptLib/select/README.md | 6 +++++ 3 files changed, 36 insertions(+) create mode 100644 MARCScriptLib/README.md create mode 100644 MARCScriptLib/select/CheckContainHanzi.cs create mode 100644 MARCScriptLib/select/README.md diff --git a/MARCScriptLib/README.md b/MARCScriptLib/README.md new file mode 100644 index 00000000..d0a46946 --- /dev/null +++ b/MARCScriptLib/README.md @@ -0,0 +1,3 @@ +# MARCScriptLib + +Marc转换脚本集锦 diff --git a/MARCScriptLib/select/CheckContainHanzi.cs b/MARCScriptLib/select/CheckContainHanzi.cs new file mode 100644 index 00000000..d44421c5 --- /dev/null +++ b/MARCScriptLib/select/CheckContainHanzi.cs @@ -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; + } +} + diff --git a/MARCScriptLib/select/README.md b/MARCScriptLib/select/README.md new file mode 100644 index 00000000..a471ece2 --- /dev/null +++ b/MARCScriptLib/select/README.md @@ -0,0 +1,6 @@ +## CheckContainHanzi.cs 将包含汉字的Marc记录选中 + +一些说明 + +## 第2个cs +