private void f_Load_Data() { m_frmtimbenhnhan = new frmTimbenhnhan(m_v, m_userid); m_frmtimbenhnhan.ShowInTaskbar = false; string atmp = m_v.s_curmmyyyy; m_cur_ngay = m_v.f_parse_date(atmp); m_cur_yy = m_cur_ngay.Year.ToString().Substring(2); cbGioitinh.DataSource = m_v.get_data("select ma,ten from medibv.dmphai order by ma desc").Tables[0]; cbGioitinh.DisplayMember = "ten"; cbGioitinh.ValueMember = "ma"; cbKymien.DataSource = m_v.get_data("select ma,ten from medibv.v_dsduyet order by ten desc").Tables[0]; cbKymien.DisplayMember = "ten"; cbKymien.ValueMember = "ma"; cbLoaibn.DataSource = m_v.get_data("select id,ten from medibv.v_loaibn order by id").Tables[0]; cbLoaibn.DisplayMember = "ten"; cbLoaibn.ValueMember = "id"; cbKhoaTD.DataSource = m_v.get_data("select makp,tenkp from medibv.btdkp_bv order by makp").Tables[0]; cbKhoaTD.DisplayMember = "tenkp"; cbKhoaTD.ValueMember = "makp"; cbDoituongTD.DataSource = m_v.get_data("select madoituong,doituong,field_gia,mien,mabv,sothe,ngay from medibv.doituong order by madoituong").Tables[0]; cbDoituongTD.DisplayMember = "doituong"; cbDoituongTD.ValueMember = "madoituong"; cbTuoi.DataSource = m_v.f_get_dmtuoi().Tables[0]; cbTuoi.DisplayMember = "ten"; cbTuoi.ValueMember = "id"; }
private void menu_A_4_Timbenhnhan_Click(object sender, EventArgs e) { try { frmTimbenhnhan f = new frmTimbenhnhan(m_v, m_userid.ToString()); f.MdiParent = this; f.ShowInTaskbar = false; f.s_is_sub = false; f.WindowState = FormWindowState.Maximized; f.Show(); } catch { } }