Compare commits

..

2 Commits

Author SHA1 Message Date
c44f40a651 addmar2 작업중 2026-01-24 00:35:09 +09:00
4ffbb2fa2e 마크정리 에디터컨트롤 통합 작업 1차완료 2026-01-23 22:40:36 +09:00
29 changed files with 2009 additions and 595 deletions

View File

@@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data;
using System.IO.Ports; using System.IO.Ports;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@@ -14,7 +15,7 @@ namespace WindowsFormsApp1
/// <summary> /// <summary>
/// DB접속을 도와주는 클래스 /// DB접속을 도와주는 클래스
/// </summary> /// </summary>
public class Helper_DB public class Helper_DB
{ {
// 접속 // 접속
MySqlConnection conn; MySqlConnection conn;
@@ -51,10 +52,11 @@ namespace WindowsFormsApp1
connectionInfo.Timeout = TimeSpan.FromSeconds(30); connectionInfo.Timeout = TimeSpan.FromSeconds(30);
using (var client = new SshClient(connectionInfo)) using (var client = new SshClient(connectionInfo))
{ {
if (conn != null) { if (conn != null)
{
conn.Close(); conn.Close();
conn.Dispose(); conn.Dispose();
} }
client.Connect(); client.Connect();
if (client.IsConnected) if (client.IsConnected)
{ {
@@ -123,8 +125,33 @@ namespace WindowsFormsApp1
} }
} }
} }
public DataTable ExecuteQueryData(string cmd)
{
DataTable dt = new DataTable();
try
{
conn.Open();
sqlcmd.CommandText = cmd;
sqlcmd.Connection = conn;
using (MySqlDataAdapter adapter = new MySqlDataAdapter(sqlcmd))
{
adapter.Fill(dt);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "ExecuteQueryData Error");
}
finally
{
if (conn.State == ConnectionState.Open) conn.Close();
}
return dt;
}
public string DB_Send_CMD_Search(string cmd) public string DB_Send_CMD_Search(string cmd)
{ {
// DB 연결 // DB 연결
conn.Open(); conn.Open();
// 쿼리 맵핑 // 쿼리 맵핑
@@ -157,7 +184,7 @@ namespace WindowsFormsApp1
sqlcmd.Connection = conn; sqlcmd.Connection = conn;
// 쿼리 날리기, sqlDataReader에 결과값 저장 // 쿼리 날리기, sqlDataReader에 결과값 저장
sd = sqlcmd.ExecuteReader(); sd = sqlcmd.ExecuteReader();
int colCount = dgv.ColumnCount; int colCount = dgv.ColumnCount;
string[] grid = new string[colCount]; string[] grid = new string[colCount];
int AddCol = 0; int AddCol = 0;
@@ -184,7 +211,7 @@ namespace WindowsFormsApp1
conn.Close(); conn.Close();
} }
public void DB_Send_CMD_Search_GetGridData(string cmd,DataGridView pDgv) public void DB_Send_CMD_Search_GetGridData(string cmd, DataGridView pDgv)
{ {
// DB 연결 // DB 연결
conn.Open(); conn.Open();
@@ -209,7 +236,7 @@ namespace WindowsFormsApp1
if (colCount - 1 == AddCol) if (colCount - 1 == AddCol)
{ {
AddCol = 0; AddCol = 0;
grid[colCount]="추가"; grid[colCount] = "추가";
pDgv.Rows.Add(grid); pDgv.Rows.Add(grid);
} }
else else
@@ -222,8 +249,8 @@ namespace WindowsFormsApp1
} }
public void DB_Send_CMD_reVoid(string cmd) public void DB_Send_CMD_reVoid(string cmd)
{ {
//using (conn) //using (conn)
{ {
conn.Open(); conn.Open();
@@ -257,10 +284,10 @@ namespace WindowsFormsApp1
/// <param name="DB_Where_Table">검색할 테이블</param> /// <param name="DB_Where_Table">검색할 테이블</param>
/// <param name="DB_Search_Data">검색할 텍스트</param> /// <param name="DB_Search_Data">검색할 텍스트</param>
/// <returns>검색된 결과값이 반환됨.</returns> /// <returns>검색된 결과값이 반환됨.</returns>
public string DB_Contains(string DB_Table_Name, string compidx, public string DB_Contains(string DB_Table_Name, string compidx,
string DB_Where_Table = "", string DB_Search_Data = "", string DB_Where_Table = "", string DB_Search_Data = "",
string Search_col = "", string Search_col = "",
string DB_Where_Table1 = "", string DB_Search_Data1 = "" ) string DB_Where_Table1 = "", string DB_Search_Data1 = "")
{ {
string cmd = "SELECT "; string cmd = "SELECT ";
if (Search_col == "") { cmd += "*"; } if (Search_col == "") { cmd += "*"; }
@@ -270,16 +297,16 @@ namespace WindowsFormsApp1
if (DB_Table_Name == "Obj_List") { cmd += " WHERE `comp_num` = \"" + compidx + "\""; } if (DB_Table_Name == "Obj_List") { cmd += " WHERE `comp_num` = \"" + compidx + "\""; }
else if (DB_Table_Name == "Client") { cmd += " WHERE `campanyidx` = \"" + compidx + "\""; } else if (DB_Table_Name == "Client") { cmd += " WHERE `campanyidx` = \"" + compidx + "\""; }
else if (DB_Table_Name == "Purchase") { cmd += " WHERE `comparyidx` = \"" + compidx + "\""; } else if (DB_Table_Name == "Purchase") { cmd += " WHERE `comparyidx` = \"" + compidx + "\""; }
else if(compidx == "none") { cmd += " WHERE `grade` = \"2\""; } else if (compidx == "none") { cmd += " WHERE `grade` = \"2\""; }
else { cmd += " WHERE `compidx` = \"" + compidx + "\""; } else { cmd += " WHERE `compidx` = \"" + compidx + "\""; }
if(DB_Search_Data != "") if (DB_Search_Data != "")
{ {
cmd += " AND `"+ DB_Where_Table + "` LIKE \"%" + DB_Search_Data + "%\""; cmd += " AND `" + DB_Where_Table + "` LIKE \"%" + DB_Search_Data + "%\"";
} }
if(DB_Search_Data1 != "") if (DB_Search_Data1 != "")
{ {
cmd += " AND `"+ DB_Where_Table1 + "` LIKE \"%" + DB_Search_Data1 + "%\""; cmd += " AND `" + DB_Where_Table1 + "` LIKE \"%" + DB_Search_Data1 + "%\"";
} }
cmd += ";"; cmd += ";";
return cmd; return cmd;
@@ -292,17 +319,17 @@ namespace WindowsFormsApp1
/// <param name="DB_Where_Table">검색할 테이블</param> /// <param name="DB_Where_Table">검색할 테이블</param>
/// <param name="DB_Search_Data">검색할 텍스트</param> /// <param name="DB_Search_Data">검색할 텍스트</param>
/// <returns>검색된 결과값이 반환됨.</returns> /// <returns>검색된 결과값이 반환됨.</returns>
public string DB_Select_Search(string Search_Area, string DB_Table_Name, public string DB_Select_Search(string Search_Area, string DB_Table_Name,
string DB_Where_Table = "", string DB_Search_Data = "", string DB_Where_Table = "", string DB_Search_Data = "",
string DB_Where_Table1 = "", string DB_Search_Data1 = "") string DB_Where_Table1 = "", string DB_Search_Data1 = "")
{ {
string cmd = string.Format("SELECT {0} FROM ", Search_Area); string cmd = string.Format("SELECT {0} FROM ", Search_Area);
cmd += DB_Table_Name; cmd += DB_Table_Name;
if(DB_Where_Table != "" && DB_Search_Data != "") if (DB_Where_Table != "" && DB_Search_Data != "")
{ {
cmd += string.Format(" WHERE `{0}` = \"{1}\"", DB_Where_Table, DB_Search_Data); cmd += string.Format(" WHERE `{0}` = \"{1}\"", DB_Where_Table, DB_Search_Data);
} }
if(DB_Where_Table1 != "" && DB_Search_Data1 != "") if (DB_Where_Table1 != "" && DB_Search_Data1 != "")
{ {
cmd += string.Format(" AND `{0}` = \"{1}\"", DB_Where_Table1, DB_Search_Data1); cmd += string.Format(" AND `{0}` = \"{1}\"", DB_Where_Table1, DB_Search_Data1);
} }
@@ -316,15 +343,15 @@ namespace WindowsFormsApp1
/// <param name="DB_Where_Table">검색할 테이블</param> /// <param name="DB_Where_Table">검색할 테이블</param>
/// <param name="DB_Search_Data">검색할 텍스트</param> /// <param name="DB_Search_Data">검색할 텍스트</param>
/// <returns>검색된 결과값이 반환됨.</returns> /// <returns>검색된 결과값이 반환됨.</returns>
public string DB_Search(string DB_Table_Name, public string DB_Search(string DB_Table_Name,
string DB_Where_Table = "", string DB_Search_Data = "", string DB_Where_Table = "", string DB_Search_Data = "",
string DB_Where_Table1 = "", string DB_Search_Data1 = "") string DB_Where_Table1 = "", string DB_Search_Data1 = "")
{ {
string cmd = "SELECT * FROM "; string cmd = "SELECT * FROM ";
cmd += DB_Table_Name;// + " where id=\"id\""; cmd += DB_Table_Name;// + " where id=\"id\"";
if(DB_Search_Data != "") if (DB_Search_Data != "")
{ {
cmd += " WHERE "+ DB_Where_Table + "=\"" + DB_Search_Data +"\""; cmd += " WHERE " + DB_Where_Table + "=\"" + DB_Search_Data + "\"";
} }
if (DB_Where_Table1 != "" && DB_Search_Data1 != "") if (DB_Where_Table1 != "" && DB_Search_Data1 != "")
{ {
@@ -341,18 +368,18 @@ namespace WindowsFormsApp1
/// <param name="DB_Search_Data"></param> /// <param name="DB_Search_Data"></param>
/// <param name="Search_Table">추출할 열의 이름."`num1`, `num2`" 이런식으로</param> /// <param name="Search_Table">추출할 열의 이름."`num1`, `num2`" 이런식으로</param>
/// <returns></returns> /// <returns></returns>
public string More_DB_Search(String DB_Table_Name, String[] DB_Where_Table, public string More_DB_Search(String DB_Table_Name, String[] DB_Where_Table,
String[] DB_Search_Data, String Search_Table = "") String[] DB_Search_Data, String Search_Table = "")
{ {
if(DB_Where_Table.Length != DB_Search_Data.Length) { return "오류발생"; } if (DB_Where_Table.Length != DB_Search_Data.Length) { return "오류발생"; }
string cmd = "SELECT "; string cmd = "SELECT ";
if(Search_Table == "") { cmd += "*"; } if (Search_Table == "") { cmd += "*"; }
else { cmd += Search_Table; } else { cmd += Search_Table; }
cmd += " FROM " + DB_Table_Name + " WHERE "; cmd += " FROM " + DB_Table_Name + " WHERE ";
for(int a = 0; a < DB_Where_Table.Length; a++) for (int a = 0; a < DB_Where_Table.Length; a++)
{ {
cmd += "`" + DB_Where_Table[a] + "` = \"" + DB_Search_Data[a] + "\" "; cmd += "`" + DB_Where_Table[a] + "` = \"" + DB_Search_Data[a] + "\" ";
if(a == DB_Where_Table.Length - 1) { cmd += ";"; } if (a == DB_Where_Table.Length - 1) { cmd += ";"; }
else { cmd += " AND "; } else { cmd += " AND "; }
} }
return cmd; return cmd;
@@ -367,7 +394,7 @@ namespace WindowsFormsApp1
/// <param name="end_date">끝낼 날짜 0000-00-00</param> /// <param name="end_date">끝낼 날짜 0000-00-00</param>
/// <param name="compidx">회사 인덱스 main.com_idx</param> /// <param name="compidx">회사 인덱스 main.com_idx</param>
/// <returns></returns> /// <returns></returns>
public string Search_Date(string Table_name, string Search_Table, string Search_date, public string Search_Date(string Table_name, string Search_Table, string Search_date,
string start_date, string end_date, string compidx) string start_date, string end_date, string compidx)
{ {
if (Search_Table == "") { Search_Table = "*"; } if (Search_Table == "") { Search_Table = "*"; }
@@ -375,7 +402,7 @@ namespace WindowsFormsApp1
string cmd = "SELECT " + Search_Table + " FROM `" + Table_name + "` " + string cmd = "SELECT " + Search_Table + " FROM `" + Table_name + "` " +
"WHERE `comp_num` = '" + compidx + "' AND `" + "WHERE `comp_num` = '" + compidx + "' AND `" +
Search_date + "` >= '" + start_date + "'"; Search_date + "` >= '" + start_date + "'";
if(Table_name != "Obj_List") { cmd = cmd.Replace("`comp_num`", "`compidx`"); } if (Table_name != "Obj_List") { cmd = cmd.Replace("`comp_num`", "`compidx`"); }
if (end_date != "") { cmd += " AND `" + Search_date + "` <= '" + end_date + "';"; } if (end_date != "") { cmd += " AND `" + Search_date + "` <= '" + end_date + "';"; }
else { cmd += ";"; } else { cmd += ";"; }
return cmd; return cmd;
@@ -383,13 +410,13 @@ namespace WindowsFormsApp1
public string DB_INSERT(String DB_Table_name, String[] DB_col_name, String[] setData) public string DB_INSERT(String DB_Table_name, String[] DB_col_name, String[] setData)
{ {
string cmd = "INSERT INTO " + DB_Table_name + "("; string cmd = "INSERT INTO " + DB_Table_name + "(";
for(int a = 0; a < DB_col_name.Length; a++) for (int a = 0; a < DB_col_name.Length; a++)
{ {
if (a == DB_col_name.Length - 1) { cmd += "`" + DB_col_name[a] + "`) "; } if (a == DB_col_name.Length - 1) { cmd += "`" + DB_col_name[a] + "`) "; }
else { cmd += "`" + DB_col_name[a] + "`, "; } else { cmd += "`" + DB_col_name[a] + "`, "; }
} }
cmd += "values("; cmd += "values(";
for(int a = 0; a < setData.Length; a++) for (int a = 0; a < setData.Length; a++)
{ {
setData[a] = setData[a].Replace("\"", "\"\""); setData[a] = setData[a].Replace("\"", "\"\"");
if (a == setData.Length - 1) { cmd += "\"" + setData[a] + "\")"; } if (a == setData.Length - 1) { cmd += "\"" + setData[a] + "\")"; }
@@ -427,8 +454,8 @@ namespace WindowsFormsApp1
/// <param name="comp_idx">삭제할 대상의 인덱스</param> /// <param name="comp_idx">삭제할 대상의 인덱스</param>
/// <param name="target_area">삭제할 대상이 있는 열명</param> /// <param name="target_area">삭제할 대상이 있는 열명</param>
/// <param name="target">삭제할 대상</param> /// <param name="target">삭제할 대상</param>
public string DB_Delete(string DB_Table_Name, public string DB_Delete(string DB_Table_Name,
string target_idx, string comp_idx, string target_idx, string comp_idx,
string target_area, string target) string target_area, string target)
{ {
string cmd = "DELETE FROM " + DB_Table_Name + " WHERE " + string cmd = "DELETE FROM " + DB_Table_Name + " WHERE " +
@@ -444,12 +471,12 @@ namespace WindowsFormsApp1
/// <param name="comp_idx">회사 인덱스</param> /// <param name="comp_idx">회사 인덱스</param>
/// <param name="target_area">삭제 대상의 컬럼명</param> /// <param name="target_area">삭제 대상의 컬럼명</param>
/// <param name="target">삭제 대상</param> /// <param name="target">삭제 대상</param>
public string DB_Delete_No_Limit(string DB_Table, public string DB_Delete_No_Limit(string DB_Table,
string target_idx, string comp_idx, string target_idx, string comp_idx,
string[] target_area, string[] target) string[] target_area, string[] target)
{ {
string cmd = string.Format("DELETE FROM {0} WHERE `{1}`= \"{2}\" AND", DB_Table, target_idx, comp_idx); string cmd = string.Format("DELETE FROM {0} WHERE `{1}`= \"{2}\" AND", DB_Table, target_idx, comp_idx);
for(int a= 0; a < target_area.Length; a++) for (int a = 0; a < target_area.Length; a++)
{ {
cmd += string.Format("`{0}`=\"{1}\"", target_area[a], target[a]); cmd += string.Format("`{0}`=\"{1}\"", target_area[a], target[a]);
if (a != target_area.Length - 1) { cmd += " AND"; } if (a != target_area.Length - 1) { cmd += " AND"; }
@@ -460,13 +487,13 @@ namespace WindowsFormsApp1
/// <summary> /// <summary>
/// 대상 컬럼 삭제 / DELETE FROM "DB_Table_Name" WHERE "target_idx"="comp_idx" AND "target_area"="target"; /// 대상 컬럼 삭제 / DELETE FROM "DB_Table_Name" WHERE "target_idx"="comp_idx" AND "target_area"="target";
/// </summary> /// </summary>
public string DB_Delete_More_term(string DB_Table_Name, public string DB_Delete_More_term(string DB_Table_Name,
string target_idx, string comp_idx, string target_idx, string comp_idx,
string[] target_area, string[] target) string[] target_area, string[] target)
{ {
string cmd = "DELETE FROM " + DB_Table_Name + " WHERE " + string cmd = "DELETE FROM " + DB_Table_Name + " WHERE " +
"`" + target_idx + "`=\"" + comp_idx + "\" AND"; "`" + target_idx + "`=\"" + comp_idx + "\" AND";
for(int a = 0; a < target_area.Length; a++) for (int a = 0; a < target_area.Length; a++)
{ {
cmd += " `" + target_area[a] + "`=\"" + target[a] + "\" "; cmd += " `" + target_area[a] + "`=\"" + target[a] + "\" ";
if (a == target_area.Length - 1) { cmd += "LIMIT 1;"; } if (a == target_area.Length - 1) { cmd += "LIMIT 1;"; }
@@ -484,7 +511,7 @@ namespace WindowsFormsApp1
/// <param name="Search_Data">검색할 데이터</param> /// <param name="Search_Data">검색할 데이터</param>
public string DB_Update(string DB_Tabel_Name, string Edit_colum, string Edit_Name, string Search_Name, string Search_Data) public string DB_Update(string DB_Tabel_Name, string Edit_colum, string Edit_Name, string Search_Name, string Search_Data)
{ {
string cmd = "UPDATE `" + DB_Tabel_Name + "` SET `" + Edit_colum + "`=\"" + Edit_Name + "\" WHERE `"+Search_Name+"`=\"" + Search_Data + "\";"; string cmd = "UPDATE `" + DB_Tabel_Name + "` SET `" + Edit_colum + "`=\"" + Edit_Name + "\" WHERE `" + Search_Name + "`=\"" + Search_Data + "\";";
cmd = cmd.Replace("|", ""); cmd = cmd.Replace("|", "");
return cmd; return cmd;
} }
@@ -496,12 +523,12 @@ namespace WindowsFormsApp1
/// <param name="Edit_name">바꿀 데이터값</param> /// <param name="Edit_name">바꿀 데이터값</param>
/// <param name="Search_col">대상 테이블명</param> /// <param name="Search_col">대상 테이블명</param>
/// <param name="Search_Name">대상 데이터값</param> /// <param name="Search_Name">대상 데이터값</param>
public string More_Update(String DB_Table_Name, public string More_Update(String DB_Table_Name,
String[] Edit_col, String[] Edit_name, String[] Edit_col, String[] Edit_name,
String[] Search_col, String[] Search_Name, int limit = 0) String[] Search_col, String[] Search_Name, int limit = 0)
{ {
string cmd = "UPDATE `" + DB_Table_Name + "` SET "; string cmd = "UPDATE `" + DB_Table_Name + "` SET ";
for(int a = 0; a < Edit_col.Length; a++) for (int a = 0; a < Edit_col.Length; a++)
{ {
Edit_name[a] = Edit_name[a].Replace("\"", "\"\""); Edit_name[a] = Edit_name[a].Replace("\"", "\"\"");
cmd += "`" + Edit_col[a] + "` = \"" + Edit_name[a] + "\""; cmd += "`" + Edit_col[a] + "` = \"" + Edit_name[a] + "\"";
@@ -509,14 +536,14 @@ namespace WindowsFormsApp1
else { cmd += " "; } else { cmd += " "; }
} }
cmd += "WHERE "; cmd += "WHERE ";
for(int a = 0; a < Search_col.Length; a++) for (int a = 0; a < Search_col.Length; a++)
{ {
cmd += "`" + Search_col[a] + "` = \"" + Search_Name[a] + "\" "; cmd += "`" + Search_col[a] + "` = \"" + Search_Name[a] + "\" ";
if (a != Search_col.Length - 1) { cmd += "AND "; } if (a != Search_col.Length - 1) { cmd += "AND "; }
} }
if(limit != 0) { cmd += string.Format("LIMIT {0}", limit); } if (limit != 0) { cmd += string.Format("LIMIT {0}", limit); }
cmd += ";"; cmd += ";";
cmd = cmd.Replace("|", ""); cmd = cmd.Replace("|", "");
return cmd; return cmd;
} }
/// <summary> /// <summary>
@@ -572,9 +599,9 @@ namespace WindowsFormsApp1
} }
} }
} }
catch(Exception e) catch (Exception e)
{ {
MessageBox.Show("{0} Exception caught.\n"+ e.ToString()); MessageBox.Show("{0} Exception caught.\n" + e.ToString());
MessageBox.Show(cmd); MessageBox.Show(cmd);
} }
conn.Close(); conn.Close();

View File

@@ -139,6 +139,7 @@
this.mdiTabControl = new System.Windows.Forms.TabControl(); this.mdiTabControl = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.NewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
@@ -159,8 +160,7 @@
this.menu_allclose}); this.menu_allclose});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Padding = new System.Windows.Forms.Padding(7, 2, 0, 2); this.menuStrip1.Size = new System.Drawing.Size(1664, 24);
this.menuStrip1.Size = new System.Drawing.Size(1902, 30);
this.menuStrip1.TabIndex = 0; this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1"; this.menuStrip1.Text = "menuStrip1";
// //
@@ -175,34 +175,34 @@
this., this.,
this.}); this.});
this.ToolStripMenuItem.Name = "홈ToolStripMenuItem"; this.ToolStripMenuItem.Name = "홈ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(38, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(31, 20);
this.ToolStripMenuItem.Text = "홈"; this.ToolStripMenuItem.Text = "홈";
// //
// 사업체정보 // 사업체정보
// //
this..Name = "사업체정보"; this..Name = "사업체정보";
this..Size = new System.Drawing.Size(218, 26); this..Size = new System.Drawing.Size(175, 22);
this..Text = "사업체 정보"; this..Text = "사업체 정보";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 사용자관리 // 사용자관리
// //
this..Name = "사용자관리"; this..Name = "사용자관리";
this..Size = new System.Drawing.Size(218, 26); this..Size = new System.Drawing.Size(175, 22);
this..Text = "사용자 관리"; this..Text = "사용자 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 납품거래처관리 // 납품거래처관리
// //
this..Name = "납품거래처관리"; this..Name = "납품거래처관리";
this..Size = new System.Drawing.Size(218, 26); this..Size = new System.Drawing.Size(175, 22);
this..Text = "납품 / 거래처 관리"; this..Text = "납품 / 거래처 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 주문처관리 // 주문처관리
// //
this..Name = "주문처관리"; this..Name = "주문처관리";
this..Size = new System.Drawing.Size(218, 26); this..Size = new System.Drawing.Size(175, 22);
this..Text = "주문처 관리"; this..Text = "주문처 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -210,14 +210,14 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "비밀번호변경"; this..Name = "비밀번호변경";
this..Size = new System.Drawing.Size(218, 26); this..Size = new System.Drawing.Size(175, 22);
this..Text = "비밀번호 변경"; this..Text = "비밀번호 변경";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 도서정보관리 // 도서정보관리
// //
this..Name = "도서정보관리"; this..Name = "도서정보관리";
this..Size = new System.Drawing.Size(218, 26); this..Size = new System.Drawing.Size(175, 22);
this..Text = "도서정보 관리"; this..Text = "도서정보 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -225,7 +225,7 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "사용대장"; this..Name = "사용대장";
this..Size = new System.Drawing.Size(218, 26); this..Size = new System.Drawing.Size(175, 22);
this..Text = "사용대장"; this..Text = "사용대장";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -240,55 +240,55 @@
this., this.,
this.}); this.});
this.ToolStripMenuItem.Name = "납품관리ToolStripMenuItem"; this.ToolStripMenuItem.Name = "납품관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(83, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(67, 20);
this.ToolStripMenuItem.Text = "납품관리"; this.ToolStripMenuItem.Text = "납품관리";
// //
// 목록등록 // 목록등록
// //
this..Name = "목록등록"; this..Name = "목록등록";
this..Size = new System.Drawing.Size(207, 26); this..Size = new System.Drawing.Size(166, 22);
this..Text = "물품등록"; this..Text = "물품등록";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 목록조회 // 목록조회
// //
this..Name = "목록조회"; this..Name = "목록조회";
this..Size = new System.Drawing.Size(207, 26); this..Size = new System.Drawing.Size(166, 22);
this..Text = "목록조회"; this..Text = "목록조회";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 목록집계 // 목록집계
// //
this..Name = "목록집계"; this..Name = "목록집계";
this..Size = new System.Drawing.Size(207, 26); this..Size = new System.Drawing.Size(166, 22);
this..Text = "목록집계"; this..Text = "목록집계";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 주문입력 // 주문입력
// //
this..Name = "주문입력"; this..Name = "주문입력";
this..Size = new System.Drawing.Size(207, 26); this..Size = new System.Drawing.Size(166, 22);
this..Text = "주문입력"; this..Text = "주문입력";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 입고작업 // 입고작업
// //
this..Name = "입고작업"; this..Name = "입고작업";
this..Size = new System.Drawing.Size(207, 26); this..Size = new System.Drawing.Size(166, 22);
this..Text = "입고작업"; this..Text = "입고작업";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 재고입력및조회 // 재고입력및조회
// //
this..Name = "재고입력및조회"; this..Name = "재고입력및조회";
this..Size = new System.Drawing.Size(207, 26); this..Size = new System.Drawing.Size(166, 22);
this..Text = "재고입력 및 조회"; this..Text = "재고입력 및 조회";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 반품처리 // 반품처리
// //
this..Name = "반품처리"; this..Name = "반품처리";
this..Size = new System.Drawing.Size(207, 26); this..Size = new System.Drawing.Size(166, 22);
this..Text = "반품처리"; this..Text = "반품처리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -301,20 +301,20 @@
this., this.,
this.}); this.});
this.ToolStripMenuItem.Name = "회계ToolStripMenuItem"; this.ToolStripMenuItem.Name = "회계ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(53, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(43, 20);
this.ToolStripMenuItem.Text = "회계"; this.ToolStripMenuItem.Text = "회계";
// //
// 송금내역조회 // 송금내역조회
// //
this..Name = "송금내역조회"; this..Name = "송금내역조회";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(154, 22);
this..Text = "송금 내역 조회"; this..Text = "송금 내역 조회";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 송금등록 // 송금등록
// //
this..Name = "송금등록"; this..Name = "송금등록";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(154, 22);
this..Text = "송금 등록"; this..Text = "송금 등록";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -325,20 +325,20 @@
this., this.,
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this..Name = "매입"; this..Name = "매입";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(154, 22);
this..Text = "매입"; this..Text = "매입";
// //
// 매입집계 // 매입집계
// //
this..Name = "매입집계"; this..Name = "매입집계";
this..Size = new System.Drawing.Size(172, 26); this..Size = new System.Drawing.Size(138, 22);
this..Text = "매입 집계"; this..Text = "매입 집계";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 매입장부 // 매입장부
// //
this..Name = "매입장부"; this..Name = "매입장부";
this..Size = new System.Drawing.Size(172, 26); this..Size = new System.Drawing.Size(138, 22);
this..Text = "매입 장부"; this..Text = "매입 장부";
this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
@@ -346,7 +346,7 @@
// //
this.ToolStripMenuItem.Enabled = false; this.ToolStripMenuItem.Enabled = false;
this.ToolStripMenuItem.Name = "매입미결제ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매입미결제ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(172, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
this.ToolStripMenuItem.Text = "매입 미결제"; this.ToolStripMenuItem.Text = "매입 미결제";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -358,41 +358,41 @@
this., this.,
this.}); this.});
this..Name = "매출"; this..Name = "매출";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(154, 22);
this..Text = "매출"; this..Text = "매출";
// //
// 매출입력 // 매출입력
// //
this..Name = "매출입력"; this..Name = "매출입력";
this..Size = new System.Drawing.Size(157, 26); this..Size = new System.Drawing.Size(126, 22);
this..Text = "매출 입력"; this..Text = "매출 입력";
this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 매출입금 // 매출입금
// //
this..Name = "매출입금"; this..Name = "매출입금";
this..Size = new System.Drawing.Size(157, 26); this..Size = new System.Drawing.Size(126, 22);
this..Text = "매출 입금"; this..Text = "매출 입금";
this..Click += new System.EventHandler(this.toolStripMenuItem1_Click_1); this..Click += new System.EventHandler(this.toolStripMenuItem1_Click_1);
// //
// 매출조회 // 매출조회
// //
this..Name = "매출조회"; this..Name = "매출조회";
this..Size = new System.Drawing.Size(157, 26); this..Size = new System.Drawing.Size(126, 22);
this..Text = "매출 조회"; this..Text = "매출 조회";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 매출집계 // 매출집계
// //
this..Name = "매출집계"; this..Name = "매출집계";
this..Size = new System.Drawing.Size(157, 26); this..Size = new System.Drawing.Size(126, 22);
this..Text = "매출 집계"; this..Text = "매출 집계";
this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 파트타임관리 // 파트타임관리
// //
this..Name = "파트타임관리"; this..Name = "파트타임관리";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(154, 22);
this..Text = "파트타임 관리"; this..Text = "파트타임 관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -407,7 +407,7 @@
this.DLS, this.DLS,
this.}); this.});
this.ToolStripMenuItem.Name = "마크ToolStripMenuItem"; this.ToolStripMenuItem.Name = "마크ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(53, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(43, 20);
this.ToolStripMenuItem.Text = "마크"; this.ToolStripMenuItem.Text = "마크";
// //
// 마크설정 // 마크설정
@@ -418,13 +418,13 @@
this., this.,
this.}); this.});
this..Name = "마크설정"; this..Name = "마크설정";
this..Size = new System.Drawing.Size(193, 26); this..Size = new System.Drawing.Size(180, 22);
this..Text = "설정"; this..Text = "설정";
// //
// 단축키설정 // 단축키설정
// //
this..Name = "단축키설정"; this..Name = "단축키설정";
this..Size = new System.Drawing.Size(172, 26); this..Size = new System.Drawing.Size(138, 22);
this..Text = "단축키"; this..Text = "단축키";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -432,14 +432,14 @@
// 매크로문구 // 매크로문구
// //
this..Name = "매크로문구"; this..Name = "매크로문구";
this..Size = new System.Drawing.Size(172, 26); this..Size = new System.Drawing.Size(138, 22);
this..Text = "매크로 문구"; this..Text = "매크로 문구";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 불용어 // 불용어
// //
this..Name = "불용어"; this..Name = "불용어";
this..Size = new System.Drawing.Size(172, 26); this..Size = new System.Drawing.Size(138, 22);
this..Text = "불용어"; this..Text = "불용어";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -447,7 +447,7 @@
// 작업지시서 // 작업지시서
// //
this..Name = "작업지시서"; this..Name = "작업지시서";
this..Size = new System.Drawing.Size(172, 26); this..Size = new System.Drawing.Size(138, 22);
this..Text = "작업지시서"; this..Text = "작업지시서";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -456,6 +456,7 @@
// //
this..DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this..DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this., this.,
this.NewToolStripMenuItem,
this., this.,
this., this.,
this., this.,
@@ -463,13 +464,13 @@
this.2, this.2,
this.iSBN조회}); this.iSBN조회});
this..Name = "마크작업"; this..Name = "마크작업";
this..Size = new System.Drawing.Size(193, 26); this..Size = new System.Drawing.Size(180, 22);
this..Text = "마크 작업"; this..Text = "마크 작업";
// //
// 마크작성 // 마크작성
// //
this..Name = "마크작성"; this..Name = "마크작성";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(182, 22);
this..Text = "신규마크 작성"; this..Text = "신규마크 작성";
this..ToolTipText = "마크 작성(2)"; this..ToolTipText = "마크 작성(2)";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -477,42 +478,42 @@
// 마크목록 // 마크목록
// //
this..Name = "마크목록"; this..Name = "마크목록";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(182, 22);
this..Text = "마크 목록"; this..Text = "마크 목록";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 소장자료검색 // 소장자료검색
// //
this..Name = "소장자료검색"; this..Name = "소장자료검색";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(182, 22);
this..Text = "소장자료검색"; this..Text = "소장자료검색";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 마크정리 // 마크정리
// //
this..Name = "마크정리"; this..Name = "마크정리";
this..Size = new System.Drawing.Size(192, 26); this..Size = new System.Drawing.Size(182, 22);
this..Text = "마크 정리"; this..Text = "마크 정리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 복본조사1 // 복본조사1
// //
this.1.Name = "복본조사1"; this.1.Name = "복본조사1";
this.1.Size = new System.Drawing.Size(192, 26); this.1.Size = new System.Drawing.Size(182, 22);
this.1.Text = "복본조사"; this.1.Text = "복본조사";
this.1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this.1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 복본조사2 // 복본조사2
// //
this.2.Name = "복본조사2"; this.2.Name = "복본조사2";
this.2.Size = new System.Drawing.Size(192, 26); this.2.Size = new System.Drawing.Size(182, 22);
this.2.Text = "복본조사(New)"; this.2.Text = "복본조사(New)";
this.2.Click += new System.EventHandler(this.2_Click); this.2.Click += new System.EventHandler(this.2_Click);
// //
// iSBN조회 // iSBN조회
// //
this.iSBN조회.Name = "iSBN조회"; this.iSBN조회.Name = "iSBN조회";
this.iSBN조회.Size = new System.Drawing.Size(192, 26); this.iSBN조회.Size = new System.Drawing.Size(182, 22);
this.iSBN조회.Text = "ISBN 조회"; this.iSBN조회.Text = "ISBN 조회";
this.iSBN조회.Click += new System.EventHandler(this.iSBN조회ToolStripMenuItem_Click); this.iSBN조회.Click += new System.EventHandler(this.iSBN조회ToolStripMenuItem_Click);
// //
@@ -522,21 +523,21 @@
this., this.,
this.}); this.});
this.dVDCDLPToolStripMenuItem.Name = "dVDCDLPToolStripMenuItem"; this.dVDCDLPToolStripMenuItem.Name = "dVDCDLPToolStripMenuItem";
this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(193, 26); this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.dVDCDLPToolStripMenuItem.Text = "DVD / CD / LP"; this.dVDCDLPToolStripMenuItem.Text = "DVD / CD / LP";
// //
// 목록 // 목록
// //
this..Enabled = false; this..Enabled = false;
this..Name = "목록"; this..Name = "목록";
this..Size = new System.Drawing.Size(122, 26); this..Size = new System.Drawing.Size(98, 22);
this..Text = "목록"; this..Text = "목록";
this..Click += new System.EventHandler(this._Click); this..Click += new System.EventHandler(this._Click);
// //
// 편목 // 편목
// //
this..Name = "편목"; this..Name = "편목";
this..Size = new System.Drawing.Size(122, 26); this..Size = new System.Drawing.Size(98, 22);
this..Text = "편목"; this..Text = "편목";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -546,20 +547,20 @@
this., this.,
this.}); this.});
this..Name = "반입및반출"; this..Name = "반입및반출";
this..Size = new System.Drawing.Size(193, 26); this..Size = new System.Drawing.Size(180, 22);
this..Text = "반입 및 반출"; this..Text = "반입 및 반출";
// //
// 마크반입 // 마크반입
// //
this..Name = "마크반입"; this..Name = "마크반입";
this..Size = new System.Drawing.Size(122, 26); this..Size = new System.Drawing.Size(98, 22);
this..Text = "반입"; this..Text = "반입";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 마크반출 // 마크반출
// //
this..Name = "마크반출"; this..Name = "마크반출";
this..Size = new System.Drawing.Size(122, 26); this..Size = new System.Drawing.Size(98, 22);
this..Text = "반출"; this..Text = "반출";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -571,14 +572,14 @@
this., this.,
this.}); this.});
this..Name = "부가기능"; this..Name = "부가기능";
this..Size = new System.Drawing.Size(193, 26); this..Size = new System.Drawing.Size(180, 22);
this..Text = "부가기능"; this..Text = "부가기능";
// //
// 마크수집 // 마크수집
// //
this..Enabled = false; this..Enabled = false;
this..Name = "마크수집"; this..Name = "마크수집";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "마크수집"; this..Text = "마크수집";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -586,7 +587,7 @@
// 전집관리 // 전집관리
// //
this..Name = "전집관리"; this..Name = "전집관리";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "전집관리"; this..Text = "전집관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
@@ -594,7 +595,7 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "검수"; this..Name = "검수";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "검수"; this..Text = "검수";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -602,7 +603,7 @@
// 저자기호 // 저자기호
// //
this..Name = "저자기호"; this..Name = "저자기호";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "저자기호"; this..Text = "저자기호";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -612,20 +613,20 @@
this.DLS조회, this.DLS조회,
this.dLS복본조사}); this.dLS복본조사});
this.DLS.Name = "DLS"; this.DLS.Name = "DLS";
this.DLS.Size = new System.Drawing.Size(193, 26); this.DLS.Size = new System.Drawing.Size(180, 22);
this.DLS.Text = "DLS"; this.DLS.Text = "DLS";
// //
// DLS조회 // DLS조회
// //
this.DLS조회.Name = "DLS조회"; this.DLS조회.Name = "DLS조회";
this.DLS조회.Size = new System.Drawing.Size(190, 26); this.DLS조회.Size = new System.Drawing.Size(154, 22);
this.DLS조회.Text = "DLS_조회/입력"; this.DLS조회.Text = "DLS_조회/입력";
this.DLS조회.Click += new System.EventHandler(this.dLS조회ToolStripMenuItem_Click); this.DLS조회.Click += new System.EventHandler(this.dLS조회ToolStripMenuItem_Click);
// //
// dLS복본조사 // dLS복본조사
// //
this.dLS복본조사.Name = "dLS복본조사"; this.dLS복본조사.Name = "dLS복본조사";
this.dLS복본조사.Size = new System.Drawing.Size(190, 26); this.dLS복본조사.Size = new System.Drawing.Size(154, 22);
this.dLS복본조사.Text = "DLS 복본조사"; this.dLS복본조사.Text = "DLS 복본조사";
this.dLS복본조사.Click += new System.EventHandler(this.dLS복본조사ToolStripMenuItem_Click); this.dLS복본조사.Click += new System.EventHandler(this.dLS복본조사ToolStripMenuItem_Click);
// //
@@ -636,14 +637,14 @@
this., this.,
this.}); this.});
this..Name = "마크기타"; this..Name = "마크기타";
this..Size = new System.Drawing.Size(193, 26); this..Size = new System.Drawing.Size(180, 22);
this..Text = "기타"; this..Text = "기타";
// //
// 서류작성 // 서류작성
// //
this..Enabled = false; this..Enabled = false;
this..Name = "서류작성"; this..Name = "서류작성";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "서류작성"; this..Text = "서류작성";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -651,7 +652,7 @@
// 마크통계 // 마크통계
// //
this..Name = "마크통계"; this..Name = "마크통계";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "마크통계"; this..Text = "마크통계";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -659,7 +660,7 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "장비관리"; this..Name = "장비관리";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "장비관리"; this..Text = "장비관리";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
@@ -668,7 +669,7 @@
// //
this.ToolStripMenuItem.Enabled = false; this.ToolStripMenuItem.Enabled = false;
this.ToolStripMenuItem.Name = "작업일지ToolStripMenuItem"; this.ToolStripMenuItem.Name = "작업일지ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(83, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(67, 20);
this.ToolStripMenuItem.Text = "작업일지"; this.ToolStripMenuItem.Text = "작업일지";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -682,20 +683,20 @@
this., this.,
this.}); this.});
this.ToolStripMenuItem.Name = "편의기능ToolStripMenuItem"; this.ToolStripMenuItem.Name = "편의기능ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(83, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(67, 20);
this.ToolStripMenuItem.Text = "편의기능"; this.ToolStripMenuItem.Text = "편의기능";
// //
// 캘린더 // 캘린더
// //
this..Name = "캘린더"; this..Name = "캘린더";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "캘린더"; this..Text = "캘린더";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 채팅 // 채팅
// //
this..Name = "채팅"; this..Name = "채팅";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "채팅"; this..Text = "채팅";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -703,14 +704,14 @@
// 퀵메뉴 // 퀵메뉴
// //
this..Name = "퀵메뉴"; this..Name = "퀵메뉴";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "퀵메뉴"; this..Text = "퀵메뉴";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 게시판 // 게시판
// //
this..Name = "게시판"; this..Name = "게시판";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "게시판"; this..Text = "게시판";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -718,7 +719,7 @@
// 공지발송 // 공지발송
// //
this..Name = "공지발송"; this..Name = "공지발송";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "공지발송"; this..Text = "공지발송";
this..Visible = false; this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
@@ -731,35 +732,35 @@
this., this.,
this.}); this.});
this..Name = "판매"; this..Name = "판매";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "판매"; this..Text = "판매";
this..Visible = false; this..Visible = false;
// //
// 판매1 // 판매1
// //
this.1.Name = "판매1"; this.1.Name = "판매1";
this.1.Size = new System.Drawing.Size(152, 26); this.1.Size = new System.Drawing.Size(122, 22);
this.1.Text = "판매"; this.1.Text = "판매";
this.1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this.1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 정산 // 정산
// //
this..Name = "정산"; this..Name = "정산";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "정산"; this..Text = "정산";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 판매마감 // 판매마감
// //
this..Name = "판매마감"; this..Name = "판매마감";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "판매마감"; this..Text = "판매마감";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 회원관리 // 회원관리
// //
this..Name = "회원관리"; this..Name = "회원관리";
this..Size = new System.Drawing.Size(152, 26); this..Size = new System.Drawing.Size(122, 22);
this..Text = "회원관리"; this..Text = "회원관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -774,7 +775,7 @@
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.btDevDb}); this.btDevDb});
this.ToolStripMenuItem.Name = "마스터ToolStripMenuItem"; this.ToolStripMenuItem.Name = "마스터ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(68, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(55, 20);
this.ToolStripMenuItem.Text = "마스터"; this.ToolStripMenuItem.Text = "마스터";
// //
// 이용자관리ToolStripMenuItem // 이용자관리ToolStripMenuItem
@@ -782,48 +783,48 @@
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "이용자관리ToolStripMenuItem"; this.ToolStripMenuItem.Name = "이용자관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(252, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.ToolStripMenuItem.Text = "이용자 관리"; this.ToolStripMenuItem.Text = "이용자 관리";
// //
// 신규사업자등록ToolStripMenuItem // 신규사업자등록ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "신규사업자등록ToolStripMenuItem"; this.ToolStripMenuItem.Name = "신규사업자등록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(172, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(138, 22);
this.ToolStripMenuItem.Text = "사업자 관리"; this.ToolStripMenuItem.Text = "사업자 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 공지발송ToolStripMenuItem1 // 공지발송ToolStripMenuItem1
// //
this.ToolStripMenuItem1.Name = "공지발송ToolStripMenuItem1"; this.ToolStripMenuItem1.Name = "공지발송ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(252, 26); this.ToolStripMenuItem1.Size = new System.Drawing.Size(202, 22);
this.ToolStripMenuItem1.Text = "공지 발송"; this.ToolStripMenuItem1.Text = "공지 발송";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 매출내역ToolStripMenuItem // 매출내역ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "매출내역ToolStripMenuItem"; this.ToolStripMenuItem.Name = "매출내역ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(252, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.ToolStripMenuItem.Text = "매출내역"; this.ToolStripMenuItem.Text = "매출내역";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 이용자거래처조회ToolStripMenuItem // 이용자거래처조회ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "이용자거래처조회ToolStripMenuItem"; this.ToolStripMenuItem.Name = "이용자거래처조회ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(252, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.ToolStripMenuItem.Text = "이용자 거래처 조회"; this.ToolStripMenuItem.Text = "이용자 거래처 조회";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 마크설정ToolStripMenuItem // 마크설정ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "마크설정ToolStripMenuItem"; this.ToolStripMenuItem.Name = "마크설정ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(252, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.ToolStripMenuItem.Text = "마크설정"; this.ToolStripMenuItem.Text = "마크설정";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 일괄처리관리ToolStripMenuItem // 일괄처리관리ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "일괄처리관리ToolStripMenuItem"; this.ToolStripMenuItem.Name = "일괄처리관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(252, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.ToolStripMenuItem.Text = "일괄처리 관리"; this.ToolStripMenuItem.Text = "일괄처리 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -831,7 +832,7 @@
// //
this.btDevDb.ForeColor = System.Drawing.Color.Blue; this.btDevDb.ForeColor = System.Drawing.Color.Blue;
this.btDevDb.Name = "btDevDb"; this.btDevDb.Name = "btDevDb";
this.btDevDb.Size = new System.Drawing.Size(252, 26); this.btDevDb.Size = new System.Drawing.Size(202, 22);
this.btDevDb.Text = "데이터베이스편집(개발)"; this.btDevDb.Text = "데이터베이스편집(개발)";
this.btDevDb.Visible = false; this.btDevDb.Visible = false;
this.btDevDb.Click += new System.EventHandler(this.btDevDb_Click); this.btDevDb.Click += new System.EventHandler(this.btDevDb_Click);
@@ -840,7 +841,7 @@
// //
this.menu_allclose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.menu_allclose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.menu_allclose.Name = "menu_allclose"; this.menu_allclose.Name = "menu_allclose";
this.menu_allclose.Size = new System.Drawing.Size(108, 26); this.menu_allclose.Size = new System.Drawing.Size(87, 20);
this.menu_allclose.Text = "전체 창 닫기"; this.menu_allclose.Text = "전체 창 닫기";
this.menu_allclose.Click += new System.EventHandler(this.menu_allclose_Click); this.menu_allclose.Click += new System.EventHandler(this.menu_allclose_Click);
// //
@@ -861,10 +862,9 @@
this.panel1.Controls.Add(this.ShortCut2); this.panel1.Controls.Add(this.ShortCut2);
this.panel1.Controls.Add(this.ShortCut1); this.panel1.Controls.Add(this.ShortCut1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 30); this.panel1.Location = new System.Drawing.Point(0, 24);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1902, 80); this.panel1.Size = new System.Drawing.Size(1664, 64);
this.panel1.TabIndex = 2; this.panel1.TabIndex = 2;
// //
// ShortCut12 // ShortCut12
@@ -873,10 +873,9 @@
this.ShortCut12.Enabled = false; this.ShortCut12.Enabled = false;
this.ShortCut12.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut12.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut12.ForeColor = System.Drawing.Color.Transparent; this.ShortCut12.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut12.Location = new System.Drawing.Point(982, 1); this.ShortCut12.Location = new System.Drawing.Point(859, 1);
this.ShortCut12.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut12.Name = "ShortCut12"; this.ShortCut12.Name = "ShortCut12";
this.ShortCut12.Size = new System.Drawing.Size(69, 75); this.ShortCut12.Size = new System.Drawing.Size(60, 60);
this.ShortCut12.TabIndex = 2; this.ShortCut12.TabIndex = 2;
this.ShortCut12.Text = "즐겨찾기12"; this.ShortCut12.Text = "즐겨찾기12";
this.ShortCut12.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut12.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -888,10 +887,9 @@
this.ShortCut11.Enabled = false; this.ShortCut11.Enabled = false;
this.ShortCut11.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut11.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut11.ForeColor = System.Drawing.Color.Transparent; this.ShortCut11.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut11.Location = new System.Drawing.Point(894, 1); this.ShortCut11.Location = new System.Drawing.Point(782, 1);
this.ShortCut11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut11.Name = "ShortCut11"; this.ShortCut11.Name = "ShortCut11";
this.ShortCut11.Size = new System.Drawing.Size(69, 75); this.ShortCut11.Size = new System.Drawing.Size(60, 60);
this.ShortCut11.TabIndex = 2; this.ShortCut11.TabIndex = 2;
this.ShortCut11.Text = "즐겨찾기11"; this.ShortCut11.Text = "즐겨찾기11";
this.ShortCut11.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut11.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -903,10 +901,9 @@
this.ShortCut10.Enabled = false; this.ShortCut10.Enabled = false;
this.ShortCut10.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut10.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut10.ForeColor = System.Drawing.Color.Transparent; this.ShortCut10.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut10.Location = new System.Drawing.Point(806, 1); this.ShortCut10.Location = new System.Drawing.Point(705, 1);
this.ShortCut10.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut10.Name = "ShortCut10"; this.ShortCut10.Name = "ShortCut10";
this.ShortCut10.Size = new System.Drawing.Size(69, 75); this.ShortCut10.Size = new System.Drawing.Size(60, 60);
this.ShortCut10.TabIndex = 2; this.ShortCut10.TabIndex = 2;
this.ShortCut10.Text = "즐겨찾기10"; this.ShortCut10.Text = "즐겨찾기10";
this.ShortCut10.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut10.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -918,10 +915,9 @@
this.ShortCut9.Enabled = false; this.ShortCut9.Enabled = false;
this.ShortCut9.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut9.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut9.ForeColor = System.Drawing.Color.Transparent; this.ShortCut9.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut9.Location = new System.Drawing.Point(718, 1); this.ShortCut9.Location = new System.Drawing.Point(628, 1);
this.ShortCut9.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut9.Name = "ShortCut9"; this.ShortCut9.Name = "ShortCut9";
this.ShortCut9.Size = new System.Drawing.Size(69, 75); this.ShortCut9.Size = new System.Drawing.Size(60, 60);
this.ShortCut9.TabIndex = 2; this.ShortCut9.TabIndex = 2;
this.ShortCut9.Text = "즐겨찾기9"; this.ShortCut9.Text = "즐겨찾기9";
this.ShortCut9.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut9.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -933,10 +929,9 @@
this.ShortCut8.Enabled = false; this.ShortCut8.Enabled = false;
this.ShortCut8.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut8.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut8.ForeColor = System.Drawing.Color.Transparent; this.ShortCut8.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut8.Location = new System.Drawing.Point(630, 1); this.ShortCut8.Location = new System.Drawing.Point(551, 1);
this.ShortCut8.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut8.Name = "ShortCut8"; this.ShortCut8.Name = "ShortCut8";
this.ShortCut8.Size = new System.Drawing.Size(69, 75); this.ShortCut8.Size = new System.Drawing.Size(60, 60);
this.ShortCut8.TabIndex = 1; this.ShortCut8.TabIndex = 1;
this.ShortCut8.Text = "즐겨찾기8"; this.ShortCut8.Text = "즐겨찾기8";
this.ShortCut8.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut8.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -948,10 +943,9 @@
this.ShortCut6.Enabled = false; this.ShortCut6.Enabled = false;
this.ShortCut6.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut6.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut6.ForeColor = System.Drawing.Color.Transparent; this.ShortCut6.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut6.Location = new System.Drawing.Point(454, 1); this.ShortCut6.Location = new System.Drawing.Point(397, 1);
this.ShortCut6.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut6.Name = "ShortCut6"; this.ShortCut6.Name = "ShortCut6";
this.ShortCut6.Size = new System.Drawing.Size(69, 75); this.ShortCut6.Size = new System.Drawing.Size(60, 60);
this.ShortCut6.TabIndex = 2; this.ShortCut6.TabIndex = 2;
this.ShortCut6.Text = "즐겨찾기6"; this.ShortCut6.Text = "즐겨찾기6";
this.ShortCut6.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut6.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -963,10 +957,9 @@
this.ShortCut5.Enabled = false; this.ShortCut5.Enabled = false;
this.ShortCut5.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut5.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut5.ForeColor = System.Drawing.Color.Transparent; this.ShortCut5.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut5.Location = new System.Drawing.Point(366, 1); this.ShortCut5.Location = new System.Drawing.Point(320, 1);
this.ShortCut5.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut5.Name = "ShortCut5"; this.ShortCut5.Name = "ShortCut5";
this.ShortCut5.Size = new System.Drawing.Size(69, 75); this.ShortCut5.Size = new System.Drawing.Size(60, 60);
this.ShortCut5.TabIndex = 1; this.ShortCut5.TabIndex = 1;
this.ShortCut5.Text = "즐겨찾기5"; this.ShortCut5.Text = "즐겨찾기5";
this.ShortCut5.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut5.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -978,10 +971,9 @@
this.ShortCut7.Enabled = false; this.ShortCut7.Enabled = false;
this.ShortCut7.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut7.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut7.ForeColor = System.Drawing.Color.Transparent; this.ShortCut7.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut7.Location = new System.Drawing.Point(542, 1); this.ShortCut7.Location = new System.Drawing.Point(474, 1);
this.ShortCut7.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut7.Name = "ShortCut7"; this.ShortCut7.Name = "ShortCut7";
this.ShortCut7.Size = new System.Drawing.Size(69, 75); this.ShortCut7.Size = new System.Drawing.Size(60, 60);
this.ShortCut7.TabIndex = 0; this.ShortCut7.TabIndex = 0;
this.ShortCut7.Text = "즐겨찾기7"; this.ShortCut7.Text = "즐겨찾기7";
this.ShortCut7.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut7.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -993,10 +985,9 @@
this.ShortCut3.Enabled = false; this.ShortCut3.Enabled = false;
this.ShortCut3.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut3.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut3.ForeColor = System.Drawing.Color.Transparent; this.ShortCut3.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut3.Location = new System.Drawing.Point(190, 1); this.ShortCut3.Location = new System.Drawing.Point(166, 1);
this.ShortCut3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut3.Name = "ShortCut3"; this.ShortCut3.Name = "ShortCut3";
this.ShortCut3.Size = new System.Drawing.Size(69, 75); this.ShortCut3.Size = new System.Drawing.Size(60, 60);
this.ShortCut3.TabIndex = 2; this.ShortCut3.TabIndex = 2;
this.ShortCut3.Text = "즐겨찾기3"; this.ShortCut3.Text = "즐겨찾기3";
this.ShortCut3.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut3.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -1008,10 +999,9 @@
this.ShortCut4.Enabled = false; this.ShortCut4.Enabled = false;
this.ShortCut4.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut4.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut4.ForeColor = System.Drawing.Color.Transparent; this.ShortCut4.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut4.Location = new System.Drawing.Point(278, 1); this.ShortCut4.Location = new System.Drawing.Point(243, 1);
this.ShortCut4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut4.Name = "ShortCut4"; this.ShortCut4.Name = "ShortCut4";
this.ShortCut4.Size = new System.Drawing.Size(69, 75); this.ShortCut4.Size = new System.Drawing.Size(60, 60);
this.ShortCut4.TabIndex = 0; this.ShortCut4.TabIndex = 0;
this.ShortCut4.Text = "즐겨찾기4"; this.ShortCut4.Text = "즐겨찾기4";
this.ShortCut4.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -1023,10 +1013,9 @@
this.ShortCut2.Enabled = false; this.ShortCut2.Enabled = false;
this.ShortCut2.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut2.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut2.ForeColor = System.Drawing.Color.Transparent; this.ShortCut2.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut2.Location = new System.Drawing.Point(102, 1); this.ShortCut2.Location = new System.Drawing.Point(89, 1);
this.ShortCut2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut2.Name = "ShortCut2"; this.ShortCut2.Name = "ShortCut2";
this.ShortCut2.Size = new System.Drawing.Size(69, 75); this.ShortCut2.Size = new System.Drawing.Size(60, 60);
this.ShortCut2.TabIndex = 1; this.ShortCut2.TabIndex = 1;
this.ShortCut2.Text = "즐겨찾기2"; this.ShortCut2.Text = "즐겨찾기2";
this.ShortCut2.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -1038,10 +1027,9 @@
this.ShortCut1.Enabled = false; this.ShortCut1.Enabled = false;
this.ShortCut1.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.ShortCut1.Font = new System.Drawing.Font("굴림", 1.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.ShortCut1.ForeColor = System.Drawing.Color.Transparent; this.ShortCut1.ForeColor = System.Drawing.Color.Transparent;
this.ShortCut1.Location = new System.Drawing.Point(14, 1); this.ShortCut1.Location = new System.Drawing.Point(12, 1);
this.ShortCut1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ShortCut1.Name = "ShortCut1"; this.ShortCut1.Name = "ShortCut1";
this.ShortCut1.Size = new System.Drawing.Size(69, 75); this.ShortCut1.Size = new System.Drawing.Size(60, 60);
this.ShortCut1.TabIndex = 0; this.ShortCut1.TabIndex = 0;
this.ShortCut1.Text = "즐겨찾기1"; this.ShortCut1.Text = "즐겨찾기1";
this.ShortCut1.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.ShortCut1.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
@@ -1062,58 +1050,58 @@
this.toolStripSeparator3, this.toolStripSeparator3,
this.IPText, this.IPText,
this.lblStatus}); this.lblStatus});
this.toolStrip1.Location = new System.Drawing.Point(0, 1002); this.toolStrip1.Location = new System.Drawing.Point(0, 801);
this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1902, 31); this.toolStrip1.Size = new System.Drawing.Size(1664, 25);
this.toolStrip1.TabIndex = 4; this.toolStrip1.TabIndex = 4;
this.toolStrip1.Text = "toolStrip1"; this.toolStrip1.Text = "toolStrip1";
// //
// toolStripLabel2 // toolStripLabel2
// //
this.toolStripLabel2.Name = "toolStripLabel2"; this.toolStripLabel2.Name = "toolStripLabel2";
this.toolStripLabel2.Size = new System.Drawing.Size(54, 28); this.toolStripLabel2.Size = new System.Drawing.Size(43, 22);
this.toolStripLabel2.Text = "회사명"; this.toolStripLabel2.Text = "회사명";
// //
// VersionText // VersionText
// //
this.VersionText.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.VersionText.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.VersionText.Name = "VersionText"; this.VersionText.Name = "VersionText";
this.VersionText.Size = new System.Drawing.Size(143, 28); this.VersionText.Size = new System.Drawing.Size(116, 22);
this.VersionText.Text = "UniMarc Ver 0.0000"; this.VersionText.Text = "UniMarc Ver 0.0000";
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31); this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
// //
// botUserLabel // botUserLabel
// //
this.botUserLabel.Name = "botUserLabel"; this.botUserLabel.Name = "botUserLabel";
this.botUserLabel.Size = new System.Drawing.Size(54, 28); this.botUserLabel.Size = new System.Drawing.Size(43, 22);
this.botUserLabel.Text = "이용자"; this.botUserLabel.Text = "이용자";
// //
// toolStripSeparator2 // toolStripSeparator2
// //
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31); this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25);
// //
// toolStripSeparator3 // toolStripSeparator3
// //
this.toolStripSeparator3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSeparator3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 31); this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25);
// //
// IPText // IPText
// //
this.IPText.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.IPText.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.IPText.Name = "IPText"; this.IPText.Name = "IPText";
this.IPText.Size = new System.Drawing.Size(183, 28); this.IPText.Size = new System.Drawing.Size(154, 22);
this.IPText.Text = "접속 아이피 : 0.000.00.000"; this.IPText.Text = "접속 아이피 : 0.000.00.000";
// //
// lblStatus // lblStatus
// //
this.lblStatus.Name = "lblStatus"; this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(34, 28); this.lblStatus.Size = new System.Drawing.Size(27, 22);
this.lblStatus.Text = "WD"; this.lblStatus.Text = "WD";
// //
// mdiTabControl // mdiTabControl
@@ -1121,40 +1109,44 @@
this.mdiTabControl.Controls.Add(this.tabPage1); this.mdiTabControl.Controls.Add(this.tabPage1);
this.mdiTabControl.Controls.Add(this.tabPage2); this.mdiTabControl.Controls.Add(this.tabPage2);
this.mdiTabControl.Dock = System.Windows.Forms.DockStyle.Fill; this.mdiTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.mdiTabControl.Location = new System.Drawing.Point(0, 110); this.mdiTabControl.Location = new System.Drawing.Point(0, 88);
this.mdiTabControl.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.mdiTabControl.Name = "mdiTabControl"; this.mdiTabControl.Name = "mdiTabControl";
this.mdiTabControl.SelectedIndex = 0; this.mdiTabControl.SelectedIndex = 0;
this.mdiTabControl.Size = new System.Drawing.Size(1902, 892); this.mdiTabControl.Size = new System.Drawing.Size(1664, 713);
this.mdiTabControl.TabIndex = 5; this.mdiTabControl.TabIndex = 5;
// //
// tabPage1 // tabPage1
// //
this.tabPage1.Location = new System.Drawing.Point(4, 25); this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.tabPage1.Size = new System.Drawing.Size(1894, 863); this.tabPage1.Size = new System.Drawing.Size(1656, 687);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "tabPage1"; this.tabPage1.Text = "tabPage1";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// tabPage2 // tabPage2
// //
this.tabPage2.Location = new System.Drawing.Point(4, 25); this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.tabPage2.Name = "tabPage2"; this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); this.tabPage2.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
this.tabPage2.Size = new System.Drawing.Size(1894, 871); this.tabPage2.Size = new System.Drawing.Size(1656, 688);
this.tabPage2.TabIndex = 1; this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "tabPage2"; this.tabPage2.Text = "tabPage2";
this.tabPage2.UseVisualStyleBackColor = true; this.tabPage2.UseVisualStyleBackColor = true;
// //
// 신규마크작성NewToolStripMenuItem
//
this.NewToolStripMenuItem.Name = "신규마크작성NewToolStripMenuItem";
this.NewToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.NewToolStripMenuItem.Text = "신규마크 작성(New)";
this.NewToolStripMenuItem.Click += new System.EventHandler(this.NewToolStripMenuItem_Click);
//
// Main // Main
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1902, 1033); this.ClientSize = new System.Drawing.Size(1664, 826);
this.Controls.Add(this.mdiTabControl); this.Controls.Add(this.mdiTabControl);
this.Controls.Add(this.toolStrip1); this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
@@ -1162,7 +1154,6 @@
this.HelpButton = true; this.HelpButton = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1; this.MainMenuStrip = this.menuStrip1;
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "Main"; this.Name = "Main";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "메인"; this.Text = "메인";
@@ -1291,5 +1282,6 @@
private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.ToolStripMenuItem menu_allclose; private System.Windows.Forms.ToolStripMenuItem menu_allclose;
private System.Windows.Forms.ToolStripMenuItem NewToolStripMenuItem;
} }
} }

