/// <summary> /// hàm thực hiện sửa thông tin của bệnh nhân /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdSuaNhom_Click(object sender, EventArgs e) { try { if (!Utility.isValidGrid(grdList)) { Utility.ShowMsg("Bạn phải chọn ít nhất 1 nhóm chỉ định cận lâm sàng để sửa đổi"); return; } frm_themmoi_nhomcls frm = new frm_themmoi_nhomcls(nhomchidinh); frm.txtId.Text = Utility.Int32Dbnull(Utility.GetValueFromGridColumn(grdList, DmucNhomcanlamsang.Columns.Id), -1).ToString(); frm.m_eAction = action.Update; frm.m_dtNhom = m_dtData; frm.grdList = grdList; frm._OnActionSuccess += frm__OnActionSuccess; frm.ShowDialog(); if (!frm.m_blnCancel) { UpdateGroup(); grdList_SelectionChanged(grdList, new EventArgs()); } ModifyCommand(); } catch (Exception) { } finally { //CauHinh(); } }
private void cmdThemnhom_Click(object sender, EventArgs e) { try { frm_themmoi_nhomcls frm = new frm_themmoi_nhomcls(nhomchidinh); frm.m_eAction = action.Insert; frm.m_dtNhom = m_dtData; frm.grdList = grdList; frm._OnActionSuccess += frm__OnActionSuccess; frm.ShowDialog(); if (!frm.m_blnCancel) { UpdateGroup(); grdList_SelectionChanged(grdList, new EventArgs()); } ModifyCommand(); } catch (Exception exception) { } finally { // CauHinh(); } }
/// <summary> /// hàm thực hiện sửa thông tin của bệnh nhân /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdSuaNhom_Click(object sender, EventArgs e) { try { if (!Utility.isValidGrid(grdList)) { Utility.ShowMsg("Bạn phải chọn ít nhất 1 nhóm chỉ định cận lâm sàng để sửa đổi"); return; } frm_themmoi_nhomcls frm = new frm_themmoi_nhomcls("-GOI,-TIEN,-CHIPHITHEM"); frm.txtId.Text =Utility.Int32Dbnull( Utility.GetValueFromGridColumn(grdList, DmucNhomcanlamsang.Columns.Id),-1).ToString(); frm.m_eAction = action.Update; frm.m_dtNhom = m_dtData; frm.grdList = grdList; frm._OnActionSuccess += frm__OnActionSuccess; frm.ShowDialog(); if (!frm.m_blnCancel) { UpdateGroup(); grdList_SelectionChanged(grdList, new EventArgs()); } ModifyCommand(); } catch (Exception) { } finally { //CauHinh(); } }
private void cmdThemnhom_Click(object sender, EventArgs e) { try { frm_themmoi_nhomcls frm = new frm_themmoi_nhomcls("-GOI,-TIEN,-CHIPHITHEM"); frm.m_eAction = action.Insert; frm.m_dtNhom = m_dtData; frm.grdList = grdList; frm._OnActionSuccess += frm__OnActionSuccess; frm.ShowDialog(); if (!frm.m_blnCancel) { UpdateGroup(); grdList_SelectionChanged(grdList, new EventArgs()); } ModifyCommand(); } catch (Exception exception) { } finally { // CauHinh(); } }