Esempio n. 1
0
        private void searchDlg_Closed(object sender, EventArgs e)
        {
            if (sender is Dlg_Login)
            {
                UA_Main main = (UA_Main)ExVisualTreeHelper.FindPerentPage(this);
                if (main != null)
                {
                    main.SetHeaderInf();
                }
            }

            if (Common.gWinMsterType == Common.geWinMsterType.Authority && Common.gWinGroupType == Common.geWinGroupType.InpMaster)
            {
                DisplayChange();
            }

            if (sender is Dlg_DutiesHistory)
            {
                GetDutiesList();
            }
        }
Esempio n. 2
0
        private static void _evtDataSelect(int intKbn, object objList)
        {
            Common.gstrMsgSessionError = "";

            utlDummy.evtDataSelect -= _evtDataSelect;

            EntitySysLogin entity = null;

            try
            {
                entity = (EntitySysLogin)objList;
            }
            catch
            {
                return;
            }

            switch (entity._login_flg)
            {
            case 0:         // 正常ログイン
                // システム情報設定
                Common.gintCompanyId                     = entity._company_id;
                Common.gstrCompanyNm                     = entity._company_nm;
                Common.gintGroupId                       = entity._group_id;
                Common.gstrGroupNm                       = entity._group_nm;
                Common.gintDefaultPersonId               = entity._defult_person_id;
                Common.gstrDefaultPersonNm               = entity._defult_person_nm;
                Common.gstrGroupDisplayNm                = entity._group_display_name;
                Common.gintEvidenceFlg                   = entity._evidence_flg;
                Common.gintidFigureSlipNo                = entity._idFigureSlipNo;
                Common.gintidFigureCustomer              = entity._idFigureCustomer;
                Common.gintidFigurePurchase              = entity._idFigurePurchase;
                Common.gintidFigureCommodity             = entity._idFigureGoods;
                Common.gintEstimateApprovalFlg           = entity._estimate_approval_flg;
                Common.gintReceiptAccountInvoicePringFlg = entity._receipt_account_invoice_print_flg;
                Common.gstrSessionString                 = entity._session_string;
                Common.gintDemoFlg                       = entity._demo_flg;
                Common.gstrSystemVer                     = entity._sys_ver;
                Common.gblnLogin = true;

                if (winParemt != null)
                {
                    winParemt.DataSelect((int)ExWebService.geWebServiceCallKbn.Login, null);
                }

                break;

            case 1:         // 同一ユーザーログイン
                if (winParemt != null)
                {
                    winParemt.DataSelect((int)ExWebService.geWebServiceCallKbn.Login, null);
                }

                break;

            default:        // ログイン失敗
                if (winParemt != null)
                {
                    winParemt.DataSelect((int)ExWebService.geWebServiceCallKbn.Login, "error");
                }

                break;
            }

            if (_main != null)
            {
                _main.SetHeaderInf();
            }

            winParemt = null;
        }