// F12ボタン(キャンセル) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { this.DialogResult = false; Dlg_InpSearch win = (Dlg_InpSearch)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }
// F12ボタン(メニュー) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { UA_Main pg = (UA_Main)ExVisualTreeHelper.FindPerentPage(this.Parent); Dlg_InpMaster win = (Dlg_InpMaster)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }
// F1ボタン(OK) クリック public override void btnF1_Click(object sender, RoutedEventArgs e) { if (objMstList == null) { ExMessageBox.Show("データが登録されていません。"); return; } if (objMstList.Count == 0) { ExMessageBox.Show("データが登録されていません。"); return; } int intIndex = this.dg.SelectedIndex; if (intIndex < 0) { ExMessageBox.Show("行が選択されていません。"); return; } this.Id = objMstList[intIndex].id; this.name = objMstList[intIndex].name; this.attribute1 = objMstList[intIndex].attribute1; this.attribute2 = objMstList[intIndex].attribute2; this.attribute3 = objMstList[intIndex].attribute3; this.DialogResult = true; Dlg_MstSearch win = (Dlg_MstSearch)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }
public override void CopyCheck(object entity) { if (entity != null) { EntityCopying _entity = (EntityCopying)entity; if (_entity._message != "" || _entity._is_lock_success == false) { return; } else { this.DialogResult = true; this.ExistsData = _entity._is_exists_data; Dlg_Copying win = (Dlg_Copying)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); return; } } // 失敗 else { ExMessageBox.Show("複写情報の取得で予期せぬエラーが発生しました。"); return; } }
// 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(); } }
// F12ボタン(キャンセル) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { Dlg_Report win = (Dlg_Report)ExVisualTreeHelper.FindPerentChildWindow(this); if (this.utlParentFKey != null) { this.utlParentFKey.IsEnabled = true; } win.Close(); }
// F12ボタン(メニュー) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { if (this.flg_relogin == true) { Common.ReLogin(ExWebService.geDialogDisplayFlg.No, ExWebService.geDialogCloseFlg.No); } Dlg_InpMaster win = (Dlg_InpMaster)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }
// F12ボタン(キャンセル) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { if (GetUserControlFKey().btnF12.IsEnabled == false) { return; } // 保持情報を戻す ConvertDataFormToDetail(); Dlg_DataForm win = (Dlg_DataForm)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }
// F1ボタン(OK) クリック public override void btnF1_Click(object sender, RoutedEventArgs e) { if (GetUserControlFKey().btnF1.IsEnabled == false) { return; } // 変更を反映 this.DataForm.CommitEdit(); Dlg_DataForm win = (Dlg_DataForm)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }
// F1ボタン(OK) クリック public override void btnF1_Click(object sender, RoutedEventArgs e) { if (this.btnF1.IsEnabled == false) { return; } if (this.rdoAri.IsChecked == true && this_txtID.Text.Trim() == "") { ExMessageBox.Show("IDが指定されていません。"); return; } if (ExCast.IsNumeric(this_txtID.Text.Trim())) { if (ExCast.zCDbl(this.before_id) == ExCast.zCDbl(this_txtID.Text.Trim())) { ExMessageBox.Show("複写元と複写先IDが同じです。"); return; } } else { if (this.before_id == this_txtID.Text.Trim()) { ExMessageBox.Show("複写元と複写先IDが同じです。"); return; } } if (this.rdoAri.IsChecked == true) { this.copy_id = this_txtID.Text.Trim(); if (ExCast.IsNumeric(this.copy_id)) { this.copy_id = ExCast.zCDbl(this.copy_id).ToString(); } OnCopyCheck(); } else { this.copy_id = ""; this.DialogResult = true; Dlg_Copying win = (Dlg_Copying)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); } }
private void btnCancel_Click(object sender, RoutedEventArgs e) { if (this.StartUpMode == true) { ExMessageBox.ResultShow(this, null, "アプリケーションを終了します。" + Environment.NewLine + "よろしいですか?"); //if (ExMessageBox.ResultShow("アプリケーションを終了します。" + Environment.NewLine + "よろしいですか?") == MessageBoxResult.OK) //{ // if (Application.Current.IsRunningOutOfBrowser) // Application.Current.MainWindow.Close(); //} } else { Dlg_Login win = (Dlg_Login)ExVisualTreeHelper.FindPerentChildWindow(this.Parent); if (win != null) { win.Close(); } } }
public override void DataSelect(int intKbn, object objList) { Common.gstrMsgSessionError = ""; ExPage pg; Dlg_Login login; object[] prm; switch ((ExWebService.geWebServiceCallKbn)intKbn) { case ExWebService.geWebServiceCallKbn.Login: EntitySysLogin entity = (EntitySysLogin)objList; switch (entity._login_flg) { case 0: // 正常ログイン if (Common.gblnStartSettingDlg == false) { Common.gblnStartSettingDlg = true; ExBackgroundWorker.DoWork_StartUpInstanceSet(); // 起動時間短縮の為に画面情報を保持しておく Dlg_InpSearch InpSearch = null; Common.dataForm = new View.Dlg.Dlg_DataForm(); Common.report = new View.Dlg.Report.Dlg_Report(); Common.reportView = new View.Dlg.Report.Dlg_ReportView(); InpSearch = Common.InpSearchEstimate; InpSearch = Common.InpSearchOrder; InpSearch = Common.InpSearchSales; InpSearch = Common.InpSearchReceipt; InpSearch = Common.InpSearchPlan; InpSearch = Common.InpSearchInvoice; InpSearch = Common.InpSearchPurchaseOrder; InpSearch = Common.InpSearchPurchase; InpSearch = Common.InpSearchPaymentCash; InpSearch = Common.InpSearchPayment; InpSearch = Common.InpSearchInOutDelivery; } // システム情報設定 Common.gintCompanyId = entity._company_id; Common.gstrCompanyNm = entity._company_nm; Common.gintGroupId = entity._group_id; Common.gstrGroupNm = entity._group_nm; Common.gintDefaultPersonId = entity._defult_person_id; Common.gstrDefaultPersonNm = entity._defult_person_nm; Common.gstrGroupDisplayNm = entity._group_display_name; Common.gintEvidenceFlg = entity._evidence_flg; Common.gintidFigureSlipNo = entity._idFigureSlipNo; Common.gintidFigureCustomer = entity._idFigureCustomer; Common.gintidFigurePurchase = entity._idFigurePurchase; Common.gintidFigureCommodity = entity._idFigureGoods; Common.gintEstimateApprovalFlg = entity._estimate_approval_flg; Common.gintReceiptAccountInvoicePringFlg = entity._receipt_account_invoice_print_flg; Common.gstrSessionString = entity._session_string; Common.gintUserID = entity._user_id; Common.gstrUserNm = entity._user_nm; Common.gstrSessionString = entity._session_string; Common.gstrLoginUserID = this.txtLoginID.Text.Trim();; Common.gstrLoginPassword = this.txtPass.Password.Trim(); Common.gintDemoFlg = entity._demo_flg; Common.gstrSystemVer = entity._sys_ver; Common.gblnLogin = true; // System開始時の証跡を保存 DataPgEvidence.SaveLoadOrUnLoadEvidence(DataPgEvidence.PGName.System, DataPgEvidence.geOperationType.Start); // 名称リスト取得 prm = new object[1]; prm[0] = ""; webService.CallWebService(ExWebService.geWebServiceCallKbn.GetNameList, ExWebService.geDialogDisplayFlg.No, ExWebService.geDialogCloseFlg.No, prm); break; case 1: // 同一ユーザーログイン // 権限リスト取得 prm = new object[1]; prm[0] = Common.gintUserID; webService.CallWebService(ExWebService.geWebServiceCallKbn.GetAuthority, ExWebService.geDialogDisplayFlg.No, ExWebService.geDialogCloseFlg.Yes, prm); //webService.ProcessingDlgClose(); //pg = (ExPage)ExVisualTreeHelper.FindPerentPage(this); //if (pg != null) //{ // UA_Main main = (UA_Main)pg; // Common.gPageGroupType = Common.gePageGroupType.Menu; // Common.gPageType = Common.gePageType.Menu; // main.ChangePage(); // return; //} //login = (Dlg_Login)ExVisualTreeHelper.FindPerentChildWindow(this); //login.Close(); break; default: // ログイン失敗 webService.ProcessingDlgClose(); ExMessageBox.Show(this, this.txtLoginID, entity._login_message); return; } break; case ExWebService.geWebServiceCallKbn.GetNameList: Common.gNameList = new MeiNameList(objList); // 権限リスト取得 prm = new object[1]; prm[0] = Common.gintUserID; webService.CallWebService(ExWebService.geWebServiceCallKbn.GetAuthority, ExWebService.geDialogDisplayFlg.No, ExWebService.geDialogCloseFlg.Yes, prm); break; case ExWebService.geWebServiceCallKbn.GetAuthority: Common.gAuthorityList = (ObservableCollection <EntityAuthority>)objList; pg = (ExPage)ExVisualTreeHelper.FindPerentPage(this); if (pg != null) { if (Common.gstrSystemVer != "" && Common.gstrSystemVer != Common.gstrClinetVer) { ExMessageBox.Show("システムのバージョン Ver." + Common.gstrSystemVer + " がリリースされています。" + Environment.NewLine + "(現在 Ver." + Common.gstrClinetVer + ")" + Environment.NewLine + "一旦アンインストールして再インストールして下さい。"); } UA_Main main = (UA_Main)pg; Common.gPageGroupType = Common.gePageGroupType.Menu; Common.gPageType = Common.gePageType.Menu; main.ChangePage(); return; } login = (Dlg_Login)ExVisualTreeHelper.FindPerentChildWindow(this); login.Close(); break; } }
// F12ボタン(キャンセル) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { Dlg_ReportView win = (Dlg_ReportView)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }