private void kPISetToolStripMenuItem_Click(object sender, EventArgs e) { var view = opmGridView; if (view.FocusedRowHandle == DevExpress.XtraGrid.GridControl.InvalidRowHandle || !view.IsDataRow(view.FocusedRowHandle)) { return; } if (!Program.MF.EntryCheck("Genel.KpiSetXF", false)) { return; } int PK = (int)view.GetFocusedRowCellValue(colOPMID); Genel.KpiSetXF frm = new Genel.KpiSetXF(); frm.Tbl = "OPM"; frm.TblPK = PK; frm.KPI = view.GetFocusedRowCellValue(colKPI).ToString(); frm.ShowDialog(); frm.Dispose(); this.opmSelTableAdapter.ClearBeforeFill = false; this.opmSelTableAdapter.Fill(this.opsDataSet.OPM_SEL, string.Format("OPMid = {0}", PK), Program.USR); }
private void kPISetToolStripMenuItem_Click(object sender, EventArgs e) { var view = afbGridView; if (!view.IsDataRow(view.FocusedRowHandle)) { return; } if (!Program.MF.EntryCheck("Genel.KpiSetXF", false)) { return; } int PK = (int)view.GetFocusedRowCellValue(colAFBID); Genel.KpiSetXF frm = new Genel.KpiSetXF(); frm.Tbl = "AFB"; frm.TblPK = PK; frm.KPI = view.GetFocusedRowCellValue(colKPI).ToString(); frm.KpiUsr = view.GetFocusedRowCellValue(colKPIUSR).ToString(); frm.KpiTrh = view.GetFocusedRowCellValue(colKPITRH); frm.ShowDialog(); frm.Dispose(); this.afbTableAdapter.Fill(this.accountDataSet.AFB, string.Format("AFBID = {0}", PK), Program.USR); }
private void kPISetToolStripMenuItem_Click(object sender, EventArgs e) { var view = chargeGridView; if (!view.IsDataRow(view.FocusedRowHandle)) { return; } if (!Program.MF.EntryCheck("Genel.KpiSetXF", false)) { return; } int PK = (int)view.GetFocusedRowCellValue(colAFDIDc); Genel.KpiSetXF frm = new Genel.KpiSetXF(); frm.Tbl = "AFD"; frm.TblPK = PK; frm.KPI = view.GetFocusedRowCellValue(colKPIc).ToString(); frm.ShowDialog(); frm.Dispose(); }