示例#1
0
        /// <summary>
        /// 2015-May-25
        /// [email protected]
        ///
        /// sample:
        ///    dic.Clear();
        ///    dic.Add("iRow", "1");
        ///    dic.Add("NumberOfYears", "10");
        ///    dic.Add("Rate", "4.75");
        ///    pInterestRate._TimeBased_Table(dic);
        /// </summary>
        /// <param name="dic"></param>
        public void _TimeBased_Table(MyDictionary dic)
        {
            string sFunctionName = "_TimeBased_Table";

            _gLib._Report(_PassFailStep.Step, "Function <" + sFunctionName + "> Starts:");


            _gLib._SetSyncUDWin("FPGrid", this.wRetirementStudio.wTimeBased_FPGrid.grid, "Click", 0, false, 94, 28);
            _gLib._SetSyncUDWin("FPGrid", this.wRetirementStudio.wTimeBased_FPGrid.grid, "Click", 0, false, 94, 28);

            if (_gLib._Exists("Grid", this.wRetirementStudio.wTableField.txtNumOfYears, 0))
            {
                _gLib._SendKeysUDWin("FPGrid", this.wRetirementStudio.wTimeBased_FPGrid.grid, "{PageUp}{PageUp}");

                _gLib._Wait(1);

                _gLib._SetSyncUDWin("FPGrid", this.wRetirementStudio.wTimeBased_FPGrid.grid, "Click", 0, false, 94, 10);
            }

            int iRow = Convert.ToInt32(dic["iRow"]);

            if (dic["NumberOfYears"] != "")
            {
                for (int i = 0; i < (iRow - 1); i++)
                {
                    _gLib._SendKeysUDWin("FPGrid", this.wRetirementStudio.wTimeBased_FPGrid.grid, "{Tab}{Tab}");
                }

                _gLib._SetSyncUDWin_ByClipboard(iRow.ToString() + ": NumberOfYears", this.wRetirementStudio.wTableField.txtNumOfYears, dic["NumberOfYears"], 0);
            }

            if (dic["Rate"] != "")
            {
                _gLib._SendKeysUDWin("FPGrid", this.wRetirementStudio.wTimeBased_FPGrid.grid, "{Tab}");

                _gLib._SendKeysUDWin("Rate", this.wRetirementStudio.wTableField.txtRate, dic["Rate"]);

                _gLib._SetSyncUDWin("FPGrid", this.wRetirementStudio.wTimeBased_BlankArea.pane, "Click", 0, false, 30, 10);

                string sAct = _fp._ReturnSelectRowContent(this.wRetirementStudio.wTimeBased_FPGrid.grid);
                if (sAct != dic["Rate"])
                {
                    _gLib._MsgBox("", "" + float.Parse(sAct));
                    _gLib._MsgBox("", "" + float.Parse(dic["Rate"]));
                    // if sAct equals '10,75000000', we need cut them down and result as 0 is correct
                    if ((float.Parse(sAct) - float.Parse(dic["Rate"])) == 0)
                    {
                    }
                    else
                    {
                        _gLib._Report(_PassFailStep.Fail, "Function <" + sFunctionName + "> fail to set <" + dic["Rate"] + "> to object <Timebased Table>. Actual Value: <" + sAct + "> ");
                        _gLib._MsgBoxYesNo("Continue Testing?", "Fail: Verify Object: <Timebased Table> with expected value: <" + dic["Rate"] + ">. Actual Value: <" + sAct + "> ");
                    }
                }
            }

            _gLib._Report(_PassFailStep.Step, "Function <" + sFunctionName + "> Ends:");
        }
示例#2
0
        public void _Debugging()
        {
            var sAct = _fp._ReturnSelectRowContent(this.wRetirementStudio.wProvision_CustomCode_FPGrid.grid);
            var c    = 1;



            //object[] native = this.wRetirementStudio.wCurrentView.gridCurrentView.NativeElement as object[];
            //IAccessible a = native[0] as IAccessible;
        }
