Ejemplo n.º 1
0
        private void BtnHnSearch_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            FrmSearchHn frm = new FrmSearchHn(ic, FrmSearchHn.StatusConnection.hostEx, FrmSearchHn.StatusSearch.PttSearch, FrmSearchHn.StatusSearchTable.VisitSearch);

            frm.ShowDialog(this);
            txtHnFemale.Value = ic.sVsOld.PIDS;
            label32.Text      = ic.sVsOld.PName;
        }
Ejemplo n.º 2
0
        private void BtnHn_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            ic.sVsOld.PIDS  = "";
            ic.sVsOld.PName = "";
            FrmSearchHn frm = new FrmSearchHn(ic, FrmSearchHn.StatusConnection.host, FrmSearchHn.StatusSearch.PttSearch, FrmSearchHn.StatusSearchTable.PttSearch);

            frm.ShowDialog(this);
            txtHn.Value   = ic.sVsOld.PIDS;
            txtName.Value = ic.sVsOld.PName;
            setGrf();
        }
Ejemplo n.º 3
0
        private void BtnHn_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            FrmSearchHn frm = new FrmSearchHn(ic, FrmSearchHn.StatusConnection.host, FrmSearchHn.StatusSearch.PttSearch, FrmSearchHn.StatusSearchTable.PttSearch);

            frm.ShowDialog(this);
            txtHn.Value      = ic.sVsOld.PIDS;
            txtName.Value    = ic.sVsOld.PName;
            txtPttYear.Value = ic.sVsOld.patient_year;
            //ptt = ic.ivfDB.pttDB.selectByHn(txtHn.Text.Trim());       //-0021
            ptt = ic.ivfDB.pttDB.selectByHn(ic.sVsOld.patient_hn);       //+0021
            setGrfVs();
        }
Ejemplo n.º 4
0
        private void BtmDonorSearch_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            ic.sVsOld.PIDS  = "";
            ic.sVsOld.PName = "";
            ic.sVsOld.dob   = "";
            FrmSearchHn frm = new FrmSearchHn(ic, FrmSearchHn.StatusConnection.hostEx, FrmSearchHn.StatusSearch.DonorSearch, FrmSearchHn.StatusSearchTable.VisitSearch);

            frm.ShowDialog(this);
            txtHnDonor.Value   = ic.sVsOld.PIDS;
            txtNameDonor.Value = ic.sVsOld.PName;
            txtDonorDob.Value  = ic.sVsOld.dob;
        }
Ejemplo n.º 5
0
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            FrmSearchHn frm = new FrmSearchHn(ic, FrmSearchHn.StatusConnection.host, FrmSearchHn.StatusSearch.DonorSearch, FrmSearchHn.StatusSearchTable.PttSearch);

            frm.ShowDialog(this);
            if (!ic.sVsOld.PIDS.Trim().Equals("-"))
            {
                chkAll.Checked    = false;      //  user ค้นหา ไม่ใช้การ ดึงข้อมูลทั้งหมด
                chkActive.Checked = true;
                txtHn.Value       = ic.sVsOld.PIDS;
                setSearchPatient();
                txtRemark.Focus();
            }
        }
Ejemplo n.º 6
0
        private void BtnHn_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            ic.sVsOld.PIDS  = "";
            ic.sVsOld.PName = "";
            FrmSearchHn frm = new FrmSearchHn(ic, FrmSearchHn.StatusConnection.host, FrmSearchHn.StatusSearch.PttSearch, FrmSearchHn.StatusSearchTable.VisitSearch);

            frm.ShowDialog(this);
            //String[] an = ic.sPtt.an.Split('/');
            //if (an.Length > 1)
            //{
            //    txtAN.Value = an[0];
            //    txtAnCnt.Value = an[1];
            //}
            //else
            //{
            //txtAN.Value = ic.sPtt.an;
            //txtAnCnt.Value = "";
            //}
            txtHn.Value      = ic.sVsOld.PIDS;
            txtName.Value    = ic.sVsOld.PName;
            txtVN.Value      = ic.sVsOld.VN;
            txtPttYear.Value = ic.sVsOld.patient_year;
            //txtVisitDate.Value = ic.sPtt.visitDate;
            //txtPreNo.Value = ic.sPtt.preno;

            //txtAnDate.Value = ic.sPtt.anDate;
            //chkIPD.Checked = ic.sPtt.statusIPD.Equals("I") ? true : false;

            //if (chkIPD.Checked)
            //{
            //    txtVisitDate.Hide();
            //    txtAnDate.Show();
            //    label6.Text = "AN Date :";
            //}
            //else
            //{
            txtVisitDate.Show();
            //txtAnDate.Hide();
            label6.Text = "Visit Date :";
            //}
        }
Ejemplo n.º 7
0
        private void BtnSearch_Click(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            ic.sVsOld.PIDS  = "";
            ic.sVsOld.PName = "";
            FrmSearchHn frm = new FrmSearchHn(ic, FrmSearchHn.StatusConnection.host, FrmSearchHn.StatusSearch.PttSearch, FrmSearchHn.StatusSearchTable.PttSearch);

            frm.ShowDialog(this);
            ptt               = new Patient();
            ptt               = ic.ivfDB.pttDB.selectByHn(ic.sVsOld.PIDS);
            txtHn.Value       = ic.sVsOld.PIDS;
            txtPttNameE.Value = ic.sVsOld.PName;
            txtDob.Value      = ic.sVsOld.dob + "[" + ptt.AgeStringShort() + "]";
            txtPttId.Value    = ptt.t_patient_id;
            txtSex.Value      = ptt.f_sex_id.Equals("1") ? "ชาย" : "หญิง";
            txtBg.Value       = ptt.f_patient_blood_group_id.Equals("2140000005") ? "O"
                : ptt.f_patient_blood_group_id.Equals("2140000002") ? "A" : ptt.f_patient_blood_group_id.Equals("2140000003") ? "B"
                : ptt.f_patient_blood_group_id.Equals("2140000004") ? "AB" : "ไม่ระบุ";
            setGrfReqOr(txtPttId.Text);
        }