View File

@@ -889,5 +889,10 @@ namespace WindowsFormsApp1
} }
} }
} }
private void NewToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFormInTab<AddMarc2>(() => new AddMarc2(this));
}
} }
} }

View File

@@ -280,6 +280,12 @@
<Compile Include="마스터\From_User_manage_List.Designer.cs"> <Compile Include="마스터\From_User_manage_List.Designer.cs">
<DependentUpon>From_User_manage_List.cs</DependentUpon> <DependentUpon>From_User_manage_List.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\AddMarc2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\AddMarc2.Designer.cs">
<DependentUpon>AddMarc2.cs</DependentUpon>
</Compile>
<Compile Include="마크\AddMarc.cs"> <Compile Include="마크\AddMarc.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -340,6 +346,7 @@
<Compile Include="마크\Check_Copy_Sub_Selector.Designer.cs"> <Compile Include="마크\Check_Copy_Sub_Selector.Designer.cs">
<DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon> <DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="마크\FillBlankItem.cs" />
<Compile Include="마크\Help_007.cs"> <Compile Include="마크\Help_007.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -1034,6 +1041,9 @@
<EmbeddedResource Include="마스터\From_User_manage_List.resx"> <EmbeddedResource Include="마스터\From_User_manage_List.resx">
<DependentUpon>From_User_manage_List.cs</DependentUpon> <DependentUpon>From_User_manage_List.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="마크\AddMarc2.resx">
<DependentUpon>AddMarc2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\AddMarc.resx"> <EmbeddedResource Include="마크\AddMarc.resx">
<DependentUpon>AddMarc.cs</DependentUpon> <DependentUpon>AddMarc.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View File

