private Boolean Login(GeckoDocument document, Uri uri) { if (uri.ToString().IndexOf("ReturnValue") != -1) { SetCommonData(0, "FALSE"); return(false); } document.GetElementByName <GeckoInputElement>("rdoSiteSelect", 0).Checked = true; document.GetElementById <GeckoInputElement>("SiteId").Value = Parameter.Id; document.GetElementById <GeckoInputElement>("SitePassword").Value = Parameter.Pw; document.GetElementById <GeckoAnchorElement>("btnSiteLogOn").Click(); return(true); }
private Boolean Login(GeckoDocument document, Uri uri) { if (uri.ToString().IndexOf("ReturnValue") != -1) { //login 실패 //String label = document.GetElementByClassName<GeckoHtmlElement>("login_text", 0).TextContent; //Console.WriteLine(label); return(false); } document.GetElementByName <GeckoInputElement>("rdoSiteSelect", 1).Checked = true; document.GetElementById <GeckoInputElement>("SiteId").Value = Parameter.Id; document.GetElementById <GeckoInputElement>("SitePassword").Value = Parameter.Pw; document.GetElementById <GeckoAnchorElement>("btnSiteLogOn").Click(); SetCommonData(0, "TRUE"); return(true); }
private Boolean SellerInfoEdit2(GeckoDocument document, Uri uri) { var table = document.SelectTableByClass("def_tableA"); SetCommonData(1, table.Get(0, 1).TextContent); SetCommonData(4, table.Get(0, 3).TextContent); SetCommonData(3, table.Get(5, 1).TextContent); SetCommonData(5, table.Get(5, 3).TextContent); SetCommonData(8, table.Get(6, 1).TextContent); SetCommonData(7, table.Get(6, 3).TextContent); SetCommonData(6, table.Get(7, 1).TextContent); this.buffer.Clear(); this.buffer.Append(document.GetElementByName <GeckoSelectElement>("rptvTlphnNO1").Value).Append("-"); this.buffer.Append(document.GetElementByName <GeckoInputElement>("rptvTlphnNO2").Value).Append("-"); this.buffer.Append(document.GetElementByName <GeckoInputElement>("rptvTlphnNO3").Value); SetCommonData(9, this.buffer.ToString()); this.buffer.Clear(); this.buffer.Append(document.GetElementByName <GeckoSelectElement>("hotlinePrtblTlphnNO1").Value).Append("-"); this.buffer.Append(document.GetElementByName <GeckoInputElement>("hotlinePrtblTlphnNO2").Value).Append("-"); this.buffer.Append(document.GetElementByName <GeckoInputElement>("hotlinePrtblTlphnNO3").Value); SetCommonData(10, this.buffer.ToString()); this.buffer.Clear(); this.buffer.Append(document.GetElementById <GeckoInputElement>("id_email").Value).Append("@"); var value = document.GetElementById <GeckoSelectElement>("id_email_type").Value; foreach (var t in document.GetElementById <GeckoSelectElement>("id_email_type").GetElementsByTagName("OPTION")) { if ((t as GeckoOptionElement).Value.Equals(value)) { this.buffer.Append(t.TextContent); break; } } SetCommonData(13, this.buffer.ToString()); this.buffer.Clear(); this.buffer.Append(document.GetElementByName <GeckoSelectElement>("faxNO1").Value).Append("-"); this.buffer.Append(document.GetElementByName <GeckoInputElement>("faxNO2").Value).Append("-"); this.buffer.Append(document.GetElementByName <GeckoInputElement>("faxNO3").Value); SetCommonData(11, this.buffer.ToString()); SetCommonData(18, document.GetElementById <GeckoInputElement>("addrVisit").Value); var temp = table.Get(29, 1); var temp1 = temp.GetElementsByTagName("INPUT"); int pos = 0; foreach (var t in temp1) { if ((t as GeckoInputElement).Checked) { break; } pos++; } SetCommonData(27, temp.GetElementsByTagName("LABEL")[pos].TextContent); SetCommonData(16, table.Get(30, 1).TextContent); this.buffer.Clear(); std = DateTime.Now.AddYears(-3).AddDays(DateTime.Now.Day * -1).AddDays(1); DateTime etd = std.AddMonths(1).AddDays(-1); index = 0; this.buffer.Append("http://soffice.11st.co.kr/stats/StatsPeriodProdSel.tmall?"); this.buffer.Append(CreateGetParameter(new Dictionary <String, String>() { { "method", "getStatsPeriodProdSelList" }, { "start", "0" }, { "limit", "10" }, { "stDate", std.ToString("yyyy/MM/dd").Replace("-", "/") }, { "edDate", std.ToString("yyyy/MM/dd").Replace("-", "/") }, { "stDatePre", std.ToString("yyyy/MM/dd").Replace("-", "/") }, { "edDatePre", etd.ToString("yyyy/MM/dd").Replace("-", "/") }, { "dtPeriod", "PRE_THREE_MONTH" }, { "dispGb", "grid" } })); //PostAjaxJson(document, this.buffer.ToString(), new Dictionary<String, Object>() { }); base.Navigate(this.buffer.ToString()); return(true); }