From 77ef720197859c148e8493e0da8b3976cd8655c0 Mon Sep 17 00:00:00 2001 From: LGram16 Date: Thu, 19 Feb 2026 18:28:22 +0900 Subject: [PATCH] .. --- unimarc/unimarc/Helper_DB.cs | 26 + unimarc/unimarc/Main.Designer.cs | 42 +- unimarc/unimarc/Main.cs | 5 + unimarc/unimarc/UniMarc.csproj | 10 + unimarc/unimarc/UniMarc.csproj.user | 2 +- unimarc/unimarc/마크/Mac_List.Designer.cs | 210 ++--- unimarc/unimarc/마크/Mac_List.resx | 11 +- unimarc/unimarc/마크/Marc2.cs | 3 +- .../마크/MarcEditorControl.Designer.cs | 99 +- unimarc/unimarc/마크/MarcEditorControl.cs | 90 +- .../unimarc/마크/Marc_Plan_Sub_MarcEdit2.cs | 24 +- unimarc/unimarc/마크/SearchInforItem.cs | 23 + unimarc/unimarc/마크/Search_Infor.Designer.cs | 18 +- unimarc/unimarc/마크/Search_Infor.cs | 25 +- .../unimarc/마크/Search_Infor2.Designer.cs | 866 ++++++++++++++++++ unimarc/unimarc/마크/Search_Infor2.cs | 695 ++++++++++++++ unimarc/unimarc/마크/Search_Infor2.resx | 215 +++++ unimarc/unimarc/마크/Zoom_Picture.cs | 2 + 18 files changed, 2173 insertions(+), 193 deletions(-) create mode 100644 unimarc/unimarc/마크/SearchInforItem.cs create mode 100644 unimarc/unimarc/마크/Search_Infor2.Designer.cs create mode 100644 unimarc/unimarc/마크/Search_Infor2.cs create mode 100644 unimarc/unimarc/마크/Search_Infor2.resx diff --git a/unimarc/unimarc/Helper_DB.cs b/unimarc/unimarc/Helper_DB.cs index d9a89eb..39d2ba8 100644 --- a/unimarc/unimarc/Helper_DB.cs +++ b/unimarc/unimarc/Helper_DB.cs @@ -269,6 +269,32 @@ namespace UniMarc conn.Close(); return result; } + + public DataTable DB_Send_CMD_Search_DataTable(string cmd) + { + DataTable dt = new DataTable(); + try + { + if (conn.State == ConnectionState.Closed) + conn.Open(); + + using (MySqlDataAdapter adapter = new MySqlDataAdapter(cmd, conn)) + { + adapter.Fill(dt); + } + } + catch (Exception ex) + { + UTIL.MsgE($"데이터베이스 실행오류\n{ex.Message}"); + return null; + } + finally + { + if (conn.State == ConnectionState.Open) + conn.Close(); + } + return dt; + } public void DB_Send_CMD_Search_ApplyGrid(string cmd, DataGridView dgv) { // DB 연결 diff --git a/unimarc/unimarc/Main.Designer.cs b/unimarc/unimarc/Main.Designer.cs index a5057da..8cc7c6c 100644 --- a/unimarc/unimarc/Main.Designer.cs +++ b/unimarc/unimarc/Main.Designer.cs @@ -140,6 +140,7 @@ this.mdiTabControl = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage(); + this.소장자료검색NewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1.SuspendLayout(); this.panel1.SuspendLayout(); this.toolStrip1.SuspendLayout(); @@ -307,14 +308,14 @@ // 송금내역조회 // this.송금내역조회.Name = "송금내역조회"; - this.송금내역조회.Size = new System.Drawing.Size(154, 22); + this.송금내역조회.Size = new System.Drawing.Size(180, 22); this.송금내역조회.Text = "송금 내역 조회"; this.송금내역조회.Click += new System.EventHandler(this.송금내역조회ToolStripMenuItem_Click); // // 송금등록 // this.송금등록.Name = "송금등록"; - this.송금등록.Size = new System.Drawing.Size(154, 22); + this.송금등록.Size = new System.Drawing.Size(180, 22); this.송금등록.Text = "송금 등록"; this.송금등록.Click += new System.EventHandler(this.송금등록ToolStripMenuItem_Click); // @@ -325,7 +326,7 @@ this.매입장부, this.매입미결제ToolStripMenuItem}); this.매입.Name = "매입"; - this.매입.Size = new System.Drawing.Size(154, 22); + this.매입.Size = new System.Drawing.Size(180, 22); this.매입.Text = "매입"; // // 매입집계 @@ -358,7 +359,7 @@ this.매출조회, this.매출집계}); this.매출.Name = "매출"; - this.매출.Size = new System.Drawing.Size(154, 22); + this.매출.Size = new System.Drawing.Size(180, 22); this.매출.Text = "매출"; // // 매출입력 @@ -392,7 +393,7 @@ // 파트타임관리 // this.파트타임관리.Name = "파트타임관리"; - this.파트타임관리.Size = new System.Drawing.Size(154, 22); + this.파트타임관리.Size = new System.Drawing.Size(180, 22); this.파트타임관리.Text = "파트타임 관리"; this.파트타임관리.Click += new System.EventHandler(this.파트타임관리ToolStripMenuItem_Click); // @@ -418,13 +419,13 @@ this.불용어, this.작업지시서}); this.마크설정.Name = "마크설정"; - this.마크설정.Size = new System.Drawing.Size(156, 22); + this.마크설정.Size = new System.Drawing.Size(180, 22); this.마크설정.Text = "설정"; // // 단축키설정 // this.단축키설정.Name = "단축키설정"; - this.단축키설정.Size = new System.Drawing.Size(138, 22); + this.단축키설정.Size = new System.Drawing.Size(180, 22); this.단축키설정.Text = "단축키"; this.단축키설정.Visible = false; this.단축키설정.Click += new System.EventHandler(this.단축키설정ToolStripMenuItem_Click); @@ -432,14 +433,14 @@ // 매크로문구 // this.매크로문구.Name = "매크로문구"; - this.매크로문구.Size = new System.Drawing.Size(138, 22); + this.매크로문구.Size = new System.Drawing.Size(180, 22); this.매크로문구.Text = "매크로 문구"; this.매크로문구.Click += new System.EventHandler(this.매크로문구설정ToolStripMenuItem_Click); // // 불용어 // this.불용어.Name = "불용어"; - this.불용어.Size = new System.Drawing.Size(138, 22); + this.불용어.Size = new System.Drawing.Size(180, 22); this.불용어.Text = "불용어"; this.불용어.Visible = false; this.불용어.Click += new System.EventHandler(this.불용어ToolStripMenuItem_Click); @@ -447,7 +448,7 @@ // 작업지시서 // this.작업지시서.Name = "작업지시서"; - this.작업지시서.Size = new System.Drawing.Size(138, 22); + this.작업지시서.Size = new System.Drawing.Size(180, 22); this.작업지시서.Text = "작업지시서"; this.작업지시서.Visible = false; this.작업지시서.Click += new System.EventHandler(this.작업지시서ToolStripMenuItem_Click); @@ -459,12 +460,13 @@ this.신규마크작성NewToolStripMenuItem, this.마크목록, this.소장자료검색, + this.소장자료검색NewToolStripMenuItem, this.마크정리, this.복본조사1, this.복본조사2, this.iSBN조회}); this.마크작업.Name = "마크작업"; - this.마크작업.Size = new System.Drawing.Size(156, 22); + this.마크작업.Size = new System.Drawing.Size(180, 22); this.마크작업.Text = "마크 작업"; // // 마크작성 @@ -530,7 +532,7 @@ this.목록, this.편목}); this.dVDCDLPToolStripMenuItem.Name = "dVDCDLPToolStripMenuItem"; - this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(156, 22); + this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.dVDCDLPToolStripMenuItem.Text = "DVD / CD / LP"; // // 목록 @@ -554,7 +556,7 @@ this.마크반입, this.마크반출}); this.반입및반출.Name = "반입및반출"; - this.반입및반출.Size = new System.Drawing.Size(156, 22); + this.반입및반출.Size = new System.Drawing.Size(180, 22); this.반입및반출.Text = "반입 및 반출"; // // 마크반입 @@ -579,7 +581,7 @@ this.검수, this.저자기호}); this.부가기능.Name = "부가기능"; - this.부가기능.Size = new System.Drawing.Size(156, 22); + this.부가기능.Size = new System.Drawing.Size(180, 22); this.부가기능.Text = "부가기능"; // // 마크수집 @@ -620,7 +622,7 @@ this.DLS조회, this.dLS복본조사}); this.DLS.Name = "DLS"; - this.DLS.Size = new System.Drawing.Size(156, 22); + this.DLS.Size = new System.Drawing.Size(180, 22); this.DLS.Text = "DLS"; // // DLS조회 @@ -644,7 +646,7 @@ this.마크통계, this.장비관리}); this.마크기타.Name = "마크기타"; - this.마크기타.Size = new System.Drawing.Size(156, 22); + this.마크기타.Size = new System.Drawing.Size(180, 22); this.마크기타.Text = "기타"; // // 서류작성 @@ -1142,6 +1144,13 @@ this.tabPage2.Text = "tabPage2"; this.tabPage2.UseVisualStyleBackColor = true; // + // 소장자료검색NewToolStripMenuItem + // + this.소장자료검색NewToolStripMenuItem.Name = "소장자료검색NewToolStripMenuItem"; + this.소장자료검색NewToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.소장자료검색NewToolStripMenuItem.Text = "소장자료검색(New)"; + this.소장자료검색NewToolStripMenuItem.Click += new System.EventHandler(this.소장자료검색NewToolStripMenuItem_Click); + // // Main // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -1283,5 +1292,6 @@ private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.ToolStripMenuItem menu_allclose; private System.Windows.Forms.ToolStripMenuItem 신규마크작성NewToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 소장자료검색NewToolStripMenuItem; } } \ No newline at end of file diff --git a/unimarc/unimarc/Main.cs b/unimarc/unimarc/Main.cs index 419c4e5..9e88485 100644 --- a/unimarc/unimarc/Main.cs +++ b/unimarc/unimarc/Main.cs @@ -883,5 +883,10 @@ namespace UniMarc { OpenFormInTab(() => new AddMarc2(this)); } + + private void 소장자료검색NewToolStripMenuItem_Click(object sender, EventArgs e) + { + OpenFormInTab(() => new Search_Infor2(this)); + } } } \ No newline at end of file diff --git a/unimarc/unimarc/UniMarc.csproj b/unimarc/unimarc/UniMarc.csproj index b783cfd..e51f2b1 100644 --- a/unimarc/unimarc/UniMarc.csproj +++ b/unimarc/unimarc/UniMarc.csproj @@ -637,6 +637,13 @@ Marc_memo.cs + + + Form + + + Search_Infor2.cs + Form @@ -1277,6 +1284,9 @@ Marc_memo.cs + + Search_Infor2.cs + Search_Infor_Sub.cs diff --git a/unimarc/unimarc/UniMarc.csproj.user b/unimarc/unimarc/UniMarc.csproj.user index f0d6d75..a66c462 100644 --- a/unimarc/unimarc/UniMarc.csproj.user +++ b/unimarc/unimarc/UniMarc.csproj.user @@ -9,7 +9,7 @@ ko-KR false - ShowAllFiles + ProjectFiles false diff --git a/unimarc/unimarc/마크/Mac_List.Designer.cs b/unimarc/unimarc/마크/Mac_List.Designer.cs index ee07725..d91194f 100644 --- a/unimarc/unimarc/마크/Mac_List.Designer.cs +++ b/unimarc/unimarc/마크/Mac_List.Designer.cs @@ -29,8 +29,8 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = 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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Mac_List)); this.label1 = new System.Windows.Forms.Label(); this.tb_Search = new System.Windows.Forms.TextBox(); @@ -62,12 +62,14 @@ this.btn_Delete = new System.Windows.Forms.Button(); this.btn_AddList = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel(); + this.panel11 = new System.Windows.Forms.Panel(); + this.button2 = new System.Windows.Forms.Button(); + this.btnSearchISBN = new System.Windows.Forms.Button(); + this.panel10 = new System.Windows.Forms.Panel(); + this.button1 = new System.Windows.Forms.Button(); this.panel12 = new System.Windows.Forms.Panel(); this.chkEditorTest = new System.Windows.Forms.CheckBox(); this.panel13 = new System.Windows.Forms.Panel(); - this.panel11 = new System.Windows.Forms.Panel(); - this.btnSearchISBN = new System.Windows.Forms.Button(); - this.panel10 = new System.Windows.Forms.Panel(); this.panel9 = new System.Windows.Forms.Panel(); this.panel8 = new System.Windows.Forms.Panel(); this.panel7 = new System.Windows.Forms.Panel(); @@ -77,19 +79,17 @@ this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.bn1 = new System.Windows.Forms.BindingNavigator(this.components); + this.bs1 = new System.Windows.Forms.BindingSource(this.components); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.button1 = new System.Windows.Forms.Button(); - this.bs1 = new System.Windows.Forms.BindingSource(this.components); - this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); - this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.btEdit = new System.Windows.Forms.ToolStripButton(); - this.button2 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); @@ -125,14 +125,14 @@ this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.idx, @@ -149,14 +149,14 @@ this.charge, this.dvc_cust, this.check}); - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle8; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2; this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridView1.Location = new System.Drawing.Point(0, 0); this.dataGridView1.MultiSelect = false; @@ -453,6 +453,61 @@ this.panel1.Size = new System.Drawing.Size(1638, 34); this.panel1.TabIndex = 52; // + // panel11 + // + this.panel11.Dock = System.Windows.Forms.DockStyle.Right; + this.panel11.Location = new System.Drawing.Point(696, 5); + this.panel11.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.panel11.Name = "panel11"; + this.panel11.Size = new System.Drawing.Size(8, 27); + this.panel11.TabIndex = 61; + // + // button2 + // + this.button2.Dock = System.Windows.Forms.DockStyle.Right; + this.button2.Location = new System.Drawing.Point(704, 5); + this.button2.Margin = new System.Windows.Forms.Padding(1); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(74, 27); + this.button2.TabIndex = 65; + this.button2.Text = "ISBN조회"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // btnSearchISBN + // + this.btnSearchISBN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); + this.btnSearchISBN.Dock = System.Windows.Forms.DockStyle.Right; + this.btnSearchISBN.Location = new System.Drawing.Point(778, 5); + this.btnSearchISBN.Margin = new System.Windows.Forms.Padding(1); + this.btnSearchISBN.Name = "btnSearchISBN"; + this.btnSearchISBN.Size = new System.Drawing.Size(94, 27); + this.btnSearchISBN.TabIndex = 50; + this.btnSearchISBN.Text = "ISBN조회(구)"; + this.btnSearchISBN.UseVisualStyleBackColor = false; + this.btnSearchISBN.Click += new System.EventHandler(this.btnSearchISBN_Click); + // + // panel10 + // + this.panel10.Dock = System.Windows.Forms.DockStyle.Right; + this.panel10.Location = new System.Drawing.Point(872, 5); + this.panel10.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.panel10.Name = "panel10"; + this.panel10.Size = new System.Drawing.Size(8, 27); + this.panel10.TabIndex = 60; + // + // button1 + // + this.button1.Dock = System.Windows.Forms.DockStyle.Right; + this.button1.Location = new System.Drawing.Point(880, 5); + this.button1.Margin = new System.Windows.Forms.Padding(1); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(74, 27); + this.button1.TabIndex = 64; + this.button1.Text = "목록등록"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // // panel12 // this.panel12.Dock = System.Windows.Forms.DockStyle.Left; @@ -485,37 +540,6 @@ this.panel13.Size = new System.Drawing.Size(8, 27); this.panel13.TabIndex = 63; // - // panel11 - // - this.panel11.Dock = System.Windows.Forms.DockStyle.Right; - this.panel11.Location = new System.Drawing.Point(696, 5); - this.panel11.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.panel11.Name = "panel11"; - this.panel11.Size = new System.Drawing.Size(8, 27); - this.panel11.TabIndex = 61; - // - // btnSearchISBN - // - this.btnSearchISBN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); - this.btnSearchISBN.Dock = System.Windows.Forms.DockStyle.Right; - this.btnSearchISBN.Location = new System.Drawing.Point(778, 5); - this.btnSearchISBN.Margin = new System.Windows.Forms.Padding(1); - this.btnSearchISBN.Name = "btnSearchISBN"; - this.btnSearchISBN.Size = new System.Drawing.Size(94, 27); - this.btnSearchISBN.TabIndex = 50; - this.btnSearchISBN.Text = "ISBN조회(구)"; - this.btnSearchISBN.UseVisualStyleBackColor = false; - this.btnSearchISBN.Click += new System.EventHandler(this.btnSearchISBN_Click); - // - // panel10 - // - this.panel10.Dock = System.Windows.Forms.DockStyle.Right; - this.panel10.Location = new System.Drawing.Point(872, 5); - this.panel10.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - this.panel10.Name = "panel10"; - this.panel10.Size = new System.Drawing.Size(8, 27); - this.panel10.TabIndex = 60; - // // panel9 // this.panel9.Dock = System.Windows.Forms.DockStyle.Right; @@ -626,6 +650,24 @@ this.bindingNavigatorCountItem.Text = "/{0}"; this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // // bindingNavigatorSeparator // this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; @@ -646,41 +688,6 @@ this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 27); // - // bindingNavigatorSeparator2 - // - this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; - this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 27); - // - // button1 - // - this.button1.Dock = System.Windows.Forms.DockStyle.Right; - this.button1.Location = new System.Drawing.Point(880, 5); - this.button1.Margin = new System.Windows.Forms.Padding(1); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(74, 27); - this.button1.TabIndex = 64; - this.button1.Text = "목록등록"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // bindingNavigatorMoveFirstItem - // - this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); - this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; - this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; - this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24); - this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; - // - // bindingNavigatorMovePreviousItem - // - this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); - this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; - this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; - this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24); - this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; - // // bindingNavigatorMoveNextItem // this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; @@ -699,6 +706,11 @@ this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(24, 24); this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 27); + // // btEdit // this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image"))); @@ -708,18 +720,6 @@ this.btEdit.Text = "정보편집(&E)"; this.btEdit.Click += new System.EventHandler(this.btEdit_Click); // - // button2 - // - this.button2.Dock = System.Windows.Forms.DockStyle.Right; - this.button2.Location = new System.Drawing.Point(704, 5); - this.button2.Margin = new System.Windows.Forms.Padding(1); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(74, 27); - this.button2.TabIndex = 65; - this.button2.Text = "ISBN조회"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // // Mac_List // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); diff --git a/unimarc/unimarc/마크/Mac_List.resx b/unimarc/unimarc/마크/Mac_List.resx index 56988b3..53de5b9 100644 --- a/unimarc/unimarc/마크/Mac_List.resx +++ b/unimarc/unimarc/마크/Mac_List.resx @@ -165,9 +165,6 @@ 154, 17 - - 154, 17 - 308, 17 @@ -175,7 +172,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vQAADr0BR/uQrQAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+ + vAAADrwBlbxySQAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+ +8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/ +4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/ @@ -186,7 +183,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vQAADr0BR/uQrQAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33 + vAAADrwBlbxySQAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33 wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE 9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII= @@ -195,7 +192,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vQAADr0BR/uQrQAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5 + vAAADrwBlbxySQAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5 8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+ X6Bjq5qXAAAAAElFTkSuQmCC @@ -204,7 +201,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vQAADr0BR/uQrQAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe + vAAADrwBlbxySQAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe /w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/ /tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6 diff --git a/unimarc/unimarc/마크/Marc2.cs b/unimarc/unimarc/마크/Marc2.cs index 168ca6d..166d7ff 100644 --- a/unimarc/unimarc/마크/Marc2.cs +++ b/unimarc/unimarc/마크/Marc2.cs @@ -880,7 +880,8 @@ namespace UniMarc comboBox8.SelectedIndex = 0; comboBox9.SelectedIndex = 0; - List_Book.Sort(list_idx, System.ComponentModel.ListSortDirection.Ascending); + this.bs1.Sort = "ListIdx desc"; + //List_Book.Sort(list_idx, System.ComponentModel.ListSortDirection.Ascending); } private void List_Book_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) diff --git a/unimarc/unimarc/마크/MarcEditorControl.Designer.cs b/unimarc/unimarc/마크/MarcEditorControl.Designer.cs index 84122e0..72a4a11 100644 --- a/unimarc/unimarc/마크/MarcEditorControl.Designer.cs +++ b/unimarc/unimarc/마크/MarcEditorControl.Designer.cs @@ -216,7 +216,6 @@ this.text500a = new System.Windows.Forms.TextBox(); this.text507a = new System.Windows.Forms.TextBox(); this.lbl_SaveData = new System.Windows.Forms.Label(); - this.lbl_ISBN = new System.Windows.Forms.TextBox(); this.checkBox4 = new System.Windows.Forms.CheckBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.panel1 = new System.Windows.Forms.Panel(); @@ -226,6 +225,10 @@ this.btPrev = new System.Windows.Forms.Button(); this.panel5 = new System.Windows.Forms.Panel(); this.panel6 = new System.Windows.Forms.Panel(); + this.panel7 = new System.Windows.Forms.Panel(); + this.lbl_ISBN = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.label56 = new System.Windows.Forms.Label(); this.panel3.SuspendLayout(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); @@ -252,6 +255,7 @@ this.panel2.SuspendLayout(); this.panel5.SuspendLayout(); this.panel6.SuspendLayout(); + this.panel7.SuspendLayout(); this.SuspendLayout(); // // label31 @@ -375,7 +379,7 @@ this.etc1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.etc1.Location = new System.Drawing.Point(3, 3); this.etc1.Name = "etc1"; - this.etc1.Size = new System.Drawing.Size(386, 279); + this.etc1.Size = new System.Drawing.Size(386, 301); this.etc1.TabIndex = 32; this.etc1.Text = "Remark1"; this.etc1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc_KeyDown); @@ -385,9 +389,9 @@ this.etc2.BackColor = System.Drawing.SystemColors.ScrollBar; this.etc2.Dock = System.Windows.Forms.DockStyle.Fill; this.etc2.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.etc2.Location = new System.Drawing.Point(3, 288); + this.etc2.Location = new System.Drawing.Point(3, 310); this.etc2.Name = "etc2"; - this.etc2.Size = new System.Drawing.Size(386, 279); + this.etc2.Size = new System.Drawing.Size(386, 302); this.etc2.TabIndex = 32; this.etc2.Text = "Remark2"; this.etc2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc_KeyDown); @@ -640,7 +644,7 @@ this.label4.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.label4.Location = new System.Drawing.Point(0, 0); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(40, 109); + this.label4.Size = new System.Drawing.Size(40, 50); this.label4.TabIndex = 206; this.label4.Text = "008"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -653,7 +657,7 @@ this.text008.Location = new System.Drawing.Point(40, 0); this.text008.Margin = new System.Windows.Forms.Padding(3); this.text008.Name = "text008"; - this.text008.Size = new System.Drawing.Size(328, 109); + this.text008.Size = new System.Drawing.Size(328, 50); this.text008.TabIndex = 204; this.text008.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // @@ -664,11 +668,10 @@ this.panel3.Controls.Add(this.text008); this.panel3.Controls.Add(this.btn_Reflesh008); this.panel3.Controls.Add(this.label4); - this.panel3.Dock = System.Windows.Forms.DockStyle.Left; this.panel3.Location = new System.Drawing.Point(0, 0); this.panel3.Margin = new System.Windows.Forms.Padding(0); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(398, 111); + this.panel3.Size = new System.Drawing.Size(398, 52); this.panel3.TabIndex = 219; // // btn_Reflesh008 @@ -679,7 +682,7 @@ this.btn_Reflesh008.Location = new System.Drawing.Point(368, 0); this.btn_Reflesh008.Margin = new System.Windows.Forms.Padding(0); this.btn_Reflesh008.Name = "btn_Reflesh008"; - this.btn_Reflesh008.Size = new System.Drawing.Size(28, 109); + this.btn_Reflesh008.Size = new System.Drawing.Size(28, 50); this.btn_Reflesh008.TabIndex = 207; this.btn_Reflesh008.UseVisualStyleBackColor = false; this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click); @@ -2239,16 +2242,6 @@ this.lbl_SaveData.TabIndex = 318; this.lbl_SaveData.Text = "[] []"; // - // lbl_ISBN - // - this.lbl_ISBN.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.lbl_ISBN.Location = new System.Drawing.Point(168, 0); - this.lbl_ISBN.Name = "lbl_ISBN"; - this.lbl_ISBN.Size = new System.Drawing.Size(142, 25); - this.lbl_ISBN.TabIndex = 33; - this.lbl_ISBN.Text = "[]"; - this.lbl_ISBN.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // // checkBox4 // this.checkBox4.AutoSize = true; @@ -2281,7 +2274,7 @@ this.panel1.Dock = System.Windows.Forms.DockStyle.Right; this.panel1.Location = new System.Drawing.Point(949, 0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(392, 878); + this.panel1.Size = new System.Drawing.Size(392, 923); this.panel1.TabIndex = 319; // // tableLayoutPanel1 @@ -2296,7 +2289,7 @@ this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(392, 570); + this.tableLayoutPanel1.Size = new System.Drawing.Size(392, 615); this.tableLayoutPanel1.TabIndex = 0; // // panel2 @@ -2339,18 +2332,18 @@ // // panel5 // - this.panel5.Controls.Add(this.lbl_ISBN); this.panel5.Controls.Add(this.lbl_SaveData); this.panel5.Controls.Add(this.tabControl1); this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; this.panel5.Location = new System.Drawing.Point(0, 111); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(949, 767); + this.panel5.Size = new System.Drawing.Size(949, 812); this.panel5.TabIndex = 320; // // panel6 // this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192))))); + this.panel6.Controls.Add(this.panel7); this.panel6.Controls.Add(this.panel3); this.panel6.Controls.Add(this.label1); this.panel6.Controls.Add(this.label2); @@ -2382,6 +2375,57 @@ this.panel6.Size = new System.Drawing.Size(949, 111); this.panel6.TabIndex = 321; // + // panel7 + // + this.panel7.BackColor = System.Drawing.Color.Silver; + this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel7.Controls.Add(this.lbl_ISBN); + this.panel7.Controls.Add(this.button1); + this.panel7.Controls.Add(this.label56); + this.panel7.Location = new System.Drawing.Point(0, 53); + this.panel7.Margin = new System.Windows.Forms.Padding(0); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(398, 52); + this.panel7.TabIndex = 221; + // + // lbl_ISBN + // + this.lbl_ISBN.BackColor = System.Drawing.Color.White; + this.lbl_ISBN.Dock = System.Windows.Forms.DockStyle.Fill; + this.lbl_ISBN.Font = new System.Drawing.Font("굴림", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbl_ISBN.Location = new System.Drawing.Point(40, 0); + this.lbl_ISBN.Name = "lbl_ISBN"; + this.lbl_ISBN.Size = new System.Drawing.Size(328, 46); + this.lbl_ISBN.TabIndex = 204; + this.lbl_ISBN.Text = "0000000000000"; + this.lbl_ISBN.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.button1.Dock = System.Windows.Forms.DockStyle.Right; + this.button1.ForeColor = System.Drawing.Color.Black; + this.button1.Location = new System.Drawing.Point(368, 0); + this.button1.Margin = new System.Windows.Forms.Padding(0); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(28, 50); + this.button1.TabIndex = 207; + this.button1.Text = "변경"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // label56 + // + this.label56.Dock = System.Windows.Forms.DockStyle.Left; + this.label56.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label56.Location = new System.Drawing.Point(0, 0); + this.label56.Name = "label56"; + this.label56.Size = new System.Drawing.Size(40, 50); + this.label56.TabIndex = 206; + this.label56.Text = "ISBN"; + this.label56.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // // MarcEditorControl // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -2390,7 +2434,7 @@ this.Controls.Add(this.panel1); this.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.Name = "MarcEditorControl"; - this.Size = new System.Drawing.Size(1341, 878); + this.Size = new System.Drawing.Size(1341, 923); this.SizeChanged += new System.EventHandler(this.MarcEditorControl_SizeChanged); this.panel3.ResumeLayout(false); this.tabControl1.ResumeLayout(false); @@ -2431,6 +2475,8 @@ this.panel5.PerformLayout(); this.panel6.ResumeLayout(false); this.panel6.PerformLayout(); + this.panel7.ResumeLayout(false); + this.panel7.PerformLayout(); this.ResumeLayout(false); } @@ -2607,7 +2653,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn Text020c; private System.Windows.Forms.Label lbl_SaveData; private System.Windows.Forms.Button Btn_interlock; - private System.Windows.Forms.TextBox lbl_ISBN; private System.Windows.Forms.DataGridViewTextBoxColumn text505n; private System.Windows.Forms.DataGridViewTextBoxColumn text505t; private System.Windows.Forms.DataGridViewTextBoxColumn text505d; @@ -2631,5 +2676,9 @@ private System.Windows.Forms.Button btNext; private System.Windows.Forms.Button btPrev; private System.Windows.Forms.Label label7; + private System.Windows.Forms.Panel panel7; + private System.Windows.Forms.TextBox lbl_ISBN; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label56; } } \ No newline at end of file diff --git a/unimarc/unimarc/마크/MarcEditorControl.cs b/unimarc/unimarc/마크/MarcEditorControl.cs index c183968..56680c3 100644 --- a/unimarc/unimarc/마크/MarcEditorControl.cs +++ b/unimarc/unimarc/마크/MarcEditorControl.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Drawing; using System.Linq; +using System.Net.Sockets; using System.Text.RegularExpressions; using System.Web.UI.WebControls.WebParts; using System.Windows.Forms; @@ -101,6 +102,38 @@ namespace UniMarc #endregion } + void ShowImage(string isbn,string url) + { + try + { + //픽쳐박스이미지 업데이트 + if (isbn.isEmpty() == false) + { + string isbn3 = isbn.Substring(isbn.Length - 3, 3); + string tFilePath = string.Format("https://contents.kyobobook.co.kr/sih/fit-in/458x0/pdt/{0}.jpg", isbn); + // tFilePath = $"https://www.aladin.co.kr/shop/wproduct.aspx?ItemId={isbn}©Paper=1&ttbkey=ttbgloriabook1512001&start=api"; + pictureBox1.ImageLocation = tFilePath; + pictureBox1.Tag = tFilePath; + } + else + { + pictureBox1.Image = null; + pictureBox1.ImageLocation = null; + pictureBox1.Tag = url; + } + } + catch + { + pictureBox1.Image = null; + pictureBox1.ImageLocation = null; + pictureBox1.Tag = null; + } + finally + { + //pictureBox1.Tag = _param.URL; + } + } + /// /// 입력된 자료를 표시합니다. /// @@ -123,23 +156,7 @@ namespace UniMarc LoadMarc(dbMarc); //여기에서도 008을 설정한다 - try - { - //픽쳐박스이미지 업데이트 - string isbn = _param.ISBN13; - string isbn3 = isbn.Substring(isbn.Length - 3, 3); - string tFilePath = string.Format("https://contents.kyobobook.co.kr/sih/fit-in/458x0/pdt/{0}.jpg", isbn); - pictureBox1.ImageLocation = tFilePath; - } - catch - { - pictureBox1.Image = null; - pictureBox1.ImageLocation = null; - } - finally - { - pictureBox1.Tag = _param.URL; - } + ShowImage(_param.ISBN13,_param.URL); //그레이드값이 없다면 비활성화. cb_grade.Enabled = Param.Grade != null; @@ -1133,7 +1150,12 @@ namespace UniMarc private void pictureBox1_DoubleClick(object sender, EventArgs e) { - Zoom_Picture zp = new Zoom_Picture(); + var zp = new Zoom_Picture(); + if(pictureBox1.Tag == null) + { + UTIL.MsgE("이미지 URL이 없습니다"); + return; + } var CurrentURL = pictureBox1.Tag.ToString(); zp.url = pictureBox1.ImageLocation ?? CurrentURL; zp.ISBN = Param.ISBN13; @@ -3124,5 +3146,37 @@ namespace UniMarc { NextButton?.Invoke(this, EventArgs.Empty); } + + private void button1_Click(object sender, EventArgs e) + { + string value = lbl_ISBN.Text; + if (search_Text.InputBox("변경할 ISBN을 입력해주세요.", "ISBN 변경", ref value) == DialogResult.OK) + { + if (string.IsNullOrEmpty(value)) return; + + string oldIsbn = lbl_ISBN.Text; + lbl_ISBN.Text = value; + Param.ISBN13 = value; + + // 1. RichTextBox (마크 편집) 동기화 + if (!string.IsNullOrEmpty(oldIsbn)) + { + richTextBox1.Text = richTextBox1.Text.Replace(oldIsbn, value); + } + + // 2. GridView020 (칸채우기) 동기화 + for (int i = 0; i < GridView020.Rows.Count; i++) + { + var cell = GridView020.Rows[i].Cells["Text020a"]; + if (cell.Value != null && cell.Value.ToString() == oldIsbn) + { + cell.Value = value; + } + } + + // 3. 이미지 업데이트 + ShowImage(Param.ISBN13, Param.URL); + } + } } } \ No newline at end of file diff --git a/unimarc/unimarc/마크/Marc_Plan_Sub_MarcEdit2.cs b/unimarc/unimarc/마크/Marc_Plan_Sub_MarcEdit2.cs index 7da6028..0c7f4ca 100644 --- a/unimarc/unimarc/마크/Marc_Plan_Sub_MarcEdit2.cs +++ b/unimarc/unimarc/마크/Marc_Plan_Sub_MarcEdit2.cs @@ -52,6 +52,15 @@ namespace UniMarc { public string BookName { get; set; } public string Marc { get; set; } + public string ISBN { get; set; } + public string Author { get; set; } + public string Publisher { get; set; } + public string Price { get; set; } + public string Grade { get; set; } + public string Etc1 { get; set; } + public string Etc2 { get; set; } + public string SaveDate { get; set; } + public string User { get; set; } } public event EventHandler RequestFillBlankData; @@ -143,7 +152,20 @@ namespace UniMarc Helper_DB.ExcuteNonQuery(cmd); // Notify Parent - BookUpdated?.Invoke(this, new BookUpdatedEventArgs { BookName = BookName, Marc = oriMarc }); + BookUpdated?.Invoke(this, new BookUpdatedEventArgs + { + BookName = BookName, + Marc = oriMarc, + ISBN = SearchBookTag[11], + Author = SearchBookTag[8], + Publisher = SearchBookTag[9], + Price = SearchBookTag[10], + Grade = e.Param.Grade, + Etc1 = etc1, + Etc2 = etc2, + SaveDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), + User = UserName + }); MessageBox.Show("저장되었습니다!"); } diff --git a/unimarc/unimarc/마크/SearchInforItem.cs b/unimarc/unimarc/마크/SearchInforItem.cs new file mode 100644 index 0000000..443aa2f --- /dev/null +++ b/unimarc/unimarc/마크/SearchInforItem.cs @@ -0,0 +1,23 @@ +using System; + +namespace UniMarc +{ + public class SearchInforItem + { + public string idx { get; set; } + public string grade { get; set; } + public string User { get; set; } + public string date { get; set; } + public string ISBN { get; set; } + public string book_name { get; set; } + public string sBookName { get; set; } + public string author { get; set; } + public string book_comp { get; set; } + public string price { get; set; } + public string pub_date { get; set; } + public string Marc { get; set; } + public string marc2 { get; set; } + public string etc1 { get; set; } + public string etc2 { get; set; } + } +} diff --git a/unimarc/unimarc/마크/Search_Infor.Designer.cs b/unimarc/unimarc/마크/Search_Infor.Designer.cs index ece1c9b..9a6d867 100644 --- a/unimarc/unimarc/마크/Search_Infor.Designer.cs +++ b/unimarc/unimarc/마크/Search_Infor.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.label1 = new System.Windows.Forms.Label(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -102,14 +102,14 @@ // this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToDeleteRows = 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.False; - this.dataGridView1.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.False; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.idx, diff --git a/unimarc/unimarc/마크/Search_Infor.cs b/unimarc/unimarc/마크/Search_Infor.cs index 450b0b0..5029c95 100644 --- a/unimarc/unimarc/마크/Search_Infor.cs +++ b/unimarc/unimarc/마크/Search_Infor.cs @@ -47,8 +47,8 @@ namespace UniMarc //(string target, string searchText) = setting_target(true); //string WhereQuery = MakeWHEREQurey(target, searchText); - - string Area = + + string Area = "`idx`, `grade`, `user`, `date`, `isbn`, `서명`, " + "`총서명`, `저자`, `출판사`, `가격`, `출판년월`, " + "`marc`,`marc1`, `비고1`, `비고2`"; @@ -113,7 +113,7 @@ namespace UniMarc string tText = string.Empty; string[] tTextBox = new string[] { tbTitle.Text, tbWriter.Text, tbPublisher.Text, tbISBN.Text, Change_Grade(cbGrade.Text), cbUser.Text }; string[] tTitle_IDX_0 = new string[] { "서명", "저자", "출판사", "isbn", "grade", "user", "date" }; - string[] tTitle_IDX_1 = new string[] { "book_name", "author", "book_comp", "isbn", "grade"}; + string[] tTitle_IDX_1 = new string[] { "book_name", "author", "book_comp", "isbn", "grade" }; if (cb_data_area.SelectedIndex == 0) { for (int i = 0; i < tTitle_IDX_0.Length; i++) @@ -137,7 +137,7 @@ namespace UniMarc else if (i == tTitle_IDX_0.Length - 1 && CkDateTime.Checked && DtpStartTime.Value <= DtpEndTime.Value) { string start = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpStartTime.Value); - + string end = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpEndTime.Value); tWhere += string.Format("AND `date` BETWEEN \"{0}\" AND \"{1}\"", start, end); } @@ -197,12 +197,14 @@ namespace UniMarc if (index == 8) grid[8] = arr[a]; // 출판사 if (index == 9) grid[9] = arr[a]; // 가격 if (index == 10) grid[10] = arr[a]; // 출판년월 - if (index == 12 || index == 14 || index == 16) { // *마크* + if (index == 12 || index == 14 || index == 16) + { // *마크* bool CheckMarc = MyDB_Sub(arr[a]); if (!CheckMarc) grid[11] = arr[a - 1]; } if (index == 17) grid[12] = arr[a]; // 비고1 - if (index == 18) { // 비고2 + if (index == 18) + { // 비고2 grid[13] = arr[a]; dataGridView1.Rows.Add(grid); } @@ -366,7 +368,8 @@ namespace UniMarc if (row < 0) return; - Marc_Plan_Sub_MarcEdit me = new Marc_Plan_Sub_MarcEdit(this); + + var me = new Marc_Plan_Sub_MarcEdit(this); string[] Marc = { dataGridView1.Rows[row].Cells["Marc"].Value.ToString(), idx, @@ -381,6 +384,8 @@ namespace UniMarc me.btn_EditNum.Enabled = false; me.Show(); + + // Search_Infor_Sub sis = new Search_Infor_Sub(this); // sis.isbn = dataGridView1.Rows[row].Cells["ISBN"].Value.ToString(); // sis.marc = dataGridView1.Rows[row].Cells["Marc"].Value.ToString(); @@ -397,7 +402,7 @@ namespace UniMarc private void cb_data_area_SelectedIndexChanged(object sender, EventArgs e) { - + cb_filter.Items.Clear(); List filter = new List { @@ -444,7 +449,7 @@ namespace UniMarc } cbGrade.SelectedIndex = 0; - + string[] filterAry = filter.ToArray(); cb_filter.Items.AddRange(filterAry); cb_filter.SelectedIndex = 0; @@ -516,7 +521,7 @@ namespace UniMarc me.row = row; me.UserName = main.botUserLabel.Text; - me.Init(Marc,true); + me.Init(Marc, true); me.btn_EditNum.Enabled = false; me.Show(); } diff --git a/unimarc/unimarc/마크/Search_Infor2.Designer.cs b/unimarc/unimarc/마크/Search_Infor2.Designer.cs new file mode 100644 index 0000000..795c99e --- /dev/null +++ b/unimarc/unimarc/마크/Search_Infor2.Designer.cs @@ -0,0 +1,866 @@ +namespace UniMarc +{ + partial class Search_Infor2 + { + /// + /// 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.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Search_Infor2)); + this.label1 = new System.Windows.Forms.Label(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.User = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.date = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.sBookName = 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.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.marc2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.etc1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.etc2 = 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.cb_data_area = new System.Windows.Forms.ComboBox(); + this.label3 = new System.Windows.Forms.Label(); + this.cb_filterDetail = new System.Windows.Forms.ComboBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel5 = new System.Windows.Forms.Panel(); + this.dtp_End = new System.Windows.Forms.DateTimePicker(); + this.dtp_Start = new System.Windows.Forms.DateTimePicker(); + this.panel4 = new System.Windows.Forms.Panel(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.CkDateTime = new System.Windows.Forms.CheckBox(); + this.label5 = new System.Windows.Forms.Label(); + this.tbTitle = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.cbGrade = new System.Windows.Forms.ComboBox(); + this.label7 = new System.Windows.Forms.Label(); + this.tbWriter = new System.Windows.Forms.TextBox(); + this.tbPublisher = new System.Windows.Forms.TextBox(); + this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.cbUser = new System.Windows.Forms.ComboBox(); + this.label11 = new System.Windows.Forms.Label(); + this.tbISBN = new System.Windows.Forms.TextBox(); + this.DtpStartTime = new System.Windows.Forms.DateTimePicker(); + this.DtpEndTime = new System.Windows.Forms.DateTimePicker(); + this.btnViewOldData = new System.Windows.Forms.Button(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components); + this.bs1 = new System.Windows.Forms.BindingSource(this.components); + this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); + this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox(); + this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); + this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.panel1.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel4.SuspendLayout(); + this.tableLayoutPanel1.SuspendLayout(); + this.panel3.SuspendLayout(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit(); + this.bindingNavigator1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs1)).BeginInit(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(10, 35); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.TabIndex = 5; + this.label1.Text = "검색필터"; + // + // dataGridView1 + // + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = 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.False; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.idx, + this.grade, + this.User, + this.date, + this.ISBN, + this.book_name, + this.sBookName, + this.author, + this.book_comp, + this.price, + this.pub_date, + this.Marc, + this.marc2, + this.etc1, + this.etc2}); + this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView1.Location = new System.Drawing.Point(0, 0); + this.dataGridView1.MultiSelect = false; + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 20; + this.dataGridView1.RowTemplate.Height = 23; + this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dataGridView1.Size = new System.Drawing.Size(1530, 551); + this.dataGridView1.TabIndex = 0; + this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); + // + // idx + // + this.idx.DataPropertyName = "idx"; + this.idx.HeaderText = "idx"; + this.idx.Name = "idx"; + this.idx.Visible = false; + // + // grade + // + this.grade.DataPropertyName = "grade"; + this.grade.HeaderText = "등급"; + this.grade.Name = "grade"; + this.grade.Width = 50; + // + // User + // + this.User.DataPropertyName = "User"; + this.User.HeaderText = "작성자"; + this.User.Name = "User"; + // + // date + // + this.date.DataPropertyName = "date"; + this.date.HeaderText = "날짜"; + this.date.Name = "date"; + // + // ISBN + // + this.ISBN.DataPropertyName = "ISBN"; + this.ISBN.HeaderText = "ISBN"; + this.ISBN.Name = "ISBN"; + // + // book_name + // + this.book_name.DataPropertyName = "book_name"; + this.book_name.HeaderText = "도서명"; + this.book_name.Name = "book_name"; + this.book_name.Width = 250; + // + // sBookName + // + this.sBookName.DataPropertyName = "sBookName"; + this.sBookName.HeaderText = "총서명"; + this.sBookName.Name = "sBookName"; + // + // author + // + this.author.DataPropertyName = "author"; + this.author.HeaderText = "저자"; + this.author.Name = "author"; + this.author.Width = 130; + // + // book_comp + // + this.book_comp.DataPropertyName = "book_comp"; + this.book_comp.HeaderText = "출판사"; + this.book_comp.Name = "book_comp"; + this.book_comp.Width = 200; + // + // price + // + this.price.DataPropertyName = "price"; + this.price.HeaderText = "정가"; + this.price.Name = "price"; + this.price.Width = 80; + // + // pub_date + // + this.pub_date.DataPropertyName = "pub_date"; + this.pub_date.HeaderText = "출판년월"; + this.pub_date.Name = "pub_date"; + // + // Marc + // + this.Marc.DataPropertyName = "Marc"; + this.Marc.HeaderText = "marc"; + this.Marc.Name = "Marc"; + this.Marc.Visible = false; + // + // marc2 + // + this.marc2.DataPropertyName = "marc2"; + this.marc2.HeaderText = "marc2"; + this.marc2.Name = "marc2"; + this.marc2.Visible = false; + // + // etc1 + // + this.etc1.DataPropertyName = "etc1"; + this.etc1.HeaderText = "비고1"; + this.etc1.Name = "etc1"; + this.etc1.Width = 140; + // + // etc2 + // + this.etc2.DataPropertyName = "etc2"; + this.etc2.HeaderText = "비고2"; + this.etc2.Name = "etc2"; + this.etc2.Width = 140; + // + // label2 + // + this.label2.Location = new System.Drawing.Point(363, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(41, 12); + this.label2.TabIndex = 5; + this.label2.Text = "검색어"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label2.Visible = false; + // + // tb_search + // + this.tb_search.Location = new System.Drawing.Point(182, 26); + this.tb_search.Name = "tb_search"; + this.tb_search.Size = new System.Drawing.Size(222, 21); + this.tb_search.TabIndex = 6; + this.tb_search.Visible = false; + this.tb_search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown); + // + // btn_search + // + this.btn_search.Dock = System.Windows.Forms.DockStyle.Fill; + this.btn_search.Location = new System.Drawing.Point(485, 1); + this.btn_search.Margin = new System.Windows.Forms.Padding(0); + this.btn_search.Name = "btn_search"; + this.tableLayoutPanel1.SetRowSpan(this.btn_search, 2); + this.btn_search.Size = new System.Drawing.Size(120, 40); + 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); + // + // cb_filter + // + this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_filter.FormattingEnabled = true; + this.cb_filter.Location = new System.Drawing.Point(176, 53); + this.cb_filter.Name = "cb_filter"; + this.cb_filter.Size = new System.Drawing.Size(111, 20); + this.cb_filter.TabIndex = 50; + this.cb_filter.Visible = false; + this.cb_filter.SelectedIndexChanged += new System.EventHandler(this.cb_filter_SelectedIndexChanged); + // + // btn_close + // + this.btn_close.Dock = System.Windows.Forms.DockStyle.Fill; + this.btn_close.Location = new System.Drawing.Point(606, 1); + this.btn_close.Margin = new System.Windows.Forms.Padding(0); + this.btn_close.Name = "btn_close"; + this.tableLayoutPanel1.SetRowSpan(this.btn_close, 2); + this.btn_close.Size = new System.Drawing.Size(122, 40); + 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); + // + // cb_data_area + // + this.cb_data_area.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_data_area.FormattingEnabled = true; + this.cb_data_area.Location = new System.Drawing.Point(65, 31); + this.cb_data_area.Name = "cb_data_area"; + this.cb_data_area.Size = new System.Drawing.Size(145, 20); + this.cb_data_area.TabIndex = 52; + this.cb_data_area.SelectedIndexChanged += new System.EventHandler(this.cb_data_area_SelectedIndexChanged); + // + // label3 + // + this.tableLayoutPanel1.SetColumnSpan(this.label3, 2); + this.label3.Dock = System.Windows.Forms.DockStyle.Fill; + this.label3.Location = new System.Drawing.Point(485, 42); + this.label3.Margin = new System.Windows.Forms.Padding(0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(243, 23); + this.label3.TabIndex = 53; + this.label3.Text = "검색결과"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // cb_filterDetail + // + this.cb_filterDetail.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cb_filterDetail.FormattingEnabled = true; + this.cb_filterDetail.Location = new System.Drawing.Point(293, 53); + this.cb_filterDetail.Name = "cb_filterDetail"; + this.cb_filterDetail.Size = new System.Drawing.Size(111, 20); + this.cb_filterDetail.TabIndex = 50; + this.cb_filterDetail.Visible = false; + // + // panel1 + // + this.panel1.Controls.Add(this.panel5); + this.panel1.Controls.Add(this.panel4); + this.panel1.Controls.Add(this.panel3); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1530, 90); + this.panel1.TabIndex = 0; + // + // panel5 + // + this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel5.Controls.Add(this.label2); + this.panel5.Controls.Add(this.cb_filterDetail); + this.panel5.Controls.Add(this.cb_filter); + this.panel5.Controls.Add(this.tb_search); + this.panel5.Controls.Add(this.dtp_End); + this.panel5.Controls.Add(this.dtp_Start); + this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel5.Location = new System.Drawing.Point(960, 0); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(570, 90); + this.panel5.TabIndex = 56; + // + // dtp_End + // + this.dtp_End.CustomFormat = "yyyy-MM-dd"; + this.dtp_End.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dtp_End.Location = new System.Drawing.Point(406, 46); + this.dtp_End.Margin = new System.Windows.Forms.Padding(0); + this.dtp_End.Name = "dtp_End"; + this.dtp_End.Size = new System.Drawing.Size(112, 21); + this.dtp_End.TabIndex = 51; + this.dtp_End.Visible = false; + // + // dtp_Start + // + this.dtp_Start.CustomFormat = "yyyy-MM-dd"; + this.dtp_Start.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dtp_Start.Location = new System.Drawing.Point(407, 14); + this.dtp_Start.Margin = new System.Windows.Forms.Padding(0); + this.dtp_Start.Name = "dtp_Start"; + this.dtp_Start.Size = new System.Drawing.Size(111, 21); + this.dtp_Start.TabIndex = 51; + this.dtp_Start.Visible = false; + // + // panel4 + // + this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel4.Controls.Add(this.tableLayoutPanel1); + this.panel4.Dock = System.Windows.Forms.DockStyle.Left; + this.panel4.Location = new System.Drawing.Point(229, 0); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(731, 90); + this.panel4.TabIndex = 55; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; + this.tableLayoutPanel1.ColumnCount = 6; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.Controls.Add(this.CkDateTime, 4, 3); + this.tableLayoutPanel1.Controls.Add(this.label5, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.btn_close, 5, 0); + this.tableLayoutPanel1.Controls.Add(this.btn_search, 4, 0); + this.tableLayoutPanel1.Controls.Add(this.tbTitle, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.label4, 2, 3); + this.tableLayoutPanel1.Controls.Add(this.label6, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.cbGrade, 3, 1); + this.tableLayoutPanel1.Controls.Add(this.label7, 0, 2); + this.tableLayoutPanel1.Controls.Add(this.tbWriter, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.tbPublisher, 1, 2); + this.tableLayoutPanel1.Controls.Add(this.label8, 2, 0); + this.tableLayoutPanel1.Controls.Add(this.label9, 2, 1); + this.tableLayoutPanel1.Controls.Add(this.label10, 2, 2); + this.tableLayoutPanel1.Controls.Add(this.cbUser, 3, 2); + this.tableLayoutPanel1.Controls.Add(this.label11, 0, 3); + this.tableLayoutPanel1.Controls.Add(this.tbISBN, 3, 0); + this.tableLayoutPanel1.Controls.Add(this.DtpStartTime, 1, 3); + this.tableLayoutPanel1.Controls.Add(this.DtpEndTime, 3, 3); + this.tableLayoutPanel1.Controls.Add(this.label3, 4, 2); + this.tableLayoutPanel1.Controls.Add(this.btnViewOldData, 5, 3); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 4; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 31.37255F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 32.02614F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 36.60131F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(729, 88); + this.tableLayoutPanel1.TabIndex = 54; + // + // CkDateTime + // + this.CkDateTime.AutoSize = true; + this.CkDateTime.Checked = true; + this.CkDateTime.CheckState = System.Windows.Forms.CheckState.Checked; + this.CkDateTime.Dock = System.Windows.Forms.DockStyle.Fill; + this.CkDateTime.Location = new System.Drawing.Point(488, 69); + this.CkDateTime.Name = "CkDateTime"; + this.CkDateTime.Size = new System.Drawing.Size(114, 15); + this.CkDateTime.TabIndex = 53; + this.CkDateTime.Text = "날짜 검색 사용"; + this.CkDateTime.UseVisualStyleBackColor = true; + // + // label5 + // + this.label5.Dock = System.Windows.Forms.DockStyle.Fill; + this.label5.Location = new System.Drawing.Point(1, 1); + this.label5.Margin = new System.Windows.Forms.Padding(0); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(120, 19); + this.label5.TabIndex = 5; + this.label5.Text = "도서명"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // tbTitle + // + this.tbTitle.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbTitle.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.tbTitle.Location = new System.Drawing.Point(122, 1); + this.tbTitle.Margin = new System.Windows.Forms.Padding(0); + this.tbTitle.Name = "tbTitle"; + this.tbTitle.Size = new System.Drawing.Size(120, 20); + this.tbTitle.TabIndex = 6; + this.tbTitle.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown); + // + // label4 + // + this.label4.Dock = System.Windows.Forms.DockStyle.Fill; + this.label4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.label4.Location = new System.Drawing.Point(243, 66); + this.label4.Margin = new System.Windows.Forms.Padding(0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(120, 21); + this.label4.TabIndex = 53; + this.label4.Text = "~"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label6 + // + this.label6.Dock = System.Windows.Forms.DockStyle.Fill; + this.label6.Location = new System.Drawing.Point(1, 21); + this.label6.Margin = new System.Windows.Forms.Padding(0); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(120, 20); + this.label6.TabIndex = 5; + this.label6.Text = "저자"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // cbGrade + // + this.cbGrade.Dock = System.Windows.Forms.DockStyle.Fill; + this.cbGrade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbGrade.FormattingEnabled = true; + this.cbGrade.Items.AddRange(new object[] { + "전체", + "A", + "B", + "C", + "D"}); + this.cbGrade.Location = new System.Drawing.Point(364, 21); + this.cbGrade.Margin = new System.Windows.Forms.Padding(0); + this.cbGrade.Name = "cbGrade"; + this.cbGrade.Size = new System.Drawing.Size(120, 20); + this.cbGrade.TabIndex = 50; + // + // label7 + // + this.label7.Dock = System.Windows.Forms.DockStyle.Fill; + this.label7.Location = new System.Drawing.Point(1, 42); + this.label7.Margin = new System.Windows.Forms.Padding(0); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(120, 23); + this.label7.TabIndex = 5; + this.label7.Text = "출판사"; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // tbWriter + // + this.tbWriter.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbWriter.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.tbWriter.Location = new System.Drawing.Point(122, 21); + this.tbWriter.Margin = new System.Windows.Forms.Padding(0); + this.tbWriter.Name = "tbWriter"; + this.tbWriter.Size = new System.Drawing.Size(120, 20); + this.tbWriter.TabIndex = 6; + this.tbWriter.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown); + // + // tbPublisher + // + this.tbPublisher.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbPublisher.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.tbPublisher.Location = new System.Drawing.Point(122, 42); + this.tbPublisher.Margin = new System.Windows.Forms.Padding(0); + this.tbPublisher.Name = "tbPublisher"; + this.tbPublisher.Size = new System.Drawing.Size(120, 20); + this.tbPublisher.TabIndex = 6; + this.tbPublisher.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown); + // + // label8 + // + this.label8.Dock = System.Windows.Forms.DockStyle.Fill; + this.label8.Location = new System.Drawing.Point(243, 1); + this.label8.Margin = new System.Windows.Forms.Padding(0); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(120, 19); + this.label8.TabIndex = 5; + this.label8.Text = "ISBN"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label9 + // + this.label9.Dock = System.Windows.Forms.DockStyle.Fill; + this.label9.Location = new System.Drawing.Point(243, 21); + this.label9.Margin = new System.Windows.Forms.Padding(0); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(120, 20); + this.label9.TabIndex = 5; + this.label9.Text = "등급"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label10 + // + this.label10.Dock = System.Windows.Forms.DockStyle.Fill; + this.label10.Location = new System.Drawing.Point(243, 42); + this.label10.Margin = new System.Windows.Forms.Padding(0); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(120, 23); + this.label10.TabIndex = 5; + this.label10.Text = "작성자"; + this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // cbUser + // + this.cbUser.Dock = System.Windows.Forms.DockStyle.Fill; + this.cbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cbUser.FormattingEnabled = true; + this.cbUser.Location = new System.Drawing.Point(364, 42); + this.cbUser.Margin = new System.Windows.Forms.Padding(0); + this.cbUser.Name = "cbUser"; + this.cbUser.Size = new System.Drawing.Size(120, 20); + this.cbUser.TabIndex = 50; + // + // label11 + // + this.label11.Dock = System.Windows.Forms.DockStyle.Fill; + this.label11.Location = new System.Drawing.Point(1, 66); + this.label11.Margin = new System.Windows.Forms.Padding(0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(120, 21); + this.label11.TabIndex = 5; + this.label11.Text = "날짜"; + this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // tbISBN + // + this.tbISBN.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbISBN.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + this.tbISBN.Location = new System.Drawing.Point(364, 1); + this.tbISBN.Margin = new System.Windows.Forms.Padding(0); + this.tbISBN.Name = "tbISBN"; + this.tbISBN.Size = new System.Drawing.Size(120, 20); + this.tbISBN.TabIndex = 6; + this.tbISBN.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown); + // + // DtpStartTime + // + this.DtpStartTime.CustomFormat = "yyyy-MM-dd"; + this.DtpStartTime.Dock = System.Windows.Forms.DockStyle.Fill; + this.DtpStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.DtpStartTime.Location = new System.Drawing.Point(122, 66); + this.DtpStartTime.Margin = new System.Windows.Forms.Padding(0); + this.DtpStartTime.Name = "DtpStartTime"; + this.DtpStartTime.Size = new System.Drawing.Size(120, 21); + this.DtpStartTime.TabIndex = 54; + // + // DtpEndTime + // + this.DtpEndTime.CustomFormat = "yyyy-MM-dd"; + this.DtpEndTime.Dock = System.Windows.Forms.DockStyle.Fill; + this.DtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.DtpEndTime.Location = new System.Drawing.Point(364, 66); + this.DtpEndTime.Margin = new System.Windows.Forms.Padding(0); + this.DtpEndTime.Name = "DtpEndTime"; + this.DtpEndTime.Size = new System.Drawing.Size(120, 21); + this.DtpEndTime.TabIndex = 54; + // + // btnViewOldData + // + this.btnViewOldData.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnViewOldData.Location = new System.Drawing.Point(606, 66); + this.btnViewOldData.Margin = new System.Windows.Forms.Padding(0); + this.btnViewOldData.Name = "btnViewOldData"; + this.btnViewOldData.Size = new System.Drawing.Size(122, 21); + this.btnViewOldData.TabIndex = 52; + this.btnViewOldData.Text = "이전 데이터 보기"; + this.btnViewOldData.UseVisualStyleBackColor = true; + this.btnViewOldData.Click += new System.EventHandler(this.btnViewOldData_Click); + // + // panel3 + // + this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel3.Controls.Add(this.label1); + this.panel3.Controls.Add(this.cb_data_area); + this.panel3.Dock = System.Windows.Forms.DockStyle.Left; + this.panel3.Location = new System.Drawing.Point(0, 0); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(229, 90); + this.panel3.TabIndex = 54; + // + // panel2 + // + this.panel2.Controls.Add(this.dataGridView1); + this.panel2.Controls.Add(this.bindingNavigator1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 90); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1530, 576); + this.panel2.TabIndex = 55; + // + // bindingNavigator1 + // + this.bindingNavigator1.AddNewItem = null; + this.bindingNavigator1.BindingSource = this.bs1; + this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem; + this.bindingNavigator1.DeleteItem = null; + this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.bindingNavigatorMoveFirstItem, + this.bindingNavigatorMovePreviousItem, + this.bindingNavigatorSeparator, + this.bindingNavigatorPositionItem, + this.bindingNavigatorCountItem, + this.bindingNavigatorSeparator1, + this.bindingNavigatorMoveNextItem, + this.bindingNavigatorMoveLastItem, + this.bindingNavigatorSeparator2}); + this.bindingNavigator1.Location = new System.Drawing.Point(0, 551); + this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem; + this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem; + this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem; + this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem; + this.bindingNavigator1.Name = "bindingNavigator1"; + this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem; + this.bindingNavigator1.Size = new System.Drawing.Size(1530, 25); + this.bindingNavigator1.TabIndex = 1; + this.bindingNavigator1.Text = "bindingNavigator1"; + // + // bindingNavigatorCountItem + // + this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; + this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22); + this.bindingNavigatorCountItem.Text = "/{0}"; + this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; + // + // bindingNavigatorMoveFirstItem + // + this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); + this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; + this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; + // + // bindingNavigatorMovePreviousItem + // + this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); + this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; + this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; + // + // bindingNavigatorSeparator + // + this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; + this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25); + // + // bindingNavigatorPositionItem + // + this.bindingNavigatorPositionItem.AccessibleName = "위치"; + this.bindingNavigatorPositionItem.AutoSize = false; + this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F); + this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem"; + this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23); + this.bindingNavigatorPositionItem.Text = "0"; + this.bindingNavigatorPositionItem.ToolTipText = "현재 위치"; + // + // bindingNavigatorSeparator1 + // + this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; + this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25); + // + // bindingNavigatorMoveNextItem + // + this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); + this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; + this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; + // + // bindingNavigatorMoveLastItem + // + this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); + this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; + this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; + this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22); + this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; + // + // bindingNavigatorSeparator2 + // + this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; + this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); + // + // Search_Infor2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1530, 666); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel1); + this.Name = "Search_Infor2"; + this.Text = "소장자료검색(New)"; + this.Load += new System.EventHandler(this.Search_Infor_Load); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.panel1.ResumeLayout(false); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); + this.panel4.ResumeLayout(false); + this.tableLayoutPanel1.ResumeLayout(false); + this.tableLayoutPanel1.PerformLayout(); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit(); + this.bindingNavigator1.ResumeLayout(false); + this.bindingNavigator1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Label label1; + 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.ComboBox cb_data_area; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.ComboBox cb_filterDetail; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.DateTimePicker dtp_Start; + private System.Windows.Forms.DateTimePicker dtp_End; + private System.Windows.Forms.Label label4; + public System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox tbTitle; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.TextBox tbWriter; + private System.Windows.Forms.TextBox tbPublisher; + private System.Windows.Forms.ComboBox cbGrade; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.ComboBox cbUser; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.TextBox tbISBN; + private System.Windows.Forms.DateTimePicker DtpStartTime; + private System.Windows.Forms.DateTimePicker DtpEndTime; + private System.Windows.Forms.CheckBox CkDateTime; + private System.Windows.Forms.Button btnViewOldData; + private System.Windows.Forms.DataGridViewTextBoxColumn idx; + private System.Windows.Forms.DataGridViewTextBoxColumn grade; + private System.Windows.Forms.DataGridViewTextBoxColumn User; + private System.Windows.Forms.DataGridViewTextBoxColumn date; + private System.Windows.Forms.DataGridViewTextBoxColumn ISBN; + private System.Windows.Forms.DataGridViewTextBoxColumn book_name; + private System.Windows.Forms.DataGridViewTextBoxColumn sBookName; + 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 Marc; + private System.Windows.Forms.DataGridViewTextBoxColumn marc2; + private System.Windows.Forms.DataGridViewTextBoxColumn etc1; + private System.Windows.Forms.DataGridViewTextBoxColumn etc2; + private System.Windows.Forms.BindingNavigator bindingNavigator1; + private System.Windows.Forms.BindingSource bs1; + private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; + private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; + private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; + private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; + } +} \ No newline at end of file diff --git a/unimarc/unimarc/마크/Search_Infor2.cs b/unimarc/unimarc/마크/Search_Infor2.cs new file mode 100644 index 0000000..ebda068 --- /dev/null +++ b/unimarc/unimarc/마크/Search_Infor2.cs @@ -0,0 +1,695 @@ +using AR; +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 UniMarc +{ + public partial class Search_Infor2 : Form + { + Main main; + public string compidx; + BindingList searchList = new BindingList(); + + public Search_Infor2(Main _main) + { + InitializeComponent(); + main = _main; + compidx = PUB.user.CompanyIdx; + + dataGridView1.AutoGenerateColumns = false; + bs1.DataSource = searchList; + dataGridView1.DataSource = bs1; + } + private void Search_Infor_Load(object sender, EventArgs e) + { + //db.DBcon(); + + string[] area = { "자체 DB", "국립 중앙 도서관" }; + cb_data_area.Items.AddRange(area); + cb_data_area.SelectedIndex = 0; + + dataGridView1.Columns["etc1"].ReadOnly = true; + dataGridView1.Columns["etc2"].ReadOnly = true; + } + private void btn_search_Click(object sender, EventArgs e) + { + searchList.Clear(); + + string Table = "Marc"; + string tQuery = MakeWHEREQurey(); + if (cb_data_area.SelectedIndex == 0) + { + Helper_DB db = new Helper_DB(); + db.DBcon(); + + string Area = + "`idx`, `grade`, `user`, `date`, `isbn`, `서명` AS `book_name`, " + + "`총서명` AS `series`, `저자` AS `author`, `출판사` AS `book_comp`, `가격` AS `price`, `출판년월` AS `years`, " + + "`marc`, `marc1` AS `marc2`, `비고1` AS `etc1`, `비고2` AS `etc2` "; + string cmd = string.Format("SELECT {0} FROM `{1}` WHERE `compidx` = \"{3}\" {2};", Area, Table, tQuery, compidx); + + System.Data.DataTable dt = db.DB_Send_CMD_Search_DataTable(cmd); + PopulateSearchList(dt, 19); + } + else if (cb_data_area.SelectedIndex == 1) + { + Helper_DB db = new Helper_DB(); + db.DBcon_cl(); + // -user date 비고2 + string Area = "`idx`, `grade`, `isbn`, `book_name`, `series`, `author`, " + + "`book_comp`, `price`, `years`, `marc`, `etc` AS `etc1` "; + + string cmd = string.Format("SELECT {0} FROM `{1}` WHERE {2};", Area, Table, tQuery); + System.Data.DataTable dt = db.DB_Send_CMD_Search_DataTable(cmd); + PopulateSearchList(dt, 11); + } + + label3.Text = string.Format("검색결과 {0:0,0}건", searchList.Count.ToString()); + } + + void PopulateSearchList(DataTable dt, int colCount) + { + if (dt == null || dt.Rows.Count == 0) return; + + foreach (DataRow row in dt.Rows) + { + SearchInforItem item = new SearchInforItem(); + if (colCount == 19) // MyDB + { + item.idx = row["idx"].ToString(); + item.grade = Change_Grade(row["grade"].ToString()); + item.User = row["user"].ToString(); + item.date = row["date"].ToString(); + item.ISBN = row["isbn"].ToString(); + item.book_name = row["book_name"].ToString(); + item.sBookName = row["series"].ToString(); + item.author = row["author"].ToString(); + item.book_comp = row["book_comp"].ToString(); + item.price = row["price"].ToString(); + item.pub_date = row["years"].ToString(); + item.Marc = row["marc"].ToString(); + item.marc2 = row["marc2"].ToString(); + item.etc1 = row["etc1"].ToString(); + item.etc2 = row["etc2"].ToString(); + } + else if (colCount == 11) // ClDB + { + item.idx = row["idx"].ToString(); + item.grade = Change_Grade(row["grade"].ToString()); + item.ISBN = row["isbn"].ToString(); + item.book_name = row["book_name"].ToString(); + item.sBookName = row["series"].ToString(); + item.author = row["author"].ToString(); + item.book_comp = row["book_comp"].ToString(); + item.price = row["price"].ToString(); + item.pub_date = row["years"].ToString(); + item.Marc = row["marc"].ToString(); + item.etc1 = row["etc1"].ToString(); + } + searchList.Add(item); + } + } + #region search_Click_Sub + + string MakeWHEREQurey(string target, string searchText) + { + string Where; + if (target == "date") + { + string start = dtp_Start.Text; + string end = dtp_End.Text; + Where = string.Format("AND `{0}` BETWEEN \"{1}\" AND \"{2}\"", target, start, end); + } + else if (target == "" && cb_data_area.SelectedIndex == 0) + { + string start = DateTime.Now.ToString("yyyy-01-01"); + string end = DateTime.Now.ToString("yyyy-12-31"); + Where = string.Format("AND `{0}` BETWEEN \"{1}\" AND \"{2}\"", "date", start, end); + } + else if (target == "" && cb_data_area.SelectedIndex == 1) + { + Where = ""; + } + else + { + Where = string.Format("AND `{0}` LIKE \"%{1}%\"", target, searchText, compidx); + if (cb_data_area.SelectedIndex == 1) + Where = "WHERE" + Where.Substring(3); + } + return Where; + } + string MakeWHEREQurey() + { + string tWhere = string.Empty; + string tText = string.Empty; + string[] tTextBox = new string[] { tbTitle.Text, tbWriter.Text, tbPublisher.Text, tbISBN.Text, Change_Grade(cbGrade.Text), cbUser.Text }; + string[] tTitle_IDX_0 = new string[] { "서명", "저자", "출판사", "isbn", "grade", "user", "date" }; + string[] tTitle_IDX_1 = new string[] { "book_name", "author", "book_comp", "isbn", "grade" }; + if (cb_data_area.SelectedIndex == 0) + { + for (int i = 0; i < tTitle_IDX_0.Length; i++) + { + if (tTextBox.Length > i && tTextBox[i] != "") + { + if (i < 4) + { + tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_0[i], tTextBox[i]); + tWhere += tText; + } + else + { + if (tTextBox[i] != "전체") + { + tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_0[i], tTextBox[i]); + tWhere += tText; + } + } + } + else if (i == tTitle_IDX_0.Length - 1 && CkDateTime.Checked && DtpStartTime.Value <= DtpEndTime.Value) + { + string start = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpStartTime.Value); + + string end = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpEndTime.Value); + tWhere += string.Format("AND `date` BETWEEN \"{0}\" AND \"{1}\"", start, end); + } + } + } + else + { + for (int i = 0; i < tTitle_IDX_1.Length; i++) + { + if (tTextBox.Length > i && tTextBox[i] != "") + { + + if (i < 4) + { + tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]); + if (tWhere == "") tText = string.Format("`{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]); + tWhere += tText; + } + else + { + if (tTextBox[i] != "전체") + { + tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]); + if (tWhere == "") tText = string.Format("`{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]); + tWhere += tText; + } + } + } + } + } + + return tWhere; + } + /// + /// 검색결과에 따라 Grid를 새로 그림 + /// + /// + bool MyDB_Sub(string chk) + { + if (chk == "1") + return true; + else + return false; + } + + + /// + /// idx값에 따라 Grade를 보기 쉽게 바꿔줌. + /// + /// DB에서 가져온 마크등급 + /// + string Change_Grade(string idx) + { + string result = string.Empty; + switch (idx) + { + case "0": + result = "A"; + break; + case "1": + result = "B"; + break; + case "2": + result = "C"; + break; + case "3": + result = "D"; + break; + + case "D": + result = "3"; + break; + case "C": + result = "2"; + break; + case "B": + result = "1"; + break; + case "A": + result = "0"; + break; + } + return result; + } + /// + /// 검색 필터에 따라 target이 변경됨 + /// + /// + (string, string) setting_target(bool isMyDB) + { + string res = ""; + string search = ""; + if (isMyDB) + { + switch (cb_filter.SelectedIndex) + { + case 1: + res = "서명"; + search = tb_search.Text; + break; + case 2: + res = "저자"; + search = tb_search.Text; + break; + case 3: + res = "출판사"; + search = tb_search.Text; + break; + case 4: + res = "isbn"; + search = tb_search.Text; + break; + case 5: + res = "grade"; + search = Change_Grade(cb_filterDetail.Text); + break; + case 6: + res = "user"; + search = cb_filterDetail.Text; + break; + case 7: + res = "date"; + break; + default: + break; + } + } + else + { + switch (cb_filter.SelectedIndex) + { + case 1: + res = "book_name"; + search = tb_search.Text; + break; + case 2: + res = "author"; + search = tb_search.Text; + break; + case 3: + res = "book_comp"; + search = tb_search.Text; + break; + case 4: + res = "isbn"; + search = tb_search.Text; + break; + case 5: + res = "grade"; + search = Change_Grade(cb_filterDetail.Text); + break; + default: + break; + } + } + return (res, search); + } + + #endregion + private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex < 0) return; + + SearchInforItem item = (SearchInforItem)bs1[e.RowIndex]; + if (item == null) return; + + var me = new Marc_Plan_Sub_MarcEdit2(item.ISBN, item.Marc); + me.row = e.RowIndex; + me.UserName = main.botUserLabel.Text; + + // Helper to load data at specific binding source position + Action loadAt = (pos) => + { + if (pos < 0 || pos >= bs1.Count) return; + bs1.Position = pos; + var currentItem = (SearchInforItem)bs1.Current; + me.LoadBook(currentItem.Marc, new MacEditorParameter + { + Author = currentItem.author, + BookName = currentItem.book_name, + ISBN13 = currentItem.ISBN, + MarcIdx = currentItem.idx, + Grade = Change_Grade(currentItem.grade), + User = currentItem.User, + SaveDate = currentItem.date, + Publisher = currentItem.book_comp, + Price = currentItem.price, + Remark1 = currentItem.etc1, + Remark2 = currentItem.etc2, + text008 = "", + tag056 = "", + NewMake = false, + OriginalMarc = currentItem.Marc + }); + }; + + loadAt(e.RowIndex); + + me.RequestNext += (s, args) => + { + if (bs1.Position < bs1.Count - 1) + { + loadAt(bs1.Position + 1); + } + }; + me.RequestPrev += (s, args) => + { + if (bs1.Position > 0) + { + loadAt(bs1.Position - 1); + } + }; + me.BookUpdated += (s, args) => + { + var currentItem = (SearchInforItem)bs1.Current; + currentItem.book_name = args.BookName; + currentItem.Marc = args.Marc; + currentItem.ISBN = args.ISBN; + currentItem.author = args.Author; + currentItem.book_comp = args.Publisher; + currentItem.price = args.Price; + currentItem.grade = Change_Grade(args.Grade); + currentItem.etc1 = args.Etc1; + currentItem.etc2 = args.Etc2; + currentItem.date = args.SaveDate; + currentItem.User = args.User; + bs1.ResetCurrentItem(); + }; + + me.RequestFillBlankData += (s, args) => + { + var dataList = new List(); + var currentBoundItem = (SearchInforItem)bs1.Current; + + for (int a = 0; a < bs1.Count; a++) + { + var mItem = (SearchInforItem)bs1.List[a]; + string mData = mItem.Marc ?? ""; + if (mData.Length < 10) + { + var itemfb = new FillBlankItem + { + Idx = a.ToString(), + Isbn = mItem.ISBN ?? "", + BookName = mItem.book_name ?? "", + Author = mItem.author ?? "", + Publisher = mItem.book_comp ?? "", + Price = mItem.price ?? "" + }; + dataList.Add(itemfb); + } + } + if (dataList.Any() == false) + { + UTIL.MsgE("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다"); + } + else me.OpenFillBlank(dataList, currentBoundItem.ISBN); + }; + + me.BulkBooksUpdated += (s, args) => + { + foreach (var kvp in args.Updates) + { + int rowIdx = kvp.Key; + string newMarc = kvp.Value; + + if (rowIdx >= 0 && rowIdx < bs1.Count) + { + var mItem = (SearchInforItem)bs1.List[rowIdx]; + mItem.Marc = newMarc; + } + } + bs1.ResetBindings(false); + }; + + me.Show(); + + + // Search_Infor_Sub sis = new Search_Infor_Sub(this); + // sis.isbn = dataGridView1.Rows[row].Cells["ISBN"].Value.ToString(); + // sis.marc = dataGridView1.Rows[row].Cells["Marc"].Value.ToString(); + // sis.Show(); + } + 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(); + } + + private void cb_data_area_SelectedIndexChanged(object sender, EventArgs e) + { + + cb_filter.Items.Clear(); + List filter = new List + { + "전체", "도서명", "저자", "출판사", "ISBN", "등급" + }; + + if (cb_data_area.SelectedIndex == 0) + { + Helper_DB db = new Helper_DB(); + db.DBcon(); + filter.Add("작성자"); + filter.Add("날짜"); + + cbUser.Items.Clear(); + cbUser.Items.Add("전체"); + string compName = main.lbCompanyName.Text; + string cmd = string.Format("SELECT `name` FROM `User_Data` WHERE `affil` = \"{0}\"", compName); + string res = db.self_Made_Cmd(cmd); + List Aryres = res.Split('|').ToList(); + Aryres.RemoveAll(x => x == ""); + cbUser.Items.AddRange(Aryres.ToArray()); + //foreach (string PName in Aryres) + //{ + // if (PName == "") + // continue; + // cbUser.Items.Add(PName); + //} + cbUser.SelectedIndex = 0; + DtpStartTime.Enabled = true; + DtpEndTime.Enabled = true; + cbUser.Enabled = true; + + } + else + { + Helper_DB db = new Helper_DB(); + db.DBcon_cl(); + cbUser.Items.Clear(); + cbUser.Items.Add("전체"); + cbUser.SelectedIndex = 0; + DtpStartTime.Enabled = false; + DtpEndTime.Enabled = false; + cbUser.Enabled = false; + } + cbGrade.SelectedIndex = 0; + + + string[] filterAry = filter.ToArray(); + cb_filter.Items.AddRange(filterAry); + cb_filter.SelectedIndex = 0; + } + + private void cb_filter_SelectedIndexChanged(object sender, EventArgs e) + { + Helper_DB db = new Helper_DB(); + cb_filterDetail.Items.Clear(); + cb_filterDetail.Enabled = true; + + if (cb_filter.SelectedItem.ToString() == "등급") + { + string[] grade = { "A", "B", "C", "D" }; + cb_filterDetail.Items.AddRange(grade); + cb_filterDetail.SelectedIndex = 0; + } + else if (cb_filter.SelectedItem.ToString() == "작성자") + { + cb_filterDetail.Items.Add("전체"); + string compName = main.lbCompanyName.Text; + string cmd = string.Format("SELECT `name` FROM `User_Data` WHERE `affil` = \"{0}\"", compName); + string res = db.self_Made_Cmd(cmd); + string[] Aryres = res.Split('|'); + + foreach (string PName in Aryres) + { + if (PName == "") + continue; + cb_filterDetail.Items.Add(PName); + } + cb_filterDetail.SelectedIndex = 0; + } + else if (cb_filter.SelectedItem.ToString() == "날짜") + { + dtp_Start.Enabled = true; + dtp_End.Enabled = true; + } + else + { + dtp_Start.Enabled = false; + dtp_End.Enabled = false; + cb_filterDetail.Enabled = false; + } + } + + private void btnViewOldData_Click(object sender, EventArgs e) + { + if (dataGridView1.CurrentCell == null) return; + int row = dataGridView1.CurrentCell.RowIndex; + if (row < 0) return; + + SearchInforItem item = (SearchInforItem)bs1[row]; + if (item == null) return; + + if (string.IsNullOrEmpty(item.marc2)) + { + MessageBox.Show("이전에 저장된 MARC 데이터가 없습니다."); + return; + } + + var me = new Marc_Plan_Sub_MarcEdit2(item.ISBN, item.marc2); + + me.row = row; + me.UserName = main.botUserLabel.Text; + + // Helper to load data at specific binding source position (using marc2 for old data) + Action loadAt = (pos) => + { + if (pos < 0 || pos >= bs1.Count) return; + bs1.Position = pos; + var currentItem = (SearchInforItem)bs1.Current; + me.LoadBook(currentItem.marc2, new MacEditorParameter + { + Author = currentItem.author, + BookName = currentItem.book_name, + ISBN13 = currentItem.ISBN, + MarcIdx = currentItem.idx, + Grade = currentItem.grade, + User = currentItem.User, + SaveDate = currentItem.date, + Publisher = currentItem.book_comp, + Price = currentItem.price, + Remark1 = currentItem.etc1, + Remark2 = currentItem.etc2, + text008 = "", + tag056 = "", + NewMake = false, + OriginalMarc = currentItem.marc2 + }); + }; + + loadAt(row); + + me.RequestNext += (s, args) => + { + if (bs1.Position < bs1.Count - 1) + { + loadAt(bs1.Position + 1); + } + }; + me.RequestPrev += (s, args) => + { + if (bs1.Position > 0) + { + loadAt(bs1.Position - 1); + } + }; + me.BookUpdated += (s, args) => + { + var currentItem = (SearchInforItem)bs1.Current; + currentItem.book_name = args.BookName; + currentItem.marc2 = args.Marc; + currentItem.ISBN = args.ISBN; + currentItem.author = args.Author; + currentItem.book_comp = args.Publisher; + currentItem.price = args.Price; + currentItem.grade = Change_Grade(args.Grade); + currentItem.etc1 = args.Etc1; + currentItem.etc2 = args.Etc2; + currentItem.date = args.SaveDate; + currentItem.User = args.User; + bs1.ResetCurrentItem(); + }; + + me.RequestFillBlankData += (s, args) => + { + var dataList = new List(); + var currentBoundItem = (SearchInforItem)bs1.Current; + + for (int a = 0; a < bs1.Count; a++) + { + var mItem = (SearchInforItem)bs1.List[a]; + string mData = mItem.marc2 ?? ""; + if (mData.Length < 10) + { + var itemfb = new FillBlankItem + { + Idx = a.ToString(), + Isbn = mItem.ISBN ?? "", + BookName = mItem.book_name ?? "", + Author = mItem.author ?? "", + Publisher = mItem.book_comp ?? "", + Price = mItem.price ?? "" + }; + dataList.Add(itemfb); + } + } + if (dataList.Any() == false) + { + UTIL.MsgE("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다"); + } + else me.OpenFillBlank(dataList, currentBoundItem.ISBN); + }; + + me.BulkBooksUpdated += (s, args) => + { + foreach (var kvp in args.Updates) + { + int rowIdx = kvp.Key; + string newMarc = kvp.Value; + + if (rowIdx >= 0 && rowIdx < bs1.Count) + { + var mItem = (SearchInforItem)bs1.List[rowIdx]; + mItem.marc2 = newMarc; + } + } + bs1.ResetBindings(false); + }; + + me.Show(); + } + } +} diff --git a/unimarc/unimarc/마크/Search_Infor2.resx b/unimarc/unimarc/마크/Search_Infor2.resx new file mode 100644 index 0000000..19f6234 --- /dev/null +++ b/unimarc/unimarc/마크/Search_Infor2.resx @@ -0,0 +1,215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + 17, 17 + + + 17, 17 + + + 171, 17 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wQAADsEBuJFr7QAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+ + +8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A + ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/ + +4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/ + xpHLcBtgkXfnf2r/a6yKDJJO/JdN+/pfN3gehhwcGGbd/h/W8hKnIv3Uy/81fKdhlQMDnbQb//2qH+JV + pOIxAaccg1Pulf8gBXgVDUoAAPB2wKtYlLYeAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wQAADsEBuJFr7QAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33 + wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ + sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE + 9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wQAADsEBuJFr7QAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5 + 8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu + I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+ + X6Bjq5qXAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wQAADsEBuJFr7QAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe + /w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/ + /tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI + ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6 + 3AZY5N35b1NwBUMzTC61/zXcS1iBYdZtrJpBACQX1vLyv27wPKzyYKCTdgOnJEjOr/rhfw3faTjV4AVO + uVf+q3hMAGN0uYEFAL7Rv7NmXVYYAAAAAElFTkSuQmCC + + + \ No newline at end of file diff --git a/unimarc/unimarc/마크/Zoom_Picture.cs b/unimarc/unimarc/마크/Zoom_Picture.cs index 4146ce8..7b23e81 100644 --- a/unimarc/unimarc/마크/Zoom_Picture.cs +++ b/unimarc/unimarc/마크/Zoom_Picture.cs @@ -28,6 +28,8 @@ namespace UniMarc string.Format("http://preview.kyobobook.co.kr/preview.jsp?siteGb=INK&ejkGb=KOR&barcode={0}&loginYn=N&orderClick=JAW", ISBN); + PreViewURL = $"https://www.aladin.co.kr/shop/wproduct.aspx?ItemId={ISBN}©Paper=1&ttbkey=ttbgloriabook1512001&start=api"; + webBrowser1.ScriptErrorsSuppressed = true; webBrowser1.Navigate(PreViewURL); }