=====* UniMarc [0.0123] 버전 업데이트 내용 *=====
1. 마크 반입 ㄴ> 반입시 세트 ISBN으로 가져오는 버그 수정. ㄴ> 008태그 저장 추가
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22
unimarc/unimarc/마크/Mac_Input.Designer.cs
generated
22
unimarc/unimarc/마크/Mac_Input.Designer.cs
generated
@@ -37,14 +37,15 @@
|
||||
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.series = 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.tag008 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.panel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
@@ -139,6 +140,7 @@
|
||||
this.author,
|
||||
this.book_comp,
|
||||
this.price,
|
||||
this.tag008,
|
||||
this.Marc});
|
||||
this.dataGridView1.Location = new System.Drawing.Point(12, 58);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
@@ -149,6 +151,12 @@
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
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
|
||||
//
|
||||
this.isbn.HeaderText = "ISBN";
|
||||
@@ -184,18 +192,17 @@
|
||||
this.price.Name = "price";
|
||||
this.price.Width = 70;
|
||||
//
|
||||
// tag008
|
||||
//
|
||||
this.tag008.HeaderText = "tag008";
|
||||
this.tag008.Name = "tag008";
|
||||
//
|
||||
// Marc
|
||||
//
|
||||
this.Marc.HeaderText = "마크";
|
||||
this.Marc.Name = "Marc";
|
||||
this.Marc.Width = 300;
|
||||
//
|
||||
// openFileDialog1
|
||||
//
|
||||
this.openFileDialog1.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*";
|
||||
this.openFileDialog1.InitialDirectory = "C:";
|
||||
this.openFileDialog1.Title = "열기";
|
||||
//
|
||||
// Mac_Input
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -230,6 +237,7 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn author;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn tag008;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
|
||||
}
|
||||
}
|
||||
@@ -57,15 +57,20 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
void input_Grid(string text)
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
string[] grid = text.Split('');
|
||||
for (int a = 0; a < grid.Length - 1; a++)
|
||||
{
|
||||
if (comboBox1.SelectedIndex != 0)
|
||||
grid[a] = grid[a].Replace("\r\n", "");
|
||||
|
||||
string[] data = Split_Marc(grid[a]);
|
||||
data[0] = data[0].Replace(":", "");
|
||||
data[6] = grid[a] + "";
|
||||
// string[] data = Split_Marc(grid[a]);
|
||||
// data[0] = data[0].Replace(":", "");
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
@@ -132,7 +137,10 @@ namespace WindowsFormsApp1.Mac
|
||||
string table = "Marc";
|
||||
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++)
|
||||
{
|
||||
foreach (string colName in GridCol)
|
||||
@@ -141,6 +149,7 @@ namespace WindowsFormsApp1.Mac
|
||||
dataGridView1.Rows[a].Cells[colName].Value = "";
|
||||
}
|
||||
string Marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString();
|
||||
string tag008 = dataGridView1.Rows[a].Cells["tag008"].Value.ToString();
|
||||
Marc = Marc.Replace(@"'", "'");
|
||||
Marc = Marc.Replace(@"""", "\"\"");
|
||||
try
|
||||
@@ -151,7 +160,8 @@ namespace WindowsFormsApp1.Mac
|
||||
dataGridView1.Rows[a].Cells["author"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["book_comp"].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(table, col, data);
|
||||
|
||||
@@ -135,6 +135,9 @@
|
||||
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</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">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
@@ -564,7 +564,7 @@ namespace ExcelTest
|
||||
List_Book.Rows[row_idx].Cells["pay"].Value.ToString(),
|
||||
List_Book.Rows[row_idx].Cells["url"].Value.ToString() };
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user