void barAction_ItemClick(object sender, ItemClickEventArgs e) { referhComment = false; DataRow dr = e.Item.Tag as DataRow; if (this._data.DbData.HasErrors) { this._data.DbData.HasErrors = false; } string Confirm = ""; if (Config.GetValue("Language").ToString() == "1") { Confirm = "Are you sure " + e.Item.Caption + "?"; } else { Confirm = "Bạn có chắc thực hiện " + e.Item.Caption + "?"; } if (dr.Table.Columns.Contains("Confirm") && dr["Confirm"] != DBNull.Value && dr["Confirm"].ToString() != string.Empty) { Confirm = dr["Confirm"].ToString(); } if (XtraMessageBox.Show(Confirm, "Xác nhận", MessageBoxButtons.YesNo) == DialogResult.Yes) { Config.NewKeyValue("Operation", "Edit"); _frmDesigner.formAction = FormAction.Approve; if (frmMtDtCt == null) { frmMtDtCt = new FrmMasterDetailDt(_frmDesigner); } frmMtDtCt.ShowDialog(); frmMtDtCt.SetCurrentData(); if (!_data.DataChanged) { //frmMtDtCt.UpdateData(); if (!(this._data as DataMasterDetail).doAction(dr)) { if (dr.Table.Columns.Contains("Message") && dr["Message"] != DBNull.Value && dr["Message"].ToString() != string.Empty) { MessageBox.Show(dr["Message"].ToString()); } } } } _data.GetData(); _frmDesigner.RefreshDataForLookup(); DisplayData(); gvDetail.ClearColumnsFilter(); referhComment = true; }