@@ -9,7 +9,7 @@
<ErrorReportUrlHistory /> <ErrorReportUrlHistory />
<FallbackCulture>ko-KR</FallbackCulture> <FallbackCulture>ko-KR</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles> <VerifyUploadedFiles>false</VerifyUploadedFiles>
<ProjectView>ShowAllFiles</ProjectView> <ProjectView>ProjectFiles</ProjectView>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<EnableSecurityDebugging>false</EnableSecurityDebugging> <EnableSecurityDebugging>false</EnableSecurityDebugging>

View File

@@ -30,11 +30,7 @@ namespace UniMarc.마크
mUserName = m.User; mUserName = m.User;
mCompidx = m.com_idx; mCompidx = m.com_idx;
} }
public AddMarc()
{
InitializeComponent();
}
private void AddMarc_Load(object sender, EventArgs e) private void AddMarc_Load(object sender, EventArgs e)
{ {
cb_SearchCol.SelectedIndex = 0; cb_SearchCol.SelectedIndex = 0;
@@ -338,28 +334,7 @@ namespace UniMarc.마크
PUB.log.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpCMD.Replace("\r", " ").Replace("\n", " "))); PUB.log.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpCMD.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(UpCMD); db.DB_Send_CMD_reVoid(UpCMD);
} }
#region UpdateSub
/// <summary>
/// 어느곳이 최근 저장인지 확인
/// </summary>
/// <param name="table">테이블명</param>
/// <param name="midx">idx</param>
/// <returns>marcChk 번호</returns>
private int subMarcChk(string table, string midx)
{
string Area = "`marc_chk`, `marc_chk1`, `marc_chk2`";
string cmd = db.DB_Select_Search(Area, table, "idx", midx);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] chk_ary = db_res.Split('|');
for (int a = 0; a < chk_ary.Length; a++)
{
if (chk_ary[a] == "1")
return a;
}
return 0;
}
#endregion
/// <summary> /// <summary>
/// 마크DB에 INSERT해주는 함수 /// 마크DB에 INSERT해주는 함수

