private void searchDlg_Closed(object sender, EventArgs e)
        {
            try
            {
                long _no           = 0;
                bool _DialogResult = false;

                Common.gWinGroupType = _beforeWinGroupType;

                Dlg_InpSearch dlg = (Dlg_InpSearch)sender;
                ExUserControl utl = (ExUserControl)ExVisualTreeHelper.FindUserControl(dlg, "utlInpSearch");
                switch (Common.gWinType)
                {
                case Common.geWinType.ListOrder:                    // 受注一覧
                    Common.InpSearchOrder.Closed -= searchDlg_Closed;
                    Utl_InpSearchOrder utlInpOrder = (Utl_InpSearchOrder)utl;
                    _no           = utlInpOrder.no;
                    _DialogResult = utlInpOrder.DialogResult;
                    break;

                case Common.geWinType.ListEstimat:                  // 見積一覧
                    Common.InpSearchEstimate.Closed -= searchDlg_Closed;
                    Utl_InpSearchEstimate utlInpEstimate = (Utl_InpSearchEstimate)utl;
                    _no           = utlInpEstimate.no;
                    _DialogResult = utlInpEstimate.DialogResult;
                    break;

                case Common.geWinType.ListSales:                    // 売上一覧
                    Common.InpSearchSales.Closed -= searchDlg_Closed;
                    Utl_InpSearchSales utlInpSales = (Utl_InpSearchSales)utl;
                    _no           = utlInpSales.no;
                    _DialogResult = utlInpSales.DialogResult;
                    break;

                case Common.geWinType.ListReceipt:                  // 入金一覧
                    Common.InpSearchReceipt.Closed -= searchDlg_Closed;
                    Utl_InpSearchReceipt utlInpReceipt = (Utl_InpSearchReceipt)utl;
                    _no           = utlInpReceipt.no;
                    _DialogResult = utlInpReceipt.DialogResult;
                    break;

                case Common.geWinType.ListInvoice:                  // 請求一覧
                    Common.InpSearchInvoice.Closed -= searchDlg_Closed;
                    Utl_InpInvoicePrint utlInpInvoice = (Utl_InpInvoicePrint)utl;
                    _no           = utlInpInvoice.no;
                    _DialogResult = utlInpInvoice.DialogResult;
                    break;

                case Common.geWinType.ListPurchaseOrder:            // 発注一覧
                    Common.InpSearchPurchaseOrder.Closed -= searchDlg_Closed;
                    Utl_InpSearchPurchaseOrder utlInpSearchPurchaseOrder = (Utl_InpSearchPurchaseOrder)utl;
                    _no           = utlInpSearchPurchaseOrder.no;
                    _DialogResult = utlInpSearchPurchaseOrder.DialogResult;
                    break;

                case Common.geWinType.ListPurchase:                 // 仕入一覧
                    Common.InpSearchPurchase.Closed -= searchDlg_Closed;
                    Utl_InpSearchPurchase utlInpSearchPurchase = (Utl_InpSearchPurchase)utl;
                    _no           = utlInpSearchPurchase.no;
                    _DialogResult = utlInpSearchPurchase.DialogResult;
                    break;

                case Common.geWinType.ListPaymentCash:              // 出金一覧
                    Common.InpSearchPaymentCash.Closed -= searchDlg_Closed;
                    Utl_InpSearchPaymentCash utlInpSearchPaymentCash = (Utl_InpSearchPaymentCash)utl;
                    _no           = utlInpSearchPaymentCash.no;
                    _DialogResult = utlInpSearchPaymentCash.DialogResult;
                    break;

                case Common.geWinType.ListPayment:                  // 支払一覧
                    Common.InpSearchPayment.Closed -= searchDlg_Closed;
                    Utl_InpPaymentPrint utlInpSearchPayment = (Utl_InpPaymentPrint)utl;
                    _no           = utlInpSearchPayment.no;
                    _DialogResult = utlInpSearchPayment.DialogResult;
                    break;

                case Common.geWinType.ListInOutDelivery:            // 入出庫一覧
                    Common.InpSearchInOutDelivery.Closed -= searchDlg_Closed;
                    Utl_InpSearchInOutDelivery utlInpSearchInOutDelivery = (Utl_InpSearchInOutDelivery)utl;
                    _no           = utlInpSearchInOutDelivery.no;
                    _DialogResult = utlInpSearchInOutDelivery.DialogResult;
                    break;

                default:
                    break;
                }

                if (_DialogResult == true)
                {
                    string _str = ExCast.zFormatForID(_no, Common.gintidFigureSlipNo);
                    this.txtID.Text = _str;
                    this.txtID.Text = _str;

                    // 次コントロールフォーカスセット
                    //ExVisualTreeHelper.FoucsNextControlNoFocus(this);
                    this.Focus();
                    this.txtID.UpdataFlg = true;
                    this.ExUserControl_LostFocus(null, null);
                }
                else
                {
                    this.txtID.Focus();
                }
            }
            finally
            {
                this.IsSearchDlgOpen = false;
            }
        }
