diff --git a/ISBN_Check_test/.vs/ISBN_Check_test/v16/.suo b/ISBN_Check_test/.vs/ISBN_Check_test/v16/.suo index 0e100d0..e88d98e 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/obj/Debug/ISBN_Check_test.csprojAssemblyReference.cache b/ISBN_Check_test/obj/Debug/ISBN_Check_test.csprojAssemblyReference.cache index f5bb0f6..fb98680 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/unimarc/.vs/WindowsFormsApp1/v16/.suo b/unimarc/.vs/WindowsFormsApp1/v16/.suo index 055ba2c..ada6176 100644 Binary files a/unimarc/.vs/WindowsFormsApp1/v16/.suo and b/unimarc/.vs/WindowsFormsApp1/v16/.suo differ diff --git a/unimarc/WindowsFormsApp1/WindowsFormsApp1.csproj b/unimarc/WindowsFormsApp1/WindowsFormsApp1.csproj index 35e2b55..4e220bd 100644 --- a/unimarc/WindowsFormsApp1/WindowsFormsApp1.csproj +++ b/unimarc/WindowsFormsApp1/WindowsFormsApp1.csproj @@ -139,6 +139,12 @@ Marc.cs + + Form + + + Search_Infor_Sub.cs + Form @@ -600,6 +606,9 @@ Marc.cs + + Search_Infor_Sub.cs + Bill_manage.cs diff --git a/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe b/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe index 9b42d91..4dee4eb 100644 Binary files a/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe and b/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe differ diff --git a/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb b/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb index 7f0a5bf..e192139 100644 Binary files a/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb and b/unimarc/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb differ diff --git a/unimarc/WindowsFormsApp1/bin/Debug/ko/WindowsFormsApp1.resources.dll b/unimarc/WindowsFormsApp1/bin/Debug/ko/WindowsFormsApp1.resources.dll index fc4e822..788d05a 100644 Binary files a/unimarc/WindowsFormsApp1/bin/Debug/ko/WindowsFormsApp1.resources.dll and b/unimarc/WindowsFormsApp1/bin/Debug/ko/WindowsFormsApp1.resources.dll differ diff --git a/unimarc/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/unimarc/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 3a7737e..f03abda 100644 Binary files a/unimarc/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/unimarc/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache index 5585e92..bb8bfda 100644 --- a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache +++ b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -2c2fdedd3db00438687298caebc6f66a078d1e50 +95b5b9901765015531bb86a1c60df3f15920c313 diff --git a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt index 9a00d27..fa71fde 100644 --- a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt +++ b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt @@ -375,3 +375,4 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\Window C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\bin\Debug\System.Numerics.Vectors.dll C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.마크.Check_ISBN_Sub.resources +C:\Users\Administrator\Desktop\unimarc\unimarc\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.마크.Search_Infor_Sub.resources diff --git a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache index d05edd0..18c7cba 100644 Binary files a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache and b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache differ diff --git a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csprojAssemblyReference.cache b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csprojAssemblyReference.cache index 40a8689..5133e46 100644 Binary files a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csprojAssemblyReference.cache and b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csprojAssemblyReference.cache differ diff --git a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe index 9b42d91..4dee4eb 100644 Binary files a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe and b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe differ diff --git a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb index 7f0a5bf..e192139 100644 Binary files a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb and b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb differ diff --git a/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.마크.Search_Infor_Sub.resources b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.마크.Search_Infor_Sub.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/unimarc/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.마크.Search_Infor_Sub.resources differ diff --git a/unimarc/WindowsFormsApp1/obj/Debug/ko/WindowsFormsApp1.resources.dll b/unimarc/WindowsFormsApp1/obj/Debug/ko/WindowsFormsApp1.resources.dll index fc4e822..788d05a 100644 Binary files a/unimarc/WindowsFormsApp1/obj/Debug/ko/WindowsFormsApp1.resources.dll and b/unimarc/WindowsFormsApp1/obj/Debug/ko/WindowsFormsApp1.resources.dll differ diff --git a/unimarc/WindowsFormsApp1/마크/Check_ISBN.Designer.cs b/unimarc/WindowsFormsApp1/마크/Check_ISBN.Designer.cs index 65de5bf..063fa2c 100644 --- a/unimarc/WindowsFormsApp1/마크/Check_ISBN.Designer.cs +++ b/unimarc/WindowsFormsApp1/마크/Check_ISBN.Designer.cs @@ -28,10 +28,20 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = 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(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.btn_lookup = new System.Windows.Forms.Button(); + this.cb_filter = new System.Windows.Forms.ComboBox(); + this.label1 = new System.Windows.Forms.Label(); + this.tb_list_name = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.btn_Save = new System.Windows.Forms.Button(); + this.btn_Close = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.cb_api = new System.Windows.Forms.ComboBox(); + this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.num = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -50,17 +60,8 @@ this.persent = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.category = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.image = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.btn_lookup = new System.Windows.Forms.Button(); - this.cb_filter = new System.Windows.Forms.ComboBox(); - this.label1 = new System.Windows.Forms.Label(); - this.tb_list_name = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.btn_Save = new System.Windows.Forms.Button(); - this.btn_Close = new System.Windows.Forms.Button(); - this.label3 = new System.Windows.Forms.Label(); - this.cb_api = new System.Windows.Forms.ComboBox(); - this.progressBar1 = new System.Windows.Forms.ProgressBar(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // @@ -69,13 +70,13 @@ this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; + 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; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.num, @@ -96,21 +97,22 @@ this.persent, this.category, this.sold_out, + this.image, this.api_data}); this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2; this.dataGridView1.Location = new System.Drawing.Point(12, 35); this.dataGridView1.Name = "dataGridView1"; - 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.RowHeadersDefaultCellStyle = dataGridViewCellStyle5; + 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; this.dataGridView1.RowHeadersWidth = 20; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle6; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3; this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.Size = new System.Drawing.Size(1615, 547); this.dataGridView1.TabIndex = 0; @@ -118,6 +120,97 @@ this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); // + // btn_lookup + // + this.btn_lookup.Location = new System.Drawing.Point(709, 7); + this.btn_lookup.Name = "btn_lookup"; + this.btn_lookup.Size = new System.Drawing.Size(99, 23); + this.btn_lookup.TabIndex = 1; + this.btn_lookup.Text = "ISBN 자동 조회"; + this.btn_lookup.UseVisualStyleBackColor = true; + this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click); + // + // cb_filter + // + this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_filter.FormattingEnabled = true; + this.cb_filter.Location = new System.Drawing.Point(516, 8); + this.cb_filter.Name = "cb_filter"; + this.cb_filter.Size = new System.Drawing.Size(161, 20); + this.cb_filter.TabIndex = 2; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(16, 12); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 3; + this.label1.Text = "목록명"; + // + // tb_list_name + // + this.tb_list_name.Enabled = false; + this.tb_list_name.Location = new System.Drawing.Point(59, 8); + this.tb_list_name.Name = "tb_list_name"; + this.tb_list_name.Size = new System.Drawing.Size(199, 21); + this.tb_list_name.TabIndex = 4; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(457, 12); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(57, 12); + this.label2.TabIndex = 3; + this.label2.Text = "검색 조건"; + // + // btn_Save + // + this.btn_Save.Location = new System.Drawing.Point(819, 7); + this.btn_Save.Name = "btn_Save"; + this.btn_Save.Size = new System.Drawing.Size(99, 23); + this.btn_Save.TabIndex = 1; + this.btn_Save.Text = "전 체 저 장"; + this.btn_Save.UseVisualStyleBackColor = true; + this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click); + // + // btn_Close + // + this.btn_Close.Location = new System.Drawing.Point(929, 7); + this.btn_Close.Name = "btn_Close"; + this.btn_Close.Size = new System.Drawing.Size(99, 23); + this.btn_Close.TabIndex = 1; + this.btn_Close.Text = "닫 기"; + this.btn_Close.UseVisualStyleBackColor = true; + this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(278, 12); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(57, 12); + this.label3.TabIndex = 5; + this.label3.Text = "검색 엔진"; + // + // cb_api + // + this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_api.FormattingEnabled = true; + this.cb_api.Location = new System.Drawing.Point(337, 8); + this.cb_api.Name = "cb_api"; + this.cb_api.Size = new System.Drawing.Size(93, 20); + this.cb_api.TabIndex = 6; + this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged); + // + // progressBar1 + // + this.progressBar1.Location = new System.Drawing.Point(1060, 7); + this.progressBar1.Name = "progressBar1"; + this.progressBar1.Size = new System.Drawing.Size(219, 23); + this.progressBar1.TabIndex = 7; + // // num // this.num.HeaderText = "번호"; @@ -215,103 +308,17 @@ this.sold_out.HeaderText = "품절/절판"; this.sold_out.Name = "sold_out"; // + // image + // + this.image.HeaderText = "이미지"; + this.image.Name = "image"; + // // api_data // this.api_data.HeaderText = "api_data"; this.api_data.Name = "api_data"; this.api_data.Visible = false; // - // btn_lookup - // - this.btn_lookup.Location = new System.Drawing.Point(709, 7); - this.btn_lookup.Name = "btn_lookup"; - this.btn_lookup.Size = new System.Drawing.Size(99, 23); - this.btn_lookup.TabIndex = 1; - this.btn_lookup.Text = "ISBN 자동 조회"; - this.btn_lookup.UseVisualStyleBackColor = true; - this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click); - // - // cb_filter - // - this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cb_filter.FormattingEnabled = true; - this.cb_filter.Location = new System.Drawing.Point(516, 8); - this.cb_filter.Name = "cb_filter"; - this.cb_filter.Size = new System.Drawing.Size(161, 20); - this.cb_filter.TabIndex = 2; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(16, 12); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(41, 12); - this.label1.TabIndex = 3; - this.label1.Text = "목록명"; - // - // tb_list_name - // - this.tb_list_name.Enabled = false; - this.tb_list_name.Location = new System.Drawing.Point(59, 8); - this.tb_list_name.Name = "tb_list_name"; - this.tb_list_name.Size = new System.Drawing.Size(199, 21); - this.tb_list_name.TabIndex = 4; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(457, 12); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(57, 12); - this.label2.TabIndex = 3; - this.label2.Text = "검색 조건"; - // - // btn_Save - // - this.btn_Save.Location = new System.Drawing.Point(819, 7); - this.btn_Save.Name = "btn_Save"; - this.btn_Save.Size = new System.Drawing.Size(99, 23); - this.btn_Save.TabIndex = 1; - this.btn_Save.Text = "전 체 저 장"; - this.btn_Save.UseVisualStyleBackColor = true; - this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click); - // - // btn_Close - // - this.btn_Close.Location = new System.Drawing.Point(929, 7); - this.btn_Close.Name = "btn_Close"; - this.btn_Close.Size = new System.Drawing.Size(99, 23); - this.btn_Close.TabIndex = 1; - this.btn_Close.Text = "닫 기"; - this.btn_Close.UseVisualStyleBackColor = true; - this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(278, 12); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(57, 12); - this.label3.TabIndex = 5; - this.label3.Text = "검색 엔진"; - // - // cb_api - // - this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cb_api.FormattingEnabled = true; - this.cb_api.Location = new System.Drawing.Point(337, 8); - this.cb_api.Name = "cb_api"; - this.cb_api.Size = new System.Drawing.Size(93, 20); - this.cb_api.TabIndex = 6; - this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged); - // - // progressBar1 - // - this.progressBar1.Location = new System.Drawing.Point(1060, 7); - this.progressBar1.Name = "progressBar1"; - this.progressBar1.Size = new System.Drawing.Size(219, 23); - this.progressBar1.TabIndex = 7; - // // Check_ISBN // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -368,6 +375,7 @@ private System.Windows.Forms.DataGridViewTextBoxColumn persent; private System.Windows.Forms.DataGridViewTextBoxColumn category; private System.Windows.Forms.DataGridViewTextBoxColumn sold_out; + private System.Windows.Forms.DataGridViewTextBoxColumn image; private System.Windows.Forms.DataGridViewTextBoxColumn api_data; } } \ No newline at end of file diff --git a/unimarc/WindowsFormsApp1/마크/Check_ISBN.cs b/unimarc/WindowsFormsApp1/마크/Check_ISBN.cs index 02092df..ce8be96 100644 --- a/unimarc/WindowsFormsApp1/마크/Check_ISBN.cs +++ b/unimarc/WindowsFormsApp1/마크/Check_ISBN.cs @@ -55,7 +55,7 @@ namespace WindowsFormsApp1.Mac string[] search_col = { compidx, list_name }; string search_data = "`header`, `num`, `isbn`, `book_name`, `author`, `book_comp`, " + "`count`, `pay`, `total`, `import`, `price`, " + - "`etc`, `pubDate`, `persent`, `category`"; + "`etc`, `pubDate`, `persent`, `category`, `image_url`"; string tmp_data = db.More_DB_Search("Obj_List_Book", search_tbl, search_col, search_data); string[] data = tmp_data.Split('|'); @@ -170,7 +170,7 @@ namespace WindowsFormsApp1.Mac // 도서명 / 저자 / 출판사 / isbn / 정가 // 발행일 / 도서분류 / 재고 string[] param = { "title", "author", "publisher", "isbn", "price", - "pubdate", "discount"}; + "pubdate", "discount", "image"}; API api = new API(); List L_type = new List(); List L_Array = new List(); @@ -246,7 +246,7 @@ namespace WindowsFormsApp1.Mac private void Daum_API(DataGridView gridview) { string[] param = { "title", "authors", "publisher", "isbn", "price", - "datetime", "status" }; + "datetime", "status", "thumbnail" }; string type = string.Empty; string query = string.Empty; API api = new API(); @@ -319,7 +319,7 @@ namespace WindowsFormsApp1.Mac value = value.Replace("", ""); string[] sp_data = value.Split('\t'); - string[] grid = { "", "", "", "", "", "", "", "" }; + string[] grid = { "", "", "", "", "", "", "", "", "" }; #region 분류작업 for (int a = 0; a < sp_data.Length - 1; a++) @@ -328,27 +328,29 @@ namespace WindowsFormsApp1.Mac int idx = data.Length - 2; grid[0] = data[0]; grid[1] = data[1]; - for (int b = 2; b < idx - 4; b++) + for (int b = 2; b < idx - 5; b++) { grid[1] += ", " + data[b]; } - grid[2] = data[idx - 4]; - if (data[idx - 3].Contains(" ") == true) + grid[2] = data[idx - 5]; + if (data[idx - 4].Contains(" ") == true) { - string[] isbn = data[idx - 3].Split(' '); + string[] isbn = data[idx - 4].Split(' '); grid[3] = isbn[1]; } else - grid[3] = data[idx - 3]; + grid[3] = data[idx - 4]; - grid[4] = data[idx - 2]; - grid[5] = data[idx - 1]; + grid[4] = data[idx - 3]; + grid[5] = data[idx - 2]; - if (data[idx] == "") + if (data[idx - 1] == "") grid[7] = "절판"; else grid[7] = ""; + grid[8] = data[idx]; + dataGridView1.Rows[row].Cells["api_data"].Value += string.Join("|", grid) + "|"; dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray; } @@ -379,7 +381,7 @@ namespace WindowsFormsApp1.Mac if (value == "") return; string[] sp_data = value.Split('\n'); - string[] grid = { "", "", "", "", "", "", "", "" }; + string[] grid = { "", "", "", "", "", "", "", "", "" }; for (int a = 0; a < sp_data.Length - 1; a++) { @@ -397,6 +399,7 @@ namespace WindowsFormsApp1.Mac grid[4] = data[4]; grid[5] = data[5].Substring(0, 10); grid[7] = data[6]; + grid[8] = data[7]; dataGridView1.Rows[row].Cells["api_data"].Value += string.Join("|", grid) + "|"; dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray; @@ -445,6 +448,7 @@ namespace WindowsFormsApp1.Mac dataGridView1.Rows[idx].Cells["pubDate"].Value = date; dataGridView1.Rows[idx].Cells["category"].Value = value[6]; dataGridView1.Rows[idx].Cells["sold_out"].Value = value[7]; + dataGridView1.Rows[idx].Cells["image"].Value = value[8]; dataGridView1.Rows[idx].DefaultCellStyle.BackColor = Color.Yellow; } } @@ -456,9 +460,9 @@ namespace WindowsFormsApp1.Mac string[] grid = { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", - "", "", "" }; + "", "", "", "" }; - int sdc = 15; // search_data_count + int sdc = 16; // search_data_count for (int a = 0; a < data.Length; a++) { if (a % sdc == 1) { grid[0] = data[a-1] + " " + data[a]; } // 번호 @@ -474,7 +478,8 @@ namespace WindowsFormsApp1.Mac if (a % sdc == 11) { grid[13] = data[a]; } // 비고 if (a % sdc == 12) { grid[14] = data[a]; } // 발행일 if (a % sdc == 13) { grid[15] = data[a]; } // % - if (a % sdc == 14) { grid[16] = data[a]; // 도서분류 + if (a % sdc == 14) { grid[16] = data[a]; } // 도서분류 + if (a % sdc == 15) { grid[18] = data[a]; // 도서 URL dataGridView1.Rows.Add(grid); } } for(int a = 0; a < dataGridView1.Rows.Count; a++) @@ -508,11 +513,12 @@ namespace WindowsFormsApp1.Mac if (dataGridView1.Rows[a].Cells["isbn"].Value.ToString() == "" || dataGridView1.Rows[a].Cells["price"].Value.ToString() == "" || dataGridView1.Rows[a].Cells["pubDate"].Value.ToString() == "") { continue; } - string[] Edit_tbl = { "isbn", "price", "pubDate", "category" }; + string[] Edit_tbl = { "isbn", "price", "pubDate", "category", "image_url" }; string[] Edit_Col = { dataGridView1.Rows[a].Cells["isbn"].Value.ToString(), dataGridView1.Rows[a].Cells["price"].Value.ToString(), dataGridView1.Rows[a].Cells["pubDate"].Value.ToString(), - dataGridView1.Rows[a].Cells["category"].Value.ToString() }; + dataGridView1.Rows[a].Cells["category"].Value.ToString(), + dataGridView1.Rows[a].Cells["image"].Value.ToString() }; string[] Search_tbl = { "book_name", "author", "book_comp", "list_name" }; string[] Search_col = {dataGridView1.Rows[a].Cells["book_name"].Value.ToString(), dataGridView1.Rows[a].Cells["author"].Value.ToString(), @@ -529,7 +535,7 @@ namespace WindowsFormsApp1.Mac } private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { - if (rowidx > dataGridView1.Rows.Count) return; + if (rowidx >= dataGridView1.Rows.Count) return; if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null || dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString() == "") { return; diff --git a/unimarc/WindowsFormsApp1/마크/Check_ISBN.resx b/unimarc/WindowsFormsApp1/마크/Check_ISBN.resx index 0bcce43..08f2730 100644 --- a/unimarc/WindowsFormsApp1/마크/Check_ISBN.resx +++ b/unimarc/WindowsFormsApp1/마크/Check_ISBN.resx @@ -171,6 +171,9 @@ True + + True + True diff --git a/unimarc/WindowsFormsApp1/마크/Check_ISBN_Sub.cs b/unimarc/WindowsFormsApp1/마크/Check_ISBN_Sub.cs index 15965de..b50dcb7 100644 --- a/unimarc/WindowsFormsApp1/마크/Check_ISBN_Sub.cs +++ b/unimarc/WindowsFormsApp1/마크/Check_ISBN_Sub.cs @@ -52,9 +52,9 @@ namespace WindowsFormsApp1.마크 // 도서명 / 저자 / 출판사 / isbn / 출간일 / 카테고리 / 품절여부 string[] tmp = data.Split('|'); - string[] grid = { "", "", "", "", "", "", "", "" }; + string[] grid = { "", "", "", "", "", "", "", "", "" }; - int idx = 8; + int idx = 9; for(int a= 0; a < tmp.Length; a++) { if (a % idx == 0) grid[0] = tmp[a]; @@ -64,7 +64,8 @@ namespace WindowsFormsApp1.마크 if (a % idx == 4) grid[4] = tmp[a]; if (a % idx == 5) grid[5] = change_Date_type(tmp[a]); if (a % idx == 6) grid[6] = tmp[a]; - if (a % idx == 7) { grid[7] = tmp[a]; dataGridView1.Rows.Add(grid); } + if (a % idx == 7) grid[7] = tmp[a]; + if (a % idx == 8) { grid[8] = tmp[a]; dataGridView1.Rows.Add(grid); } } } private string change_Date_type(string date) @@ -134,6 +135,7 @@ namespace WindowsFormsApp1.마크 string Date = dataGridView1.Rows[rowidx].Cells["pubDate"].Value.ToString(); string category = dataGridView1.Rows[rowidx].Cells["category"].Value.ToString(); string sold = dataGridView1.Rows[rowidx].Cells["sold_out"].Value.ToString(); + string image = dataGridView1.Rows[rowidx].Cells["Column1"].Value.ToString(); ci.dataGridView1.Rows[row].Cells["search_book_name"].Value = book_name; ci.dataGridView1.Rows[row].Cells["search_author"].Value = author; @@ -143,6 +145,7 @@ namespace WindowsFormsApp1.마크 ci.dataGridView1.Rows[row].Cells["pubDate"].Value = Date; ci.dataGridView1.Rows[row].Cells["category"].Value = category; ci.dataGridView1.Rows[row].Cells["sold_out"].Value = sold; + ci.dataGridView1.Rows[row].Cells["image"].Value = image; ci.dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.Yellow; diff --git a/unimarc/WindowsFormsApp1/마크/Marc.cs b/unimarc/WindowsFormsApp1/마크/Marc.cs index 6bdb095..615563b 100644 --- a/unimarc/WindowsFormsApp1/마크/Marc.cs +++ b/unimarc/WindowsFormsApp1/마크/Marc.cs @@ -98,22 +98,23 @@ namespace ExcelTest public void input_list(string date, string value) { db.DBcon(); - string Area = "`idx`, `isbn`, `book_name`, `author`, `book_comp`, `pay`"; + string Area = "`idx`, `isbn`, `book_name`, `author`, `book_comp`, `pay`, `image_url`"; string[] sear_tbl = { "date", "list_name" }; string[] sear_col = { date, value }; string tmp_data = db.More_DB_Search("Obj_List_Book", sear_tbl, sear_col, Area); string[] db_data = tmp_data.Split('|'); - string[] grid = { "", "", "", "", "", "", "", "" }; + string[] grid = { "", "", "", "", "", "", "", "", "" }; for(int a = 0; a < db_data.Length; a++) { - if (a % 6 == 0) { grid[0] = db_data[a]; } - if (a % 6 == 1) { grid[1] = db_data[a]; } - if (a % 6 == 2) { grid[2] = db_data[a]; } - if (a % 6 == 3) { grid[3] = db_data[a]; } - if (a % 6 == 4) { grid[4] = db_data[a]; } - if (a % 6 == 5) { grid[5] = db_data[a]; List_Book.Rows.Add(grid); } + if (a % 7 == 0) { grid[0] = db_data[a]; } + if (a % 7 == 1) { grid[1] = db_data[a]; } + if (a % 7 == 2) { grid[2] = db_data[a]; } + if (a % 7 == 3) { grid[3] = db_data[a]; } + if (a % 7 == 4) { grid[4] = db_data[a]; } + if (a % 7 == 5) { grid[5] = db_data[a]; } + if (a % 7 == 6) { grid[6] = db_data[a]; List_Book.Rows.Add(grid); } } chk_Marc(); } @@ -1144,22 +1145,23 @@ namespace ExcelTest List_Book.Rows[row_idx].Cells["book_name"].Value.ToString(), List_Book.Rows[row_idx].Cells["author"].Value.ToString(), List_Book.Rows[row_idx].Cells["book_comp"].Value.ToString(), - List_Book.Rows[row_idx].Cells["pay"].Value.ToString() }; + List_Book.Rows[row_idx].Cells["pay"].Value.ToString(), + List_Book.Rows[row_idx].Cells["url"].Value.ToString() }; if (List_Book.Rows[row_idx].Cells["db_marc"].Value.ToString() != "") { - string[] Edit_tbl = { "`marc`", "`비고1`", "`비고2`"}; - string[] Edit_col = { made_Ori_marc(), etc1.Text, etc2.Text }; - string[] Sear_tbl = { "`ISBN`", "`서명`", "`저자`", "`출판사`", "`가격`" }; - string[] Sear_col = { grid_data[0], grid_data[1], grid_data[2], grid_data[3], grid_data[4] }; + string[] Edit_tbl = { "`marc`", "`비고1`", "`비고2`", "`url`" }; + string[] Edit_col = { made_Ori_marc(), etc1.Text, etc2.Text, grid_data[5] }; + string[] Sear_tbl = { "`idx`" }; + string[] Sear_col = { List_Book.Rows[row_idx].Cells["list_idx"].Value.ToString() }; db.More_Update(table_name, Edit_tbl, Edit_col, Sear_tbl, Sear_col); } else { string[] Insert_tbl = { "`ISBN`", "`서명`", "`저자`", "`출판사`", "`가격`", - "`marc`", "`비고1`", "`비고2`" }; + "`marc`", "`비고1`", "`비고2`", "`url`" }; string[] Insert_col = { grid_data[0], grid_data[1], grid_data[2], grid_data[3], grid_data[4], - made_Ori_marc(), etc1.Text, etc2.Text }; + made_Ori_marc(), etc1.Text, etc2.Text, grid_data[5] }; db.DB_INSERT(table_name, Insert_col, Insert_tbl); } @@ -1170,10 +1172,15 @@ namespace ExcelTest int row_idx = e.RowIndex; richTextBox1.Text = ""; if (!click_Marc(row_idx)) { richTextBox1.Text = Make_Empty(); } + input_picture(row_idx); Create_008(); Color_change("▼"); Color_change("▲"); } + void input_picture(int row) + { + pictureBox1.ImageLocation = List_Book.Rows[row].Cells["url"].Value.ToString(); + } private string Make_Empty() { // 입력일자 (00-05) diff --git a/unimarc/WindowsFormsApp1/마크/Marc.designer.cs b/unimarc/WindowsFormsApp1/마크/Marc.designer.cs index 1be7cdf..5b660b8 100644 --- a/unimarc/WindowsFormsApp1/마크/Marc.designer.cs +++ b/unimarc/WindowsFormsApp1/마크/Marc.designer.cs @@ -28,7 +28,7 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); @@ -142,15 +142,6 @@ this.Btn_Helper = new System.Windows.Forms.Button(); this.Btn_interlock = new System.Windows.Forms.Button(); this.List_Book = new System.Windows.Forms.DataGridView(); - this.list_idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ISBN13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.pay = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.marc_idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.db_marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.btn_Save = new System.Windows.Forms.Button(); this.panel2 = new System.Windows.Forms.Panel(); this.label4 = new System.Windows.Forms.Label(); @@ -158,6 +149,17 @@ this.panel3 = new System.Windows.Forms.Panel(); this.btn_close = new System.Windows.Forms.Button(); this.input_date = new System.Windows.Forms.DateTimePicker(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.list_idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ISBN13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pay = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.url = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.marc_idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.db_marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.GridView020)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.GridView246)).BeginInit(); this.panel1.SuspendLayout(); @@ -169,15 +171,16 @@ ((System.ComponentModel.ISupportInitialize)(this.List_Book)).BeginInit(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // richTextBox1 // this.richTextBox1.AcceptsTab = true; this.richTextBox1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.richTextBox1.Location = new System.Drawing.Point(380, 95); + this.richTextBox1.Location = new System.Drawing.Point(386, 89); this.richTextBox1.Name = "richTextBox1"; - this.richTextBox1.Size = new System.Drawing.Size(553, 616); + this.richTextBox1.Size = new System.Drawing.Size(621, 643); this.richTextBox1.TabIndex = 32; this.richTextBox1.Text = " "; this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown); @@ -207,9 +210,9 @@ // etc1 // this.etc1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.etc1.Location = new System.Drawing.Point(939, 95); + this.etc1.Location = new System.Drawing.Point(1013, 321); this.etc1.Name = "etc1"; - this.etc1.Size = new System.Drawing.Size(369, 299); + this.etc1.Size = new System.Drawing.Size(301, 204); this.etc1.TabIndex = 32; this.etc1.Text = "Remark1"; this.etc1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown); @@ -217,9 +220,9 @@ // etc2 // this.etc2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.etc2.Location = new System.Drawing.Point(939, 412); + this.etc2.Location = new System.Drawing.Point(1013, 531); this.etc2.Name = "etc2"; - this.etc2.Size = new System.Drawing.Size(369, 299); + this.etc2.Size = new System.Drawing.Size(301, 201); this.etc2.TabIndex = 32; this.etc2.Text = "Remark2"; this.etc2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown); @@ -227,7 +230,7 @@ // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(384, 18); + this.label1.Location = new System.Drawing.Point(390, 12); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(53, 12); this.label1.TabIndex = 14; @@ -236,7 +239,7 @@ // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(553, 18); + this.label2.Location = new System.Drawing.Point(559, 12); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(41, 12); this.label2.TabIndex = 206; @@ -246,7 +249,7 @@ // this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox1.FormattingEnabled = true; - this.comboBox1.Location = new System.Drawing.Point(594, 14); + this.comboBox1.Location = new System.Drawing.Point(600, 8); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(79, 20); this.comboBox1.TabIndex = 207; @@ -256,7 +259,7 @@ // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(686, 18); + this.label3.Location = new System.Drawing.Point(692, 12); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(53, 12); this.label3.TabIndex = 206; @@ -266,7 +269,7 @@ // this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox2.FormattingEnabled = true; - this.comboBox2.Location = new System.Drawing.Point(737, 14); + this.comboBox2.Location = new System.Drawing.Point(743, 8); this.comboBox2.Name = "comboBox2"; this.comboBox2.Size = new System.Drawing.Size(79, 20); this.comboBox2.TabIndex = 207; @@ -276,7 +279,7 @@ // label98 // this.label98.AutoSize = true; - this.label98.Location = new System.Drawing.Point(839, 18); + this.label98.Location = new System.Drawing.Point(845, 12); this.label98.Name = "label98"; this.label98.Size = new System.Drawing.Size(53, 12); this.label98.TabIndex = 14; @@ -286,7 +289,7 @@ // this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox3.FormattingEnabled = true; - this.comboBox3.Location = new System.Drawing.Point(893, 14); + this.comboBox3.Location = new System.Drawing.Point(899, 8); this.comboBox3.Name = "comboBox3"; this.comboBox3.Size = new System.Drawing.Size(118, 20); this.comboBox3.TabIndex = 207; @@ -296,7 +299,7 @@ // label99 // this.label99.AutoSize = true; - this.label99.Location = new System.Drawing.Point(1136, 18); + this.label99.Location = new System.Drawing.Point(1142, 12); this.label99.Name = "label99"; this.label99.Size = new System.Drawing.Size(29, 12); this.label99.TabIndex = 206; @@ -304,7 +307,7 @@ // // text008col // - this.text008col.Location = new System.Drawing.Point(1165, 14); + this.text008col.Location = new System.Drawing.Point(1171, 8); this.text008col.Name = "text008col"; this.text008col.Size = new System.Drawing.Size(41, 21); this.text008col.TabIndex = 204; @@ -313,7 +316,7 @@ // label100 // this.label100.AutoSize = true; - this.label100.Location = new System.Drawing.Point(638, 40); + this.label100.Location = new System.Drawing.Point(644, 34); this.label100.Name = "label100"; this.label100.Size = new System.Drawing.Size(53, 12); this.label100.TabIndex = 206; @@ -323,7 +326,7 @@ // this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox4.FormattingEnabled = true; - this.comboBox4.Location = new System.Drawing.Point(689, 36); + this.comboBox4.Location = new System.Drawing.Point(695, 30); this.comboBox4.Name = "comboBox4"; this.comboBox4.Size = new System.Drawing.Size(79, 20); this.comboBox4.TabIndex = 207; @@ -333,7 +336,7 @@ // label101 // this.label101.AutoSize = true; - this.label101.Location = new System.Drawing.Point(777, 40); + this.label101.Location = new System.Drawing.Point(783, 34); this.label101.Name = "label101"; this.label101.Size = new System.Drawing.Size(29, 12); this.label101.TabIndex = 206; @@ -343,7 +346,7 @@ // this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox5.FormattingEnabled = true; - this.comboBox5.Location = new System.Drawing.Point(807, 36); + this.comboBox5.Location = new System.Drawing.Point(813, 30); this.comboBox5.Name = "comboBox5"; this.comboBox5.Size = new System.Drawing.Size(101, 20); this.comboBox5.TabIndex = 207; @@ -353,7 +356,7 @@ // label102 // this.label102.AutoSize = true; - this.label102.Location = new System.Drawing.Point(923, 40); + this.label102.Location = new System.Drawing.Point(929, 34); this.label102.Name = "label102"; this.label102.Size = new System.Drawing.Size(29, 12); this.label102.TabIndex = 206; @@ -363,7 +366,7 @@ // this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox6.FormattingEnabled = true; - this.comboBox6.Location = new System.Drawing.Point(953, 36); + this.comboBox6.Location = new System.Drawing.Point(959, 30); this.comboBox6.Name = "comboBox6"; this.comboBox6.Size = new System.Drawing.Size(101, 20); this.comboBox6.TabIndex = 207; @@ -372,7 +375,7 @@ // // text008gov // - this.text008gov.Location = new System.Drawing.Point(1093, 36); + this.text008gov.Location = new System.Drawing.Point(1099, 30); this.text008gov.Name = "text008gov"; this.text008gov.Size = new System.Drawing.Size(41, 21); this.text008gov.TabIndex = 204; @@ -381,7 +384,7 @@ // label103 // this.label103.AutoSize = true; - this.label103.Location = new System.Drawing.Point(1064, 40); + this.label103.Location = new System.Drawing.Point(1070, 34); this.label103.Name = "label103"; this.label103.Size = new System.Drawing.Size(29, 12); this.label103.TabIndex = 206; @@ -1130,7 +1133,7 @@ // this.col008res.AutoSize = true; this.col008res.ForeColor = System.Drawing.Color.Blue; - this.col008res.Location = new System.Drawing.Point(1208, 18); + this.col008res.Location = new System.Drawing.Point(1214, 12); this.col008res.Name = "col008res"; this.col008res.Size = new System.Drawing.Size(13, 12); this.col008res.TabIndex = 206; @@ -1141,7 +1144,7 @@ // this.gov008res.AutoSize = true; this.gov008res.ForeColor = System.Drawing.Color.Blue; - this.gov008res.Location = new System.Drawing.Point(1136, 40); + this.gov008res.Location = new System.Drawing.Point(1142, 34); this.gov008res.Name = "gov008res"; this.gov008res.Size = new System.Drawing.Size(13, 12); this.gov008res.TabIndex = 206; @@ -1151,7 +1154,7 @@ // checkBox1 // this.checkBox1.AutoSize = true; - this.checkBox1.Location = new System.Drawing.Point(386, 38); + this.checkBox1.Location = new System.Drawing.Point(392, 32); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(112, 16); this.checkBox1.TabIndex = 213; @@ -1162,7 +1165,7 @@ // checkBox2 // this.checkBox2.AutoSize = true; - this.checkBox2.Location = new System.Drawing.Point(510, 38); + this.checkBox2.Location = new System.Drawing.Point(516, 32); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(112, 16); this.checkBox2.TabIndex = 213; @@ -1174,7 +1177,7 @@ // this.comboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox7.FormattingEnabled = true; - this.comboBox7.Location = new System.Drawing.Point(1012, 14); + this.comboBox7.Location = new System.Drawing.Point(1018, 8); this.comboBox7.Name = "comboBox7"; this.comboBox7.Size = new System.Drawing.Size(118, 20); this.comboBox7.TabIndex = 207; @@ -1183,7 +1186,7 @@ // // Btn_Helper // - this.Btn_Helper.Location = new System.Drawing.Point(1233, 13); + this.Btn_Helper.Location = new System.Drawing.Point(1239, 7); this.Btn_Helper.Name = "Btn_Helper"; this.Btn_Helper.Size = new System.Drawing.Size(75, 23); this.Btn_Helper.TabIndex = 215; @@ -1207,14 +1210,14 @@ this.List_Book.AllowUserToAddRows = false; this.List_Book.AllowUserToDeleteRows = false; this.List_Book.AllowUserToResizeColumns = false; - 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.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; this.List_Book.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.list_idx, this.ISBN13, @@ -1222,11 +1225,12 @@ this.author, this.book_comp, this.pay, + this.url, this.marc_idx, this.db_marc, this.grade}); this.List_Book.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; - this.List_Book.Location = new System.Drawing.Point(6, 18); + this.List_Book.Location = new System.Drawing.Point(12, 12); this.List_Book.MultiSelect = false; this.List_Book.Name = "List_Book"; this.List_Book.ReadOnly = true; @@ -1239,72 +1243,9 @@ this.List_Book.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.List_Book_CellContentClick); this.List_Book.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView8_KeyDown); // - // list_idx - // - this.list_idx.HeaderText = "list_idx"; - this.list_idx.Name = "list_idx"; - this.list_idx.ReadOnly = true; - this.list_idx.Visible = false; - this.list_idx.Width = 30; - // - // ISBN13 - // - this.ISBN13.HeaderText = "ISBN13"; - this.ISBN13.Name = "ISBN13"; - this.ISBN13.ReadOnly = true; - // - // book_name - // - this.book_name.HeaderText = "도서명"; - this.book_name.Name = "book_name"; - this.book_name.ReadOnly = true; - // - // author - // - this.author.HeaderText = "저자"; - this.author.Name = "author"; - this.author.ReadOnly = true; - this.author.Width = 50; - // - // book_comp - // - this.book_comp.HeaderText = "출판사"; - this.book_comp.Name = "book_comp"; - this.book_comp.ReadOnly = true; - this.book_comp.Width = 50; - // - // pay - // - this.pay.HeaderText = "정가"; - this.pay.Name = "pay"; - this.pay.ReadOnly = true; - this.pay.Width = 50; - // - // marc_idx - // - this.marc_idx.HeaderText = "marc_idx"; - this.marc_idx.Name = "marc_idx"; - this.marc_idx.ReadOnly = true; - this.marc_idx.Visible = false; - this.marc_idx.Width = 30; - // - // db_marc - // - this.db_marc.HeaderText = "marc"; - this.db_marc.Name = "db_marc"; - this.db_marc.ReadOnly = true; - this.db_marc.Visible = false; - // - // grade - // - this.grade.HeaderText = "등급"; - this.grade.Name = "grade"; - this.grade.ReadOnly = true; - this.grade.Visible = false; - // // btn_Save // - this.btn_Save.Location = new System.Drawing.Point(1233, 39); + this.btn_Save.Location = new System.Drawing.Point(1239, 33); this.btn_Save.Name = "btn_Save"; this.btn_Save.Size = new System.Drawing.Size(75, 23); this.btn_Save.TabIndex = 215; @@ -1368,7 +1309,7 @@ this.panel2.Controls.Add(this.text586a); this.panel2.Controls.Add(this.text521a); this.panel2.Controls.Add(this.text520a); - this.panel2.Location = new System.Drawing.Point(378, 729); + this.panel2.Location = new System.Drawing.Point(378, 744); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(1009, 13); this.panel2.TabIndex = 218; @@ -1397,14 +1338,14 @@ this.panel3.BackColor = System.Drawing.SystemColors.ActiveCaption; this.panel3.Controls.Add(this.text008); this.panel3.Controls.Add(this.label4); - this.panel3.Location = new System.Drawing.Point(381, 60); + this.panel3.Location = new System.Drawing.Point(387, 54); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(430, 30); this.panel3.TabIndex = 219; // // btn_close // - this.btn_close.Location = new System.Drawing.Point(1233, 65); + this.btn_close.Location = new System.Drawing.Point(1239, 59); this.btn_close.Name = "btn_close"; this.btn_close.Size = new System.Drawing.Size(75, 23); this.btn_close.TabIndex = 215; @@ -1416,17 +1357,97 @@ // this.input_date.CustomFormat = "yyyy-MM-dd"; this.input_date.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.input_date.Location = new System.Drawing.Point(443, 14); + this.input_date.Location = new System.Drawing.Point(449, 8); this.input_date.Name = "input_date"; this.input_date.Size = new System.Drawing.Size(91, 21); this.input_date.TabIndex = 220; this.input_date.ValueChanged += new System.EventHandler(this.input_date_ValueChanged); // + // pictureBox1 + // + this.pictureBox1.Location = new System.Drawing.Point(1075, 89); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(176, 226); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 221; + this.pictureBox1.TabStop = false; + // + // list_idx + // + this.list_idx.HeaderText = "list_idx"; + this.list_idx.Name = "list_idx"; + this.list_idx.ReadOnly = true; + this.list_idx.Visible = false; + this.list_idx.Width = 30; + // + // ISBN13 + // + this.ISBN13.HeaderText = "ISBN13"; + this.ISBN13.Name = "ISBN13"; + this.ISBN13.ReadOnly = true; + // + // book_name + // + this.book_name.HeaderText = "도서명"; + this.book_name.Name = "book_name"; + this.book_name.ReadOnly = true; + // + // author + // + this.author.HeaderText = "저자"; + this.author.Name = "author"; + this.author.ReadOnly = true; + this.author.Width = 50; + // + // book_comp + // + this.book_comp.HeaderText = "출판사"; + this.book_comp.Name = "book_comp"; + this.book_comp.ReadOnly = true; + this.book_comp.Width = 50; + // + // pay + // + this.pay.HeaderText = "정가"; + this.pay.Name = "pay"; + this.pay.ReadOnly = true; + this.pay.Width = 50; + // + // url + // + this.url.HeaderText = "url"; + this.url.Name = "url"; + this.url.ReadOnly = true; + this.url.Visible = false; + // + // marc_idx + // + this.marc_idx.HeaderText = "marc_idx"; + this.marc_idx.Name = "marc_idx"; + this.marc_idx.ReadOnly = true; + this.marc_idx.Visible = false; + this.marc_idx.Width = 30; + // + // db_marc + // + this.db_marc.HeaderText = "marc"; + this.db_marc.Name = "db_marc"; + this.db_marc.ReadOnly = true; + this.db_marc.Visible = false; + // + // grade + // + this.grade.HeaderText = "등급"; + this.grade.Name = "grade"; + this.grade.ReadOnly = true; + this.grade.Visible = false; + // // Marc // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1316, 753); + this.ClientSize = new System.Drawing.Size(1322, 753); + this.Controls.Add(this.pictureBox1); this.Controls.Add(this.input_date); this.Controls.Add(this.panel3); this.Controls.Add(this.panel2); @@ -1477,6 +1498,7 @@ this.panel2.PerformLayout(); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -1608,12 +1630,14 @@ private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Button btn_close; private System.Windows.Forms.DateTimePicker input_date; + private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.DataGridViewTextBoxColumn list_idx; private System.Windows.Forms.DataGridViewTextBoxColumn ISBN13; private System.Windows.Forms.DataGridViewTextBoxColumn book_name; private System.Windows.Forms.DataGridViewTextBoxColumn author; private System.Windows.Forms.DataGridViewTextBoxColumn book_comp; private System.Windows.Forms.DataGridViewTextBoxColumn pay; + private System.Windows.Forms.DataGridViewTextBoxColumn url; private System.Windows.Forms.DataGridViewTextBoxColumn marc_idx; private System.Windows.Forms.DataGridViewTextBoxColumn db_marc; private System.Windows.Forms.DataGridViewTextBoxColumn grade; diff --git a/unimarc/WindowsFormsApp1/마크/Marc.resx b/unimarc/WindowsFormsApp1/마크/Marc.resx index e0e778e..1658798 100644 --- a/unimarc/WindowsFormsApp1/마크/Marc.resx +++ b/unimarc/WindowsFormsApp1/마크/Marc.resx @@ -291,6 +291,9 @@ True + + True + True diff --git a/unimarc/WindowsFormsApp1/마크/Search_Infor.Designer.cs b/unimarc/WindowsFormsApp1/마크/Search_Infor.Designer.cs index 84e25b3..b5948f2 100644 --- a/unimarc/WindowsFormsApp1/마크/Search_Infor.Designer.cs +++ b/unimarc/WindowsFormsApp1/마크/Search_Infor.Designer.cs @@ -28,22 +28,24 @@ /// private void InitializeComponent() { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.label1 = new System.Windows.Forms.Label(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); - this.button3 = new System.Windows.Forms.Button(); - this.button4 = new System.Windows.Forms.Button(); - this.label2 = new System.Windows.Forms.Label(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.button5 = new System.Windows.Forms.Button(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); - this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.label2 = new System.Windows.Forms.Label(); + this.tb_search = new System.Windows.Forms.TextBox(); + this.btn_search = new System.Windows.Forms.Button(); + this.cb_filter = new System.Windows.Forms.ComboBox(); + this.btn_close = new System.Windows.Forms.Button(); + this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.price = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.pub_date = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.etc1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.etc2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.SuspendLayout(); // @@ -52,141 +54,161 @@ this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(12, 11); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.Size = new System.Drawing.Size(53, 12); this.label1.TabIndex = 5; - this.label1.Text = "검색어"; + this.label1.Text = "검색필터"; // - // textBox1 + // dataGridView1 // - this.textBox1.Location = new System.Drawing.Point(59, 7); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(160, 21); - this.textBox1.TabIndex = 6; - // - // button1 - // - this.button1.Location = new System.Drawing.Point(225, 6); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 7; - this.button1.Text = "검 색"; - this.button1.UseVisualStyleBackColor = true; - // - // button2 - // - this.button2.Location = new System.Drawing.Point(306, 6); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 23); - this.button2.TabIndex = 7; - this.button2.Text = "상세검색"; - this.button2.UseVisualStyleBackColor = true; - // - // button3 - // - this.button3.Location = new System.Drawing.Point(401, 6); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(75, 23); - this.button3.TabIndex = 8; - this.button3.Text = "Excel..."; - this.button3.UseVisualStyleBackColor = true; - // - // button4 - // - this.button4.Location = new System.Drawing.Point(497, 6); - this.button4.Name = "button4"; - this.button4.Size = new System.Drawing.Size(75, 23); - this.button4.TabIndex = 7; - this.button4.Text = "파 일"; - this.button4.UseVisualStyleBackColor = true; + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = false; + 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.False; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.grade, + this.ISBN, + this.book_name, + this.author, + this.book_comp, + this.price, + this.pub_date, + this.etc1, + this.etc2, + this.Marc}); + this.dataGridView1.Location = new System.Drawing.Point(12, 35); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 20; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.Size = new System.Drawing.Size(1234, 619); + this.dataGridView1.TabIndex = 49; + this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(578, 11); + this.label2.Location = new System.Drawing.Point(271, 11); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.Size = new System.Drawing.Size(41, 12); this.label2.TabIndex = 5; - this.label2.Text = "검색태그"; + this.label2.Text = "검색어"; // - // textBox2 + // tb_search // - this.textBox2.Location = new System.Drawing.Point(632, 7); - this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(120, 21); - this.textBox2.TabIndex = 6; + this.tb_search.Location = new System.Drawing.Point(318, 7); + this.tb_search.Name = "tb_search"; + this.tb_search.Size = new System.Drawing.Size(222, 21); + this.tb_search.TabIndex = 6; + this.tb_search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown); // - // button5 + // btn_search // - this.button5.Location = new System.Drawing.Point(758, 5); - this.button5.Name = "button5"; - this.button5.Size = new System.Drawing.Size(75, 23); - this.button5.TabIndex = 7; - this.button5.Text = "구분적용"; - this.button5.UseVisualStyleBackColor = true; + this.btn_search.Location = new System.Drawing.Point(551, 6); + this.btn_search.Name = "btn_search"; + this.btn_search.Size = new System.Drawing.Size(75, 23); + this.btn_search.TabIndex = 7; + this.btn_search.Text = "검 색"; + this.btn_search.UseVisualStyleBackColor = true; + this.btn_search.Click += new System.EventHandler(this.btn_search_Click); // - // dataGridView1 + // cb_filter // - this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.Column1, - this.Column2, - this.Column3, - this.Column4, - this.Column5, - this.Column6}); - this.dataGridView1.Location = new System.Drawing.Point(14, 36); - this.dataGridView1.Name = "dataGridView1"; - this.dataGridView1.RowTemplate.Height = 23; - this.dataGridView1.Size = new System.Drawing.Size(819, 617); - this.dataGridView1.TabIndex = 49; + this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_filter.FormattingEnabled = true; + this.cb_filter.Location = new System.Drawing.Point(71, 7); + this.cb_filter.Name = "cb_filter"; + this.cb_filter.Size = new System.Drawing.Size(161, 20); + this.cb_filter.TabIndex = 50; // - // Column1 + // btn_close // - this.Column1.HeaderText = "총서명"; - this.Column1.Name = "Column1"; + this.btn_close.Location = new System.Drawing.Point(639, 6); + this.btn_close.Name = "btn_close"; + this.btn_close.Size = new System.Drawing.Size(75, 23); + this.btn_close.TabIndex = 51; + this.btn_close.Text = "닫 기"; + this.btn_close.UseVisualStyleBackColor = true; + this.btn_close.Click += new System.EventHandler(this.btn_close_Click); // - // Column2 + // grade // - this.Column2.HeaderText = "저자"; - this.Column2.Name = "Column2"; + this.grade.HeaderText = "등급"; + this.grade.Name = "grade"; + this.grade.Width = 50; // - // Column3 + // ISBN // - this.Column3.HeaderText = "출판사"; - this.Column3.Name = "Column3"; + this.ISBN.HeaderText = "ISBN"; + this.ISBN.Name = "ISBN"; // - // Column4 + // book_name // - this.Column4.HeaderText = "정가"; - this.Column4.Name = "Column4"; + this.book_name.HeaderText = "도서명"; + this.book_name.Name = "book_name"; + this.book_name.Width = 250; // - // Column5 + // author // - this.Column5.HeaderText = "발행일"; - this.Column5.Name = "Column5"; + this.author.HeaderText = "저자"; + this.author.Name = "author"; + this.author.Width = 130; // - // Column6 + // book_comp // - this.Column6.HeaderText = "구분"; - this.Column6.Name = "Column6"; + this.book_comp.HeaderText = "출판사"; + this.book_comp.Name = "book_comp"; + this.book_comp.Width = 200; + // + // price + // + this.price.HeaderText = "정가"; + this.price.Name = "price"; + this.price.Width = 80; + // + // pub_date + // + this.pub_date.HeaderText = "출판년월"; + this.pub_date.Name = "pub_date"; + // + // etc1 + // + this.etc1.HeaderText = "비고1"; + this.etc1.Name = "etc1"; + this.etc1.Width = 140; + // + // etc2 + // + this.etc2.HeaderText = "비고2"; + this.etc2.Name = "etc2"; + this.etc2.Width = 140; + // + // Marc + // + this.Marc.HeaderText = "marc"; + this.Marc.Name = "Marc"; + this.Marc.Visible = false; // // Search_Infor // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(868, 733); + this.ClientSize = new System.Drawing.Size(1258, 666); + this.Controls.Add(this.btn_close); + this.Controls.Add(this.cb_filter); this.Controls.Add(this.dataGridView1); - this.Controls.Add(this.button3); - this.Controls.Add(this.button2); - this.Controls.Add(this.button5); - this.Controls.Add(this.button4); - this.Controls.Add(this.button1); - this.Controls.Add(this.textBox2); + this.Controls.Add(this.btn_search); + this.Controls.Add(this.tb_search); this.Controls.Add(this.label2); - this.Controls.Add(this.textBox1); this.Controls.Add(this.label1); this.Name = "Search_Infor"; this.Text = "소장자료검색"; + this.Load += new System.EventHandler(this.Search_Infor_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -196,20 +218,21 @@ #endregion private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Button button3; - private System.Windows.Forms.Button button4; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.Button button5; private System.Windows.Forms.DataGridView dataGridView1; - private System.Windows.Forms.DataGridViewTextBoxColumn Column1; - private System.Windows.Forms.DataGridViewTextBoxColumn Column2; - private System.Windows.Forms.DataGridViewTextBoxColumn Column3; - private System.Windows.Forms.DataGridViewTextBoxColumn Column4; - private System.Windows.Forms.DataGridViewTextBoxColumn Column5; - private System.Windows.Forms.DataGridViewTextBoxColumn Column6; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox tb_search; + private System.Windows.Forms.Button btn_search; + private System.Windows.Forms.ComboBox cb_filter; + private System.Windows.Forms.Button btn_close; + private System.Windows.Forms.DataGridViewTextBoxColumn grade; + private System.Windows.Forms.DataGridViewTextBoxColumn ISBN; + private System.Windows.Forms.DataGridViewTextBoxColumn book_name; + private System.Windows.Forms.DataGridViewTextBoxColumn author; + private System.Windows.Forms.DataGridViewTextBoxColumn book_comp; + private System.Windows.Forms.DataGridViewTextBoxColumn price; + private System.Windows.Forms.DataGridViewTextBoxColumn pub_date; + private System.Windows.Forms.DataGridViewTextBoxColumn etc1; + private System.Windows.Forms.DataGridViewTextBoxColumn etc2; + private System.Windows.Forms.DataGridViewTextBoxColumn Marc; } } \ No newline at end of file diff --git a/unimarc/WindowsFormsApp1/마크/Search_Infor.cs b/unimarc/WindowsFormsApp1/마크/Search_Infor.cs index f33c7a0..1b1850d 100644 --- a/unimarc/WindowsFormsApp1/마크/Search_Infor.cs +++ b/unimarc/WindowsFormsApp1/마크/Search_Infor.cs @@ -7,16 +7,109 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using WindowsFormsApp1.마크; namespace WindowsFormsApp1.Mac { public partial class Search_Infor : Form { Main main; + Helper_DB db = new Helper_DB(); + public string compidx; public Search_Infor(Main _main) { InitializeComponent(); main = _main; + compidx = main.com_idx; + } + private void Search_Infor_Load(object sender, EventArgs e) + { + db.DBcon(); + + string[] filter = { "도서명", "저자", "출판사", "ISBN" }; + cb_filter.Items.AddRange(filter); + cb_filter.SelectedIndex = 0; + + for(int a= 0; a < dataGridView1.Columns.Count; a++) + { + if (a != 7 && a != 8) + dataGridView1.Columns[a].ReadOnly = true; + } + } + private void btn_search_Click(object sender, EventArgs e) + { + string target = string.Empty; + string Area = "`grade`, `ISBN`, `서명`, `저자`, `출판사`, `출판년월`, `가격`, `비고1`, `비고2`, `marc`"; + if (cb_filter.SelectedIndex == -1) { + MessageBox.Show("검색필터를 선택해주세요!"); + cb_filter.Focus(); + return; + } + if (cb_filter.SelectedItem.ToString() == "도서명") { target = "서명"; } + else { target = cb_filter.SelectedItem.ToString(); } + + string tmp_data = db.DB_Contains("Marc", compidx, target, tb_search.Text, Area); + string[] tmp_arr = tmp_data.Split('|'); + input_grid(tmp_arr); + } + void input_grid(string[] arr) + { + string[] grid = { "", "", "", "", "", + "", "", "", "", "" }; + for(int a = 0; a < arr.Length; a++) + { + if (a % 10 == 0) grid[0] = Change_Grade(arr[a]); + if (a % 10 == 1) grid[1] = arr[a]; + if (a % 10 == 2) grid[2] = arr[a]; + if (a % 10 == 3) grid[3] = arr[a]; + if (a % 10 == 4) grid[4] = arr[a]; + if (a % 10 == 5) grid[5] = arr[a]; + if (a % 10 == 6) grid[6] = arr[a]; + if (a % 10 == 7) grid[7] = arr[a]; + if (a % 10 == 8) grid[8] = arr[a]; + if (a % 10 == 9) { + grid[9] = arr[a]; + dataGridView1.Rows.Add(grid); + } + } + } + string Change_Grade(string idx) + { + string result = string.Empty; + switch (idx) + { + case "0": + result = "D"; + break; + case "1": + result = "C"; + break; + case "2": + result = "B"; + break; + case "3": + result = "A"; + break; + default: + result = "null"; + break; + } + return result; + } + private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + int row = e.RowIndex; + int col = e.ColumnIndex; + + Search_Infor_Sub sis = new Search_Infor_Sub(); + } + private void tb_search_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) { btn_search_Click(null, null); } + } + private void btn_close_Click(object sender, EventArgs e) + { + this.Close(); } } } diff --git a/unimarc/WindowsFormsApp1/마크/Search_Infor.resx b/unimarc/WindowsFormsApp1/마크/Search_Infor.resx index b851021..d816ec4 100644 --- a/unimarc/WindowsFormsApp1/마크/Search_Infor.resx +++ b/unimarc/WindowsFormsApp1/마크/Search_Infor.resx @@ -117,22 +117,34 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + True - + True - + True - + True - + True - + + True + + + True + + + True + + + True + + True \ No newline at end of file diff --git a/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.Designer.cs b/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.Designer.cs new file mode 100644 index 0000000..1865c2a --- /dev/null +++ b/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.Designer.cs @@ -0,0 +1,246 @@ + +namespace WindowsFormsApp1.마크 +{ + partial class Search_Infor_Sub + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.label2 = new System.Windows.Forms.Label(); + this.comboBox3 = new System.Windows.Forms.ComboBox(); + this.label3 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.comboBox4 = new System.Windows.Forms.ComboBox(); + this.label5 = new System.Windows.Forms.Label(); + this.comboBox5 = new System.Windows.Forms.ComboBox(); + this.label6 = new System.Windows.Forms.Label(); + this.comboBox6 = new System.Windows.Forms.ComboBox(); + this.label7 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.panel1.SuspendLayout(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.Location = new System.Drawing.Point(13, 13); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(161, 222); + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // richTextBox1 + // + this.richTextBox1.Location = new System.Drawing.Point(13, 241); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(1169, 310); + this.richTextBox1.TabIndex = 1; + this.richTextBox1.Text = ""; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(9, 7); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 2; + this.label1.Text = "이용자"; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(9, 22); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(121, 20); + this.comboBox1.TabIndex = 3; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.SystemColors.ActiveCaption; + this.panel1.Controls.Add(this.textBox1); + this.panel1.Controls.Add(this.label3); + this.panel1.Controls.Add(this.label7); + this.panel1.Controls.Add(this.label6); + this.panel1.Controls.Add(this.label5); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this.comboBox6); + this.panel1.Controls.Add(this.label4); + this.panel1.Controls.Add(this.comboBox5); + this.panel1.Controls.Add(this.label1); + this.panel1.Controls.Add(this.comboBox4); + this.panel1.Controls.Add(this.comboBox3); + this.panel1.Controls.Add(this.comboBox2); + this.panel1.Controls.Add(this.comboBox1); + this.panel1.Location = new System.Drawing.Point(180, 13); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(499, 94); + this.panel1.TabIndex = 4; + // + // comboBox2 + // + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(144, 22); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(166, 20); + this.comboBox2.TabIndex = 3; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(144, 7); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 2; + this.label2.Text = "자료형식"; + // + // comboBox3 + // + this.comboBox3.FormattingEnabled = true; + this.comboBox3.Location = new System.Drawing.Point(322, 22); + this.comboBox3.Name = "comboBox3"; + this.comboBox3.Size = new System.Drawing.Size(166, 20); + this.comboBox3.TabIndex = 3; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(322, 7); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 2; + this.label3.Text = "내용형식"; + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(9, 68); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(121, 21); + this.textBox1.TabIndex = 4; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(9, 53); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(29, 12); + this.label4.TabIndex = 2; + this.label4.Text = "대학"; + // + // comboBox4 + // + this.comboBox4.FormattingEnabled = true; + this.comboBox4.Location = new System.Drawing.Point(142, 68); + this.comboBox4.Name = "comboBox4"; + this.comboBox4.Size = new System.Drawing.Size(102, 20); + this.comboBox4.TabIndex = 3; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(142, 53); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(53, 12); + this.label5.TabIndex = 2; + this.label5.Text = "문학형식"; + // + // comboBox5 + // + this.comboBox5.FormattingEnabled = true; + this.comboBox5.Location = new System.Drawing.Point(260, 68); + this.comboBox5.Name = "comboBox5"; + this.comboBox5.Size = new System.Drawing.Size(102, 20); + this.comboBox5.TabIndex = 3; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(260, 53); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(29, 12); + this.label6.TabIndex = 2; + this.label6.Text = "전기"; + // + // comboBox6 + // + this.comboBox6.FormattingEnabled = true; + this.comboBox6.Location = new System.Drawing.Point(374, 68); + this.comboBox6.Name = "comboBox6"; + this.comboBox6.Size = new System.Drawing.Size(114, 20); + this.comboBox6.TabIndex = 3; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(374, 53); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(29, 12); + this.label7.TabIndex = 2; + this.label7.Text = "언어"; + // + // Search_Infor_Sub + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1194, 683); + this.Controls.Add(this.panel1); + this.Controls.Add(this.richTextBox1); + this.Controls.Add(this.pictureBox1); + this.Name = "Search_Infor_Sub"; + this.Text = "Search_Infor_Sub"; + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.ComboBox comboBox6; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.ComboBox comboBox5; + private System.Windows.Forms.ComboBox comboBox4; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.ComboBox comboBox2; + } +} \ No newline at end of file diff --git a/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.cs b/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.cs new file mode 100644 index 0000000..221fa16 --- /dev/null +++ b/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1.마크 +{ + public partial class Search_Infor_Sub : Form + { + public Search_Infor_Sub() + { + InitializeComponent(); + } + } +} diff --git a/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.resx b/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/unimarc/WindowsFormsApp1/마크/Search_Infor_Sub.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file