private void xem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle); if (r != null) { frmAddFile frm = new frmAddFile(HelpNumber.ParseInt64(r["ID"]), null); ProtocolForm.ShowModalDialog(this, frm); } }
private void Sua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle); if (r != null) { int row_indexed = gridViewDSCongviec.FocusedRowHandle; frmAddFile frm = new frmAddFile(HelpNumber.ParseInt64(r["ID"]), false); ProtocolForm.ShowModalDialog(this, frm); load_gridview(HelpNumber.ParseInt64(r["ID"])); if (node_ID != 0) gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(node_ID); else gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(-1); gridViewDSCongviec.SelectRow(row_indexed); } }
private void Them_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmAddFile frm = new frmAddFile(-2, true); ProtocolForm.ShowModalDialog(this, frm); if (node_ID != 0) gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(node_ID); else gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(-1); DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle); if (r != null) load_gridview(HelpNumber.ParseInt64(r[PLDBUtil.FIELD_ID])); }
private void gridViewDSCongviec_DoubleClick(object sender, EventArgs e) { DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle); if (r != null) { frmAddFile frm = new frmAddFile(HelpNumber.ParseInt64(r["ID"]), null); ProtocolForm.ShowModalDialog(this, frm); load_gridview(HelpNumber.ParseInt64(r["ID"])); } }