diff --git a/unimarc/.vs/unimarc/FileContentIndex/273ac87e-1227-43fd-ac2a-1bb9653abb8d.vsidx b/unimarc/.vs/unimarc/FileContentIndex/273ac87e-1227-43fd-ac2a-1bb9653abb8d.vsidx new file mode 100644 index 0000000..9e96c50 Binary files /dev/null and b/unimarc/.vs/unimarc/FileContentIndex/273ac87e-1227-43fd-ac2a-1bb9653abb8d.vsidx differ diff --git a/unimarc/.vs/unimarc/FileContentIndex/40f51835-f2db-4be5-8601-ca4625460942.vsidx b/unimarc/.vs/unimarc/FileContentIndex/40f51835-f2db-4be5-8601-ca4625460942.vsidx new file mode 100644 index 0000000..2285af6 Binary files /dev/null and b/unimarc/.vs/unimarc/FileContentIndex/40f51835-f2db-4be5-8601-ca4625460942.vsidx differ diff --git a/unimarc/.vs/unimarc/FileContentIndex/680bd614-a1dd-47e4-a104-4341f9b91d3d.vsidx b/unimarc/.vs/unimarc/FileContentIndex/680bd614-a1dd-47e4-a104-4341f9b91d3d.vsidx deleted file mode 100644 index c302ca0..0000000 Binary files a/unimarc/.vs/unimarc/FileContentIndex/680bd614-a1dd-47e4-a104-4341f9b91d3d.vsidx and /dev/null differ diff --git a/unimarc/.vs/unimarc/FileContentIndex/a6b964b5-4509-43f9-882a-0704c4dc047b.vsidx b/unimarc/.vs/unimarc/FileContentIndex/a6b964b5-4509-43f9-882a-0704c4dc047b.vsidx deleted file mode 100644 index e0275c2..0000000 Binary files a/unimarc/.vs/unimarc/FileContentIndex/a6b964b5-4509-43f9-882a-0704c4dc047b.vsidx and /dev/null differ diff --git a/unimarc/.vs/unimarc/FileContentIndex/f2b880d4-4871-47cb-919d-2e929cf66176.vsidx b/unimarc/.vs/unimarc/FileContentIndex/ebf2395d-c266-4e21-be52-5401291b172b.vsidx similarity index 61% rename from unimarc/.vs/unimarc/FileContentIndex/f2b880d4-4871-47cb-919d-2e929cf66176.vsidx rename to unimarc/.vs/unimarc/FileContentIndex/ebf2395d-c266-4e21-be52-5401291b172b.vsidx index b85ef72..773427c 100644 Binary files a/unimarc/.vs/unimarc/FileContentIndex/f2b880d4-4871-47cb-919d-2e929cf66176.vsidx and b/unimarc/.vs/unimarc/FileContentIndex/ebf2395d-c266-4e21-be52-5401291b172b.vsidx differ diff --git a/unimarc/.vs/unimarc/v17/.suo b/unimarc/.vs/unimarc/v17/.suo index c3c305c..f0c538d 100644 Binary files a/unimarc/.vs/unimarc/v17/.suo and b/unimarc/.vs/unimarc/v17/.suo differ diff --git a/unimarc/unimarc/Skill.cs b/unimarc/unimarc/Skill.cs index 562086b..eb8064f 100644 --- a/unimarc/unimarc/Skill.cs +++ b/unimarc/unimarc/Skill.cs @@ -1928,7 +1928,6 @@ namespace WindowsFormsApp1 if (jisi[a] != searchJisi) { - MessageBox.Show(tmp); break; } diff --git a/unimarc/unimarc/bin/Debug/UniMarc.exe b/unimarc/unimarc/bin/Debug/UniMarc.exe index 437fd45..cc6c0f5 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 512069a..b0e3c1a 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 672c28b..6025816 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 56aa80e..1ae3f9a 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 437fd45..cc6c0f5 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 512069a..b0e3c1a 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 672c28b..6025816 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/마크/Marc_Plan.Designer.cs b/unimarc/unimarc/마크/Marc_Plan.Designer.cs index 51394a5..9acd702 100644 --- a/unimarc/unimarc/마크/Marc_Plan.Designer.cs +++ b/unimarc/unimarc/마크/Marc_Plan.Designer.cs @@ -28,14 +28,14 @@ /// private void InitializeComponent() { - 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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel1 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel(); this.btn_ApplyMacro = new System.Windows.Forms.Button(); @@ -59,33 +59,10 @@ this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); - this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.num = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.reg_num = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.class_code = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.author_code = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.volume = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.copy = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.prefix = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.gu = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.s_book_name1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.s_book_num1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.s_book_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.s_book_num2 = 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.midx = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.search_tag = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.WorkCopy = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.WorkFix = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.panel2 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel(); + this.btn_InputAutoCopy = new System.Windows.Forms.Button(); this.chkBox_AllowDrop = new System.Windows.Forms.CheckBox(); this.panel6 = new System.Windows.Forms.Panel(); this.chk_Alignment = new System.Windows.Forms.CheckBox(); @@ -130,6 +107,30 @@ this.panel7 = new System.Windows.Forms.Panel(); this.printDocument1 = new System.Drawing.Printing.PrintDocument(); this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog(); + this.WorkFix = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.WorkCopy = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.search_tag = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.midx = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.price = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.s_book_num2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.s_book_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.s_book_num1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.s_book_name1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.gu = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.prefix = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.copy = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.volume = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.author_code = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.class_code = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.reg_num = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.num = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel1.SuspendLayout(); this.panel4.SuspendLayout(); this.panel3.SuspendLayout(); @@ -369,14 +370,14 @@ this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.AppWorkspace; - dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.AppWorkspace; + 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.ColumnHeadersHeight = 25; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { @@ -417,190 +418,6 @@ this.dataGridView1.SortCompare += new System.Windows.Forms.DataGridViewSortCompareEventHandler(this.dataGridView1_SortCompare); this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); // - // idx - // - this.idx.HeaderText = "idx"; - this.idx.Name = "idx"; - this.idx.ReadOnly = true; - this.idx.Visible = false; - // - // num - // - this.num.FillWeight = 64.46414F; - this.num.HeaderText = "연번"; - this.num.Name = "num"; - this.num.ReadOnly = true; - this.num.Width = 50; - // - // reg_num - // - dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.reg_num.DefaultCellStyle = dataGridViewCellStyle9; - this.reg_num.FillWeight = 130.9363F; - this.reg_num.HeaderText = "등록번호"; - this.reg_num.Name = "reg_num"; - this.reg_num.Width = 102; - // - // class_code - // - dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.class_code.DefaultCellStyle = dataGridViewCellStyle10; - this.class_code.FillWeight = 76.41504F; - this.class_code.HeaderText = "분류"; - this.class_code.Name = "class_code"; - this.class_code.Width = 59; - // - // author_code - // - dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.author_code.DefaultCellStyle = dataGridViewCellStyle11; - this.author_code.FillWeight = 77.02635F; - this.author_code.HeaderText = "저자기호"; - this.author_code.Name = "author_code"; - this.author_code.Width = 60; - // - // volume - // - dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.volume.DefaultCellStyle = dataGridViewCellStyle12; - this.volume.FillWeight = 38.80909F; - this.volume.HeaderText = "V"; - this.volume.Name = "volume"; - this.volume.ToolTipText = "049v"; - this.volume.Width = 30; - // - // copy - // - dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.copy.DefaultCellStyle = dataGridViewCellStyle13; - this.copy.FillWeight = 40.14827F; - this.copy.HeaderText = "C"; - this.copy.Name = "copy"; - this.copy.ToolTipText = "049c"; - this.copy.Width = 31; - // - // prefix - // - dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.prefix.DefaultCellStyle = dataGridViewCellStyle14; - this.prefix.FillWeight = 41.51828F; - this.prefix.HeaderText = "F"; - this.prefix.Name = "prefix"; - this.prefix.ToolTipText = "049f"; - this.prefix.Width = 32; - // - // gu - // - this.gu.FillWeight = 71.64279F; - this.gu.HeaderText = "구분"; - this.gu.Name = "gu"; - this.gu.ReadOnly = true; - this.gu.Width = 56; - // - // ISBN - // - this.ISBN.HeaderText = "ISBN"; - this.ISBN.Name = "ISBN"; - this.ISBN.Visible = false; - // - // book_name - // - this.book_name.FillWeight = 291.9296F; - this.book_name.HeaderText = "도서명"; - this.book_name.Name = "book_name"; - this.book_name.ReadOnly = true; - this.book_name.Width = 226; - // - // s_book_name1 - // - this.s_book_name1.FillWeight = 129.9903F; - this.s_book_name1.HeaderText = "총서명"; - this.s_book_name1.Name = "s_book_name1"; - this.s_book_name1.ReadOnly = true; - this.s_book_name1.Width = 101; - // - // s_book_num1 - // - this.s_book_num1.FillWeight = 76.24091F; - this.s_book_num1.HeaderText = "총서번호"; - this.s_book_num1.Name = "s_book_num1"; - this.s_book_num1.ReadOnly = true; - this.s_book_num1.Width = 59; - // - // s_book_name2 - // - this.s_book_name2.HeaderText = "총서명"; - this.s_book_name2.Name = "s_book_name2"; - // - // s_book_num2 - // - this.s_book_num2.HeaderText = "총서번호"; - this.s_book_num2.Name = "s_book_num2"; - this.s_book_num2.Width = 59; - // - // author - // - this.author.FillWeight = 128.5217F; - this.author.HeaderText = "저자"; - this.author.Name = "author"; - this.author.ReadOnly = true; - // - // book_comp - // - this.book_comp.FillWeight = 125.7765F; - this.book_comp.HeaderText = "출판사"; - this.book_comp.Name = "book_comp"; - this.book_comp.ReadOnly = true; - this.book_comp.Width = 97; - // - // price - // - this.price.FillWeight = 86.15041F; - this.price.HeaderText = "정가"; - this.price.Name = "price"; - this.price.ReadOnly = true; - this.price.Width = 67; - // - // midx - // - this.midx.HeaderText = "midx"; - this.midx.Name = "midx"; - this.midx.Visible = false; - // - // marc - // - this.marc.HeaderText = "마크"; - this.marc.Name = "marc"; - // - // search_tag - // - this.search_tag.FillWeight = 185.6383F; - this.search_tag.HeaderText = "검색태그"; - this.search_tag.Name = "search_tag"; - this.search_tag.Width = 144; - // - // colCheck - // - this.colCheck.FalseValue = "F"; - this.colCheck.FillWeight = 34.79187F; - this.colCheck.HeaderText = "□"; - this.colCheck.IndeterminateValue = "F"; - this.colCheck.Name = "colCheck"; - this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.colCheck.TrueValue = "T"; - this.colCheck.Width = 27; - // - // WorkCopy - // - this.WorkCopy.HeaderText = "복본 작업용 열"; - this.WorkCopy.Name = "WorkCopy"; - // - // WorkFix - // - this.WorkFix.HeaderText = "별치 작업용 열"; - this.WorkFix.Name = "WorkFix"; - // // checkBox1 // this.checkBox1.AutoSize = true; @@ -630,6 +447,7 @@ // // panel5 // + this.panel5.Controls.Add(this.btn_InputAutoCopy); this.panel5.Controls.Add(this.chkBox_AllowDrop); this.panel5.Controls.Add(this.panel3); this.panel5.Controls.Add(this.panel2); @@ -639,6 +457,16 @@ this.panel5.Size = new System.Drawing.Size(1661, 35); this.panel5.TabIndex = 9; // + // btn_InputAutoCopy + // + this.btn_InputAutoCopy.Location = new System.Drawing.Point(1177, 7); + this.btn_InputAutoCopy.Name = "btn_InputAutoCopy"; + this.btn_InputAutoCopy.Size = new System.Drawing.Size(89, 23); + this.btn_InputAutoCopy.TabIndex = 11; + this.btn_InputAutoCopy.Text = "복본 자동부여"; + this.btn_InputAutoCopy.UseVisualStyleBackColor = true; + this.btn_InputAutoCopy.Click += new System.EventHandler(this.btn_InputAutoCopy_Click); + // // chkBox_AllowDrop // this.chkBox_AllowDrop.AutoSize = true; @@ -1100,6 +928,190 @@ this.printPreviewDialog1.Name = "printPreviewDialog1"; this.printPreviewDialog1.Visible = false; // + // WorkFix + // + this.WorkFix.HeaderText = "별치 작업용 열"; + this.WorkFix.Name = "WorkFix"; + // + // WorkCopy + // + this.WorkCopy.HeaderText = "복본 작업용 열"; + this.WorkCopy.Name = "WorkCopy"; + // + // colCheck + // + this.colCheck.FalseValue = "F"; + this.colCheck.FillWeight = 34.79187F; + this.colCheck.HeaderText = "□"; + this.colCheck.IndeterminateValue = "F"; + this.colCheck.Name = "colCheck"; + this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colCheck.TrueValue = "T"; + this.colCheck.Width = 27; + // + // search_tag + // + this.search_tag.FillWeight = 185.6383F; + this.search_tag.HeaderText = "검색태그"; + this.search_tag.Name = "search_tag"; + this.search_tag.Width = 144; + // + // marc + // + this.marc.HeaderText = "마크"; + this.marc.Name = "marc"; + // + // midx + // + this.midx.HeaderText = "midx"; + this.midx.Name = "midx"; + this.midx.Visible = false; + // + // price + // + this.price.FillWeight = 86.15041F; + this.price.HeaderText = "정가"; + this.price.Name = "price"; + this.price.ReadOnly = true; + this.price.Width = 67; + // + // book_comp + // + this.book_comp.FillWeight = 125.7765F; + this.book_comp.HeaderText = "출판사"; + this.book_comp.Name = "book_comp"; + this.book_comp.ReadOnly = true; + this.book_comp.Width = 97; + // + // author + // + this.author.FillWeight = 128.5217F; + this.author.HeaderText = "저자"; + this.author.Name = "author"; + this.author.ReadOnly = true; + // + // s_book_num2 + // + this.s_book_num2.HeaderText = "총서번호"; + this.s_book_num2.Name = "s_book_num2"; + this.s_book_num2.Width = 59; + // + // s_book_name2 + // + this.s_book_name2.HeaderText = "총서명"; + this.s_book_name2.Name = "s_book_name2"; + // + // s_book_num1 + // + this.s_book_num1.FillWeight = 76.24091F; + this.s_book_num1.HeaderText = "총서번호"; + this.s_book_num1.Name = "s_book_num1"; + this.s_book_num1.ReadOnly = true; + this.s_book_num1.Width = 59; + // + // s_book_name1 + // + this.s_book_name1.FillWeight = 129.9903F; + this.s_book_name1.HeaderText = "총서명"; + this.s_book_name1.Name = "s_book_name1"; + this.s_book_name1.ReadOnly = true; + this.s_book_name1.Width = 101; + // + // book_name + // + this.book_name.FillWeight = 291.9296F; + this.book_name.HeaderText = "도서명"; + this.book_name.Name = "book_name"; + this.book_name.ReadOnly = true; + this.book_name.Width = 226; + // + // ISBN + // + this.ISBN.HeaderText = "ISBN"; + this.ISBN.Name = "ISBN"; + this.ISBN.Visible = false; + // + // gu + // + this.gu.FillWeight = 71.64279F; + this.gu.HeaderText = "구분"; + this.gu.Name = "gu"; + this.gu.ReadOnly = true; + this.gu.Width = 56; + // + // prefix + // + dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.prefix.DefaultCellStyle = dataGridViewCellStyle7; + this.prefix.FillWeight = 41.51828F; + this.prefix.HeaderText = "F"; + this.prefix.Name = "prefix"; + this.prefix.ToolTipText = "049f"; + this.prefix.Width = 32; + // + // copy + // + dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.copy.DefaultCellStyle = dataGridViewCellStyle6; + this.copy.FillWeight = 40.14827F; + this.copy.HeaderText = "C"; + this.copy.Name = "copy"; + this.copy.ToolTipText = "049c"; + this.copy.Width = 31; + // + // volume + // + dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.volume.DefaultCellStyle = dataGridViewCellStyle5; + this.volume.FillWeight = 38.80909F; + this.volume.HeaderText = "V"; + this.volume.Name = "volume"; + this.volume.ToolTipText = "049v"; + this.volume.Width = 30; + // + // author_code + // + dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.author_code.DefaultCellStyle = dataGridViewCellStyle4; + this.author_code.FillWeight = 77.02635F; + this.author_code.HeaderText = "저자기호"; + this.author_code.Name = "author_code"; + this.author_code.Width = 60; + // + // class_code + // + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.class_code.DefaultCellStyle = dataGridViewCellStyle3; + this.class_code.FillWeight = 76.41504F; + this.class_code.HeaderText = "분류"; + this.class_code.Name = "class_code"; + this.class_code.Width = 59; + // + // reg_num + // + dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.reg_num.DefaultCellStyle = dataGridViewCellStyle2; + this.reg_num.FillWeight = 130.9363F; + this.reg_num.HeaderText = "등록번호"; + this.reg_num.Name = "reg_num"; + this.reg_num.Width = 102; + // + // num + // + this.num.FillWeight = 64.46414F; + this.num.HeaderText = "연번"; + this.num.Name = "num"; + this.num.ReadOnly = true; + this.num.Width = 50; + // + // idx + // + this.idx.HeaderText = "idx"; + this.idx.Name = "idx"; + this.idx.ReadOnly = true; + this.idx.Visible = false; + // // Marc_Plan // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); @@ -1201,6 +1213,7 @@ private System.Windows.Forms.TextBox tb_NumSize; private System.Windows.Forms.Label label24; private System.Windows.Forms.Button btn_ApplyMacro; + private System.Windows.Forms.Button btn_InputAutoCopy; private System.Windows.Forms.DataGridViewTextBoxColumn idx; private System.Windows.Forms.DataGridViewTextBoxColumn num; private System.Windows.Forms.DataGridViewTextBoxColumn reg_num; diff --git a/unimarc/unimarc/마크/Marc_Plan.cs b/unimarc/unimarc/마크/Marc_Plan.cs index 417bb0b..78be08a 100644 --- a/unimarc/unimarc/마크/Marc_Plan.cs +++ b/unimarc/unimarc/마크/Marc_Plan.cs @@ -7,6 +7,7 @@ using System.Drawing; using System.IO; using System.Linq; using System.Text; +using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; using UniMarc.마크; @@ -639,29 +640,43 @@ namespace WindowsFormsApp1.Mac if (col == 2 || col == 5 || col == 6 || col == 7) { + if (dataGridView1.Rows[row].Cells[2].Value == null) dataGridView1.Rows[row].Cells[2].Value = ""; + if (dataGridView1.Rows[row].Cells[5].Value == null) dataGridView1.Rows[row].Cells[5].Value = ""; + if (dataGridView1.Rows[row].Cells[6].Value == null) dataGridView1.Rows[row].Cells[6].Value = ""; + if (dataGridView1.Rows[row].Cells[7].Value == null) dataGridView1.Rows[row].Cells[7].Value = ""; + string L = dataGridView1.Rows[row].Cells[2].Value.ToString(); string V = dataGridView1.Rows[row].Cells[5].Value.ToString(); string C = dataGridView1.Rows[row].Cells[6].Value.ToString(); string F = dataGridView1.Rows[row].Cells[7].Value.ToString(); - if (L != "") - L = string.Format("▼l{0}", L); + if (L != "") + L = string.Format("▼l{0}", L); - if (V != "") - V = string.Format("▼v{0}", V); + if (V != "") + V = string.Format("▼v{0}", V); - if (C != "") - C = string.Format("▼c{0}", C); + if (C != "") + C = string.Format("▼c{0}", C); - if (F != "") - F = string.Format("▼f{0}", F); + if (F != "") + F = string.Format("▼f{0}", F); - AddTag = string.Format("049\t \t{0}{1}{2}{3}▲", L, V, C, F); + AddTag = string.Format("049\t \t{0}{1}{2}{3}▲", L, V, C, F); - TypeView = AddTagInMarc(AddTag, TypeView); + if (L == "" && V == "" && C == "" && F == "") { + TypeView = st.RemoveTagNumber(TypeView, "049"); + } + else { + TypeView = AddTagInMarc(AddTag, TypeView); + } } if (col == 3 || col == 4 || col == 5) { + if (dataGridView1.Rows[row].Cells[3].Value == null) dataGridView1.Rows[row].Cells[3].Value = ""; + if (dataGridView1.Rows[row].Cells[4].Value == null) dataGridView1.Rows[row].Cells[4].Value = ""; + if (dataGridView1.Rows[row].Cells[5].Value == null) dataGridView1.Rows[row].Cells[5].Value = ""; + string A = dataGridView1.Rows[row].Cells[3].Value.ToString(); string B = dataGridView1.Rows[row].Cells[4].Value.ToString(); string V = dataGridView1.Rows[row].Cells[5].Value.ToString(); @@ -679,7 +694,12 @@ namespace WindowsFormsApp1.Mac AddTag = string.Format("090\t \t{0}{1}{2}▲", A, B, V); - TypeView = AddTagInMarc(AddTag, TypeView); + if (A == "" && B == "" && V == "") { + TypeView = st.RemoveTagNumber(TypeView, "090"); + } + else { + TypeView = AddTagInMarc(AddTag, TypeView); + } } dataGridView1.Rows[row].Cells["marc"].Value = st.made_Ori_marc(TypeView); } @@ -983,5 +1003,45 @@ namespace WindowsFormsApp1.Mac e.Handled = true; } } + + private void btn_InputAutoCopy_Click(object sender, EventArgs e) + { + List Condition = new List(); + for (int a = 0; a < dataGridView1.RowCount; a++) + { + string midx = dataGridView1.Rows[a].Cells["midx"].Value.ToString(); + string reg_num = Regex.Replace(dataGridView1.Rows[a].Cells["reg_num"].Value.ToString(), @"\d", ""); + + Condition.Add(midx + reg_num); + } + + List Condi = Condition.Distinct().ToList(); + List Count = new List(); + foreach (string s in Condi) + { + string[] Temp = { s, "1" }; + Count.Add(Temp); + } + + int row = 0; + foreach (string s in Condition) + { + for (int a = 0; a < Count.Count; a++) + { + if (s == Count[a][0]) + { + int cout = Convert.ToInt32(Count[a][1]); + + if (cout > 1) + dataGridView1.Rows[row].Cells["copy"].Value = Count[a][1]; + + cout++; + Count[a][1] = cout.ToString(); + } + } + row++; + } + } + } }