=====* UniMarc [0.0147] 버전 업데이트 내용 *=====
** ERP 작업 전면 중단 (마크우선) ** 1. ISBN 조회 ㄴ> Yes24방식 반출에서 Yes24 로그인하는 작업 추가 구현 완료
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
187
unimarc/unimarc/마크/Check_ISBN_Yes24.Designer.cs
generated
187
unimarc/unimarc/마크/Check_ISBN_Yes24.Designer.cs
generated
@@ -29,11 +29,15 @@ namespace UniMarc.마크
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.btn_change = new System.Windows.Forms.Button();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.before_book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.after_book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.before_author = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -41,12 +45,22 @@ namespace UniMarc.마크
|
||||
this.before_book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.after_book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
|
||||
this.btn_Yes24Connect = new System.Windows.Forms.Button();
|
||||
this.tb_ID = new System.Windows.Forms.TextBox();
|
||||
this.tb_PW = new System.Windows.Forms.TextBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btn_change
|
||||
//
|
||||
this.btn_change.Location = new System.Drawing.Point(917, 8);
|
||||
this.btn_change.Location = new System.Drawing.Point(423, 11);
|
||||
this.btn_change.Name = "btn_change";
|
||||
this.btn_change.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_change.TabIndex = 4;
|
||||
@@ -56,7 +70,7 @@ namespace UniMarc.마크
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(998, 8);
|
||||
this.btn_Close.Location = new System.Drawing.Point(504, 11);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Close.TabIndex = 3;
|
||||
@@ -71,14 +85,14 @@ namespace UniMarc.마크
|
||||
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
|
||||
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.before_book_name,
|
||||
@@ -88,32 +102,78 @@ namespace UniMarc.마크
|
||||
this.before_book_comp,
|
||||
this.after_book_comp,
|
||||
this.price});
|
||||
this.dataGridView1.Location = new System.Drawing.Point(12, 39);
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dataGridView1.RowHeadersWidth = 30;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1061, 661);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(579, 666);
|
||||
this.dataGridView1.TabIndex = 2;
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.label2);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Controls.Add(this.tb_PW);
|
||||
this.panel1.Controls.Add(this.tb_ID);
|
||||
this.panel1.Controls.Add(this.btn_Yes24Connect);
|
||||
this.panel1.Controls.Add(this.btn_Close);
|
||||
this.panel1.Controls.Add(this.btn_change);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1316, 46);
|
||||
this.panel1.TabIndex = 5;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.panel4);
|
||||
this.panel2.Controls.Add(this.panel3);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 46);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1316, 666);
|
||||
this.panel2.TabIndex = 5;
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.dataGridView1);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(579, 666);
|
||||
this.panel3.TabIndex = 3;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.Controls.Add(this.webBrowser1);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel4.Location = new System.Drawing.Point(579, 0);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(737, 666);
|
||||
this.panel4.TabIndex = 3;
|
||||
//
|
||||
// before_book_name
|
||||
//
|
||||
this.before_book_name.HeaderText = "도서명 [전]";
|
||||
this.before_book_name.Name = "before_book_name";
|
||||
this.before_book_name.ReadOnly = true;
|
||||
this.before_book_name.Visible = false;
|
||||
this.before_book_name.Width = 200;
|
||||
//
|
||||
// after_book_name
|
||||
//
|
||||
this.after_book_name.HeaderText = "도서명 [후]";
|
||||
this.after_book_name.HeaderText = "도서명";
|
||||
this.after_book_name.Name = "after_book_name";
|
||||
this.after_book_name.ReadOnly = true;
|
||||
this.after_book_name.Width = 200;
|
||||
@@ -123,10 +183,11 @@ namespace UniMarc.마크
|
||||
this.before_author.HeaderText = "저자 [전]";
|
||||
this.before_author.Name = "before_author";
|
||||
this.before_author.ReadOnly = true;
|
||||
this.before_author.Visible = false;
|
||||
//
|
||||
// after_author
|
||||
//
|
||||
this.after_author.HeaderText = "저자 [후]";
|
||||
this.after_author.HeaderText = "저자";
|
||||
this.after_author.Name = "after_author";
|
||||
this.after_author.ReadOnly = true;
|
||||
//
|
||||
@@ -135,11 +196,12 @@ namespace UniMarc.마크
|
||||
this.before_book_comp.HeaderText = "출판사 [전]";
|
||||
this.before_book_comp.Name = "before_book_comp";
|
||||
this.before_book_comp.ReadOnly = true;
|
||||
this.before_book_comp.Visible = false;
|
||||
this.before_book_comp.Width = 150;
|
||||
//
|
||||
// after_book_comp
|
||||
//
|
||||
this.after_book_comp.HeaderText = "출판사 [후]";
|
||||
this.after_book_comp.HeaderText = "출판사";
|
||||
this.after_book_comp.Name = "after_book_comp";
|
||||
this.after_book_comp.ReadOnly = true;
|
||||
this.after_book_comp.Width = 150;
|
||||
@@ -149,19 +211,76 @@ namespace UniMarc.마크
|
||||
this.price.HeaderText = "금액";
|
||||
this.price.Name = "price";
|
||||
this.price.ReadOnly = true;
|
||||
this.price.Width = 80;
|
||||
//
|
||||
// webBrowser1
|
||||
//
|
||||
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.webBrowser1.Location = new System.Drawing.Point(0, 0);
|
||||
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
|
||||
this.webBrowser1.Name = "webBrowser1";
|
||||
this.webBrowser1.Size = new System.Drawing.Size(737, 666);
|
||||
this.webBrowser1.TabIndex = 0;
|
||||
this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
|
||||
//
|
||||
// btn_Yes24Connect
|
||||
//
|
||||
this.btn_Yes24Connect.Location = new System.Drawing.Point(867, 5);
|
||||
this.btn_Yes24Connect.Name = "btn_Yes24Connect";
|
||||
this.btn_Yes24Connect.Size = new System.Drawing.Size(99, 35);
|
||||
this.btn_Yes24Connect.TabIndex = 5;
|
||||
this.btn_Yes24Connect.Text = "Yes24 다중검색\r\n접속";
|
||||
this.btn_Yes24Connect.UseVisualStyleBackColor = true;
|
||||
this.btn_Yes24Connect.Click += new System.EventHandler(this.btn_Yes24Connect_Click);
|
||||
//
|
||||
// tb_ID
|
||||
//
|
||||
this.tb_ID.Location = new System.Drawing.Point(613, 12);
|
||||
this.tb_ID.Name = "tb_ID";
|
||||
this.tb_ID.Size = new System.Drawing.Size(100, 21);
|
||||
this.tb_ID.TabIndex = 6;
|
||||
//
|
||||
// tb_PW
|
||||
//
|
||||
this.tb_PW.Location = new System.Drawing.Point(761, 12);
|
||||
this.tb_PW.Name = "tb_PW";
|
||||
this.tb_PW.Size = new System.Drawing.Size(100, 21);
|
||||
this.tb_PW.TabIndex = 6;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(595, 16);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(16, 12);
|
||||
this.label1.TabIndex = 7;
|
||||
this.label1.Text = "ID";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(736, 16);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(23, 12);
|
||||
this.label2.TabIndex = 7;
|
||||
this.label2.Text = "PW";
|
||||
//
|
||||
// Check_ISBN_Yes24
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1085, 712);
|
||||
this.Controls.Add(this.btn_change);
|
||||
this.Controls.Add(this.btn_Close);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.ClientSize = new System.Drawing.Size(1316, 712);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "Check_ISBN_Yes24";
|
||||
this.Text = "Yes24양식";
|
||||
this.Load += new System.EventHandler(this.Check_ISBN_Yes24_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -171,6 +290,10 @@ namespace UniMarc.마크
|
||||
private System.Windows.Forms.Button btn_change;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
public System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Panel panel4;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn before_book_name;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn after_book_name;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn before_author;
|
||||
@@ -178,5 +301,11 @@ namespace UniMarc.마크
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn before_book_comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn after_book_comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn price;
|
||||
private System.Windows.Forms.WebBrowser webBrowser1;
|
||||
private System.Windows.Forms.Button btn_Yes24Connect;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox tb_PW;
|
||||
private System.Windows.Forms.TextBox tb_ID;
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ using WindowsFormsApp1.Mac;
|
||||
using Excel = Microsoft.Office.Interop.Excel;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.IO;
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
@@ -101,10 +102,8 @@ namespace UniMarc.마크
|
||||
for (int a = 0; a < before.Length; a++)
|
||||
{
|
||||
if (target[a] == sort)
|
||||
{
|
||||
value = value.Replace(before[a], after[a]);
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
#endregion
|
||||
@@ -124,22 +123,29 @@ namespace UniMarc.마크
|
||||
string price = dataGridView1.Rows[a].Cells["price"].Value.ToString();
|
||||
grid[a, 0] = count.ToString();
|
||||
grid[a, 1] = dataGridView1.Rows[a].Cells["after_book_name"].Value.ToString();
|
||||
grid[a, 2] = dataGridView1.Rows[a].Cells["after_author"].Value.ToString();
|
||||
grid[a, 3] = dataGridView1.Rows[a].Cells["after_book_comp"].Value.ToString();
|
||||
grid[a, 4] = Regex.Replace(price, @"[^0-9]", "");
|
||||
grid[a, 5] = "1";
|
||||
}
|
||||
Excel_change(grid);
|
||||
}
|
||||
|
||||
#region 엑셀변환 서브
|
||||
|
||||
private void Excel_change(string[,] grid)
|
||||
{
|
||||
string DesktopPath =
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.Desktop); // 바탕화면 경로
|
||||
string FilePath =
|
||||
Path.Combine(DesktopPath, "Excel.xlsx"); // 엑셀 파일 저장 경로
|
||||
try
|
||||
{
|
||||
Excel.Application application = new Excel.Application();
|
||||
application.Visible = true;
|
||||
application.Interactive = false;
|
||||
|
||||
Excel._Workbook wb = (Excel._Workbook)application.Workbooks.Add(Missing.Value);
|
||||
Excel._Workbook wb = application.Workbooks.Add(Missing.Value);
|
||||
Excel._Worksheet ws = (Excel._Worksheet)application.ActiveSheet;
|
||||
|
||||
Excel.Range rng = null;
|
||||
@@ -176,5 +182,83 @@ namespace UniMarc.마크
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void btn_Yes24Connect_Click(object sender, EventArgs e)
|
||||
{
|
||||
webBrowser1.Navigate("http://www.yes24.com/Mall/CorpLargeOrder/CorpMain");
|
||||
}
|
||||
|
||||
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
|
||||
{
|
||||
string url = webBrowser1.Url.AbsoluteUri;
|
||||
|
||||
if (url.IndexOf("yes24.com/Main") > -1)
|
||||
webBrowser1.Navigate("http://www.yes24.com/Mall/CorpLargeOrder/CorpMain");
|
||||
|
||||
if (url.IndexOf("CorpLargeOrder/CorpMain") > -1)
|
||||
if (isLogin())
|
||||
webBrowser1.Navigate("https://www.yes24.com/Templates/FTLogin.aspx");
|
||||
else
|
||||
ExcelUpLoadSearch();
|
||||
|
||||
if (url.IndexOf("FTLogin") > -1)
|
||||
Login();
|
||||
}
|
||||
#region DocumentCompleted Sub
|
||||
|
||||
bool isLogin()
|
||||
{
|
||||
string InnerText = "";
|
||||
|
||||
foreach (HtmlElement li in webBrowser1.Document.GetElementsByTagName("li"))
|
||||
{
|
||||
if (li.Id == null)
|
||||
continue;
|
||||
|
||||
if (li.Id.IndexOf("LoginText") > -1)
|
||||
{
|
||||
if (li.InnerText.IndexOf("로그") > -1)
|
||||
{
|
||||
InnerText = li.InnerText;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (InnerText.IndexOf("로그인") > -1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void ExcelUpLoadSearch()
|
||||
{
|
||||
webBrowser1.Navigate("http://www.yes24.com/Mall/CorpLargeOrder/ExcelUploadSearch");
|
||||
}
|
||||
|
||||
void Login()
|
||||
{
|
||||
foreach (HtmlElement input in webBrowser1.Document.GetElementsByTagName("input"))
|
||||
{
|
||||
if (input.Id == null)
|
||||
continue;
|
||||
|
||||
if (input.Id == "SMemberID")
|
||||
input.SetAttribute("value", tb_ID.Text);
|
||||
|
||||
if (input.Id == "SMemberPassword")
|
||||
input.SetAttribute("value", tb_PW.Text);
|
||||
}
|
||||
|
||||
foreach (HtmlElement btn in webBrowser1.Document.GetElementsByTagName("button"))
|
||||
{
|
||||
if (btn.Id == null)
|
||||
continue;
|
||||
|
||||
if (btn.Id.IndexOf("btnLogin") > -1)
|
||||
btn.InvokeMember("click");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user