// 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);
        }
示例#2
0
        // 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 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();
        }
        // F2ボタン(条件クリア) クリック
        public override void btnF2_Click(object sender, RoutedEventArgs e)
        {
            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);
            this.lst.Clear();
            this.dgSelect.ItemsSource = null;
            DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datPaymentCloseYmd_F, ref this.datPaymentCloseYmd_T);
            this.datIssueYmd.SelectedDate = DateTime.Now;

            ExBackgroundWorker.DoWork_Focus(this.utlPaymentNo_F.txtID, 10);
        }
        // F2ボタン(条件クリア) クリック
        public override void btnF2_Click(object sender, RoutedEventArgs e)
        {
            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);
            this.entityList = null;
            DataInitWhere.InitDateYm(ref this.datYm);

            // 取引区分
            //this.chkSime.IsChecked = false;
            //this.chkKake.IsChecked = false;

            ExBackgroundWorker.DoWork_Focus(this.datYm, 10);
        }
示例#6
0
        private void _Init_SearchDisplay()
        {
            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);

            if (Common.gWinType == Common.geWinType.ListPaymentCashMonth)
            {
                lblReceiptYmd.Content = "出金年月";
                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.lst.Clear();
            this.dg.ItemsSource = null;
            this.dg.ItemsSource = lst;

            // ファンクションキー初期設定
            utlFKey = ExVisualTreeHelper.GetUtlFunctionKey(this);
            this.utlFKey.Init();

            this.utlReport.gPageType     = Common.gPageType;
            this.utlReport.gWinMsterType = Common.geWinMsterType.None;
            this.utlReport.parentUtl     = this;
            this.utlReport.Init();

            if (Common.gWinGroupType == Common.geWinGroupType.InpList)
            {
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datPaymentCashYmd_F, ref this.datPaymentCashYmd_T);
            }
            else
            {
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datPaymentCashYmd_F, ref this.datPaymentCashYmd_T);
            }

            if (Common.gWinGroupType != Common.geWinGroupType.InpList)
            {
                this.utlFKey.btnF6.Content   = "     F6     " + Environment.NewLine;
                this.utlFKey.btnF6.IsEnabled = false;
            }

            SetBinding();

            GetListData();
        }
示例#7
0
        // 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.datPaymentCashYmd_F, ref this.datPaymentCashYmd_T);
            }
            else
            {
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datPaymentCashYmd_F, ref this.datPaymentCashYmd_T);
            }

            ExBackgroundWorker.DoWork_Focus(this.datPaymentCashYmd_F, 10);
        }
        private void _Init_SearchDisplay()
        {
            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);

            // 処理棚卸日初期設定
            DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datYmd, ref this.datYmd);

            //this.dgPrint.ItemsSource = null;
            this.dgUpdate.ItemsSource = null;

            // ファンクションキー初期設定
            utlFKey = ExVisualTreeHelper.GetUtlFunctionKey(this);
            this.utlFKey.Init();

            this.utlReport.gPageType     = Common.gPageType;
            this.utlReport.gWinMsterType = Common.geWinMsterType.None;
            this.utlReport.parentUtl     = this;
            this.utlReport.Init();

            // DataGrid設定
            this.GridDetail.Visibility       = System.Windows.Visibility.Collapsed;
            this.GridDetailUpdate.Visibility = System.Windows.Visibility.Visible;

            //switch (Common.gWinGroupType)
            //{
            //    case Common.geWinGroupType.InpListUpd:
            //        // DataGrid設定
            //        this.GridDetail.Visibility = System.Windows.Visibility.Collapsed;
            //        this.GridDetailUpdate.Visibility = System.Windows.Visibility.Visible;
            //        break;
            //    case Common.geWinGroupType.InpListReport:
            //        // DataGrid設定
            //        this.GridDetail.Visibility = System.Windows.Visibility.Collapsed;
            //        this.GridDetailUpdate.Visibility = System.Windows.Visibility.Collapsed;

            //        this.utlFKey.btnF6.Content = "     F6     " + Environment.NewLine;
            //        this.utlFKey.btnF6.IsEnabled = false;

            //        break;
            //}

            SetBinding();

            //GetListData();
        }
