=====* unimarc *=====

기능 작업 완료
테스트 작업 진행예정.
This commit is contained in:
SeungHo Yang
2021-11-02 18:38:08 +09:00
parent a70a396a2c
commit 9466ca0a1e
40 changed files with 2582 additions and 663 deletions

3
.gitignore vendored
View File

@@ -23,4 +23,5 @@ Split_Marc/
Test_Update/
Barum_TestProject/
MacroTest/
AlarmTest/
AlarmTest/
Output_Excel/

Binary file not shown.

View File

@@ -20,6 +20,8 @@ namespace WindowsFormsApp1
private void login_Load(object sender, EventArgs e)
{
this.ActiveControl = ID_text;
// 삭제대상.
ID_text.Text = "sh";
PW_text.Text = "123";
@@ -56,10 +58,16 @@ namespace WindowsFormsApp1
this.Close();
}
private void ID_text_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) { this.ActiveControl = PW_text; }
if (e.KeyCode == Keys.Escape) { this.Close(); }
}
private void PW_text_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) { button1_Click(null, null); }
if (e.KeyCode == Keys.Escape) { this.Close(); }
}
private void button3_Click(object sender, EventArgs e)
@@ -68,12 +76,5 @@ namespace WindowsFormsApp1
PW_text.Text = "admin";
button1_Click(null, null);
}
private void ID_text_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
PW_text.Focus();
}
}
}
}

View File

@@ -589,21 +589,21 @@
// 서류작성ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "서류작성ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "서류작성";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 마크통계ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "마크통계ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "마크통계";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 장비관리ToolStripMenuItem1
//
this.ToolStripMenuItem1.Name = "장비관리ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(122, 22);
this.ToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem1.Text = "장비관리";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
//

View File

@@ -188,6 +188,12 @@
<Compile Include="마크\Marc_mkList.Designer.cs">
<DependentUpon>Marc_mkList.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_MarcEdit.Designer.cs">
<DependentUpon>Marc_Plan_Sub_MarcEdit.cs</DependentUpon>
</Compile>
<Compile Include="마크\Marc_Plan_Sub_SelectList.cs">
<SubType>Form</SubType>
</Compile>
@@ -719,6 +725,9 @@
<EmbeddedResource Include="마크\Marc_mkList.resx">
<DependentUpon>Marc_mkList.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Plan_Sub_MarcEdit.resx">
<DependentUpon>Marc_Plan_Sub_MarcEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Marc_Plan_Sub_SelectList.resx">
<DependentUpon>Marc_Plan_Sub_SelectList.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -1 +1 @@
89b339d175dcfbb49c4dfa5feca9d6593ebfae6d
dd0005ff570f47ea40ad656026054da24dc4d556

View File

@@ -124,3 +124,4 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\WindowsFormsApp
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_Sub_SelectList.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_mkList.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_Sub_SelectList_Edit.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_Sub_MarcEdit.resources

View File

@@ -28,8 +28,8 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_idx = new System.Windows.Forms.Label();
this.tb_isbn = new System.Windows.Forms.TextBox();
@@ -432,7 +432,7 @@
// btn_close
//
this.btn_close.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_close.Location = new System.Drawing.Point(561, 6);
this.btn_close.Location = new System.Drawing.Point(564, 6);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 3;
@@ -443,7 +443,7 @@
// btn_save
//
this.btn_save.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_save.Location = new System.Drawing.Point(472, 6);
this.btn_save.Location = new System.Drawing.Point(483, 6);
this.btn_save.Name = "btn_save";
this.btn_save.Size = new System.Drawing.Size(75, 23);
this.btn_save.TabIndex = 3;
@@ -520,14 +520,14 @@
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
this.dataGridView1.AllowUserToResizeRows = false;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
@@ -535,14 +535,14 @@
this.Column4,
this.Column5,
this.Column6});
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(9, 311);
this.dataGridView1.Name = "dataGridView1";

View File