View File

@@ -0,0 +1,157 @@
namespace UniMarc.
{
partial class AddMarc2
{
/// <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.btn_close = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.cb_SearchCol = new System.Windows.Forms.ComboBox();
this.tb_Search = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.Btn_SearchKolis = new System.Windows.Forms.Button();
this.btn_Empty = new System.Windows.Forms.Button();
this.marcEditorControl1 = new ExcelTest.MarcEditorControl();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(1168, 3);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(77, 23);
this.btn_close.TabIndex = 381;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.Btn_SearchKolis);
this.panel1.Controls.Add(this.cb_SearchCol);
this.panel1.Controls.Add(this.btn_Empty);
this.panel1.Controls.Add(this.tb_Search);
this.panel1.Controls.Add(this.btn_close);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1324, 32);
this.panel1.TabIndex = 393;
//
// cb_SearchCol
//
this.cb_SearchCol.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_SearchCol.FormattingEnabled = true;
this.cb_SearchCol.Items.AddRange(new object[] {
"ISBN",
"서명",
"저자",
"출판사"});
this.cb_SearchCol.Location = new System.Drawing.Point(8, 5);
this.cb_SearchCol.Name = "cb_SearchCol";
this.cb_SearchCol.Size = new System.Drawing.Size(121, 20);
this.cb_SearchCol.TabIndex = 395;
//
// tb_Search
//
this.tb_Search.Location = new System.Drawing.Point(135, 5);
this.tb_Search.Name = "tb_Search";
this.tb_Search.Size = new System.Drawing.Size(205, 21);
this.tb_Search.TabIndex = 0;
this.tb_Search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_ISBN_KeyDown);
//
// panel2
//
this.panel2.Controls.Add(this.marcEditorControl1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 32);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1324, 907);
this.panel2.TabIndex = 394;
//
// Btn_SearchKolis
//
this.Btn_SearchKolis.Location = new System.Drawing.Point(1002, 3);
this.Btn_SearchKolis.Name = "Btn_SearchKolis";
this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23);
this.Btn_SearchKolis.TabIndex = 397;
this.Btn_SearchKolis.Text = "코리스 검색";
this.Btn_SearchKolis.UseVisualStyleBackColor = true;
this.Btn_SearchKolis.Click += new System.EventHandler(this.Btn_SearchKolis_Click);
//
// btn_Empty
//
this.btn_Empty.Location = new System.Drawing.Point(1085, 3);
this.btn_Empty.Name = "btn_Empty";
this.btn_Empty.Size = new System.Drawing.Size(77, 23);
this.btn_Empty.TabIndex = 396;
this.btn_Empty.Text = "비 우 기";
this.btn_Empty.UseVisualStyleBackColor = true;
this.btn_Empty.Click += new System.EventHandler(this.btn_Empty_Click);
//
// marcEditorControl1
//
this.marcEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(0, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(1324, 907);
this.marcEditorControl1.TabIndex = 394;
//
// AddMarc2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Gray;
this.ClientSize = new System.Drawing.Size(1324, 939);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "AddMarc2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "마크 작성(2-New)";
this.Load += new System.EventHandler(this.AddMarc_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox tb_Search;
private System.Windows.Forms.ComboBox cb_SearchCol;
private System.Windows.Forms.Button btn_Empty;
private System.Windows.Forms.Button Btn_SearchKolis;
private ExcelTest.MarcEditorControl marcEditorControl1;
}
}

View File

@@ -0,0 +1,573 @@
using ExcelTest;
using SHDocVw;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc.
{
public partial class AddMarc2 : Form
{
Helper_DB db = new Helper_DB();
String_Text st = new String_Text();
Help008Tag tag008 = new Help008Tag();
public string mUserName;
public string mCompidx;
private string mOldMarc = string.Empty;
Main m;
public AddMarc2(Main _m)
{
InitializeComponent();
m = _m;
mUserName = m.User;
mCompidx = m.com_idx;
}
private void AddMarc_Load(object sender, EventArgs e)
{
cb_SearchCol.SelectedIndex = 0;
db.DBcon();
TextReset();
marcEditorControl1.db = this.db;
marcEditorControl1.BookSaved += MarcEditorControl1_BookSaved;
marcEditorControl1.CloseButton += (s1,e1)=> { this.Close(); };
marcEditorControl1.SetButtonKolist(false);
marcEditorControl1.SetButtonNext(false);
marcEditorControl1.SetButtonPrev(false);
}
public void SetKolisValueApply(string marc)
{
this.marcEditorControl1.SetMarcString(marc);
}
private void MarcEditorControl1_BookSaved(object sender, MarcEditorControl.BookSavedEventArgs e)
{
string tag056 = Tag056(e.DBMarc, e.griddata);
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = st.made_Ori_marc(e.DBMarc).Replace(@"\", "₩");
if (!isMustTag(orimarc))
{
return;
}
var MarcText = e.DBMarc;
string midx = this.lbl_Midx;
string[] BookData = GetBookData(MarcText);
bool IsCoverDate = false;
if (e.griddata.SaveDate != "")
{
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
TimeSpan sp = CheckDate(e.griddata.SaveDate, date);
IsCoverDate = IsCoverData(sp.Days, e.griddata.User);
//if (IsCoverDate)
// etc2.Text = etc2.Text.Replace(SaveData[0], date);
}
//else
// etc2.Text += string.Format("{0}\t{1}\n", date, mUserName);
string Table = "Marc";
bool isUpdate;
if (lbl_Midx != "")
isUpdate = true;
else
isUpdate = false;
var grade = int.Parse(e.griddata.Grade);
if (isUpdate)
UpdateMarc(Table, midx, orimarc, grade, tag056, date, IsCoverDate,e.griddata);
else
InsertMarc(Table, BookData, orimarc, grade, tag056, date, e.griddata);
MessageBox.Show("저장되었습니다.", "저장");
}
private void tb_ISBN_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter)
return;
TextReset();
string SearchText = tb_Search.Text;
string SearchCol = cb_SearchCol.SelectedItem.ToString();
MarcCopySelect mcs = new MarcCopySelect(this);
mcs.Init(SearchCol, SearchText);
mcs.Show();
}
/// <summary>
/// ISBN 검색후 특정 마크 선택시 현재폼에 적용시키는 폼
/// </summary>
/// <param name="Marc">뷰형태 마크데이터</param>
/// <param name="ISBN">ISBN</param>
/// <param name="GridData">
/// 0:idx <br></br>
/// 1:compidx <br></br>
/// 2:user <br></br>
/// 3:date <br></br>
/// 4:grade <br></br>
/// 5:tag008 <br></br>
/// 6:LineMarc</param>
public void SelectMarc_Sub(string Marc, string ISBN, string[] GridData)
{
this.marcEditorControl1.LoadBookData(Marc, new MacEditorParameter
{
ISBN13 = ISBN,
SaveDate = string.Format("[{0}] [{1}]", GridData[2], GridData[3]),
Grade = GridData[4],
Remark1 = string.Empty,
Remark2 = string.Empty,
NewMake = true
});
mOldMarc = GridData[6];
lbl_Midx = GridData[0];
}
string lbl_Midx = "";
private void btn_close_Click(object sender, EventArgs e)
{
this.Close();
}
private void btn_Empty_Click(object sender, EventArgs e)
{
TextReset();
}
/// <summary>
/// 전체 초기화
/// </summary>
/// <param name="isDelete">탭 컨트롤에서 사용할 경우 false</param>
public void TextReset(bool isDelete = true)
{
if (isDelete)
{
marcEditorControl1.LoadBookData(string.Empty, new MacEditorParameter
{
ISBN13 = string.Empty,
SaveDate = string.Empty,
Remark1 = string.Empty,
Remark2 = string.Empty,
NewMake=true,
});
}
}
string TextResetSub()
{
// 입력일자 (00-05)
// 발행년유형 (6)
// 발행년1 (07-10)
// 발행년2 (11-14)
// 발행국 (15-17)
// 삽화표시 (18-21)
// 이용대상자수준 (22) v
// 개별자료형태 (23) v
// 내용형식1 (24) v
// 내용형식2 (25) v
// 한국대학부호 (26-27)
// 수정레코드 (28)
// 회의간행물 (29) c
// 기념논문집 (30) c
// 색인 (31)
// 목록전거 (32)
// 문학형식 (33) v
// 전기 (34) v
// 언어 (35-37) v
// 한국정부기관부호 (38-39)
string yyMMdd = DateTime.Now.ToString("yyMMdd");
string yyyy = DateTime.Now.ToString("yyyy");
string Empty_008 = yyMMdd + "s" + yyyy + " 000 kor ▲";
string Empty_text = string.Format(
$"008\t {Empty_008.Replace("", "")}" +
"020\t \t▼a▼c▲\n" +
"056\t \t▼a▼2▲\n" +
"100\t \t▼a▲\n" +
"245\t \t▼a▼d▲\n" +
"260\t \t▼b▲\n" +
"300\t \t▼a▼c▲\n" +
"653\t \t▼a▲\n" +
"700\t \t▼a▲\n" +
"950\t \t▼b▲\n");
this.marcEditorControl1.SetRemark(string.Empty, string.Empty);
return Empty_text;
}
#region SaveSub
/// <summary>
/// 마크DB에 UPDATE해주는 함수
/// </summary>
/// <param name="Table">테이블 이름</param>
/// <param name="MarcIndex">마크 인덱스 번호</param>
/// <param name="oriMarc">한줄짜리 마크</param>
/// <param name="grade">마크 등급</param>
/// <param name="tag056">분류기호</param>
/// <param name="date">저장시각 yyyy-MM-dd HH:mm:ss</param>
/// <param name="IsCovertDate">덮어씌울지 유무</param>
void UpdateMarc(string Table, string MarcIndex, string oriMarc, int grade, string tag056, string date, bool IsCovertDate, MacEditorParameter param)
{
string[] EditTable =
{
"compidx", "marc", "marc_chk","marc1", "marc_chk1", "비고1",
"비고2", "division", "008tag", "date", "user",
"grade"
};
string[] EditColumn =
{
mCompidx, oriMarc, "1",mOldMarc, "0", param.Remark1,
param.Remark2, tag056, param.text008, date, mUserName,
grade.ToString()
};
string[] SearchTable = { "idx", "compidx" };
string[] SearchColumn = { MarcIndex, mCompidx };
//int marcChk = subMarcChk(Table, MarcIndex);
//if (IsCovertDate)
// marcChk--;
//switch (marcChk)
//{
// case 0:
// EditTable[1] = "marc1";
// EditTable[2] = "marc_chk1";
// EditTable[3] = "marc_chk";
// break;
// case 1:
// EditTable[1] = "marc2";
// EditTable[2] = "marc_chk2";
// EditTable[3] = "marc_chk1";
// break;
// case 2:
// EditTable[1] = "marc";
// EditTable[2] = "marc_chk";
// EditTable[3] = "marc_chk2";
// break;
// default:
// EditTable[1] = "marc";
// EditTable[2] = "marc_chk";
// EditTable[3] = "marc_chk2";
// break;
//}
string UpCMD = db.More_Update(Table, EditTable, EditColumn, SearchTable, SearchColumn);
PUB.log.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpCMD.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(UpCMD);
}
/// <summary>
/// 마크DB에 INSERT해주는 함수
/// </summary>
/// <param name="Table">테이블 이름</param>
/// <param name="BookData">0:ISBN 1:서명 2:저자 3:출판사 4:정가</param>
/// <param name="oriMarc">한줄짜리 마크</param>
/// <param name="grade">마크 등급</param>
/// <param name="tag056">분류기호</param>
/// <param name="date">저장시각 yyyy-MM-dd HH:mm:ss</param>
void InsertMarc(string Table, string[] BookData, string oriMarc, int grade, string tag056, string date, MacEditorParameter param)
{
string[] InsertTable =
{
"ISBN", "서명", "저자", "출판사", "가격",
"marc", "비고1", "비고2", "grade", "marc_chk",
"user", "division", "008tag", "date", "compidx"
};
string[] InsertColumn =
{
BookData[0], BookData[1], BookData[2], BookData[3], BookData[4],
oriMarc, param.Remark1, param.Remark2, grade.ToString(), "1",
mUserName, tag056, param.text008, date, mCompidx
};
string InCMD = db.DB_INSERT(Table, InsertTable, InsertColumn);
PUB.log.Add("ADDMarcINSERT", string.Format("{0}({1}) : {2}", mUserName, mCompidx, InCMD.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(InCMD);
}
/// <summary>
/// 마크 저장시 사용하며, 마지막 수정일과 수정자를 가져와 덮어씌울지 백업데이터를 만들지 구분
/// </summary>
/// <param name="TimeSpanDaysValue">저장할 마크의 마지막 수정일</param>
/// <param name="user">저장할 마크의 마지막 수정자</param>
/// <returns>마지막 수정일로부터 2일이 지나지 않고, 마지막 수정자와 해당 유저가 동일 할 경우 True 반환</returns>
private bool IsCoverData(int TimeSpanDaysValue, string user)
{
if (TimeSpanDaysValue < -1)
return false;
if (user != mUserName)
return false;
return true;
}
private TimeSpan CheckDate(string LastDate, string SaveDate)
{
DateTime Last = Convert.ToDateTime(LastDate);
DateTime Save = Convert.ToDateTime(SaveDate);
return Last - Save;
}
/// <summary>
/// 필수태그 검사
/// </summary>
/// <param name="orimarc">한줄짜리 마크</param>
/// <returns>필수태그 없을시 false 반환</returns>
private bool isMustTag(string orimarc)
{
string[] SearchTag = { "056a", "0562", "245a", "245d", "260a", "260c", "300a", "300c", "653a" };
string[] Tag = st.Take_Tag(orimarc, SearchTag);
int count = 0;
string msg = "";
bool isTag = true;
foreach (string tag in Tag)
{
if (tag == "")
{
msg += SearchTag[count] + " ";
isTag = false;
}
count++;
}
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
return false;
}
bool is1XX = false;
string[] AuthorTag = { "100a", "110a", "111a" };
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is1XX = true;
}
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
return false;
}
bool is7XX = false;
AuthorTag[0] = "700a";
AuthorTag[1] = "710a";
AuthorTag[2] = "711a";
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is7XX = true;
}
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
return false;
}
return true;
}
/// <summary>
/// 관련 도서 정보를 가져옴
/// </summary>
/// <param name="ViewMarc">뷰형태의 마크</param>
/// <returns>0:ISBN 1:서명 2:저자 3:출판사 4:정가</returns>
string[] GetBookData(string ViewMarc)
{
// ISBN, BookName, Author, BookComp, Price
string[] result = { "", "", "", "", "" };
bool IsISBN = false;
string[] TargetArr = ViewMarc.Split('\n');
foreach (string Target in TargetArr)
{
string[] tmp = Target.Replace("▲", "").Split('\t');
// 0:ISBN 4:Price
if (tmp[0] == "020" && !IsISBN)
{
IsISBN = true;
result[0] = GetMiddelString(tmp[2], "▼a", "▼");
result[4] = GetMiddelString(tmp[2], "▼c", "▼");
}
// 2:Author
if (tmp[0] == "100")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
else if (tmp[0] == "110")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
else if (tmp[0] == "111")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
// 1:BookName
if (tmp[0] == "245")
result[1] = GetMiddelString(tmp[2], "▼a", "▼");
// 3:BookComp
if (tmp[0] == "300")
result[3] = GetMiddelString(tmp[2], "▼b", "▼");
}
return result;
}
string Tag056(string marc,MacEditorParameter param)
{
// string marc = richTextBox1.Text;
string[] temp = marc.Split('\n');
List<string> target = temp.ToList();
bool isEight = false;
bool eight_chk = false;
string tag056 = string.Empty;
int count = 0;
for (int a = 0; a < target.Count - 1; a++)
{
string[] tmp = target[a].Split('\t');
string tag = tmp[0];
if (tag == "") break;
int eight = Convert.ToInt32(tag.Substring(0, 3));
if (eight == 008)
{
count = a;
eight_chk = true;
isEight = true;
}
else if (eight > 008 && !eight_chk)
{
count = a;
eight_chk = true;
}
if (tag == "056")
tag056 = GetMiddelString(tmp[2], "▼a", "▼");
}
if (!isEight)
target.Insert(count, string.Format("{0}\t{1}\t{2}▲", "008", " ", param.text008));
//richTextBox1.Text = string.Join("\n", target.ToArray());
return tag056;
}
/// <summary>
/// 문자와 문자사이의 값 가져오기
/// </summary>
/// <param name="str">대상 문자열</param>
/// <param name="begin">시작 문자열</param>
/// <param name="end">마지막 문자열</param>
/// <param name="TagNum">불러올 태그 번호</param>
/// <returns>문자 사이값</returns>
public string GetMiddelString(string str, string begin, string end, string TagNum = "")
{
string result = "";
if (string.IsNullOrEmpty(str) || str == "")
return result;
int count = 0;
bool loop = false;
for (int a = count; a < str.Length; a++)
{
count = str.IndexOf(begin);
if (count > -1)
{
str = str.Substring(count + begin.Length);
if (loop)
// 여러 태그들 구분을 지어줌.
result += "▽";
if (str.IndexOf(end) > -1)
result += str.Substring(0, str.IndexOf(end));
else
result += str;
result = TrimEndGubun(result, TagNum);
}
else
break;
loop = true;
}
return result;
}
string TrimEndGubun(string str, string TagNum)
{
char[] gu = { '.', ',', ':', ';', '/', ' ' };
if (TagNum == "300" || TagNum == "300a")
{
str = str.Trim();
if (TagNum == "300a")
{
gu = new char[] { '.', ',', '=', ':', ';', '/', '+', ' ' };
for (int i = 0; i < gu.Length; i++)
{
str = str.TrimEnd(gu[i]);
}
}
if (str.Contains("ill."))
return str;
if (str.Contains("p."))
return str;
}
if (TagNum == "710" || TagNum == "910")
return str;
if (TagNum == "245") gu = new char[] { '.', ':', ';', '/', ' ' };
if (TagNum == "245a") gu = new char[] { '.', ',', '=', ':', ';', '/', ' ' };
for (int i = 0; i < gu.Length; i++)
{
str = str.TrimEnd(gu[i]);
}
//foreach (char gubun in gu)
//{
// if (str.Length < 1) continue;
// if (str[str.Length - 1] == gubun)
// {
// str = str.Remove(str.Length - 1);
// str = str.Trim();
// }
//}
return str;
}
#endregion
private void Btn_SearchKolis_Click(object sender, EventArgs e)
{
AddMarc_FillBlank af = new AddMarc_FillBlank(this);
af.Show();
}
}
}

