public override void DataSelect(int intKbn, object objList) { if (this.proc_kbn == 1) { if (objList != null) { ObservableCollection <EntityInquiry> _entityList = (ObservableCollection <EntityInquiry>)objList; if (_entityList.Count == 0) { return; } if (_entityList[0]._lock_flg == 1) { ExMessageBox.Show("他ユーザーにて排他処理中です。"); return; } Dlg_SupportReturn returnDlg = new Dlg_SupportReturn(); returnDlg._entityList = _entityList; returnDlg.Closed += returnDlg_Closed; returnDlg.Show(); } return; } if (objList != null) { _entity = (ObservableCollection <EntityInquiry>)objList; } else { _entity = null; } }
public override void DataSelect(int intKbn, object objList) { if (this.proc_kbn == 1) { if (objList != null) { ObservableCollection <EntityInquiry> _entityList = (ObservableCollection <EntityInquiry>)objList; if (_entityList.Count == 0) { return; } if (_entityList[0]._lock_flg == 1) { ExMessageBox.Show("他ユーザーにて排他処理中です。"); return; } Dlg_SupportReturn returnDlg = new Dlg_SupportReturn(); returnDlg._entityList = _entityList; returnDlg.Closed += returnDlg_Closed; returnDlg.Show(); } return; } if (objList != null) { _entity = (ObservableCollection <EntityInquiry>)objList; } else { _entity = null; } this.dg.ItemsSource = null; this.dg.ItemsSource = _entity; this.dg.SelectedIndex = 0; ExBackgroundWorker.DoWork_Focus(dg, 10); }