// F1ボタン(新規) クリック
        public override void btnF1_Click(object sender, RoutedEventArgs e)
        {
            Dlg_DutiesRegist registDlg = new Dlg_DutiesRegist();

            registDlg.Closed += registDlg_Closed;
            registDlg.ProcKbn = Dlg_DutiesRegist.eProcKbn.New;
            registDlg.Show();
        }
        private void registDlg_Closed(object sender, EventArgs e)
        {
            Dlg_DutiesRegist dlg = (Dlg_DutiesRegist)sender;

            if (dlg.DialogResult == true)
            {
                GetDutiesList(0);
            }
        }
        public override void DataSelect(int intKbn, object objList)
        {
            if (this.proc_kbn == 1)
            {
                if (objList != null)
                {
                    ObservableCollection <EntityDuties> _entityList = (ObservableCollection <EntityDuties>)objList;
                    if (_entityList.Count == 0)
                    {
                        return;
                    }
                    if (_entityList[0]._lock_flg == 1)
                    {
                        ExMessageBox.Show("他ユーザーにて排他処理中です。");
                        return;
                    }

                    Dlg_DutiesRegist registDlg = new Dlg_DutiesRegist();
                    registDlg._entity = _entityList[0];
                    registDlg.ProcKbn = Dlg_DutiesRegist.eProcKbn.Update;
                    registDlg.Closed += returnDlg_Closed;
                    registDlg.Show();
                }
                return;
            }

            if (objList != null)
            {
                _entity = (ObservableCollection <EntityDuties>)objList;
            }
            else
            {
                _entity = null;
            }
            this.dg.ItemsSource   = null;
            this.dg.ItemsSource   = _entity;
            this.dg.SelectedIndex = 0;
            ExBackgroundWorker.DoWork_Focus(dg, 10);
        }
 // F1ボタン(新規) クリック
 public override void btnF1_Click(object sender, RoutedEventArgs e)
 {
     Dlg_DutiesRegist registDlg = new Dlg_DutiesRegist();
     registDlg.Closed += registDlg_Closed;
     registDlg.ProcKbn = Dlg_DutiesRegist.eProcKbn.New;
     registDlg.Show();
 }
        public override void DataSelect(int intKbn, object objList)
        {
            if (this.proc_kbn == 1)
            {
                if (objList != null)
                {
                    ObservableCollection<EntityDuties> _entityList = (ObservableCollection<EntityDuties>)objList;
                    if (_entityList.Count == 0) return;
                    if (_entityList[0]._lock_flg == 1)
                    {
                        ExMessageBox.Show("他ユーザーにて排他処理中です。");
                        return;
                    }

                    Dlg_DutiesRegist registDlg = new Dlg_DutiesRegist();
                    registDlg._entity = _entityList[0];
                    registDlg.ProcKbn = Dlg_DutiesRegist.eProcKbn.Update;
                    registDlg.Closed += returnDlg_Closed;
                    registDlg.Show();
                }
                return;
            }

            if (objList != null)
            {
                _entity = (ObservableCollection<EntityDuties>)objList;
            }
            else
            {
                _entity = null;
            }
            this.dg.ItemsSource = null;
            this.dg.ItemsSource = _entity;
            this.dg.SelectedIndex = 0;
            ExBackgroundWorker.DoWork_Focus(dg, 10);
        }