Ejemplo n.º 1
0
 protected override void m_mthSetPatientFormInfo(iCare.clsPatient p_objSelectedPatient)
 {
 }
Ejemplo n.º 2
0
        protected override void m_mthSetPatientFormInfo(iCare.clsPatient p_objSelectedPatient)
        {
            try
            {
                ListViewItem lviNewItem;

                m_objSelectedPatient = p_objSelectedPatient;

                m_strInPatientID   = p_objSelectedPatient.m_StrInPatientID;
                m_strInPatientDate = p_objSelectedPatient.m_ObjInBedInfo.m_ObjLastSessionInfo.m_DtmInDate.ToString("yyyy-MM-dd HH:mm:ss");
                //先清除控件中的现有数据。
                InitControls();
                this.lsvCheckRecord.Items.Clear();
                this.lsvApplicationID.Items.Clear();

                //获取病人的检查记录
                //加载当前病人的申请记录
                mImageReportDomain.m_lngGetImageReportByPatientID(m_strInPatientID, out m_ImageReportArr);

                string[] m_lviItem;
                if (m_ImageReportArr != null)
                {
                    foreach (ImageReport m_ImageReport in m_ImageReportArr)
                    {
                        if (m_ImageReport == null)
                        {
                            continue;
                        }

                        if (m_ImageReport.m_dteRequestDateTime != DateTime.MinValue)
                        {
                            m_lviItem    = new String[4];
                            m_lviItem[0] = m_ImageReport.m_dteRequestDateTime.ToString("yyyy-MM-dd HH:mm:ss");
                            switch (m_ImageReport.m_strCheckType)
                            {
                            case "0":
                                m_lviItem[1] = "DR";
                                break;

                            case "1":
                                m_lviItem[1] = "CT";
                                break;

                            case "2":
                                m_lviItem[1] = "B超";
                                break;

                            default:
                                m_lviItem[1] = "未知类型";
                                break;
                            }
                            m_lviItem[2] = m_ImageReport.HasReport;
                            m_lviItem[3] = m_ImageReport.m_strApplicationID;

                            lviNewItem = new ListViewItem(m_lviItem);
                        }
                        else
                        {
                            continue;
                        }


                        this.lsvCheckRecord.Items.Add(lviNewItem);

                        lviNewItem.Tag = m_ImageReport;

                        //
                        lviNewItem = new ListViewItem(new string[] { m_ImageReport.m_strApplicationID });
                        this.lsvApplicationID.Items.Add(lviNewItem);
                    }
                }
            }

            catch
            {
            }
        }
Ejemplo n.º 3
0
        protected override void m_mthSetPatientFormInfo(iCare.clsPatient p_objSelectedPatient)
        {
            try
            {
                ListViewItem lviNewItem;

                m_objSelectedPatient = p_objSelectedPatient;

                m_strInPatientID   = p_objSelectedPatient.m_StrInPatientID;
                m_strInPatientDate = p_objSelectedPatient.m_ObjInBedInfo.m_ObjLastSessionInfo.m_DtmInDate.ToString("yyyy-MM-dd HH:mm:ss");

                //先清除控件中的现有数据。
                InitControls();
                this.lsvCheckRecord.Items.Clear();
                this.lsvApplicationID.Items.Clear();

                //获取病人的检查记录
                //加载当前病人的申请记录
                mImageReportDomain.m_lngGetImageBookingByPatientID(m_strInPatientID, out m_ImageBookingArr);

                if (m_ImageBookingArr != null)
                {
                    foreach (ImageBooking m_ImageBooking in m_ImageBookingArr)
                    {
                        if (m_ImageBooking == null)
                        {
                            continue;
                        }

//						//当数据库中申请日期为空时,界面中也显示为空。不显示成默认的日期
//						if(m_ImageBooking.m_dteRequestDateTime!=DateTime.MinValue )
//							lviNewItem = new ListViewItem(new string[]{m_ImageBooking.m_dteRequestDateTime.ToString(),
//																	  m_ImageBooking.m_strCheckType,m_ImageBooking.HasBooking,
//																	  m_ImageBooking.m_strApplicationID});
//						else
//							lviNewItem = new ListViewItem(new string[]{"",
//																	  m_ImageBooking.m_strCheckType,m_ImageBooking.HasBooking,
//																	  m_ImageBooking.m_strApplicationID});
                        if (m_ImageBooking.m_dteRequestDateTime != DateTime.MinValue)
                        {
                            string[] m_strItem;
                            m_strItem    = new String[4];
                            m_strItem[0] = m_ImageBooking.m_dteRequestDateTime.ToString("yyyy-MM-dd HH:mm:ss");
                            switch (m_ImageBooking.m_strCheckType)
                            {
                            case "0":
                                m_strItem[1] = "DR";
                                break;

                            case "1":
                                m_strItem[1] = "CT";
                                break;

                            case "2":
                                m_strItem[1] = "B超";
                                break;

                            default:
                                m_strItem[1] = "未知类型";
                                break;
                            }
                            m_strItem[2] = m_ImageBooking.HasBooking;
                            m_strItem[3] = m_ImageBooking.m_strApplicationID;

                            lviNewItem = new ListViewItem(m_strItem);
                        }
                        else
                        {
                            continue;
                        }

                        this.lsvCheckRecord.Items.Add(lviNewItem);

                        lviNewItem.Tag = m_ImageBooking;

                        //
                        lviNewItem = new ListViewItem(new string[] { m_ImageBooking.m_strApplicationID });
                        this.lsvApplicationID.Items.Add(lviNewItem);
                    }
                }
            }

            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 4
0
        protected override void m_mthSetPatientFormInfo(iCare.clsPatient p_objSelectedPatient)
        {
            m_lblInPatientDate.Text = p_objSelectedPatient.m_DtmSelectedInDate.ToString("yyyy年MM月dd日 HH:mm:ss");

            m_lsvDeactiveInfo.Items.Clear();
        }