コード例 #1
0
ファイル: PrintHost.cs プロジェクト: pxmarc/dp2
 //
 /// <summary>
 /// 每一次扫描读者证条码完成后触发一次
 /// </summary>
 /// <param name="sender">事件触发者</param>
 /// <param name="e">事件参数</param>
 public virtual void OnReaderBarcodeScaned(object sender, ReaderBarcodeScanedEventArgs e)
 {
 }
コード例 #2
0
ファイル: OperHistory.cs プロジェクト: renyh1013/dp2
        /// <summary>
        /// 当读者证条码号扫入时被触发
        /// </summary>
        /// <param name="strReaderBarcode">读者证条码号</param>
        public void ReaderBarcodeScaned(string strReaderBarcode)
        {
            // 运行Script代码
            if (this.PrintAssembly != null)
            {
                ReaderBarcodeScanedEventArgs e = new ReaderBarcodeScanedEventArgs();
                e.ReaderBarcode = strReaderBarcode;

                this.PrintHostObj.MainForm = this.MainForm;
                this.PrintHostObj.Assembly = this.PrintAssembly;
                try
                {
                    this.PrintHostObj.OnReaderBarcodeScaned(this, e);
                }
                catch (Exception ex)
                {
                    string strErrorInfo = "<br/>单据打印脚本运行时出错: " + HttpUtility.HtmlEncode(ExceptionUtil.GetDebugText(ex));
                    AppendHtml(strErrorInfo);
                }
            }
        }
コード例 #3
0
ファイル: PrintHost.cs プロジェクト: paopaofeng/dp2
        // 
        /// <summary>
        /// 每一次扫描读者证条码完成后触发一次
        /// </summary>
        /// <param name="sender">事件触发者</param>
        /// <param name="e">事件参数</param>
        public virtual void OnReaderBarcodeScaned(object sender, ReaderBarcodeScanedEventArgs e)
        {

        }