示例#9
0
        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;

            // 処理対象年月初期設定
            DataInitWhere.InitDateYm(ref this.datYm);

            if (Common.gWinGroupType == Common.geWinGroupType.InpDetailReport && this.utlFKey != null)
            {
                this.utlFKey.btnF6.Content   = "     F6     " + Environment.NewLine;
                this.utlFKey.btnF6.IsEnabled = false;
            }
        }
        // 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.datInOutDeliveryYmd_F, ref this.datInOutDeliveryYmd_T);
            }
            else
            {
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datInOutDeliveryYmd_F, ref this.datInOutDeliveryYmd_T);
            }

            // 入出庫処理区分
            this.chkInOutDelivery.IsChecked = false;
            this.chkSales.IsChecked         = false;
            this.chkPurchase.IsChecked      = false;

            ExBackgroundWorker.DoWork_Focus(this.datInOutDeliveryYmd_F, 10);
        }
示例#11
0
        private void _Init_SearchDisplay()
        {
            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);

            if (Common.gWinType == Common.geWinType.ListCollectPlan)
            {
                this.lblCollectPlanYmd.Content = "回収予定日";
                this.utlInvoice_F.Visibility   = System.Windows.Visibility.Visible;
                this.utlInvoice_T.Visibility   = System.Windows.Visibility.Visible;
                this.utlPurchase_F.Visibility  = System.Windows.Visibility.Collapsed;
                this.utlPurchase_T.Visibility  = System.Windows.Visibility.Collapsed;
            }
            else
            {
                this.lblCollectPlanYmd.Content = "支払予定日";
                this.utlInvoice_F.Visibility   = System.Windows.Visibility.Collapsed;
                this.utlInvoice_T.Visibility   = System.Windows.Visibility.Collapsed;
                this.utlPurchase_F.Visibility  = System.Windows.Visibility.Visible;
                this.utlPurchase_T.Visibility  = System.Windows.Visibility.Visible;
            }

            // ファンクションキー初期設定
            utlFKey = ExVisualTreeHelper.GetUtlFunctionKey(this);
            this.utlFKey.Init();

            // レポート初期設定
            this.utlReport.gPageType     = Common.gPageType;
            this.utlReport.gWinMsterType = Common.geWinMsterType.None;
            this.utlReport.parentUtl     = this;
            this.utlReport.Init();

            entityList          = null;
            this.dg.ItemsSource = null;
            this.dg.ItemsSource = entityList;

            switch (Common.gWinGroupType)
            {
            case Common.geWinGroupType.InpList:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datCollectPlanYmd_F, ref this.datCollectPlanYmd_T);

                // DataGrid設定
                this.GridDetail.Visibility = System.Windows.Visibility.Visible;

                break;

            case Common.geWinGroupType.InpListReport:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datCollectPlanYmd_F, ref this.datCollectPlanYmd_T);

                // DataGrid設定
                this.GridDetail.Visibility = System.Windows.Visibility.Collapsed;

                break;

            case Common.geWinGroupType.InpDetailReport:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datCollectPlanYmd_F, ref this.datCollectPlanYmd_T);

                // DataGrid設定
                this.GridDetail.Visibility = System.Windows.Visibility.Visible;
                this.dg.ItemsSource        = null;
                this.dg.ItemsSource        = entityList;

                this.utlFKey.btnF6.Content   = "     F6     " + Environment.NewLine;
                this.utlFKey.btnF6.IsEnabled = false;

                break;
            }

            SetBinding();

            GetListData();
        }
        private void _Init_SearchDisplay()
        {
            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);

            this.lst.Clear();
            this.dg.ItemsSource = null;
            this.dg.ItemsSource = lst;

            // ファンクションキー初期設定
            utlFKey = ExVisualTreeHelper.GetUtlFunctionKey(this);
            this.utlFKey.Init();

            this.utlReport.gPageType     = Common.gPageType;
            this.utlReport.gWinMsterType = Common.geWinMsterType.None;
            this.utlReport.parentUtl     = this;
            this.utlReport.Init();

            switch (Common.gWinGroupType)
            {
            case Common.geWinGroupType.InpList:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datOrderYmd_F, ref this.datOrderYmd_T);

                // DataGrid設定
                this.GridDetail.Visibility       = System.Windows.Visibility.Visible;
                this.GridDetailSelect.Visibility = System.Windows.Visibility.Collapsed;

                // 発行区分表示設定
                this.borPrint.Visibility = System.Windows.Visibility.Collapsed;

                break;

            case Common.geWinGroupType.InpListReport:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datOrderYmd_F, ref this.datOrderYmd_T);

                // DataGrid設定
                this.GridDetail.Visibility       = System.Windows.Visibility.Collapsed;
                this.GridDetailSelect.Visibility = System.Windows.Visibility.Visible;

                // 発行区分表示設定
                this.borPrint.Visibility = System.Windows.Visibility.Visible;

                this.chkPrintNo.IsChecked  = true;
                this.chkPrintYes.IsChecked = false;

                break;

            case Common.geWinGroupType.InpDetailReport:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Today, ref this.datOrderYmd_F, ref this.datOrderYmd_T);

                // DataGrid設定
                this.GridDetail.Visibility       = System.Windows.Visibility.Visible;
                this.GridDetailSelect.Visibility = System.Windows.Visibility.Collapsed;
                this.dg.ItemsSource = null;
                this.dg.ItemsSource = lst;

                // 発行区分表示設定
                this.borPrint.Visibility = System.Windows.Visibility.Collapsed;

                this.utlFKey.btnF6.Content   = "     F6     " + Environment.NewLine;
                this.utlFKey.btnF6.IsEnabled = false;

                break;
            }

            SetBinding();

            GetListData();
        }
        private void ExUserControl_Loaded(object sender, RoutedEventArgs e)
        {
            // 画面初期化
            ExVisualTreeHelper.initDisplay(this.LayoutRoot);

            this.lst.Clear();
            this.dgSelect.ItemsSource = null;
            this.dgSelect.ItemsSource = lst;

            // ファンクションキー初期設定
            utlFKey = ExVisualTreeHelper.GetUtlFunctionKey(this);
            this.utlFKey.Init();

            this.utlReport.gPageType     = Common.gPageType;
            this.utlReport.gWinMsterType = Common.geWinMsterType.None;
            this.utlReport.parentUtl     = this;
            this.utlReport.Init();

            this.datIssueYmd.SelectedDate = DateTime.Now;
            this.chkPrintNo.IsChecked     = true;

            switch (Common.gWinGroupType)
            {
            case Common.geWinGroupType.InpList:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datPaymentCloseYmd_F, ref this.datPaymentCloseYmd_T);

                // 発行日表示設定
                this.lblIssueYmd.Visibility = System.Windows.Visibility.Collapsed;
                this.datIssueYmd.Visibility = System.Windows.Visibility.Collapsed;

                // DataGrid設定
                this.GridDetail.Visibility       = System.Windows.Visibility.Visible;
                this.GridDetailSelect.Visibility = System.Windows.Visibility.Collapsed;

                // 出金消込区分表示設定
                this.borReceipt.Visibility = System.Windows.Visibility.Visible;

                // 発行区分表示設定
                this.borPrint.Visibility = System.Windows.Visibility.Collapsed;

                break;

            case Common.geWinGroupType.InpListReport:
                // 出力対象日初期設定
                DataInitWhere.InitDate(DataInitWhere.geDateKbn.Month, ref this.datPaymentCloseYmd_F, ref this.datPaymentCloseYmd_T);

                // 発行日表示設定
                this.lblIssueYmd.Visibility   = System.Windows.Visibility.Visible;
                this.datIssueYmd.Visibility   = System.Windows.Visibility.Visible;
                this.datIssueYmd.SelectedDate = DateTime.Now;

                // DataGrid設定
                this.GridDetail.Visibility       = System.Windows.Visibility.Collapsed;
                this.GridDetailSelect.Visibility = System.Windows.Visibility.Visible;

                // 出金消込区分表示設定
                this.borReceipt.Visibility = System.Windows.Visibility.Collapsed;

                // 発行区分表示設定
                this.borPrint.Visibility = System.Windows.Visibility.Visible;

                this.chkPrintNo.IsChecked  = true;
                this.chkPrintYes.IsChecked = false;

                break;
            }

            SetBinding();

            GetListData();
        }