Beispiel #2
0
        // マスタ名称取得
        public void GetMData(geMDataKbn mstKbn, string[] id, ExUserControl page)
        {
            ExWebServiceMst webService = new ExWebServiceMst();

            object[] prm;
            _page = page;

            switch (mstKbn)
            {
                #region 得意先

            case geMDataKbn.Customer:                   // 得意先
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomer,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Customer_F:                   // 得意先
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomer_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Customer_T:                   // 得意先
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCustomer_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region  入先

            case geMDataKbn.Supplier:                   // 納入先
                prm    = new object[2];
                prm[0] = id[0];
                prm[1] = id[1];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplier,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Supplier_F:                   // 納入先
                prm    = new object[2];
                prm[0] = id[0];
                prm[1] = id[1];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplier_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Supplier_T:                   // 納入先
                prm    = new object[2];
                prm[0] = id[0];
                prm[1] = id[1];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetSupplier_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 担当

            case geMDataKbn.Person:                     // 担当
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPerson,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Person_F:                     // 担当
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPerson_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Person_T:                     // 担当
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPerson_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 商品

            case geMDataKbn.Commodity:                   // 商品
                prm    = new object[2];
                prm[0] = id[0];
                if (id.Length > 1)
                {
                    prm[1] = id[1];
                }
                else
                {
                    prm[1] = "";
                }
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodity,
                                             MstData.dialogDisplayFlg,
                                             MstData.dialogCloseFlg,
                                             prm);
                MstData.dialogDisplayFlg = ExWebService.geDialogDisplayFlg.No;
                MstData.dialogCloseFlg   = ExWebService.geDialogCloseFlg.No;
                break;

            case geMDataKbn.Commodity_F:                   // 商品
                prm    = new object[2];
                prm[0] = id[0];
                if (id.Length > 1)
                {
                    prm[1] = id[1];
                }
                else
                {
                    prm[1] = "";
                }
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodity_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Commodity_T:                   // 商品
                prm    = new object[2];
                prm[0] = id[0];
                if (id.Length > 1)
                {
                    prm[1] = id[1];
                }
                else
                {
                    prm[1] = "";
                }
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCommodity_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 会社グループ

            case geMDataKbn.CompanyGroup:               // 会社グループ
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroup,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.CompanyGroup_F:               // 会社グループ
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroup_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.CompanyGroup_T:               // 会社グループ
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCompanyGroup_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 郵便番号

            case geMDataKbn.Zip:                        // 郵便番号
                prm    = new object[2];
                prm[0] = id[0];
                prm[1] = id[1];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetZip,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 締区分

            case geMDataKbn.Condition:                  // 締区分
                prm    = new object[2];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCondition,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Condition_F:                  // 締区分
                prm    = new object[2];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCondition_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Condition_T:                  // 締区分
                prm    = new object[2];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetCondition_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 入金区分

            case geMDataKbn.RecieptDivision:            // 入金区分
                prm    = new object[2];
                prm[0] = id[0];
                if (id.Length > 1)
                {
                    prm[1] = id[1];
                }
                else
                {
                    prm[1] = "";
                }
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetRecieptDivision,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 分類

            case geMDataKbn.Group:                      // 分類
                prm    = new object[2];
                prm[0] = id[0];
                prm[1] = id[1];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroup,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Group_F:                      // 分類
                prm    = new object[2];
                prm[0] = id[0];
                prm[1] = id[1];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroup_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Group_T:                      // 分類
                prm    = new object[2];
                prm[0] = id[0];
                prm[1] = id[1];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetGroup_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

                #region 仕入先

            case geMDataKbn.Purchase:                   // 仕入先
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchase,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Purchase_F:                   // 仕入先
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchase_F,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

            case geMDataKbn.Purchase_T:                   // 仕入先
                prm    = new object[1];
                prm[0] = id[0];
                webService.objPerent = page;
                webService.CallWebServiceMst(ExWebServiceMst.geWebServiceMstNmCallKbn.GetPurchase_T,
                                             ExWebService.geDialogDisplayFlg.No,
                                             ExWebService.geDialogCloseFlg.No,
                                             prm);
                break;

                #endregion

            default:
                break;
            }

            if (page is Utl_MstText)
            {
                Utl_MstText utl = (Utl_MstText)page;
                utl.Is_Call_MstID_Changed = true;
            }
        }
