diff --git a/unimarc/.vs/unimarc/FileContentIndex/113aeb6f-bc21-41c3-afc1-9797cfaaecb0.vsidx b/unimarc/.vs/unimarc/FileContentIndex/113aeb6f-bc21-41c3-afc1-9797cfaaecb0.vsidx deleted file mode 100644 index 7973849..0000000 Binary files a/unimarc/.vs/unimarc/FileContentIndex/113aeb6f-bc21-41c3-afc1-9797cfaaecb0.vsidx and /dev/null differ diff --git a/unimarc/.vs/unimarc/FileContentIndex/dfd1e4b5-97e0-46c6-bf79-1acc73488b16.vsidx b/unimarc/.vs/unimarc/FileContentIndex/2ad6f2b9-9215-495e-ae43-fbcc64a90c00.vsidx similarity index 62% rename from unimarc/.vs/unimarc/FileContentIndex/dfd1e4b5-97e0-46c6-bf79-1acc73488b16.vsidx rename to unimarc/.vs/unimarc/FileContentIndex/2ad6f2b9-9215-495e-ae43-fbcc64a90c00.vsidx index 5a12cf2..b85e0a1 100644 Binary files a/unimarc/.vs/unimarc/FileContentIndex/dfd1e4b5-97e0-46c6-bf79-1acc73488b16.vsidx and b/unimarc/.vs/unimarc/FileContentIndex/2ad6f2b9-9215-495e-ae43-fbcc64a90c00.vsidx differ diff --git a/unimarc/.vs/unimarc/FileContentIndex/99e19393-caeb-4688-b6a8-cc14a4748c59.vsidx b/unimarc/.vs/unimarc/FileContentIndex/99e19393-caeb-4688-b6a8-cc14a4748c59.vsidx new file mode 100644 index 0000000..ba01f1d Binary files /dev/null and b/unimarc/.vs/unimarc/FileContentIndex/99e19393-caeb-4688-b6a8-cc14a4748c59.vsidx differ diff --git a/unimarc/.vs/unimarc/FileContentIndex/bb5ed136-a8a0-4f19-9f38-6d08f542c819.vsidx b/unimarc/.vs/unimarc/FileContentIndex/cdde9afe-fb6d-488c-ae49-2b1d39179805.vsidx similarity index 57% rename from unimarc/.vs/unimarc/FileContentIndex/bb5ed136-a8a0-4f19-9f38-6d08f542c819.vsidx rename to unimarc/.vs/unimarc/FileContentIndex/cdde9afe-fb6d-488c-ae49-2b1d39179805.vsidx index f11e302..ada49b7 100644 Binary files a/unimarc/.vs/unimarc/FileContentIndex/bb5ed136-a8a0-4f19-9f38-6d08f542c819.vsidx and b/unimarc/.vs/unimarc/FileContentIndex/cdde9afe-fb6d-488c-ae49-2b1d39179805.vsidx differ diff --git a/unimarc/.vs/unimarc/v17/.suo b/unimarc/.vs/unimarc/v17/.suo index d75b088..54975bf 100644 Binary files a/unimarc/.vs/unimarc/v17/.suo and b/unimarc/.vs/unimarc/v17/.suo differ diff --git a/unimarc/unimarc/Main.cs b/unimarc/unimarc/Main.cs index 319f767..fc1a738 100644 --- a/unimarc/unimarc/Main.cs +++ b/unimarc/unimarc/Main.cs @@ -10,6 +10,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; +using System.Net; using WindowsFormsApp1.Account; using WindowsFormsApp1.Convenience; @@ -940,18 +941,21 @@ namespace WindowsFormsApp1 } private void 복본조사ToolStripMenuItem1_Click(object sender, EventArgs e) { - if (Mac_check_Copy != null) - { - Mac_check_Copy.Focus(); - } - else - { - Mac_check_Copy = new Check_copy(this); - Mac_check_Copy.MdiParent = this; - Mac_check_Copy.WindowState = FormWindowState.Maximized; - Mac_check_Copy.FormClosed += (o, ea) => Mac_check_Copy = null; - Mac_check_Copy.Show(); - } + //if (Mac_check_Copy != null) + //{ + // Mac_check_Copy.Focus(); + //} + //else + //{ + // Mac_check_Copy = new Check_copy(this); + // Mac_check_Copy.MdiParent = this; + // Mac_check_Copy.WindowState = FormWindowState.Maximized; + // Mac_check_Copy.FormClosed += (o, ea) => Mac_check_Copy = null; + // Mac_check_Copy.Show(); + //} + + Mac_check_Copy = new Check_copy(this); + Mac_check_Copy.Show(); } private void iSBN조회ToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/unimarc/unimarc/bin/Debug/UniMarc.exe b/unimarc/unimarc/bin/Debug/UniMarc.exe index 4163ce0..86b037f 100644 Binary files a/unimarc/unimarc/bin/Debug/UniMarc.exe and b/unimarc/unimarc/bin/Debug/UniMarc.exe differ diff --git a/unimarc/unimarc/bin/Debug/UniMarc.pdb b/unimarc/unimarc/bin/Debug/UniMarc.pdb index 27d0cc9..daa2f02 100644 Binary files a/unimarc/unimarc/bin/Debug/UniMarc.pdb and b/unimarc/unimarc/bin/Debug/UniMarc.pdb differ diff --git a/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll b/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll index 95fa586..f6b5e60 100644 Binary files a/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll and b/unimarc/unimarc/bin/Debug/ko/UniMarc.resources.dll differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache b/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache index 7789fda..fc5ad78 100644 Binary files a/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache and b/unimarc/unimarc/obj/Debug/UniMarc.csproj.GenerateResource.cache differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.exe b/unimarc/unimarc/obj/Debug/UniMarc.exe index 4163ce0..86b037f 100644 Binary files a/unimarc/unimarc/obj/Debug/UniMarc.exe and b/unimarc/unimarc/obj/Debug/UniMarc.exe differ diff --git a/unimarc/unimarc/obj/Debug/UniMarc.pdb b/unimarc/unimarc/obj/Debug/UniMarc.pdb index 27d0cc9..daa2f02 100644 Binary files a/unimarc/unimarc/obj/Debug/UniMarc.pdb and b/unimarc/unimarc/obj/Debug/UniMarc.pdb differ diff --git a/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll b/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll index 95fa586..f6b5e60 100644 Binary files a/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll and b/unimarc/unimarc/obj/Debug/ko/UniMarc.resources.dll differ diff --git a/unimarc/unimarc/마크/Check_ISBN.cs b/unimarc/unimarc/마크/Check_ISBN.cs index a672198..9d56e03 100644 --- a/unimarc/unimarc/마크/Check_ISBN.cs +++ b/unimarc/unimarc/마크/Check_ISBN.cs @@ -441,13 +441,6 @@ namespace WindowsFormsApp1.Mac insert_Daum(result, a); } } - // NIKKENO1 - // bool CheckData(string isbn) - // { - // if (isbn == null || isbn == "") - // return false; - // return true; - // } bool CheckData(string isbn) { diff --git a/unimarc/unimarc/마크/Marc.cs b/unimarc/unimarc/마크/Marc.cs index 551c6b3..cad8b9d 100644 --- a/unimarc/unimarc/마크/Marc.cs +++ b/unimarc/unimarc/마크/Marc.cs @@ -82,9 +82,6 @@ namespace ExcelTest #endregion compidx = UniMarc.Properties.Settings.Default.compidx; - - // if (compidx != "3" || compidx != "1") - // this.tabControl1.TabPages.Remove(this.tabPage2); } /// @@ -96,17 +93,14 @@ namespace ExcelTest { db.DBcon(); string Area = "`idx`, `isbn_marc`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `image_url`, `m_idx`"; - // string[] sear_tbl = { "date", "list_name", "compidx" }; - // string[] sear_col = { date, value, C_idx }; string[] sear_tbl = { "l_idx", "compidx" }; string[] sear_col = { l_idx, C_idx }; lbl_BookList.Text = value; - string cmd = //db.More_DB_Search("Obj_List_Book", sear_tbl, sear_col, Area); + string cmd = string.Format("SELECT {0} " + "FROM {1} " + - // "WHERE `{2}` = \"{5}\" AND `{3}` = \"{6}\" AND `{4}` =\"{7}\" " + "WHERE `{2}` = \"{4}\" AND `{3}` = \"{5}\"" + "ORDER BY `idx` ASC;", Area, "Obj_List_Book", sear_tbl[0], sear_tbl[1], sear_col[0], sear_col[1]); string db_res = db.DB_Send_CMD_Search(cmd); @@ -118,17 +112,17 @@ namespace ExcelTest for (int a = 0; a < db_data.Length; a++) { - if (a % 11 == 0) { grid[0] = db_data[a]; } // 0: idx - if (a % 11 == 1) { grid[1] = db_data[a]; } // 1: isbn - if (a % 11 == 2) { grid[2] = db_data[a]; } // 2: header - if (a % 11 == 3) { grid[2] += db_data[a]; } // 2: num - if (a % 11 == 4) { grid[3] = db_data[a]; } // 3: book_num - if (a % 11 == 5) { grid[4] = db_data[a]; } // 4: author - if (a % 11 == 6) { grid[5] = db_data[a]; } // 5: book_comp - if (a % 11 == 7) { grid[6] = db_data[a]; } // 6: count - if (a % 11 == 8) { grid[7] = db_data[a]; } // 7: pay - if (a % 11 == 9) { grid[8] = db_data[a]; } // 8: image_url - if (a % 11 == 10) { grid[9] = db_data[a]; // 9: m_idx + if (a % 11 == 0) { grid[0] = db_data[a]; } // 0: idx + if (a % 11 == 1) { grid[1] = db_data[a]; } // 1: isbn + if (a % 11 == 2) { grid[2] = db_data[a]; } // 2: header + if (a % 11 == 3) { grid[2] += db_data[a]; } // 2: num + if (a % 11 == 4) { grid[3] = db_data[a]; } // 3: book_num + if (a % 11 == 5) { grid[4] = db_data[a]; } // 4: author + if (a % 11 == 6) { grid[5] = db_data[a]; } // 5: book_comp + if (a % 11 == 7) { grid[6] = db_data[a]; } // 6: count + if (a % 11 == 8) { grid[7] = db_data[a]; } // 7: pay + if (a % 11 == 9) { grid[8] = db_data[a]; } // 8: image_url + if (a % 11 == 10) { grid[9] = db_data[a]; // 9: m_idx List_Book.Rows.Add(grid); } } @@ -162,7 +156,6 @@ namespace ExcelTest string Chk_Cmd = string.Format("SELECT {0} FROM {1} WHERE `{2}` = \"{3}\" ORDER BY FIELD(`compidx`, {4}) DESC;", Area, Table, sear_tbl[0], sear_col[0], compidx); - //db.More_DB_Search(Table, sear_tbl, sear_col, Area); string Chk_Res = db.DB_Send_CMD_Search(Chk_Cmd); string[] Chk_Arr = Chk_Res.Split('|'); @@ -260,7 +253,6 @@ namespace ExcelTest } - // TODO: Alt+x 입력 시 "▼78"이 출력됨. 아스키코드의 문제로 보여지나 정확한 원인은 확인불가. + 색상이 파란색으로 고정됨. private void richTextBox1_KeyDown(object sender, KeyEventArgs e) { call = ((RichTextBox)sender).Name; diff --git a/unimarc/unimarc/마크/Marc.designer.cs b/unimarc/unimarc/마크/Marc.designer.cs index d81e4ce..c8a6586 100644 --- a/unimarc/unimarc/마크/Marc.designer.cs +++ b/unimarc/unimarc/마크/Marc.designer.cs @@ -28,19 +28,19 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.etc1 = new System.Windows.Forms.RichTextBox(); this.etc2 = new System.Windows.Forms.RichTextBox(); @@ -550,14 +550,14 @@ this.List_Book.AllowUserToResizeColumns = false; this.List_Book.BackgroundColor = System.Drawing.Color.Gray; this.List_Book.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle13.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; + 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.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.List_Book.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.list_idx, this.ISBN13, @@ -579,14 +579,14 @@ this.List_Book.MultiSelect = false; this.List_Book.Name = "List_Book"; this.List_Book.ReadOnly = true; - dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.ControlDark; - dataGridViewCellStyle16.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle16; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ControlDark; + dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; this.List_Book.RowTemplate.Height = 23; this.List_Book.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.List_Book.Size = new System.Drawing.Size(543, 822); @@ -685,9 +685,9 @@ // // grade // - dataGridViewCellStyle14.Format = "N0"; - dataGridViewCellStyle14.NullValue = null; - this.grade.DefaultCellStyle = dataGridViewCellStyle14; + dataGridViewCellStyle2.Format = "N0"; + dataGridViewCellStyle2.NullValue = null; + this.grade.DefaultCellStyle = dataGridViewCellStyle2; this.grade.HeaderText = "등급"; this.grade.Name = "grade"; this.grade.ReadOnly = true; @@ -696,8 +696,8 @@ // // colCheck // - dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.colCheck.DefaultCellStyle = dataGridViewCellStyle15; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.colCheck.DefaultCellStyle = dataGridViewCellStyle3; this.colCheck.HeaderText = "V"; this.colCheck.Name = "colCheck"; this.colCheck.ReadOnly = true; @@ -870,7 +870,7 @@ // this.comboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox8.FormattingEnabled = true; - this.comboBox8.Location = new System.Drawing.Point(176, 6); + this.comboBox8.Location = new System.Drawing.Point(175, 6); this.comboBox8.Name = "comboBox8"; this.comboBox8.Size = new System.Drawing.Size(79, 20); this.comboBox8.TabIndex = 225; @@ -880,7 +880,7 @@ // this.comboBox9.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBox9.FormattingEnabled = true; - this.comboBox9.Location = new System.Drawing.Point(257, 6); + this.comboBox9.Location = new System.Drawing.Point(256, 6); this.comboBox9.Name = "comboBox9"; this.comboBox9.Size = new System.Drawing.Size(52, 20); this.comboBox9.TabIndex = 225; @@ -899,12 +899,12 @@ this.panel1.Controls.Add(this.comboBox8); this.panel1.Location = new System.Drawing.Point(12, 36); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(525, 35); + this.panel1.Size = new System.Drawing.Size(524, 35); this.panel1.TabIndex = 226; // // btn_mk_marcList // - this.btn_mk_marcList.Location = new System.Drawing.Point(434, 5); + this.btn_mk_marcList.Location = new System.Drawing.Point(433, 5); this.btn_mk_marcList.Name = "btn_mk_marcList"; this.btn_mk_marcList.Size = new System.Drawing.Size(85, 23); this.btn_mk_marcList.TabIndex = 227; @@ -916,7 +916,7 @@ // this.btn_CopySelect.BackColor = System.Drawing.Color.Khaki; this.btn_CopySelect.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.btn_CopySelect.Location = new System.Drawing.Point(388, 5); + this.btn_CopySelect.Location = new System.Drawing.Point(387, 5); this.btn_CopySelect.Name = "btn_CopySelect"; this.btn_CopySelect.Size = new System.Drawing.Size(30, 23); this.btn_CopySelect.TabIndex = 319; @@ -936,7 +936,7 @@ // // btn_Search // - this.btn_Search.Location = new System.Drawing.Point(315, 5); + this.btn_Search.Location = new System.Drawing.Point(314, 5); this.btn_Search.Name = "btn_Search"; this.btn_Search.Size = new System.Drawing.Size(57, 23); this.btn_Search.TabIndex = 227; @@ -1091,8 +1091,8 @@ this.GridView020.Name = "GridView020"; this.GridView020.RowHeadersVisible = false; this.GridView020.RowHeadersWidth = 30; - dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle17; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle5; this.GridView020.RowTemplate.Height = 23; this.GridView020.Size = new System.Drawing.Size(408, 80); this.GridView020.TabIndex = 244; @@ -1159,8 +1159,8 @@ this.GridView505.Name = "GridView505"; this.GridView505.RowHeadersVisible = false; this.GridView505.RowHeadersWidth = 30; - dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle18; + dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle6; this.GridView505.RowTemplate.Height = 23; this.GridView505.Size = new System.Drawing.Size(401, 71); this.GridView505.TabIndex = 246; @@ -1293,14 +1293,14 @@ this.GridView246.AllowDrop = true; this.GridView246.AllowUserToAddRows = false; this.GridView246.AllowUserToResizeRows = false; - dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle19.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, 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.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Text246Jisi, this.Text246i, @@ -1312,8 +1312,8 @@ this.GridView246.Name = "GridView246"; this.GridView246.RowHeadersVisible = false; this.GridView246.RowHeadersWidth = 30; - dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle20; + dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle8; this.GridView246.RowTemplate.Height = 23; this.GridView246.Size = new System.Drawing.Size(493, 138); this.GridView246.TabIndex = 250; @@ -1463,14 +1463,14 @@ this.GridView440.AllowDrop = true; this.GridView440.AllowUserToAddRows = false; this.GridView440.AllowUserToResizeRows = false; - dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle21.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle21.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle21.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle21.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle21.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle21; + dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; this.GridView440.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.GridView440.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.text440a, @@ -1483,8 +1483,8 @@ this.GridView440.Name = "GridView440"; this.GridView440.RowHeadersVisible = false; this.GridView440.RowHeadersWidth = 30; - dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle22; + dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle10; this.GridView440.RowTemplate.Height = 23; this.GridView440.Size = new System.Drawing.Size(597, 71); this.GridView440.TabIndex = 245; @@ -1583,14 +1583,14 @@ this.GridView490.AllowDrop = true; this.GridView490.AllowUserToAddRows = false; this.GridView490.AllowUserToResizeRows = false; - dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle23.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11; this.GridView490.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.GridView490.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.text490a, @@ -1599,8 +1599,8 @@ this.GridView490.Name = "GridView490"; this.GridView490.RowHeadersVisible = false; this.GridView490.RowHeadersWidth = 30; - dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle24; + dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle12; this.GridView490.RowTemplate.Height = 23; this.GridView490.Size = new System.Drawing.Size(321, 71); this.GridView490.TabIndex = 247; diff --git a/unimarc/unimarc/마크/Marc_Preview.cs b/unimarc/unimarc/마크/Marc_Preview.cs index b332457..dedfe59 100644 --- a/unimarc/unimarc/마크/Marc_Preview.cs +++ b/unimarc/unimarc/마크/Marc_Preview.cs @@ -24,7 +24,7 @@ namespace UniMarc.마크 private void Mac_Preview_Load(object sender, EventArgs e) { - webBrowser1.Navigate("http://www.kyobobook.co.kr/index.laf"); + // webBrowser1.Navigate("http://www.kyobobook.co.kr/index.laf"); webBrowser2.Navigate("https://www.nl.go.kr/"); } @@ -32,7 +32,7 @@ namespace UniMarc.마크 { string Search = isbn; - KyoBo(Search); + // KyoBo(Search); NationalLibrary(Search); Kolis(Search); } diff --git a/unimarc/unimarc/홈/Transaction_manage.Designer.cs b/unimarc/unimarc/홈/Transaction_manage.Designer.cs index 993b61a..3057996 100644 --- a/unimarc/unimarc/홈/Transaction_manage.Designer.cs +++ b/unimarc/unimarc/홈/Transaction_manage.Designer.cs @@ -28,14 +28,14 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); this.NameLabel = new System.Windows.Forms.Label(); this.tb_sangho = new System.Windows.Forms.TextBox(); this.tb_addr = new System.Windows.Forms.TextBox(); @@ -107,6 +107,7 @@ this.panel1 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); + this.lbl_idx = new System.Windows.Forms.Label(); this.cb_dlsArea = new System.Windows.Forms.ComboBox(); this.label18 = new System.Windows.Forms.Label(); this.marcGrid = new System.Windows.Forms.DataGridView(); @@ -123,6 +124,10 @@ this.tb_gearEmpty = new System.Windows.Forms.Button(); this.tb_marcSave = new System.Windows.Forms.Button(); this.panel4 = new System.Windows.Forms.Panel(); + this.panel5 = new System.Windows.Forms.Panel(); + this.panel6 = new System.Windows.Forms.Panel(); + this.panel7 = new System.Windows.Forms.Panel(); + this.panel8 = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.panel1.SuspendLayout(); this.panel3.SuspendLayout(); @@ -130,6 +135,10 @@ ((System.ComponentModel.ISupportInitialize)(this.marcGrid)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gearGrid)).BeginInit(); this.panel4.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel6.SuspendLayout(); + this.panel7.SuspendLayout(); + this.panel8.SuspendLayout(); this.SuspendLayout(); // // NameLabel @@ -296,14 +305,14 @@ // this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.idx, @@ -334,18 +343,18 @@ this.dataGridView1.MultiSelect = false; this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.ReadOnly = true; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.ControlDark; - dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle2; + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.ControlDark; + dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle10; this.dataGridView1.RowHeadersWidth = 21; this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView1.Size = new System.Drawing.Size(967, 306); + this.dataGridView1.Size = new System.Drawing.Size(967, 475); this.dataGridView1.TabIndex = 44; this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); // @@ -490,9 +499,9 @@ // // tb_man1 // - this.tb_man1.Location = new System.Drawing.Point(274, 78); + this.tb_man1.Location = new System.Drawing.Point(271, 78); this.tb_man1.Name = "tb_man1"; - this.tb_man1.Size = new System.Drawing.Size(278, 21); + this.tb_man1.Size = new System.Drawing.Size(281, 21); this.tb_man1.TabIndex = 21; // // btn_search @@ -542,7 +551,7 @@ // this.tb_zip.Location = new System.Drawing.Point(74, 102); this.tb_zip.Name = "tb_zip"; - this.tb_zip.Size = new System.Drawing.Size(86, 21); + this.tb_zip.Size = new System.Drawing.Size(87, 21); this.tb_zip.TabIndex = 25; // // tb_boss @@ -729,7 +738,7 @@ this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(969, 675); + this.panel1.Size = new System.Drawing.Size(969, 844); this.panel1.TabIndex = 47; // // panel3 @@ -738,11 +747,12 @@ this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(0, 367); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(967, 306); + this.panel3.Size = new System.Drawing.Size(967, 475); this.panel3.TabIndex = 49; // // panel2 // + this.panel2.Controls.Add(this.lbl_idx); this.panel2.Controls.Add(this.NameLabel); this.panel2.Controls.Add(this.cb_dlsArea); this.panel2.Controls.Add(this.btn_add); @@ -796,6 +806,14 @@ this.panel2.Size = new System.Drawing.Size(967, 367); this.panel2.TabIndex = 48; // + // lbl_idx + // + this.lbl_idx.AutoSize = true; + this.lbl_idx.Location = new System.Drawing.Point(21, 233); + this.lbl_idx.Name = "lbl_idx"; + this.lbl_idx.Size = new System.Drawing.Size(0, 12); + this.lbl_idx.TabIndex = 48; + // // cb_dlsArea // this.cb_dlsArea.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; @@ -819,121 +837,125 @@ // this.marcGrid.AllowUserToAddRows = false; this.marcGrid.AllowUserToDeleteRows = false; - dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11; this.marcGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.marcGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column1, this.Column2, this.Column3}); - this.marcGrid.Location = new System.Drawing.Point(13, 34); + this.marcGrid.Dock = System.Windows.Forms.DockStyle.Fill; + this.marcGrid.Location = new System.Drawing.Point(0, 0); this.marcGrid.Name = "marcGrid"; this.marcGrid.RowHeadersWidth = 31; this.marcGrid.RowTemplate.Height = 23; - this.marcGrid.Size = new System.Drawing.Size(805, 350); + this.marcGrid.Size = new System.Drawing.Size(830, 502); this.marcGrid.TabIndex = 48; - this.marcGrid.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.Grid_ValueChanged); this.marcGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.marcGrid_RowPostPaint); this.marcGrid.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Grid_KeyDown); // // Column1 // - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.Column1.DefaultCellStyle = dataGridViewCellStyle4; - this.Column1.HeaderText = "날짜"; + dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.Column1.DefaultCellStyle = dataGridViewCellStyle12; + this.Column1.HeaderText = "내용"; this.Column1.Name = "Column1"; + this.Column1.Width = 150; // // Column2 // this.Column2.HeaderText = "내용"; this.Column2.Name = "Column2"; - this.Column2.Width = 350; + this.Column2.Width = 450; // // Column3 // - dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.Column3.DefaultCellStyle = dataGridViewCellStyle5; - this.Column3.HeaderText = "작성자"; + dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.Column3.DefaultCellStyle = dataGridViewCellStyle13; + this.Column3.HeaderText = "내용"; this.Column3.Name = "Column3"; + this.Column3.Width = 150; // // marcLabel // this.marcLabel.AutoSize = true; this.marcLabel.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.marcLabel.ForeColor = System.Drawing.Color.Red; - this.marcLabel.Location = new System.Drawing.Point(11, 10); + this.marcLabel.Location = new System.Drawing.Point(9, 6); this.marcLabel.Name = "marcLabel"; - this.marcLabel.Size = new System.Drawing.Size(98, 21); + this.marcLabel.Size = new System.Drawing.Size(130, 21); this.marcLabel.TabIndex = 49; - this.marcLabel.Text = "마크부분"; + this.marcLabel.Text = "마 크 부 분"; // // gearLabel // this.gearLabel.AutoSize = true; this.gearLabel.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.gearLabel.ForeColor = System.Drawing.Color.Red; - this.gearLabel.Location = new System.Drawing.Point(13, 390); + this.gearLabel.Location = new System.Drawing.Point(9, 6); this.gearLabel.Name = "gearLabel"; - this.gearLabel.Size = new System.Drawing.Size(98, 21); + this.gearLabel.Size = new System.Drawing.Size(130, 21); this.gearLabel.TabIndex = 49; - this.gearLabel.Text = "장비부분"; + this.gearLabel.Text = "장 비 부 분"; // // gearGrid // this.gearGrid.AllowUserToAddRows = false; this.gearGrid.AllowUserToDeleteRows = false; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; + dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle14.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); + dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; this.gearGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.gearGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn2, this.dataGridViewTextBoxColumn3}); - this.gearGrid.Location = new System.Drawing.Point(13, 414); + this.gearGrid.Dock = System.Windows.Forms.DockStyle.Fill; + this.gearGrid.Location = new System.Drawing.Point(0, 0); this.gearGrid.Name = "gearGrid"; this.gearGrid.RowHeadersWidth = 31; this.gearGrid.RowTemplate.Height = 23; - this.gearGrid.Size = new System.Drawing.Size(805, 247); + this.gearGrid.Size = new System.Drawing.Size(830, 272); this.gearGrid.TabIndex = 48; - this.gearGrid.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.Grid_ValueChanged); this.gearGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.marcGrid_RowPostPaint); this.gearGrid.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Grid_KeyDown); // // dataGridViewTextBoxColumn1 // - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle7; - this.dataGridViewTextBoxColumn1.HeaderText = "날짜"; + dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle15; + this.dataGridViewTextBoxColumn1.HeaderText = "내용"; this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.Width = 150; // // dataGridViewTextBoxColumn2 // this.dataGridViewTextBoxColumn2.HeaderText = "내용"; this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.Width = 350; + this.dataGridViewTextBoxColumn2.Width = 450; // // dataGridViewTextBoxColumn3 // - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle8; - this.dataGridViewTextBoxColumn3.HeaderText = "작성자"; + dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle16; + this.dataGridViewTextBoxColumn3.HeaderText = "내용"; this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.Width = 150; // // tb_marcEmpty // - this.tb_marcEmpty.Location = new System.Drawing.Point(717, 9); + this.tb_marcEmpty.Location = new System.Drawing.Point(719, 5); this.tb_marcEmpty.Name = "tb_marcEmpty"; this.tb_marcEmpty.Size = new System.Drawing.Size(101, 23); this.tb_marcEmpty.TabIndex = 50; @@ -943,7 +965,7 @@ // // tb_gearEmpty // - this.tb_gearEmpty.Location = new System.Drawing.Point(717, 389); + this.tb_gearEmpty.Location = new System.Drawing.Point(717, 5); this.tb_gearEmpty.Name = "tb_gearEmpty"; this.tb_gearEmpty.Size = new System.Drawing.Size(101, 23); this.tb_gearEmpty.TabIndex = 50; @@ -953,7 +975,7 @@ // // tb_marcSave // - this.tb_marcSave.Location = new System.Drawing.Point(138, 10); + this.tb_marcSave.Location = new System.Drawing.Point(140, 5); this.tb_marcSave.Name = "tb_marcSave"; this.tb_marcSave.Size = new System.Drawing.Size(56, 23); this.tb_marcSave.TabIndex = 50; @@ -963,24 +985,62 @@ // // panel4 // - this.panel4.Controls.Add(this.marcLabel); - this.panel4.Controls.Add(this.tb_gearEmpty); - this.panel4.Controls.Add(this.marcGrid); - this.panel4.Controls.Add(this.tb_marcSave); - this.panel4.Controls.Add(this.gearGrid); - this.panel4.Controls.Add(this.tb_marcEmpty); - this.panel4.Controls.Add(this.gearLabel); + this.panel4.Controls.Add(this.panel8); + this.panel4.Controls.Add(this.panel7); + this.panel4.Controls.Add(this.panel6); + this.panel4.Controls.Add(this.panel5); this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; this.panel4.Location = new System.Drawing.Point(969, 0); this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(830, 675); + this.panel4.Size = new System.Drawing.Size(830, 844); this.panel4.TabIndex = 51; // + // panel5 + // + this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel5.Controls.Add(this.marcLabel); + this.panel5.Controls.Add(this.tb_marcEmpty); + this.panel5.Controls.Add(this.tb_marcSave); + this.panel5.Dock = System.Windows.Forms.DockStyle.Top; + this.panel5.Location = new System.Drawing.Point(0, 0); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(830, 35); + this.panel5.TabIndex = 51; + // + // panel6 + // + this.panel6.Controls.Add(this.marcGrid); + this.panel6.Dock = System.Windows.Forms.DockStyle.Top; + this.panel6.Location = new System.Drawing.Point(0, 35); + this.panel6.Name = "panel6"; + this.panel6.Size = new System.Drawing.Size(830, 502); + this.panel6.TabIndex = 52; + // + // panel7 + // + this.panel7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel7.Controls.Add(this.gearLabel); + this.panel7.Controls.Add(this.tb_gearEmpty); + this.panel7.Dock = System.Windows.Forms.DockStyle.Top; + this.panel7.Location = new System.Drawing.Point(0, 537); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(830, 35); + this.panel7.TabIndex = 53; + // + // panel8 + // + this.panel8.Controls.Add(this.gearGrid); + this.panel8.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel8.Location = new System.Drawing.Point(0, 572); + this.panel8.Name = "panel8"; + this.panel8.Size = new System.Drawing.Size(830, 272); + this.panel8.TabIndex = 54; + // // Transaction_manage // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1799, 675); + this.ClientSize = new System.Drawing.Size(1799, 844); this.Controls.Add(this.panel4); this.Controls.Add(this.panel1); this.Name = "Transaction_manage"; @@ -994,7 +1054,12 @@ ((System.ComponentModel.ISupportInitialize)(this.marcGrid)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gearGrid)).EndInit(); this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); + this.panel6.ResumeLayout(false); + this.panel7.ResumeLayout(false); + this.panel7.PerformLayout(); + this.panel8.ResumeLayout(false); this.ResumeLayout(false); } @@ -1055,12 +1120,6 @@ private System.Windows.Forms.Button tb_marcEmpty; private System.Windows.Forms.Button tb_gearEmpty; private System.Windows.Forms.Button tb_marcSave; - private System.Windows.Forms.DataGridViewTextBoxColumn Column1; - private System.Windows.Forms.DataGridViewTextBoxColumn Column2; - private System.Windows.Forms.DataGridViewTextBoxColumn Column3; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.ComboBox cb_dlsArea; private System.Windows.Forms.Label label18; private System.Windows.Forms.DataGridViewTextBoxColumn idx; @@ -1088,5 +1147,16 @@ private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Label lbl_idx; + private System.Windows.Forms.DataGridViewTextBoxColumn Column1; + private System.Windows.Forms.DataGridViewTextBoxColumn Column2; + private System.Windows.Forms.DataGridViewTextBoxColumn Column3; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; + private System.Windows.Forms.Panel panel7; + private System.Windows.Forms.Panel panel6; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Panel panel8; } } \ No newline at end of file diff --git a/unimarc/unimarc/홈/Transaction_manage.cs b/unimarc/unimarc/홈/Transaction_manage.cs index cbd497c..5ecc45d 100644 --- a/unimarc/unimarc/홈/Transaction_manage.cs +++ b/unimarc/unimarc/홈/Transaction_manage.cs @@ -78,6 +78,7 @@ namespace WindowsFormsApp1.Home } public void btn_add_Click(object sender, EventArgs e) { + lbl_idx.Text = ""; tb_sangho.Text = ""; tb_boss.Text = ""; tb_bubin.Text = ""; @@ -152,7 +153,7 @@ namespace WindowsFormsApp1.Home cb_dlsArea.Text }; string[] searchcol = { "idx", "campanyidx" }; - string[] searchname = { dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString(), compidx }; + string[] searchname = { lbl_idx.Text, compidx }; string U_cmd = db.More_Update("Client", editcol, editname, searchcol, searchname); @@ -178,9 +179,8 @@ namespace WindowsFormsApp1.Home db.DB_Send_CMD_reVoid(Incmd); - MessageBox.Show(tb_sangho.Text + "가 성공적으로 저장되었습니다."); + MessageBox.Show(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text)); } - Made_Grid(); } private void btn_delete_Click(object sender, EventArgs e) @@ -202,6 +202,8 @@ namespace WindowsFormsApp1.Home if (RowIndex < 0) return; + btn_add_Click(null, null); + Infor_Client(RowIndex); lookup(panel4.Visible); @@ -209,80 +211,88 @@ namespace WindowsFormsApp1.Home void Infor_Client(int RowIndex) { - string[] tmp_man = dataGridView1.Rows[RowIndex].Cells["man"].Value.ToString().Split('|'); - tb_boss.Text = dataGridView1.Rows[RowIndex].Cells["boss"].Value.ToString(); - tb_bubin.Text = dataGridView1.Rows[RowIndex].Cells["bubin"].Value.ToString(); + lbl_idx.Text = dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString(); + + tb_sangho.Text = dataGridView1.Rows[RowIndex].Cells["sangho"].Value.ToString(); + tb_boss.Text = dataGridView1.Rows[RowIndex].Cells["boss"].Value.ToString(); + tb_bubin.Text = dataGridView1.Rows[RowIndex].Cells["bubin"].Value.ToString(); tb_division.Text = dataGridView1.Rows[RowIndex].Cells["division"].Value.ToString(); - tb_jongmok.Text = dataGridView1.Rows[RowIndex].Cells["jongmok"].Value.ToString(); - tb_label.Text = dataGridView1.Rows[RowIndex].Cells["label"].Value.ToString(); - tb_mail.Text = dataGridView1.Rows[RowIndex].Cells["mail"].Value.ToString(); - tb_program.Text = dataGridView1.Rows[RowIndex].Cells["program"].Value.ToString(); - tb_id.Text = dataGridView1.Rows[RowIndex].Cells["DLSid"].Value.ToString(); - tb_pw.Text = dataGridView1.Rows[RowIndex].Cells["DLSpw"].Value.ToString(); - tb_uptae.Text = dataGridView1.Rows[RowIndex].Cells["uptae"].Value.ToString(); - tb_zip.Text = dataGridView1.Rows[RowIndex].Cells["post_num"].Value.ToString(); - tb_user.Text = dataGridView1.Rows[RowIndex].Cells["assumer"].Value.ToString(); - tb_sangho.Text = dataGridView1.Rows[RowIndex].Cells["sangho"].Value.ToString(); - tb_tel.Text = dataGridView1.Rows[RowIndex].Cells["tel"].Value.ToString(); - tb_fax.Text = dataGridView1.Rows[RowIndex].Cells["fax"].Value.ToString(); + tb_jongmok.Text = dataGridView1.Rows[RowIndex].Cells["jongmok"].Value.ToString(); + tb_label.Text = dataGridView1.Rows[RowIndex].Cells["label"].Value.ToString(); + tb_mail.Text = dataGridView1.Rows[RowIndex].Cells["mail"].Value.ToString(); + tb_man.Text = dataGridView1.Rows[RowIndex].Cells["man"].Value.ToString(); + tb_man1.Text = dataGridView1.Rows[RowIndex].Cells["mantel"].Value.ToString(); + tb_program.Text = dataGridView1.Rows[RowIndex].Cells["program"].Value.ToString(); + tb_id.Text = dataGridView1.Rows[RowIndex].Cells["DLSid"].Value.ToString(); + tb_pw.Text = dataGridView1.Rows[RowIndex].Cells["DLSpw"].Value.ToString(); + tb_uptae.Text = dataGridView1.Rows[RowIndex].Cells["uptae"].Value.ToString(); + tb_zip.Text = dataGridView1.Rows[RowIndex].Cells["post_num"].Value.ToString(); + tb_user.Text = dataGridView1.Rows[RowIndex].Cells["assumer"].Value.ToString(); + tb_tel.Text = dataGridView1.Rows[RowIndex].Cells["tel"].Value.ToString(); + tb_fax.Text = dataGridView1.Rows[RowIndex].Cells["fax"].Value.ToString(); + tb_addr.Text = dataGridView1.Rows[RowIndex].Cells["addr"].Value.ToString(); - cb_dlsArea.Text = dataGridView1.Rows[RowIndex].Cells["dlsArea"].Value.ToString(); + rtb_etc.Text = dataGridView1.Rows[RowIndex].Cells["bigo"].Value.ToString(); + cb_dlsArea.Text = dataGridView1.Rows[RowIndex].Cells["dlsArea"].Value.ToString(); - if (tmp_man.Length > 1) - { - if (tmp_man[0] != "") { tb_man.Text = tmp_man[0]; } - if (tmp_man[1] != "") { tb_man1.Text = tmp_man[1]; } - } + string gubun = dataGridView1.Rows[RowIndex].Cells["gubun"].Value.ToString(); - tb_addr.Text = dataGridView1.Rows[RowIndex].Cells["addr"].Value.ToString(); - rtb_etc.Text = dataGridView1.Rows[RowIndex].Cells["bigo"].Value.ToString(); - - if (dataGridView1.Rows[RowIndex].Cells["gubun"].Value.ToString() == "학교") + if (gubun.Contains("학교") || gubun == "도서관" || gubun == "유치원") { cb_gubun1.SelectedIndex = 1; - cb_gubun2.Items.Clear(); - string[] gubun2 = { "전체", "학교", "도서관" }; - cb_gubun2.Items.AddRange(gubun2); - cb_gubun2.SelectedIndex = 1; + + switch(gubun) + { + case "유치원": + cb_gubun2.SelectedIndex = 1; + break; + case "초등학교": + cb_gubun2.SelectedIndex = 2; + break; + case "중학교": + cb_gubun2.SelectedIndex = 3; + break; + case "고등학교": + cb_gubun2.SelectedIndex = 4; + break; + case "대학교": + cb_gubun2.SelectedIndex = 5; + break; + case "학교": + cb_gubun2.SelectedIndex = 6; + break; + case "도서관": + cb_gubun2.SelectedIndex = 7; + break; + }; + } - if (dataGridView1.Rows[RowIndex].Cells["gubun"].Value.ToString() == "도서관") - { - cb_gubun1.SelectedIndex = 1; - cb_gubun2.Items.Clear(); - string[] gubun2 = { "전체", "학교", "도서관" }; - cb_gubun2.Items.AddRange(gubun2); - cb_gubun2.SelectedIndex = 2; - } - if (dataGridView1.Rows[RowIndex].Cells["gubun"].Value.ToString() == "서점") + if (gubun == "서점" || gubun == "기타") { cb_gubun1.SelectedIndex = 2; - cb_gubun2.Items.Clear(); - string[] gubun2 = { "전체", "서점", "기타" }; - cb_gubun2.Items.AddRange(gubun2); - cb_gubun2.SelectedIndex = 1; - } - if (dataGridView1.Rows[RowIndex].Cells["gubun"].Value.ToString() == "기타") - { - cb_gubun1.SelectedIndex = 2; - cb_gubun2.Items.Clear(); - string[] gubun2 = { "전체", "서점", "기타" }; - cb_gubun2.Items.AddRange(gubun2); - cb_gubun2.SelectedIndex = 2; + + switch (gubun) + { + case "서점": + cb_gubun2.SelectedIndex = 1; + break; + case "기타": + cb_gubun2.SelectedIndex = 2; + break; + }; } } private void tb_sangho_KeyDown(object sender, KeyEventArgs e) { - if(e.KeyCode == Keys.Enter) - { + if (e.KeyCode == Keys.Enter) btn_search_Click(null, null); - } } private void btn_search_Click(object sender, EventArgs e) { /// _Sub_Search_Form sub_search = new _Sub_Search_Form(this); /// sub_search.Show(); - /// + dataGridView1.Rows.Clear(); string search = "`idx`, `c_sangho`, `c_gu`, `c_boss`, `c_bubin`, " + @@ -291,38 +301,8 @@ namespace WindowsFormsApp1.Home "`c_dlsArea`, `c_dlsID`, `c_dlsPW`, `c_division`, `c_label`," + " `c_program`, `c_etc`"; string cmd = db.DB_Contains("Client", compidx, "c_sangho", tb_sangho.Text, search); - string db_res = db.DB_Send_CMD_Search(cmd); - string[] dbtext1 = db_res.Split('|'); - string[] result = { "", "", "", "", "", - "", "", "", "", "", - "", "", "", "", "", - "", "", "", "", "", - "", "" }; - for (int a = 0; a < dbtext1.Length; a++) - { - if (a % 22 == 00) { result[00] = dbtext1[a]; } // idx - if (a % 22 == 01) { result[01] = dbtext1[a]; } // 거래처명 - if (a % 22 == 02) { result[02] = dbtext1[a]; } // 구분 - if (a % 22 == 03) { result[03] = dbtext1[a]; } // 대표자명 - if (a % 22 == 04) { result[04] = dbtext1[a]; } // 등록번호 - if (a % 22 == 05) { result[05] = dbtext1[a]; } // 업태 - if (a % 22 == 06) { result[06] = dbtext1[a]; } // 종목 - if (a % 22 == 07) { result[07] = dbtext1[a]; } // 전화번호 - if (a % 22 == 08) { result[08] = dbtext1[a]; } // 팩스 - if (a % 22 == 09) { result[09] = dbtext1[a]; } // 메일 - if (a % 22 == 10) { result[10] = dbtext1[a]; } // 담당자정보1 - if (a % 22 == 11) { result[11] = dbtext1[a]; } // 담당자정보2 - if (a % 22 == 12) { result[12] = dbtext1[a]; } // 담당직원 - if (a % 22 == 13) { result[13] = dbtext1[a]; } // 우편번호 - if (a % 22 == 14) { result[14] = dbtext1[a]; } // 주소 - if (a % 22 == 15) { result[15] = dbtext1[a]; } // DLS지역 - if (a % 22 == 16) { result[16] = dbtext1[a]; } // 아이디 - if (a % 22 == 17) { result[17] = dbtext1[a]; } // 비밀번호 - if (a % 22 == 18) { result[18] = dbtext1[a]; } // 용지칸수 - if (a % 22 == 19) { result[19] = dbtext1[a]; } // 띠라벨 - if (a % 22 == 20) { result[20] = dbtext1[a]; } // 사용프로그램 - if (a % 22 == 21) { result[21] = dbtext1[a]; dataGridView1.Rows.Add(result); } // 비고 - } + db.DB_Send_CMD_Search_ApplyGrid(cmd, dataGridView1); + dataGridView1.Focus(); } private void cb_gubun1_SelectedIndexChanged(object sender, EventArgs e) @@ -330,7 +310,7 @@ namespace WindowsFormsApp1.Home if (cb_gubun1.SelectedIndex == 1) { cb_gubun2.Items.Clear(); - string[] gubun2 = { "전체", "학교", "도서관" }; + string[] gubun2 = { "전체", "유치원", "초등학교", "중학교", "고등학교", "대학교", "학교", "도서관" }; cb_gubun2.Items.AddRange(gubun2); cb_gubun2.SelectedIndex = 0; } @@ -345,6 +325,7 @@ namespace WindowsFormsApp1.Home private void btn_marc_expand_Click(object sender, EventArgs e) { + if (dataGridView1.CurrentCell == null) return; int RowIndex = dataGridView1.CurrentCell.RowIndex; if (RowIndex < 0) @@ -376,77 +357,82 @@ namespace WindowsFormsApp1.Home marcGrid.Rows.Clear(); gearGrid.Rows.Clear(); - marcGrid.Columns[0].ReadOnly = true; - gearGrid.Columns[0].ReadOnly = true; + marcGrid.Rows.Add(150); + gearGrid.Rows.Add(100); string idx = dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString(); - string Area = "`c_marc`, `c_gear`"; + string Area = "`cm_m1`, `cm_m2`, `cm_m3`"; + + string cmd = String.Format("Select {0} From {1} where cm_midx = {2} and cm_opt = {3} Order by cm_opt asc, cm_sq asc;", + Area, "custm_tbl", idx, "1"); - string cmd = db.DB_Select_Search(Area, "Client", "idx", idx); string res = db.DB_Send_CMD_Search(cmd); - string[] ary_res = res.Split('|'); + string[] tmpArray = res.Split('|'); - string[] ary_marc = ary_res[0].Split('⊙'); - string[] ary_gear = ary_res[1].Split('⊙'); + Add_Grid(tmpArray, marcGrid); - Add_Grid(ary_marc, marcGrid); - Add_Grid(ary_gear, gearGrid); + cmd = String.Format("Select {0} From {1} where cm_midx = {2} and cm_opt = {3} Order by cm_opt asc, cm_sq asc;", + Area, "custm_tbl", idx, "2"); - int marc_count = marcGrid.Rows.Count; - int gear_count = gearGrid.Rows.Count; + res = db.DB_Send_CMD_Search(cmd); + tmpArray = res.Split('|'); - if (marc_count < 150) - marcGrid.Rows.Add(150 - marc_count); - - if (gear_count < 100) - gearGrid.Rows.Add(100 - gear_count); + Add_Grid(tmpArray, gearGrid); } private void Add_Grid(string[] ary_data, DataGridView gridView) { - string[] grid = { "", "", "" }; + int rowCount = 0; for(int a = 0; a < ary_data.Length; a++) { - if (a % 3 == 0) { grid[0] = ary_data[a]; } - if (a % 3 == 1) { grid[1] = ary_data[a]; } - if (a % 3 == 2) { grid[2] = ary_data[a]; - gridView.Rows.Add(grid); - } + if (a % 3 == 0) { gridView.Rows[rowCount].Cells[0].Value = ary_data[a]; } + if (a % 3 == 1) { gridView.Rows[rowCount].Cells[1].Value = ary_data[a]; } + if (a % 3 == 2) { gridView.Rows[rowCount].Cells[2].Value = ary_data[a]; rowCount++; } } } private void tb_marcSave_Click(object sender, EventArgs e) { - int RowIndex = dataGridView1.CurrentCell.RowIndex; - - if (RowIndex < 0) + string idx = lbl_idx.Text; + + if (string.IsNullOrEmpty(idx)) return; - string[] Edit_col = { "c_marc", "c_gear" }; - string[] Edit_data = { Griddata_ToString(marcGrid), Griddata_ToString(gearGrid) }; - string[] Search_col = { "idx" }; - string[] Search_data = { dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString() }; + string Dcmd = string.Format("DELETE FROM custm_tbl WHERE cm_midx = {0}", idx); + db.DB_Send_CMD_reVoid(Dcmd); - string cmd = db.More_Update("Client", Edit_col, Edit_data, Search_col, Search_data); - db.DB_Send_CMD_reVoid(cmd); + MakeInsertCommend(marcGrid, 1, idx); + MakeInsertCommend(gearGrid, 2, idx); } - private string Griddata_ToString(DataGridView datagrid) + private void MakeInsertCommend(DataGridView dgv, int gridNum, string idx) { - string result = ""; - for (int a = 0; a < datagrid.Rows.Count; a++) + int LoopCount = 0; + string m1; + string m2; + string m3; + for (int a = 0; a < dgv.Rows.Count; a++) { - if (datagrid.Rows[a].Cells[1].Value == null) break; + if (dgv.Rows[a].Cells[0].Value == null) dgv.Rows[a].Cells[0].Value = ""; + if (dgv.Rows[a].Cells[1].Value == null) dgv.Rows[a].Cells[1].Value = ""; + if (dgv.Rows[a].Cells[2].Value == null) dgv.Rows[a].Cells[2].Value = ""; - if (datagrid.Rows[a].Cells[1].Value.ToString() == "") break; - - string date = datagrid.Rows[a].Cells[0].Value.ToString(); - string content = datagrid.Rows[a].Cells[1].Value.ToString(); - string charge = datagrid.Rows[a].Cells[2].Value.ToString(); - - result += string.Format("{0}⊙{1}⊙{2}⊙", date, content, charge); + if (dgv.Rows[a].Cells[0].Value.ToString() != "") LoopCount = a; + if (dgv.Rows[a].Cells[1].Value.ToString() != "") LoopCount = a; + if (dgv.Rows[a].Cells[2].Value.ToString() != "") LoopCount = a; + } + + for (int a = 0; a < LoopCount + 1; a++) + { + m1 = dgv.Rows[a].Cells[0].Value.ToString(); + m2 = dgv.Rows[a].Cells[1].Value.ToString(); + m3 = dgv.Rows[a].Cells[2].Value.ToString(); + + string Icmd = string.Format("INSERT INTO custm_tbl (cm_m1, cm_m2, cm_m3, cm_sq, cm_opt, cm_midx)" + + " values(\"{0}\", \"{1}\", \"{2}\", {3}, {4}, {5});", m1, m2, m3, a, gridNum, idx); + + db.DB_Send_CMD_reVoid(Icmd); } - return result; } private void marcGrid_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) @@ -472,24 +458,10 @@ namespace WindowsFormsApp1.Home private void Grid_KeyDown(object sender, KeyEventArgs e) { Skill_Grid sg = new Skill_Grid(); + sg.Excel_to_DataGridView(sender, e); sg.DataGrid_to_Delete(sender, e); } - private void Grid_ValueChanged(object sender, DataGridViewCellEventArgs e) - { - DataGridView gridView = sender as DataGridView; - - if (gridView.CurrentCell == null) return; - - if (e.ColumnIndex == 1) - { - string date = DateTime.Now.ToString("yyyy-MM-dd"); - string charge = main.botUserLabel.Text; - - gridView.Rows[e.RowIndex].Cells[0].Value = date; - gridView.Rows[e.RowIndex].Cells[2].Value = charge; - } - } private void btn_close_Click(object sender, EventArgs e) { Close();