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();
        }
        public static void SaveLoadOrUnLoadEvidence(Common.geWinGroupType winGroupType,
                                                    Common.geWinType winType,
                                                    DataPgEvidence.geOperationType operationType)
        {
            switch (winGroupType)
            {
            case Common.geWinGroupType.NameList:
                break;

            case Common.geWinGroupType.InpList:
                switch (winType)
                {
                case Common.geWinType.ListOrder:
                    DataPgEvidence.gAddEvidence(DataPgEvidence.PGName.Order.OrderList, (int)operationType, "");
                    break;

                default:
                    break;
                }
                break;

            case Common.geWinGroupType.MstList:
                break;

            default:
                break;
            }
        }
        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();
        }
Beispiel #4
0
        // F11ボタン(印刷) クリック
        public override void btnF11_Click(object sender, RoutedEventArgs e)
        {
            Common.report.utlReport.gPageType     = Common.gePageType.None;
            Common.report.utlReport.gWinMsterType = _WinMsterType;

            beforeWinGroupType   = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.Report;

            Common.report.Show();
            Common.report.Closed -= reportDlg_Closed;
            Common.report.Closed += reportDlg_Closed;
        }
        private void txtBindID_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.IsSearchDlgOpen == true)
            {
                return;
            }

            _beforeWinGroupType  = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.NameList;

            searchDlg = new Dlg_MeiSearch();
            searchDlg.Show();
            this.IsSearchDlgOpen = true;
            searchDlg.Closed    += searchDlg_Closed;
        }
        // F11ボタン(印刷) クリック
        public override void btnF11_Click(object sender, RoutedEventArgs e)
        {
            if (ExCast.zCInt(this.utlClass.txtID.Text.Trim()) == 0)
            {
                ExMessageBox.Show("分類区分を選択して下さい。");
                return;
            }

            if (ExCast.zCInt(this.utlClass.txtID.Text.Trim()) > 3)
            {
                ExMessageBox.Show("分類区分を適切に入力(選択)して下さい。");
                return;
            }

            switch (ExCast.zCInt(this.utlClass.txtID.Text.Trim()))
            {
            case 1:
                Common.report.utlReport.MstGroupKbn = Class.Data.MstData.geMGroupKbn.CustomerGrouop1;
                break;

            case 2:
                Common.report.utlReport.MstGroupKbn = Class.Data.MstData.geMGroupKbn.CommodityGrouop1;
                break;

            case 3:
                Common.report.utlReport.MstGroupKbn = Class.Data.MstData.geMGroupKbn.PurchaseGrouop1;
                break;

            default:
                ExMessageBox.Show("分類区分を適切に選択して下さい。");
                return;
            }

            Common.report.utlReport.gPageType     = Common.gePageType.None;
            Common.report.utlReport.gWinMsterType = _WinMsterType;
            beforeWinGroupType   = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.Report;

            Common.report.Closed -= reportDlg_Closed;
            Common.report.Closed += reportDlg_Closed;
            Common.report.Show();
        }
        public static void SaveLoadOrUnLoadEvidence(Common.geWinGroupType winGroupType,
                                                    Common.geWinMsterType winMstType,
                                                    DataPgEvidence.geOperationType operationType)
        {
            switch (winGroupType)
            {
            case Common.geWinGroupType.InpMaster:
            case Common.geWinGroupType.InpMasterDetail:
                switch (winMstType)
                {
                case  Common.geWinMsterType.Customer:
                    DataPgEvidence.gAddEvidence(DataPgEvidence.PGName.Mst.Customer, (int)operationType, "");
                    break;

                case Common.geWinMsterType.Person:
                    DataPgEvidence.gAddEvidence(DataPgEvidence.PGName.Mst.Person, (int)operationType, "");
                    break;

                case Common.geWinMsterType.Commodity:
                    DataPgEvidence.gAddEvidence(DataPgEvidence.PGName.Mst.Commodity, (int)operationType, "");
                    break;

                case Common.geWinMsterType.Condition:
                    DataPgEvidence.gAddEvidence(DataPgEvidence.PGName.Mst.Condition, (int)operationType, "");
                    break;

                case Common.geWinMsterType.Class:
                    DataPgEvidence.gAddEvidence(DataPgEvidence.PGName.Mst.Class, (int)operationType, "");
                    break;

                default:
                    break;
                }
                break;

            default:
                break;
            }
        }
        // F11ボタン(印刷) クリック
        public override void btnF11_Click(object sender, RoutedEventArgs e)
        {
            Common.report.utlReport.gPageType = Common.gePageType.None;
            Common.report.utlReport.gWinMsterType = _WinMsterType;

            beforeWinGroupType = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.Report;

            Common.report.Closed -= reportDlg_Closed;
            Common.report.Closed += reportDlg_Closed;
            Common.report.Show();
        }
        // F11ボタン(印刷) クリック
        public override void btnF11_Click(object sender, RoutedEventArgs e)
        {

            beforeWinGroupType = Common.gWinGroupType;
            Common.gWinMsterType = Common.geWinMsterType.None;
            Common.gWinGroupType = Common.geWinGroupType.InpListReport;
            Common.gWinType = this.WinType;

            Common.InpSearchEstimate.Closed -= reportDlg_Closed;
            Common.InpSearchEstimate.Closed += reportDlg_Closed;
            Common.InpSearchEstimate.Show();
        }
        // F11ボタン(印刷) クリック
        public override void btnF11_Click(object sender, RoutedEventArgs e)
        {
            if (ExCast.zCInt(this.utlClass.txtID.Text.Trim()) == 0)
            {
                ExMessageBox.Show("分類区分を選択して下さい。");
                return;
            }

            if (ExCast.zCInt(this.utlClass.txtID.Text.Trim()) > 3)
            {
                ExMessageBox.Show("分類区分を適切に入力(選択)して下さい。");
                return;
            }

            switch (ExCast.zCInt(this.utlClass.txtID.Text.Trim()))
            {
                case 1:
                    Common.report.utlReport.MstGroupKbn = Class.Data.MstData.geMGroupKbn.CustomerGrouop1;
                    break;
                case 2:
                    Common.report.utlReport.MstGroupKbn = Class.Data.MstData.geMGroupKbn.CommodityGrouop1;
                    break;
                case 3:
                    Common.report.utlReport.MstGroupKbn = Class.Data.MstData.geMGroupKbn.PurchaseGrouop1;
                    break;
                default:
                    ExMessageBox.Show("分類区分を適切に選択して下さい。");
                    return;
            }                        

            Common.report.utlReport.gPageType = Common.gePageType.None;
            Common.report.utlReport.gWinMsterType = _WinMsterType;
            beforeWinGroupType = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.Report;

            Common.report.Closed -= reportDlg_Closed;
            Common.report.Closed += reportDlg_Closed;
            Common.report.Show();
        }
        private void txtNo_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.IsDobleClick == false)
            {
                return;
            }
            if (this.IsSearchDlgOpen == true)
            {
                return;
            }

            _beforeWinGroupType  = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.InpList;

            switch (InpSearchKbn)
            {
            case geInpSearchKbn.Order:
                Common.gWinType = Common.geWinType.ListOrder;
                Common.InpSearchOrder.Closed -= searchDlg_Closed;
                Common.InpSearchOrder.Closed += searchDlg_Closed;
                Common.InpSearchOrder.Show();
                break;

            case geInpSearchKbn.Estimate:
                Common.gWinType = Common.geWinType.ListEstimat;
                Common.InpSearchEstimate.Closed -= searchDlg_Closed;
                Common.InpSearchEstimate.Closed += searchDlg_Closed;
                Common.InpSearchEstimate.Show();
                break;

            case geInpSearchKbn.Sales:
                Common.gWinType = Common.geWinType.ListSales;
                Common.InpSearchSales.Closed -= searchDlg_Closed;
                Common.InpSearchSales.Closed += searchDlg_Closed;
                Common.InpSearchSales.Show();
                break;

            case geInpSearchKbn.Receipt:
                Common.gWinType = Common.geWinType.ListReceipt;
                Common.InpSearchReceipt.Closed -= searchDlg_Closed;
                Common.InpSearchReceipt.Closed += searchDlg_Closed;
                Common.InpSearchReceipt.Show();
                break;

            case geInpSearchKbn.Invoice:
                Common.gWinType = Common.geWinType.ListInvoice;
                Common.InpSearchInvoice.Closed -= searchDlg_Closed;
                Common.InpSearchInvoice.Closed += searchDlg_Closed;
                Common.InpSearchInvoice.Show();
                break;

            case geInpSearchKbn.PurchaseOrder:
                Common.gWinType = Common.geWinType.ListPurchaseOrder;
                Common.InpSearchPurchaseOrder.Closed -= searchDlg_Closed;
                Common.InpSearchPurchaseOrder.Closed += searchDlg_Closed;
                Common.InpSearchPurchaseOrder.Show();
                break;

            case geInpSearchKbn.Purchase:
                Common.gWinType = Common.geWinType.ListPurchase;
                Common.InpSearchPurchase.Closed -= searchDlg_Closed;
                Common.InpSearchPurchase.Closed += searchDlg_Closed;
                Common.InpSearchPurchase.Show();
                break;

            case geInpSearchKbn.PaymentCash:
                Common.gWinType = Common.geWinType.ListPaymentCash;
                Common.InpSearchPaymentCash.Closed -= searchDlg_Closed;
                Common.InpSearchPaymentCash.Closed += searchDlg_Closed;
                Common.InpSearchPaymentCash.Show();
                break;

            case geInpSearchKbn.Payment:
                Common.gWinType = Common.geWinType.ListPayment;
                Common.InpSearchPayment.Closed -= searchDlg_Closed;
                Common.InpSearchPayment.Closed += searchDlg_Closed;
                Common.InpSearchPayment.Show();
                break;

            case geInpSearchKbn.InOutDelivery:
                Common.gWinType = Common.geWinType.ListInOutDelivery;
                Common.InpSearchInOutDelivery.Closed -= searchDlg_Closed;
                Common.InpSearchInOutDelivery.Closed += searchDlg_Closed;
                Common.InpSearchInOutDelivery.Show();
                break;
            }

            this.IsSearchDlgOpen = true;
        }
        private void txtNo_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.IsDobleClick == false) return;
            if (this.IsSearchDlgOpen == true) return;

            _beforeWinGroupType = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.InpList;

            switch (InpSearchKbn)
            {
                case geInpSearchKbn.Order:
                    Common.gWinType = Common.geWinType.ListOrder;
                    Common.InpSearchOrder.Closed -= searchDlg_Closed;
                    Common.InpSearchOrder.Closed += searchDlg_Closed;
                    Common.InpSearchOrder.Show();
                    break;
                case geInpSearchKbn.Estimate:
                    Common.gWinType = Common.geWinType.ListEstimat;
                    Common.InpSearchEstimate.Closed -= searchDlg_Closed;
                    Common.InpSearchEstimate.Closed += searchDlg_Closed;
                    Common.InpSearchEstimate.Show();
                    break;
                case geInpSearchKbn.Sales:
                    Common.gWinType = Common.geWinType.ListSales;
                    Common.InpSearchSales.Closed -= searchDlg_Closed;
                    Common.InpSearchSales.Closed += searchDlg_Closed;
                    Common.InpSearchSales.Show();
                    break;
                case geInpSearchKbn.Receipt:
                    Common.gWinType = Common.geWinType.ListReceipt;
                    Common.InpSearchReceipt.Closed -= searchDlg_Closed;
                    Common.InpSearchReceipt.Closed += searchDlg_Closed;
                    Common.InpSearchReceipt.Show();
                    break;
                case geInpSearchKbn.Invoice:
                    Common.gWinType = Common.geWinType.ListInvoice;
                    Common.InpSearchInvoice.Closed -= searchDlg_Closed;
                    Common.InpSearchInvoice.Closed += searchDlg_Closed;
                    Common.InpSearchInvoice.Show();
                    break;
                case geInpSearchKbn.PurchaseOrder:
                    Common.gWinType = Common.geWinType.ListPurchaseOrder;
                    Common.InpSearchPurchaseOrder.Closed -= searchDlg_Closed;
                    Common.InpSearchPurchaseOrder.Closed += searchDlg_Closed;
                    Common.InpSearchPurchaseOrder.Show();
                    break;
                case geInpSearchKbn.Purchase:
                    Common.gWinType = Common.geWinType.ListPurchase;
                    Common.InpSearchPurchase.Closed -= searchDlg_Closed;
                    Common.InpSearchPurchase.Closed += searchDlg_Closed;
                    Common.InpSearchPurchase.Show();
                    break;
                case geInpSearchKbn.PaymentCash:
                    Common.gWinType = Common.geWinType.ListPaymentCash;
                    Common.InpSearchPaymentCash.Closed -= searchDlg_Closed;
                    Common.InpSearchPaymentCash.Closed += searchDlg_Closed;
                    Common.InpSearchPaymentCash.Show();
                    break;
                case geInpSearchKbn.Payment:
                    Common.gWinType = Common.geWinType.ListPayment;
                    Common.InpSearchPayment.Closed -= searchDlg_Closed;
                    Common.InpSearchPayment.Closed += searchDlg_Closed;
                    Common.InpSearchPayment.Show();
                    break;
                case geInpSearchKbn.InOutDelivery:
                    Common.gWinType = Common.geWinType.ListInOutDelivery;
                    Common.InpSearchInOutDelivery.Closed -= searchDlg_Closed;
                    Common.InpSearchInOutDelivery.Closed += searchDlg_Closed;
                    Common.InpSearchInOutDelivery.Show();
                    break;
            }

            this.IsSearchDlgOpen = true;
        }
        private void txtBindID_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (this.IsSearchDlgOpen == true) return;

            _beforeWinGroupType = Common.gWinGroupType;
            Common.gWinGroupType = Common.geWinGroupType.NameList;
            
            searchDlg = new Dlg_MeiSearch();
            searchDlg.Show();
            this.IsSearchDlgOpen = true;
            searchDlg.Closed += searchDlg_Closed;
        }