コード例 #1
0
        private void initConfig()
        {
            lFormDay1 = new LabFormDay1();
            opu       = new LabOpu();
            ptt       = new Patient();
            ovs       = new VisitOld();
            vs        = new Visit();

            stt = new C1SuperTooltip();
            sep = new C1SuperErrorProvider();
            ic.ivfDB.dtrOldDB.setCboDoctor(cboDoctor, "");
            ic.ivfDB.lformDay1DB.setCboRemark(cboRemark);
            ic.setCboDay(cboEmbryoFreezingDay, "");

            setControl();

            chkBiopsy.CheckedChanged              += ChkBiopsy_CheckedChanged;
            chkEmbryoFreezingDay.CheckedChanged   += ChkEmbryoFreezingDay_CheckedChanged;
            chkBlastocyst.CheckedChanged          += ChkBlastocyst_CheckedChanged;
            chkEmbryoTransferFresh.CheckedChanged += ChkEmbryoTransferFresh_CheckedChanged;
            btnPrint.Click           += BtnPrint_Click;
            chkPgsMin.CheckedChanged += ChkPgsMin_CheckedChanged;
            chkNgs.CheckedChanged    += ChkNgs_CheckedChanged;
            btmDonorSearch.Click     += BtmDonorSearch_Click;
            btnMaleSearch.Click      += BtnMaleSearch_Click;
            btnSave.Click            += BtnSave_Click;

            ChkBiopsy_CheckedChanged(null, null);
            ChkEmbryoFreezingDay_CheckedChanged(null, null);
            ChkBlastocyst_CheckedChanged(null, null);
            ChkEmbryoTransferFresh_CheckedChanged(null, null);
            ChkPgsMin_CheckedChanged(null, null);
            ChkNgs_CheckedChanged(null, null);
        }
コード例 #2
0
ファイル: FrmVisitAdd.cs プロジェクト: eploentham/clinic_ivf
 private void setVisitOld()
 {
     vsOld             = new VisitOld();
     vsOld.VN          = txtID.Text;
     vsOld.VSID        = "110";
     vsOld.PID         = txtPttO.Text;
     vsOld.PIDS        = txtHn.Text;
     vsOld.PName       = cboPrefix.Text + " " + txtPttNameE.Text + " " + txtPttLNameE.Text;
     vsOld.OName       = "";
     vsOld.VDate       = DateTime.Now.Year.ToString() + "-" + DateTime.Now.ToString("MM-dd");
     vsOld.VStartTime  = DateTime.Now.ToString("HH:mm:ss");
     vsOld.VEndTime    = "";
     vsOld.VUpdateTime = "";
     vsOld.LVSID       = "";
     vsOld.IntLock     = "0";
 }
コード例 #3
0
        private void initConfig()
        {
            fEdit  = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular);
            fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold);

            //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication;
            theme1.Theme = ic.iniC.themeApplication;
            theme1.SetTheme(sB, "BeigeOne");
            //theme1.SetTheme(tabOrder, "MacSilver");
            ic.ivfDB.dtrOldDB.setCboDoctor(cboDoctor, "");
            ic.ivfDB.eggsDB.setCboAddLab(cboAmh);
            ic.ivfDB.eggsDB.setCboTypingOther(cboOther);
            ic.ivfDB.eggsDB.setCboBhcgTest(cboBhcg);

            sB1.Text = "";
            bg       = txtHn.BackColor;
            fc       = txtHn.ForeColor;
            ff       = txtHn.Font;

            vsOld  = new VisitOld();
            vs     = new Visit();
            ptt    = new Patient();
            pttOld = new PatientOld();
            eggs   = new EggSti();
            stt    = new C1SuperTooltip();
            sep    = new C1SuperErrorProvider();
            color  = ColorTranslator.FromHtml(ic.iniC.grfRowColor);
            initGrfEggSti();

            btnGenEggSti.Click         += BtnGenEggSti_Click;
            btnSave.Click              += BtnSave_Click;
            chkAbnormal.CheckedChanged += ChkAbnormal_CheckedChanged;
            ChkAbnormal_CheckedChanged(null, null);
            chkOther.CheckedChanged += ChkOther_CheckedChanged;
            chkAmh.CheckedChanged   += ChkAmh_CheckedChanged;
            ChkOther_CheckedChanged(null, null);
            ChkAmh_CheckedChanged(null, null);
            btnPrint.Click += BtnPrint_Click;

            setControl();
        }
コード例 #4
0
 private void setControl()
 {
     eggs           = ic.ivfDB.eggsDB.selectByPk1(eggstiid);
     txtId.Value    = eggs.egg_sti_id;
     vsOld          = ic.ivfDB.ovsDB.selectByPk1(vsid);
     pttOld         = ic.ivfDB.pttOldDB.selectByPk1(vsOld.PID);
     vs             = ic.ivfDB.vsDB.selectByVn(vsid);
     ptt            = ic.ivfDB.pttDB.selectByHn(vsOld.PIDS);
     txtPttId.Value = ptt.t_patient_id;
     if (eggs.egg_sti_id.Equals(""))
     {
         eggs = ic.ivfDB.eggsDB.selectByVsId(vsid);
         if (eggs.egg_sti_id.Equals(""))
         {
             eggs = ic.ivfDB.eggsDB.selectByPttId(txtPttId.Text);
             if (!eggs.egg_sti_id.Equals(""))
             {
                 txtId.Value = eggs.egg_sti_id;
                 eggstiid    = txtId.Text;
             }
         }
     }
     if (eggs.egg_sti_id.Equals(""))
     {
         setControl1();
         btnGenEggSti.Enabled = true;
         btnSave.Enabled      = false;
         setControl1();
     }
     else
     {
         btnGenEggSti.Enabled = false;
         btnSave.Enabled      = true;
         setControl1();
     }
     setControlEggSti();
 }
