Beispiel #1
0
        public static Patients patients = new Patients();//对应表的实体(Model)对象

        private void btnSelect_Click(object sender, EventArgs e)
        {
            patients.subject_id     = txtsubject_id.Text.Trim();//把控件中的值,赋给实体对象的属
            patients.hadm_id        = txthadm_id.Text;
            patients.icustay_id     = txticustay_id.Text;
            patients.gender         = txtgender.Text;
            patients.first_careunit = txtfirst_careunit.Text;
            patients.last_careunit  = txtlast_careunit.Text;
            patients.intime         = txtintime.Text;
            patients.outtime        = txtouttime.Text;
            patients.los            = txtlos.Text;

            FrmICUPatientsSelect_Search ICU_Select_Search = new FrmICUPatientsSelect_Search();//实例化子窗体

            OpenForm(ICU_Select_Search);
        }
Beispiel #2
0
        /// <summary>
        /// 学号控件的键盘事件,用户查询学生信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void txtstu_no_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Return)                            //判断用户按下的是不是回车键
            {
                patients.subject_id     = txtsubject_id.Text.Trim(); //把控件中的值,赋给实体对象的属
                patients.hadm_id        = txthadm_id.Text;
                patients.icustay_id     = txticustay_id.Text;
                patients.gender         = txtgender.Text;
                patients.first_careunit = txtfirst_careunit.Text;
                patients.last_careunit  = txtlast_careunit.Text;
                patients.intime         = txtintime.Text;
                patients.outtime        = txtouttime.Text;
                patients.los            = txtlos.Text;

                FrmICUPatientsSelect_Search ICU_Select_Search = new FrmICUPatientsSelect_Search();//实例化子窗体
                OpenForm(ICU_Select_Search);
            }
        }