View File

@@ -0,0 +1,123 @@
<?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>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>32</value>
</metadata>
</root>

View File

@@ -13,14 +13,20 @@ namespace UniMarc.마크
public partial class AddMarc_FillBlank : Form public partial class AddMarc_FillBlank : Form
{ {
AddMarc am; AddMarc am;
AddMarc2 am2;
public AddMarc_FillBlank(AddMarc _am) public AddMarc_FillBlank(AddMarc _am)
{ {
InitializeComponent(); InitializeComponent();
am = _am; am = _am;
} }
public AddMarc_FillBlank(AddMarc2 _am)
{
InitializeComponent();
am2 = _am;
}
private void AddMarc_FillBlank_Load(object sender, EventArgs e) private void AddMarc_FillBlank_Load(object sender, EventArgs e)
{ {
webBrowser1.ScriptErrorsSuppressed = true;
webBrowser1.Navigate("https://nl.go.kr/kolisnet/search/searchResultAllList.do?"); webBrowser1.Navigate("https://nl.go.kr/kolisnet/search/searchResultAllList.do?");
} }
@@ -108,7 +114,10 @@ namespace UniMarc.마크
if (ary[1].Length != 2) ary[1].PadRight(2); if (ary[1].Length != 2) ary[1].PadRight(2);
tmp += String.Join("\t", ary) + "\n"; tmp += String.Join("\t", ary) + "\n";
} }
if(am != null)
am.richTextBox1.Text = tmp; am.richTextBox1.Text = tmp;
if(am2 != null)
am2.SetKolisValueApply(tmp);
} }
private void Btn_Close_Click(object sender, EventArgs e) private void Btn_Close_Click(object sender, EventArgs e)

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExcelTest
{
public class FillBlankItem
{
public string Idx { get; set; }
public string Isbn { get; set; }
public string BookName { get; set; }
public string Author { get; set; }
public string Publisher { get; set; }
public string Price { get; set; }
public string BookMarc { get; set; } = ""; // Hidden column likely
}
}

View File

@@ -20,6 +20,9 @@ namespace ExcelTest
public string Remark1 { get; set; } public string Remark1 { get; set; }
public string Remark2 { get; set; } public string Remark2 { get; set; }
public string text008 { get; set; }
public string tag056 { get; set; }
public bool NewMake { get; set; }
} }
} }

View File

@@ -1574,17 +1574,16 @@ namespace ExcelTest
{ {
if (List_Book.Rows[a].DefaultCellStyle.ForeColor == Color.Red) if (List_Book.Rows[a].DefaultCellStyle.ForeColor == Color.Red)
{ {
string[] GridData = var item = new ExcelTest.FillBlankItem
{ {
a.ToString(), Idx = a.ToString(),
List_Book.Rows[a].Cells["ISBN13"].Value.ToString(), Isbn = List_Book.Rows[a].Cells["ISBN13"].Value.ToString(),
List_Book.Rows[a].Cells["book_name"].Value.ToString(), BookName = List_Book.Rows[a].Cells["book_name"].Value.ToString(),
List_Book.Rows[a].Cells["author"].Value.ToString(), Author = List_Book.Rows[a].Cells["author"].Value.ToString(),
List_Book.Rows[a].Cells["book_comp"].Value.ToString(), Publisher = List_Book.Rows[a].Cells["book_comp"].Value.ToString(),
List_Book.Rows[a].Cells["pay"].Value.ToString(), Price = List_Book.Rows[a].Cells["pay"].Value.ToString()
""
}; };
fb.InitFillBlank(GridData); fb.InitFillBlank(item);
} }
} }
fb.ISBN = ISBN; fb.ISBN = ISBN;

View File

@@ -52,17 +52,7 @@ namespace ExcelTest
string p_cust = ""; string p_cust = "";
string p_name = ""; string p_name = "";
public Marc2()
{
InitializeComponent();
this.ml = null;
mUserName = string.Empty;
marcEditorControl1.db = this.db;
marcEditorControl1.BookSaved += MarcEditorControl_BookSaved;
marcEditorControl1.FillBlankClicked += MarcEditorControl_FillBlankClicked;
marcEditorControl1.PrevButton += MarcEditorControl1_PrevButton;
marcEditorControl1.NextButton += MarcEditorControl1_NextButton;
}
private void MarcEditorControl1_NextButton(object sender, EventArgs e) private void MarcEditorControl1_NextButton(object sender, EventArgs e)
{ {
@@ -84,6 +74,7 @@ namespace ExcelTest
marcEditorControl1.FillBlankClicked += MarcEditorControl_FillBlankClicked; marcEditorControl1.FillBlankClicked += MarcEditorControl_FillBlankClicked;
marcEditorControl1.PrevButton += MarcEditorControl1_PrevButton; marcEditorControl1.PrevButton += MarcEditorControl1_PrevButton;
marcEditorControl1.NextButton += MarcEditorControl1_NextButton; marcEditorControl1.NextButton += MarcEditorControl1_NextButton;
marcEditorControl1.CloseButton += (s1, e1) => { this.Close(); };
} }
string l_idx = string.Empty; string l_idx = string.Empty;
@@ -168,10 +159,10 @@ namespace ExcelTest
for (int a = 0; a < db_data.Length - 1; a += 11) for (int a = 0; a < db_data.Length - 1; a += 11)
{ {
MarcBookItem item = new MarcBookItem(); MarcBookItem item = new MarcBookItem();
item.ListIdx = db_data[a]; // 0: idx item.ListIdx = db_data[a]; // 0: idx
item.ISBN13 = db_data[a + 1]; // 1: isbn item.ISBN13 = db_data[a + 1]; // 1: isbn
item.Num= db_data[a + 2] + db_data[a + 3]; // 2: header + num item.Num = db_data[a + 2] + db_data[a + 3]; // 2: header + num
item.BookName = db_data[a + 4]; // 3: book_num item.BookName = db_data[a + 4]; // 3: book_num
item.Author = db_data[a + 5]; // 4: author item.Author = db_data[a + 5]; // 4: author
item.BookComp = db_data[a + 6]; // 5: book_comp item.BookComp = db_data[a + 6]; // 5: book_comp
@@ -253,7 +244,8 @@ namespace ExcelTest
if (item != null) item.ForeColor = gradeColor; if (item != null) item.ForeColor = gradeColor;
List_Book.Rows[a].DefaultCellStyle.ForeColor = gradeColor; List_Book.Rows[a].DefaultCellStyle.ForeColor = gradeColor;
if (isMyData) { if (isMyData)
{
Color saveColor = GetSaveDateColor(Chk_Arr[11]); Color saveColor = GetSaveDateColor(Chk_Arr[11]);
if (item != null) item.BackColor = saveColor; if (item != null) item.BackColor = saveColor;
List_Book.Rows[a].DefaultCellStyle.BackColor = saveColor; List_Book.Rows[a].DefaultCellStyle.BackColor = saveColor;
@@ -263,7 +255,7 @@ namespace ExcelTest
string FindCompCmd = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", Chk_Arr[1]); string FindCompCmd = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", Chk_Arr[1]);
List_Book.Rows[a].Cells["user"].Value = db.DB_Send_CMD_Search(FindCompCmd).Replace("|", ""); List_Book.Rows[a].Cells["user"].Value = db.DB_Send_CMD_Search(FindCompCmd).Replace("|", "");
List_Book.Rows[a].DefaultCellStyle.BackColor = Color.LightGray; List_Book.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
if (item != null) item.BackColor = Color.LightGray; if (item != null) item.BackColor = Color.LightGray;
} }
} }
} }
@@ -593,7 +585,7 @@ namespace ExcelTest
string[] Insert_col = { string[] Insert_col = {
e.griddata.ISBN13, e.griddata.BookName, e.griddata.Author, e.griddata.Publisher, e.griddata.ISBN13, e.griddata.BookName, e.griddata.Author, e.griddata.Publisher,
e.griddata.Price, orimarc, e.griddata.Remark1, e.griddata.Remark2, e.griddata.URL, e.griddata.Price, orimarc, e.griddata.Remark1, e.griddata.Remark2, e.griddata.URL,
e.griddata.Grade, "1", mUserName, e.tag056, e.text008, e.griddata.Grade, "1", mUserName, e.griddata.tag056, e.griddata.text008,
date, mCompidx }; date, mCompidx };
string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col); string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col);
@@ -609,7 +601,7 @@ namespace ExcelTest
"user", "grade" }; "user", "grade" };
string[] Edit_col = { string[] Edit_col = {
mCompidx, orimarc, "1", mOldMarc , "0", e.griddata.Remark1, mCompidx, orimarc, "1", mOldMarc , "0", e.griddata.Remark1,
e.griddata.Remark2, e.griddata.URL, e.tag056,e.text008, date, e.griddata.Remark2, e.griddata.URL, e.griddata.tag056,e.griddata.text008, date,
mUserName, e.griddata.Grade }; mUserName, e.griddata.Grade };
string[] Sear_tbl = { "idx", "compidx" }; string[] Sear_tbl = { "idx", "compidx" };
string[] Sear_col = { Midx, mCompidx }; string[] Sear_col = { Midx, mCompidx };
@@ -697,17 +689,16 @@ namespace ExcelTest
{ {
if (List_Book.Rows[a].DefaultCellStyle.ForeColor == Color.Red) if (List_Book.Rows[a].DefaultCellStyle.ForeColor == Color.Red)
{ {
string[] GridData = var item = new ExcelTest.FillBlankItem
{ {
a.ToString(), Idx = a.ToString(),
List_Book.Rows[a].Cells["ISBN13"].Value?.ToString() ?? "", Isbn = List_Book.Rows[a].Cells["ISBN13"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["book_name"].Value?.ToString() ?? "", BookName = List_Book.Rows[a].Cells["book_name"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["author"].Value?.ToString() ?? "", Author = List_Book.Rows[a].Cells["author"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["book_comp"].Value?.ToString() ?? "", Publisher = List_Book.Rows[a].Cells["book_comp"].Value?.ToString() ?? "",
List_Book.Rows[a].Cells["pay"].Value?.ToString() ?? "", Price = List_Book.Rows[a].Cells["pay"].Value?.ToString() ?? ""
""
}; };
fb.InitFillBlank(GridData); fb.InitFillBlank(item);
} }
} }
fb.ISBN = ISBN; fb.ISBN = ISBN;
@@ -716,7 +707,7 @@ namespace ExcelTest
String_Text st = new String_Text(); String_Text st = new String_Text();
if (fb.BulkMarcResults.Count > 0) if (fb.BulkMarcResults.Count > 0)
{ {
foreach(var kvp in fb.BulkMarcResults) foreach (var kvp in fb.BulkMarcResults)
{ {
// Use list_idx to find row? Or assume key matches? // Use list_idx to find row? Or assume key matches?
// Marc_FillBlank used 'idx' from 'List_idx' column. // Marc_FillBlank used 'idx' from 'List_idx' column.
@@ -725,16 +716,16 @@ namespace ExcelTest
// Key = List_idx. // Key = List_idx.
int targetListIdx = kvp.Key; int targetListIdx = kvp.Key;
// Find row with this list_idx // Find row with this list_idx
foreach(DataGridViewRow r in List_Book.Rows) foreach (DataGridViewRow r in List_Book.Rows)
{ {
if(r.Cells["List_idx"].Value != null && Convert.ToInt32(r.Cells["List_idx"].Value) == targetListIdx) if (r.Cells["List_idx"].Value != null && Convert.ToInt32(r.Cells["List_idx"].Value) == targetListIdx)
{ {
r.Cells["db_marc"].Value = kvp.Value; r.Cells["db_marc"].Value = kvp.Value;
// Update color etc? // Update color etc?
r.DefaultCellStyle.ForeColor = Color.Blue; r.DefaultCellStyle.ForeColor = Color.Blue;
// Need to update 'item' too if bound // Need to update 'item' too if bound
var item = r.DataBoundItem as MarcBookItem; var item = r.DataBoundItem as MarcBookItem;
if(item != null) item.ForeColor = Color.Blue; if (item != null) item.ForeColor = Color.Blue;
break; break;
} }
} }
@@ -743,7 +734,7 @@ namespace ExcelTest
else if (!string.IsNullOrEmpty(fb.SingleMarcResult)) else if (!string.IsNullOrEmpty(fb.SingleMarcResult))
{ {
// Update current Editor // Update current Editor
marcEditorControl1.SetMarcString(fb.SingleMarcResult); marcEditorControl1.SetMarcString(fb.SingleMarcResult);
} }
} }
} }

View File

@@ -19,6 +19,7 @@ namespace UniMarc.마크
Marc m; Marc m;
Marc2 m2; Marc2 m2;
AddMarc am; AddMarc am;
AddMarc2 am2;
CD_LP cp; CD_LP cp;
public int MarcFormRowIndex; public int MarcFormRowIndex;
@@ -26,6 +27,12 @@ namespace UniMarc.마크
{ {
InitializeComponent(); InitializeComponent();
} }
public MarcCopySelect(AddMarc2 cD)
{
InitializeComponent();
am2 = cD;
db.DBcon();
}
public MarcCopySelect(CD_LP cD) public MarcCopySelect(CD_LP cD)
{ {
InitializeComponent(); InitializeComponent();
@@ -426,7 +433,12 @@ namespace UniMarc.마크
string isbn = dataGridView1.Rows[row].Cells["isbn"].Value.ToString(); string isbn = dataGridView1.Rows[row].Cells["isbn"].Value.ToString();
am.SelectMarc_Sub(Marc, isbn, GridData); am.SelectMarc_Sub(Marc, isbn, GridData);
} }
if (am2 != null)
{
string Marc = richTextBox1.Text;
string isbn = dataGridView1.Rows[row].Cells["isbn"].Value.ToString();
am2.SelectMarc_Sub(Marc, isbn, GridData);
}
this.Close(); this.Close();
} }

View File

@@ -40,21 +40,27 @@ namespace ExcelTest
string l_idx = string.Empty; string l_idx = string.Empty;
string c_idx = string.Empty; string c_idx = string.Empty;
MacEditorParameter Param = null; MacEditorParameter Param = null;
//public string CurrentISBN13 { get; set; }
//public string CurrentMarcIdx { get; set; }
//public string CurrentUser { get; set; }
//public string CurrentSaveDate { get; set; }
//public string CurrentListIdx { get; set; }
public event EventHandler FillBlankClicked; public event EventHandler FillBlankClicked;
public event EventHandler PrevButton; public event EventHandler PrevButton;
public event EventHandler NextButton; public event EventHandler NextButton;
public event EventHandler CloseButton;
public void SetButtonKolist(bool enable)
{
btn_FillBlank.Enabled = enable;
btn_FillBlank.ForeColor = enable ? Color.Black : Color.DimGray;
}
public void SetButtonPrev(bool enable)
{
btPrev.Enabled = enable;
btPrev.ForeColor = enable ? Color.Black : Color.DimGray;
}
public void SetButtonNext(bool enable)
{
btNext.Enabled = enable;
btNext.ForeColor = enable ? Color.Black : Color.DimGray;
}
public MarcEditorControl() public MarcEditorControl()
{ {
@@ -274,19 +280,31 @@ namespace ExcelTest
memo.Location = new Point(1018, 8); memo.Location = new Point(1018, 8);
memo.Show(); memo.Show();
} }
public void SetMarcString(string text)
{
richTextBox1.Text = text;
// Sync with internal data structures (008, etc)
//string orimarc = st.made_Ori_marc(richTextBox1).Replace(@"\", "₩");
//LoadMarc(orimarc);
}
private void Btn_preview_Click(object sender, EventArgs e) private void Btn_preview_Click(object sender, EventArgs e)
{ {
Marc_Preview mp = new Marc_Preview(); var mp = new Marc_Preview();
mp.isbn = Param.ISBN13; mp.isbn = Param.ISBN13;
mp.richTextBox1.Text = richTextBox1.Text; mp.richTextBox1.Text = richTextBox1.Text;
mp.ButtonSave += (s, ev) =>
{
SetMarcString(ev);
btn_Reflesh008_Click(this, null);
};
mp.Show(); mp.Show();
} }
public class BookSavedEventArgs : EventArgs public class BookSavedEventArgs : EventArgs
{ {
public string SaveDate { get; set; } public string SaveDate { get; set; }
public string DBMarc { get; set; } public string DBMarc { get; set; }
public string tag056 { get; set; }
public string text008 { get; set; }
public MacEditorParameter griddata { get; set; } public MacEditorParameter griddata { get; set; }
} }
@@ -294,7 +312,7 @@ namespace ExcelTest
private void Btn_Save_Click(object sender, EventArgs e) private void Btn_Save_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(Param.ISBN13)) if (Param.NewMake ==false && string.IsNullOrEmpty(Param.ISBN13))
{ {
MessageBox.Show("마크가 선택되지않았습니다."); MessageBox.Show("마크가 선택되지않았습니다.");
return; return;
@@ -339,13 +357,13 @@ namespace ExcelTest
this.Param.Grade = cb_grade.SelectedIndex.ToString(); this.Param.Grade = cb_grade.SelectedIndex.ToString();
this.Param.Remark1 = etc1.Text; this.Param.Remark1 = etc1.Text;
this.Param.Remark2 = etc2.Text; this.Param.Remark2 = etc2.Text;
this.Param.text008 = this.text008.Text.Trim();
this.Param.tag056 = tag056;
// Raise Event to Update List_Book in Parent // Raise Event to Update List_Book in Parent
BookSaved?.Invoke(this, new BookSavedEventArgs BookSaved?.Invoke(this, new BookSavedEventArgs
{ {
SaveDate = date, SaveDate = date,
DBMarc = orimarc, DBMarc = orimarc,
tag056 = tag056,
text008 = text008.Text,
griddata = this.Param griddata = this.Param
}); });
} }
@@ -628,6 +646,11 @@ namespace ExcelTest
richTextBox1.Text = result; richTextBox1.Text = result;
return true; return true;
} }
public void SetRemark(string remark1, string remark2)
{
etc1.Text = remark1;
etc2.Text = remark2;
}
void ReadRemark() void ReadRemark()
{ {
@@ -659,7 +682,7 @@ namespace ExcelTest
/// </summary> /// </summary>
/// <param name="row">해당 데이터의 row값</param> /// <param name="row">해당 데이터의 row값</param>
/// <returns></returns> /// <returns></returns>
bool LoadMarc(string Marc_data) public bool LoadMarc(string Marc_data)
{ {
// Removed accessing List_Book // Removed accessing List_Book
// string Marc_data = List_Book.Rows[row].Cells["db_marc"].Value.ToString(); // string Marc_data = List_Book.Rows[row].Cells["db_marc"].Value.ToString();
@@ -1069,15 +1092,15 @@ namespace ExcelTest
richTextBox1.Text = richTextBox1.Text.Replace(data008, text); richTextBox1.Text = richTextBox1.Text.Replace(data008, text);
data008 = text; data008 = text;
} }
public void SetMarcString(string marcstr) //public void SetMarcString(string marcstr)
{ //{
this.richTextBox1.Text = marcstr; // this.richTextBox1.Text = marcstr;
} //}
#endregion #endregion
private void Btn_Close_Click(object sender, EventArgs e) private void Btn_Close_Click(object sender, EventArgs e)
{ {
CloseButton?.Invoke(this, EventArgs.Empty);
} }
private void pictureBox1_DoubleClick(object sender, EventArgs e) private void pictureBox1_DoubleClick(object sender, EventArgs e)
@@ -1145,7 +1168,7 @@ namespace ExcelTest
TextReset(); TextReset();
foreach (string Line in SplitLine) foreach (string Line in SplitLine)
{ {
if (Line == "") break; if (string.IsNullOrWhiteSpace(Line)) break;
// [0]:태그번호, [1]:지시기호, [2]:마크내용 // [0]:태그번호, [1]:지시기호, [2]:마크내용
string[] SplitTag = Line.Split('\t'); string[] SplitTag = Line.Split('\t');

View File

@@ -2,15 +2,38 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks;
namespace UniMarc. namespace WindowsFormsApp1.Mac
{ {
public class MarcPlanItem public class MarcPlanItem
{ {
public string Idx { get; set; } public string Idx { get; set; }
public string Num { get; set; }
public string RegNum { get; set; }
public string ClassCode { get; set; }
public string AuthorCode { get; set; }
public string Volume { get; set; }
public string Copy { get; set; }
public string Prefix { get; set; }
public string Gu { get; set; }
public string Isbn { get; set; }
public string BookName { get; set; }
public string SBookName1 { get; set; }
public string SBookNum1 { get; set; }
public string SBookName2 { get; set; }
public string SBookNum2 { get; set; }
public string Author { get; set; }
public string BookComp { get; set; }
public string Price { get; set; }
public string Midx { get; set; }
public string Marc { get; set; }
public string SearchTag2 { get; set; }
public string ColCheck { get; set; } = "F";
// Properties used in SelectList specific loading (if needed, or mapped to above)
public string ListName { get; set; } public string ListName { get; set; }
public string Date { get; set; } public string Date { get; set; }
public string User { get; set; } public string User { get; set; }
public string ColCheck { get; set; } = "F";
} }
} }

View File

@@ -29,6 +29,8 @@ namespace UniMarc
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_FillBlank));
this.panel6 = new System.Windows.Forms.Panel(); this.panel6 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.progressBar1 = new System.Windows.Forms.ProgressBar(); this.progressBar1 = new System.Windows.Forms.ProgressBar();
@@ -53,6 +55,19 @@ namespace UniMarc
this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BookMarc = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.BookMarc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bn1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.panel6.SuspendLayout(); this.panel6.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
this.panel4.SuspendLayout(); this.panel4.SuspendLayout();
@@ -60,6 +75,9 @@ namespace UniMarc
this.panel5.SuspendLayout(); this.panel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn1)).BeginInit();
this.bn1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// panel6 // panel6
@@ -206,6 +224,7 @@ namespace UniMarc
// panel5 // panel5
// //
this.panel5.Controls.Add(this.dataGridView1); this.panel5.Controls.Add(this.dataGridView1);
this.panel5.Controls.Add(this.bn1);
this.panel5.Dock = System.Windows.Forms.DockStyle.Left; this.panel5.Dock = System.Windows.Forms.DockStyle.Left;
this.panel5.Location = new System.Drawing.Point(0, 0); this.panel5.Location = new System.Drawing.Point(0, 0);
this.panel5.Name = "panel5"; this.panel5.Name = "panel5";
@@ -230,7 +249,7 @@ namespace UniMarc
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true; this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(531, 702); this.dataGridView1.Size = new System.Drawing.Size(531, 677);
this.dataGridView1.TabIndex = 0; this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
// //
@@ -293,6 +312,122 @@ namespace UniMarc
this.panel2.Size = new System.Drawing.Size(1316, 733); this.panel2.Size = new System.Drawing.Size(1316, 733);
this.panel2.TabIndex = 311; this.panel2.TabIndex = 311;
// //
// bn1
//
this.bn1.AddNewItem = this.bindingNavigatorAddNewItem;
this.bn1.BindingSource = this.bs1;
this.bn1.CountItem = this.bindingNavigatorCountItem;
this.bn1.DeleteItem = this.bindingNavigatorDeleteItem;
this.bn1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem});
this.bn1.Location = new System.Drawing.Point(0, 677);
this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn1.Name = "bn1";
this.bn1.PositionItem = this.bindingNavigatorPositionItem;
this.bn1.Size = new System.Drawing.Size(531, 25);
this.bn1.TabIndex = 312;
this.bn1.Text = "bindingNavigator1";
//
// bindingNavigatorAddNewItem
//
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorAddNewItem.Text = "새로 추가";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorDeleteItem
//
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorDeleteItem.Text = "삭제";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
//
// Marc_FillBlank // Marc_FillBlank
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -309,8 +444,13 @@ namespace UniMarc
this.panel4.ResumeLayout(false); this.panel4.ResumeLayout(false);
this.panel7.ResumeLayout(false); this.panel7.ResumeLayout(false);
this.panel5.ResumeLayout(false); this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bn1)).EndInit();
this.bn1.ResumeLayout(false);
this.bn1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -341,5 +481,18 @@ namespace UniMarc
private System.Windows.Forms.DataGridViewTextBoxColumn BookComp; private System.Windows.Forms.DataGridViewTextBoxColumn BookComp;
private System.Windows.Forms.DataGridViewTextBoxColumn Price; private System.Windows.Forms.DataGridViewTextBoxColumn Price;
private System.Windows.Forms.DataGridViewTextBoxColumn BookMarc; private System.Windows.Forms.DataGridViewTextBoxColumn BookMarc;
private System.Windows.Forms.BindingNavigator bn1;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.BindingSource bs1;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
} }
} }

