Ejemplo n.º 1
0
        public frmInHospitalPatient(DataTable p_dtbRecord)
        {
            InitializeComponent();
            ListViewItem     tempItem;
            clsBrithdayToAge m_objAge = new clsBrithdayToAge();

            foreach (DataRow dr in p_dtbRecord.Rows)
            {
                tempItem = new ListViewItem(dr["inpatientid_chr"].ToString().Trim());
                tempItem.SubItems.Add(dr["lastname_vchr"].ToString().Trim());
                tempItem.SubItems.Add(dr["sex_chr"].ToString().Trim());
                tempItem.SubItems.Add(m_objAge.m_strGetAge(dr["birth_dat"]));
                tempItem.SubItems.Add(dr["status"].ToString().Trim());
                tempItem.SubItems.Add(dr["icd10diagtext_vchr"].ToString().Trim());
                tempItem.SubItems.Add(Convert.ToDateTime(dr["inpatient_dat"]).ToString("yyyy-MM-dd HH:mm"));
                tempItem.SubItems.Add(dr["inpatientcount_int"].ToString().Trim());
                tempItem.SubItems.Add(dr["pstatus"].ToString().Trim());
                tempItem.SubItems.Add(dr["phone"].ToString().Trim());
                tempItem.SubItems.Add(dr["address"].ToString().Trim());
                tempItem.Tag             = dr["registerid_chr"].ToString().Trim();
                tempItem.SubItems[0].Tag = dr["patientid_chr"].ToString().Trim();
                m_lsvPatientInfo.Items.Add(tempItem);
            }
            if (m_lsvPatientInfo.Items.Count > 0)
            {
                m_lsvPatientInfo.Items[0].Selected = true;
            }
        }
Ejemplo n.º 2
0
 private void m_mthFillData(DataRow dr)
 {
     this.m_objViewer.PatientID     = dr["PATIENTID_CHR"].ToString().Trim();
     this.m_objViewer.PatientName   = dr["FIRSTNAME_VCHR"].ToString().Trim();
     this.m_objViewer.PatientSex    = dr["SEX_CHR"].ToString().Trim();
     this.m_objViewer.PatientAge    = m_objAge.m_strGetAge(dr["BIRTH_DAT"]);
     this.m_objViewer.PatientCardID = dr["PATIENTCARDID_CHR"].ToString().Trim();
     this.strPatientTelNo           = dr["HOMEPHONE_VCHR"].ToString().Trim();
     this.strPatientAddress         = dr["HOMEADDRESS_VCHR"].ToString().Trim();
     this.strPatientGovNo           = dr["GOVCARD_CHR"].ToString().Trim();
     this.strPatientBXNo            = dr["DIFFICULTY_VCHR"].ToString().Trim();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 根据病区ID查询未安排床位的病人信息
        /// </summary>
        public void m_mthGetTurnInNotAccept()
        {
            m_objViewer.m_lsvPatientInfo.Items.Clear();
            DataTable p_dtbResult;

            try
            {
                m_objManage.m_lngGetTurnInNA(m_objViewer.m_strAreaID, out p_dtbResult);
                clsBrithdayToAge m_objAge = new clsBrithdayToAge();
                ListViewItem     listviewitem;
                ListViewItem[]   tempItemArr = new ListViewItem[p_dtbResult.Rows.Count];
                int index = 0;
                foreach (DataRow dr in p_dtbResult.Rows)
                {
                    listviewitem = new ListViewItem(dr["name_vchr"].ToString().Trim());
                    listviewitem.SubItems.Add(dr["inpatientid_chr"].ToString().Trim());
                    listviewitem.SubItems.Add(dr["name_vchr"].ToString().Trim());
                    listviewitem.SubItems.Add(dr["sex_chr"].ToString().Trim());
                    listviewitem.SubItems.Add(m_objAge.m_strGetAge(dr["birth_dat"]));
                    listviewitem.SubItems.Add(dr["status"].ToString().Trim());
                    listviewitem.SubItems.Add(Convert.ToDateTime(dr["modify_dat"]).ToString("yyyy年MM月dd日 HH时mm分"));
                    listviewitem.SubItems.Add(m_objViewer.m_lblAREAName.Text.Trim());
                    listviewitem.SubItems.Add(dr["type_int"].ToString().Trim());
                    listviewitem.SubItems.Add(Convert.ToDateTime(dr["HISINPATIENTDATE"]).ToString("yyyy年MM月dd日 HH时mm分"));

                    listviewitem.Tag = dr["REGISTERID_CHR"].ToString().Trim();
                    //listviewitem.ImageIndex = intDisplayImageIndex(Int32.Parse(dr["STATE_INT"].ToString().Trim()), dr["SEX_CHR"].ToString().Trim());
                    listviewitem.ImageIndex = intDisplayImageIndex(dr["STATE_INT"].ToString().Trim(), dr["SEX_CHR"].ToString().Trim(), dr["nursecate"].ToString().Trim());
                    tempItemArr[index]      = listviewitem;
                    index++;
                }
                m_objViewer.m_lsvPatientInfo.Items.AddRange(tempItemArr);
                p_dtbResult = null;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "获取当前病区未安排床位的病人信息出错!");
            }
        }