@@ -172,6 +172,7 @@ namespace WindowsFormsApp1.Delivery
string[] search_data = { compidx, list_name };
string cmd = db.More_DB_Search("Obj_List", where_table, search_data,
"`clt`, `dly`, `charge`, `date`, `date_res`");
cmd = db.DB_Send_CMD_Search(cmd);
string[] data = cmd.Split('|');
tb_List_name.Text = list_name;
tb_charge.Text = data[2];
@@ -205,10 +206,12 @@ namespace WindowsFormsApp1.Delivery
* idx 도서명 저자 출판사 isbn
* 정가 수량 입고수 합계금액 비고
* 주문처 주문일자 */
string[] Table = { "compidx", "book_name", "author", "book_comp", "isbn",
string[] Table = {
"compidx", "book_name", "author", "book_comp", "isbn",
"pay", "count", "input_count", "total", "etc",
"order", "order_date", "list_name" };
string[] List_book = { compidx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
string[] List_book = {
compidx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text,
tb_order1.Text, tb_order_date.Text, tb_List_name.Text };
string[] idx_table = { "idx" };
@@ -243,11 +246,13 @@ namespace WindowsFormsApp1.Delivery
string[] edit_tbl = { "input_count", "import", "import_date" };
string[] edit_col = { tb_stock.Text, "미입고", "" };
string[] search_tbl = { "compidx", "list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_tbl = { "compidx",
"list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_col = { compidx,
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
db.DB_Send_CMD_reVoid(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 미입고처리되었습니다.");
mk_Grid();
}

View File

@@ -76,7 +76,6 @@ namespace WindowsFormsApp1.Delivery
openFileDialog1.Filter = "텍스트 파일 (*.txt)|*.txt|모든 파일(*.*)|*.*";
String file_path = null;
string file_con = null;
openFileDialog1.InitialDirectory = "C:\\Users\\Administrator\\Desktop"; // 시작위치 "바탕화면"
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
@@ -90,13 +89,11 @@ namespace WindowsFormsApp1.Delivery
using (StreamReader sr = new StreamReader(file_path, Encoding.UTF8))
{
// 불러온 파일의 내용을 표에 적용
string[] Cell_result = null;
string[] collumn_result;
file_con = sr.ReadToEnd();
Cell_result = file_con.Split('\n');
string file_con = sr.ReadToEnd();
string[] Cell_result = file_con.Split('\n');
for(int a = 0; a < Cell_result.Length; a++)
{
collumn_result = Cell_result[a].Split('\t');
string[] collumn_result = Cell_result[a].Split('\t');
richTextBox1.Text += Cell_result[a] + "\n";
for(int b = 0; b < collumn_result.Length; b++)
{

View File

@@ -28,9 +28,9 @@
/// </summary>
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();
this.label1 = new System.Windows.Forms.Label();
this.tb_search_order = new System.Windows.Forms.TextBox();
this.cb_user = new System.Windows.Forms.ComboBox();
@@ -418,14 +418,15 @@
//
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.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
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.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.chk,
this.order,
@@ -444,24 +445,24 @@
this.send_date,
this.num,
this.idx});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView1.Location = new System.Drawing.Point(9, 142);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
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;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
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;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
this.dataGridView1.RowHeadersWidth = 10;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;

View File

@@ -265,60 +265,68 @@ namespace WindowsFormsApp1.Delivery
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0 && e.ColumnIndex == 0)
int row = dataGridView1.CurrentCell.RowIndex;
int col = dataGridView1.CurrentCell.ColumnIndex;
if (row >= 0 && col == 0)
{
grididx = e.RowIndex;
ColumnIndex = e.ColumnIndex;
grididx = row;
ColumnIndex = col;
}
if( dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Selected == dataGridView1.Rows[e.RowIndex].Cells["chk"].Selected)
if (dataGridView1.Rows[row].Cells[col].Selected == dataGridView1.Rows[row].Cells["chk"].Selected)
{
if (dataGridView1.Rows[e.RowIndex].Cells["chk"].Value.ToString() == "true") {
dataGridView1.Rows[e.RowIndex].Cells["chk"].Value = "false";
if (dataGridView1.Rows[row].Cells["chk"].Value.ToString() == "true")
{
dataGridView1.Rows[row].Cells["chk"].Value = "false";
}
else if (dataGridView1.Rows[e.RowIndex].Cells["chk"].Value.ToString() == "false") {
dataGridView1.Rows[e.RowIndex].Cells["chk"].Value = "true";
else if (dataGridView1.Rows[row].Cells["chk"].Value.ToString() == "false")
{
dataGridView1.Rows[row].Cells["chk"].Value = "true";
}
}
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
grididx = e.RowIndex;
ColumnIndex = e.ColumnIndex;
if (e.ColumnIndex == 0 || e.ColumnIndex == 1 || e.ColumnIndex == 14 ||
e.ColumnIndex == 6 || e.ColumnIndex == 15 || e.ColumnIndex == 16)
int row = dataGridView1.CurrentCell.RowIndex;
int col = dataGridView1.CurrentCell.ColumnIndex;
grididx = dataGridView1.CurrentCell.RowIndex;
ColumnIndex = dataGridView1.CurrentCell.ColumnIndex;
if (col == 0 || col == 1 || col == 14 ||
col == 6 || col == 15 || col == 16)
{ return; }
if(e.ColumnIndex == 3 || e.ColumnIndex == 4 || e.ColumnIndex == 5)
if(col == 3 || col == 4 || col == 5)
{
Book_Lookup bl = new Book_Lookup(this);
bl.TopMost = true;
string book_name = ((DataGridView)sender).Rows[e.RowIndex].Cells["Book_name"].Value.ToString();
string author = ((DataGridView)sender).Rows[e.RowIndex].Cells["author"].Value.ToString();
string book_comp = ((DataGridView)sender).Rows[e.RowIndex].Cells["Book_comp"].Value.ToString();
string list_name = ((DataGridView)sender).Rows[e.RowIndex].Cells["list_name"].Value.ToString();
string book_name = ((DataGridView)sender).Rows[row].Cells["Book_name"].Value.ToString();
string author = ((DataGridView)sender).Rows[row].Cells["author"].Value.ToString();
string book_comp = ((DataGridView)sender).Rows[row].Cells["Book_comp"].Value.ToString();
string list_name = ((DataGridView)sender).Rows[row].Cells["list_name"].Value.ToString();
bl.Lookup_Load(book_name, author, book_comp, list_name);
bl.Show();
return;
}
if (e.ColumnIndex == 2 && !chk_V)
if (col == 2 && !chk_V)
{
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "V";
dataGridView1.Rows[row].Cells[col].Value = "V";
chk_V = true;
}
else if (e.ColumnIndex == 2 && chk_V)
else if (col == 2 && chk_V)
{
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "";
dataGridView1.Rows[row].Cells[col].Value = "";
chk_V = false;
}
if (e.ColumnIndex == 13 && dataGridView1.Rows[grididx].Cells[ColumnIndex].Value.ToString() != "")
if (col == 13 && dataGridView1.Rows[grididx].Cells[ColumnIndex].Value.ToString() != "")
{
dataGridView1.Rows[e.RowIndex].Cells["order_date"].Value = "";
chk_mkdate = chk_mkdate.Replace("." + e.RowIndex + ", ", "");
dataGridView1.Rows[row].Cells["order_date"].Value = "";
chk_mkdate = chk_mkdate.Replace("." + row + ", ", "");
}
else if (e.ColumnIndex == 13 && dataGridView1.Rows[grididx].Cells[ColumnIndex].Value.ToString() == "")
else if (col == 13 && dataGridView1.Rows[grididx].Cells[ColumnIndex].Value.ToString() == "")
{
dataGridView1.Rows[e.RowIndex].Cells["order_date"].Value = DateTime.Now.ToString("d");
chk_mkdate += "." + e.RowIndex + ", ";
dataGridView1.Rows[row].Cells["order_date"].Value = DateTime.Now.ToString("d");
chk_mkdate += "." + row + ", ";
}
}
private void tb_search_book_list_KeyDown(object sender, KeyEventArgs e)
@@ -440,9 +448,11 @@ namespace WindowsFormsApp1.Delivery
switch (emchk)
{
case "0":
MessageBox.Show("팩스");
Send_FAX(pur, filename, filePath);
break;
case "1":
MessageBox.Show("메일");
Send_Email(pur, filename, filePath);
break;
}
@@ -464,6 +474,7 @@ namespace WindowsFormsApp1.Delivery
if (Path.GetFileName(info.Name) == file_name)
{
path = path.Replace(Application.StartupPath, "");
if (!ftp.UpLoad(path, info.FullName))
MessageBox.Show("FTP Upload 실패");

View File

@@ -73,7 +73,12 @@ namespace WindowsFormsApp1.마크
if (Call_API == "알라딘")
return String.Format("{0:yyyy/MM/dd}", DateTime.Parse(date.Remove(date.IndexOf(" G"))));
else if (Call_API == "네이버")
{
if (date.Length < 5)
return date;
return DateTime.ParseExact(date, "yyyyMMdd", null).ToString("yyyy-MM-dd");
}
else
return date;
}

View File

@@ -9,6 +9,52 @@ namespace ExcelTest
{
class Help008Tag
{
/// <summary>
/// 이용자 9개
/// </summary>
public string[] combo1 = { "일반", "유아", "아동", "초등", "중학생",
"고등학생", "성인용 19금", "특수계층", "미상" };
/// <summary>
/// 자료형식 3개
/// </summary>
public string[] combo2 = { "해당무", "큰 글자", "점자" };
/// <summary>
/// 내용형식 28개
/// </summary>
public string[] combo3 = { "해당무", "만화/그래픽노블", "사전", "백과사전", "평론",
"통계자료", "명감", "연감", "족보", "조약, 협정문",
"학위논문", "법률논문", "법령집", "판례집 및 판례요약집", "판결보도 및 판결 평석",
"별쇄본", "역서(전체)", "음반목록", "영화작품목록", "초록",
"서지", "목록", "편람", "색인", "조사보고",
"기술보고서", "프로그램화된 텍스트", "표준/표준해설자료"};
/// <summary>
/// 문학형식 16개
/// </summary>
public string[] combo4 = { "해당무", "소설", "추리소설", "단편소설", "시",
"수필", "희곡/시나리오", "문집", "기행문/일기문/수기", "평론",
"논픽션", "연설문", "논설문", "향가/시조", "풍자문학",
"서간문학" };
/// <summary>
/// 전기 5개
/// </summary>
public string[] combo5 = { "해당무", "자서전", "개인전기서", "전기물의 합저서", "전기적 정보가 포함된 자료" };
/// <summary>
/// 언어 36개
/// </summary>
public string[] combo6 = { "한국어", "영어", "일본어", "중국어", "독일어",
"프랑스어", "러시아어", "스페인어", "이탈리아어", "네덜란드어",
"핀란드어", "스웨덴어", "포르투갈어", "노르웨이어", "그리스어",
"체코어", "폴란드어", "다국어", "말레이시아어", "몽골어",
"미얀마(버마어)", "베트남어", "슬로베니아어", "아랍어", "아프리카어",
"에스토니아어", "우즈베키스탄어", "우크라이나어", "인도(마라티어)", "캄보디아어",
"태국어", "터키어", "투르크메니스탄어", "티베르어", "필리핀(타갈로그어)",
"헝가리어" };
public string Combo_Change(string Text, string Name, int idx)
{
char[] textArray = Text.ToCharArray();

View File

@@ -8,6 +8,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using UniMarc.;
namespace ExcelTest
{
@@ -16,11 +17,17 @@ namespace ExcelTest
public string tbName = "";
public string call = "";
Marc mac;
Marc_Plan_Sub_MarcEdit me;
public Helper008(Marc _mac)
{
InitializeComponent();
mac = _mac;
}
public Helper008(Marc_Plan_Sub_MarcEdit _me)
{
InitializeComponent();
me = _me;
}
private void Helper008_Load(object sender, EventArgs e)
{
@@ -44,29 +51,23 @@ namespace ExcelTest
{
for (int a = 0; a < college.Length; a++)
{
if (college[a].Contains(strValue) == true)
{
if (college[a].Contains(strValue))
dataGridView1.Rows.Add(college[a], collegecode[a]);
}
}
}
else if (strValue1 == "text008gov")
{
for (int a = 0; a < Government.Length; a++)
{
if (Government[a].Contains(strValue) == true)
{
if (Government[a].Contains(strValue))
dataGridView1.Rows.Add(Government[a], GovernmentCode[a]);
}
}
}
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
string result = dataGridView1.Rows[e.RowIndex].Cells[1].FormattedValue.ToString();
if (tbName == "text008col") { mac.col008res.Text = result; }
if (tbName == "text008gov") { mac.gov008res.Text = result; }
data_res(e.RowIndex);
this.Close();
}
@@ -74,9 +75,7 @@ namespace ExcelTest
{
if (e.KeyCode == Keys.Enter)
{
string result = dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Cells[1].FormattedValue.ToString();
if (tbName == "text008col") { mac.col008res.Text = result; }
if (tbName == "text008gov") { mac.gov008res.Text = result; }
data_res(dataGridView1.CurrentCell.RowIndex);
this.Close();
}
else if (e.KeyCode == Keys.Escape)
@@ -84,5 +83,13 @@ namespace ExcelTest
this.Close();
}
}
private void data_res(int row)
{
string result = dataGridView1.Rows[row].Cells[1].FormattedValue.ToString();
if (tbName == "text008col" && mac != null) mac.col008res.Text = result;
if (tbName == "text008gov" && mac != null) mac.gov008res.Text = result;
if (tbName == "text008col" && me != null) me.col008res.Text = result;
if (tbName == "text008gov" && me != null) me.gov008res.Text = result;
}
}
}

View File

@@ -25,6 +25,7 @@ namespace ExcelTest
Helper_DB db = new Helper_DB();
Help008Tag tag008 = new Help008Tag();
Skill_Search_Text search_Text = new Skill_Search_Text();
String_Text st = new String_Text();
Mac_List ml;
public Marc()
@@ -40,47 +41,25 @@ namespace ExcelTest
private void Marc_Load(object sender, EventArgs e)
{
// ComboBox Item Setting
#region ComboBox Item Setting
// 이용자 9
string[] combo1 = { "일반", "유아", "아동", "초등", "중학생",
"고등학생", "성인용 19금", "특수계층", "미상" };
comboBox1.Items.AddRange(combo1);
comboBox1.Items.AddRange(tag008.combo1);
// 자료형식 3
string[] combo2 = { "해당무", "큰 글자", "점자" };
comboBox2.Items.AddRange(combo2);
comboBox2.Items.AddRange(tag008.combo2);
// 내용형식 28
string[] combo3 = { "해당무", "만화/그래픽노블", "사전", "백과사전", "평론",
"통계자료", "명감", "연감", "족보", "조약, 협정문",
"학위논문", "법률논문", "법령집", "판례집 및 판례요약집", "판결보도 및 판결 평석",
"별쇄본", "역서(전체)", "음반목록", "영화작품목록", "초록",
"서지", "목록", "편람", "색인", "조사보고",
"기술보고서", "프로그램화된 텍스트", "표준/표준해설자료"};
comboBox3.Items.AddRange(combo3);
comboBox7.Items.AddRange(combo3);
comboBox3.Items.AddRange(tag008.combo3);
comboBox7.Items.AddRange(tag008.combo3);
// 문학형식 16
string[] combo4 = { "해당무", "소설", "추리소설", "단편소설", "시",
"수필", "희곡/시나리오", "문집", "기행문/일기문/수기", "평론",
"논픽션", "연설문", "논설문", "향가/시조", "풍자문학",
"서간문학" };
comboBox4.Items.AddRange(combo4);
comboBox4.Items.AddRange(tag008.combo4);
// 전기 5
string[] combo5 = { "해당무", "자서전", "개인전기서", "전기물의 합저서", "전기적 정보가 포함된 자료" };
comboBox5.Items.AddRange(combo5);
comboBox5.Items.AddRange(tag008.combo5);
// 언어 36
string[] combo6 = { "한국어", "영어", "일본어", "중국어", "독일어",
"프랑스어", "러시아어", "스페인어", "이탈리아어", "네덜란드어",
"핀란드어", "스웨덴어", "포르투갈어", "노르웨이어", "그리스어",
"체코어", "폴란드어", "다국어", "말레이시아어", "몽골어",
"미얀마(버마어)", "베트남어", "슬로베니아어", "아랍어", "아프리카어",
"에스토니아어", "우즈베키스탄어", "우크라이나어", "인도(마라티어)", "캄보디아어",
"태국어", "터키어", "투르크메니스탄어", "티베르어", "필리핀(타갈로그어)",
"헝가리어" };
comboBox6.Items.AddRange(combo6);
comboBox6.Items.AddRange(tag008.combo6);
// 콤보박스 정렬및 필터
string[] combo8 = { "등급", "복본" };
@@ -94,6 +73,7 @@ namespace ExcelTest
comboBox6.SelectedIndex = 0;
comboBox7.SelectedIndex = 0;
comboBox8.SelectedIndex = 0;
#endregion
}
/// <summary>
/// 가져온 목록을 책목록과 연동하여 Grid에 집어넣음.
@@ -390,7 +370,7 @@ namespace ExcelTest
string value = "";
if(search_Text.InputBox("찾을 단어를 입력해주세요.", "찾기(Ctrl+F)", ref value) == DialogResult.OK)
{
Color_change(value);
st.Color_change(value, richTextBox1);
}
break;
case 72: // h
@@ -470,36 +450,6 @@ namespace ExcelTest
text008.Text = new string(ArrayChar);
Apply_Main_marc();
}
/// <summary>
/// 색상 변경함수
/// </summary>
/// <param name="strTarget"></param>
public void Color_change(string strTarget)
{
Regex regex = new Regex(strTarget);
MatchCollection mc = regex.Matches(richTextBox1.Text);
richTextBox1.Select(0, richTextBox1.Text.Length);
richTextBox1.SelectionBackColor = Color.White;
int ICursorPosition = richTextBox1.SelectionStart;
foreach (Match m in mc)
{
int istartidx = m.Index;
int istopidx = m.Length + 1;
int istopidx1 = m.Length;
if (strTarget == "▼" || strTarget == "▲") { richTextBox1.Select(istartidx, istopidx); }
else { richTextBox1.Select(istartidx, istopidx1); }
if (strTarget == "▼") { richTextBox1.SelectionColor = Color.Blue; }
else if (strTarget == "▲") { richTextBox1.SelectionColor = Color.Red; }
else { richTextBox1.SelectionBackColor = Color.Orange; } // TODO: 색상 변경될수 있음.
richTextBox1.SelectionStart = ICursorPosition;
if (strTarget == "▼" || strTarget == "▲") { richTextBox1.SelectionColor = Color.Black; }
else { richTextBox1.SelectionBackColor = Color.Empty; }
}
}
private void Btn_Memo_Click(object sender, EventArgs e)
{
Marc_memo memo = new Marc_memo(this);
@@ -520,17 +470,19 @@ namespace ExcelTest
string table_name = "Marc";
int row_idx = List_Book.CurrentCell.RowIndex;
string tag056 = Tag056();
string[] grid_data = { List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString(),
List_Book.Rows[row_idx].Cells["book_name"].Value.ToString(),
List_Book.Rows[row_idx].Cells["author"].Value.ToString(),
List_Book.Rows[row_idx].Cells["book_comp"].Value.ToString(),
List_Book.Rows[row_idx].Cells["pay"].Value.ToString(),
List_Book.Rows[row_idx].Cells["url"].Value.ToString() };
string[] grid_data = {
List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString(),
List_Book.Rows[row_idx].Cells["book_name"].Value.ToString(),
List_Book.Rows[row_idx].Cells["author"].Value.ToString(),
List_Book.Rows[row_idx].Cells["book_comp"].Value.ToString(),
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");
if (List_Book.Rows[row_idx].Cells["db_marc"].Value.ToString() != "")
{
string[] Edit_tbl = { "marc", "marc_chk", "marc_chk1", "비고1", "비고2", "url", "division", "008tag", "date", "user" };
string[] Edit_col = { made_Ori_marc(), "1", "0", etc1.Text, etc2.Text, grid_data[5], tag056, text008.Text, date, user_name };
string[] Edit_col = { st.made_Ori_marc(richTextBox1), "1", "0", etc1.Text, etc2.Text, grid_data[5], tag056, text008.Text, date, user_name };
string[] Sear_tbl = { "ISBN" };
string[] Sear_col = { List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString() };
@@ -567,7 +519,7 @@ namespace ExcelTest
"grade", "marc_chk", "user", "division", "008tag",
"date" };
string[] Insert_col = { grid_data[0], grid_data[1], grid_data[2], grid_data[3],
grid_data[4], made_Ori_marc(), etc1.Text, etc2.Text, grid_data[5],
grid_data[4], st.made_Ori_marc(richTextBox1), etc1.Text, etc2.Text, grid_data[5],
cb_grade.SelectedIndex.ToString(), "1", user_name, tag056, text008.Text,
date };
@@ -575,7 +527,7 @@ namespace ExcelTest
db.DB_Send_CMD_reVoid(Incmd);
MessageBox.Show("추가");
}
List_Book.Rows[row_idx].Cells["db_marc"].Value = made_Ori_marc();
List_Book.Rows[row_idx].Cells["db_marc"].Value = st.made_Ori_marc(richTextBox1);
List_Book.Rows[row_idx].DefaultCellStyle.BackColor = Color.White;
switch (cb_grade.SelectedIndex)
{
@@ -597,7 +549,6 @@ namespace ExcelTest
#region Save_Click_Sub
string Tag056()
{
string marc = richTextBox1.Text;
string[] temp = marc.Split('\n');
List<string> target = temp.ToList();
@@ -627,94 +578,7 @@ namespace ExcelTest
richTextBox1.Text = string.Join("\n", target.ToArray());
return tag056;
}
string made_Ori_marc()
{
string result = string.Empty;
string = string.Empty;
string = string.Empty;
string text = richTextBox1.Text.Replace("\t", "");
text = text.Replace("\\", "₩");
string[] array_text = text.Split('\n');
// num+count+total = 디렉토리
List<string> num = new List<string>();
List<string> count = new List<string>();
List<string> total = new List<string>();
for (int a = 0; a < array_text.Length - 1; a++)
{
num.Add(array_text[a].Substring(0, 3));
if (array_text[a][5] == '▼')
{
array_text[a] = array_text[a].Remove(0, 3);
}
else { array_text[a] = array_text[a].Remove(0, 5); }
+= array_text[a] + "\n";
int textLength = Encoding.Default.GetBytes(array_text[a]).Length
- WordCheck(array_text[a], "▲")
- WordCheck(array_text[a], "▼");
count.Add(insert_Zero(textLength, 4));
}
for (int a = 0; a < array_text.Length; a++)
{
if (a == 0) { total.Add("0"); }
else if (a > 1)
{
int b = Convert.ToInt32(total[total.Count - 1]);
int c = Convert.ToInt32(Encoding.Default.GetBytes(array_text[a - 2]).Length.ToString())
- WordCheck(array_text[a - 2], "▲")
- WordCheck(array_text[a - 2], "▼");
int res = b + c;
total.Add(res.ToString());
}
}
string[] str_num = num.ToArray();
for (int a = 0; a < str_num.Length; a++)
{
if (count[a].Length == 3) { count[a] = count[a].Insert(0, "0"); }
else if (count[a].Length == 2) { count[a] = count[a].Insert(0, "00"); }
else if (count[a].Length == 1) { count[a] = count[a].Insert(0, "000"); }
if (total[a].Length == 4) { total[a] = total[a].Insert(0, "0"); }
else if (total[a].Length == 3) { total[a] = total[a].Insert(0, "00"); }
else if (total[a].Length == 2) { total[a] = total[a].Insert(0, "000"); }
else if (total[a].Length == 1) { total[a] = total[a].Insert(0, "0000"); }
+= str_num[a] + count[a] + total[a] + "\n";
}
string[] = { "00000","n", "a", "m", " ",
" ", "2", "2", "00000", " ",
"k", " ", "4", "5", "0",
"0" };
+= "";
= .Replace("\n", "");
+= "";
= .Replace("\n", "");
string dp = + ;
int recode = Encoding.Default.GetBytes(dp).Length
- WordCheck(dp, "▲") - WordCheck(dp, "▼") - WordCheck(dp, "↔");
[0] = insert_Zero(recode + 24, 5);
int data_addr = 24 + Encoding.Default.GetBytes().Length - WordCheck(, "▲");
[8] = insert_Zero(data_addr, 5);
for (int a = 0; a < .Length; a++)
{
result += [a];
}
result += + ;
result = result.Replace("▲", "");
result = result.Replace("▼", "");
return result;
}
private string Sub_marc_chk(string isbn)
{
string Area = "`marc_chk`, `marc_chk1`, `marc_chk2`";
@@ -745,8 +609,8 @@ namespace ExcelTest
if (!click_Marc(row_idx)) { richTextBox1.Text = Make_Empty(); }
input_picture(row_idx);
Create_008();
Color_change("▼");
Color_change("▲");
st.Color_change("▼", richTextBox1);
st.Color_change("▲", richTextBox1);
int grade = 2;
if (List_Book.Rows[row_idx].Cells["grade"].Value != null) {
@@ -763,7 +627,7 @@ namespace ExcelTest
if (List_Book.Rows[row].Cells[col].Value.ToString() == "V")
List_Book.Rows[row].Cells[col].Value = "";
else// if (List_Book.Rows[row].Cells[col].Value.ToString() == "")
else
List_Book.Rows[row].Cells["colCheck"].Value = "V";
return true;
@@ -771,6 +635,11 @@ namespace ExcelTest
else
return false;
}
/// <summary>
/// 마크데이터가 있는지 확인하고 메모장으로 출력
/// </summary>
/// <param name="row">해당 데이터의 row값</param>
/// <returns></returns>
bool click_Marc(int row)
{
// 마크 데이터
@@ -778,6 +647,7 @@ namespace ExcelTest
if (Marc_data.Length < 3) return false;
string result = string.Empty;
List<string> TagNum = new List<string>(); // 태그번호
List<string> field = new List<string>(); // 가변길이필드 저장
@@ -802,7 +672,7 @@ namespace ExcelTest
// List에 들어간 데이터를 메모장에 출력시키는 작업.
for (int a = 0; a < TagNum.Count; a++)
{
string result = TagNum[a];
string res = TagNum[a];
if (TagNum[a] == "008")
{
text008.Text = field[a].Replace("▲", "");
@@ -812,17 +682,22 @@ namespace ExcelTest
else { }
if (field[a].IndexOf("▼") == -1)
{
result += "\t \t" + field[a];
res += "\t \t" + field[a];
}
else
{
string temp = field[a].Insert(2, "\t");
result += "\t" + temp;
res += "\t" + temp;
}
richTextBox1.Text += result + "\n";
result += res + "\n";
}
richTextBox1.Text = result;
return true;
}
/// <summary>
/// 데이터 임시저장
/// </summary>
/// <param name="row">저장할 데이터가 있는 표의 Row값</param>
void Save_data(int row)
{
data_book[0] = List_Book.Rows[row].Cells["ISBN13"].Value.ToString();
@@ -881,7 +756,7 @@ namespace ExcelTest
return Empty_text;
}
/// <summary>
/// 008 만드는 함수
/// 008 각각의 박스에 대입하는 함수
/// </summary>
/// <returns></returns>
public void Create_008()
@@ -907,7 +782,8 @@ namespace ExcelTest
if (tmp_years > now_years)
century = "19";
Tag008[0] = century + data.Substring(0, 6); // 입력일자 (00-05)
Tag008[0] = century
+ data.Substring(0, 6); // 입력일자 (00-05)
Tag008[1] = data.Substring(6, 1); // 발행년유형 (6)
Tag008[2] = data.Substring(7, 4); // 발행년1 (07-10)
Tag008[3] = data.Substring(11, 4); // 발행년2 (11-14)
@@ -1016,33 +892,6 @@ namespace ExcelTest
{
this.Close();
}
int WordCheck(string String, string Word)
{
string[] StringArray = String.Split(new string[] { Word }, StringSplitOptions.None);
return StringArray.Length - 1;
}
string insert_Zero(int value, int count)
{
string result = string.Empty;
switch (count)
{
case 5:
if (value < 10) { result = "0000"; }
else if (value < 100) { result = "000"; }
else if (value < 1000) { result = "00"; }
else if (value < 10000) { result = "0"; }
break;
case 6:
if (value < 10) { result = "000"; }
else if (value < 100) { result = "00"; }
else if (value < 1000) { result = "0"; }
break;
default:
break;
}
result += value.ToString();
return result;
}
private void dataGridView8_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Space)
@@ -1145,6 +994,7 @@ namespace ExcelTest
{
// 회색배경과 V를 체크한 후
// 반출을 도와주는 창이 표출됨
/*
string msg = "";
bool isSuccess = true;
@@ -1159,18 +1009,19 @@ namespace ExcelTest
MessageBox.Show(string.Format("표시된 도서명을 확인해주세요.\n{0}", msg));
return;
}
*/
Marc_mkList mkList = new Marc_mkList(this);
mkList.Show();
}
#region _Sub
bool Check_BackColor(int row)
public bool Check_BackColor(int row)
{
if (List_Book.Rows[row].DefaultCellStyle.BackColor != Color.LightGray)
return true;
return false;
}
bool Check_List_V(int row)
public bool Check_List_V(int row)
{
if (List_Book.Rows[row].Cells["colCheck"].Value.ToString() == "V")
return true;

View File

@@ -28,8 +28,8 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.etc1 = new System.Windows.Forms.RichTextBox();
this.etc2 = new System.Windows.Forms.RichTextBox();
@@ -296,6 +296,7 @@
// col008res
//
this.col008res.AutoSize = true;
this.col008res.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.col008res.ForeColor = System.Drawing.Color.Blue;
this.col008res.Location = new System.Drawing.Point(1378, 15);
this.col008res.Name = "col008res";
@@ -307,6 +308,7 @@
// gov008res
//
this.gov008res.AutoSize = true;
this.gov008res.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.gov008res.ForeColor = System.Drawing.Color.Blue;
this.gov008res.Location = new System.Drawing.Point(1306, 37);
this.gov008res.Name = "gov008res";
@@ -363,14 +365,14 @@
this.List_Book.AllowUserToAddRows = false;
this.List_Book.AllowUserToDeleteRows = false;
this.List_Book.AllowUserToResizeColumns = 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.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
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,
@@ -493,8 +495,8 @@
//
// colCheck
//
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle2;
this.colCheck.HeaderText = "V";
this.colCheck.Name = "colCheck";
this.colCheck.ReadOnly = true;

View File

@@ -28,26 +28,38 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
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 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();
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.tb_Select_List = new System.Windows.Forms.TextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.cb_authorType = new System.Windows.Forms.ComboBox();
this.cb_divType = new System.Windows.Forms.ComboBox();
this.cb_divNum = new System.Windows.Forms.ComboBox();
this.cb_FirstBook = new System.Windows.Forms.ComboBox();
this.cb_FirstAuthor = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.btn_ChangeTag = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.tb_SearchTag = new System.Windows.Forms.TextBox();
this.tb_ISBN = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.btn_Select_List = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.checkBox1 = new System.Windows.Forms.CheckBox();
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.chk_overlap = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.F = 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();
@@ -58,46 +70,172 @@
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.checkBox1 = new System.Windows.Forms.CheckBox();
this.btn_Excel = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.tb_Select_List);
this.panel1.Controls.Add(this.btn_Excel);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.btn_ChangeTag);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.tb_SearchTag);
this.panel1.Controls.Add(this.tb_ISBN);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.btn_Select_List);
this.panel1.Location = new System.Drawing.Point(12, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1464, 38);
this.panel1.Size = new System.Drawing.Size(1464, 36);
this.panel1.TabIndex = 0;
//
// button1
// panel3
//
this.button1.Location = new System.Drawing.Point(531, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 2;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.cb_authorType);
this.panel3.Controls.Add(this.cb_divType);
this.panel3.Controls.Add(this.cb_divNum);
this.panel3.Controls.Add(this.cb_FirstBook);
this.panel3.Controls.Add(this.cb_FirstAuthor);
this.panel3.Controls.Add(this.label3);
this.panel3.Controls.Add(this.label4);
this.panel3.Location = new System.Drawing.Point(251, 2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(581, 30);
this.panel3.TabIndex = 7;
//
// tb_Select_List
// cb_authorType
//
this.tb_Select_List.Location = new System.Drawing.Point(90, 8);
this.tb_Select_List.Name = "tb_Select_List";
this.tb_Select_List.ReadOnly = true;
this.tb_Select_List.Size = new System.Drawing.Size(321, 21);
this.tb_Select_List.TabIndex = 1;
this.cb_authorType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorType.FormattingEnabled = true;
this.cb_authorType.Location = new System.Drawing.Point(125, 4);
this.cb_authorType.Name = "cb_authorType";
this.cb_authorType.Size = new System.Drawing.Size(171, 20);
this.cb_authorType.TabIndex = 1;
//
// cb_divType
//
this.cb_divType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_divType.FormattingEnabled = true;
this.cb_divType.Location = new System.Drawing.Point(414, 4);
this.cb_divType.Name = "cb_divType";
this.cb_divType.Size = new System.Drawing.Size(88, 20);
this.cb_divType.TabIndex = 1;
this.cb_divType.SelectedIndexChanged += new System.EventHandler(this.cb_divType_SelectedIndexChanged);
//
// cb_divNum
//
this.cb_divNum.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_divNum.FormattingEnabled = true;
this.cb_divNum.Location = new System.Drawing.Point(508, 4);
this.cb_divNum.Name = "cb_divNum";
this.cb_divNum.Size = new System.Drawing.Size(61, 20);
this.cb_divNum.TabIndex = 1;
//
// cb_FirstBook
//
this.cb_FirstBook.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_FirstBook.FormattingEnabled = true;
this.cb_FirstBook.Location = new System.Drawing.Point(302, 4);
this.cb_FirstBook.Name = "cb_FirstBook";
this.cb_FirstBook.Size = new System.Drawing.Size(61, 20);
this.cb_FirstBook.TabIndex = 1;
//
// cb_FirstAuthor
//
this.cb_FirstAuthor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_FirstAuthor.FormattingEnabled = true;
this.cb_FirstAuthor.Location = new System.Drawing.Point(57, 4);
this.cb_FirstAuthor.Name = "cb_FirstAuthor";
this.cb_FirstAuthor.Size = new System.Drawing.Size(61, 20);
this.cb_FirstAuthor.TabIndex = 1;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(383, 8);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(29, 12);
this.label3.TabIndex = 1;
this.label3.Text = "구분";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(2, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 1;
this.label4.Text = "저자기호";
//
// btn_ChangeTag
//
this.btn_ChangeTag.Location = new System.Drawing.Point(1277, 6);
this.btn_ChangeTag.Name = "btn_ChangeTag";
this.btn_ChangeTag.Size = new System.Drawing.Size(86, 23);
this.btn_ChangeTag.TabIndex = 5;
this.btn_ChangeTag.Text = "검색태그변경";
this.btn_ChangeTag.UseVisualStyleBackColor = true;
this.btn_ChangeTag.Click += new System.EventHandler(this.btn_ChangeTag_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1369, 6);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(86, 23);
this.btn_Close.TabIndex = 5;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// tb_SearchTag
//
this.tb_SearchTag.Location = new System.Drawing.Point(1171, 7);
this.tb_SearchTag.Name = "tb_SearchTag";
this.tb_SearchTag.Size = new System.Drawing.Size(100, 21);
this.tb_SearchTag.TabIndex = 4;
this.tb_SearchTag.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_SearchTag_KeyDown);
//
// tb_ISBN
//
this.tb_ISBN.Location = new System.Drawing.Point(998, 7);
this.tb_ISBN.Name = "tb_ISBN";
this.tb_ISBN.Size = new System.Drawing.Size(100, 21);
this.tb_ISBN.TabIndex = 4;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(1112, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "태그 검색";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(963, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(33, 12);
this.label1.TabIndex = 3;
this.label1.Text = "ISBN";
//
// btn_Select_List
//
this.btn_Select_List.Location = new System.Drawing.Point(9, 7);
this.btn_Select_List.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Select_List.Location = new System.Drawing.Point(9, 2);
this.btn_Select_List.Name = "btn_Select_List";
this.btn_Select_List.Size = new System.Drawing.Size(75, 23);
this.btn_Select_List.Size = new System.Drawing.Size(236, 30);
this.btn_Select_List.TabIndex = 0;
this.btn_Select_List.Text = "목록선택";
this.btn_Select_List.UseVisualStyleBackColor = true;
@@ -107,23 +245,24 @@
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle15.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
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;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
this.num,
this.reg_num,
this.class_code,
this.author_code,
this.chk_overlap,
this.count,
this.F,
this.volume,
this.copy,
this.prefix,
this.gu,
this.ISBN,
this.book_name,
@@ -134,26 +273,26 @@
this.author,
this.book_comp,
this.price,
this.midx,
this.marc,
this.search_tag,
this.colCheck});
this.dataGridView1.Location = new System.Drawing.Point(13, 57);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1463, 611);
this.dataGridView1.TabIndex = 1;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// checkBox1
// idx
//
this.checkBox1.AutoSize = true;
this.checkBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.checkBox1.Location = new System.Drawing.Point(1435, 63);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(15, 14);
this.checkBox1.TabIndex = 2;
this.checkBox1.TabStop = false;
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.ReadOnly = true;
this.idx.Visible = false;
//
// num
//
@@ -165,8 +304,8 @@
//
// reg_num
//
dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.reg_num.DefaultCellStyle = dataGridViewCellStyle16;
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";
@@ -174,8 +313,8 @@
//
// class_code
//
dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.class_code.DefaultCellStyle = dataGridViewCellStyle17;
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";
@@ -183,39 +322,42 @@
//
// author_code
//
dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.author_code.DefaultCellStyle = dataGridViewCellStyle18;
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;
//
// chk_overlap
// volume
//
dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.chk_overlap.DefaultCellStyle = dataGridViewCellStyle19;
this.chk_overlap.FillWeight = 38.80909F;
this.chk_overlap.HeaderText = "V";
this.chk_overlap.Name = "chk_overlap";
this.chk_overlap.Width = 30;
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;
//
// count
// copy
//
dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.count.DefaultCellStyle = dataGridViewCellStyle20;
this.count.FillWeight = 40.14827F;
this.count.HeaderText = "C";
this.count.Name = "count";
this.count.Width = 31;
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;
//
// F
// prefix
//
dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.F.DefaultCellStyle = dataGridViewCellStyle21;
this.F.FillWeight = 41.51828F;
this.F.HeaderText = "F";
this.F.Name = "F";
this.F.Width = 32;
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
//
@@ -289,12 +431,23 @@
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";
this.marc.Visible = false;
//
// search_tag
//
this.search_tag.FillWeight = 185.6383F;
this.search_tag.HeaderText = "검색태그";
this.search_tag.Name = "search_tag";
this.search_tag.ReadOnly = true;
this.search_tag.Width = 144;
//
// colCheck
@@ -309,6 +462,30 @@
this.colCheck.TrueValue = "T";
this.colCheck.Width = 27;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.checkBox1.Checked = true;
this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox1.Location = new System.Drawing.Point(1435, 63);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(15, 14);
this.checkBox1.TabIndex = 2;
this.checkBox1.TabStop = false;
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// btn_Excel
//
this.btn_Excel.Location = new System.Drawing.Point(852, 6);
this.btn_Excel.Name = "btn_Excel";
this.btn_Excel.Size = new System.Drawing.Size(75, 23);
this.btn_Excel.TabIndex = 8;
this.btn_Excel.Text = "엑셀반출";
this.btn_Excel.UseVisualStyleBackColor = true;
this.btn_Excel.Click += new System.EventHandler(this.btn_Excel_Click);
//
// Marc_Plan
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -319,8 +496,11 @@
this.Controls.Add(this.panel1);
this.Name = "Marc_Plan";
this.Text = "마크 정리";
this.Load += new System.EventHandler(this.Marc_Plan_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -330,18 +510,23 @@
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox tb_Select_List;
private System.Windows.Forms.Button btn_Select_List;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.CheckBox checkBox1;
public System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.TextBox tb_SearchTag;
private System.Windows.Forms.TextBox tb_ISBN;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_ChangeTag;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
private System.Windows.Forms.DataGridViewTextBoxColumn reg_num;
private System.Windows.Forms.DataGridViewTextBoxColumn class_code;
private System.Windows.Forms.DataGridViewTextBoxColumn author_code;
private System.Windows.Forms.DataGridViewTextBoxColumn chk_overlap;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
private System.Windows.Forms.DataGridViewTextBoxColumn F;
private System.Windows.Forms.DataGridViewTextBoxColumn volume;
private System.Windows.Forms.DataGridViewTextBoxColumn copy;
private System.Windows.Forms.DataGridViewTextBoxColumn prefix;
private System.Windows.Forms.DataGridViewTextBoxColumn gu;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
@@ -352,7 +537,18 @@
private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn price;
private System.Windows.Forms.DataGridViewTextBoxColumn midx;
private System.Windows.Forms.DataGridViewTextBoxColumn marc;
private System.Windows.Forms.DataGridViewTextBoxColumn search_tag;
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ComboBox cb_authorType;
private System.Windows.Forms.ComboBox cb_divType;
private System.Windows.Forms.ComboBox cb_divNum;
private System.Windows.Forms.ComboBox cb_FirstBook;
private System.Windows.Forms.ComboBox cb_FirstAuthor;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button btn_Excel;
}
}

View File

@@ -14,29 +14,117 @@ namespace WindowsFormsApp1.Mac
public partial class Marc_Plan : Form
{
Main main;
Helper_DB db = new Helper_DB();
public Marc_Plan(Main _main)
{
InitializeComponent();
main = _main;
}
private void Marc_Plan_Load(object sender, EventArgs e)
{
db.DBcon();
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
cb_FirstAuthor.Items.AddRange(sb.authorBook);
cb_authorType.Items.AddRange(sb.authorType);
cb_FirstBook.Items.AddRange(sb.authorFirst);
string[] divType = { "KDC", "DDC" };
cb_divType.Items.AddRange(divType);
string[] divNum = { "4", "5", "6" };
cb_divNum.Items.AddRange(divNum);
}
private void btn_Select_List_Click(object sender, EventArgs e)
{
Marc_Plan_Sub_SelectList sub = new Marc_Plan_Sub_SelectList();
tb_ISBN.Text = "";
Marc_Plan_Sub_SelectList sub = new Marc_Plan_Sub_SelectList(this);
sub.TopMost = true;
sub.Show();
}
private void button1_Click(object sender, EventArgs e)
#region SelectList_Sub
public void mk_Grid(string ListName, string date)
{
foreach(DataGridViewColumn c in dataGridView1.Columns)
btn_Select_List.Text = ListName;
dataGridView1.Rows.Clear();
string Table = "Specs_Marc";
// idx
// 연번 등록번호 분류기호 저자기호 V(049v,볼륨)
// C(049c,복본) F(049f,별치) 구분(이용자) ISBN 도서명
// 총서명 총서번호 총서명1 총서명1 저자
// 출판사 정가 midx 마크
// idx
// 연번 등록번호 분류기호 저자기호 ISBN
// 도서명 총서명1 총서번호1 총서명2 총서번호2
// 저자 출판사 정가 midx 마크데이터
string Area = "`idx`, "
+ "`num`, `r_num`, `class_symbol`, `author_symbol`, `ISBN`, "
+ "`book_name`, `s_book_name1`, `s_book_num1`, `s_book_name2`, `s_book_num2`, "
+ "`author`, `book_comp`, `price`, `midx`, `marc`";
string[] Search_col = { "work_list", "date" };
string[] Search_data = { ListName, date };
string cmd = db.More_DB_Search(Table, Search_col, Search_data, Area);
string res = db.DB_Send_CMD_Search(cmd);
string[] ary = res.Split('|');
string[] grid = {
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "T" };
for (int a = 0; a < ary.Length; a++)
{
if (c.CellType.ToString().Contains("CheckBox"))
{
button1.Text = c.Index.ToString();
if (a % 16 == 0) grid[0] = ary[a]; // idx
if (a % 16 == 1) grid[1] = ary[a]; // num
if (a % 16 == 2) grid[2] = ary[a]; // r_num
if (a % 16 == 3) grid[3] = ary[a]; // class_symbol
if (a % 16 == 4) grid[4] = ary[a]; // author_symbol
if (a % 16 == 5) grid[9] = ary[a]; // ISBN
if (a % 16 == 6) grid[10] = ary[a]; // book_name
if (a % 16 == 7) grid[11] = ary[a]; // s_book_name1
if (a % 16 == 8) grid[12] = ary[a]; // s_book_num1
if (a % 16 == 9) grid[13] = ary[a]; // s_book_name2
if (a % 16 == 10) grid[14] = ary[a]; // s_book_num2
if (a % 16 == 11) grid[15] = ary[a]; // author
if (a % 16 == 12) grid[16] = ary[a]; // book_comp
if (a % 16 == 13) grid[17] = ary[a]; // price
if (a % 16 == 14) grid[18] = ary[a]; // midx
if (a % 16 == 15) { grid[19] = ary[a]; // marc
dataGridView1.Rows.Add(grid);
}
}
}
public void mk_Panel(string idx, string ListName, string date)
{
string Table = "Specs_List";
string Area = "`first_Author`, `symbol_Author`, `book_Author`, `divType`, `divNum`";
string[] Search_col = { "idx", "work_list", "date" };
string[] Search_data = { idx, ListName, date };
string cmd = db.More_DB_Search(Table, Search_col, Search_data, Area);
string res = db.DB_Send_CMD_Search(cmd);
string[] ary = res.Split('|');
cb_FirstAuthor.SelectedItem = ary[0];
cb_authorType.SelectedItem = ary[1];
cb_FirstBook.SelectedItem = ary[2];
cb_divType.SelectedItem = ary[3];
cb_divNum.SelectedItem = ary[4];
}
#endregion
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
@@ -50,5 +138,149 @@ namespace WindowsFormsApp1.Mac
r.Cells["colCheck"].Value = ((CheckBox)sender).Checked;
}
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
int row = e.RowIndex;
int col = e.ColumnIndex;
if (dataGridView1.Rows[row].Cells[col].ReadOnly) {
string[] Marc = {
dataGridView1.Rows[row].Cells["marc"].Value.ToString(),
dataGridView1.Rows[row].Cells["midx"].Value.ToString(),
dataGridView1.Rows[row].Cells["num"].Value.ToString(),
dataGridView1.Rows[row].Cells["idx"].Value.ToString()
};
string[] symbol_Type = {
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text,
cb_divType.Text, cb_divNum.Text
};
Marc_Plan_Sub_MarcEdit me = new Marc_Plan_Sub_MarcEdit(this);
me.row = row;
me.Init(Marc, symbol_Type);
me.Show();
}
}
private void cb_divType_SelectedIndexChanged(object sender, EventArgs e)
{
cb_divNum.Items.Clear();
string value = cb_divType.SelectedItem.ToString();
if (value == "KDC")
{
string[] data = { "4", "5", "6" };
cb_divNum.Items.AddRange(data);
}
else
{
string[] data = { "21", "22", "23" };
cb_divNum.Items.AddRange(data);
}
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
int row = dataGridView1.CurrentRow.Index;
string isbn = dataGridView1.Rows[row].Cells["isbn"].Value.ToString();
tb_ISBN.Text = isbn;
}
private void tb_SearchTag_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {
Search_Tag();
}
}
#region SearchTag_KeyDown_Sub
List<string> BackUpTag = new List<string>();
private void Search_Tag()
{
BackUpTag.Clear();
string[] SearchTag = { tb_SearchTag.Text };
String_Text st = new String_Text();
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
string marc = dataGridView1.Rows[a].Cells["marc"].Value.ToString();
string[] tag = st.Take_Tag(marc, SearchTag);
dataGridView1.Rows[a].Cells["search_tag"].Value = tag[0];
BackUpTag.Add(tag[0]);
}
}
#endregion
private void btn_ChangeTag_Click(object sender, EventArgs e)
{
string msg = string.Format("『{0}』 태그를 변경하시겠습니까?", tb_SearchTag.Text);
// 아니오 선택시 아래코드 실행되지않음.
if (MessageBox.Show(msg, "태그변경", MessageBoxButtons.YesNo) == DialogResult.No) return;
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
string marc = dataGridView1.Rows[a].Cells["marc"].Value.ToString();
string changeTag = dataGridView1.Rows[a].Cells["search_tag"].Value.ToString();
if (dataGridView1.Rows[a].Cells["colCheck"].Value.ToString() == "T")
dataGridView1.Rows[a].Cells["marc"].Value = marc.Replace(BackUpTag[a], changeTag);
}
MessageBox.Show("변경되었습니다!", "태그변경");
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void btn_Excel_Click(object sender, EventArgs e)
{
if (dataGridView1.RowCount <= 0) return;
string[] Tag = { "245n", "245p", "260c" };
String_Text st = new String_Text();
Excel_text et = new Excel_text();
string[] Title = {
"연번", "등록번호", "분류기호", "저자기호", "볼륨",
"복본", "별치", "도서명", "원서명", "권차명",
"권차서명", "총서명", "총서번호", "총서명", "총서번호",
"저자", "출판사", "출판년", "정가", "ISBN"
};
string[,] Content = new string[dataGridView1.RowCount, 20];
for (int a = 0; a < dataGridView1.RowCount; a++)
{
string Marc = dataGridView1.Rows[a].Cells["marc"].Value.ToString();
string[] SearchTag = st.Take_Tag(Marc, Tag);
string oriBookName = st.TakeTag_FilterJisi(Marc, "246a", "19");
Content[a, 00] = dataGridView1.Rows[a].Cells["num"].Value.ToString();
Content[a, 01] = dataGridView1.Rows[a].Cells["reg_num"].Value.ToString();
Content[a, 02] = dataGridView1.Rows[a].Cells["class_code"].Value.ToString();
Content[a, 03] = dataGridView1.Rows[a].Cells["author_code"].Value.ToString();
Content[a, 04] = dataGridView1.Rows[a].Cells["volume"].Value.ToString();
Content[a, 05] = dataGridView1.Rows[a].Cells["copy"].Value.ToString();
Content[a, 06] = dataGridView1.Rows[a].Cells["prefix"].Value.ToString();
Content[a, 07] = dataGridView1.Rows[a].Cells["book_name"].Value.ToString();
Content[a, 08] = oriBookName;
Content[a, 09] = SearchTag[0];
Content[a, 10] = SearchTag[1];
Content[a, 11] = dataGridView1.Rows[a].Cells["s_book_name1"].Value.ToString();
Content[a, 12] = dataGridView1.Rows[a].Cells["s_book_num1"].Value.ToString();
Content[a, 13] = dataGridView1.Rows[a].Cells["s_book_name2"].Value.ToString();
Content[a, 14] = dataGridView1.Rows[a].Cells["s_book_num2"].Value.ToString();
Content[a, 15] = dataGridView1.Rows[a].Cells["author"].Value.ToString();
Content[a, 16] = dataGridView1.Rows[a].Cells["book_comp"].Value.ToString();
Content[a, 17] = SearchTag[2];
Content[a, 18] = dataGridView1.Rows[a].Cells["price"].Value.ToString();
Content[a, 19] = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
}
et.Mk_Excel(Title, Content);
}
}
}

