Exemplo n.º 1
0
        /// <summary>
        /// 年度指定が変更された時のイベント処理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FiscalYear_cTextChanged(object sender, RoutedEventArgs e)
        {
            BSK02010.FiscalPeriod period = new BSK02010.FiscalPeriod();
            BSK02010 bsk020 = new BSK02010();

            // 年度指定期間を再計算
            period = bsk020.getFiscalFromTo(this.FiscalYear.Text);
            if (period == null)
            {
                this.PeriodYM.Text = string.Empty;
            }
            else
            {
                this.PeriodYM.Text = string.Format("月度 : {0}~{1}月度", period.PeriodStart.ToString("yyyy/MM"), period.PeriodEnd.ToString("yyyy/MM"));
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// パラメータを設定する
        /// </summary>
        private void setSearchParams()
        {
            paramDic.Clear();

            paramDic.Add(PARAMS_NAME_FISCAL_YEAR, FiscalYear.Text);
            paramDic.Add(PARAMS_NAME_COMPANY, MyCompany.Text1);
            // No.402 Mod Start
            BSK02010 bsk020 = new BSK02010();

            BSK02010.FiscalPeriod period = new BSK02010.FiscalPeriod();
            period = bsk020.getFiscalFromTo(FiscalYear.Text);
            paramDic.Add(PARAMS_NAME_FISCAL_FROM, period.PeriodStart.ToShortDateString());
            paramDic.Add(PARAMS_NAME_FISCAL_TO, period.PeriodEnd.ToShortDateString());
            paramDic.Add(PARAMS_NAME_BRAND_CODE_FROM, BrandFrom.Text1);
            paramDic.Add(PARAMS_NAME_BRAND_CODE_TO, BrandTo.Text1);
            paramDic.Add(PARAMS_NAME_PRODUCT_CODE_FROM, ProductFrom.Text1);
            paramDic.Add(PARAMS_NAME_PRODUCT_CODE_TO, ProductTo.Text1);
            paramDic.Add(PARAMS_NAME_ITEM_TYPE_FROM, cmbItemTypeFrom.SelectedValue.ToString());
            paramDic.Add(PARAMS_NAME_ITEM_TYPE_TO, cmbItemTypeTo.SelectedValue.ToString());
            // No.402 Mod End
        }
Exemplo n.º 3
0
        private void InitControl()
        {
            // 対象自社の初期設定
            this.txt自社.Text1     = ccfg.自社コード.ToString();
            this.txt自社.IsEnabled = ccfg.自社販社区分 == 自社販社区分.自社.GetHashCode();  // No.353 Mod

            // 処理年度の初期値設定
            // No.401 Mod Start
            BSK02010 bsk020 = new BSK02010();

            this.FiscalYear.Text = string.Format("{0}/{1}", DateTime.Now.Year, DateTime.Now.Month);
            BSK02010.FiscalPeriod period = bsk020.getFiscalFromTo(this.FiscalYear.Text);
            this.PeriodYM.Text = string.Format("月度 : {0}~{1}月度", period.PeriodStart.ToString("yyyy/MM"), period.PeriodEnd.ToString("yyyy/MM"));

            // 作成月の初期設定
            this.txt作成月.Text = string.Format("{0}/{1}", DateTime.Now.Year, DateTime.Now.Month);
            // No.401 Mod End

            // 作成区分コンボボックス設定
            AppCommon.SetutpComboboxList(this.cmb作成区分, false);
        }
Exemplo n.º 4
0
        /// <summary>
        /// パラメータを設定する
        /// </summary>
        private void setSearchParams()
        {
            paramDic.Clear();

            paramDic.Add(PARAMS_NAME_FISCAL_YEAR, FiscalYear.Text);
            paramDic.Add(PARAMS_NAME_COMPANY, txt自社.Text1 == null ? null : txt自社.Text1);
            paramDic.Add(PARAMS_NAME_TANTOU, txt担当者.Text1 == null ? null : txt担当者.Text1);
            paramDic.Add(PARAMS_NAME_CUSTOMER_CODE, txt得意先.Text1 == null ? null : txt得意先.Text1);
            paramDic.Add(PARAMS_NAME_CUSTOMER_EDA, txt得意先.Text2 == null ? null : txt得意先.Text2);
            // No.401 Mod Start
            BSK02010 bsk020 = new BSK02010();

            BSK02010.FiscalPeriod period = new BSK02010.FiscalPeriod();
            period = bsk020.getFiscalFromTo(this.FiscalYear.Text);
            paramDic.Add(PARAMS_NAME_START_YM, period.PeriodStart.ToShortDateString());
            paramDic.Add(PARAMS_NAME_END_YM, period.PeriodEnd.ToShortDateString());
            paramDic.Add(PARAMS_NAME_CREATE_YM, this.txt作成月.Text);
            // No.401 Mod End

            paramDic.Add(PARAMS_NAME_URIAGESAKI, rdo売上先.Text);
            paramDic.Add(PARAMS_NAME_CREATE_TYPE, cmb作成区分.SelectedIndex.ToString());
        }
Exemplo n.º 5
0
        /// <summary>
        /// 画面初期化
        /// </summary>
        private void ScreenClear()
        {
            this.MaintenanceMode = null;

            // No.353 Mod Start
            // 自社コード
            this.MyCompany.Text1     = ccfg.自社コード.ToString();
            this.MyCompany.IsEnabled = ccfg.自社販社区分 == 自社販社区分.自社.GetHashCode();
            // No.353 Mod End

            // 処理年度の初期値設定
            // No.402 Mod Start
            BSK02010 bsk020 = new BSK02010();

            this.FiscalYear.Text = string.Format("{0}/{1}", DateTime.Now.Year, DateTime.Now.Month);
            BSK02010.FiscalPeriod period = bsk020.getFiscalFromTo(this.FiscalYear.Text);
            this.PeriodYM.Text = string.Format("月度 : {0}~{1}月度", period.PeriodStart.ToString("yyyy/MM"), period.PeriodEnd.ToString("yyyy/MM"));

            // ブランド指定入力値クリア
            this.BrandFrom.Text1 = string.Empty;
            this.BrandFrom.Text2 = string.Empty;
            this.BrandTo.Text1   = string.Empty;
            this.BrandTo.Text2   = string.Empty;
            // 品番指定
            this.ProductFrom.Text1 = string.Empty;
            this.ProductFrom.Text2 = string.Empty;
            this.ProductTo.Text1   = string.Empty;
            this.ProductTo.Text2   = string.Empty;
            // 商品形態分類指定
            this.cmbItemTypeFrom.SelectedIndex = 0;
            this.cmbItemTypeTo.SelectedIndex   = 0;
            // No.402 Mod End

            ResetAllValidation();
            SetFocusToTopControl();
        }
Exemplo n.º 6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((KyoeiSystem.Application.Windows.Views.BSK02010)(target));

            #line 18 "..\..\..\..\Views\BSK\BSK02010.xaml"
                this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 18 "..\..\..\..\Views\BSK\BSK02010.xaml"
                this.Window.Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:

            #line 44 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 56 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 66 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 76 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 87 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 89 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 91 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 93 "..\..\..\..\Views\BSK\BSK02010.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.FiscalYear = ((KyoeiSystem.Framework.Windows.Controls.UcLabelTextBox)(target));
                return;

            case 11:
                this.MyCompany = ((KyoeiSystem.Framework.Windows.Controls.UcLabelTwinTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }