Example #1
0
        string BuildPendingBiblioSummary(string strItemBarcode,
            string strItemRecPath)
        {
            if (string.IsNullOrEmpty(strItemBarcode) == true)
                return "";
            string strCommand = "B:" + strItemBarcode + "|" + strItemRecPath;
            if (this.GetSummary == null)
                return strCommand;

            GetSummaryEventArgs e = new GetSummaryEventArgs();
            e.Command = strCommand;
            this.GetSummary(this, e);
            return e.Summary;
        }
Example #2
0
        string BuildPendingReaderSummary(string strReaderBarcode)
        {
            if (string.IsNullOrEmpty(strReaderBarcode) == true)
                return "";
            string strCommand = "P:" + strReaderBarcode;
            if (this.GetSummary == null)
                return strCommand;

            GetSummaryEventArgs e = new GetSummaryEventArgs();
            e.Command = strCommand;
            this.GetSummary(this, e);
            return e.Summary;
        }
Example #3
0
 void OperLogForm_GetSummary(object sender, GetSummaryEventArgs e)
 {
     if (StringUtil.HasHead(e.Command, "B:") == true)
     {
         e.Summary = this.m_webExternalHost.GetSummary(e.Command.Substring(2), false);
     }
     else if (StringUtil.HasHead(e.Command, "P:") == true)
     {
         e.Summary = this.m_webExternalHost.GetPatronSummary(e.Command.Substring(2));
     }
     else
         e.Summary = "不支持的命令 '" + e.Command + "'";
 }