View File

@@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="num.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -129,15 +132,6 @@
<metadata name="author_code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="chk_overlap.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="F.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="gu.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -168,7 +162,10 @@
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="search_tag.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="midx.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>
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View File

@@ -0,0 +1,771 @@

namespace UniMarc.
{
partial class Marc_Plan_Sub_MarcEdit
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_ClassSymbol = new System.Windows.Forms.Label();
this.lbl_AuthorSymbol = new System.Windows.Forms.Label();
this.btn_Close = new System.Windows.Forms.Button();
this.panel5 = new System.Windows.Forms.Panel();
this.input_date = new System.Windows.Forms.DateTimePicker();
this.label7 = new System.Windows.Forms.Label();
this.label98 = new System.Windows.Forms.Label();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.text008gov = new System.Windows.Forms.TextBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.text008col = new System.Windows.Forms.TextBox();
this.comboBox6 = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.comboBox5 = new System.Windows.Forms.ComboBox();
this.label103 = new System.Windows.Forms.Label();
this.comboBox4 = new System.Windows.Forms.ComboBox();
this.gov008res = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label99 = new System.Windows.Forms.Label();
this.label102 = new System.Windows.Forms.Label();
this.col008res = new System.Windows.Forms.Label();
this.comboBox7 = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.label100 = new System.Windows.Forms.Label();
this.label101 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.btn_Save = new System.Windows.Forms.Button();
this.panel6 = new System.Windows.Forms.Panel();
this.btn_EditNum = new System.Windows.Forms.Button();
this.tb_num = new System.Windows.Forms.TextBox();
this.tb_Mcode = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.cb_authorType = new System.Windows.Forms.ComboBox();
this.cb_divType = new System.Windows.Forms.ComboBox();
this.cb_divNum = new System.Windows.Forms.ComboBox();
this.cb_FirstBook = new System.Windows.Forms.ComboBox();
this.cb_FirstAuthor = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.btn_Front = new System.Windows.Forms.Button();
this.btn_Back = new System.Windows.Forms.Button();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.text008 = new System.Windows.Forms.TextBox();
this.text007 = new System.Windows.Forms.TextBox();
this.text001 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel5.SuspendLayout();
this.panel6.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel2.SuspendLayout();
this.panel4.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.lbl_ClassSymbol);
this.panel1.Controls.Add(this.lbl_AuthorSymbol);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.panel5);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.panel6);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.btn_Front);
this.panel1.Controls.Add(this.btn_Back);
this.panel1.Location = new System.Drawing.Point(13, 12);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1040, 212);
this.panel1.TabIndex = 0;
//
// lbl_ClassSymbol
//
this.lbl_ClassSymbol.AutoSize = true;
this.lbl_ClassSymbol.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.lbl_ClassSymbol.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_ClassSymbol.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_ClassSymbol.Location = new System.Drawing.Point(354, 191);
this.lbl_ClassSymbol.Name = "lbl_ClassSymbol";
this.lbl_ClassSymbol.Size = new System.Drawing.Size(12, 13);
this.lbl_ClassSymbol.TabIndex = 5;
this.lbl_ClassSymbol.Text = " ";
//
// lbl_AuthorSymbol
//
this.lbl_AuthorSymbol.AutoSize = true;
this.lbl_AuthorSymbol.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.lbl_AuthorSymbol.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_AuthorSymbol.ForeColor = System.Drawing.SystemColors.ControlText;
this.lbl_AuthorSymbol.Location = new System.Drawing.Point(188, 191);
this.lbl_AuthorSymbol.Name = "lbl_AuthorSymbol";
this.lbl_AuthorSymbol.Size = new System.Drawing.Size(12, 13);
this.lbl_AuthorSymbol.TabIndex = 5;
this.lbl_AuthorSymbol.Text = " ";
//
// btn_Close
//
this.btn_Close.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Close.Location = new System.Drawing.Point(920, 155);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(115, 51);
this.btn_Close.TabIndex = 4;
this.btn_Close.Text = "닫 기\r\n\r\n(ESC)";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// panel5
//
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel5.Controls.Add(this.input_date);
this.panel5.Controls.Add(this.label7);
this.panel5.Controls.Add(this.label98);
this.panel5.Controls.Add(this.checkBox2);
this.panel5.Controls.Add(this.text008gov);
this.panel5.Controls.Add(this.checkBox1);
this.panel5.Controls.Add(this.text008col);
this.panel5.Controls.Add(this.comboBox6);
this.panel5.Controls.Add(this.label5);
this.panel5.Controls.Add(this.comboBox5);
this.panel5.Controls.Add(this.label103);
this.panel5.Controls.Add(this.comboBox4);
this.panel5.Controls.Add(this.gov008res);
this.panel5.Controls.Add(this.comboBox2);
this.panel5.Controls.Add(this.label99);
this.panel5.Controls.Add(this.label102);
this.panel5.Controls.Add(this.col008res);
this.panel5.Controls.Add(this.comboBox7);
this.panel5.Controls.Add(this.label3);
this.panel5.Controls.Add(this.comboBox3);
this.panel5.Controls.Add(this.label100);
this.panel5.Controls.Add(this.label101);
this.panel5.Controls.Add(this.comboBox1);
this.panel5.Location = new System.Drawing.Point(179, 34);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(660, 84);
this.panel5.TabIndex = 3;
//
// input_date
//
this.input_date.CustomFormat = "yyyy-MM-dd";
this.input_date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.input_date.Location = new System.Drawing.Point(61, 5);
this.input_date.Name = "input_date";
this.input_date.Size = new System.Drawing.Size(91, 21);
this.input_date.TabIndex = 247;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(2, 9);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(53, 12);
this.label7.TabIndex = 224;
this.label7.Text = "입력일자";
//
// label98
//
this.label98.AutoSize = true;
this.label98.Location = new System.Drawing.Point(2, 36);
this.label98.Name = "label98";
this.label98.Size = new System.Drawing.Size(53, 12);
this.label98.TabIndex = 225;
this.label98.Text = "내용형식";
//
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(524, 34);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(112, 16);
this.checkBox2.TabIndex = 245;
this.checkBox2.Text = "기념논문집 여부";
this.checkBox2.UseVisualStyleBackColor = true;
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox_CheckedChanged);
//
// text008gov
//
this.text008gov.Location = new System.Drawing.Point(461, 58);
this.text008gov.Name = "text008gov";
this.text008gov.Size = new System.Drawing.Size(41, 21);
this.text008gov.TabIndex = 226;
this.text008gov.KeyDown += new System.Windows.Forms.KeyEventHandler(this.text008col_KeyDown);
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(413, 34);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(112, 16);
this.checkBox1.TabIndex = 244;
this.checkBox1.Text = "회의간행물 여부";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox_CheckedChanged);
//
// text008col
//
this.text008col.Location = new System.Drawing.Point(329, 32);
this.text008col.Name = "text008col";
this.text008col.Size = new System.Drawing.Size(41, 21);
this.text008col.TabIndex = 227;
this.text008col.KeyDown += new System.Windows.Forms.KeyEventHandler(this.text008col_KeyDown);
//
// comboBox6
//
this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox6.FormattingEnabled = true;
this.comboBox6.Location = new System.Drawing.Point(321, 58);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(101, 20);
this.comboBox6.TabIndex = 242;
this.comboBox6.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(171, 9);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(41, 12);
this.label5.TabIndex = 228;
this.label5.Text = "이용자";
//
// comboBox5
//
this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox5.FormattingEnabled = true;
this.comboBox5.Location = new System.Drawing.Point(175, 58);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(101, 20);
this.comboBox5.TabIndex = 241;
this.comboBox5.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// label103
//
this.label103.AutoSize = true;
this.label103.Location = new System.Drawing.Point(432, 62);
this.label103.Name = "label103";
this.label103.Size = new System.Drawing.Size(29, 12);
this.label103.TabIndex = 229;
this.label103.Text = "기관";
//
// comboBox4
//
this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox4.FormattingEnabled = true;
this.comboBox4.Location = new System.Drawing.Point(57, 58);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(79, 20);
this.comboBox4.TabIndex = 240;
this.comboBox4.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// gov008res
//
this.gov008res.AutoSize = true;
this.gov008res.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.gov008res.ForeColor = System.Drawing.Color.Blue;
this.gov008res.Location = new System.Drawing.Point(504, 62);
this.gov008res.Name = "gov008res";
this.gov008res.Size = new System.Drawing.Size(13, 12);
this.gov008res.TabIndex = 230;
this.gov008res.Text = " ";
this.gov008res.TextChanged += new System.EventHandler(this.col008res_TextChanged);
//
// comboBox2
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(355, 5);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(79, 20);
this.comboBox2.TabIndex = 239;
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// label99
//
this.label99.AutoSize = true;
this.label99.Location = new System.Drawing.Point(300, 36);
this.label99.Name = "label99";
this.label99.Size = new System.Drawing.Size(29, 12);
this.label99.TabIndex = 231;
this.label99.Text = "대학";
//
// label102
//
this.label102.AutoSize = true;
this.label102.Location = new System.Drawing.Point(291, 62);
this.label102.Name = "label102";
this.label102.Size = new System.Drawing.Size(29, 12);
this.label102.TabIndex = 235;
this.label102.Text = "언어";
//
// col008res
//
this.col008res.AutoSize = true;
this.col008res.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.col008res.ForeColor = System.Drawing.Color.Blue;
this.col008res.Location = new System.Drawing.Point(372, 36);
this.col008res.Name = "col008res";
this.col008res.Size = new System.Drawing.Size(13, 12);
this.col008res.TabIndex = 232;
this.col008res.Text = " ";
this.col008res.TextChanged += new System.EventHandler(this.col008res_TextChanged);
//
// comboBox7
//
this.comboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox7.FormattingEnabled = true;
this.comboBox7.Location = new System.Drawing.Point(176, 32);
this.comboBox7.Name = "comboBox7";
this.comboBox7.Size = new System.Drawing.Size(118, 20);
this.comboBox7.TabIndex = 243;
this.comboBox7.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(304, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 233;
this.label3.Text = "자료형식";
//
// comboBox3
//
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Location = new System.Drawing.Point(57, 32);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(118, 20);
this.comboBox3.TabIndex = 238;
this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// label100
//
this.label100.AutoSize = true;
this.label100.Location = new System.Drawing.Point(2, 62);
this.label100.Name = "label100";
this.label100.Size = new System.Drawing.Size(53, 12);
this.label100.TabIndex = 234;
this.label100.Text = "문학형식";
//
// label101
//
this.label101.AutoSize = true;
this.label101.Location = new System.Drawing.Point(145, 62);
this.label101.Name = "label101";
this.label101.Size = new System.Drawing.Size(29, 12);
this.label101.TabIndex = 236;
this.label101.Text = "전기";
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(212, 5);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(79, 20);
this.comboBox1.TabIndex = 237;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox6_SelectedIndexChanged);
//
// btn_Save
//
this.btn_Save.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Save.Location = new System.Drawing.Point(799, 155);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(115, 51);
this.btn_Save.TabIndex = 4;
this.btn_Save.Text = "저 장\r\n\r\n(F1)";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// panel6
//
this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel6.Controls.Add(this.btn_EditNum);
this.panel6.Controls.Add(this.tb_num);
this.panel6.Controls.Add(this.tb_Mcode);
this.panel6.Controls.Add(this.label6);
this.panel6.Controls.Add(this.label8);
this.panel6.Location = new System.Drawing.Point(179, 120);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(660, 30);
this.panel6.TabIndex = 3;
//
// btn_EditNum
//
this.btn_EditNum.Location = new System.Drawing.Point(318, 5);
this.btn_EditNum.Name = "btn_EditNum";
this.btn_EditNum.Size = new System.Drawing.Size(37, 19);
this.btn_EditNum.TabIndex = 3;
this.btn_EditNum.Text = "수정";
this.btn_EditNum.UseVisualStyleBackColor = true;
this.btn_EditNum.Click += new System.EventHandler(this.btn_EditNum_Click);
//
// tb_num
//
this.tb_num.Location = new System.Drawing.Point(214, 4);
this.tb_num.Name = "tb_num";
this.tb_num.Size = new System.Drawing.Size(100, 21);
this.tb_num.TabIndex = 2;
this.tb_num.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// tb_Mcode
//
this.tb_Mcode.Location = new System.Drawing.Point(57, 4);
this.tb_Mcode.Name = "tb_Mcode";
this.tb_Mcode.Size = new System.Drawing.Size(100, 21);
this.tb_Mcode.TabIndex = 2;
this.tb_Mcode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(183, 8);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(29, 12);
this.label6.TabIndex = 1;
this.label6.Text = "연번";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(2, 8);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(50, 12);
this.label8.TabIndex = 1;
this.label8.Text = "MCODE";
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.cb_authorType);
this.panel3.Controls.Add(this.cb_divType);
this.panel3.Controls.Add(this.cb_divNum);
this.panel3.Controls.Add(this.cb_FirstBook);
this.panel3.Controls.Add(this.cb_FirstAuthor);
this.panel3.Controls.Add(this.label2);
this.panel3.Controls.Add(this.label1);
this.panel3.Location = new System.Drawing.Point(179, 2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(660, 30);
this.panel3.TabIndex = 3;
//
// cb_authorType
//
this.cb_authorType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_authorType.FormattingEnabled = true;
this.cb_authorType.Location = new System.Drawing.Point(125, 4);
this.cb_authorType.Name = "cb_authorType";
this.cb_authorType.Size = new System.Drawing.Size(171, 20);
this.cb_authorType.TabIndex = 1;
//
// cb_divType
//
this.cb_divType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_divType.FormattingEnabled = true;
this.cb_divType.Location = new System.Drawing.Point(414, 4);
this.cb_divType.Name = "cb_divType";
this.cb_divType.Size = new System.Drawing.Size(88, 20);
this.cb_divType.TabIndex = 1;
this.cb_divType.SelectedIndexChanged += new System.EventHandler(this.cb_divType_SelectedIndexChanged);
//
// cb_divNum
//
this.cb_divNum.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_divNum.FormattingEnabled = true;
this.cb_divNum.Location = new System.Drawing.Point(508, 4);
this.cb_divNum.Name = "cb_divNum";
this.cb_divNum.Size = new System.Drawing.Size(61, 20);
this.cb_divNum.TabIndex = 1;
//
// cb_FirstBook
//
this.cb_FirstBook.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_FirstBook.FormattingEnabled = true;
this.cb_FirstBook.Location = new System.Drawing.Point(302, 4);
this.cb_FirstBook.Name = "cb_FirstBook";
this.cb_FirstBook.Size = new System.Drawing.Size(61, 20);
this.cb_FirstBook.TabIndex = 1;
//
// cb_FirstAuthor
//
this.cb_FirstAuthor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_FirstAuthor.FormattingEnabled = true;
this.cb_FirstAuthor.Location = new System.Drawing.Point(57, 4);
this.cb_FirstAuthor.Name = "cb_FirstAuthor";
this.cb_FirstAuthor.Size = new System.Drawing.Size(61, 20);
this.cb_FirstAuthor.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(383, 8);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 1;
this.label2.Text = "구분";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(2, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 1;
this.label1.Text = "저자기호";
//
// pictureBox1
//
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Location = new System.Drawing.Point(3, 2);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(174, 205);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// btn_Front
//
this.btn_Front.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Front.Location = new System.Drawing.Point(920, 58);
this.btn_Front.Name = "btn_Front";
this.btn_Front.Size = new System.Drawing.Size(115, 51);
this.btn_Front.TabIndex = 4;
this.btn_Front.Text = "다 음 (F12)";
this.btn_Front.UseVisualStyleBackColor = true;
this.btn_Front.Click += new System.EventHandler(this.btn_Front_Click);
//
// btn_Back
//
this.btn_Back.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Back.Location = new System.Drawing.Point(920, 2);
this.btn_Back.Name = "btn_Back";
this.btn_Back.Size = new System.Drawing.Size(115, 51);
this.btn_Back.TabIndex = 4;
this.btn_Back.Text = "이 전 (F11)";
this.btn_Back.UseVisualStyleBackColor = true;
this.btn_Back.Click += new System.EventHandler(this.btn_Back_Click);
//
// richTextBox1
//
this.richTextBox1.AcceptsTab = true;
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Font = new System.Drawing.Font("굴림체", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1038, 456);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Location = new System.Drawing.Point(13, 266);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1040, 458);
this.panel2.TabIndex = 2;
//
// panel4
//
this.panel4.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.text008);
this.panel4.Controls.Add(this.text007);
this.panel4.Controls.Add(this.text001);
this.panel4.Controls.Add(this.label10);
this.panel4.Controls.Add(this.label9);
this.panel4.Controls.Add(this.label11);
this.panel4.Controls.Add(this.label4);
this.panel4.Location = new System.Drawing.Point(13, 230);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1040, 30);
this.panel4.TabIndex = 246;
//
// text008
//
this.text008.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.text008.Location = new System.Drawing.Point(419, 4);
this.text008.MaxLength = 40;
this.text008.Name = "text008";
this.text008.Size = new System.Drawing.Size(331, 21);
this.text008.TabIndex = 204;
//
// text007
//
this.text007.Location = new System.Drawing.Point(224, 4);
this.text007.Name = "text007";
this.text007.Size = new System.Drawing.Size(144, 21);
this.text007.TabIndex = 2;
this.text007.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// text001
//
this.text001.Location = new System.Drawing.Point(36, 4);
this.text001.Name = "text001";
this.text001.Size = new System.Drawing.Size(142, 21);
this.text001.TabIndex = 2;
this.text001.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label10.Location = new System.Drawing.Point(8, 8);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(26, 12);
this.label10.TabIndex = 206;
this.label10.Text = "001";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label9.Location = new System.Drawing.Point(196, 8);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(26, 12);
this.label9.TabIndex = 206;
this.label9.Text = "007";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label11.Location = new System.Drawing.Point(867, 8);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(162, 12);
this.label11.TabIndex = 206;
this.label11.Text = "단축키 F9 : 090 태그 생성";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label4.Location = new System.Drawing.Point(391, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(26, 12);
this.label4.TabIndex = 206;
this.label4.Text = "008";
//
// Marc_Plan_Sub_MarcEdit
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1065, 736);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Marc_Plan_Sub_MarcEdit";
this.Text = "마크편집";
this.Load += new System.EventHandler(this.Marc_Plan_Sub_MarcEdit_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel2.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel4.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.ComboBox cb_authorType;
private System.Windows.Forms.ComboBox cb_divType;
private System.Windows.Forms.ComboBox cb_divNum;
private System.Windows.Forms.ComboBox cb_FirstBook;
private System.Windows.Forms.ComboBox cb_FirstAuthor;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DateTimePicker input_date;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.TextBox text008;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.ComboBox comboBox6;
private System.Windows.Forms.ComboBox comboBox5;
private System.Windows.Forms.ComboBox comboBox4;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Label label102;
private System.Windows.Forms.ComboBox comboBox7;
private System.Windows.Forms.ComboBox comboBox3;
private System.Windows.Forms.Label label101;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label100;
private System.Windows.Forms.Label label3;
public System.Windows.Forms.Label col008res;
private System.Windows.Forms.Label label99;
public System.Windows.Forms.Label gov008res;
private System.Windows.Forms.Label label103;
private System.Windows.Forms.Label label5;
public System.Windows.Forms.TextBox text008col;
public System.Windows.Forms.TextBox text008gov;
private System.Windows.Forms.Label label98;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button btn_Front;
private System.Windows.Forms.Button btn_Back;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button btn_EditNum;
private System.Windows.Forms.TextBox tb_num;
private System.Windows.Forms.TextBox tb_Mcode;
private System.Windows.Forms.TextBox text001;
private System.Windows.Forms.TextBox text007;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label lbl_ClassSymbol;
private System.Windows.Forms.Label lbl_AuthorSymbol;
}
}

