コード例 #1
0
        public static void _SA_OpenCompany(string dbPath)
        {
            if (!OpenCompany.repo.SelfInfo.Exists())
            {
                OpenCompany._Invoke();

                SimplyMessage._SA_HandleMessage(SimplyMessage.repo.Yes, SimplyMessage.repo._Msg_AreYouSureYouAreFinishedWithThisCompany);

                if (SimplyMessage.repo._Msg_DoyouwanttobackupthiscompanybeforeclosingInfo.Exists())
                {
                    SimplyMessage.repo.NoRadioBtn.Click();
                    SimplyMessage.repo.DoNotAskMeAgain.Check();
                    SimplyMessage.repo.OK.Click();
                }
            }

            OpenCompany.repo.FileName.TextValue = dbPath;
            OpenCompany.repo.Open.Click();

            // if necessary convert db, then handle messages to get to home window
            Simply._SA_GotoHomeWindow();

            // set flavor
            if ((!Functions.GoodData(Variables.bAcctEd)) || (Variables.bAcctEd))
            {
                Simply._SA_SetFlavorVariables();
            }

            // if we don't do this it will populate with previous db
            Settings._SA_GetCompanyInformation();
        }
コード例 #2
0
ファイル: Simply.cs プロジェクト: Cherylleong/SageAPAC_TFS_BK
 public static void _SA_OpenCompany(string Path)
 {
     OpenCompany._SA_OpenCompany(Path);
 }