Example #1
0
        private void DisplayButtons(MessageBoxButtons buttons)
        {
            switch (buttons)
            {
            case MessageBoxButtons.Ok:
                btnCancel.Visibility = Visibility.Collapsed;
                btnNo.Visibility     = Visibility.Collapsed;
                btnYes.Visibility    = Visibility.Visible;
                btnYes.Content       = "Ok";
                ExBackgroundWorker.DoWork_Focus(btnYes, 100);
                break;

            case MessageBoxButtons.OkCancel:
                btnCancel.Visibility = Visibility.Visible;
                btnNo.Visibility     = Visibility.Collapsed;
                btnYes.Visibility    = Visibility.Visible;
                btnYes.Content       = "Ok";
                ExBackgroundWorker.DoWork_FocusForLoad(btnCancel);
                break;

            case MessageBoxButtons.YesNo:
                btnCancel.Visibility = Visibility.Collapsed;
                btnNo.Visibility     = Visibility.Visible;
                btnYes.Visibility    = Visibility.Visible;
                ExBackgroundWorker.DoWork_Focus(btnNo, 100);
                break;

            case MessageBoxButtons.YesNoCancel:
                btnCancel.Visibility = Visibility.Visible;
                btnNo.Visibility     = Visibility.Visible;
                btnYes.Visibility    = Visibility.Visible;
                ExBackgroundWorker.DoWork_Focus(btnCancel, 100);
                break;
            }
        }
        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);
        }
Example #3
0
        private void SetFocusOn()
        {
            if (this.IsFocusOn == false)
            {
                this.IsFocusOn = true;

                Control _ctl = this.activeControl;

                // IME制御の為のフォーカス移動
                this._txtReceiptDivisionId.Focus();
                this._txtReceiptDivisionNm.Focus();
                this._txtBillSiteDay.Focus();
                this._txtPrice.Focus();
                this._txtDetailMemo.Focus();
                this._txtPrice.Focus();
                this._txtBillSiteDay.Focus();
                this._txtReceiptDivisionNm.Focus();
                this._txtReceiptDivisionId.Focus();

                this._txtReceiptDivisionId.OnFormatString();
                this._txtPrice.OnFormatString();

                // 前のコントロールにフォーカス移動
                if (_ctl == null)
                {
                    ExBackgroundWorker.DoWork_FocusForLoad(this._txtReceiptDivisionId);
                }
                else
                {
                    switch (_ctl.Name)
                    {
                    case "txtReceiptDivisionId": ExBackgroundWorker.DoWork_FocusForLoad(this._txtReceiptDivisionId); break;

                    case "txtReceiptDivisionNm": ExBackgroundWorker.DoWork_FocusForLoad(this._txtReceiptDivisionNm); break;

                    case "txtBillSiteDay": ExBackgroundWorker.DoWork_FocusForLoad(this._txtBillSiteDay); break;

                    case "txtPrice": ExBackgroundWorker.DoWork_FocusForLoad(this._txtPrice); break;

                    case "txtDetailMemo": ExBackgroundWorker.DoWork_FocusForLoad(this._txtDetailMemo); break;
                    }
                }
            }
        }
        private void ExUserControl_Loaded(object sender, RoutedEventArgs e)
        {
            if (Common.gblnLogin == false)
            {
                return;
            }

            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);

            // ファンクションキー初期設定
            this.utlFunctionKey.gFunctionKeyEnable = Utl_FunctionKey.geFunctionKeyEnable.Init;
            this.utlFunctionKey.Init();

            // バインド設定
            SetBinding();

            ExBackgroundWorker.DoWork_FocusForLoad(this.utlID);
        }
Example #5
0
 private void _evtDataSelect(int intKbn, object objList)
 {
     this.cmbLoginId.Items.Clear();
     if (objList != null)
     {
         _entityUserList = (ObservableCollection <EntityMstList>)objList;
         for (int i = 0; i <= _entityUserList.Count - 1; i++)
         {
             this.cmbLoginId.Items.Add(_entityUserList[i].id);
         }
         this.cmbLoginId.SelectedIndex = -1;
     }
     else
     {
         ExMessageBox.Show("ログインユーザーリストの取得に失敗しました。");
         this.btnF12_Click(null, null);
     }
     ExBackgroundWorker.DoWork_FocusForLoad(this.cmbLoginId);
 }
Example #6
0
        private void SetFocusOn()
        {
            if (this.IsFocusOn == false)
            {
                this.IsFocusOn = true;

                Control _ctl = this.activeControl;

                // IME制御の為のフォーカス移動
                this._txtDetailMemo.Focus();
                this._cboTaxDivision.Focus();
                this._txtPrice.Focus();
                this._txtUnitPrice.Focus();
                this._txtNumber.Focus();
                this._txtCaseNum.Focus();
                this._txtEnterNum.Focus();
                this._cboUnit.Focus();
                this._txtGoodsNm.Focus();
                this._txtGoodsId.Focus();
                this._cmbBreakdown.Focus();

                this._txtPrice.OnFormatString();
                this._txtUnitPrice.OnFormatString();
                this._txtNumber.OnFormatString();
                this._txtCaseNum.OnFormatString();
                this._txtPrice.OnFormatString();
                this._txtEnterNum.OnFormatString();

                // 前のコントロールにフォーカス移動
                if (_ctl == null)
                {
                    ExBackgroundWorker.DoWork_FocusForLoad(this._txtGoodsId);
                }
                else
                {
                    switch (_ctl.Name)
                    {
                    case "cmbBreakdown": ExBackgroundWorker.DoWork_FocusForLoad(this._cmbBreakdown); break;

                    case "txtGoodsId": ExBackgroundWorker.DoWork_FocusForLoad(this._txtGoodsId); break;

                    case "txtGoodsNm": ExBackgroundWorker.DoWork_FocusForLoad(this._txtGoodsNm); break;

                    case "cboUnit": ExBackgroundWorker.DoWork_FocusForLoad(this._cboUnit); break;

                    case "txtEnterNum": ExBackgroundWorker.DoWork_FocusForLoad(this._txtEnterNum); break;

                    case "txtCaseNum": ExBackgroundWorker.DoWork_FocusForLoad(this._txtCaseNum); break;

                    case "txtNumber": ExBackgroundWorker.DoWork_FocusForLoad(this._txtNumber); break;

                    case "txtUnitPrice": ExBackgroundWorker.DoWork_FocusForLoad(this._txtUnitPrice); break;

                    case "txtPrice": ExBackgroundWorker.DoWork_FocusForLoad(this._txtPrice); break;

                    case "cboTaxDivision": ExBackgroundWorker.DoWork_FocusForLoad(this._cboTaxDivision); break;

                    case "txtDetailMemo": ExBackgroundWorker.DoWork_FocusForLoad(this._txtDetailMemo); break;
                    }
                }
            }
        }