Beispiel #1
0
        /// <summary>
        /// 打印预览
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="neuObject"></param>
        /// <returns></returns>
        protected override int OnPrintPreview(object sender, object neuObject)
        {
            ArrayList alPatientInfo = new ArrayList();

            alPatientInfo = this.SelectPatient();
            if (alPatientInfo.Count == 0)
            {
                return(-1);
            }
            ucFeeAlertQueryPrintPanel ucPanel = new ucFeeAlertQueryPrintPanel();

            ucPanel.AlPatientInfo = alPatientInfo;
            ucPanel.PrintView();
            return(1);
            //return base.PrintPreview(sender, neuObject);
        }
Beispiel #2
0
        /// <summary>
        /// 打印
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="neuObject"></param>
        /// <returns></returns>
        protected override int OnPrint(object sender, object neuObject)
        {
            ArrayList alPatientInfo = new ArrayList();

            alPatientInfo = this.SelectPatient();
            if (alPatientInfo.Count == 0)
            {
                MessageBox.Show("请选择需打印通知单的患者");
                return(-1);
            }
            ucFeeAlertQueryPrintPanel ucPanel = new ucFeeAlertQueryPrintPanel();

            ucPanel.AlPatientInfo = alPatientInfo;
            ucPanel.Print();
            return(1);
            //return base.OnPrint(sender, neuObject);
        }