void m_cmd_update_Click(object sender, EventArgs e) { try { var v_dr = m_grv.GetDataRow(m_grv.FocusedRowHandle); US_GD_QUY_THU_NHAP_KHAC v_us = new US_GD_QUY_THU_NHAP_KHAC(CIPConvert.ToDecimal(v_dr[0].ToString())); if (m_grv.FocusedRowHandle < 0) XtraMessageBox.Show("Bạn chưa chọn dòng dữ liệu để sửa", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); //else if (check_quy_tien_da_chot_yn(v_dr[2].ToString(), v_dr[3].ToString())) // XtraMessageBox.Show("Quỹ tiền hiện đã chốt. Vui lòng không cập nhật!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Stop); //else if (check_quy_tien_dang_su_dung_yn(v_us)) // XtraMessageBox.Show("Quỹ đã chi tiền cho nhân viên, vui lòng không cập nhật!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Stop); else { f354_danh_sach_quy_thuong_de v_f = new f354_danh_sach_quy_thuong_de(); v_f.display_for_update(v_us); load_data_to_grid(); } } catch (Exception v_e) { CSystemLog_301.ExceptionHandle(v_e); } }
void m_cmd_insert_Click(object sender, EventArgs e) { try { f354_danh_sach_quy_thuong_de v_f = new f354_danh_sach_quy_thuong_de(); v_f.display_for_insert(); load_data_to_grid(); } catch (Exception v_e) { CSystemLog_301.ExceptionHandle(v_e); } }