示例#1
0
        /// <summary>
        /// 対象コントロールのテキストクリアをおこなう
        /// </summary>
        /// <param name="kbn"></param>
        private void clearControlText(PaymentKbn kbn)
        {
            bool isEnabled = (kbn == PaymentKbn.Claim) ? _claimEnabled : _paymentEnabled;

            // コントロールが有効となる場合は処理しない
            if (isEnabled)
            {
                return;
            }

            switch (kbn)
            {
            case PaymentKbn.Claim:
                #region 請求項目
                this.T_YOSHIN.Text   = null;
                this.T_TAX_KBN.Text  = null;
                this.T_TAX_TANI.Text = null;
                this.T_SHIME_DT.Text = null;
                this.T_SHIHARAI.Text = null;
                this.T_SHIHARAI_KBN.SelectedValue = 1;
                this.T_SITE1.Text      = null;
                this.T_SITE2.Text      = null;
                this.T_NYUKIN_DT1.Text = null;
                this.T_NYUKIN_DT2.Text = null;
                this.T_TANTO.Text1     = null;
                this.T_TANTO.Text2     = string.Empty;
                #endregion

                break;

            case PaymentKbn.Payment:
                #region 支払項目
                this.S_TAX_KBN.Text  = null;
                this.S_TAX_TANI.Text = null;
                this.S_SHIME_DT.Text = null;
                this.S_SHIHARAI.Text = null;
                this.S_SHIHARAI_KBN.SelectedValue = 1;
                this.S_SITE1.Text      = null;
                this.S_SITE2.Text      = null;
                this.S_NYUKIN_DT1.Text = null;
                this.S_NYUKIN_DT2.Text = null;
                this.S_TANTO.Text1     = null;
                this.S_TANTO.Text2     = string.Empty;
                #endregion

                break;

            default:
                break;
            }
        }
示例#2
0
        /// <summary>
        /// 対象コントロールの編集可否を設定する
        /// </summary>
        /// <param name="kbn">支払区分</param>
        private void changeControlEnabled(PaymentKbn kbn)
        {
            bool isReadOnly = (kbn == PaymentKbn.Claim) ? !_claimEnabled : !_paymentEnabled;

            switch (kbn)
            {
            case PaymentKbn.Claim:
                #region 請求項目
                this.T_YOSHIN.cIsReadOnly           = isReadOnly;
                this.T_TAX_KBN.IsEnabled            = _claimEnabled;
                this.T_TAX_TANI.IsEnabled           = _claimEnabled;
                this.T_SHIME_DT.cIsReadOnly         = isReadOnly;
                this.T_SHIHARAI.cIsReadOnly         = isReadOnly;
                this.T_SHIHARAI_KBN.Combo_IsEnabled = _claimEnabled;
                this.T_SITE1.IsEnabled        = _claimEnabled;
                this.T_SITE2.IsEnabled        = _claimEnabled;
                this.T_NYUKIN_DT1.cIsReadOnly = isReadOnly;
                this.T_NYUKIN_DT2.cIsReadOnly = isReadOnly;
                this.T_TANTO.Text1IsReadOnly  = isReadOnly;

                // フォーカス無効
                this.T_YOSHIN.Focusable       = _claimEnabled;
                this.T_TAX_KBN.Focusable      = _claimEnabled;
                this.T_TAX_TANI.Focusable     = _claimEnabled;
                this.T_SHIME_DT.Focusable     = _claimEnabled;
                this.T_SHIHARAI.Focusable     = _claimEnabled;
                this.T_SHIHARAI_KBN.Focusable = _claimEnabled;
                this.T_SITE1.Focusable        = _claimEnabled;
                this.T_SITE2.Focusable        = _claimEnabled;
                this.T_NYUKIN_DT1.Focusable   = _claimEnabled;
                this.T_NYUKIN_DT2.Focusable   = _claimEnabled;
                this.T_TANTO.Focusable        = _claimEnabled;

                #endregion

                break;

            case PaymentKbn.Payment:
                #region 支払項目
                this.S_TAX_KBN.IsEnabled            = _paymentEnabled;
                this.S_TAX_TANI.IsEnabled           = _paymentEnabled;
                this.S_SHIME_DT.cIsReadOnly         = isReadOnly;
                this.S_SHIHARAI.cIsReadOnly         = isReadOnly;
                this.S_SHIHARAI_KBN.Combo_IsEnabled = _paymentEnabled;
                this.S_SITE1.IsEnabled        = _paymentEnabled;
                this.S_SITE2.IsEnabled        = _paymentEnabled;
                this.S_NYUKIN_DT1.cIsReadOnly = isReadOnly;
                this.S_NYUKIN_DT2.cIsReadOnly = isReadOnly;
                this.S_TANTO.Text1IsReadOnly  = isReadOnly;

                // 支払項目
                this.S_TAX_KBN.Focusable      = _paymentEnabled;
                this.S_TAX_TANI.Focusable     = _paymentEnabled;
                this.S_SHIME_DT.Focusable     = _paymentEnabled;
                this.S_SHIHARAI.Focusable     = _paymentEnabled;
                this.S_SHIHARAI_KBN.Focusable = _paymentEnabled;
                this.S_SITE1.Focusable        = _paymentEnabled;
                this.S_SITE2.Focusable        = _paymentEnabled;
                this.S_NYUKIN_DT1.Focusable   = _paymentEnabled;
                this.S_NYUKIN_DT2.Focusable   = _paymentEnabled;
                this.S_TANTO.Focusable        = _paymentEnabled;

                #endregion

                break;

            default:
                break;
            }

            // REMARKS:FW共通処理で変更されるので常に再設定
            this.ADD_STAFF.Focusable = false;
            this.ADD_DT.Focusable    = false;
            this.UPD_STAFF.Focusable = false;
            this.UPD_DT.Focusable    = false;
            this.DEL_STAFF.Focusable = false;
            this.DEL_DT.Focusable    = false;
        }
示例#3
0
 /// <summary>
 /// コントロール変更ポータル
 /// </summary>
 /// <param name="kbn">支払区分</param>
 private void changeControl(PaymentKbn kbn)
 {
     changeControlEnabled(kbn);
     clearControlText(kbn);
 }