Пример #1
0
        /// <summary>
        /// 按病历号检索发票基本信息
        /// </summary>
        public int QueryInvoiceInfromationByCardNo()
        {
            // 变量定义
            int      intReturn = 0;
            string   strCode   = "";
            DateTime dtFrom    = DateTime.MinValue;
            DateTime dtTo      = DateTime.MaxValue;

            System.Data.DataSet dsResult = new DataSet();
            Neusoft.HISFC.BizLogic.Fee.Outpatient outpatient = new Neusoft.HISFC.BizLogic.Fee.Outpatient();

            // 获取检索码
            intReturn = this.GetInput(ref strCode);
            if (intReturn == -1)
            {
                this.frmWait.Hide();
                return(-1);
            }

            // 获取时间范围
            this.GetQueryDate(ref dtFrom, ref dtTo);

            // 执行查询
            intReturn = outpatient.QueryBalancesByCardNO(strCode, dtFrom, dtTo, ref dsResult);
            if (-1 == intReturn)
            {
                this.frmWait.Hide();
                MessageBox.Show("获取发票基本信息失败" + outpatient.Err);
                return(-1);
            }

            // 设置查询结果
            this.fpSpread1_Sheet1.DataSource = dsResult;
            this.fpSpread1_Sheet2.DataSource = null;
            this.fpSpread1_Sheet3.DataSource = null;

            return(1);
        }