View File

@@ -20,10 +20,30 @@ namespace UniMarc
public Dictionary<int, string> BulkMarcResults { get; private set; } = new Dictionary<int, string>(); public Dictionary<int, string> BulkMarcResults { get; private set; } = new Dictionary<int, string>();
bool isAll; bool isAll;
bool isBreak; bool isBreak;
List<FillBlankItem> _items = new List<FillBlankItem>();
public Marc_FillBlank() public Marc_FillBlank()
{ {
InitializeComponent(); InitializeComponent();
bs1.DataSource = _items;
dataGridView1.AutoGenerateColumns = false;
dataGridView1.DataSource = bs1;
// Map columns manually if not done in designer, but assuming designer has columns
// We need to map DataPropertyName.
if (dataGridView1.Columns["List_idx"] != null) dataGridView1.Columns["List_idx"].DataPropertyName = "Idx";
if (dataGridView1.Columns["ISBN13"] != null) dataGridView1.Columns["ISBN13"].DataPropertyName = "Isbn";
if (dataGridView1.Columns["BookName"] != null) dataGridView1.Columns["BookName"].DataPropertyName = "BookName";
// Check other column names?
// "BookMarc" was accessed by name.
if (dataGridView1.Columns["BookMarc"] != null) dataGridView1.Columns["BookMarc"].DataPropertyName = "BookMarc";
// Author, Publisher, Price?
// InitFillBlank accepts: [3]저자 [4]출판사 [5]가격
// We should guess column names if not visible or just assume they are bound if user set them up or I set them.
// Let's assume standard names or index binding is replaced by name binding.
// But wait, user said "bs1 is pre-made" (meaning in designer possibly?). If so, I shouldn't 'new' it if it's protected?
// "bs1은 미리 만들어뒀어" implies I might access it.
// In my previous step I saw NO bs1 in the file. So I adding it is safe if I make it matching.
} }
private void Marc_FillBlank_Load(object sender, EventArgs e) private void Marc_FillBlank_Load(object sender, EventArgs e)
@@ -55,10 +75,11 @@ namespace UniMarc
/// <summary> /// <summary>
/// 옆 그리드에 채울 정보를 입력 /// 옆 그리드에 채울 정보를 입력
/// </summary> /// </summary>
/// <param name="GridData">[0]idx [1]ISBN [2]도서명 [3]저자 [4]출판사 [5]가격</param> /// <param name="item">FillBlankItem 객체</param>
public void InitFillBlank(string[] GridData) public void InitFillBlank(FillBlankItem item)
{ {
dataGridView1.Rows.Add(GridData); _items.Add(item);
bs1.ResetBindings(false);
} }
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
@@ -181,13 +202,15 @@ namespace UniMarc
else else
{ {
String_Text st = new String_Text(); String_Text st = new String_Text();
for (int a = 0; a < dataGridView1.Rows.Count; a++) for (int a = 0; a < bs1.Count; a++)
{ {
string isbn = dataGridView1.Rows[a].Cells["ISBN13"].Value.ToString(); var item = (FillBlankItem)bs1.List[a];
string isbn = item.Isbn;
if (tb_URL.Text.Contains(isbn)) if (tb_URL.Text.Contains(isbn))
{ {
dataGridView1.Rows[a].Cells["BookMarc"].Value = SplitText(Text); item.BookMarc = SplitText(Text);
bs1.ResetBindings(false); // Update grid view
isBreak = true; isBreak = true;
} }
} }
@@ -260,28 +283,22 @@ namespace UniMarc
isAll = true; isAll = true;
BulkMarcResults.Clear(); BulkMarcResults.Clear();
for (int a = 0; a < dataGridView1.Rows.Count; a++) for (int a = 0; a < bs1.Count; a++)
{ {
for (int b = 0; b < dataGridView1.RowCount; b++) // Highlight row logic - might need direct grid access for style
{
dataGridView1.Rows[b].DefaultCellStyle.BackColor = Color.White;
}
isBreak = false;
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Yellow; dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Yellow;
// Assuming List_idx is stored as a cell value? Or should we trust the 'a' index?
// The original code used "List_idx" cell. isBreak = false;
int idx = -1;
if (dataGridView1.Rows[a].Cells["List_idx"].Value != null) var item = (FillBlankItem)bs1.List[a];
idx = Convert.ToInt32(dataGridView1.Rows[a].Cells["List_idx"].Value.ToString()); int idx = int.Parse(item.Idx);
else string isbn = item.Isbn;
idx = Convert.ToInt32(dataGridView1.Rows[a].Cells[0].Value.ToString()); // Fallback to column 0 if List_idx not guaranteed
string isbn = dataGridView1.Rows[a].Cells["ISBN13"].Value.ToString(); if (string.IsNullOrEmpty(isbn))
if (isbn == "")
{ {
dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Red; dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Red;
progressBar1.Value += 1; progressBar1.Value += 1;
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.White; // Reset bg
continue; continue;
} }
@@ -294,8 +311,8 @@ namespace UniMarc
Delay(300); Delay(300);
} }
string marc = dataGridView1.Rows[a].Cells["BookMarc"].Value.ToString(); string marc = item.BookMarc;
if (marc == "") if (string.IsNullOrEmpty(marc))
dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Red; dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Red;
else else
{ {
@@ -304,7 +321,8 @@ namespace UniMarc
if (!BulkMarcResults.ContainsKey(idx)) if (!BulkMarcResults.ContainsKey(idx))
BulkMarcResults.Add(idx, processedMarc); BulkMarcResults.Add(idx, processedMarc);
} }
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.White;
progressBar1.Value += 1; progressBar1.Value += 1;
} }
@@ -316,7 +334,6 @@ namespace UniMarc
string MakeMarc(string text) string MakeMarc(string text)
{ {
string[] SplitLine = text.Split('\n'); string[] SplitLine = text.Split('\n');
string result = ""; string result = "";
foreach (string line in SplitLine) foreach (string line in SplitLine)
{ {
@@ -358,7 +375,8 @@ namespace UniMarc
int row = e.RowIndex; int row = e.RowIndex;
richTextBox1.Text = dataGridView1.Rows[row].Cells["BookMarc"].Value.ToString(); var item = (FillBlankItem)bs1.Current;
richTextBox1.Text = item.BookMarc;
} }
} }
} }

View File

@@ -138,4 +138,75 @@
<metadata name="BookMarc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="BookMarc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>663, 10</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAVdJREFUOE/Nz0tLAmEUBmB3kWRoCUVEISFUJGb1OywiKrDsIpZdkJAkDUvDQkij
UKSbVIvatKhNi9oERRAGEQXhjJdp7Hd83/eGs2jhLGQ20QtndTgP71Gp/m0KZ1XInlTjM6XG+4EG5fuK
yaTUIN8bIMUQ0gmtcuBtX/MLPMT0yoHnuA6kuA4iruI20lAZ+DiswWuyFum4Dk+7dbiP6kHEFVDBg+tQ
My4DLbjwG3DqbcORxygHXxJakGIQRFwDEf0gwjKI4AYtzIHmHaA5Oxg/CsYPIb7YIQced+qluvTLCyIs
gRYWQPNO0NwkWNYGxg+DcYNgGSu2Z0xy4C7SiJtwE66kuq049xlAs2Ng/AiS7nbszXci6jIh4jQjPGWR
A+U59hiluowbQMzVVfmgPKU/GdcPxlmx5TArB6KzJunf0gTtPcqBzeluhCYsCIz3wm/rUw78WX4AJCPY
nlwVm9EAAAAASUVORK5CYII=
</value>
</data>
<metadata name="bs1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>590, 10</value>
</metadata>
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAWtJREFUOE+1kE0ow2Ecx/9X5a2UiwtKOSCTmJBMhuQlMo3IvCUHDouEXHZwIOVC
DrhIDiQl5USy07zNa2tKf2laaRf84/J8xBCetab4XL/f76fn+SnKX4DrGLqrwbHDzywkWJlHdJYjLEbY
Wg8q4eYKlma+d1hbgF4TotWIaC+FuYmAktcXCksx2HrknBOHX1KbiTDngrXhW0kMdSBM2TA5Io+/wuI0
oiz5TcRwB7hPYazfLx3rDz7+gCsXNBb4v1SdgajTQ19TaOMP2NtFmPSIilSo0v1y7FHBnAdZMWi6aO51
kVCTGZoEzzWYciA/Dl9bBZwfvh3XmxIJy7PBJdx5odnAQ2E87qJUfPbtzwGjVpxJEWjH+4ElPD/BYBsY
EjhKicW3sSoVb0vSUFsq0W6upUxhdxMtOxZnYhhqVz1oj3JJUZSdpCg0p0POmLKhJofjNqaDeikX3tFG
uuHsQM65cML4ABzY5fA/eQGKIwMcVjm2bAAAAABJRU5ErkJggg==
</value>
</data>
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
+8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
+4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
xpHLcBtgkXfnf2r/a6yKDJJO/JdN+/pfN3gehhwcGGbd/h/W8hKnIv3Uy/81fKdhlQMDnbQb//2qH+JV
pOIxAaccg1Pulf8gBXgVDUoAAPB2wKtYlLYeAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wAAADsABataJCQAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6
3AZY5N35b1NwBUMzTC61/zXcS1iBYdZtrJpBACQX1vLyv27wPKzyYKCTdgOnJEjOr/rhfw3faTjV4AVO
uVf+q3hMAGN0uYEFAL7Rv7NmXVYYAAAAAElFTkSuQmCC
</value>
</data>
</root> </root>

View File