Beispiel #3
0
        public void Init()
        {
            this.GridMain.Children.Clear();

            switch (Common.gWinGroupType)
            {
            case Common.geWinGroupType.InpList:
                switch (Common.gWinType)
                {
                case Common.geWinType.ListEstimat:                      // 見積一覧
                    this.Title = "見積一覧";
                    utl        = new Utl_InpSearchEstimate();
                    break;

                case Common.geWinType.ListOrder:                        // 受注一覧
                    this.Title = "受注一覧";
                    utl        = new Utl_InpSearchOrder();
                    break;

                case Common.geWinType.ListSales:                        // 売上一覧
                    this.Title = "売上一覧";
                    utl        = new Utl_InpSearchSales();
                    break;

                case Common.geWinType.ListReceipt:                      // 入金一覧
                    this.Title = "入金一覧";
                    utl        = new Utl_InpSearchReceipt();
                    break;

                case Common.geWinType.ListInvoice:                      // 請求一覧
                    this.Title = "請求一覧";
                    utl        = new Utl_InpInvoicePrint();
                    break;

                case Common.geWinType.ListPurchaseOrder:                // 発注一覧
                    this.Title = "発注一覧";
                    utl        = new Utl_InpSearchPurchaseOrder();
                    break;

                case Common.geWinType.ListPurchase:                     // 仕入一覧
                    this.Title = "仕入一覧";
                    utl        = new Utl_InpSearchPurchase();
                    break;

                case Common.geWinType.ListPaymentCash:                  // 出金一覧
                    this.Title = "出金一覧";
                    utl        = new Utl_InpSearchPaymentCash();
                    break;

                case Common.geWinType.ListPayment:                      // 支払一覧
                    this.Title = "支払一覧";
                    utl        = new Utl_InpPaymentPrint();
                    break;

                case Common.geWinType.ListInOutDelivery:                // 入出庫一覧
                    this.Title = "入出庫一覧";
                    utl        = new Utl_InpSearchInOutDelivery();
                    break;

                default:
                    break;
                }
                break;

            case Common.geWinGroupType.InpListUpd:
                switch (Common.gWinType)
                {
                case Common.geWinType.ListInvoiceBalance:                   // 請求残高
                    this.Title = "請求残高";
                    utl        = new Utl_InpInvoiceBalance();
                    break;

                case Common.geWinType.ListSalesCreditBalance:               // 売掛残高
                    this.Title = "売掛残高";
                    utl        = new Utl_InpSalesCreditBalance();
                    break;

                case Common.geWinType.ListPaymentBalance:                   // 支払残高
                    this.Title = "支払残高";
                    utl        = new Utl_InpPaymentBalance();
                    break;

                case Common.geWinType.ListPaymentCreditBalance:             // 買掛残高
                    this.Title = "買掛残高";
                    utl        = new Utl_InpPaymentCreditBalance();
                    break;

                default:
                    break;
                }
                break;

            case Common.geWinGroupType.InpListReport:
                //this.Height = 320;
                //this.VerticalAlignment = System.Windows.VerticalAlignment.Top;

                switch (Common.gWinType)
                {
                case Common.geWinType.ListEstimat:                      // 見積一覧
                    this.Title = "レポート出力:見積書";
                    utl        = new Utl_InpSearchEstimate();
                    break;

                case Common.geWinType.ListOrder:                        // 受注一覧
                    this.Title = "レポート出力:注文請書";
                    utl        = new Utl_InpSearchOrder();
                    break;

                case Common.geWinType.ListSales:                        // 売上一覧
                    this.Title = "レポート出力:納品書";
                    utl        = new Utl_InpSearchSales();
                    break;

                case Common.geWinType.ListInvoice:                      // 請求一覧
                    this.Title  = "レポート出力:請求書";
                    utl         = new Utl_InpInvoicePrint();
                    this.Height = 700;
                    break;

                case Common.geWinType.ListReceipt:                      // 入金一覧
                    this.Title = "レポート出力:入金書";
                    utl        = new Utl_InpSearchReceipt();
                    break;

                case Common.geWinType.ListSalesCreditBalance:           // 売掛残高一覧
                    this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                    this.Title             = "レポート出力:売掛残高一覧表";
                    this.Height            = 320;
                    utl = new Utl_InpSalesCreditBalance();
                    break;

                case Common.geWinType.ListInvoiceBalance:               // 請求残高一覧
                    this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                    this.Title             = "レポート出力:請求残高一覧表";
                    this.Height            = 200;
                    utl = new Utl_InpInvoiceBalance();
                    break;

                case Common.geWinType.ListPaymentCreditBalance:           // 買掛残高一覧
                    this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                    this.Title             = "レポート出力:買掛残高一覧表";
                    this.Height            = 320;
                    utl = new Utl_InpPaymentCreditBalance();
                    break;

                case Common.geWinType.ListPaymentBalance:               // 支払残高一覧
                    this.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                    this.Title             = "レポート出力:支払残高一覧表";
                    this.Height            = 200;
                    utl = new Utl_InpPaymentBalance();
                    break;

                case Common.geWinType.ListPurchaseOrder:                // 発注一覧
                    this.Title = "レポート出力:注文書";
                    utl        = new Utl_InpSearchPurchaseOrder();
                    break;

                case Common.geWinType.ListPayment:                      // 支払一覧
                    this.Title  = "レポート出力:支払書";
                    utl         = new Utl_InpPaymentPrint();
                    this.Height = 700;
                    break;

                case Common.geWinType.ListInOutDelivery:                // 入出庫一覧
                    this.Title = "レポート出力:入出庫一覧表";
                    utl        = new Utl_InpSearchInOutDelivery();
                    break;

                case Common.geWinType.ListInventory:                    // 在庫一覧
                    this.Title = "レポート出力:在庫一覧表";
                    utl        = new Utl_InpSearchInventory();
                    break;

                default:
                    break;
                }
                break;

            case Common.geWinGroupType.InpDetailReport:
                this.Height            = 320;
                this.VerticalAlignment = System.Windows.VerticalAlignment.Top;

                switch (Common.gWinType)
                {
                case Common.geWinType.ListEstimat:                      // 見積一覧
                    this.Title = "レポート出力:見積明細書";
                    utl        = new Utl_InpSearchEstimate();
                    break;

                case Common.geWinType.ListOrder:                        // 受注一覧
                    this.Title = "レポート出力:受注明細書";
                    utl        = new Utl_InpSearchOrder();
                    break;

                case Common.geWinType.ListSales:                        // 売上一覧
                    this.Title = "レポート出力:売上明細書";
                    utl        = new Utl_InpSearchSales();
                    break;

                case Common.geWinType.ListReceipt:                      // 入金一覧
                    this.Title = "レポート出力:入金明細書";
                    utl        = new Utl_InpSearchReceipt();
                    break;

                case Common.geWinType.ListCollectPlan:                  // 回収予定表
                    this.Title = "レポート出力:回収予定表";
                    utl        = new Utl_InpSearchPlan();
                    break;

                case Common.geWinType.ListPurchaseOrder:                // 発注一覧
                    this.Title = "レポート出力:発注明細書";
                    utl        = new Utl_InpSearchPurchaseOrder();
                    break;

                case Common.geWinType.ListPurchase:                     // 仕入一覧
                    this.Title = "レポート出力:仕入明細書";
                    utl        = new Utl_InpSearchPurchase();
                    break;

                case Common.geWinType.ListPaymentCash:                  // 出金一覧
                    this.Title = "レポート出力:出金明細書";
                    utl        = new Utl_InpSearchPaymentCash();
                    break;

                case Common.geWinType.ListPaymentPlan:                  // 支払予定表
                    this.Title = "レポート出力:支払予定表";
                    utl        = new Utl_InpSearchPlan();
                    break;

                default:
                    break;
                }
                break;
            }

            utl.Name = "utlInpSearch";
            this.GridMain.Children.Add(utl);
            this.SetWindowsResource();
        }
        private void ExChildWindow_Loaded(object sender, RoutedEventArgs e)
        {
            if (Common.gWinGroupType != Common.geWinGroupType.InpMaster && Common.gWinGroupType != Common.geWinGroupType.InpMasterDetail)
            {
                this.DialogResult = false;
                //this.Close();
            }

            this.GridMaster.Children.Clear();

            // 証跡保存
            DataPgEvidence.SaveLoadOrUnLoadEvidence(Common.gWinGroupType, Common.gWinMsterType, DataPgEvidence.geOperationType.Start);

            ExUserControl utl = null;

            switch (Common.gWinMsterType)
            {
            case Common.geWinMsterType.Company:
                utl = new Utl_MstCompany();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 20;
                break;

            case Common.geWinMsterType.CompanyGroup:
                utl = new Utl_MstCompanyGroup();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 20;
                break;

            case Common.geWinMsterType.User:
                utl = new Utl_MstUser();
                this.GridMaster.Children.Add(utl);
                break;

            case Common.geWinMsterType.Person:
                utl = new Utl_MstPerson();
                this.GridMaster.Children.Add(utl);
                break;

            case Common.geWinMsterType.Customer:
                utl = new Utl_MstCustomer();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 20;
                break;

            case Common.geWinMsterType.Commodity:
                utl = new Utl_MstCommodity();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 10;
                break;

            case Common.geWinMsterType.Condition:
                utl = new Utl_MstCondition();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 10;
                break;

            case Common.geWinMsterType.Class:
                utl = new Utl_MstClass();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 10;
                break;

            case Common.geWinMsterType.Supplier:
                utl = new Utl_MstSupplier();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 20;
                break;

            case Common.geWinMsterType.Authority:
                utl = new Utl_MstAuthority();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 20;
                break;

            case Common.geWinMsterType.Purchase:
                utl = new Utl_MstPurchase();
                this.GridMaster.Children.Add(utl);
                this.Width = utl.Width + 20;
                break;

            default:
                break;
            }

            if (utl != null)
            {
                this.Width = utl.Width + 20;
            }

            this.listDisplayTabIndex = ExVisualTreeHelper.GetDisplayTabIndex(this.GridMaster); // Tab Index 保持
        }