private void ExUserControl_Loaded(object sender, RoutedEventArgs e) { if (Common.gblnLogin == false) { return; } // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); // ファンクションキー初期設定 this.utlFunctionKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Init; ExVisualTreeHelper.SetEnabled(this.stpInput, false); this.cmbLoginId.IsEnabled = true; this.utlFunctionKey.Init(); this.utlDummy.evtDataSelect -= this._evtDataSelect; this.utlDummy.evtDataSelect += this._evtDataSelect; this.lblCompanyGroup.Content = Common.gstrGroupDisplayNm; // バインド設定 SetBinding(); GetUserList(); }
private void txt_GotFocus(object sender, RoutedEventArgs e) { Control ctl = (Control)sender; switch (ctl.Name) { case "utlID": case "utlCompanyGroup": case "utlDisplay": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", true, this); activeControl = ctl; break; case "txtName": case "txtMemo": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; default: ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; } }
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; } }
private void ExUserControl_Loaded(object sender, RoutedEventArgs e) { if (this.gPageType != Common.gePageType.None) { this.utlID.Visibility = System.Windows.Visibility.Visible; this.utlMstID.Visibility = System.Windows.Visibility.Collapsed; this.utlMstID.IsTabStop = false; this_txtID = this.utlID.txtID; } else { this.utlID.Visibility = System.Windows.Visibility.Collapsed; this.utlID.IsTabStop = false; this.utlMstID.Visibility = System.Windows.Visibility.Visible; this_txtID = this.utlMstID.txtID; } // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); this.rdoAri.IsChecked = true; this.rdoAri_Checked(null, null); ExBackgroundWorker.DoWork_FocusForLoad(this.this_txtID); }
private void txt_GotFocus(object sender, RoutedEventArgs e) { Control ctl = (Control)sender; switch (ctl.Name) { case "utlNo_F": case "utlNo_T": case "utlCauseNo_F": case "utlCauseNo_T": case "dg": case "chkInOutDelivery": case "chkSales": case "chkPurchase": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; case "datInOutDeliveryYmd_F": case "datInOutDeliveryYmd_T": case "utlCompanyGroup": case "utlCustomer": case "utlPurchase": case "utlCommodity": case "utlPerson_F": case "utlPerson_T": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", true, this); activeControl = ctl; break; default: break; } }
private void ExUserControl_Loaded(object sender, RoutedEventArgs e) { // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); if (Application.Current.InstallState == InstallState.Installed) { scrollViewer.Visibility = System.Windows.Visibility.Collapsed; txtDemo.Visibility = System.Windows.Visibility.Collapsed; tbChk.Visibility = System.Windows.Visibility.Collapsed; chkYes.Visibility = System.Windows.Visibility.Collapsed; tbMessage.Text = "SalesInnovation(販売管理アプリケーション)はインストール済です。"; btnInstall.Visibility = System.Windows.Visibility.Collapsed; } else { scrollViewer.Visibility = System.Windows.Visibility.Visible; txtDemo.Visibility = System.Windows.Visibility.Visible; tbChk.Visibility = System.Windows.Visibility.Visible; chkYes.Visibility = System.Windows.Visibility.Visible; SetText(); tbMessage.Text = "SalesInnovation(販売管理アプリケーション)をインストールします。"; btnInstall.Visibility = System.Windows.Visibility.Visible; } }
private void txt_GotFocus(object sender, RoutedEventArgs e) { Control ctl = (Control)sender; switch (ctl.Name) { //case "utlZip": //case "utlZip.Name": // ExVisualTreeHelper.SetFunctionKeyEnabled("F5", true, this); // activeControl = ctl; // break; case "txtName": case "txtKana": case "txtTel": case "txtFax": case "txtMail": case "txtUrl": case "txtMemo": case "txtCustomerIdFg": case "txtCommdityIdFg": case "txtPurchaseIdFg": case "txtDenNoFg": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; default: ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; } }
// 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(); }
// F2ボタン(条件クリア) クリック public override void btnF2_Click(object sender, RoutedEventArgs e) { // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); this.lst.Clear(); this.dg.ItemsSource = null; if (Common.gWinGroupType == Common.geWinGroupType.InpList) { DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datOrderYmd_F, ref this.datOrderYmd_T); } else { DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datOrderYmd_F, ref this.datOrderYmd_T); } // 取引区分 this.chkKake.IsChecked = false; this.chkCash.IsChecked = false; // 完納区分 this.chkUnDelivary.IsChecked = false; this.chkPartDelivary.IsChecked = false; this.chkFullDelivary.IsChecked = false; this.chkTorikeshi.IsChecked = false; ExBackgroundWorker.DoWork_Focus(this.datOrderYmd_F, 10); }
// F2ボタン(条件クリア) クリック public override void btnF2_Click(object sender, RoutedEventArgs e) { // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); this.lst.Clear(); this.dg.ItemsSource = null; if (Common.gWinGroupType == Common.geWinGroupType.InpList) { DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datEstimateYmd_F, ref this.datEstimateYmd_T); } else { DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datEstimateYmd_F, ref this.datEstimateYmd_T); } // 取引区分 this.chkKake.IsChecked = false; this.chkCash.IsChecked = false; // 承認状態 this.chkStillApproval.IsChecked = false; this.chkApproval.IsChecked = false; this.chkResevation.IsChecked = false; this.chkRejetion.IsChecked = false; ExBackgroundWorker.DoWork_Focus(this.datEstimateYmd_F, 10); }
private void txt_GotFocus(object sender, RoutedEventArgs e) { Control ctl = (Control)sender; switch (ctl.Name) { case "utlPaymentCashNo_F": case "utlPaymentCashNo_T": case "dg": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; case "datPaymentCashYmd_F": case "datPaymentCashYmd_T": case "utlPurchase": case "utlPerson_F": case "utlPerson_T": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", true, this); activeControl = ctl; break; default: break; } }
private void txt_GotFocus(object sender, RoutedEventArgs e) { Control ctl = (Control)sender; switch (ctl.Name) { case "datPaymentCloseYmd_F": case "datPaymentCloseYmd_T": case "chkPrintNo": case "chkPrintYes": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; case "utlPaymentNo_F": case "utlPaymentNo_T": case "utlPurchase": case "utlSummingUp": case "datIssueYmd": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", true, this); activeControl = ctl; break; default: break; } }
private void ExChildWindow_Loaded(object sender, RoutedEventArgs e) { // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); GetDutiesList(); }
private void ExUserControl_Loaded(object sender, RoutedEventArgs e) { if (Common.gblnLogin == false) { return; } // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); // ファンクションキー初期設定 utlFunctionKey = ExVisualTreeHelper.GetUtlFunctionKey(this.LayoutRoot); utlFunctionKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Init; utlFunctionKey.Init(); // バインド設定 SetBinding(); //System.Globalization.CultureInfo Culture = new System.Globalization.CultureInfo(Thread.CurrentThread.CurrentCulture.Name); //// SelectedDateFormat=Shortのパターン //Culture.DateTimeFormat.ShortDatePattern = "yyyy/MM"; //// SelectedDateFormat=Longのパターン //Culture.DateTimeFormat.LongDatePattern = "ggy'年'M'月'"; //Thread.CurrentThread.CurrentCulture = Culture; ExBackgroundWorker.DoWork_Focus(this.utlPurchase.txtID, 100); }
private void CheckRange(StackPanel stp, bool flg) { foreach (CheckBox chk in ExVisualTreeHelper.FindVisualChildren <CheckBox>(stp)) { chk.IsChecked = flg; } }
private void searchDlg_Closed(object sender, EventArgs e) { try { Common.gWinGroupType = _beforeWinGroupType; Dlg_MeiSearch dlg = (Dlg_MeiSearch)sender; if (dlg.DialogResult == true) { this.txtBindID.Text = dlg.id.ToString(); this.txtNm.Text = dlg.description; //if (_before != this.txtBindID.Text.Trim()) //{ // if (this.txt_LostFocus != null) this.txt_LostFocus(null, null); //} // 次コントロールフォーカスセット ExVisualTreeHelper.FoucsNextControl(this); } else { this.txtBindID.Focus(); } } finally { this.IsSearchDlgOpen = false; } }
private void txt_GotFocus(object sender, RoutedEventArgs e) { Control ctl = (Control)sender; switch (ctl.Name) { case "chkSalesCredit0_Yes": case "chkSalesCredit0_No": case "chkBussinesNo": case "chkBussinesYes": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; case "datYm": case "utlInvoice_F": case "utlInvoice_T": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", true, this); activeControl = ctl; break; default: break; } }
private void ExUserControl_Loaded(object sender, RoutedEventArgs e) { //System.Globalization.CultureInfo Culture = new System.Globalization.CultureInfo(Thread.CurrentThread.CurrentCulture.Name); //// SelectedDateFormat=Shortのパターン //Culture.DateTimeFormat.ShortDatePattern = "yyyy/MM"; //// SelectedDateFormat=Longのパターン //Culture.DateTimeFormat.LongDatePattern = "ggy'年'M'月'"; //Thread.CurrentThread.CurrentCulture = Culture; this.utlFKey = ExVisualTreeHelper.GetUtlFunctionKey(this.LayoutRoot); this.utlFKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Init; // 処理棚卸日初期設定 DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datYmd, ref this.datYmd); //if (Common.gWinGroupType == Common.geWinGroupType.InpDetailReport && this.utlFKey != null) //{ // this.utlFKey.btnF6.Content = " F6 " + Environment.NewLine; // this.utlFKey.btnF6.IsEnabled = false; //} this.utlFKey.btnF6.Content = " F6 " + Environment.NewLine; this.utlFKey.btnF6.IsEnabled = false; Init_SearchDisplay(); }
private void ExChildWindow_Loaded(object sender, RoutedEventArgs e) { beforeWinGroupType = Common.gWinGroupType; Common.gWinGroupType = Common.geWinGroupType.ReportSetting; this.utlDummy.evtDataSelect -= this._evtDataSelect; this.utlDummy.evtDataSelect += this._evtDataSelect; this.utlDummy.evtDataUpdate -= this._evtDataUpdate; this.utlDummy.evtDataUpdate += this._evtDataUpdate; if (this.IsPurchaseKbn) { this.cmbTotalKbn.Items.Clear(); this.cmbTotalKbn.Items.Add("デフォルト"); this.cmbTotalKbn.Items.Add("仕入先別"); this.cmbTotalKbn.Items.Add("担当別"); } else if (this.IsInvoiceKbn) { this.cmbTotalKbn.Items.Clear(); this.cmbTotalKbn.Items.Add("デフォルト"); this.cmbTotalKbn.Items.Add("請求先別"); this.cmbTotalKbn.Items.Add("担当別"); } // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); this.utlFunctionKey.Init(); Init(); //SetBinding(); GetReportSettingData(); }
private void searchDlg_Closed(object sender, EventArgs e) { try { Dlg_MstSearch dlg = (Dlg_MstSearch)sender; if (dlg.DialogResult == true) { string zip = Dlg_MstSearch.this_id; zip = String.Format("{0:0000000}", ExCast.zCDbl(zip)); this.txtZipNo1.Text = zip.Substring(0, 3); this.txtZipNo2.Text = zip.Substring(3, 4); this.txtAdress1.Text = Dlg_MstSearch.this_attribute1 + Dlg_MstSearch.this_attribute2 + Dlg_MstSearch.this_attribute3; this.txtAdress2.Text = ""; this.predecture_Name = Dlg_MstSearch.this_attribute1; this.city_Name = Dlg_MstSearch.this_attribute2; this.town_Name = Dlg_MstSearch.this_attribute3; this.UserControlAdress1 = this.txtAdress1.Text; this.UserControlAdress2 = this.txtAdress2.Text; // 次コントロールフォーカスセット ExVisualTreeHelper.FoucsNextControl(this); } else { this.txtZipNo1.Focus(); } } finally { this.IsSearchDlgOpen = false; } }
// 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(); }
private void ExUserControl_Loaded(object sender, RoutedEventArgs e) { // 画面初期化 ExVisualTreeHelper.initDisplay(this.LayoutRoot); GetMstList(ExWebService.geDialogDisplayFlg.Yes); }
// F12ボタン(キャンセル) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { this.DialogResult = false; Dlg_InpSearch win = (Dlg_InpSearch)ExVisualTreeHelper.FindPerentChildWindow(this); win.Close(); }
private void InitCheck() { foreach (CheckBox chk in ExVisualTreeHelper.FindVisualChildren <CheckBox>(this.stpAll)) { chk.IsChecked = false; } }
private void txtUnitPrice_MouseDoubleClick(object sender, MouseButtonEventArgs e) { beforeValueDlg = ""; if (_entityListD.Count >= DataForm.CurrentIndex) { beforeValueDlg = ExCast.zCStr(_entityListD[DataForm.CurrentIndex]._unit_price); } if (_txtUnitPrice == null) { _txtUnitPrice = ExVisualTreeHelper.FindTextBox(this.DataForm, "txtUnitPrice"); } Dlg_UnitPriceSetting unitPriceDlg = new Dlg_UnitPriceSetting(); // 税転換が内税で明細課税有りの場合 if ((_entityH._tax_change_id == 4 || _entityH._tax_change_id == 5 || _entityH._tax_change_id == 6) && _entityListD[DataForm.CurrentIndex]._tax_division_id == 1) { unitPriceDlg.retail_price = _entityListD[DataForm.CurrentIndex]._retail_price_before_tax; unitPriceDlg.sales_unit_price = _entityListD[DataForm.CurrentIndex]._sales_unit_price_before_tax; unitPriceDlg.sales_cost_price = _entityListD[DataForm.CurrentIndex]._sales_cost_price_before_tax; } else { unitPriceDlg.retail_price = _entityListD[DataForm.CurrentIndex]._retail_price_skip_tax; unitPriceDlg.sales_unit_price = _entityListD[DataForm.CurrentIndex]._sales_unit_price_skip_tax; unitPriceDlg.sales_cost_price = _entityListD[DataForm.CurrentIndex]._sales_cost_price_skip_tax; } unitPriceDlg.unit_decimal_digit = _entityListD[DataForm.CurrentIndex]._unit_decimal_digit; unitPriceDlg.credit_rate = _entityH._credit_rate; unitPriceDlg.Closed += unitPriceDlg_Closed; unitPriceDlg.Show(); }
private void txt_GotFocus(object sender, RoutedEventArgs e) { Control ctl = (Control)sender; switch (ctl.Name) { case "utlID": //case "utlZip": case "utlCustomer": case "utlDisplay": //case "utlZip.Name": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", true, this); activeControl = ctl; break; case "txtName": case "txtKana": case "txtAdoutName": case "txtStationName": case "txtPersonName": case "txtPostName": case "txtTel": case "txtFax": case "txtMail": case "txtMemo": ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; default: ExVisualTreeHelper.SetFunctionKeyEnabled("F5", false, this); activeControl = null; break; } }
// 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(); } }
private Utl_FunctionKey GetUserControlFKey() { if (utlFncKey == null) { utlFncKey = ExVisualTreeHelper.GetUtlFunctionKey(this.LayoutRoot); } return(utlFncKey); }
// 画面ロード時 private void Page_Loaded(object sender, RoutedEventArgs e) { this.UserCtlFooter.perentPage = this; ChangePage(); ExVisualTreeHelper.SetResource(this.LayoutRoot); }
// F12ボタン(メニュー) クリック public override void btnF12_Click(object sender, RoutedEventArgs e) { UA_Main pg = (UA_Main)ExVisualTreeHelper.FindPerentPage(this.Parent); Common.gPageGroupType = Common.gePageGroupType.Menu; Common.gPageType = Common.gePageType.Menu; pg.ChangePage(); }