本文整理汇总了C#中LibraryChannel.GetCommentInfo方法的典型用法代码示例。如果您正苦于以下问题:C# LibraryChannel.GetCommentInfo方法的具体用法?C# LibraryChannel.GetCommentInfo怎么用?C# LibraryChannel.GetCommentInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LibraryChannel
的用法示例。
在下文中一共展示了LibraryChannel.GetCommentInfo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadData
// 装载数据
public override bool LoadData()
{
string strError = "";
int nRet = 0;
BiblioInfo info = this.BiblioInfo;
string strRecPath = this.BiblioInfo.RecPath;
if (string.IsNullOrEmpty(info.OldXml) == true)
{
lock (syncRoot)
{
channel = this.Container.MainForm.GetChannel();
}
try
{
// 显示 正在处理
this.HTML = GetWaitingHtml("正在获取 "+this.DbType+" 记录 " + strRecPath);
ShowData();
byte [] baTimestamp = null;
string strOutputRecPath = "";
string strBiblio = "";
string strBiblioRecPath = "";
string strXml = "";
// 获得记录
channel.Timeout = new TimeSpan(0, 0, 5);
long lRet = 0;
if (this.DbType == "item")
{
lRet = channel.GetItemInfo(
this.Stop,
"@path:" + strRecPath,
"xml",
out strXml,
out strOutputRecPath,
out baTimestamp,
"",
out strBiblio,
out strBiblioRecPath,
out strError);
}
else if (this.DbType == "order")
{
lRet = channel.GetOrderInfo(
this.Stop,
"@path:" + strRecPath,
"xml",
out strXml,
out strOutputRecPath,
out baTimestamp,
"",
out strBiblio,
out strBiblioRecPath,
out strError);
}
else if (this.DbType == "issue")
{
lRet = channel.GetIssueInfo(
this.Stop,
"@path:" + strRecPath,
"xml",
out strXml,
out strOutputRecPath,
out baTimestamp,
"",
out strBiblio,
out strBiblioRecPath,
out strError);
}
else if (this.DbType == "comment")
{
lRet = channel.GetCommentInfo(
this.Stop,
"@path:" + strRecPath,
"xml",
out strXml,
out strOutputRecPath,
out baTimestamp,
"",
out strBiblio,
out strBiblioRecPath,
out strError);
}
else if (this.DbType == "patron")
{
string[] results = null;
// 获得读者记录
lRet = channel.GetReaderInfo(
this.Stop,
"@path:" + strRecPath,
"xml",
out results,
out strOutputRecPath,
out baTimestamp,
out strError);
if (lRet == 1)
{
//.........这里部分代码省略.........
示例2: SearchBiblioRecPath
// 根据册记录路径,检索出从属的书目记录路径。
public static int SearchBiblioRecPath(
Stop stop,
LibraryChannel Channel,
string strDbType,
string strItemRecPath,
out string strBiblioRecPath,
out string strError)
{
strError = "";
strBiblioRecPath = "";
string strItemText = "";
string strBiblioText = "";
byte[] item_timestamp = null;
long lRet = 0;
if (strDbType == "item")
lRet = Channel.GetItemInfo(
stop,
"@path:" + strItemRecPath,
null,
out strItemText,
out strItemRecPath,
out item_timestamp,
"recpath",
out strBiblioText,
out strBiblioRecPath,
out strError);
else if (strDbType == "comment")
lRet = Channel.GetCommentInfo(
stop,
"@path:" + strItemRecPath,
// "",
null,
out strItemText,
out strItemRecPath,
out item_timestamp,
"recpath",
out strBiblioText,
out strBiblioRecPath,
out strError);
else if (strDbType == "order")
lRet = Channel.GetOrderInfo(
stop,
"@path:" + strItemRecPath,
// "",
null,
out strItemText,
out strItemRecPath,
out item_timestamp,
"recpath",
out strBiblioText,
out strBiblioRecPath,
out strError);
else if (strDbType == "issue")
lRet = Channel.GetIssueInfo(
stop,
"@path:" + strItemRecPath,
// "",
null,
out strItemText,
out strItemRecPath,
out item_timestamp,
"recpath",
out strBiblioText,
out strBiblioRecPath,
out strError);
else
throw new Exception("未知的DbType '" + strDbType + "'");
if (lRet == -1)
return -1; // error
return (int)lRet; // not found
}