diff --git a/ISBN_Check_test/.vs/ISBN_Check_test/v16/.suo b/ISBN_Check_test/.vs/ISBN_Check_test/v16/.suo index 9397d4d..247a0e2 100644 Binary files a/ISBN_Check_test/.vs/ISBN_Check_test/v16/.suo and b/ISBN_Check_test/.vs/ISBN_Check_test/v16/.suo differ diff --git a/ISBN_Check_test/Form1.Designer.cs b/ISBN_Check_test/Form1.Designer.cs index d266ce6..0c2966c 100644 --- a/ISBN_Check_test/Form1.Designer.cs +++ b/ISBN_Check_test/Form1.Designer.cs @@ -31,9 +31,16 @@ namespace ISBN_Check_test { System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.cb_filter = new System.Windows.Forms.ComboBox(); this.button1 = new System.Windows.Forms.Button(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.label1 = new System.Windows.Forms.Label(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.start_idx = new System.Windows.Forms.TextBox(); + this.end_idx = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.cb_api = new System.Windows.Forms.ComboBox(); this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -44,27 +51,21 @@ namespace ISBN_Check_test this.category = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.label1 = new System.Windows.Forms.Label(); - this.richTextBox1 = new System.Windows.Forms.RichTextBox(); - this.start_idx = new System.Windows.Forms.TextBox(); - this.end_idx = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.button2 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // - // comboBox1 + // cb_filter // - this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBox1.FormattingEnabled = true; - this.comboBox1.Location = new System.Drawing.Point(12, 9); - this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(121, 20); - this.comboBox1.TabIndex = 0; + this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_filter.FormattingEnabled = true; + this.cb_filter.Location = new System.Drawing.Point(154, 10); + this.cb_filter.Name = "cb_filter"; + this.cb_filter.Size = new System.Drawing.Size(121, 20); + this.cb_filter.TabIndex = 0; // // button1 // - this.button1.Location = new System.Drawing.Point(305, 8); + this.button1.Location = new System.Drawing.Point(447, 9); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 2; @@ -113,6 +114,69 @@ namespace ISBN_Check_test this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(659, 13); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(65, 12); + this.label1.TabIndex = 4; + this.label1.Text = "00:00:00.00"; + // + // richTextBox1 + // + this.richTextBox1.Location = new System.Drawing.Point(12, 510); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(892, 96); + this.richTextBox1.TabIndex = 5; + this.richTextBox1.Text = ""; + // + // start_idx + // + this.start_idx.Location = new System.Drawing.Point(308, 10); + this.start_idx.Name = "start_idx"; + this.start_idx.Size = new System.Drawing.Size(42, 21); + this.start_idx.TabIndex = 6; + this.start_idx.Text = "1"; + this.start_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); + // + // end_idx + // + this.end_idx.Location = new System.Drawing.Point(376, 10); + this.end_idx.Name = "end_idx"; + this.end_idx.Size = new System.Drawing.Size(42, 21); + this.end_idx.TabIndex = 6; + this.end_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(356, 14); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(14, 12); + this.label2.TabIndex = 4; + this.label2.Text = "~"; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(551, 9); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 2; + this.button2.Text = "리 셋"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // cb_api + // + this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_api.FormattingEnabled = true; + this.cb_api.Location = new System.Drawing.Point(27, 9); + this.cb_api.Name = "cb_api"; + this.cb_api.Size = new System.Drawing.Size(121, 20); + this.cb_api.TabIndex = 0; + this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged); + // // book_name // this.book_name.HeaderText = "도서명"; @@ -160,7 +224,7 @@ namespace ISBN_Check_test // // sold_out // - this.sold_out.HeaderText = "품절여부"; + this.sold_out.HeaderText = "품절/절판"; this.sold_out.Name = "sold_out"; this.sold_out.Width = 70; // @@ -170,59 +234,6 @@ namespace ISBN_Check_test this.Column1.Name = "Column1"; this.Column1.Visible = false; // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(659, 13); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(65, 12); - this.label1.TabIndex = 4; - this.label1.Text = "00:00:00.00"; - // - // richTextBox1 - // - this.richTextBox1.Location = new System.Drawing.Point(12, 510); - this.richTextBox1.Name = "richTextBox1"; - this.richTextBox1.Size = new System.Drawing.Size(892, 96); - this.richTextBox1.TabIndex = 5; - this.richTextBox1.Text = ""; - // - // start_idx - // - this.start_idx.Location = new System.Drawing.Point(166, 9); - this.start_idx.Name = "start_idx"; - this.start_idx.Size = new System.Drawing.Size(42, 21); - this.start_idx.TabIndex = 6; - this.start_idx.Text = "1"; - this.start_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); - // - // end_idx - // - this.end_idx.Location = new System.Drawing.Point(234, 9); - this.end_idx.Name = "end_idx"; - this.end_idx.Size = new System.Drawing.Size(42, 21); - this.end_idx.TabIndex = 6; - this.end_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(214, 13); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(14, 12); - this.label2.TabIndex = 4; - this.label2.Text = "~"; - // - // button2 - // - this.button2.Location = new System.Drawing.Point(409, 8); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 23); - this.button2.TabIndex = 2; - this.button2.Text = "리 셋"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -236,7 +247,8 @@ namespace ISBN_Check_test this.Controls.Add(this.dataGridView1); this.Controls.Add(this.button2); this.Controls.Add(this.button1); - this.Controls.Add(this.comboBox1); + this.Controls.Add(this.cb_api); + this.Controls.Add(this.cb_filter); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); @@ -248,7 +260,7 @@ namespace ISBN_Check_test #endregion - private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.ComboBox cb_filter; private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label1; private System.Windows.Forms.RichTextBox richTextBox1; @@ -257,6 +269,7 @@ namespace ISBN_Check_test private System.Windows.Forms.TextBox end_idx; private System.Windows.Forms.Label label2; private System.Windows.Forms.Button button2; + private System.Windows.Forms.ComboBox cb_api; private System.Windows.Forms.DataGridViewTextBoxColumn book_name; private System.Windows.Forms.DataGridViewTextBoxColumn author; private System.Windows.Forms.DataGridViewTextBoxColumn book_comp; diff --git a/ISBN_Check_test/Form1.cs b/ISBN_Check_test/Form1.cs index 5c4e1cc..4401fb9 100644 --- a/ISBN_Check_test/Form1.cs +++ b/ISBN_Check_test/Form1.cs @@ -19,8 +19,10 @@ namespace ISBN_Check_test } private void Form1_Load(object sender, EventArgs e) { - string[] com_list = { "제목+저자", "제목", "저자", "출판사" }; - comboBox1.Items.AddRange(com_list); + string[] api_list = { "알라딘", "네이버" }; + string[] filter_list = { "제목+저자", "제목", "저자", "출판사" }; + cb_api.Items.AddRange(api_list); + cb_filter.Items.AddRange(filter_list); } private void button2_Click(object sender, EventArgs e) { @@ -34,19 +36,46 @@ namespace ISBN_Check_test } private void button1_Click(object sender, EventArgs e) { - if(comboBox1.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; } - - int start = Convert.ToInt32(start_idx.Text) - 1; - int end = Convert.ToInt32(end_idx.Text) - 1; - - if(start_idx.Text!="1" || end_idx.Text != dataGridView1.Rows.Count.ToString()) { - start = Convert.ToInt32(start_idx.Text) - 1; - end = Convert.ToInt32(end_idx.Text) - 1; - } + if(cb_api.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; } Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); + int start = Convert.ToInt32(start_idx.Text) - 1; + int end = Convert.ToInt32(end_idx.Text) - 1; + + if (start_idx.Text != "1" || end_idx.Text != dataGridView1.Rows.Count.ToString()) { + start = Convert.ToInt32(start_idx.Text) - 1; + end = Convert.ToInt32(end_idx.Text) - 1; + } + + switch (cb_api.SelectedIndex) + { + case 0: + if(cb_filter.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; } + Aladin_API(dataGridView1, start, end); + break; + case 1: + Naver_API(dataGridView1, start, end); + break; + } + + stopwatch.Stop(); + + TimeSpan ts = stopwatch.Elapsed; + string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", + ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); + label1.Text = elapsedTime; + + // 총 검색 횟수, 일치, 중복 + MessageBox.Show("검색이 완료되었습니다!"); + } + /// + /// 알라딘 API + /// + /// + private void Aladin_API(DataGridView gridview, int start, int end) + { string temp = string.Empty; string type = string.Empty; string query = string.Empty; @@ -55,7 +84,7 @@ namespace ISBN_Check_test string[] param = { "title", "author", "publisher", "isbn13", "priceStandard", "pubDate", "categoryName", "stockStatus" }; API api = new API(); - switch (comboBox1.SelectedIndex) + switch (cb_filter.SelectedIndex) { case 0: // 제목+저자 type = "Keyword"; @@ -72,24 +101,31 @@ namespace ISBN_Check_test } for (int a = start; a < end; a++) { - if (dataGridView1.Rows[a].DefaultCellStyle.BackColor == Color.Yellow) + if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.Yellow) continue; - else if (dataGridView1.Rows[a].DefaultCellStyle.BackColor == Color.LightGray){ - dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Empty; - } + else if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.LightGray) + gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty; query = Set_query(type, a); - insert_API(api.Aladin(query, type, param), a); + insert_By_Aladin(api.Aladin(query, type, param), a); } - stopwatch.Stop(); + } + private void Naver_API(DataGridView gridview, int start, int end) + { + API api = new API(); + // 도서명 / 저자 / 출판사 / isbn / 정가 + // 발행일 / 도서분류 / 재고 + string[] param = { "title", "author", "publisher", "isbn", "price", + "pubdate", "discount" }; - TimeSpan ts = stopwatch.Elapsed; - string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", - ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); - label1.Text = elapsedTime; - - // 총 검색 횟수, 일치, 중복 - MessageBox.Show("검색이 완료되었습니다!"); + for(int a = start; a < end; a++) + { + string[] ArrayValue = { gridview.Rows[a].Cells["book_name"].Value.ToString(), + gridview.Rows[a].Cells["author"].Value.ToString(), + gridview.Rows[a].Cells["book_comp"].Value.ToString() }; + string result = api.Naver(ArrayValue, param); + insert_By_Naver(result, a); + } } string Set_query(string type, int idx) { @@ -110,7 +146,7 @@ namespace ISBN_Check_test return result; } - void insert_API(string data, int row) + void insert_By_Aladin(string data, int row) { if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; } dataGridView1.Rows[row].Selected = true; @@ -158,6 +194,70 @@ namespace ISBN_Check_test dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.Yellow; } } + void insert_By_Naver(string value, int row) + { + value = value.Replace("", ""); + value = value.Replace("", ""); + + if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; } + dataGridView1.Rows[row].Selected = true; + + if (value.Length > 0) { + dataGridView1.Rows[row].Cells["Column1"].Value = value; + dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray; + } + + if (value == "") return; + + bool[] chk = { false, false, false }; + string book_name = dataGridView1.Rows[row].Cells["book_name"].Value.ToString(); + string author = dataGridView1.Rows[row].Cells["author"].Value.ToString(); + string book_comp = dataGridView1.Rows[row].Cells["book_comp"].Value.ToString(); + string[] sp_data = value.Split('\t'); + + if (sp_data.Length > 1) return; + + + + /// TODO: 밑에 작업하세요 + #region 이게 그 작업할 밑에임 + // title author publisher isbn price pubdate / discount + // title author publisher isbn price pubdate discount + string[] grid = { "", "", "", "", "", "", "", "" }; + + for (int a = 0; a < sp_data.Length; a++) + { + string[] data = sp_data[a].Split('|'); + int idx = data.Length - 2; + grid[0] = data[0]; + grid[1] = data[1]; + for (int b = 2; b < idx - 4; b++) + { + grid[1] += ", " + data[b]; + } + grid[2] = data[idx - 4]; + if (data[idx - 3].Contains(" ") == true) + { + string[] isbn = data[idx - 3].Split(' '); + grid[3] = isbn[1]; + } + else + grid[3] = data[idx - 3]; + + grid[5] = data[idx - 2]; + grid[6] = data[idx - 1]; + + if (data[idx] == "") + grid[8] = "절판"; + else + grid[8] = ""; + + for(int b = 0; b < 9; b++) { + grid[9] += grid[b]; + } + } + #endregion + } private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { Skill_Grid sg = new Skill_Grid(); @@ -189,6 +289,7 @@ namespace ISBN_Check_test if(dataGridView1.Rows[e.RowIndex].Cells["Column1"].Value == null) { return; } Form2 f2 = new Form2(this); f2.row = e.RowIndex; + f2.Call_API = cb_api.Text; f2.Show(); } @@ -199,5 +300,12 @@ namespace ISBN_Check_test e.Handled = true; } } + private void cb_api_SelectedIndexChanged(object sender, EventArgs e) + { + if(cb_api.SelectedIndex == 1) + cb_filter.Enabled = false; + + else cb_filter.Enabled = true; + } } } diff --git a/ISBN_Check_test/Form1_Sub.cs b/ISBN_Check_test/Form1_Sub.cs index 1a07314..9de5dd9 100644 --- a/ISBN_Check_test/Form1_Sub.cs +++ b/ISBN_Check_test/Form1_Sub.cs @@ -134,13 +134,7 @@ namespace ISBN_Check_test MessageBox.Show(status, "Error"); return "Error"; } - /* - // xml형식을 json형식으로 변환 - XmlDocument doc = new XmlDocument(); - //doc.LoadXml(xml); - doc.Load(xml); - var json = JsonConvert.SerializeXmlNode(doc); - */ + // json형식 분석을 위해 JavaScriptSerializer 개체 생성 JavaScriptSerializer js = new JavaScriptSerializer(); diff --git a/ISBN_Check_test/Form2.cs b/ISBN_Check_test/Form2.cs index 1bfd856..40e793c 100644 --- a/ISBN_Check_test/Form2.cs +++ b/ISBN_Check_test/Form2.cs @@ -14,6 +14,7 @@ namespace ISBN_Check_test { Form1 f1; public int row; + public string Call_API = string.Empty; public Form2(Form1 _f1) { InitializeComponent(); @@ -21,7 +22,17 @@ namespace ISBN_Check_test } private void Form2_Load(object sender, EventArgs e) { + // 호출 API에 따라 다르게 함수호출 + if (Call_API == "알라딘") + Aladin(); + else if (Call_API == "네이버") + Naver(); + // 비슷한거 색깔표시 + same_chk(); + } + private void Aladin() + { tb_book_name.Text = f1.dataGridView1.Rows[row].Cells["book_name"].Value.ToString(); tb_author.Text = f1.dataGridView1.Rows[row].Cells["author"].Value.ToString(); tb_book_comp.Text = f1.dataGridView1.Rows[row].Cells["book_comp"].Value.ToString(); @@ -48,9 +59,10 @@ namespace ISBN_Check_test if (a % 8 == 6) { grid[6] = tmp[a]; } if (a % 8 == 7) { grid[7] = tmp[a]; dataGridView1.Rows.Add(grid); } } - - // 비슷한거 색깔표시 - same_chk(); + } + private void Naver() + { + MessageBox.Show("네이버!"); } private void same_chk() { diff --git a/ISBN_Check_test/Form3.Designer.cs b/ISBN_Check_test/Form3.Designer.cs index 2ac01e3..e6e3ac1 100644 --- a/ISBN_Check_test/Form3.Designer.cs +++ b/ISBN_Check_test/Form3.Designer.cs @@ -29,6 +29,7 @@ namespace ISBN_Check_test /// private void InitializeComponent() { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.button1 = new System.Windows.Forms.Button(); this.tb_book_name = new System.Windows.Forms.TextBox(); this.tb_author = new System.Windows.Forms.TextBox(); @@ -92,6 +93,14 @@ namespace ISBN_Check_test // // dataGridView1 // + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, 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; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column1, diff --git a/ISBN_Check_test/Form3.cs b/ISBN_Check_test/Form3.cs index 8e65950..dfa5c3d 100644 --- a/ISBN_Check_test/Form3.cs +++ b/ISBN_Check_test/Form3.cs @@ -43,57 +43,42 @@ namespace ISBN_Check_test value = value.Replace("", ""); string[] sp_data = value.Split('\t'); + string[] grid = { "", "", "", "", "", "", "" }; - for(int a = 0; a < sp_data.Length; a++) + for (int a = 0; a < sp_data.Length; a++) { string[] data = sp_data[a].Split('|'); - if (data.Length > 7) { - data[1] += ", " + data[2]; - data[2] = data[3]; - if(data[4].Contains(" ") == true) { - string[] isbn = data[4].Split(' '); - data[3] = isbn[1]; + label3.Text = data.Length.ToString(); + if (data.Length > 8) { + int idx = data.Length - 2; + grid[0] = data[0]; + grid[1] = data[1]; + for (int b = 2; b < idx - 4; b++) { + grid[1] += ", " + data[b]; + } + grid[2] = data[idx-4]; + if(data[idx-3].Contains(" ") == true) { + string[] isbn = data[idx - 3].Split(' '); + grid[3] = isbn[1]; } else - data[3] = data[4]; + grid[3] = data[idx -3]; - data[4] = data[5]; - data[5] = data[6]; + grid[4] = data[idx - 2]; + grid[5] = data[idx - 1]; - if(data[7] == "") - data[6] = "절판"; + if(data[idx] == "") + grid[6] = "절판"; else - data[6] = data[7]; + grid[6] = data[idx]; + + dataGridView1.Rows.Add(grid); } - dataGridView1.Rows.Add(data); - } - - /* - string[] sp_data = value.Split('|'); - string[] grid = { "", "", "", "", "", "", "" }; - - for(int a= 0; a < sp_data.Length - 1; a++) - { - if (a % 7 == 0) { grid[0] = sp_data[a]; } // 도서명 - if (a % 7 == 1) { grid[1] = sp_data[a]; } // 저자 - if (a % 7 == 2) { grid[2] = sp_data[a]; } // 출판사 - if (a % 7 == 3) { - if (sp_data[a].Contains(" ") == true) { - string[] tmp_isbn = sp_data[a].Split(' '); - sp_data[a] = tmp_isbn[1]; - } - grid[3] = sp_data[a]; - } // isbn - if (a % 7 == 4) { grid[4] = sp_data[a]; } // 정가 - if (a % 7 == 5) { grid[5] = sp_data[a]; } // 출간일 - if (a % 7 == 6) { - if (sp_data[a] == "") { sp_data[a] = "절판"; } - grid[6] = sp_data[a]; // 재고? - dataGridView1.Rows.Add(grid); + else if (data.Length > 3) { + dataGridView1.Rows.Add(data); } } - */ } private void tb_book_name_KeyDown(object sender, KeyEventArgs e) { diff --git a/ISBN_Check_test/Program.cs b/ISBN_Check_test/Program.cs index 72612a2..2f7dbe3 100644 --- a/ISBN_Check_test/Program.cs +++ b/ISBN_Check_test/Program.cs @@ -16,7 +16,7 @@ namespace ISBN_Check_test { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form3()); + Application.Run(new Form1()); } } } diff --git a/ISBN_Check_test/bin/Debug/ISBN_Check_test.application b/ISBN_Check_test/bin/Debug/ISBN_Check_test.application index d132234..f807010 100644 --- a/ISBN_Check_test/bin/Debug/ISBN_Check_test.application +++ b/ISBN_Check_test/bin/Debug/ISBN_Check_test.application @@ -21,7 +21,7 @@ - EpqnJmtwhiOZuKRdDrM0DSvLzQz12spMGKuJACJu2Yg= + efl4krx3CSCbKwwTCKRYgxkrRfUnUwa5WbV5js5WItI= diff --git a/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe b/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe index 4eed889..5eed9f2 100644 Binary files a/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe and b/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe differ diff --git a/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe.manifest b/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe.manifest index f532d63..8f09e54 100644 --- a/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe.manifest +++ b/ISBN_Check_test/bin/Debug/ISBN_Check_test.exe.manifest @@ -42,14 +42,14 @@ - + - fsSd+LiztaAxTOAmbgfeVhaFlrxQ1cy58pUjhOM7KYk= + FiFngrnlS6vXXZ/Znz0MXrYvz9z6tinSgMT0d0BUMF4= @@ -74,13 +74,13 @@ R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8= - + - lTOd/OLXwh6JpIcu+C0Na9lEQu7w0grVKSl8AuVOJo4= + KiY4qWIu6kYOuYKOOXOnTECz2v4N1Gk7Tb0K63FrE5U= \ No newline at end of file diff --git a/ISBN_Check_test/bin/Debug/ISBN_Check_test.pdb b/ISBN_Check_test/bin/Debug/ISBN_Check_test.pdb index 9e5addf..443c5d6 100644 Binary files a/ISBN_Check_test/bin/Debug/ISBN_Check_test.pdb and b/ISBN_Check_test/bin/Debug/ISBN_Check_test.pdb differ diff --git a/ISBN_Check_test/bin/Debug/app.publish/ISBN_Check_test.exe b/ISBN_Check_test/bin/Debug/app.publish/ISBN_Check_test.exe index a37e2b4..f9d0da9 100644 Binary files a/ISBN_Check_test/bin/Debug/app.publish/ISBN_Check_test.exe and b/ISBN_Check_test/bin/Debug/app.publish/ISBN_Check_test.exe differ diff --git a/ISBN_Check_test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/ISBN_Check_test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 6ac6954..917d23f 100644 Binary files a/ISBN_Check_test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/ISBN_Check_test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/ISBN_Check_test/obj/Debug/ISBN_Check_test.application b/ISBN_Check_test/obj/Debug/ISBN_Check_test.application index d132234..f807010 100644 --- a/ISBN_Check_test/obj/Debug/ISBN_Check_test.application +++ b/ISBN_Check_test/obj/Debug/ISBN_Check_test.application @@ -21,7 +21,7 @@ - EpqnJmtwhiOZuKRdDrM0DSvLzQz12spMGKuJACJu2Yg= + efl4krx3CSCbKwwTCKRYgxkrRfUnUwa5WbV5js5WItI= diff --git a/ISBN_Check_test/obj/Debug/ISBN_Check_test.csproj.GenerateResource.cache b/ISBN_Check_test/obj/Debug/ISBN_Check_test.csproj.GenerateResource.cache index f672f53..a661db8 100644 Binary files a/ISBN_Check_test/obj/Debug/ISBN_Check_test.csproj.GenerateResource.cache and b/ISBN_Check_test/obj/Debug/ISBN_Check_test.csproj.GenerateResource.cache differ diff --git a/ISBN_Check_test/obj/Debug/ISBN_Check_test.csprojAssemblyReference.cache b/ISBN_Check_test/obj/Debug/ISBN_Check_test.csprojAssemblyReference.cache index 9011fd2..dd4d14b 100644 Binary files a/ISBN_Check_test/obj/Debug/ISBN_Check_test.csprojAssemblyReference.cache and b/ISBN_Check_test/obj/Debug/ISBN_Check_test.csprojAssemblyReference.cache differ diff --git a/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe b/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe index 4eed889..5eed9f2 100644 Binary files a/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe and b/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe differ diff --git a/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe.manifest b/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe.manifest index f532d63..8f09e54 100644 --- a/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe.manifest +++ b/ISBN_Check_test/obj/Debug/ISBN_Check_test.exe.manifest @@ -42,14 +42,14 @@ - + - fsSd+LiztaAxTOAmbgfeVhaFlrxQ1cy58pUjhOM7KYk= + FiFngrnlS6vXXZ/Znz0MXrYvz9z6tinSgMT0d0BUMF4= @@ -74,13 +74,13 @@ R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8= - + - lTOd/OLXwh6JpIcu+C0Na9lEQu7w0grVKSl8AuVOJo4= + KiY4qWIu6kYOuYKOOXOnTECz2v4N1Gk7Tb0K63FrE5U= \ No newline at end of file diff --git a/ISBN_Check_test/obj/Debug/ISBN_Check_test.pdb b/ISBN_Check_test/obj/Debug/ISBN_Check_test.pdb index 9e5addf..443c5d6 100644 Binary files a/ISBN_Check_test/obj/Debug/ISBN_Check_test.pdb and b/ISBN_Check_test/obj/Debug/ISBN_Check_test.pdb differ