View File

@@ -0,0 +1,665 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
using ExcelTest;
namespace UniMarc.
{
public partial class Marc_Plan_Sub_MarcEdit : Form
{
string idx;
public int row;
Marc_Plan mp;
Helper_DB db = new Helper_DB();
String_Text st = new String_Text();
Help008Tag tag008 = new Help008Tag();
public Marc_Plan_Sub_MarcEdit(Marc_Plan _mp)
{
InitializeComponent();
mp = _mp;
db.DBcon();
}
/// <summary>
/// 시작전 세팅작업. 필요한 데이터들을 각각의 박스들에 집어넣음.
/// </summary>
/// <param name="Marc">0:Marc 1:MarcIdx 2:연번 3:idx</param>
/// <param name="Symbol_Type">저자기호 배열
/// 0:FirstAuthor 1:authorType 2:FirstBook 3:divType 4:divNum </param>
public void Init(string[] Marc, string[] Symbol_Type)
{
#region
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
cb_FirstAuthor.Items.AddRange(sb.authorBook);
cb_authorType.Items.AddRange(sb.authorType);
cb_FirstBook.Items.AddRange(sb.authorFirst);
cb_FirstAuthor.SelectedItem = Symbol_Type[0];
cb_authorType.SelectedItem = Symbol_Type[1];
cb_FirstBook.SelectedItem = Symbol_Type[2];
#endregion
#region
string[] divType = { "KDC", "DDC" };
cb_divType.Items.AddRange(divType);
string[] divNum = { "4", "5", "6" };
cb_divNum.Items.AddRange(divNum);
cb_divType.SelectedItem = Symbol_Type[3];
cb_divNum.SelectedItem = Symbol_Type[4];
#endregion
// 이용자 9
comboBox1.Items.AddRange(tag008.combo1);
// 자료형식 3
comboBox2.Items.AddRange(tag008.combo2);
// 내용형식 28
comboBox3.Items.AddRange(tag008.combo3);
comboBox7.Items.AddRange(tag008.combo3);
// 문학형식 16
comboBox4.Items.AddRange(tag008.combo4);
// 전기 5
comboBox5.Items.AddRange(tag008.combo5);
// 언어 36
comboBox6.Items.AddRange(tag008.combo6);
string[] Tag = { "020a" };
string[] Marc_Tag = st.Take_Tag(Marc[0], Tag);
input_picture(Marc_Tag[0]);
richTextBox1.Text = split_Marc(Marc[0]);
Create_008();
st.Color_change("▼", richTextBox1);
st.Color_change("▲", richTextBox1);
tb_Mcode.Text = Marc[1];
tb_num.Text = Marc[2];
idx = Marc[3];
}
#region Init_Sub
void input_picture(string isbn)
{
try
{
string isbn3 = isbn.Substring(isbn.Length - 3, 3);
pictureBox1.ImageLocation = "http://image.kyobobook.co.kr/images/book/xlarge/" + isbn3 + "/x" + isbn + ".jpg";
}
catch { }
}
/// <summary>
/// 008 각각의 박스에 대입하는 함수
/// </summary>
/// <returns></returns>
public void Create_008()
{
string data = text008.Text;
if (data == "" || data == null) { return; }
string[] Tag008 = { "", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "" };
/* 입력일자 발행년유형 발행년1 발행년2 발행국
* 삽화표시 이용대상자수준 개별자료형태 내용형식1 내용형식2
* 한국대학부호 수정레코드 회의간행물 기념논문집 색인
* 목록전거 문학형식 전기 언어 한국정부기관부호 */
// 사전에 선언된 string배열에 맞는 데이터를 배정.
int tmp_years = Convert.ToInt32(data.Substring(0, 2));
int now_years = Convert.ToInt32(DateTime.Now.ToString("yy"));
string century = "20";
if (tmp_years > now_years)
century = "19";
Tag008[0] = century
+ data.Substring(0, 6); // 입력일자 (00-05)
Tag008[1] = data.Substring(6, 1); // 발행년유형 (6)
Tag008[2] = data.Substring(7, 4); // 발행년1 (07-10)
Tag008[3] = data.Substring(11, 4); // 발행년2 (11-14)
Tag008[4] = data.Substring(15, 3); // 발행국 (15-17)
Tag008[5] = data.Substring(18, 4); // 삽화표시 (18-21)
Tag008[6] = data.Substring(22, 1); // 이용대상자수준 (22) v
Tag008[7] = data.Substring(23, 1); // 개별자료형태 (23) v
Tag008[8] = data.Substring(24, 1); // 내용형식1 (24) v
Tag008[9] = data.Substring(25, 1); // 내용형식2 (25) v
Tag008[10] = data.Substring(26, 2); // 한국대학부호 (26-27)
Tag008[11] = data.Substring(28, 1); // 수정레코드 (28)
Tag008[12] = data.Substring(29, 1); // 회의간행물 (29) c
Tag008[13] = data.Substring(30, 1); // 기념논문집 (30) c
Tag008[14] = data.Substring(31, 1); // 색인 (31)
Tag008[15] = data.Substring(32, 1); // 목록전거 (32)
Tag008[16] = data.Substring(33, 1); // 문학형식 (33) v
Tag008[17] = data.Substring(34, 1); // 전기 (34) v
Tag008[18] = data.Substring(35, 3); // 언어 (35-37) v
Tag008[19] = data.Substring(38, 2); // 한국정부기관부호 (38-39)
// 배열에 들어간 데이터로 콤보박스를 꾸미는 작업.
int year = Convert.ToInt32(Tag008[0].Substring(0, 4));
int month = Convert.ToInt32(Tag008[0].Substring(4, 2));
int day = Convert.ToInt32(Tag008[0].Substring(6, 2));
input_date.Value = new DateTime(year, month, day); // 입력일자
comboBox1.SelectedIndex = tag008.User_008(Tag008[6]); // 이용대상자수준
comboBox2.SelectedIndex = tag008.DataType_008(Tag008[7]); // 개별자료형태
comboBox3.SelectedIndex = tag008.Format_008(Tag008[8]); // 내용형식1
comboBox7.SelectedIndex = tag008.Format_008(Tag008[9]); // 내용형식2
comboBox4.SelectedIndex = tag008.Literary_008(Tag008[16]); // 문학형식
comboBox5.SelectedIndex = tag008.Biography_008(Tag008[17]); // 전기
comboBox6.SelectedIndex = tag008.Language_008(Tag008[18]); // 언어
checkBox1.Checked = tag008.CheckBox_008(Tag008[12]); // 회의간행물
checkBox2.Checked = tag008.CheckBox_008(Tag008[13]); // 기념논문집
col008res.Text = Tag008[10];
gov008res.Text = Tag008[19];
return;
}
/// <summary>
/// 마크데이터가 있는지 확인하고 메모장으로 출력
/// </summary>
/// <param name="row">마크 데이터</param>
/// <returns></returns>
string split_Marc(string Marc_data)
{
if (Marc_data.Length < 3) return "";
string result = string.Empty;
List<string> TagNum = new List<string>(); // 태그번호
List<string> field = new List<string>(); // 가변길이필드 저장
// 특수기호 육안으로 확인하기 쉽게 변환
Marc_data = Marc_data.Replace("", "▼");
Marc_data = Marc_data.Replace("", "▲");
Marc_data = Marc_data.Replace("₩", "\\");
// string leader = Marc_data.Substring(0, 24);
int startidx = 0;
string[] data = Marc_data.Substring(24).Split('▲'); // 리더부를 제외한 디렉터리, 가변길이필드 저장
// List에 필요한 데이터 집어넣는 작업.
for (int a = 1; a < data.Length - 1; a++)
{
TagNum.Add(data[0].Substring(startidx, 3));
startidx += 12;
field.Add(data[a] + "▲");
}
// List에 들어간 데이터를 메모장에 출력시키는 작업.
for (int a = 0; a < TagNum.Count; a++)
{
string res = TagNum[a];
if (TagNum[a] == "008")
{
text008.Text = field[a].Replace("▲", "");
continue;
}
else { }
if (field[a].IndexOf("▼") == -1)
{
res += "\t \t" + field[a];
}
else
{
string temp = field[a].Insert(2, "\t");
res += "\t" + temp;
}
result += res + "\n";
}
return result;
}
#endregion
private void checkBox_CheckedChanged(object sender, EventArgs e)
{
string name = ((CheckBox)sender).Name;
if (((CheckBox)sender).Checked == true)
{
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물o";
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집o";
break;
}
}
else if (((CheckBox)sender).Checked == false)
{
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물x";
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집x";
break;
}
}
switch (name)
{
case "checkBox1":
Publication(checkBox1.Checked, 29);
break;
case "checkBox2":
Publication(checkBox2.Checked, 30);
break;
}
}
#region checkBox_Checked_Sub
void Publication(bool check, int idx)
{
if (text008.Text == "") { return; }
char[] ArrayChar = text008.Text.ToCharArray();
if (!check) { ArrayChar[idx] = '0'; }
else if (check) { ArrayChar[idx] = '1'; }
text008.Text = new string(ArrayChar);
}
#endregion
private void col008res_TextChanged(object sender, EventArgs e)
{
if (text008.Text.Length < 3) { return; }
string text = text008.Text;
string iText = ((Label)sender).Text;
if (iText.Length < 1) { return; }
char[] textArray = text.ToCharArray();
char[] inputArray = iText.ToCharArray();
switch (((Label)sender).Name)
{
case "col008res":
textArray[26] = inputArray[0];
textArray[27] = inputArray[1];
break;
case "gov008res":
textArray[38] = inputArray[0];
textArray[39] = inputArray[1];
break;
}
text = new string(textArray);
text008.Text = text;
}
private void text008col_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
string tbName = ((TextBox)sender).Name;
string call = ((TextBox)sender).Text;
Helper008 helper = new Helper008(this);
helper.Who_Call(tbName, call);
helper.Show();
}
}
private void comboBox6_SelectedIndexChanged(object sender, EventArgs e)
{
if (text008.Text.Length < 3) { return; }
string text = text008.Text;
string comboName = ((ComboBox)sender).Name;
int comboIdx = ((ComboBox)sender).SelectedIndex;
text008.Text = tag008.Combo_Change(text, comboName, comboIdx);
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void btn_Save_Click(object sender, EventArgs e)
{
string oriMarc = st.made_Ori_marc(richTextBox1);
// 등록번호 분류기호 저자기호 볼륨 복본
// 별치 총서명 총서번호 저자 출판사
// 정가 ISBN
string[] Search_Tag = {
"049l", "090a", "090b", "049v", "049c",
"049f", "440a", "440v", "245d", "260b",
"950b", "020a"
};
string[] SearchBookTag = st.Take_Tag(oriMarc, Search_Tag);
// 도서명 (본서명 = 대등서명 : 부서명)
string[] BookTag = { "245a", "245x", "245b" };
string[] BookNameTag = st.Take_Tag(oriMarc, BookTag);
string BookName = mk_BookName(BookNameTag);
string Table = "Specs_Marc";
string[] Search_Col = { "idx" };
string[] Search_data = { idx };
string[] Update_Col = {
"marc", "book_name",
"r_num", "class_symbol", "author_symbol", "prefix", "s_book_name1",
"s_book_num1", "author", "book_comp", "price", "ISBN"
};
string[] Update_data = {
oriMarc, BookName,
SearchBookTag[0], SearchBookTag[1], SearchBookTag[2], SearchBookTag[5], SearchBookTag[6],
SearchBookTag[7], SearchBookTag[8], SearchBookTag[9], SearchBookTag[10], SearchBookTag[11]
};
string cmd = db.More_Update(Table, Update_Col, Update_data, Search_Col, Search_data);
db.DB_Send_CMD_reVoid(cmd);
InputBookData(SearchBookTag);
MessageBox.Show("저장되었습니다!");
mp.dataGridView1.Rows[row].Cells["book_name"].Value = BookName;
mp.dataGridView1.Rows[row].Cells["marc"].Value = oriMarc;
}
#region Save_Sub
/// <summary>
/// 추출해낸 태그값을 Grid에 적용
/// </summary>
/// <param name="SearchTag">
/// 등록번호 분류기호 저자기호 볼륨 복본<br/>
/// 별치 총서명 총서번호 저자 출판사<br/>
/// 정가 ISBN
/// </param>
private void InputBookData(string[] SearchTag)
{
mp.dataGridView1.Rows[row].Cells["reg_num" ].Value = SearchTag[0];
mp.dataGridView1.Rows[row].Cells["class_code" ].Value = SearchTag[1];
mp.dataGridView1.Rows[row].Cells["author_code" ].Value = SearchTag[2];
mp.dataGridView1.Rows[row].Cells["volume" ].Value = SearchTag[3];
mp.dataGridView1.Rows[row].Cells["copy" ].Value = SearchTag[4];
mp.dataGridView1.Rows[row].Cells["prefix" ].Value = SearchTag[5];
mp.dataGridView1.Rows[row].Cells["s_book_name1"].Value = SearchTag[6];
mp.dataGridView1.Rows[row].Cells["s_book_num1" ].Value = SearchTag[7];
mp.dataGridView1.Rows[row].Cells["author" ].Value = SearchTag[8];
mp.dataGridView1.Rows[row].Cells["book_comp" ].Value = SearchTag[9];
mp.dataGridView1.Rows[row].Cells["price" ].Value = SearchTag[10];
mp.dataGridView1.Rows[row].Cells["ISBN" ].Value = SearchTag[11];
}
/// <summary>
/// 도서명 이어붙히기
/// <para>
/// 본서명 = 대등서명 : 부서명 . 권차 , 권차명<br/>
/// 245a = 245x : 245b . 245n , 245p
/// </para>
/// </summary>
/// <param name="book_name">
/// 0: 245a 1: 245x 2: 245b 3: 245n 4: 245p<br/>
/// 0: 도서명 1: 대동서명 2: 부서명 3: 권차 4: 권차명<br/>
/// </param>
/// <returns>이어붙혀진 도서명</returns>
private string mk_BookName(string[] book_name)
{
string a245 = book_name[0]; // 도서명
string x245 = book_name[1]; // 대동서명
string b245 = book_name[2]; // 부서명
string result = a245;
if (x245 != "")
result += " = " + x245;
if (b245 != "")
result += " : " + b245;
return result;
}
#endregion
private void btn_Back_Click(object sender, EventArgs e)
{
if (row <= 0)
return;
else
row--;
Btn_FrontAndBack_Sub();
}
private void btn_Front_Click(object sender, EventArgs e)
{
int mprow = mp.dataGridView1.Rows.Count;
if (row < mprow - 1)
row++;
else
return;
Btn_FrontAndBack_Sub();
}
#region btn_FrontAndBack_Sub
private void Btn_FrontAndBack_Sub()
{
mp.dataGridView1.Rows[row].Selected = true;
string[] marc = {
mp.dataGridView1.Rows[row].Cells["marc"].Value.ToString(),
mp.dataGridView1.Rows[row].Cells["midx"].Value.ToString(),
mp.dataGridView1.Rows[row].Cells["num"].Value.ToString(),
mp.dataGridView1.Rows[row].Cells["idx"].Value.ToString()
};
string[] Symbol_Type = {
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
};
Init(marc, Symbol_Type);
}
#endregion
private void Marc_Plan_Sub_MarcEdit_Load(object sender, EventArgs e)
{
this.ActiveControl = richTextBox1;
}
private void btn_EditNum_Click(object sender, EventArgs e)
{
string Table = "Specs_Marc";
string[] Search_col = { "idx" };
string[] Search_Data = { idx };
string[] Update_col = { "midx", "num" };
string[] Update_Data = { tb_Mcode.Text, tb_num.Text };
string cmd = db.More_Update(Table, Update_col, Update_Data, Search_col, Search_Data);
db.DB_Send_CMD_reVoid(cmd);
MessageBox.Show("적용되었습니다!");
}
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F1)
btn_Save_Click(null, null);
if (e.KeyCode == Keys.F11)
btn_Back_Click(null, null);
if (e.KeyCode == Keys.F12)
btn_Front_Click(null, null);
if (e.KeyCode == Keys.F9) {
string Tag090 = Sample_090();
Tag_Create("090", Tag090);
}
if (e.KeyCode == Keys.Escape)
btn_Close_Click(null, null);
}
#region KeyDown_Sub
/// <summary>
/// 저자기호와 분류기호를 반환하는 코드<br/>
/// 현재 저자기호만 가능
/// </summary>
/// <returns></returns>
private string Sample_090()
{
string Marc = richTextBox1.Text;
bool[] isType = { false, false };
if (cb_FirstAuthor.SelectedIndex == 0)
isType[0] = true;
if (cb_FirstBook.SelectedIndex == 0)
isType[1] = true;
string authorType = cb_authorType.SelectedItem.ToString();
string ClassSymbol = string.Empty;
string Author = string.Empty;
string BookName = string.Empty;
#region 100 (Author) / 245 (BookName)
string AuthorTagNum = string.Empty;
string[] splitMarc = Marc.Split('\n');
// 100, 110, 111 태그의 저자명 구해오는 반복문
for (int a = 0; a < splitMarc.Length - 1; a++)
{
if (splitMarc[a].Substring(0, 3) == "100")
{
AuthorTagNum = "100";
break;
}
if (splitMarc[a].Substring(0, 3) == "110")
{
AuthorTagNum = "110";
break;
}
if (splitMarc[a].Substring(0, 3) == "111")
{
AuthorTagNum = "111";
break;
}
}
for (int a = 0; a < splitMarc.Length - 1; a++)
{
if (splitMarc[a].Substring(0, 3) == "056")
{
int start = splitMarc[a].IndexOf("▼a") + 2;
int end = splitMarc[a].IndexOf("▼", start);
if (end < 0)
ClassSymbol = splitMarc[a].Substring(start).Replace("▲", "");
else
ClassSymbol = splitMarc[a].Substring(start, end - start);
}
if (splitMarc[a].Substring(0, 3) == AuthorTagNum)
{
int start = splitMarc[a].IndexOf("▼a") + 2;
int end = splitMarc[a].IndexOf("▼", start);
if (end < 0)
Author = splitMarc[a].Substring(start).Replace("▲", "");
else
Author = splitMarc[a].Substring(start, end - start);
}
if (splitMarc[a].Substring(0, 3) == "245")
{
int start = splitMarc[a].IndexOf("▼a") + 2;
int end = splitMarc[a].IndexOf("▼", start);
if (end < 0)
BookName = splitMarc[a].Substring(start).Replace("▲", "");
else
BookName = splitMarc[a].Substring(start, end - start);
}
}
BookName = st.RemoveWordInBracket(BookName);
#endregion
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
string AuthorSymbol = sb.SymbolAuthor(Author, BookName, authorType, isType);
lbl_AuthorSymbol.Text = AuthorSymbol;
lbl_ClassSymbol.Text = ClassSymbol;
ClassSymbol = "▼a" + ClassSymbol;
AuthorSymbol = "▼b" + AuthorSymbol;
string result = string.Format("\t{0}\t{1}{2}▲", " ", ClassSymbol, AuthorSymbol);
return result;
}
/// <summary>
/// 마크에 090 태그가 삽입되어야함.
/// <para>
/// 090a 분류기호<br/>
/// 090b 도서기호
/// </para>
/// 지시기호 따로 정의되지 않음. (빈칸으로 정의)<br/>
/// ex. 090 ▼a813.6▼b홍214ㄱ▲
/// <param name="tar">태그 명 (숫자 3자리만!)</param>
/// </summary>
private void Tag_Create(string tar,string Content)
{
int Itar = Convert.ToInt32(tar);
string marc = richTextBox1.Text;
List<string> target = marc.Split('\n').ToList();
bool chk = true;
int count = -1;
for (int a = 0; a < target.Count - 1; a++)
{
string[] tmp = target[a].Split('\t');
string tag = tmp[0];
int tag_num = Convert.ToInt32(tag);
if (tag_num == Itar) {
chk = false;
}
if (tag_num > Itar && chk)
{
count = a;
chk = false;
}
}
if (count > 0)
target.Insert(count, string.Format("{0}{1}", tar, Content)); //text008.Text));
richTextBox1.Text = string.Join("\n", target.ToArray());
return;
}
#endregion
private void cb_divType_SelectedIndexChanged(object sender, EventArgs e)
{
cb_divNum.Items.Clear();
string value = cb_divType.SelectedItem.ToString();
if (value == "KDC")
{
string[] data = { "4", "5", "6" };
cb_divNum.Items.AddRange(data);
}
else
{
string[] data = { "21", "22", "23" };
cb_divNum.Items.AddRange(data);
}
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
namespace UniMarc.
{
@@ -15,9 +16,11 @@ namespace UniMarc.마크
{
Helper_DB db = new Helper_DB();
string compidx;
public Marc_Plan_Sub_SelectList()
Marc_Plan mp;
public Marc_Plan_Sub_SelectList(Marc_Plan _mp)
{
InitializeComponent();
mp = _mp;
compidx = Properties.Settings.Default.compidx;
}
@@ -89,9 +92,10 @@ namespace UniMarc.마크
if (MessageBox.Show(msg, "완료처리", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
return;
string[] search_col = { "work_list", "date" };
string[] search_col = { "idx", "work_list", "date" };
string[] update_col = { "state" };
string[] search_data = {
dataGridView1.Rows[row].Cells["idx"].Value.ToString(),
dataGridView1.Rows[row].Cells["list_name"].Value.ToString(),
dataGridView1.Rows[row].Cells["date"].Value.ToString() };
string[] update_data = { "" };
@@ -107,17 +111,6 @@ namespace UniMarc.마크
btn_Search_Click(null, e);
}
private int[] Call_Check()
{
List<int> chk_row = new List<int>();
for(int a= 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["colCheck"].Value.ToString() == "T")
chk_row.Add(a);
}
return chk_row.ToArray();
}
private void btn_Edit_Click(object sender, EventArgs e) // 편집 (V 확인필요)
{
int row = dataGridView1.CurrentRow.Index;
@@ -139,7 +132,7 @@ namespace UniMarc.마크
return;
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
string[] search_col = {"work_list", "date" };
string[] search_col = { "work_list", "date" };
string[] search_data = { dataGridView1.Rows[row].Cells["list_name"].Value.ToString(),
dataGridView1.Rows[row].Cells["date"].Value.ToString() };
@@ -171,7 +164,13 @@ namespace UniMarc.마크
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
int row = dataGridView1.CurrentRow.Index;
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
string list_name = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
string date = dataGridView1.Rows[row].Cells["date"].Value.ToString();
mp.mk_Grid(list_name, date);
mp.mk_Panel(idx, list_name, date);
this.Close();
}
}
}

View File

@@ -51,6 +51,8 @@ namespace UniMarc.마크
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.rtb_etc = new System.Windows.Forms.RichTextBox();
this.tb_outnum = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
@@ -106,13 +108,13 @@ namespace UniMarc.마크
this.panel2.Controls.Add(this.chk_countSplit);
this.panel2.Location = new System.Drawing.Point(252, 6);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(97, 30);
this.panel2.Size = new System.Drawing.Size(76, 30);
this.panel2.TabIndex = 0;
//
// chk_countSplit
//
this.chk_countSplit.AutoSize = true;
this.chk_countSplit.Location = new System.Drawing.Point(12, 7);
this.chk_countSplit.Location = new System.Drawing.Point(5, 7);
this.chk_countSplit.Name = "chk_countSplit";
this.chk_countSplit.Size = new System.Drawing.Size(72, 16);
this.chk_countSplit.TabIndex = 0;
@@ -122,7 +124,7 @@ namespace UniMarc.마크
//
// btn_mkList
//
this.btn_mkList.Location = new System.Drawing.Point(416, 10);
this.btn_mkList.Location = new System.Drawing.Point(425, 10);
this.btn_mkList.Name = "btn_mkList";
this.btn_mkList.Size = new System.Drawing.Size(75, 23);
this.btn_mkList.TabIndex = 1;
@@ -239,7 +241,7 @@ namespace UniMarc.마크
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label2.Location = new System.Drawing.Point(12, 306);
this.label2.Location = new System.Drawing.Point(124, 118);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(345, 13);
this.label2.TabIndex = 1;
@@ -247,15 +249,17 @@ namespace UniMarc.마크
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(12, 273);
this.progressBar1.Location = new System.Drawing.Point(12, 293);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(569, 23);
this.progressBar1.Step = 1;
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
this.progressBar1.TabIndex = 3;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.rtb_etc);
this.groupBox1.Location = new System.Drawing.Point(15, 114);
this.groupBox1.Location = new System.Drawing.Point(15, 134);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(566, 153);
this.groupBox1.TabIndex = 4;
@@ -264,6 +268,7 @@ namespace UniMarc.마크
//
// rtb_etc
//
this.rtb_etc.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.rtb_etc.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtb_etc.Location = new System.Drawing.Point(3, 17);
this.rtb_etc.Name = "rtb_etc";
@@ -271,11 +276,31 @@ namespace UniMarc.마크
this.rtb_etc.TabIndex = 0;
this.rtb_etc.Text = "";
//
// tb_outnum
//
this.tb_outnum.Location = new System.Drawing.Point(340, 11);
this.tb_outnum.Name = "tb_outnum";
this.tb_outnum.Size = new System.Drawing.Size(41, 21);
this.tb_outnum.TabIndex = 5;
this.tb_outnum.Text = "0";
this.tb_outnum.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(383, 15);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(17, 12);
this.label4.TabIndex = 3;
this.label4.Text = "차";
//
// Marc_mkList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(592, 328);
this.Controls.Add(this.label4);
this.Controls.Add(this.tb_outnum);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.panel4);
@@ -326,5 +351,7 @@ namespace UniMarc.마크
private System.Windows.Forms.ComboBox cb_divNum;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.RichTextBox rtb_etc;
private System.Windows.Forms.TextBox tb_outnum;
private System.Windows.Forms.Label label4;
}
}