@@ -28,14 +28,15 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan));
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
@@ -71,6 +72,7 @@
this.btn_ChangeColor = new System.Windows.Forms.Button(); this.btn_ChangeColor = new System.Windows.Forms.Button();
this.tb_SearchChangeColor = new System.Windows.Forms.TextBox(); this.tb_SearchChangeColor = new System.Windows.Forms.TextBox();
this.panel5 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel();
this.chkEditorTest = new System.Windows.Forms.CheckBox();
this.cbTag008_32 = new System.Windows.Forms.ComboBox(); this.cbTag008_32 = new System.Windows.Forms.ComboBox();
this.btnTag008 = new System.Windows.Forms.Button(); this.btnTag008 = new System.Windows.Forms.Button();
this.btnTag040 = new System.Windows.Forms.Button(); this.btnTag040 = new System.Windows.Forms.Button();
@@ -141,11 +143,20 @@
this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.search_tag2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.search_tag2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.bn1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.btDelete = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.printDocument1 = new System.Drawing.Printing.PrintDocument(); this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog(); this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
this.chkEditorTest = new System.Windows.Forms.CheckBox();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel4.SuspendLayout(); this.panel4.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
@@ -154,7 +165,9 @@
this.panel6.SuspendLayout(); this.panel6.SuspendLayout();
this.panel7.SuspendLayout(); this.panel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.toolStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bn1)).BeginInit();
this.bn1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// panel1 // panel1
@@ -522,6 +535,18 @@
this.panel5.Size = new System.Drawing.Size(1730, 55); this.panel5.Size = new System.Drawing.Size(1730, 55);
this.panel5.TabIndex = 9; this.panel5.TabIndex = 9;
// //
// chkEditorTest
//
this.chkEditorTest.BackColor = System.Drawing.SystemColors.Control;
this.chkEditorTest.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.chkEditorTest.ForeColor = System.Drawing.Color.Blue;
this.chkEditorTest.Location = new System.Drawing.Point(596, 32);
this.chkEditorTest.Name = "chkEditorTest";
this.chkEditorTest.Size = new System.Drawing.Size(159, 27);
this.chkEditorTest.TabIndex = 53;
this.chkEditorTest.Text = "Editor (Old)";
this.chkEditorTest.UseVisualStyleBackColor = false;
//
// cbTag008_32 // cbTag008_32
// //
this.cbTag008_32.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbTag008_32.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
@@ -1012,7 +1037,7 @@
// panel7 // panel7
// //
this.panel7.Controls.Add(this.dataGridView1); this.panel7.Controls.Add(this.dataGridView1);
this.panel7.Controls.Add(this.toolStrip1); this.panel7.Controls.Add(this.bn1);
this.panel7.Controls.Add(this.checkBox1); this.panel7.Controls.Add(this.checkBox1);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill; this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(0, 90); this.panel7.Location = new System.Drawing.Point(0, 90);
@@ -1027,14 +1052,14 @@
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.AppWorkspace; dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.AppWorkspace;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
this.dataGridView1.ColumnHeadersHeight = 25; this.dataGridView1.ColumnHeadersHeight = 25;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -1090,8 +1115,8 @@
// //
// reg_num // reg_num
// //
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.reg_num.DefaultCellStyle = dataGridViewCellStyle2; this.reg_num.DefaultCellStyle = dataGridViewCellStyle10;
this.reg_num.FillWeight = 130.9363F; this.reg_num.FillWeight = 130.9363F;
this.reg_num.HeaderText = "등록번호"; this.reg_num.HeaderText = "등록번호";
this.reg_num.Name = "reg_num"; this.reg_num.Name = "reg_num";
@@ -1099,8 +1124,8 @@
// //
// class_code // class_code
// //
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.class_code.DefaultCellStyle = dataGridViewCellStyle3; this.class_code.DefaultCellStyle = dataGridViewCellStyle11;
this.class_code.FillWeight = 76.41504F; this.class_code.FillWeight = 76.41504F;
this.class_code.HeaderText = "분류"; this.class_code.HeaderText = "분류";
this.class_code.Name = "class_code"; this.class_code.Name = "class_code";
@@ -1108,8 +1133,8 @@
// //
// author_code // author_code
// //
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.author_code.DefaultCellStyle = dataGridViewCellStyle4; this.author_code.DefaultCellStyle = dataGridViewCellStyle12;
this.author_code.FillWeight = 77.02635F; this.author_code.FillWeight = 77.02635F;
this.author_code.HeaderText = "저자기호"; this.author_code.HeaderText = "저자기호";
this.author_code.Name = "author_code"; this.author_code.Name = "author_code";
@@ -1117,8 +1142,8 @@
// //
// volume // volume
// //
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.volume.DefaultCellStyle = dataGridViewCellStyle5; this.volume.DefaultCellStyle = dataGridViewCellStyle13;
this.volume.FillWeight = 38.80909F; this.volume.FillWeight = 38.80909F;
this.volume.HeaderText = "V"; this.volume.HeaderText = "V";
this.volume.Name = "volume"; this.volume.Name = "volume";
@@ -1127,8 +1152,8 @@
// //
// copy // copy
// //
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.copy.DefaultCellStyle = dataGridViewCellStyle6; this.copy.DefaultCellStyle = dataGridViewCellStyle14;
this.copy.FillWeight = 40.14827F; this.copy.FillWeight = 40.14827F;
this.copy.HeaderText = "C"; this.copy.HeaderText = "C";
this.copy.Name = "copy"; this.copy.Name = "copy";
@@ -1137,8 +1162,8 @@
// //
// prefix // prefix
// //
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.prefix.DefaultCellStyle = dataGridViewCellStyle7; this.prefix.DefaultCellStyle = dataGridViewCellStyle15;
this.prefix.FillWeight = 41.51828F; this.prefix.FillWeight = 41.51828F;
this.prefix.HeaderText = "F"; this.prefix.HeaderText = "F";
this.prefix.Name = "prefix"; this.prefix.Name = "prefix";
@@ -1210,8 +1235,8 @@
// //
// price // price
// //
dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.price.DefaultCellStyle = dataGridViewCellStyle8; this.price.DefaultCellStyle = dataGridViewCellStyle16;
this.price.FillWeight = 86.15041F; this.price.FillWeight = 86.15041F;
this.price.HeaderText = "정가"; this.price.HeaderText = "정가";
this.price.Name = "price"; this.price.Name = "price";
@@ -1247,16 +1272,112 @@
this.colCheck.TrueValue = "T"; this.colCheck.TrueValue = "T";
this.colCheck.Width = 27; this.colCheck.Width = 27;
// //
// toolStrip1 // bn1
// //
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom; this.bn1.AddNewItem = null;
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.bn1.BindingSource = this.bs1;
this.toolStripButton1}); this.bn1.CountItem = this.bindingNavigatorCountItem;
this.toolStrip1.Location = new System.Drawing.Point(0, 738); this.bn1.DeleteItem = null;
this.toolStrip1.Name = "toolStrip1"; this.bn1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.toolStrip1.Size = new System.Drawing.Size(1730, 25); this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStrip1.TabIndex = 3; this.bindingNavigatorMoveFirstItem,
this.toolStrip1.Text = "toolStrip1"; this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.btDelete});
this.bn1.Location = new System.Drawing.Point(0, 738);
this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn1.Name = "bn1";
this.bn1.PositionItem = this.bindingNavigatorPositionItem;
this.bn1.Size = new System.Drawing.Size(1730, 25);
this.bn1.TabIndex = 12;
this.bn1.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// btDelete
//
this.btDelete.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.btDelete.Image = ((System.Drawing.Image)(resources.GetObject("btDelete.Image")));
this.btDelete.Name = "btDelete";
this.btDelete.RightToLeftAutoMirrorImage = true;
this.btDelete.Size = new System.Drawing.Size(23, 22);
this.btDelete.Text = "삭제";
this.btDelete.Click += new System.EventHandler(this.bindingNavigatorDeleteItem_Click);
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
// //
// printDocument1 // printDocument1
// //
@@ -1273,29 +1394,6 @@
this.printPreviewDialog1.Name = "printPreviewDialog1"; this.printPreviewDialog1.Name = "printPreviewDialog1";
this.printPreviewDialog1.Visible = false; this.printPreviewDialog1.Visible = false;
// //
// chkEditorTest
//
this.chkEditorTest.BackColor = System.Drawing.SystemColors.Control;
this.chkEditorTest.Checked = true;
this.chkEditorTest.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkEditorTest.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.chkEditorTest.ForeColor = System.Drawing.Color.Blue;
this.chkEditorTest.Location = new System.Drawing.Point(596, 32);
this.chkEditorTest.Name = "chkEditorTest";
this.chkEditorTest.Size = new System.Drawing.Size(106, 27);
this.chkEditorTest.TabIndex = 53;
this.chkEditorTest.Text = "Editor (OLD)";
this.chkEditorTest.UseVisualStyleBackColor = false;
//
// toolStripButton1
//
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(59, 22);
this.toolStripButton1.Text = "delete";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// Marc_Plan // Marc_Plan
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -1322,8 +1420,10 @@
this.panel7.ResumeLayout(false); this.panel7.ResumeLayout(false);
this.panel7.PerformLayout(); this.panel7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.toolStrip1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.bn1)).EndInit();
this.toolStrip1.PerformLayout(); this.bn1.ResumeLayout(false);
this.bn1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -1437,9 +1537,19 @@
private System.Windows.Forms.DataGridViewTextBoxColumn marc; private System.Windows.Forms.DataGridViewTextBoxColumn marc;
private System.Windows.Forms.DataGridViewTextBoxColumn search_tag2; private System.Windows.Forms.DataGridViewTextBoxColumn search_tag2;
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck; private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton toolStripButton1;
private System.Windows.Forms.ComboBox cb_authorTypeE; private System.Windows.Forms.ComboBox cb_authorTypeE;
private System.Windows.Forms.CheckBox chkEditorTest; private System.Windows.Forms.CheckBox chkEditorTest;
private System.Windows.Forms.BindingNavigator bn1;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton btDelete;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.BindingSource bs1;
} }
} }

View File