Ejemplo n.º 4
0
        internal void DwRetrieve()
        {
            this.m_objViewer.m_dgvBookingList.Rows.Clear();

            if (this.m_dvFilter == null)
            {
                return;
            }

            string filter;

            filter = "1=1";

            int status = this.m_objViewer.m_cmbStatus.SelectedIndex - 1;

            if (status > -1)
            {
                filter += " and BOOKSTATUS_INT = " + status.ToString();
            }

            if (this.m_objViewer.m_cmbPrintFlag.SelectedIndex == 1)
            {
                //未打印
                filter += " and PRINT_FLAG is null";
            }
            else if (this.m_objViewer.m_cmbPrintFlag.SelectedIndex == 2)
            {
                //已打印
                filter += " and PRINT_FLAG = '1'";
            }

            if (this.m_strBedId != "")
            {
                filter += " and registerid_chr in (" + this.m_strBedId + ")";
            }

            this.m_dvFilter.RowFilter = filter;
            if (this.m_dvFilter.Count == 0)
            {
                return;
            }

            for (int i = 0; i < this.m_dvFilter.Count; i++)
            {
                string[] s = new string[14];
                s[0] = this.m_dvFilter[i]["BOOKID_INT"].ToString();
                s[1] = this.m_dvFilter[i]["CURAREA"].ToString();
                s[2] = this.m_dvFilter[i]["code_chr"].ToString();
                s[3] = this.m_dvFilter[i]["lastname_vchr"].ToString();
                s[4] = this.m_dvFilter[i]["inpatientid_chr"].ToString();
                s[5] = this.m_dvFilter[i]["sex_chr"].ToString();
                s[6] = this.m_dvFilter[i]["ORDERNAME_VCHR"].ToString();

                if (this.m_dvFilter[i]["BOOKSTATUS_INT"].ToString() == "0")
                {
                    s[7] = "预约未确认";
                }
                else if (this.m_dvFilter[i]["BOOKSTATUS_INT"].ToString() == "1")
                {
                    s[7] = "预约通过";
                }
                else
                {
                    s[7] = "预约未通过";
                }

                s[8] = this.m_dvFilter[i]["BOOK_DAT"].ToString();
                s[9] = this.m_dvFilter[i]["REMARK_VCHR"].ToString();

                if (this.m_dvFilter[i]["PRINT_FLAG"].ToString() == "1")
                {
                    s[10] = "已打印";
                }
                else
                {
                    s[10] = "未打印";
                }
                s[11] = this.m_dvFilter[i]["OPERATE_DAT"].ToString();
                s[12] = this.m_dvFilter[i]["SENDER"].ToString();
                s[13] = this.m_dvFilter[i]["ORDERID_CHR"].ToString();

                m_dvFilter[i]["age_chr"] = m_objAge.m_strGetAge(m_dvFilter[i]["BIRTH_DAT"]);

                this.m_objViewer.m_dgvBookingList.Rows.Add(s);
            }

            try
            {
                if (this.dsPrint == null || this.dsPrintPat == null)
                {
                    this.m_mthInit();
                }

                this.dsPrint.Retrieve(this.m_dvFilter.ToTable());
                this.dsPrintPat.Retrieve(this.m_dvFilter.ToTable());

                this.dsPrint.Modify("st_date.Text='" + this.m_objViewer.m_dtpBeginDate.Text + "-" + this.m_objViewer.m_dtpEndDate.Text + "'");
            }
            catch (Exception obj)
            {
                MessageBox.Show("Error: " + obj.Message);
            }
        }