Ejemplo n.º 1
0
        private Boolean Profile(GeckoDocument document, Uri uri)
        {
            SetCommonData(1, document.GetElementByIdToNodeValue("lblCustName"));
            SetCommonData(3, document.GetElementByIdToNodeValue("lblPresident"));
            SetCommonData(4, document.GetElementByIdToNodeValue("lblRegiNumber"));
            String buffer = document.GetElementByIdToNodeValue("lblBizCateKind");

            if (buffer != null)
            {
                String[] temp = buffer.Split('/');
                SetCommonData(7, temp[0]);
                SetCommonData(8, temp[1]);
            }
            String tel1 = document.GetElementById <GeckoSelectElement>("ddlMobileTel").Value;
            String tel2 = document.GetElementById <GeckoInputElement>("txtMobileTel2").Value;
            String tel3 = document.GetElementById <GeckoInputElement>("txtMobileTel3").Value;

            SetCommonData(9, tel1 + "-" + tel2 + "-" + tel3);
            String fax1 = document.GetElementById <GeckoSelectElement>("ddlOfficeFax").Value;
            String fax2 = document.GetElementById <GeckoInputElement>("txtOfficeFax2").Value;
            String fax3 = document.GetElementById <GeckoInputElement>("txtOfficeFax3").Value;

            SetCommonData(11, fax1 + "-" + fax2 + "-" + fax3);
            String hp1 = document.GetElementById <GeckoSelectElement>("ddlMobileTel").Value;
            String hp2 = document.GetElementById <GeckoInputElement>("txtMobileTel2").Value;
            String hp3 = document.GetElementById <GeckoInputElement>("txtMobileTel3").Value;

            SetCommonData(10, hp1 + "-" + hp2 + "-" + hp3);
            String mail1 = document.GetElementById <GeckoInputElement>("txtEmailId").Value;
            String mail2 = document.GetElementById <GeckoInputElement>("txtEmailDomain").Value;

            SetCommonData(13, mail1 + "@" + mail2);
            SetCommonData(14, document.GetElementByIdToNodeValue("bn"));
            SetCommonData(15, document.GetElementById <GeckoInputElement>("txtName").Value);
            SetCommonData(16, document.GetElementById <GeckoInputElement>("txtAcctNumb").Value);

            base.Navigate("https://www.esmplus.com/Escrow/Delivery/BuyDecision");
            return(true);
        }