Exemplo n.º 1
0
        /// <summary>
        /// 显示业务明细
        /// [参数: ArrayList alDetail - 业务明细数组]
        /// </summary>
        /// <param name="terminalConfirmDetailList">业务明细数组</param>
        private void DisplayDetail(ArrayList terminalConfirmDetailList)
        {
            // 员工实体
            Neusoft.HISFC.Models.Base.Employee employee = new Employee();
            // 科室实体
            Neusoft.HISFC.Models.Base.Department department = new Neusoft.HISFC.Models.Base.Department();
            // 业务层


            Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm confirmIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm();

            // 清空
            this.neuSpreadItemDetail_SheetItemDetail.RowCount = 0;
            foreach (Neusoft.HISFC.Models.Terminal.TerminalConfirmDetail tempConfirmDetail in terminalConfirmDetailList)
            {
                // 增加一行新记录
                this.neuSpreadItemDetail_SheetItemDetail.AddRows(this.neuSpreadItemDetail_SheetItemDetail.RowCount, 1);
                // 取增加的行号
                this.row = this.neuSpreadItemDetail_SheetItemDetail.RowCount - 1;
                // 状态


                if (tempConfirmDetail.Status.ID.Equals("0"))
                {
                    this.neuSpreadItemDetail_SheetItemDetail.Cells[this.row, (int)DetailField.Status].Text = "正常";
                }
                else
                {
                    this.neuSpreadItemDetail_SheetItemDetail.Cells[this.row, (int)DetailField.Status].Text = "取消";
                }
                // 执行科室
                confirmIntegrate.GetDept(ref department, tempConfirmDetail.Apply.Item.ConfirmOper.Dept.ID);
                this.neuSpreadItemDetail_SheetItemDetail.Cells[this.row, (int)DetailField.ConfirmDepartment].Text = department.Name;
                // 执行时间
                this.neuSpreadItemDetail_SheetItemDetail.Cells[this.row, (int)DetailField.ConfirmTime].Text = tempConfirmDetail.Apply.ConfirmOperEnvironment.OperTime.ToString();
                // 确认人


                confirmIntegrate.GetEmployee(ref employee, tempConfirmDetail.Apply.ConfirmOperEnvironment.ID);
                this.neuSpreadItemDetail_SheetItemDetail.Cells[this.row, (int)DetailField.ConfirmEmployee].Text = employee.Name;
                this.neuSpreadItemDetail_SheetItemDetail.Columns[(int)DetailField.FreeQty].Visible = false; // 隐藏这列,如果发生多次确认后退费,次数不准,之所以保留是为了便与根据旧发票号查询当时的情况


                // 确认数量
                this.neuSpreadItemDetail_SheetItemDetail.Cells[this.row, (int)DetailField.ConfirmQty].Text = tempConfirmDetail.Apply.Item.ConfirmedQty.ToString();
                // 剩余数量
                this.neuSpreadItemDetail_SheetItemDetail.Cells[this.row, (int)DetailField.FreeQty].Text = tempConfirmDetail.FreeCount.ToString();

                // 保存Tag为实体


                this.neuSpreadItemDetail_SheetItemDetail.Rows[this.row].Tag = tempConfirmDetail;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 显示申请单


        /// [参数: ArrayList alApply - 申请单数组]
        /// </summary>
        /// <param name="alApply">申请单数组</param>
        private void DisplayApply(ArrayList alApply)
        {
            // 业务层


            Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm confirmIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Terminal.Confirm();
            // 员工实体
            Neusoft.HISFC.Models.Base.Employee employee = new Employee();
            // 科室实体
            Neusoft.HISFC.Models.Base.Department department = new Neusoft.HISFC.Models.Base.Department();

            this.neuSpreadItem_SheetItem.RowCount = 0;

            foreach (Neusoft.HISFC.Models.Terminal.TerminalApply tempTerminalApply in alApply)
            {
                // 增加一行


                this.neuSpreadItem_SheetItem.AddRows(this.neuSpreadItem_SheetItem.RowCount, 1);
                // 当前行号
                this.row = this.neuSpreadItem_SheetItem.RowCount - 1;
                // 状态


                if (tempTerminalApply.ItemStatus.Equals("1"))
                {
                    this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.Status].Text = "未执行";
                }
                else
                {
                    if (tempTerminalApply.AlreadyConfirmCount == 0)
                    {
                        this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.Status].Text = "未执行";
                    }
                    else
                    {
                        this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.Status].Text = "已执行";
                    }
                }
                // 项目名称
                this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.ItemName].Text = tempTerminalApply.Item.Item.Name;
                // 开立数量


                this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.Qty].Text = tempTerminalApply.Item.Item.Qty.ToString();
                // 剩余数量
                this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.FreeQty].Text = (tempTerminalApply.Item.Item.Qty - tempTerminalApply.AlreadyConfirmCount).ToString();
                // 开立医生


                confirmIntegrate.GetEmployee(ref employee, tempTerminalApply.Item.Order.Doctor.ID);
                this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.Doctor].Text = employee.Name;
                // 开立科室


                confirmIntegrate.GetDept(ref department, tempTerminalApply.Item.ExecOper.Dept.ID);
                this.neuSpreadItem_SheetItem.Cells[this.row, (int)ApplyField.Department].Text = department.Name;
                // 保存Tag为实体


                this.neuSpreadItem_SheetItem.Rows[this.row].Tag = tempTerminalApply;
                // 患者姓名


                this.neuTextBoxName.Text = tempTerminalApply.Patient.Name;
            }
            if (alApply.Count > 0)
            {
                Neusoft.HISFC.Models.Terminal.TerminalApply tempTerminalApply = (Neusoft.HISFC.Models.Terminal.TerminalApply)alApply[0];
                if (tempTerminalApply.PatientType == "1" || tempTerminalApply.PatientType == "4" || tempTerminalApply.PatientType == "5")
                {
                    //门诊 或体检患者


                    Neusoft.HISFC.Models.Registration.Register obj = new Neusoft.HISFC.Models.Registration.Register();
                    obj = confirmMgr.GetByClinic(tempTerminalApply.Patient.PID.ID);
                    if (obj == null)
                    {
                        MessageBox.Show("获取患者基本信息失败");
                        return;
                    }
                    tempTerminalApply.Patient.Sex.ID = obj.Sex.ID;
                }
                else if (tempTerminalApply.PatientType == "2")
                {//住院
                }
                else if (tempTerminalApply.PatientType == "3")
                {
                    //急诊
                }
                if (tempTerminalApply.Patient.Sex.ID == null)
                {
                    //this.neuTextBoxSex.Text = "未知";
                }
                else if (tempTerminalApply.Patient.Sex.ID.Equals("M"))
                {
                    this.neuTextBoxSex.Text = "男";
                }
                else if (tempTerminalApply.Patient.Sex.ID.Equals("F"))
                {
                    this.neuTextBoxSex.Text = "女";
                }
                else
                {
                    this.neuTextBoxSex.Text = "未知";
                }
            }
        }