/// <summary>
        /// 获取报告单明细信息
        /// </summary>
        /// <param name="rowIndex">行索引</param>
        /// <returns>成功返回报告单明细信息 失败返回null</returns>
        protected Neusoft.HISFC.Object.Preparation.Process GetProcessData(int row)
        {
            Neusoft.HISFC.Object.Preparation.Process process = new Neusoft.HISFC.Object.Preparation.Process();

            if (this.fsReport_Sheet1.Rows[row].Tag is Neusoft.HISFC.Object.Preparation.Stencil)
            {
                Neusoft.HISFC.Object.Preparation.Stencil stencil = this.fsReport_Sheet1.Rows[row].Tag as Neusoft.HISFC.Object.Preparation.Stencil;
                if (stencil == null)
                {
                    MessageBox.Show(Neusoft.NFC.Management.Language.Msg("获取当前选择的报告单明细信息时发生错误"));
                    return(null);
                }
                process.Preparation = this.preparation;
                process.ItemType    = stencil.Type.Name;
                process.ProcessItem = stencil.Item;
            }
            else if (this.fsReport_Sheet1.Rows[row].Tag is Neusoft.HISFC.Object.Preparation.Process)
            {
                process = this.fsReport_Sheet1.Rows[row].Tag as Neusoft.HISFC.Object.Preparation.Process;
            }

            process.ResultQty     = Neusoft.NFC.Function.NConvert.ToDecimal(this.fsReport_Sheet1.Cells[row, (int)ReportColumnEnum.ColNum].Text);   //实际值
            process.ResultStr     = this.fsReport_Sheet1.Cells[row, (int)ReportColumnEnum.ColDes].Text;
            process.IsEligibility = this.ConvertStringToBool(this.fsReport_Sheet1.Cells[row, (int)ReportColumnEnum.ColEli].Text);

            return(process);
        }
        private void fsStencil_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            int row = this.fsStencil_Sheet1.ActiveRowIndex;

            Neusoft.HISFC.Object.Preparation.Stencil info = this.fsStencil_Sheet1.Rows[row].Tag as Neusoft.HISFC.Object.Preparation.Stencil;

            if (info != null)
            {
                this.AddStencilToReport(info);
            }
        }
        /// <summary>
        /// 模版信息
        /// </summary>
        /// <param name="stencil">模版信息</param>
        private void AddStencilData(Neusoft.HISFC.Object.Preparation.Stencil stencil)
        {
            int row = this.fsStencil_Sheet1.Rows.Count;

            this.fsStencil_Sheet1.Rows.Add(row, 1);

            this.fsStencil_Sheet1.Cells[row, (int)StencilColumnEnum.ColType].Text = stencil.Type.Name;
            this.fsStencil_Sheet1.Cells[row, (int)StencilColumnEnum.ColItem].Text = stencil.Item.Name;
            this.fsStencil_Sheet1.Cells[row, (int)StencilColumnEnum.ColMin].Text  = stencil.StandardMin.ToString();
            this.fsStencil_Sheet1.Cells[row, (int)StencilColumnEnum.ColMax].Text  = stencil.StandardMax.ToString();
            this.fsStencil_Sheet1.Cells[row, (int)StencilColumnEnum.ColDes].Text  = stencil.StandardDes;

            this.fsStencil_Sheet1.Rows[row].Tag = stencil;
        }
        /// <summary>
        /// 根据选择的模版项目初始化录入信息
        /// </summary>
        /// <param name="stencil">模版信息</param>
        private void AddStencilToReport(Neusoft.HISFC.Object.Preparation.Stencil stencil)
        {
            if (this.hsStencilReport.ContainsKey(stencil.Type.Name + stencil.Item.Name))
            {
                MessageBox.Show(Neusoft.NFC.Management.Language.Msg("该项目已添加到报告单内"));
                return;
            }

            int row = this.fsReport_Sheet1.Rows.Count;

            this.fsReport_Sheet1.Rows.Add(row, 1);

            this.SetReportCellType(this.fsReport, this.fsReport_Sheet1, stencil.ItemType, row, (int)ReportColumnEnum.ColDes);

            this.fsReport_Sheet1.Cells[row, (int)ReportColumnEnum.ColType].Text = stencil.Type.Name;
            this.fsReport_Sheet1.Cells[row, (int)ReportColumnEnum.ColItem].Text = stencil.Item.Name;



            this.fsReport_Sheet1.Rows[row].Tag = stencil;

            this.hsStencilReport.Add(stencil.Type.Name + stencil.Item.Name, null);
        }