// F3ボタン(ダウンロード) クリック public override void btnF3_Click(object sender, RoutedEventArgs e) { if (Common.gWinGroupType == Common.geWinGroupType.InpList) { return; } if (Common.gWinGroupType == Common.geWinGroupType.InpListReport) { this.ProcKbn = eProcKbn.Report; } else { this.ProcKbn = eProcKbn.ReportDetail; } // ボタン押下時非同期入力チェックON Common.gblnBtnDesynchronizeLock = true; this.utlReport.rptKbn = DataReport.geReportKbn.Download; ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk(); bk.utl = this; bk.waitTime = 500; this.txtDummy.IsTabStop = true; bk.focusCtl = this.txtDummy; bk.bw.RunWorkerAsync(); }
// F6ボタン(検索) クリック public override void btnF6_Click(object sender, RoutedEventArgs e) { if (Common.gWinGroupType == Common.geWinGroupType.InpDetailReport) { return; } this.ProcKbn = eProcKbn.Search; // ボタン押下時非同期入力チェックON Common.gblnBtnDesynchronizeLock = true; this.utlReport.rptKbn = DataReport.geReportKbn.None; // 入力確定の為、BackgroundWorker経由で入力チェックを呼出 ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk(); bk.utl = this; bk.waitTime = 500; this.txtDummy.IsTabStop = true; bk.focusCtl = this.txtDummy; bk.bw.RunWorkerAsync(); searchBtnFlg = true; }
// F1ボタン(出力) クリック public override void btnF1_Click(object sender, RoutedEventArgs e) { // OK if (Common.gWinGroupType == Common.geWinGroupType.InpList) { if (entityList == null) { ExMessageBox.Show("データが検索されていません。"); return; } if (entityList.Count == 0) { ExMessageBox.Show("データが検索されていません。"); return; } int intIndex = this.dgPrint.SelectedIndex; if (intIndex < 0) { ExMessageBox.Show("行が選択されていません。"); return; } this.no = ExCast.zCLng(this.lst[this.dgPrint.SelectedIndex].no); this.DialogResult = true; Dlg_InpSearch win = (Dlg_InpSearch)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); // 直接設定すると何故か画面がフリーズする為、コメントアウト //win.no = this.lst[this.dg.SelectedIndex].no; //win.DialogResult = true; } // 出力 else { if (Common.gWinGroupType == Common.geWinGroupType.InpListReport) { this.ProcKbn = eProcKbn.Report; } else { this.ProcKbn = eProcKbn.ReportDetail; } this.utlReport.rptKbn = DataReport.geReportKbn.OutPut; this.ProcKbn = eProcKbn.Report; // ボタン押下時非同期入力チェックON Common.gblnBtnDesynchronizeLock = true; ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk(); bk.utl = this; bk.waitTime = 500; this.txtDummy.IsTabStop = true; bk.focusCtl = this.txtDummy; bk.bw.RunWorkerAsync(); } }
// F1ボタン(OK) クリック public override void btnF1_Click(object sender, RoutedEventArgs e) { // 入力確定の為、BackgroundWorker経由で入力チェックを呼出 ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk(); bk.utl = null; bk.win = this; this.txtDummy.IsTabStop = true; bk.focusCtl = this.txtDummy; bk.bw.RunWorkerAsync(); }
// F1ボタン(登録) クリック public override void btnF1_Click(object sender, RoutedEventArgs e) { // ボタン押下時非同期入力チェックON Common.gblnBtnDesynchronizeLock = true; // 入力確定の為、BackgroundWorker経由で入力チェックを呼出 ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk(); bk.utl = this; this.txtDummy.IsTabStop = true; bk.focusCtl = this.txtDummy; bk.bw.RunWorkerAsync(); }
// F4ボタン(CSV) クリック public override void btnF4_Click(object sender, RoutedEventArgs e) { if (Common.gWinGroupType == Common.geWinGroupType.InpList) { // ボタン押下時非同期入力チェックON Common.gblnBtnDesynchronizeLock = true; } this.utlReport.rptKbn = DataReport.geReportKbn.Csv; ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk(); bk.utl = this; bk.waitTime = 500; this.txtDummy.IsTabStop = true; bk.focusCtl = this.txtDummy; bk.bw.RunWorkerAsync(); }
// F2ボタン(ダウンロード) クリック public override void btnF2_Click(object sender, RoutedEventArgs e) { this.utlParentFKey.IsEnabled = false; // ボタン押下時非同期入力チェックON Common.gblnBtnDesynchronizeLock = true; this.rptKbn = DataReport.geReportKbn.Download; // 入力確定の為、BackgroundWorker経由で入力チェックを呼出 ExBackgroundInputCheckWk bk = new ExBackgroundInputCheckWk(); bk.utl = this; this.txtDummy.IsTabStop = true; bk.focusCtl = this.txtDummy; bk.bw.RunWorkerAsync(); }