View File

@@ -44,31 +44,18 @@ namespace UniMarc.마크
#region panel2 set // 분류기호
AuthorSymbol.Symbol symbol = new AuthorSymbol.Symbol();
// 저자기호
string[] First = { "첫음", "초성" };
string[] First = symbol.authorBook;
cb_FirstAuthor.Items.AddRange(First);
cb_FirstAuthor.SelectedIndex = 0;
string[] authorType = {
/* 00 */ "이재철 1표",
/* 01 */ "이재철 2표",
/* 02 */ "이재철 3표(실용형 가표)",
/* 03 */ "이재철 4표(실용형 까표)",
/* 04 */ "이재철 5표(완전형 가표)",
/* 05 */ "이재철 6표(완전형 가표)",
/* 06 */ "이재철 7표(실용형 하표)",
/* 07 */ "이재철 7표(동서저자기호표)",
/* 08 */ "이재철 8표(완전형 하표)",
/* 09 */ "이재철 8표(동서저자기호표)",
/* 10 */ "장일세 저자기호표",
/* 11 */ "커터 샌본 저자기호표",
/* 12 */ "엘러드 저자기호법",
/* 13 */ "동서양 저자기호법 (국중)"
};
string[] authorType = symbol.authorType;
cb_authorType.Items.AddRange(authorType);
cb_authorType.SelectedIndex = 0;
string[] Book = { "첫음", "초성", "중성" };
string[] Book = symbol.authorBook;
cb_FirstBook.Items.AddRange(Book);
cb_FirstBook.SelectedIndex = 0;
@@ -98,8 +85,19 @@ namespace UniMarc.마크
private void btn_mkList_Click(object sender, EventArgs e)
{
String_Text st = new String_Text();
if (tb_listName.Text == "") {
MessageBox.Show("목록명을 입력해주세요!");
return;
}
if (tb_outnum.Text == "") {
MessageBox.Show("차수가 비어있습니다.");
return;
}
string listName = tb_listName.Text;
string Time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string outnum = tb_outnum.Text + "차";
bool isAuthor = false;
bool isBook = false;
@@ -107,11 +105,8 @@ namespace UniMarc.마크
isAuthor = true;
if (cb_FirstBook.SelectedIndex == 0)
isBook = true;
if (listName == "") {
MessageBox.Show("목록명을 입력해주세요!");
return;
}
bool[] isType = { isAuthor, isBook };
// 시방서 목록 DB에 들어갈 것들.
string[] insert_list_col = {
"compidx", "work_list", "date", "state", "gu",
@@ -124,36 +119,42 @@ namespace UniMarc.마크
rtb_etc.Text
};
string cmdByList = db.DB_INSERT("Specs_List", insert_list_col, insert_list_data);
db.DB_Send_CMD_reVoid(cmdByList);
// 시방서 마크 DB에 들어갈 것들.
string[] insert_marc_col = {
string[] insert_marc_col = {
"compidx", "work_list", "date", "ISBN", "book_name",
"s_book_name1", "s_book_num1", "author", "book_comp", "pubdate",
"price", "tag008", "class_symbol", "author_symbol", "marc",
"imageURL"
"price", "tag008", "class_symbol", "author_symbol", "marc",
"imageURL", "count", "num", "out_num", "midx"
};
string[] insert_marc_data = {
compidx, listName, Time, "", "",
"", "", "", "", "",
"", "", "", "", "",
""
"", "", "", "", ""
}; // 마크에서 추출 ( 3 ~ 12 )
int[] row = checkGridRow();
int num = 0;
progressBar1.Maximum = row.Length;
string cmdByMarc = string.Format("INSERT INTO {0} {1}", "Specs_Marc", db.DB_INSERT_SUB("", insert_marc_col));
// TODO: 필터링하여 DB에 집어넣는 작업 필요.
// 필터링하여 DB에 집어넣는 작업
for (int a = 0; a < row.Length; a++)
{
num += 1;
// ISBN, book_name, s_book_name1, s_book_num1, author, book_comp, pubdate, price, tag008, class_symbol
string[] Search = { "020a", "245a", "440a", "440v", "245d", "260b", "260c", "950b", "008", "056a" };
// string[] Search = { "245d", "245a" };
insert_marc_data[14] = marc.List_Book.Rows[row[a]].Cells["db_marc"].Value.ToString();
insert_marc_data[15] = marc.List_Book.Rows[row[a]].Cells["url"].Value.ToString();
insert_marc_data[16] = marc.List_Book.Rows[row[a]].Cells["count"].Value.ToString();
insert_marc_data[17] = num.ToString();
insert_marc_data[18] = outnum;
insert_marc_data[19] = marc.List_Book.Rows[row[a]].Cells["marc_idx"].Value.ToString();
string[] Marc = Take_Tag(insert_marc_data[14], Search);
string[] Marc = st.Take_Tag(insert_marc_data[14], Search);
string[] Author = { Marc[4], Marc[1] };
for (int b = 0; b < Marc.Length; b++)
{
@@ -162,34 +163,39 @@ namespace UniMarc.마크
Author[0] = Regex.Replace(Author[0], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline);
Author[1] = Regex.Replace(Author[1], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline);
Author[1] = st.RemoveWordInBracket(Author[1]);
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
string authorType = cb_authorType.SelectedItem.ToString();
string res_Author = sb.SymbolAuthor(Author[0], Author[1], authorType, isType);
/*
char aut;
if (Author[0].Length <= 1)
aut = Author[0][0];
else
aut = Author[0][1];
AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol();
string res_Author = sb.Author_Fillter(Author[0][0], isAuthor);
#region 콤보박스 선택
if (cb_authorType.SelectedIndex == 0) // 이재철 1표
Author[0] = sb.Symbol_1(aut);
if (cb_authorType.SelectedIndex == 1) // 이재철 2표
if (cb_authorType.SelectedIndex == 1) // 이재철 2표
Author[0] = sb.Symbol_2(aut);
if (cb_authorType.SelectedIndex == 2) // 이재철 3표
if (cb_authorType.SelectedIndex == 2) // 이재철 3표
Author[0] = sb.Symbol_3(aut);
if (cb_authorType.SelectedIndex == 3) // 이재철 4표
if (cb_authorType.SelectedIndex == 3) // 이재철 4표
Author[0] = sb.Symbol_4(aut);
if (cb_authorType.SelectedIndex == 4) // 이재철 5표
if (cb_authorType.SelectedIndex == 4) // 이재철 5표
Author[0] = sb.Symbol_5(aut);
if (cb_authorType.SelectedIndex == 5) // 이재철 6표
if (cb_authorType.SelectedIndex == 5) // 이재철 6표
Author[0] = sb.Symbol_6(aut);
if (cb_authorType.SelectedIndex == 6) // 이재철 7표
if (cb_authorType.SelectedIndex == 6) // 이재철 7표
Author[0] = sb.Symbol_7(aut);
if (cb_authorType.SelectedIndex == 7) // 이재철 7표 (동양서저자기호표)
if (cb_authorType.SelectedIndex == 7) // 이재철 7표 (동양서저자기호표)
Author[0] = sb.Symbol_7_동서(aut);
if (cb_authorType.SelectedIndex == 8) // 이재철 8표
if (cb_authorType.SelectedIndex == 8) // 이재철 8표
Author[0] = sb.Symbol_8(aut);
if (cb_authorType.SelectedIndex == 9) // 이재철 8표 (동양서저자기호표)
Author[0] = sb.Symbol_8_동서(aut);
@@ -204,162 +210,37 @@ namespace UniMarc.마크
#endregion
Author[0] = Author[0].Replace("|", "");
res_Author += Author[0] + sb.Book_Fillter(Author[1], isBook);
*/
insert_marc_data[13] = res_Author;
string cmdByMarc = db.DB_INSERT("Specs_Marc", insert_marc_col, insert_marc_data);
if (a == row.Length - 1)
cmdByMarc += db.DB_INSERT_SUB("value", insert_marc_data) + ";";
else
cmdByMarc += "value" + db.DB_INSERT_SUB("value", insert_marc_data) + ", ";
progressBar1.PerformStep();
}
if (progressBar1.Value == progressBar1.Maximum) {
label2.Text = "완료되었습니다!";
db.DB_Send_CMD_reVoid(cmdByList);
db.DB_Send_CMD_reVoid(cmdByMarc);
}
}
string[] Take_Tag(string marc, string[] search)
{
string[] ary = marc.Split('');
string[] tag = res_dir(ary[0].Substring(24));
(string[] jisi, string[] mrc) = jisi_Symbol(tag, ary);
string[] s_tag = new string[search.Length];
string[] scan = new string[search.Length];
try
{
for (int a = 0; a < search.Length; a++)
{
s_tag[a] = search[a].Substring(0, 3);
scan[a] = "" + search[a].Substring(3);
}
}
catch { }
string[] result = new string[search.Length];
string memo = string.Empty;
for (int a = 0; a < tag.Length; a++)
{
for (int b = 0; b < s_tag.Length; b++)
{
if (tag[a] == s_tag[b])
{
string tmp = mrc[a];
int start = tmp.IndexOf(scan[b]);
if (start < 0)
{
int tag_num = Convert.ToInt16(s_tag[b]);
if (tag_num < 10)
result[b] = tmp;
else
result[b] = "";
}
else
{
start += 2;
int end = tmp.IndexOf("", start);
if (memo == result[b])
break;
if (end < 0)
result[b] = tmp.Substring(start);
else
result[b] = tmp.Substring(start, end - start);
memo = result[b];
}
}
}
}
for (int a = 0; a < result.Length; a++)
{
if (result[a] == null)
{
result[a] = "";
}
}
return result;
}
#region Take_Tag_Sub
string[] res_dir(string dir)
{
List<string> tmp = new List<string>();
for (int a = 0; a < dir.Length; a++)
{
if (a % 12 == 0)
tmp.Add(dir.Substring(a, 3));
}
return tmp.ToArray();
}
(string[], string[]) jisi_Symbol(string[] dir, string[] marc)
{
List<string> res = new List<string>();
List<string> tmp = new List<string>();
for (int a = 0; a < dir.Length; a++)
{
if (dir[a].Length < 1)
break;
if (marc[a + 1].Contains(""))
{
res.Add(marc[a + 1].Substring(0, 2));
tmp.Add(marc[a + 1].Substring(2));
}
else
{
res.Add("");
tmp.Add(marc[a + 1]);
}
}
return (res.ToArray(), tmp.ToArray());
}
#endregion
#region mkList_Sub
int[] checkGridRow()
{
List<int> GridRow = new List<int>();
for (int a = 0; a < marc.List_Book.Rows.Count; a++)
{
if (marc.List_Book.Rows[a].Cells["colCheck"].Value.ToString() == "V")
bool isSuccess = true;
if (!marc.Check_BackColor(a) && marc.Check_List_V(a))
isSuccess = false;
if (isSuccess)
GridRow.Add(a);
}
int[] Result = GridRow.ToArray();
return Result;
}
string Author_Symbol()
{
string result = "";
// 저자 첫음
// 저자 코드
// 도서 첫음
return result;
}
/* TODO: 마크 데이터 추출이후 작업
#region Author_Symbol_Sub
string First_Author()
{
int idx = cb_FirstAuthor.SelectedIndex;
RadioButton rb = new RadioButton();
if (idx == 0)
rb.Checked = true;
else
rb.Checked = false;
}
string Author_Type()
{
int idx = cb_cb_authorType.SelectedIndex;
}
string First_Book()
{
int idx = cb_FirstBook.SelectedIndex;
}
#endregion
*/
#endregion
private void btn_Close_Click(object sender, EventArgs e)

View File

@@ -15,6 +15,7 @@ namespace WindowsFormsApp1.Mac
public partial class Symbol_Add : Form
{
Main main;
Symbol sb = new Symbol();
public Symbol_Add(Main _main)
{
InitializeComponent();
@@ -23,22 +24,7 @@ namespace WindowsFormsApp1.Mac
private void Symbol_Add_Load(object sender, EventArgs e)
{
string[] com_list = {
/* 0 */ "이재철 1표",
/* 1 */ "이재철 2표",
/* 2 */ "이재철 3표(실용형 가표)",
/* 3 */ "이재철 4표(실용형 까표)",
/* 4 */ "이재철 5표(완전형 가표)",
/* 5 */ "이재철 6표(완전형 가표)",
/* 6 */ "이재철 7표(실용형 하표)",
/* 7 */ "이재철 7표(동서저자기호표)",
/* 8 */ "이재철 8표(완전형 하표)",
/* 9 */ "이재철 8표(동서저자기호표)",
/* 10 */ "장일세 저자기호표",
/* 11 */ "커터 샌본 저자기호표",
/* 12 */ "엘러드 저자기호법",
/* 13 */ "동서양 저자기호법 (국중)"
};
string[] com_list = sb.authorType;
RadioButton[] rb = { rb_author1, rb_book1, rb_moum1 };
for (int a = 0; a < rb.Length; a++)
@@ -50,7 +36,6 @@ namespace WindowsFormsApp1.Mac
private void button2_Click(object sender, EventArgs e)
{
Symbol sb = new Symbol();
string res = tb_author.Text;
string book = tb_book.Text;
@@ -77,12 +62,12 @@ namespace WindowsFormsApp1.Mac
return;
}
}
/*
char aut;
if (tb_author.Text.Length <= 1)
aut = tb_author.Text[0];
else
aut = tb_author.Text[1];
string rb1 = sb.Author_Fillter(tb_author.Text[0], rb_author1.Checked);
#region 콤보박스 선택
@@ -122,8 +107,10 @@ namespace WindowsFormsApp1.Mac
res = sb.Moum_Fillter(res, rb_moum1.Checked);
string rb2 = sb.Book_Fillter(book, rb_book1.Checked);
string result = string.Format("{0}{1}{2}", rb1, res, rb2);
*/
bool[] isType = { rb_author1.Checked, rb_book1.Checked };
string result = sb.SymbolAuthor(res, book, cb_symbol.SelectedItem.ToString(), isType);
tb_result.Text = result;
}

View File

@@ -14,6 +14,37 @@ namespace AuthorSymbol
/// </summary>
public class Symbol
{
/// <summary>
/// 저자기호 첫음, 초성
/// </summary>
public string[] authorFirst = { "첫음", "초성" };
/// <summary>
/// 저자기호표
/// </summary>
public string[] authorType =
{
/* 00 */ "이재철 1표",
/* 01 */ "이재철 2표",
/* 02 */ "이재철 3표(실용형 가표)",
/* 03 */ "이재철 4표(실용형 까표)",
/* 04 */ "이재철 5표(완전형 가표)",
/* 05 */ "이재철 6표(완전형 가표)",
/* 06 */ "이재철 7표(실용형 하표)",
/* 07 */ "이재철 7표(동서저자기호표)",
/* 08 */ "이재철 8표(완전형 하표)",
/* 09 */ "이재철 8표(동서저자기호표)",
/* 10 */ "장일세 저자기호표",
/* 11 */ "커터 샌본 저자기호표",
/* 12 */ "엘러드 저자기호법",
/* 13 */ "동서양 저자기호법 (국중)"
};
/// <summary>
/// 저자기호 도서명사용
/// </summary>
public string[] authorBook = { "첫음", "초성", "중성" };
/// <summary>
/// 이재철 1표
/// </summary>
@@ -21,7 +52,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_1(char author)
private string Symbol_1(char author)
{
#region
char[] Jaum = {
@@ -99,7 +130,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_2(char author)
private string Symbol_2(char author)
{
#region
char[] Jaum = {
@@ -191,7 +222,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_3(char author)
private string Symbol_3(char author)
{
#region
char[] Jaum = {
@@ -348,7 +379,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_4(char author)
private string Symbol_4(char author)
{
#region
char[] Jaum = {
@@ -514,7 +545,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_5(char author)
private string Symbol_5(char author)
{
#region
char[] Jaum = {
@@ -627,7 +658,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_6(char author)
private string Symbol_6(char author)
{
#region
char[] Jaum = {
@@ -785,7 +816,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_7(char author)
private string Symbol_7(char author)
{
#region
char[] Jaum = {
@@ -951,7 +982,7 @@ namespace AuthorSymbol
/// <param name="book">도서명</param>
/// <param name="rb">사용된 라디오박스 (3개)</param>
/// <returns>완성된 저자기호</returns>
public string Symbol_8(char author)
private string Symbol_8(char author)
{
#region
char[] Jaum = {
@@ -1071,7 +1102,7 @@ namespace AuthorSymbol
return res;
}
public string Symbol_7_동서(char author)
private string Symbol_7_동서(char author)
{
#region
char[] Jaum = {'ㄱ',
@@ -1230,7 +1261,7 @@ namespace AuthorSymbol
return res;
}
public string Symbol_8_동서(char author)
private string Symbol_8_동서(char author)
{
#region
char[] Jaum = {
@@ -1350,7 +1381,7 @@ namespace AuthorSymbol
return res;
}
public string Symbol_Jang(string author)
private string Symbol_Jang(string author)
{
author = author.ToUpper();
Helper_DB db = new Helper_DB();
@@ -1360,7 +1391,7 @@ namespace AuthorSymbol
return code;
}
public string Cutter(string author)
private string Cutter(string author)
{
author = author.ToUpper();
Helper_DB db = new Helper_DB();
@@ -1370,7 +1401,7 @@ namespace AuthorSymbol
return code;
}
public string Elord(string author)
private string Elord(string author)
{
author = Regex.Replace(author, @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline);
string result = author;
@@ -1385,7 +1416,7 @@ namespace AuthorSymbol
return result;
}
public string NLK(string author)
private string NLK(string author)
{
HANGUL_INFO info = HangulJaso.DevideJaso(author[0]);
string HNH = info.isHangul;
@@ -1409,8 +1440,82 @@ namespace AuthorSymbol
return Code;
}
/// <summary>
/// 저자입력시 저자기호를 리턴하는 함수
/// </summary>
/// <param name="author">저자</param>
/// <param name="book">도서명</param>
/// <param name="Type">저자기호 타입</param>
/// <param name="rb">저자첫음 / 서명첫음</param>
/// <returns></returns>
public string SymbolAuthor(string author, string book, string type, bool[] isType)
{
string resAuthor = Author_Fillter(author[0], isType[0]);
string resBook = Book_Fillter(book, isType[1]);
public string Author_Fillter(char Author, bool rb)
char aut;
if (author.Length <= 1)
aut = author[0];
else
aut = author[1];
#region
string authorType = string.Empty;
if (type == this.authorType[0])
authorType = Symbol_1(aut);
if (type == this.authorType[1])
authorType = Symbol_2(aut);
if (type == this.authorType[2])
authorType = Symbol_3(aut);
if (type == this.authorType[3])
authorType = Symbol_4(aut);
if (type == this.authorType[4])
authorType = Symbol_5(aut);
if (type == this.authorType[5])
authorType = Symbol_6(aut);
if (type == this.authorType[6])
authorType = Symbol_7(aut);
if (type == this.authorType[7])
authorType = Symbol_7_동서(aut);
if (type == this.authorType[8])
authorType = Symbol_8(aut);
if (type == this.authorType[9])
authorType = Symbol_8_동서(aut);
if (type == this.authorType[10])
authorType = Symbol_Jang(author);
if (type == this.authorType[11])
authorType = Cutter(author);
if (type == this.authorType[12])
authorType = Elord(author);
if (type == this.authorType[13])
authorType = NLK(author);
#endregion
authorType = authorType.Replace("|", "");
if (resAuthor == "")
return "";
if (resBook == "")
return "";
string res = resAuthor + authorType + resBook;
return res;
}
private string Author_Fillter(char Author, bool rb)
{
if (rb)
return Author.ToString();
@@ -1422,7 +1527,7 @@ namespace AuthorSymbol
return info.chars[0].ToString();
}
public string Book_Fillter(string book, bool rb)
private string Book_Fillter(string book, bool rb)
{
if (book == "")
return "";
@@ -1437,7 +1542,7 @@ namespace AuthorSymbol
return info.chars[0].ToString();
}
public string Moum_Fillter(string Value, bool rb)
private string Moum_Fillter(string Value, bool rb)
{
string result = Value;
if (rb)

View File

@@ -8,6 +8,7 @@ using System.Runtime.Remoting.Channels;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1;
using UniMarc.;
namespace ExcelTest
@@ -19,6 +20,7 @@ namespace ExcelTest
string find = "";
string change = "";
public string call = "";
String_Text st = new String_Text();
Marc mac;
Marc_memo mmm;
public findNchange(Marc _mac)
@@ -56,8 +58,8 @@ namespace ExcelTest
change = textBox2.Text;
textChange(find, change);
if (mac != null) {
mac.Color_change("▼");
mac.Color_change("▲");
st.Color_change("▼", mac.richTextBox1);
st.Color_change("▲", mac.richTextBox1);
}
Close();
}

View File

@@ -255,7 +255,7 @@
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(164, 21);
this.dateTimePicker1.TabIndex = 8;
this.dateTimePicker1.Value = new System.DateTime(2021, 7, 5, 11, 16, 1, 0);
this.dateTimePicker1.Value = new System.DateTime(2021, 11, 2, 0, 0, 0, 0);
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
//
// Btn_After