Ejemplo n.º 1
0
 private void initConfig()
 {
     lFormA         = new LabFormA();
     stt            = new C1SuperTooltip();
     sep            = new C1SuperErrorProvider();
     btnSave.Click += BtnSave_Click;
     setControl();
 }
Ejemplo n.º 2
0
 private void setControl()
 {
     //lFormA = ic.ivfDB.lFormaDB.selectByPk1(lformaId);
     lFormA                = ic.ivfDB.lFormaDB.selectBReqOPU(lformaId);
     txtID.Value           = lFormA.form_a_id;
     txtLabFormACode.Value = lFormA.form_a_code;
     txtHnFeMale.Value     = lFormA.hn_female;
     txtNameFeMale.Value   = lFormA.name_female;
     txtNameMale.Value     = lFormA.name_male;
     txtHnMale.Value       = lFormA.hn_male;
     txtOPUDate.Value      = lFormA.opu_date;
     txtOPUTime.Value      = lFormA.opu_time;
     txtOPUTimeModi.Value  = lFormA.opu_time_modi;
 }
Ejemplo n.º 3
0
        private void setControl1()
        {
            LabFormA lFormA  = new LabFormA();
            Patient  pttmale = new Patient();

            lFormA  = ic.ivfDB.lFormaDB.selectByVnOld(vs.visit_vn);
            pttmale = ic.ivfDB.pttDB.selectByHn(vs.patient_hn_male);
            ptt.patient_birthday = pttOld.DateOfBirth;
            txtHn.Value          = vsOld.PIDS;
            txtVn.Value          = vsOld.VN;
            txtPttNameE.Value    = vsOld.PName;
            txtDob.Value         = ic.datetoShow(pttOld.DateOfBirth) + " [" + ptt.AgeStringShort() + "]";
            txtAllergy.Value     = ptt.allergy_description;
            txtPttPID.Value      = pttOld.PID;
            txtVnOld.Value       = vsOld.VN;
            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" : "ไม่ระบุ";
            txtVisitHeight.Value       = ptt.patient_height;
            txtVisitBW.Value           = vs.bw;
            txtVisitBP.Value           = vs.bp;
            txtVisitPulse.Value        = vs.pulse;
            txtPttId.Value             = ptt.t_patient_id;
            txtVsId.Value              = vs.t_visit_id;
            txtG.Value                 = ptt.g;
            txtP.Value                 = ptt.p;
            txtA.Value                 = ptt.a;
            txtVisitLMP.Value          = vs.lmp;
            txtOPUDate.Value           = lFormA.opu_date;
            txtOPUTime.Value           = lFormA.opu_time;
            txtEmbryoTranferDate.Value = lFormA.embryo_tranfer_date;
            ic.setC1Combo(cboDoctor, vs.doctor_id);
            txtNameMale.Value = pttmale.Name;

            chkChronic.Checked = ptt.status_congenial.Equals("1") ? true : false;
            stt.Show("<p><b>สวัสดี</b></p>คุณ " + ptt.congenital_diseases_description + "<br> กรุณา ป้อนรหัสผ่าน", chkChronic);

            if (!ptt.t_patient_id.Equals(""))
            {
                PatientImage pttI = new PatientImage();
                pttI        = ic.ivfDB.pttImgDB.selectByPttIDStatus4(ptt.t_patient_id);
                filenamepic = pttI.image_path;
                Thread threadA = new Thread(new ParameterizedThreadStart(ExecuteA));
                threadA.Start();
            }
        }