示例#3
0
        /// <summary>
        /// 2013-Sep-20
        /// [email protected]
        ///    dic.Clear();
        ///    dic.Add("InsertRow", "");
        ///    dic.Add("Is_DE", "");
        ///    dic.Add("AddRow", "");
        ///    dic.Add("iRow", "1");
        ///    dic.Add("SSNRA_Exists", "False");
        ///    dic.Add("SSNRA", "");
        ///    dic.Add("FixedAge", "55");
        ///    dic.Add("YearOfService", "5");
        ///    dic.Add("RuleOf", "");
        ///    dic.Add("DateConstant", "");
        ///    dic.Add("DateField", "$ValDate");
        ///    dic.Add("ServiceBasedOn", "$Service");
        ///    dic.Add("AgeBasedOn", "$Age");
        ///    dic.Add("Comparison", "Later of");
        ///    pFromToAge._StandardTable_NotUS(dic);
        /// </summary>
        /// <param name="dic"></param>
        public void _StandardTable_NotUS(MyDictionary dic)
        {
            string sFunctionName = "_StandardTable_NotUS";

            _gLib._Report(_PassFailStep.Step, "Function <" + sFunctionName + "> Starts:");


            _gLib._SetSyncUDWin("InsertRow", this.wRetirementStudio.wInsertRow.btnInsertRow, dic["InsertRow"], 0);
            _gLib._SetSyncUDWin("AddRow", this.wRetirementStudio.wAddRow.btnAddRow, dic["AddRow"], 0);

            _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
            ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Space}{Space}");
            _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Space}{Space}");

            ////if (dic["iRow"] != "1")
            ////{
            ////    _gLib._MsgBoxYesNo("Warning?", "Function <" + sFunctionName + "> only support Row index =1, currenly row index <" + dic["iRow"] + "> is NOT supported. Please contact [email protected] if you need more options");
            ////    return;
            ////}

            string sRowKeys = "";
            int    iRow     = Convert.ToInt32(dic["iRow"]);
            ////////for (int i = 1; i < iRow; i++)
            ////////    sRowKeys = sRowKeys + "{Down}";

            ////////if (iRow > 1)
            ////////{
            ////////    _gLib._MsgBoxYesNo("Please manual input values in this function call and click OK to keep testing.", "Warning: Function <" + sFunctionName + "> Only support iRow = 1 for now, please contact Webber.ling for further improvements.");
            ////////    return;
            ////////}

            int iRowPos_Y = 68 + (iRow - 1) * 20;

            _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);

            if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
            {
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                _gLib._Wait(1);
            }
            ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
            ////_gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);


            if (dic["SSNRA_Exists"].Equals(""))
            {
                dic.Add("SSNRA_Exists", "True");
            }

            if (dic["SSNRA"] != "")
            {
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                string sAct = _fp._ReturnSelectRowContent(this.wRetirementStudio.wFPGrid.grid);

                if (dic["SSNRA"].ToUpper() != sAct.ToUpper())
                {
                    ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Space}");
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Space}");
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                    sAct = _fp._ReturnSelectRowContent(this.wRetirementStudio.wFPGrid.grid);
                    if (dic["SSNRA"].ToUpper() != sAct.ToUpper())
                    {
                        _gLib._Report(_PassFailStep.Fail, "Function <" + sFunctionName + "> fail to  set SSNRA value <" + dic["SSNRA"] + "> at Row <" + dic["iRow"] + ">. Actual value: <" + sAct + ">");
                        _gLib._MsgBoxYesNo("Continue Testing?", "Fail: Function <" + sFunctionName + "> fail to  set SSNRA value <" + dic["SSNRA"] + "> at Row <" + dic["iRow"] + ">. Actual value: <" + sAct + ">");
                    }
                }
            }
            if (dic["FixedAge"] != "")
            {
                ////_gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Tab}");
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, dic["FixedAge"]);
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}");
                }

                _gLib._SetSyncUDWin_ByClipboard("FixedAge", this.wRetirementStudio.wCommonTXT_FPGrid.txt, dic["FixedAge"], 0);

                _gLib._VerifySyncUDWin("FixedAge", this.wRetirementStudio.wCommonTXT_FPGrid.txt, dic["FixedAge"], 0);
            }
            if (dic["YearOfService"] != "")
            {
                ////_gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}");
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, dic["YearOfService"]);

                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }

                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}");
                }
                else
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}");
                }

                _gLib._SetSyncUDWin_ByClipboard("YearOfService", this.wRetirementStudio.wCommonTXT_FPGrid.txt, dic["YearOfService"], 0);

                _gLib._VerifySyncUDWin("YearOfService", this.wRetirementStudio.wCommonTXT_FPGrid.txt, dic["YearOfService"], 0);
            }
            if (dic["RuleOf"] != "")
            {
                ////_gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}");
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, dic["RuleOf"]);
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}");
                }
                else
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}");
                }

                _gLib._SendKeysUDWin("RuleOf", this.wRetirementStudio.wFPGrid.grid, dic["RuleOf"]);

                _gLib._VerifySyncUDWin("RuleOf", this.wRetirementStudio.wCommonTXT_FPGrid.txt, dic["RuleOf"], 0);
            }

            if (dic["DateConstant"] != "")
            {
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);

                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }
                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                }
                else
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                    _gLib._SendKeysUDWin("DateConstant", this.wRetirementStudio.wFPGrid.grid, dic["DateConstant"]);

                    //_gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                    //_gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");

                    _gLib._VerifySyncUDWin("DateConstant", this.wRetirementStudio.wDateConstant.txt, dic["DateConstant"], 0);
                }
            }


            if (dic["DateField"] != "")
            {
                ////_gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }
                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                }
                else
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                }
                ////////////_gLib._SetSyncUDWin("DateField", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["DateField"], 0);
                try
                {
                    this.wRetirementStudio.wCommonCombo_FPGrid.cbo.SelectedItem = dic["DateField"];
                    //////_gLib._SetSyncUDWin("ServiceBasedOn", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["ServiceBasedOn"], 0);
                }
                catch (Exception ex)
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}", 0, ModifierKeys.Shift, false);
                    _gLib._SetSyncUDWin("DateField", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["DateField"], 0);
                }
            }

            if (dic["ServiceBasedOn"] != "")
            {
                ////_gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);

                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }


                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }

                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                }
                else
                {
                    if (dic["iRow"] == "1")
                    {
                        _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                    }
                    else
                    {
                        _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                    }
                }


                ////////{
                ////////    for (int i = 0; i < 9;i++ )
                ////////        _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}");
                ////////}
                ////////////

                try
                {
                    this.wRetirementStudio.wCommonCombo_FPGrid.cbo.SelectedItem = dic["ServiceBasedOn"];
                    //////_gLib._SetSyncUDWin("ServiceBasedOn", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["ServiceBasedOn"], 0);
                }
                catch (Exception ex)
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}", 0, ModifierKeys.Shift, false);
                    _gLib._SetSyncUDWin("ServiceBasedOn", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["ServiceBasedOn"], 0);
                }
            }
            if (dic["AgeBasedOn"] != "")
            {
                ////_gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, sRowKeys);


                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                }
                else
                {
                    if (dic["iRow"] == "1")
                    {
                        _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                    }
                    else
                    {
                        _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                    }
                }


                try
                {
                    this.wRetirementStudio.wCommonCombo_FPGrid.cbo.SelectedItem = dic["AgeBasedOn"];
                    //////_gLib._SetSyncUDWin("ServiceBasedOn", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["ServiceBasedOn"], 0);
                }
                catch (Exception ex)
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}", 0, ModifierKeys.Shift, false);
                    _gLib._SetSyncUDWin("AgeBasedOn", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["AgeBasedOn"], 0);
                }
            }
            if (dic["Comparison"] != "")
            {
                ////_gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 40, 38);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Home}", ModifierKeys.Control);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                ////////////Keyboard.SendKeys(this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Home}", 0, ModifierKeys.Control, false);
                if (dic["SSNRA_Exists"].ToUpper().Equals("FALSE"))
                {
                    _gLib._SetSyncUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "Click", 0, false, 50, iRowPos_Y);
                }
                _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, sRowKeys);
                if (dic["SSNRA_Exists"].ToUpper().Equals("TRUE"))
                {
                    _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                }
                else
                {
                    if (dic["iRow"] == "1")
                    {
                        _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                    }
                    else
                    {
                        _gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");
                    }
                }
                ////////_gLib._SendKeysUDWin("Standard Table", this.wRetirementStudio.wFPGrid.grid, "{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}");

                _gLib._SetSyncUDWin("Comparison", this.wRetirementStudio.wCommonCombo_FPGrid.cbo, dic["Comparison"], 0);
            }
            _gLib._Report(_PassFailStep.Step, "Function <" + sFunctionName + "> Ends:");
        }
示例#4
0
文件: Assets.cs 项目: StupidGrs/Study
        public void _Debugging()
        {
            var i = _fp._ReturnSelectRowContent(this.wRetirementStudio.wSMV_TimePeriodEndDate_FPGrid.grid);

            var a = 0;
        }
示例#5
0
 public void _Debugging()
 {
     var sAct = _fp._ReturnSelectRowContent(this.wRetirementStudio.wStandard_FPGrid.grid);
     var c    = 1;
 }