@@ -29,7 +29,43 @@ namespace WindowsFormsApp1.Mac
{ {
InitializeComponent(); InitializeComponent();
main = _main; main = _main;
this.toolStrip1.Visible = System.Diagnostics.Debugger.IsAttached; this.btDelete.Visible = System.Diagnostics.Debugger.IsAttached;
// Configure Binding
dataGridView1.AutoGenerateColumns = false;
// Map columns
dataGridView1.Columns["idx"].DataPropertyName = "Idx";
dataGridView1.Columns["num"].DataPropertyName = "Num";
dataGridView1.Columns["reg_num"].DataPropertyName = "RegNum";
dataGridView1.Columns["class_code"].DataPropertyName = "ClassCode";
dataGridView1.Columns["author_code"].DataPropertyName = "AuthorCode";
dataGridView1.Columns["volume"].DataPropertyName = "Volume";
dataGridView1.Columns["copy"].DataPropertyName = "Copy";
dataGridView1.Columns["prefix"].DataPropertyName = "Prefix";
dataGridView1.Columns["gu"].DataPropertyName = "Gu";
dataGridView1.Columns["ISBN"].DataPropertyName = "Isbn";
dataGridView1.Columns["book_name"].DataPropertyName = "BookName";
dataGridView1.Columns["s_book_name1"].DataPropertyName = "SBookName1";
dataGridView1.Columns["s_book_num1"].DataPropertyName = "SBookNum1";
dataGridView1.Columns["s_book_name2"].DataPropertyName = "SBookName2";
dataGridView1.Columns["s_book_num2"].DataPropertyName = "SBookNum2";
dataGridView1.Columns["author"].DataPropertyName = "Author";
dataGridView1.Columns["book_comp"].DataPropertyName = "BookComp";
dataGridView1.Columns["price"].DataPropertyName = "Price";
dataGridView1.Columns["midx"].DataPropertyName = "Midx";
dataGridView1.Columns["marc"].DataPropertyName = "Marc";
dataGridView1.Columns["search_tag2"].DataPropertyName = "SearchTag2";
dataGridView1.Columns["colCheck"].DataPropertyName = "ColCheck";
// CheckBox column value mapping is usually handled automatically for True/False value types if configured,
// but since we using string "T"/"F", we might need cell formatting or just stick to using a helper property if grid supports it.
// The existing code uses "T"/"F". The DataGridViewCheckBoxColumn TrueValue/FalseValue defaults are usually bool.
// I should set TrueValue/FalseValue for the column to "T"/"F" in Designer or code.
// Assuming default is bool, let's try to stick to logic.
((DataGridViewCheckBoxColumn)dataGridView1.Columns["colCheck"]).TrueValue = "T";
((DataGridViewCheckBoxColumn)dataGridView1.Columns["colCheck"]).FalseValue = "F";
this.bs1.DataSource = typeof(MarcPlanItem);
this.dataGridView1.DataSource = this.bs1;
} }
private void Marc_Plan_Load(object sender, EventArgs e) private void Marc_Plan_Load(object sender, EventArgs e)
@@ -66,13 +102,10 @@ namespace WindowsFormsApp1.Mac
sub.TopMost = true; sub.TopMost = true;
if (sub.ShowDialog() == DialogResult.OK) if (sub.ShowDialog() == DialogResult.OK)
{ {
if (sub.ResultFileRows != null && sub.ResultFileRows.Count > 0) //데이터가 있다면?
if (sub.ResultItems != null && sub.ResultItems.Any())
{ {
this.dataGridView1.Rows.Clear(); bs1.DataSource = sub.ResultItems;
foreach (var row in sub.ResultFileRows)
{
this.dataGridView1.Rows.Add(row);
}
} }
else if (!string.IsNullOrEmpty(sub.ResultIdx)) else if (!string.IsNullOrEmpty(sub.ResultIdx))
{ {
@@ -85,7 +118,7 @@ namespace WindowsFormsApp1.Mac
#region SelectList_Sub #region SelectList_Sub
public void mk_Grid(string ListName, string date, string[] Grid) public void mk_Grid(string ListName, string date)
{ {
btn_Select_List.Text = ListName; btn_Select_List.Text = ListName;
this.date = date; this.date = date;
@@ -114,74 +147,69 @@ namespace WindowsFormsApp1.Mac
string[] Search_col = { "work_list", "date" }; string[] Search_col = { "work_list", "date" };
string[] Search_data = { ListName, date }; string[] Search_data = { ListName, date };
string cmd = db.More_DB_Search(Table, Search_col, Search_data, Area); string cmd = db.More_DB_Search(Table, Search_col, Search_data, Area);
string res = db.DB_Send_CMD_Search(cmd); var res = db.ExecuteQueryData(cmd); // Assumed called above
var list = new List<MarcPlanItem>();
string[] ary = res.Split('|');
int tCnt = 1; int tCnt = 1;
for (int a = 0; a < ary.Length; a++)
foreach (DataRow dr in res.Rows)
{ {
if (a % 16 == 00) { Grid[00] = ary[a]; } // idx MarcPlanItem item = new MarcPlanItem();
if (a % 16 == 01) item.Idx = dr["idx"].ToString();
item.Num = dr["num"].ToString();
if (string.IsNullOrEmpty(item.Num))
{ {
Grid[01] = ary[a]; item.Num = tCnt.ToString();
if (ary[a] == "") Grid[02] = tCnt.ToString();
tCnt++;
} // num
if (a % 16 == 02) { Grid[02] = ary[a]; } // r_num
if (a % 16 == 03) { Grid[03] = ary[a]; } // class_symbol
if (a % 16 == 04) { Grid[04] = ary[a]; } // author_symbol
if (a % 16 == 05) { Grid[09] = ary[a]; } // ISBN
if (a % 16 == 06) { Grid[10] = ary[a]; } // book_name
if (a % 16 == 07) { Grid[11] = ary[a]; } // s_book_name1
if (a % 16 == 08) { Grid[12] = ary[a]; } // s_book_num1
if (a % 16 == 09) { 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
string[] vcf = st.Take_Tag(ary[a], GetTag);
Grid[5] = vcf[0];
Grid[6] = vcf[1];
Grid[7] = vcf[2];
string[] ab = st.Take_Tag(ary[a], GetTag2);
if (ab[0] != "")
Grid[19] = Grid[19].Replace(ab[0], Grid[3]);
if (ab[1] != "")
Grid[19] = Grid[19].Replace(ab[1], Grid[4]);
vcf = new string[] { "", "", "" };
vcf[0] = string.Format("▼a{0}", Grid[3]);
vcf[1] = string.Format("▼b{0}", Grid[4]);
if (Grid[5] != "")
vcf[2] = string.Format("▼c{0}", Grid[5]);
string AddTag = string.Format("090\t \t{0}{1}{2}▲", vcf[0], vcf[1], vcf[2]);
string TypeView = ConvertMarcType(Grid[19]);
Grid[19] = st.made_Ori_marc(AddTagInMarc(AddTag, TypeView));
dataGridView1.Rows.Add(Grid);
} }
} tCnt++;
}
public void mk_Grid(string ListName, string date)
{
string[] grid = {
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "T", "", ""
};
mk_Grid(ListName, date, grid); item.RegNum = dr["r_num"].ToString();
item.ClassCode = dr["class_symbol"].ToString();
item.AuthorCode = dr["author_symbol"].ToString();
item.Isbn = dr["ISBN"].ToString();
item.BookName = dr["book_name"].ToString();
item.SBookName1 = dr["s_book_name1"].ToString();
item.SBookNum1 = dr["s_book_num1"].ToString();
item.SBookName2 = dr["s_book_name2"].ToString();
item.SBookNum2 = dr["s_book_num2"].ToString();
item.Author = dr["author"].ToString();
item.BookComp = dr["book_comp"].ToString();
item.Price = dr["price"].ToString();
item.Midx = dr["midx"].ToString();
string rawMarc = dr["marc"].ToString();
// Logic for MARC tag processing
string[] vcf = st.Take_Tag(rawMarc, GetTag);
item.Volume = vcf[0];
item.Copy = vcf[1];
item.Prefix = vcf[2];
string[] ab = st.Take_Tag(rawMarc, GetTag2);
if (ab[0] != "")
rawMarc = rawMarc.Replace(ab[0], item.ClassCode);
if (ab[1] != "")
rawMarc = rawMarc.Replace(ab[1], item.AuthorCode);
string[] vcf_marc = new string[] { "", "", "" };
vcf_marc[0] = string.Format("▼a{0}", item.ClassCode);
vcf_marc[1] = string.Format("▼b{0}", item.AuthorCode);
if (!string.IsNullOrEmpty(item.Volume))
vcf_marc[2] = string.Format("▼c{0}", item.Volume);
string AddTag = string.Format("090\t \t{0}{1}{2}▲", vcf_marc[0], vcf_marc[1], vcf_marc[2]);
string TypeView = ConvertMarcType(rawMarc);
item.Marc = st.made_Ori_marc(AddTagInMarc(AddTag, TypeView));
item.ColCheck = "F";
list.Add(item);
}
bs1.DataSource = list;
} }
public void mk_Panel(string idx, string ListName, string date) public void mk_Panel(string idx, string ListName, string date)
{ {
string Table = "Specs_List"; string Table = "Specs_List";
@@ -222,14 +250,26 @@ namespace WindowsFormsApp1.Mac
private (string marc, MacEditorParameter p) GetBookData(int row) private (string marc, MacEditorParameter p) GetBookData(int row)
{ {
string bookName = dataGridView1.Rows[row].Cells["book_name"].Value.ToString(); // Fallback or deprecated, ideally redirect to item based or remove if possible.
string author = dataGridView1.Rows[row].Cells["author"].Value.ToString(); // BUT existing non-bound usage calls might exist? No, this is private and used in editor opening.
string publisher = dataGridView1.Rows[row].Cells["book_comp"].Value.ToString(); // Let's keep for safety but implement new one.
string price = dataGridView1.Rows[row].Cells["price"].Value.ToString(); if (row >= 0 && row < bs1.Count)
string isbn = dataGridView1.Rows[row].Cells["ISBN"].Value.ToString(); {
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString(); return GetBookData((MarcPlanItem)bs1.List[row]);
string midx = dataGridView1.Rows[row].Cells["midx"].Value.ToString(); }
string marc = dataGridView1.Rows[row].Cells["marc"].Value.ToString(); return ("", new MacEditorParameter());
}
private (string marc, MacEditorParameter p) GetBookData(MarcPlanItem item)
{
string bookName = item.BookName;
string author = item.Author;
string publisher = item.BookComp;
string price = item.Price;
string isbn = item.Isbn;
string idx = item.Idx;
string midx = item.Midx;
string marc = item.Marc;
string cmd = string.Format("SELECT `user`, `editDate`, `etc1`, `etc2` FROM `Specs_Marc` WHERE `idx` = \"{0}\"", midx); string cmd = string.Format("SELECT `user`, `editDate`, `etc1`, `etc2` FROM `Specs_Marc` WHERE `idx` = \"{0}\"", midx);
string res = db.DB_Send_CMD_Search(cmd); string res = db.DB_Send_CMD_Search(cmd);
@@ -270,7 +310,7 @@ namespace WindowsFormsApp1.Mac
if (dataGridView1.Rows[row].Cells[col].ReadOnly) if (dataGridView1.Rows[row].Cells[col].ReadOnly)
{ {
if (chkEditorTest.Checked == false) if (chkEditorTest.Checked == true)
{ {
string[] Marc = { string[] Marc = {
dataGridView1.Rows[row].Cells["marc"].Value.ToString(), dataGridView1.Rows[row].Cells["marc"].Value.ToString(),
@@ -292,77 +332,85 @@ namespace WindowsFormsApp1.Mac
} }
else else
{ {
int currentEditorRow = row; // Sync BindingSource position
string isbn = dataGridView1.Rows[row].Cells["ISBN"].Value.ToString(); bs1.Position = row;
string marcData = dataGridView1.Rows[row].Cells["marc"].Value.ToString();
var currentItem = (MarcPlanItem)bs1.Current;
string isbn = currentItem.Isbn;
string marcData = currentItem.Marc;
var f = new Marc_Plan_Sub_MarcEdit2(isbn, marcData); var f = new Marc_Plan_Sub_MarcEdit2(isbn, marcData);
var data = GetBookData(currentEditorRow); var data = GetBookData(currentItem);
f.LoadBook(data.marc, data.p); f.LoadBook(data.marc, data.p);
f.RequestNext += (s, args) => f.RequestNext += (s, args) =>
{ {
if (currentEditorRow < dataGridView1.RowCount - 1) if (bs1.Position < bs1.Count - 1)
{ {
currentEditorRow++; bs1.MoveNext();
var nextData = GetBookData(currentEditorRow); var nextItem = (MarcPlanItem)bs1.Current;
var nextData = GetBookData(nextItem);
f.LoadBook(nextData.marc, nextData.p); f.LoadBook(nextData.marc, nextData.p);
// Optional: Sync grid selection // Optional: Ensure visible
dataGridView1.ClearSelection(); if (dataGridView1.CurrentRow != null)
dataGridView1.Rows[currentEditorRow].Selected = true; dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.CurrentRow.Index;
// Ensure visible
dataGridView1.FirstDisplayedScrollingRowIndex = currentEditorRow;
} }
}; };
f.RequestPrev += (s, args) => f.RequestPrev += (s, args) =>
{ {
if (currentEditorRow > 0) if (bs1.Position > 0)
{ {
currentEditorRow--; bs1.MovePrevious();
var prevData = GetBookData(currentEditorRow); var prevItem = (MarcPlanItem)bs1.Current;
var prevData = GetBookData(prevItem);
f.LoadBook(prevData.marc, prevData.p); f.LoadBook(prevData.marc, prevData.p);
// Optional: Sync grid selection // Optional: Ensure visible
dataGridView1.ClearSelection(); if (dataGridView1.CurrentRow != null)
dataGridView1.Rows[currentEditorRow].Selected = true; dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.CurrentRow.Index;
// Ensure visible
dataGridView1.FirstDisplayedScrollingRowIndex = currentEditorRow;
} }
}; };
f.BookUpdated += (s, args) => f.BookUpdated += (s, args) =>
{ {
dataGridView1.Rows[currentEditorRow].Cells["book_name"].Value = args.BookName; var item = (MarcPlanItem)bs1.Current;
dataGridView1.Rows[currentEditorRow].Cells["marc"].Value = args.Marc; item.BookName = args.BookName;
item.Marc = args.Marc;
bs1.ResetCurrentItem(); // Refresh grid
}; };
f.RequestFillBlankData += (s, args) => f.RequestFillBlankData += (s, args) =>
{ {
var dataList = new List<string[]>(); var dataList = new List<FillBlankItem>();
string currentIsbn = dataGridView1.Rows[currentEditorRow].Cells["ISBN"].Value.ToString(); var currentBoundItem = (MarcPlanItem)bs1.Current;
for (int a = 0; a < dataGridView1.Rows.Count; a++) for (int a = 0; a < bs1.Count; a++)
{ {
// Criteria for "Fill Blank" candidates. // Criteria for "Fill Blank" candidates.
// Original legacy logic used Red color. Here we check if db_marc (marc column) is empty or too short. // Check if MARC is empty or short
string mData = dataGridView1.Rows[a].Cells["marc"].Value?.ToString() ?? ""; var mItem = (MarcPlanItem)bs1.List[a];
if (mData.Length < 10) // Assuming usage of "Red" roughly equates to invalid/missing MARC string mData = mItem.Marc ?? "";
if (mData.Length < 10)
{ {
string[] rowData = { var item = new FillBlankItem
a.ToString(), {
dataGridView1.Rows[a].Cells["ISBN"].Value?.ToString() ?? "", Idx = a.ToString(),
dataGridView1.Rows[a].Cells["book_name"].Value?.ToString() ?? "", Isbn = mItem.Isbn ?? "",
dataGridView1.Rows[a].Cells["author"].Value?.ToString() ?? "", BookName = mItem.BookName ?? "",
dataGridView1.Rows[a].Cells["book_comp"].Value?.ToString() ?? "", Author = mItem.Author ?? "",
dataGridView1.Rows[a].Cells["price"].Value?.ToString() ?? "", // 'pay' in Marc2 might be 'price' here? Checked GetBookData: yes, price. Publisher = mItem.BookComp ?? "",
"" Price = mItem.Price ?? ""
}; };
dataList.Add(rowData); dataList.Add(item);
} }
} }
f.OpenFillBlank(dataList, currentIsbn); if(dataList.Any()==false)
{
UTIL.MsgE("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다");
}
else f.OpenFillBlank(dataList, currentBoundItem.Isbn);
}; };
f.BulkBooksUpdated += (s, args) => f.BulkBooksUpdated += (s, args) =>
@@ -372,14 +420,15 @@ namespace WindowsFormsApp1.Mac
int rowIdx = kvp.Key; int rowIdx = kvp.Key;
string newMarc = kvp.Value; string newMarc = kvp.Value;
// Ensure rowIdx is valid (it should be, as it came from 'a' loop index) // Ensure rowIdx is valid
if (rowIdx >= 0 && rowIdx < dataGridView1.Rows.Count) if (rowIdx >= 0 && rowIdx < bs1.Count)
{ {
dataGridView1.Rows[rowIdx].Cells["marc"].Value = newMarc; var mItem = (MarcPlanItem)bs1.List[rowIdx];
// Optional: Update color or status to indicate filled? mItem.Marc = newMarc;
// Legacy code updated color. Marc_Plan might not enforce color rules yet, but setting value is key. // We might want to refresh specific rows or all, simpler to reset item or all
} }
} }
bs1.ResetBindings(false); // Refresh all to reflect changes
}; };
f.Show(); f.Show();
@@ -1556,6 +1605,11 @@ namespace WindowsFormsApp1.Mac
} }
private void toolStripButton1_Click(object sender, EventArgs e) private void toolStripButton1_Click(object sender, EventArgs e)
{
}
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{ {
// 범위 입력받기 // 범위 입력받기
string input = Microsoft.VisualBasic.Interaction.InputBox( string input = Microsoft.VisualBasic.Interaction.InputBox(
@@ -1598,10 +1652,10 @@ namespace WindowsFormsApp1.Mac
int startIndex = startRow - 1; int startIndex = startRow - 1;
int endIndex = endRow - 1; int endIndex = endRow - 1;
// 범위가 그리드 범위를 벗어나는지 확인 // 범위가 데이터 범위를 벗어나는지 확인
if (endIndex >= dataGridView1.Rows.Count) if (endIndex >= bs1.Count)
{ {
MessageBox.Show($"입력한 범위가 전체 수({dataGridView1.Rows.Count})를 초과합니다.", "입력 오류", MessageBoxButtons.OK, MessageBoxIcon.Warning); MessageBox.Show($"입력한 범위가 전체 데이터 수({bs1.Count})를 초과합니다.", "입력 오류", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return; return;
} }
@@ -1614,9 +1668,9 @@ namespace WindowsFormsApp1.Mac
// 뒤에서부터 삭제 (인덱스가 꼬이지 않도록) // 뒤에서부터 삭제 (인덱스가 꼬이지 않도록)
for (int i = endIndex; i >= startIndex; i--) for (int i = endIndex; i >= startIndex; i--)
{ {
if (i < dataGridView1.Rows.Count && !dataGridView1.Rows[i].IsNewRow) if (i < bs1.Count)
{ {
dataGridView1.Rows.RemoveAt(i); bs1.RemoveAt(i);
} }
} }

View File

@@ -117,33 +117,76 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>437, 11</value>
</metadata>
<metadata name="search_tag2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="search_tag2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>300, 6</value> <value>437, 11</value>
</metadata>
<metadata name="bs1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>517, 10</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK wQAADsEBuJFr7QAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X +8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM +4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
cX79DFKrHHD5d9D26hvicx4pABt2lpg10zYzU0zr7+e3xXGcrkEB2O2TNec9nJFwB3alZn5jZorfeDZh xpHLcBtgkXfnf2r/a6yKDJJO/JdN+/pfN3gehhwcGGbd/h/W8hKnIv3Uy/81fKdhlQMDnbQb//2qH+JV
6Q3g8s06BeCoKF4MRURoH1+BY2oNCbeb0TIclIYxOhzf8frTOuo7FxCbbVIAzpni0iceEc8vhzEwGkJD pOIxAaccg1Pulf8gBXgVDUoAAPB2wKtYlLYeAAAAAElFTkSuQmCC
lx83ymxifejdKjRNk/8PWnyIyTQqAJek0jqHwfEVscu31baIu8+90sTE4nY025dQ2/5FIPpnXlzKuK8A </value>
HBUzHot52djqQ6HZhfR7IwK4mKpHtvEDMqvfCiQ6zaAAXM8x94aIWTNrLLG4kVUzgaTSPlzLtyJOZxbb </data>
1wtfyg4Q+AfA3aZlButjSfxGcUJBk4g5tuP3haQKRKXcUQDOmbvNTpPOJeFFjordZmbWTNvMTHFUcpUC <data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
nOccAdABIDXXE1nzAAAAAElFTkSuQmCC <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6
3AZY5N35b1NwBUMzTC61/zXcS1iBYdZtrJpBACQX1vLyv27wPKzyYKCTdgOnJEjOr/rhfw3faTjV4AVO
uVf+q3hMAGN0uYEFAL7Rv7NmXVYYAAAAAElFTkSuQmCC
</value>
</data>
<data name="btDelete.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAWtJREFUOE+1kE0ow2Ecx/9X5a2UiwtKOSCTmJBMhuQlMo3IvCUHDouEXHZwIOVC
DrhIDiQl5USy07zNa2tKf2laaRf84/J8xBCetab4XL/f76fn+SnKX4DrGLqrwbHDzywkWJlHdJYjLEbY
Wg8q4eYKlma+d1hbgF4TotWIaC+FuYmAktcXCksx2HrknBOHX1KbiTDngrXhW0kMdSBM2TA5Io+/wuI0
oiz5TcRwB7hPYazfLx3rDz7+gCsXNBb4v1SdgajTQ19TaOMP2NtFmPSIilSo0v1y7FHBnAdZMWi6aO51
kVCTGZoEzzWYciA/Dl9bBZwfvh3XmxIJy7PBJdx5odnAQ2E87qJUfPbtzwGjVpxJEWjH+4ElPD/BYBsY
EjhKicW3sSoVb0vSUFsq0W6upUxhdxMtOxZnYhhqVz1oj3JJUZSdpCg0p0POmLKhJofjNqaDeikX3tFG
uuHsQM65cML4ABzY5fA/eQGKIwMcVjm2bAAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="printDocument1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="printDocument1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>6, 7</value> <value>18, 17</value>
</metadata> </metadata>
<metadata name="printPreviewDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="printPreviewDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>138, 6</value> <value>193, 17</value>
</metadata> </metadata>
<data name="printPreviewDialog1.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="printPreviewDialog1.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
@@ -319,6 +362,6 @@
</value> </value>
</data> </data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>40</value> <value>84</value>
</metadata> </metadata>
</root> </root>

View File

@@ -35,6 +35,7 @@ namespace UniMarc.마크
marcEditorControl1.BookSaved += MarcEditorControl_BookSaved; marcEditorControl1.BookSaved += MarcEditorControl_BookSaved;
marcEditorControl1.NextButton += MarcEditorControl1_NextButton; marcEditorControl1.NextButton += MarcEditorControl1_NextButton;
marcEditorControl1.PrevButton += MarcEditorControl1_PrevButton; marcEditorControl1.PrevButton += MarcEditorControl1_PrevButton;
marcEditorControl1.CloseButton += (s1, e1) => { this.Close(); };
marcEditorControl1.Dock = DockStyle.Fill; marcEditorControl1.Dock = DockStyle.Fill;
this.StartPosition = FormStartPosition.CenterScreen; this.StartPosition = FormStartPosition.CenterScreen;
this.Controls.Add(marcEditorControl1); this.Controls.Add(marcEditorControl1);
@@ -58,12 +59,12 @@ namespace UniMarc.마크
public event EventHandler RequestFillBlankData; public event EventHandler RequestFillBlankData;
public void OpenFillBlank(List<string[]> gridData, string currentIsbn) public void OpenFillBlank(List<FillBlankItem> gridData, string currentIsbn)
{ {
var fb = new UniMarc.Marc_FillBlank(); var fb = new UniMarc.Marc_FillBlank();
foreach (var rowData in gridData) foreach (var item in gridData)
{ {
fb.InitFillBlank(rowData); fb.InitFillBlank(item);
} }
fb.ISBN = currentIsbn; fb.ISBN = currentIsbn;
@@ -105,7 +106,7 @@ namespace UniMarc.마크
string oriMarc = e.DBMarc; string oriMarc = e.DBMarc;
string etc1 = e.griddata.Remark1 ?? ""; string etc1 = e.griddata.Remark1 ?? "";
string etc2 = e.griddata.Remark2 ?? ""; string etc2 = e.griddata.Remark2 ?? "";
string tag008 = e.text008; string tag008 = e.griddata.text008;
// 등록번호 분류기호 저자기호 볼륨 복본 // 등록번호 분류기호 저자기호 볼륨 복본
// 별치 총서명 총서번호 저자 출판사 // 별치 총서명 총서번호 저자 출판사

View File

@@ -20,7 +20,7 @@ namespace UniMarc.마크
public string ResultIdx { get; private set; } public string ResultIdx { get; private set; }
public string ResultListName { get; private set; } public string ResultListName { get; private set; }
public string ResultDate { get; private set; } public string ResultDate { get; private set; }
public List<string[]> ResultFileRows { get; private set; } public List<MarcPlanItem> ResultItems { get; private set; }
public Marc_Plan_Sub_SelectList() public Marc_Plan_Sub_SelectList()
{ {
@@ -247,27 +247,27 @@ namespace UniMarc.마크
private void btn_OpenFile_Click(object sender, EventArgs e) private void btn_OpenFile_Click(object sender, EventArgs e)
{ {
OpenFileDialog OpenFileDialog = new OpenFileDialog(); OpenFileDialog OpenFileDialog = new OpenFileDialog();
if (OpenFileDialog.ShowDialog() == DialogResult.OK) if (OpenFileDialog.ShowDialog() != DialogResult.OK) return;
var filePath = OpenFileDialog.FileName;
try
{ {
if (OpenFileDialog.ShowDialog() == DialogResult.OK) var filedata = System.IO.File.ReadAllText(filePath, System.Text.Encoding.Default);
{ InputGridByFileData(filedata);
//mp.dataGridView1.Rows.Clear(); // Decoupled DialogResult = DialogResult.OK;
string filePath = OpenFileDialog.FileName; }
try catch (Exception ex)
{ {
System.IO.StreamReader r = new System.IO.StreamReader(filePath, Encoding.Default); MessageBox.Show(ex.ToString());
InputGridByFileData(r.ReadToEnd());
r.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
} }
} }
#region OpenFileSub #region OpenFileSub
/// <summary>
/// 파일로부터 목록을 가져온다
/// </summary>
/// <param name="text"></param>
void InputGridByFileData(string text) void InputGridByFileData(string text)
{ {
String_Text st = new String_Text(); String_Text st = new String_Text();
@@ -280,9 +280,8 @@ namespace UniMarc.마크
"049l", "090a", "090b", "049v", "049c", "049f", "049l", "090a", "090b", "049v", "049c", "049f",
// ISBN, 도서명, 총서명1, 총서번호1, 총서명2, 총서번호2, 출판사, 정가, 저자 // ISBN, 도서명, 총서명1, 총서번호1, 총서명2, 총서번호2, 출판사, 정가, 저자
"020a", "245a", "440a", "440v", "490a", "490v", "260b", "950b", "245d" }; "020a", "245a", "440a", "440v", "490a", "490v", "260b", "950b", "245d" };
string[] Search_Res = st.Take_Tag(grid[a], Search); string[] Search_Res = st.Take_Tag(grid[a], Search);
string[] Author_Search = { "100a", "110a", "111a" }; string[] Author_Search = { "100a", "110a", "111a" };
string[] Author_Res = st.Take_Tag(grid[a], Author_Search); string[] Author_Res = st.Take_Tag(grid[a], Author_Search);
string author_Fin = Search_Res[14]; string author_Fin = Search_Res[14];
@@ -295,22 +294,41 @@ namespace UniMarc.마크
} }
} }
string[] AddGrid = {
// idx, 연번, 등록번호, 분류, 저자기호 // idx, 연번, 등록번호, 분류, 저자기호
"", "", Search_Res[0], Search_Res[1], Search_Res[2], // "", "", Search_Res[0], Search_Res[1], Search_Res[2],
// 볼륨v, 복본c, 별치f, 구분, isbn // 볼륨v, 복본c, 별치f, 구분, isbn
Search_Res[3], Search_Res[4], Search_Res[5], "", Search_Res[6], // Search_Res[3], Search_Res[4], Search_Res[5], "", Search_Res[6],
// 도서명, 총서명1, 총서번호1, 총서명1, 총서번호2 // 도서명, 총서명1, 총서번호1, 총서명1, 총서번호2
Search_Res[7], Search_Res[8], Search_Res[9], Search_Res[10], Search_Res[11], // Search_Res[7], Search_Res[8], Search_Res[9], Search_Res[10], Search_Res[11],
// 저자, 출판사, 정가, midx, 마크 // 저자, 출판사, 정가, midx, 마크
author_Fin, Search_Res[12], Search_Res[13], "", grid[a], // author_Fin, Search_Res[12], Search_Res[13], "", grid[a],
// 검색태그 // 검색태그
"", "T" }; // "", "T"
if (ResultFileRows == null) ResultFileRows = new List<string[]>();
ResultFileRows.Add(AddGrid); var item = new MarcPlanItem
//mp.dataGridView1.Rows.Add(AddGrid); {
RegNum = Search_Res[0],
ClassCode = Search_Res[1],
AuthorCode = Search_Res[2],
Volume = Search_Res[3],
Copy = Search_Res[4],
Prefix = Search_Res[5],
Isbn = Search_Res[6],
BookName = Search_Res[7],
SBookName1 = Search_Res[8],
SBookNum1 = Search_Res[9],
SBookName2 = Search_Res[10],
SBookNum2 = Search_Res[11],
Author = author_Fin,
BookComp = Search_Res[12],
Price = Search_Res[13],
Marc = grid[a],
ColCheck = "T"
};
if (ResultItems == null) ResultItems = new List<MarcPlanItem>();
ResultItems.Add(item);
} }
this.DialogResult = DialogResult.OK;
} }
#endregion #endregion
@@ -344,18 +362,11 @@ namespace UniMarc.마크
if (dataGridView1.Columns[col].Name == "colCheck") if (dataGridView1.Columns[col].Name == "colCheck")
return; return;
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString(); var drow = dataGridView1.Rows[row].DataBoundItem as MarcPlanItem;
string list_name = dataGridView1.Rows[row].Cells["list_name"].Value.ToString(); ResultIdx = drow.Idx;//idx;
string date = dataGridView1.Rows[row].Cells["date"].Value.ToString(); ResultListName = drow.ListName;// list_name;
ResultDate = drow.Date;//date;
ResultIdx = idx;
ResultListName = list_name;
ResultDate = date;
this.DialogResult = DialogResult.OK; this.DialogResult = DialogResult.OK;
//mp.mk_Grid(list_name, date);
//mp.mk_Panel(idx, list_name, date);
this.Close(); this.Close();
} }

View File

@@ -103,9 +103,9 @@ namespace UniMarc.마크
// //
// btn_Search // btn_Search
// //
this.btn_Search.Location = new System.Drawing.Point(172, 12); this.btn_Search.Location = new System.Drawing.Point(270, 7);
this.btn_Search.Name = "btn_Search"; this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(75, 23); this.btn_Search.Size = new System.Drawing.Size(75, 31);
this.btn_Search.TabIndex = 0; this.btn_Search.TabIndex = 0;
this.btn_Search.Text = "검 색"; this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true; this.btn_Search.UseVisualStyleBackColor = true;
@@ -113,9 +113,9 @@ namespace UniMarc.마크
// //
// btn_Save // btn_Save
// //
this.btn_Save.Location = new System.Drawing.Point(253, 12); this.btn_Save.Location = new System.Drawing.Point(351, 7);
this.btn_Save.Name = "btn_Save"; this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(75, 23); this.btn_Save.Size = new System.Drawing.Size(75, 31);
this.btn_Save.TabIndex = 0; this.btn_Save.TabIndex = 0;
this.btn_Save.Text = "마크 저장"; this.btn_Save.Text = "마크 저장";
this.btn_Save.UseVisualStyleBackColor = true; this.btn_Save.UseVisualStyleBackColor = true;

View File

@@ -14,9 +14,11 @@ namespace UniMarc.마크
public partial class Marc_Preview : Form public partial class Marc_Preview : Form
{ {
public string isbn; public string isbn;
AddMarc am; //AddMarc am;
Marc mac; //Marc mac;
public EventHandler<string> ButtonSave;
public Marc_Preview() public Marc_Preview()
{ {
InitializeComponent(); InitializeComponent();
@@ -103,10 +105,11 @@ namespace UniMarc.마크
private void btn_Save_Click(object sender, EventArgs e) private void btn_Save_Click(object sender, EventArgs e)
{ {
if (mac != null) //if (mac != null)
mac.richTextBox1.Text = richTextBox1.Text; // mac.richTextBox1.Text = richTextBox1.Text;
else if (am != null) //else if (am != null)
am.richTextBox1.Text = richTextBox1.Text; // am.richTextBox1.Text = richTextBox1.Text;
ButtonSave?.Invoke(this, richTextBox1.Text);
} }
/// <summary> /// <summary>

View File

@@ -17,7 +17,7 @@ namespace UniMarc.마크
AddMarc am; AddMarc am;
Marc2 mae; Marc2 mae;
MarcEditorControl mae2; MarcEditorControl mae2;
AddMarc2 am2;
public Marc_memo(MarcEditorControl _mae) public Marc_memo(MarcEditorControl _mae)
{ {
InitializeComponent(); InitializeComponent();
@@ -38,7 +38,11 @@ namespace UniMarc.마크
InitializeComponent(); InitializeComponent();
am = _am; am = _am;
} }
public Marc_memo(AddMarc2 _am)
{
InitializeComponent();
am2 = _am;
}
private void Marc_memo_Load(object sender, EventArgs e) private void Marc_memo_Load(object sender, EventArgs e)
{ {
string[] com_List = string[] com_List =

View File

@@ -20,7 +20,7 @@ namespace ExcelTest
string find = ""; string find = "";
string change = ""; string change = "";
String_Text st = new String_Text(); String_Text st = new String_Text();
AddMarc am; AddMarc am; AddMarc2 am2;
Marc mac; Marc mac;
Marc_memo mmm; Marc_memo mmm;
Marc2 mae; Marc2 mae;
@@ -37,6 +37,11 @@ namespace ExcelTest
InitializeComponent(); InitializeComponent();
mae = _mae; mae = _mae;
} }
public findNchange(AddMarc2 _am)
{
InitializeComponent();
am2 = _am;
}
public findNchange(AddMarc _am) public findNchange(AddMarc _am)
{ {
InitializeComponent(); InitializeComponent();