=====* UniMarc [0.0123] 버전 업데이트 내용 *=====

1. 마크 반입
ㄴ> 반입시 세트 ISBN으로 가져오는 버그 수정.
ㄴ> 008태그 저장 추가
This commit is contained in:
SeungHo Yang
2022-02-10 15:44:51 +09:00
parent c5aa23801e
commit df5b43cd17
13 changed files with 34 additions and 13 deletions

Binary file not shown.

View File

@@ -37,14 +37,15 @@
this.comboBox1 = new System.Windows.Forms.ComboBox(); this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.series = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.series = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tag008 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@@ -139,6 +140,7 @@
this.author, this.author,
this.book_comp, this.book_comp,
this.price, this.price,
this.tag008,
this.Marc}); this.Marc});
this.dataGridView1.Location = new System.Drawing.Point(12, 58); this.dataGridView1.Location = new System.Drawing.Point(12, 58);
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
@@ -149,6 +151,12 @@
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyUp); this.dataGridView1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyUp);
// //
// openFileDialog1
//
this.openFileDialog1.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*";
this.openFileDialog1.InitialDirectory = "C:";
this.openFileDialog1.Title = "열기";
//
// isbn // isbn
// //
this.isbn.HeaderText = "ISBN"; this.isbn.HeaderText = "ISBN";
@@ -184,18 +192,17 @@
this.price.Name = "price"; this.price.Name = "price";
this.price.Width = 70; this.price.Width = 70;
// //
// tag008
//
this.tag008.HeaderText = "tag008";
this.tag008.Name = "tag008";
//
// Marc // Marc
// //
this.Marc.HeaderText = "마크"; this.Marc.HeaderText = "마크";
this.Marc.Name = "Marc"; this.Marc.Name = "Marc";
this.Marc.Width = 300; this.Marc.Width = 300;
// //
// openFileDialog1
//
this.openFileDialog1.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*";
this.openFileDialog1.InitialDirectory = "C:";
this.openFileDialog1.Title = "열기";
//
// Mac_Input // Mac_Input
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -230,6 +237,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn author; private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp; private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn price; private System.Windows.Forms.DataGridViewTextBoxColumn price;
private System.Windows.Forms.DataGridViewTextBoxColumn tag008;
private System.Windows.Forms.DataGridViewTextBoxColumn Marc; private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
} }
} }

View File

@@ -57,15 +57,20 @@ namespace WindowsFormsApp1.Mac
} }
void input_Grid(string text) void input_Grid(string text)
{ {
String_Text st = new String_Text();
string[] grid = text.Split(''); string[] grid = text.Split('');
for (int a = 0; a < grid.Length - 1; a++) for (int a = 0; a < grid.Length - 1; a++)
{ {
if (comboBox1.SelectedIndex != 0) if (comboBox1.SelectedIndex != 0)
grid[a] = grid[a].Replace("\r\n", ""); grid[a] = grid[a].Replace("\r\n", "");
string[] data = Split_Marc(grid[a]); // string[] data = Split_Marc(grid[a]);
data[0] = data[0].Replace(":", ""); // data[0] = data[0].Replace(":", "");
data[6] = grid[a] + ""; // data[6] = grid[a] + "";
string[] Tag = { "020a", "245a", "440a", "245d", "260b", "950b", "008", "950a" };
string[] data = st.Take_Tag(grid[a], Tag);
data[7] = grid[a] + "";
dataGridView1.Rows.Add(data); dataGridView1.Rows.Add(data);
} }
} }
@@ -132,7 +137,10 @@ namespace WindowsFormsApp1.Mac
string table = "Marc"; string table = "Marc";
string[] GridCol = { "isbn", "book_name", "series", "author", "book_comp", "price" }; string[] GridCol = { "isbn", "book_name", "series", "author", "book_comp", "price" };
string[] col = { "ISBN", "서명", "총서명", "저자", "출판사", "가격", "marc", "marc_chk", "compidx", "grade", "date", "user" }; string[] col = {
"ISBN", "서명", "총서명", "저자", "출판사", "가격",
"marc", "marc_chk", "compidx", "grade", "date",
"user", "008tag" };
for(int a = 0; a < dataGridView1.Rows.Count; a++) for(int a = 0; a < dataGridView1.Rows.Count; a++)
{ {
foreach (string colName in GridCol) foreach (string colName in GridCol)
@@ -141,6 +149,7 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[a].Cells[colName].Value = ""; dataGridView1.Rows[a].Cells[colName].Value = "";
} }
string Marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString(); string Marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString();
string tag008 = dataGridView1.Rows[a].Cells["tag008"].Value.ToString();
Marc = Marc.Replace(@"'", "'"); Marc = Marc.Replace(@"'", "'");
Marc = Marc.Replace(@"""", "\"\""); Marc = Marc.Replace(@"""", "\"\"");
try try
@@ -151,7 +160,8 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[a].Cells["author"].Value.ToString(), dataGridView1.Rows[a].Cells["author"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_comp"].Value.ToString(), dataGridView1.Rows[a].Cells["book_comp"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(), dataGridView1.Rows[a].Cells["price"].Value.ToString(),
Marc, "1", compidx, "2", Time, user }; Marc, "1", compidx, "2", Time,
user, tag008 };
// string Incmd = db.DB_INSERT_DUPLICATE(table, col, data); // string Incmd = db.DB_INSERT_DUPLICATE(table, col, data);
string Incmd = db.DB_INSERT(table, col, data); string Incmd = db.DB_INSERT(table, col, data);

View File

@@ -135,6 +135,9 @@
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="tag008.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="Marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>

View File

@@ -564,7 +564,7 @@ namespace ExcelTest
List_Book.Rows[row_idx].Cells["pay"].Value.ToString(), List_Book.Rows[row_idx].Cells["pay"].Value.ToString(),
List_Book.Rows[row_idx].Cells["url"].Value.ToString() }; List_Book.Rows[row_idx].Cells["url"].Value.ToString() };
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = st.made_Ori_marc(richTextBox1).Replace("\\", "₩"); string orimarc = st.made_Ori_marc(richTextBox1).Replace(@"\", "₩");
// 필수태그 확인 // 필수태그 확인
if (!isMustTag(orimarc)) { if (!isMustTag(orimarc)) {