Exemple #1
0
        private bool CheckNotepad(List <string> slit, PcommCore pc)
        {
            bool pass = true;

            pc.LinkToScreen <SJ672>((SJ672) =>
            {
                var str = SJ672.getContent().ToUpper();
                foreach (string s in slit)
                {
                    if (str.Contains(s.ToUpper()) && !string.IsNullOrEmpty(s))
                    {
                        pass = false;
                        break;
                    }
                }
                base.SendKey(KeyBoard.PF3);
                return(true);
            });
            if (!pass)
            {
                pc.SkipToHomeScreen <S0017>();
            }
            else
            {
                CommonScreen comm       = pc.GetScreen <CommonScreen>();
                string       screenCode = comm.GetText(1, 72, 80);
                if (screenCode.Contains("SJ672"))
                {
                    CheckNotepad(slit, pc);
                }
            }
            return(pass);
        }
        public void PcommCoreSkipToHomeScreen()
        {
            PcommCore pcommCore = new PcommCore("A");

            pcommCore.SkipToHomeScreen <IBM_i_Main_MenuScreen>();
        }