/// <summary> /// hàm thực hiện việc thêm mới kho thuốc /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdThemMoi_Click(object sender, EventArgs e) { frm_themmoi_kho frm=new frm_themmoi_kho(); frm.txtIDKHO.Text = "-1"; frm.em_Action = action.Insert; frm.p_dtDataChung = m_dtKhoThuoc; frm.grdList = grdKhoThuoc; frm.ShowDialog(); }
/// <summary> /// hàm thực hiện việc sửa thông tin kho thuốc /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdSua_Click(object sender, EventArgs e) { frm_themmoi_kho frm = new frm_themmoi_kho(); frm.txtIDKHO.Text = Utility.sDbnull(grdKhoThuoc.GetValue(TDmucKho.Columns.IdKho)); frm.em_Action = action.Update; frm.p_dtDataChung = m_dtKhoThuoc; frm.grdList = grdKhoThuoc; frm.ShowDialog(); }
/// <summary> /// hàm thực hiện việc thêm mới kho thuốc /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdThemMoi_Click(object sender, EventArgs e) { frm_themmoi_kho frm = new frm_themmoi_kho(); frm.txtIDKHO.Text = "-1"; frm.em_Action = action.Insert; frm.p_dtDataChung = m_dtKhoThuoc; frm.grdList = grdKhoThuoc; frm.ShowDialog(); }