コード例 #5
0
        private void setControl()
        {
            lFormDay1 = ic.ivfDB.lformDay1DB.selectByPk1(lformDay1Id);
            vs        = ic.ivfDB.vsDB.selectByPk1(vsid);
            ptt       = ic.ivfDB.pttDB.selectByPk1(pttid);
            if (lFormDay1.form_day1_id.Equals(""))
            {
                lFormDay1 = ic.ivfDB.lformDay1DB.selectByVsId(vs.t_visit_id);
            }
            if (!lFormDay1.form_day1_id.Equals("")) //  found
            {
                LabRequest req = new LabRequest();
                //opu = ic.ivfDB.opuDB.selectByReqID(req.req_id);
                setControl1();
            }
            else// Not found
            {
                ovs = ic.ivfDB.ovsDB.selectByPk1(vsidOld);

                txtHnFeMale.Value   = ptt.patient_hn;
                txtNameFeMale.Value = ptt.Name;
                txtDobFeMale.Value  = ptt.AgeString();
                txtHnMale.Value     = ptt.patient_hn_couple;
                txtNameMale.Value   = ptt.patient_couple_firstname;
                txtPttId.Value      = ptt.t_patient_id;
                txtVsId.Value       = vs.t_visit_id;
                txtAgent.Value      = ic.ivfDB.oAgnDB.getAgentNameById(ptt.agent);
                ic.setC1Combo(cboDoctor, vs.doctor_id);
                txtFormDay1Date.Value = DateTime.Now.Year.ToString() + "-" + DateTime.Now.ToString("MM-dd");
                if (ic.iniC.statusAppDonor.Equals("1"))
                {
                    if (ptt.f_sex_id.Equals("1"))//male
                    {
                        Patient ptt1 = new Patient();
                        ptt1                = ic.ivfDB.pttDB.selectByHn(ptt.patient_hn_1);
                        txtHnMale.Value     = ptt.patient_hn;
                        txtNameMale.Value   = ptt.Name;
                        txtHnFeMale.Value   = ptt.patient_hn_1;
                        txtNameFeMale.Value = ptt1.Name;
                        txtDobFeMale.Value  = ptt1.patient_birthday;
                        txtDobMale.Value    = ptt.patient_birthday;
                    }
                    else if (ptt.f_sex_id.Equals("2"))                                    //female
                    {
                        if (!ptt.patient_hn_1.Equals("") && !ptt.patient_hn_2.Equals("")) // record donor
                        {
                            txtHnFeMale.Value  = ptt.patient_hn_1;
                            txtHnMale.Value    = ptt.patient_hn_2;
                            txtHnDonor.Value   = ptt.patient_hn;
                            txtNameDonor.Value = ptt.Name;
                            Patient ptt1 = new Patient();
                            ptt1 = ic.ivfDB.pttDB.selectByHn(ptt.patient_hn_1);
                            txtNameFeMale.Value = ptt1.Name;
                            Patient ptt2 = new Patient();
                            ptt2 = ic.ivfDB.pttDB.selectByHn(ptt.patient_hn_2);
                            txtNameMale.Value  = ptt2.Name;
                            txtDobFeMale.Value = ptt1.patient_birthday;
                            txtDobMale.Value   = ptt2.patient_birthday;
                        }
                        else if (ptt.patient_hn_1.Equals("") && !ptt.patient_hn_2.Equals(""))   // record female
                        {
                            Patient ptt1 = new Patient();
                            ptt1                = ic.ivfDB.pttDB.selectByHn(ptt.patient_hn_2);
                            txtHnMale.Value     = ptt.patient_hn_2;
                            txtNameMale.Value   = ptt1.Name;
                            txtHnFeMale.Value   = ptt.patient_hn;
                            txtNameFeMale.Value = ptt.Name;
                            txtDobMale.Value    = ptt1.patient_birthday;
                            txtDobFeMale.Value  = ptt.patient_birthday;
                        }
                    }
                }
                else
                {
                    if (ptt.f_sex_id.Equals("1"))//male
                    {
                        Patient ptt1 = new Patient();
                        ptt1                = ic.ivfDB.pttDB.selectByHn(ptt.patient_hn_1);
                        txtHnMale.Value     = ptt.patient_hn;
                        txtNameMale.Value   = ptt.Name;
                        txtHnFeMale.Value   = ptt.patient_hn_1;
                        txtNameFeMale.Value = ptt1.Name;
                        txtDobMale.Value    = ptt.patient_birthday;
                        txtDobFeMale.Value  = ptt1.patient_birthday;
                    }
                    else if (ptt.f_sex_id.Equals("2"))//female
                    {
                        Patient ptt2 = new Patient();
                        ptt2                = ic.ivfDB.pttDB.selectByHn(ptt.patient_hn_2);
                        txtHnMale.Value     = ptt.patient_hn_2;
                        txtNameMale.Value   = ptt2.Name;
                        txtHnFeMale.Value   = ptt.patient_hn;
                        txtNameFeMale.Value = ptt.Name;
                        txtDobMale.Value    = ptt2.patient_birthday;
                        txtDobFeMale.Value  = ptt.patient_birthday;
                    }
                }
            }
        }