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

** ERP 작업 전면 중단 (마크우선) **
*** 마크작성 - 칸채우기 버그 수정을 위해 테스트 계정 제외하고 잠금***

1. 마크 목록
ㄴ> 이벤트 버튼 (수정, 삭제, 추가, 제거) 클릭 시 자동으로 조회되도록 변경

2. 마크 목록 추가
ㄴ> 이벤트 버튼 (수정, 삭제, 추가, 제거) 클릭 시 자동으로 조회되도록 변경

3. 마크 정리
ㄴ> EncodigType에 따라 디렉토리값이 반영되게 수정.

4. 마크 추가
ㄴ> 필수태그 추가.
ㄴ> 등급에 단축키 외관상 보기쉽게 표출

5. 복본조사
ㄴ> 도서관 검색에서 빈칸으로 검색 시 전체 도서관이 다 표출되게 변경

6. 퀵메뉴
ㄴ> 이전 저장 메뉴 반영 안되는 버그 수정
This commit is contained in:
SeungHo Yang
2022-03-03 18:51:53 +09:00
parent dc8d5424e6
commit b051037c82
32 changed files with 490 additions and 306 deletions

Binary file not shown.

View File

@@ -34,7 +34,6 @@
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.chk_Save = new System.Windows.Forms.CheckBox(); this.chk_Save = new System.Windows.Forms.CheckBox();
this.SuspendLayout(); this.SuspendLayout();
// //
@@ -93,17 +92,6 @@
this.label2.TabIndex = 2; this.label2.TabIndex = 2;
this.label2.Text = "비밀번호"; this.label2.Text = "비밀번호";
// //
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.SystemColors.Control;
this.label3.Location = new System.Drawing.Point(77, 61);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(33, 12);
this.label3.TabIndex = 5;
this.label3.Text = " ";
this.label3.Click += new System.EventHandler(this.label3_Click);
//
// chk_Save // chk_Save
// //
this.chk_Save.AutoSize = true; this.chk_Save.AutoSize = true;
@@ -121,7 +109,6 @@
this.ClientSize = new System.Drawing.Size(480, 219); this.ClientSize = new System.Drawing.Size(480, 219);
this.ControlBox = false; this.ControlBox = false;
this.Controls.Add(this.chk_Save); this.Controls.Add(this.chk_Save);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
@@ -145,7 +132,6 @@
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.CheckBox chk_Save; private System.Windows.Forms.CheckBox chk_Save;
} }
} }

View File

@@ -50,8 +50,7 @@ namespace WindowsFormsApp1
this.Close(); this.Close();
} }
else { else {
MessageBox.Show("ID : [" + result[1] + "] PW : [" + result[2] + "]"); MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다.");
// MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다.");
} }
} }
else { else {
@@ -118,16 +117,5 @@ namespace WindowsFormsApp1
if (e.KeyCode == Keys.Enter) { button1_Click(null, null); } if (e.KeyCode == Keys.Enter) { button1_Click(null, null); }
if (e.KeyCode == Keys.Escape) { this.Close(); } if (e.KeyCode == Keys.Escape) { this.Close(); }
} }
/// <summary>
/// //TODO: 삭제대상
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void label3_Click(object sender, EventArgs e)
{
ID_text.Text = "sh";
PW_text.Text = "123";
}
} }
} }

View File

@@ -404,28 +404,28 @@
// 단축키설정 // 단축키설정
// //
this..Name = "단축키설정"; this..Name = "단축키설정";
this..Size = new System.Drawing.Size(138, 22); this..Size = new System.Drawing.Size(180, 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(138, 22); this..Size = new System.Drawing.Size(180, 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(138, 22); this..Size = new System.Drawing.Size(180, 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(138, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "작업지시서"; this..Text = "작업지시서";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -444,35 +444,35 @@
// 마크목록 // 마크목록
// //
this..Name = "마크목록"; this..Name = "마크목록";
this..Size = new System.Drawing.Size(146, 22); this..Size = new System.Drawing.Size(180, 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(146, 22); this..Size = new System.Drawing.Size(180, 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(146, 22); this..Size = new System.Drawing.Size(180, 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(146, 22); this.1.Size = new System.Drawing.Size(180, 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);
// //
// iSBN조회 // iSBN조회
// //
this.iSBN조회.Name = "iSBN조회"; this.iSBN조회.Name = "iSBN조회";
this.iSBN조회.Size = new System.Drawing.Size(146, 22); this.iSBN조회.Size = new System.Drawing.Size(180, 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);
// //
@@ -488,14 +488,14 @@
// 마크반입 // 마크반입
// //
this..Name = "마크반입"; this..Name = "마크반입";
this..Size = new System.Drawing.Size(98, 22); this..Size = new System.Drawing.Size(180, 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(98, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "반출"; this..Text = "반출";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -514,14 +514,15 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "마크수집"; this..Name = "마크수집";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "마크수집"; this..Text = "마크수집";
this..Visible = false;
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, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "전집관리"; this..Text = "전집관리";
this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
@@ -529,14 +530,15 @@
// //
this..Enabled = false; this..Enabled = false;
this..Name = "검수"; this..Name = "검수";
this..Size = new System.Drawing.Size(122, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "검수"; this..Text = "검수";
this..Visible = false;
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, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "저자기호"; this..Text = "저자기호";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -552,14 +554,14 @@
// DLS조회 // DLS조회
// //
this.DLS조회.Name = "DLS조회"; this.DLS조회.Name = "DLS조회";
this.DLS조회.Size = new System.Drawing.Size(154, 22); this.DLS조회.Size = new System.Drawing.Size(180, 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(154, 22); this.dLS복본조사.Size = new System.Drawing.Size(180, 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);
// //
@@ -579,6 +581,7 @@
this..Name = "서류작성"; this..Name = "서류작성";
this..Size = new System.Drawing.Size(180, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "서류작성"; this..Text = "서류작성";
this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 마크통계 // 마크통계
@@ -594,6 +597,7 @@
this..Name = "장비관리"; this..Name = "장비관리";
this..Size = new System.Drawing.Size(180, 22); this..Size = new System.Drawing.Size(180, 22);
this..Text = "장비관리"; this..Text = "장비관리";
this..Visible = false;
this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click); this..Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
// //
// 작업일지ToolStripMenuItem // 작업일지ToolStripMenuItem
@@ -1020,17 +1024,7 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button ShortCut3;
private System.Windows.Forms.Button ShortCut2;
private System.Windows.Forms.Button ShortCut1;
private System.Windows.Forms.ToolStripMenuItem ; private System.Windows.Forms.ToolStripMenuItem ;
private System.Windows.Forms.Button ShortCut10;
private System.Windows.Forms.Button ShortCut9;
private System.Windows.Forms.Button ShortCut8;
private System.Windows.Forms.Button ShortCut6;
private System.Windows.Forms.Button ShortCut5;
private System.Windows.Forms.Button ShortCut7;
private System.Windows.Forms.Button ShortCut4;
private System.Windows.Forms.ToolStrip toolStrip1; private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripMenuItem ; private System.Windows.Forms.ToolStripMenuItem ;
private System.Windows.Forms.ToolStripMenuItem ; private System.Windows.Forms.ToolStripMenuItem ;
@@ -1053,8 +1047,6 @@
private System.Windows.Forms.ToolStripMenuItem ; private System.Windows.Forms.ToolStripMenuItem ;
private System.Windows.Forms.ToolStripMenuItem ; private System.Windows.Forms.ToolStripMenuItem ;
private System.Windows.Forms.ToolStripMenuItem iSBN조회; private System.Windows.Forms.ToolStripMenuItem iSBN조회;
private System.Windows.Forms.Button ShortCut12;
private System.Windows.Forms.Button ShortCut11;
private System.Windows.Forms.OpenFileDialog openFileDialog1; private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.ToolStripMenuItem ; private System.Windows.Forms.ToolStripMenuItem ;
private System.Windows.Forms.ToolStripMenuItem ; private System.Windows.Forms.ToolStripMenuItem ;
@@ -1065,5 +1057,17 @@
private System.Windows.Forms.ToolStripMenuItem dLS복본조사; private System.Windows.Forms.ToolStripMenuItem dLS복본조사;
private System.Windows.Forms.ToolStripLabel VersionText; private System.Windows.Forms.ToolStripLabel VersionText;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
public System.Windows.Forms.Button ShortCut3;
public System.Windows.Forms.Button ShortCut2;
public System.Windows.Forms.Button ShortCut1;
public System.Windows.Forms.Button ShortCut10;
public System.Windows.Forms.Button ShortCut9;
public System.Windows.Forms.Button ShortCut8;
public System.Windows.Forms.Button ShortCut6;
public System.Windows.Forms.Button ShortCut5;
public System.Windows.Forms.Button ShortCut7;
public System.Windows.Forms.Button ShortCut4;
public System.Windows.Forms.Button ShortCut12;
public System.Windows.Forms.Button ShortCut11;
} }
} }

View File

@@ -76,9 +76,9 @@ namespace WindowsFormsApp1
// if (com_idx != "1") // if (com_idx != "1")
// { // {
ToolStripMenuItem.Visible = false;
ToolStripMenuItem.Visible = false;
// } // }
ToolStripMenuItem.Visible = false;
ToolStripMenuItem.Visible = false;
if (result[7] != "관리자") { ToolStripMenuItem.Visible = false; } if (result[7] != "관리자") { ToolStripMenuItem.Visible = false; }
Settings.Default.compidx = com_idx; Settings.Default.compidx = com_idx;

View File

@@ -61,6 +61,8 @@ namespace UniMarc.마크
SetCode(row); SetCode(row);
this.Close(); this.Close();
} }
if (e.KeyCode == Keys.Escape)
this.Close();
} }
void SetCode(int row) void SetCode(int row)

View File

@@ -41,7 +41,7 @@ namespace WindowsFormsApp1.Mac
if (e.KeyCode == Keys.Enter) if (e.KeyCode == Keys.Enter)
{ {
string Target = tb_SearchTarget.Text; string Target = tb_SearchTarget.Text;
if (Target == "") { MessageBox.Show("도서관명이 비어있습니다."); return; } // if (Target == "") { MessageBox.Show("도서관명이 비어있습니다."); return; }
string area = "`Province`, `Area`, `LibName`, `Code`, `URL`"; string area = "`Province`, `Area`, `LibName`, `Code`, `URL`";
string cmd = string.Format("SELECT {0} FROM `lib_CopyCheck` WHERE `LibName` LIKE '%{1}%';", area, Target); string cmd = string.Format("SELECT {0} FROM `lib_CopyCheck` WHERE `LibName` LIKE '%{1}%';", area, Target);

View File

@@ -259,7 +259,7 @@
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 31; this.dataGridView1.RowHeadersWidth = 31;
this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(301, 287); this.dataGridView1.Size = new System.Drawing.Size(360, 636);
this.dataGridView1.TabIndex = 0; this.dataGridView1.TabIndex = 0;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown); this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
@@ -268,9 +268,10 @@
// //
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.dataGridView1); this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Location = new System.Drawing.Point(34, 382); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 76);
this.panel3.Name = "panel3"; this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(303, 289); this.panel3.Size = new System.Drawing.Size(362, 638);
this.panel3.TabIndex = 4; this.panel3.TabIndex = 4;
// //
// panel1 // panel1

View File

@@ -334,7 +334,6 @@
private System.Windows.Forms.TextBox tb_Search; private System.Windows.Forms.TextBox tb_Search;
private System.Windows.Forms.ComboBox cb_state; private System.Windows.Forms.ComboBox cb_state;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btn_Lookup;
private System.Windows.Forms.Button btn_Excel; private System.Windows.Forms.Button btn_Excel;
private System.Windows.Forms.Button btn_Close; private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Button btn_Save; private System.Windows.Forms.Button btn_Save;
@@ -357,5 +356,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn etc; private System.Windows.Forms.DataGridViewTextBoxColumn etc;
private System.Windows.Forms.DataGridViewTextBoxColumn charge; private System.Windows.Forms.DataGridViewTextBoxColumn charge;
private System.Windows.Forms.DataGridViewTextBoxColumn check; private System.Windows.Forms.DataGridViewTextBoxColumn check;
public System.Windows.Forms.Button btn_Lookup;
} }
} }

View File

@@ -49,7 +49,7 @@ namespace WindowsFormsApp1.Mac
} }
} }
private void btn_Lookup_Click(object sender, EventArgs e) public void btn_Lookup_Click(object sender, EventArgs e)
{ {
string table = "Obj_List"; string table = "Obj_List";
/* idx / 목록일자 / 완료일자 / 목록명 / 작업명 /* idx / 목록일자 / 완료일자 / 목록명 / 작업명
@@ -113,7 +113,7 @@ namespace WindowsFormsApp1.Mac
private void btn_AddList_Click(object sender, EventArgs e) private void btn_AddList_Click(object sender, EventArgs e)
{ {
Mac_List_Add listAdd = new Mac_List_Add(); Mac_List_Add listAdd = new Mac_List_Add(this);
listAdd.Show(); listAdd.Show();
} }

View File

@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using WindowsFormsApp1; using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
namespace UniMarc. namespace UniMarc.
{ {
@@ -15,10 +16,12 @@ namespace UniMarc.마크
{ {
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
Skill_Grid sg = new Skill_Grid(); Skill_Grid sg = new Skill_Grid();
Mac_List ml;
public Mac_List_Add() public Mac_List_Add(Mac_List _ml)
{ {
InitializeComponent(); InitializeComponent();
ml = _ml;
} }
private void Mac_List_Add_Load(object sender, EventArgs e) private void Mac_List_Add_Load(object sender, EventArgs e)
@@ -116,6 +119,7 @@ namespace UniMarc.마크
db.DB_Send_CMD_reVoid(InBook_Cmd); db.DB_Send_CMD_reVoid(InBook_Cmd);
MessageBox.Show("저장되었습니다!"); MessageBox.Show("저장되었습니다!");
ml.btn_Lookup_Click(null, null);
} }
#region AddList_Sub #region AddList_Sub

View File

@@ -78,7 +78,6 @@ namespace WindowsFormsApp1.마크
return; return;
} }
// TODO: 생각나는 필터링있으면 if문 추가할 것.
// 이 밑으론 DB적용사항. 기존목록유지시 INSERT만 / 기존목록삭제시 INSERT이후 기존목록DELETE // 이 밑으론 DB적용사항. 기존목록유지시 INSERT만 / 기존목록삭제시 INSERT이후 기존목록DELETE
data_Insert(); data_Insert();
for (int a = 0; a < dataGridView1.Rows.Count; a++) for (int a = 0; a < dataGridView1.Rows.Count; a++)
@@ -87,9 +86,13 @@ namespace WindowsFormsApp1.마크
} }
if (rb_Delete.Checked) { if (rb_Delete.Checked) {
// 삭제 함수 // 기존 목록 삭제 함수
data_delete(); data_delete();
} }
MessageBox.Show("목록이 병합되었습니다.");
ml.btn_Lookup_Click(null, null);
this.Close();
} }
void data_Insert() void data_Insert()
@@ -182,7 +185,8 @@ namespace WindowsFormsApp1.마크
"list_name", "date" "list_name", "date"
}; };
string[] targetData = { string[] targetData = {
dataGridView1.Rows[row].Cells["list_name"].Value.ToString(), dataGridView1.Rows[row].Cells["list_date"].Value.ToString() dataGridView1.Rows[row].Cells["list_name"].Value.ToString(),
dataGridView1.Rows[row].Cells["list_date"].Value.ToString()
}; };
string cmd = db.DB_Delete_No_Limit(table, "compidx", ml.compidx, target_Col, targetData); string cmd = db.DB_Delete_No_Limit(table, "compidx", ml.compidx, target_Col, targetData);
@@ -200,7 +204,6 @@ namespace WindowsFormsApp1.마크
if (tb_list_name.Text == db_data[a]) if (tb_list_name.Text == db_data[a])
return false; return false;
} }
return true; return true;
} }
@@ -214,14 +217,12 @@ namespace WindowsFormsApp1.마크
int result = 0; int result = 0;
List<int> total = new List<int>(); List<int> total = new List<int>();
for (int a = 0; a < dataGridView1.Rows.Count - 1; a++) for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
total.Add(Convert.ToInt32(dataGridView1.Rows[a].Cells[column].Value.ToString())); total.Add(Convert.ToInt32(dataGridView1.Rows[a].Cells[column].Value.ToString()));
}
for (int a = 0; a < total.Count; a++) for (int a = 0; a < total.Count; a++)
{
result += total[a]; result += total[a];
}
return result; return result;
} }
private void btn_Close_Click(object sender, EventArgs e) private void btn_Close_Click(object sender, EventArgs e)

View File

@@ -40,6 +40,7 @@
this.date = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.btn_Close = new System.Windows.Forms.Button(); this.btn_Close = new System.Windows.Forms.Button();
this.btn_Lookup = new System.Windows.Forms.Button();
this.btn_Stats = new System.Windows.Forms.Button(); this.btn_Stats = new System.Windows.Forms.Button();
this.End_Date = new System.Windows.Forms.DateTimePicker(); this.End_Date = new System.Windows.Forms.DateTimePicker();
this.Start_Date = new System.Windows.Forms.DateTimePicker(); this.Start_Date = new System.Windows.Forms.DateTimePicker();
@@ -52,9 +53,10 @@
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.cb_Search = new System.Windows.Forms.ComboBox(); this.cb_Search = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.btn_Lookup = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// dataGridView1 // dataGridView1
@@ -79,10 +81,11 @@
this.tag008, this.tag008,
this.charge, this.charge,
this.date}); this.date});
this.dataGridView1.Location = new System.Drawing.Point(13, 53); this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1105, 430); this.dataGridView1.Size = new System.Drawing.Size(1130, 461);
this.dataGridView1.TabIndex = 8; this.dataGridView1.TabIndex = 8;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
// //
@@ -148,9 +151,10 @@
this.panel2.Controls.Add(this.label2); this.panel2.Controls.Add(this.label2);
this.panel2.Controls.Add(this.cb_Search); this.panel2.Controls.Add(this.cb_Search);
this.panel2.Controls.Add(this.label1); this.panel2.Controls.Add(this.label1);
this.panel2.Location = new System.Drawing.Point(12, 12); this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1106, 34); this.panel2.Size = new System.Drawing.Size(1130, 34);
this.panel2.TabIndex = 7; this.panel2.TabIndex = 7;
// //
// btn_Close // btn_Close
@@ -163,6 +167,16 @@
this.btn_Close.UseVisualStyleBackColor = true; this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click); this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
// //
// btn_Lookup
//
this.btn_Lookup.Location = new System.Drawing.Point(859, 5);
this.btn_Lookup.Name = "btn_Lookup";
this.btn_Lookup.Size = new System.Drawing.Size(75, 23);
this.btn_Lookup.TabIndex = 222;
this.btn_Lookup.Text = "조 회";
this.btn_Lookup.UseVisualStyleBackColor = true;
this.btn_Lookup.Click += new System.EventHandler(this.btn_Lookup_Click);
//
// btn_Stats // btn_Stats
// //
this.btn_Stats.Location = new System.Drawing.Point(940, 5); this.btn_Stats.Location = new System.Drawing.Point(940, 5);
@@ -218,6 +232,7 @@
this.cb_Sort.Name = "cb_Sort"; this.cb_Sort.Name = "cb_Sort";
this.cb_Sort.Size = new System.Drawing.Size(82, 20); this.cb_Sort.Size = new System.Drawing.Size(82, 20);
this.cb_Sort.TabIndex = 1; this.cb_Sort.TabIndex = 1;
this.cb_Sort.SelectedIndexChanged += new System.EventHandler(this.cb_Sort_SelectedIndexChanged);
// //
// label4 // label4
// //
@@ -274,22 +289,21 @@
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "검색"; this.label1.Text = "검색";
// //
// btn_Lookup // panel1
// //
this.btn_Lookup.Location = new System.Drawing.Point(859, 5); this.panel1.Controls.Add(this.dataGridView1);
this.btn_Lookup.Name = "btn_Lookup"; this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.btn_Lookup.Size = new System.Drawing.Size(75, 23); this.panel1.Location = new System.Drawing.Point(0, 34);
this.btn_Lookup.TabIndex = 222; this.panel1.Name = "panel1";
this.btn_Lookup.Text = "조 회"; this.panel1.Size = new System.Drawing.Size(1130, 461);
this.btn_Lookup.UseVisualStyleBackColor = true; this.panel1.TabIndex = 9;
this.btn_Lookup.Click += new System.EventHandler(this.btn_Lookup_Click);
// //
// Mac_Stat // Mac_Stat
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); 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(1130, 495); this.ClientSize = new System.Drawing.Size(1130, 495);
this.Controls.Add(this.dataGridView1); this.Controls.Add(this.panel1);
this.Controls.Add(this.panel2); this.Controls.Add(this.panel2);
this.Name = "Mac_Stat"; this.Name = "Mac_Stat";
this.Text = "마크 통계"; this.Text = "마크 통계";
@@ -297,6 +311,7 @@
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
this.panel2.PerformLayout(); this.panel2.PerformLayout();
this.panel1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -327,5 +342,6 @@
private System.Windows.Forms.ComboBox cb_Search; private System.Windows.Forms.ComboBox cb_Search;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_Lookup; private System.Windows.Forms.Button btn_Lookup;
private System.Windows.Forms.Panel panel1;
} }
} }

View File

@@ -31,9 +31,8 @@ namespace WindowsFormsApp1.Mac
cb_Search.Items.AddRange(com1); cb_Search.Items.AddRange(com1);
cb_Search.SelectedIndex = 0; cb_Search.SelectedIndex = 0;
string[] com2 = { "도서명", "ISBN", "IDX", "출판사" }; string[] com2 = { "도서명", "ISBN", "출판사" };
cb_Sort.Items.AddRange(com2); cb_Sort.Items.AddRange(com2);
cb_Sort.SelectedIndex = 0;
string cmd = string.Format("SELECT `name` FROM `User_Data` WHERE `affil` = (SELECT `comp_name` FROM `Comp` WHERE `idx` = {0})", compidx); string cmd = string.Format("SELECT `name` FROM `User_Data` WHERE `affil` = (SELECT `comp_name` FROM `Comp` WHERE `idx` = {0})", compidx);
@@ -129,25 +128,7 @@ namespace WindowsFormsApp1.Mac
end_Date += " 23:59:59"; end_Date += " 23:59:59";
cmd += string.Format(" AND `date` <= '{0}'", end_Date); cmd += string.Format(" AND `date` <= '{0}'", end_Date);
} }
return cmd + " LIMIT 10000;";
switch (cb_Sort.SelectedIndex)
{
case 0: // 도서명
cmd += string.Format(" ORDER BY '서명'");
break;
case 1: // ISBN
cmd += string.Format(" ORDER BY 'ISBN'");
break;
case 2: // IDX
cmd += string.Format(" ORDER BY 'idx'");
break;
case 3: // 출판사
cmd += string.Format(" ORDER BY '출판사'");
break;
default:
break;
}
return cmd + ";";
} }
#endregion #endregion
@@ -168,5 +149,19 @@ namespace WindowsFormsApp1.Mac
Skill_Grid sg = new Skill_Grid(); Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e); sg.Print_Grid_Num(sender, e);
} }
private void cb_Sort_SelectedIndexChanged(object sender, EventArgs e)
{
//[0] "도서명" / [1] "ISBN" / [2] "출판사"
int SortIdx = cb_Sort.SelectedIndex;
switch (SortIdx)
{
case 0: dataGridView1.Sort(book_name, ListSortDirection.Ascending); break;
case 1: dataGridView1.Sort(ISBN, ListSortDirection.Ascending); break;
case 2: dataGridView1.Sort(book_comp, ListSortDirection.Ascending); break;
}
}
} }
} }

View File

@@ -75,6 +75,8 @@ namespace UniMarc.마크
this.lbl_s_total = new System.Windows.Forms.Label(); this.lbl_s_total = new System.Windows.Forms.Label();
this.lbl_a_total = new System.Windows.Forms.Label(); this.lbl_a_total = new System.Windows.Forms.Label();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label12 = new System.Windows.Forms.Label();
this.lbl_10 = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
@@ -108,18 +110,19 @@ namespace UniMarc.마크
// tableLayoutPanel1 // tableLayoutPanel1
// //
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.InsetDouble; this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.InsetDouble;
this.tableLayoutPanel1.ColumnCount = 11; this.tableLayoutPanel1.ColumnCount = 12;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.090908F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.333333F));
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0); this.tableLayoutPanel1.Controls.Add(this.label2, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.label3, 2, 0); this.tableLayoutPanel1.Controls.Add(this.label3, 2, 0);
@@ -130,8 +133,6 @@ namespace UniMarc.마크
this.tableLayoutPanel1.Controls.Add(this.label8, 7, 0); this.tableLayoutPanel1.Controls.Add(this.label8, 7, 0);
this.tableLayoutPanel1.Controls.Add(this.label9, 8, 0); this.tableLayoutPanel1.Controls.Add(this.label9, 8, 0);
this.tableLayoutPanel1.Controls.Add(this.label10, 9, 0); this.tableLayoutPanel1.Controls.Add(this.label10, 9, 0);
this.tableLayoutPanel1.Controls.Add(this.label11, 10, 0);
this.tableLayoutPanel1.Controls.Add(this.lbl_total, 10, 1);
this.tableLayoutPanel1.Controls.Add(this.lbl_9, 9, 1); this.tableLayoutPanel1.Controls.Add(this.lbl_9, 9, 1);
this.tableLayoutPanel1.Controls.Add(this.lbl_8, 8, 1); this.tableLayoutPanel1.Controls.Add(this.lbl_8, 8, 1);
this.tableLayoutPanel1.Controls.Add(this.lbl_7, 7, 1); this.tableLayoutPanel1.Controls.Add(this.lbl_7, 7, 1);
@@ -142,6 +143,10 @@ namespace UniMarc.마크
this.tableLayoutPanel1.Controls.Add(this.lbl_2, 2, 1); this.tableLayoutPanel1.Controls.Add(this.lbl_2, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.lbl_1, 1, 1); this.tableLayoutPanel1.Controls.Add(this.lbl_1, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.lbl_0, 0, 1); this.tableLayoutPanel1.Controls.Add(this.lbl_0, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.label11, 11, 0);
this.tableLayoutPanel1.Controls.Add(this.lbl_total, 11, 1);
this.tableLayoutPanel1.Controls.Add(this.label12, 10, 0);
this.tableLayoutPanel1.Controls.Add(this.lbl_10, 10, 1);
this.tableLayoutPanel1.Location = new System.Drawing.Point(6, 35); this.tableLayoutPanel1.Location = new System.Drawing.Point(6, 35);
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowCount = 2;
@@ -159,7 +164,7 @@ namespace UniMarc.마크
this.label1.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label1.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label1.Location = new System.Drawing.Point(6, 3); this.label1.Location = new System.Drawing.Point(6, 3);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(70, 71); this.label1.Size = new System.Drawing.Size(63, 71);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "총류"; this.label1.Text = "총류";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -171,9 +176,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label2.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label2.Location = new System.Drawing.Point(85, 3); this.label2.Location = new System.Drawing.Point(78, 3);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(70, 71); this.label2.Size = new System.Drawing.Size(63, 71);
this.label2.TabIndex = 0; this.label2.TabIndex = 0;
this.label2.Text = "철학"; this.label2.Text = "철학";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -185,9 +190,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label3.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label3.Location = new System.Drawing.Point(164, 3); this.label3.Location = new System.Drawing.Point(150, 3);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(70, 71); this.label3.Size = new System.Drawing.Size(63, 71);
this.label3.TabIndex = 0; this.label3.TabIndex = 0;
this.label3.Text = "종교"; this.label3.Text = "종교";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -199,9 +204,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label4.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label4.Location = new System.Drawing.Point(243, 3); this.label4.Location = new System.Drawing.Point(222, 3);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(70, 71); this.label4.Size = new System.Drawing.Size(63, 71);
this.label4.TabIndex = 0; this.label4.TabIndex = 0;
this.label4.Text = "사회과학"; this.label4.Text = "사회과학";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -213,9 +218,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label5.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label5.Location = new System.Drawing.Point(322, 3); this.label5.Location = new System.Drawing.Point(294, 3);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(70, 71); this.label5.Size = new System.Drawing.Size(63, 71);
this.label5.TabIndex = 0; this.label5.TabIndex = 0;
this.label5.Text = "자연과학"; this.label5.Text = "자연과학";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -227,9 +232,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label6.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label6.Location = new System.Drawing.Point(401, 3); this.label6.Location = new System.Drawing.Point(366, 3);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(70, 71); this.label6.Size = new System.Drawing.Size(63, 71);
this.label6.TabIndex = 0; this.label6.TabIndex = 0;
this.label6.Text = "기술과학"; this.label6.Text = "기술과학";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -241,9 +246,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label7.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label7.Location = new System.Drawing.Point(480, 3); this.label7.Location = new System.Drawing.Point(438, 3);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(70, 71); this.label7.Size = new System.Drawing.Size(63, 71);
this.label7.TabIndex = 0; this.label7.TabIndex = 0;
this.label7.Text = "예술"; this.label7.Text = "예술";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -255,9 +260,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label8.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label8.Location = new System.Drawing.Point(559, 3); this.label8.Location = new System.Drawing.Point(510, 3);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(70, 71); this.label8.Size = new System.Drawing.Size(63, 71);
this.label8.TabIndex = 0; this.label8.TabIndex = 0;
this.label8.Text = "언어"; this.label8.Text = "언어";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -269,9 +274,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label9.AutoSize = true; this.label9.AutoSize = true;
this.label9.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label9.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label9.Location = new System.Drawing.Point(638, 3); this.label9.Location = new System.Drawing.Point(582, 3);
this.label9.Name = "label9"; this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(70, 71); this.label9.Size = new System.Drawing.Size(63, 71);
this.label9.TabIndex = 0; this.label9.TabIndex = 0;
this.label9.Text = "문학"; this.label9.Text = "문학";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -283,9 +288,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label10.AutoSize = true; this.label10.AutoSize = true;
this.label10.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label10.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label10.Location = new System.Drawing.Point(717, 3); this.label10.Location = new System.Drawing.Point(654, 3);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(70, 71); this.label10.Size = new System.Drawing.Size(63, 71);
this.label10.TabIndex = 0; this.label10.TabIndex = 0;
this.label10.Text = "역사"; this.label10.Text = "역사";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -297,9 +302,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.label11.AutoSize = true; this.label11.AutoSize = true;
this.label11.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; this.label11.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label11.Location = new System.Drawing.Point(796, 3); this.label11.Location = new System.Drawing.Point(798, 3);
this.label11.Name = "label11"; this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(75, 71); this.label11.Size = new System.Drawing.Size(73, 71);
this.label11.TabIndex = 0; this.label11.TabIndex = 0;
this.label11.Text = "합계"; this.label11.Text = "합계";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -311,9 +316,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_total.AutoSize = true; this.lbl_total.AutoSize = true;
this.lbl_total.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_total.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_total.Location = new System.Drawing.Point(796, 77); this.lbl_total.Location = new System.Drawing.Point(798, 77);
this.lbl_total.Name = "lbl_total"; this.lbl_total.Name = "lbl_total";
this.lbl_total.Size = new System.Drawing.Size(75, 72); this.lbl_total.Size = new System.Drawing.Size(73, 72);
this.lbl_total.TabIndex = 0; this.lbl_total.TabIndex = 0;
this.lbl_total.Text = "0"; this.lbl_total.Text = "0";
this.lbl_total.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_total.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -325,9 +330,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_9.AutoSize = true; this.lbl_9.AutoSize = true;
this.lbl_9.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_9.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_9.Location = new System.Drawing.Point(717, 77); this.lbl_9.Location = new System.Drawing.Point(654, 77);
this.lbl_9.Name = "lbl_9"; this.lbl_9.Name = "lbl_9";
this.lbl_9.Size = new System.Drawing.Size(70, 72); this.lbl_9.Size = new System.Drawing.Size(63, 72);
this.lbl_9.TabIndex = 0; this.lbl_9.TabIndex = 0;
this.lbl_9.Text = "0"; this.lbl_9.Text = "0";
this.lbl_9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -339,9 +344,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_8.AutoSize = true; this.lbl_8.AutoSize = true;
this.lbl_8.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_8.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_8.Location = new System.Drawing.Point(638, 77); this.lbl_8.Location = new System.Drawing.Point(582, 77);
this.lbl_8.Name = "lbl_8"; this.lbl_8.Name = "lbl_8";
this.lbl_8.Size = new System.Drawing.Size(70, 72); this.lbl_8.Size = new System.Drawing.Size(63, 72);
this.lbl_8.TabIndex = 0; this.lbl_8.TabIndex = 0;
this.lbl_8.Text = "0"; this.lbl_8.Text = "0";
this.lbl_8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -353,9 +358,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_7.AutoSize = true; this.lbl_7.AutoSize = true;
this.lbl_7.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_7.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_7.Location = new System.Drawing.Point(559, 77); this.lbl_7.Location = new System.Drawing.Point(510, 77);
this.lbl_7.Name = "lbl_7"; this.lbl_7.Name = "lbl_7";
this.lbl_7.Size = new System.Drawing.Size(70, 72); this.lbl_7.Size = new System.Drawing.Size(63, 72);
this.lbl_7.TabIndex = 0; this.lbl_7.TabIndex = 0;
this.lbl_7.Text = "0"; this.lbl_7.Text = "0";
this.lbl_7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -367,9 +372,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_6.AutoSize = true; this.lbl_6.AutoSize = true;
this.lbl_6.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_6.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_6.Location = new System.Drawing.Point(480, 77); this.lbl_6.Location = new System.Drawing.Point(438, 77);
this.lbl_6.Name = "lbl_6"; this.lbl_6.Name = "lbl_6";
this.lbl_6.Size = new System.Drawing.Size(70, 72); this.lbl_6.Size = new System.Drawing.Size(63, 72);
this.lbl_6.TabIndex = 0; this.lbl_6.TabIndex = 0;
this.lbl_6.Text = "0"; this.lbl_6.Text = "0";
this.lbl_6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -381,9 +386,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_5.AutoSize = true; this.lbl_5.AutoSize = true;
this.lbl_5.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_5.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_5.Location = new System.Drawing.Point(401, 77); this.lbl_5.Location = new System.Drawing.Point(366, 77);
this.lbl_5.Name = "lbl_5"; this.lbl_5.Name = "lbl_5";
this.lbl_5.Size = new System.Drawing.Size(70, 72); this.lbl_5.Size = new System.Drawing.Size(63, 72);
this.lbl_5.TabIndex = 0; this.lbl_5.TabIndex = 0;
this.lbl_5.Text = "0"; this.lbl_5.Text = "0";
this.lbl_5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -395,9 +400,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_4.AutoSize = true; this.lbl_4.AutoSize = true;
this.lbl_4.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_4.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_4.Location = new System.Drawing.Point(322, 77); this.lbl_4.Location = new System.Drawing.Point(294, 77);
this.lbl_4.Name = "lbl_4"; this.lbl_4.Name = "lbl_4";
this.lbl_4.Size = new System.Drawing.Size(70, 72); this.lbl_4.Size = new System.Drawing.Size(63, 72);
this.lbl_4.TabIndex = 0; this.lbl_4.TabIndex = 0;
this.lbl_4.Text = "0"; this.lbl_4.Text = "0";
this.lbl_4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -409,9 +414,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_3.AutoSize = true; this.lbl_3.AutoSize = true;
this.lbl_3.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_3.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_3.Location = new System.Drawing.Point(243, 77); this.lbl_3.Location = new System.Drawing.Point(222, 77);
this.lbl_3.Name = "lbl_3"; this.lbl_3.Name = "lbl_3";
this.lbl_3.Size = new System.Drawing.Size(70, 72); this.lbl_3.Size = new System.Drawing.Size(63, 72);
this.lbl_3.TabIndex = 0; this.lbl_3.TabIndex = 0;
this.lbl_3.Text = "0"; this.lbl_3.Text = "0";
this.lbl_3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -423,9 +428,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_2.AutoSize = true; this.lbl_2.AutoSize = true;
this.lbl_2.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_2.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_2.Location = new System.Drawing.Point(164, 77); this.lbl_2.Location = new System.Drawing.Point(150, 77);
this.lbl_2.Name = "lbl_2"; this.lbl_2.Name = "lbl_2";
this.lbl_2.Size = new System.Drawing.Size(70, 72); this.lbl_2.Size = new System.Drawing.Size(63, 72);
this.lbl_2.TabIndex = 0; this.lbl_2.TabIndex = 0;
this.lbl_2.Text = "0"; this.lbl_2.Text = "0";
this.lbl_2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -437,9 +442,9 @@ namespace UniMarc.마크
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbl_1.AutoSize = true; this.lbl_1.AutoSize = true;
this.lbl_1.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_1.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_1.Location = new System.Drawing.Point(85, 77); this.lbl_1.Location = new System.Drawing.Point(78, 77);
this.lbl_1.Name = "lbl_1"; this.lbl_1.Name = "lbl_1";
this.lbl_1.Size = new System.Drawing.Size(70, 72); this.lbl_1.Size = new System.Drawing.Size(63, 72);
this.lbl_1.TabIndex = 0; this.lbl_1.TabIndex = 0;
this.lbl_1.Text = "0"; this.lbl_1.Text = "0";
this.lbl_1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -453,7 +458,7 @@ namespace UniMarc.마크
this.lbl_0.BackColor = System.Drawing.Color.PapayaWhip; this.lbl_0.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_0.Location = new System.Drawing.Point(6, 77); this.lbl_0.Location = new System.Drawing.Point(6, 77);
this.lbl_0.Name = "lbl_0"; this.lbl_0.Name = "lbl_0";
this.lbl_0.Size = new System.Drawing.Size(70, 72); this.lbl_0.Size = new System.Drawing.Size(63, 72);
this.lbl_0.TabIndex = 0; this.lbl_0.TabIndex = 0;
this.lbl_0.Text = "0"; this.lbl_0.Text = "0";
this.lbl_0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbl_0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -757,6 +762,34 @@ namespace UniMarc.마크
this.dateTimePicker1.Size = new System.Drawing.Size(200, 21); this.dateTimePicker1.Size = new System.Drawing.Size(200, 21);
this.dateTimePicker1.TabIndex = 0; this.dateTimePicker1.TabIndex = 0;
// //
// label12
//
this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label12.AutoSize = true;
this.label12.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
this.label12.Location = new System.Drawing.Point(726, 3);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(63, 71);
this.label12.TabIndex = 0;
this.label12.Text = "미분류";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl_10
//
this.lbl_10.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lbl_10.AutoSize = true;
this.lbl_10.BackColor = System.Drawing.Color.PapayaWhip;
this.lbl_10.Location = new System.Drawing.Point(726, 77);
this.lbl_10.Name = "lbl_10";
this.lbl_10.Size = new System.Drawing.Size(63, 72);
this.lbl_10.TabIndex = 0;
this.lbl_10.Text = "0";
this.lbl_10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// Mac_Stat_Stat // Mac_Stat_Stat
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -825,5 +858,7 @@ namespace UniMarc.마크
private System.Windows.Forms.Label lbl_s_total; private System.Windows.Forms.Label lbl_s_total;
private System.Windows.Forms.Label lbl_a_total; private System.Windows.Forms.Label lbl_a_total;
private System.Windows.Forms.DateTimePicker dateTimePicker1; private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label lbl_10;
} }
} }

View File

@@ -33,12 +33,15 @@ namespace UniMarc.마크
{ {
Label[] label = { Label[] label = {
lbl_0, lbl_1, lbl_2, lbl_3, lbl_4, lbl_0, lbl_1, lbl_2, lbl_3, lbl_4,
lbl_5, lbl_6, lbl_7, lbl_8, lbl_9 lbl_5, lbl_6, lbl_7, lbl_8, lbl_9, lbl_10
}; };
for (int a = 0; a < label.Length; a++) for (int a = 0; a < label.Length; a++)
{ {
string count = a.ToString();
if (count == "10")
count = "";
string m_cmd = string.Format("SELECT COUNT(*) from `Marc` WHERE LEFT(`division`,1) = '{0}' AND `compidx` = {1};", string m_cmd = string.Format("SELECT COUNT(*) from `Marc` WHERE LEFT(`division`,1) = '{0}' AND `compidx` = {1};",
a, compidx); count, compidx);
string cmd = db.self_Made_Cmd(m_cmd); string cmd = db.self_Made_Cmd(m_cmd);
cmd = cmd.Replace("|", ""); cmd = cmd.Replace("|", "");
label[a].Text = cmd; label[a].Text = cmd;

View File

@@ -500,19 +500,19 @@ namespace ExcelTest
switch (key) switch (key)
{ {
case Keys.F9: case Keys.F9:
cb_grade.SelectedItem = "A"; cb_grade.SelectedItem = "A (F9)";
Btn_Save_Click(null, null); Btn_Save_Click(null, null);
break; break;
case Keys.F10: case Keys.F10:
cb_grade.SelectedItem = "B"; cb_grade.SelectedItem = "B (F10)";
Btn_Save_Click(null, null); Btn_Save_Click(null, null);
break; break;
case Keys.F11: case Keys.F11:
cb_grade.SelectedItem = "C"; cb_grade.SelectedItem = "C (F11)";
Btn_Save_Click(null, null); Btn_Save_Click(null, null);
break; break;
case Keys.F12: case Keys.F12:
cb_grade.SelectedItem = "D"; cb_grade.SelectedItem = "D (F12)";
Btn_Save_Click(null, null); Btn_Save_Click(null, null);
break; break;
} }
@@ -743,22 +743,40 @@ namespace ExcelTest
return false; return false;
} }
bool isAuthor = false; bool is1XX = false;
string[] AuthorTag = { "100a", "110a", "111a" }; string[] AuthorTag = { "100a", "110a", "111a" };
Tag = st.Take_Tag(orimarc, AuthorTag); Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag) foreach (string author in Tag)
{ {
if (author != "") if (author != "")
isAuthor = true; is1XX = true;
} }
if (!isAuthor) if (!is1XX)
{ {
MessageBox.Show("기본표목이 존재하지않습니다."); MessageBox.Show("기본표목이 존재하지않습니다.");
return false; 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; return true;
} }
@@ -1545,12 +1563,9 @@ namespace ExcelTest
TextBox tb = sender as TextBox; TextBox tb = sender as TextBox;
if (e.KeyCode == Keys.Control) if (e.KeyCode == Keys.F3)
{ {
if (e.KeyCode == Keys.T) tb.Text += "▽";
{
tb.Text += "▽";
}
} }
} }

View File

@@ -28,19 +28,19 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.etc1 = new System.Windows.Forms.RichTextBox(); this.etc1 = new System.Windows.Forms.RichTextBox();
this.etc2 = new System.Windows.Forms.RichTextBox(); this.etc2 = new System.Windows.Forms.RichTextBox();
@@ -556,14 +556,14 @@
this.List_Book.AllowUserToAddRows = false; this.List_Book.AllowUserToAddRows = false;
this.List_Book.AllowUserToDeleteRows = false; this.List_Book.AllowUserToDeleteRows = false;
this.List_Book.AllowUserToResizeColumns = false; this.List_Book.AllowUserToResizeColumns = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle37.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle37.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle37.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle37.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle37.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle37.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle37;
this.List_Book.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.List_Book.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.list_idx, this.list_idx,
this.ISBN13, this.ISBN13,
@@ -585,14 +585,14 @@
this.List_Book.MultiSelect = false; this.List_Book.MultiSelect = false;
this.List_Book.Name = "List_Book"; this.List_Book.Name = "List_Book";
this.List_Book.ReadOnly = true; this.List_Book.ReadOnly = true;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ControlDark; dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.ControlDark;
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle40.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle40.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle40;
this.List_Book.RowTemplate.Height = 23; this.List_Book.RowTemplate.Height = 23;
this.List_Book.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.List_Book.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.List_Book.Size = new System.Drawing.Size(543, 822); this.List_Book.Size = new System.Drawing.Size(543, 822);
@@ -691,9 +691,9 @@
// //
// grade // grade
// //
dataGridViewCellStyle2.Format = "N0"; dataGridViewCellStyle38.Format = "N0";
dataGridViewCellStyle2.NullValue = null; dataGridViewCellStyle38.NullValue = null;
this.grade.DefaultCellStyle = dataGridViewCellStyle2; this.grade.DefaultCellStyle = dataGridViewCellStyle38;
this.grade.HeaderText = "등급"; this.grade.HeaderText = "등급";
this.grade.Name = "grade"; this.grade.Name = "grade";
this.grade.ReadOnly = true; this.grade.ReadOnly = true;
@@ -702,8 +702,8 @@
// //
// colCheck // colCheck
// //
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle3; this.colCheck.DefaultCellStyle = dataGridViewCellStyle39;
this.colCheck.HeaderText = "V"; this.colCheck.HeaderText = "V";
this.colCheck.Name = "colCheck"; this.colCheck.Name = "colCheck";
this.colCheck.ReadOnly = true; this.colCheck.ReadOnly = true;
@@ -829,10 +829,10 @@
this.cb_grade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cb_grade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_grade.FormattingEnabled = true; this.cb_grade.FormattingEnabled = true;
this.cb_grade.Items.AddRange(new object[] { this.cb_grade.Items.AddRange(new object[] {
"A", "A (F9)",
"B", "B (F10)",
"C", "C (F11)",
"D"}); "D (F12)"});
this.cb_grade.Location = new System.Drawing.Point(1513, 93); this.cb_grade.Location = new System.Drawing.Point(1513, 93);
this.cb_grade.Name = "cb_grade"; this.cb_grade.Name = "cb_grade";
this.cb_grade.Size = new System.Drawing.Size(75, 20); this.cb_grade.Size = new System.Drawing.Size(75, 20);
@@ -1106,8 +1106,8 @@
this.GridView020.Name = "GridView020"; this.GridView020.Name = "GridView020";
this.GridView020.RowHeadersVisible = false; this.GridView020.RowHeadersVisible = false;
this.GridView020.RowHeadersWidth = 30; this.GridView020.RowHeadersWidth = 30;
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle41.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle5; this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle41;
this.GridView020.RowTemplate.Height = 23; this.GridView020.RowTemplate.Height = 23;
this.GridView020.Size = new System.Drawing.Size(408, 80); this.GridView020.Size = new System.Drawing.Size(408, 80);
this.GridView020.TabIndex = 244; this.GridView020.TabIndex = 244;
@@ -1174,8 +1174,8 @@
this.GridView505.Name = "GridView505"; this.GridView505.Name = "GridView505";
this.GridView505.RowHeadersVisible = false; this.GridView505.RowHeadersVisible = false;
this.GridView505.RowHeadersWidth = 30; this.GridView505.RowHeadersWidth = 30;
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle42.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle6; this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle42;
this.GridView505.RowTemplate.Height = 23; this.GridView505.RowTemplate.Height = 23;
this.GridView505.Size = new System.Drawing.Size(401, 71); this.GridView505.Size = new System.Drawing.Size(401, 71);
this.GridView505.TabIndex = 246; this.GridView505.TabIndex = 246;
@@ -1307,14 +1307,14 @@
this.GridView246.AllowDrop = true; this.GridView246.AllowDrop = true;
this.GridView246.AllowUserToAddRows = false; this.GridView246.AllowUserToAddRows = false;
this.GridView246.AllowUserToResizeRows = false; this.GridView246.AllowUserToResizeRows = false;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle43.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle43.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle43.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle43.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle43;
this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Text246Jisi, this.Text246Jisi,
this.Text246i, this.Text246i,
@@ -1326,8 +1326,8 @@
this.GridView246.Name = "GridView246"; this.GridView246.Name = "GridView246";
this.GridView246.RowHeadersVisible = false; this.GridView246.RowHeadersVisible = false;
this.GridView246.RowHeadersWidth = 30; this.GridView246.RowHeadersWidth = 30;
dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle44.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle8; this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle44;
this.GridView246.RowTemplate.Height = 23; this.GridView246.RowTemplate.Height = 23;
this.GridView246.Size = new System.Drawing.Size(493, 138); this.GridView246.Size = new System.Drawing.Size(493, 138);
this.GridView246.TabIndex = 250; this.GridView246.TabIndex = 250;
@@ -1477,14 +1477,14 @@
this.GridView440.AllowDrop = true; this.GridView440.AllowDrop = true;
this.GridView440.AllowUserToAddRows = false; this.GridView440.AllowUserToAddRows = false;
this.GridView440.AllowUserToResizeRows = false; this.GridView440.AllowUserToResizeRows = false;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle45.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle45.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle45.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle45.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle45.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle45.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle45;
this.GridView440.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.GridView440.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.GridView440.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.GridView440.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.text440a, this.text440a,
@@ -1497,8 +1497,8 @@
this.GridView440.Name = "GridView440"; this.GridView440.Name = "GridView440";
this.GridView440.RowHeadersVisible = false; this.GridView440.RowHeadersVisible = false;
this.GridView440.RowHeadersWidth = 30; this.GridView440.RowHeadersWidth = 30;
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle46.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle10; this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle46;
this.GridView440.RowTemplate.Height = 23; this.GridView440.RowTemplate.Height = 23;
this.GridView440.Size = new System.Drawing.Size(597, 71); this.GridView440.Size = new System.Drawing.Size(597, 71);
this.GridView440.TabIndex = 245; this.GridView440.TabIndex = 245;
@@ -1554,7 +1554,7 @@
// //
// text700a // text700a
// //
this.text700a.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.text700a.BackColor = System.Drawing.SystemColors.Info;
this.text700a.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.text700a.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.text700a.Location = new System.Drawing.Point(44, 20); this.text700a.Location = new System.Drawing.Point(44, 20);
this.text700a.Name = "text700a"; this.text700a.Name = "text700a";
@@ -1597,14 +1597,14 @@
this.GridView490.AllowDrop = true; this.GridView490.AllowDrop = true;
this.GridView490.AllowUserToAddRows = false; this.GridView490.AllowUserToAddRows = false;
this.GridView490.AllowUserToResizeRows = false; this.GridView490.AllowUserToResizeRows = false;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle47.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle47.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle47.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle47.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle47.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle47.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11; this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle47;
this.GridView490.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.GridView490.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.GridView490.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.GridView490.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.text490a, this.text490a,
@@ -1613,8 +1613,8 @@
this.GridView490.Name = "GridView490"; this.GridView490.Name = "GridView490";
this.GridView490.RowHeadersVisible = false; this.GridView490.RowHeadersVisible = false;
this.GridView490.RowHeadersWidth = 30; this.GridView490.RowHeadersWidth = 30;
dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle48.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle12; this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle48;
this.GridView490.RowTemplate.Height = 23; this.GridView490.RowTemplate.Height = 23;
this.GridView490.Size = new System.Drawing.Size(321, 71); this.GridView490.Size = new System.Drawing.Size(321, 71);
this.GridView490.TabIndex = 247; this.GridView490.TabIndex = 247;
@@ -2557,7 +2557,7 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Gray; this.BackColor = System.Drawing.Color.Gray;
this.ClientSize = new System.Drawing.Size(1759, 914); this.ClientSize = new System.Drawing.Size(1808, 908);
this.Controls.Add(this.lbl_BookList); this.Controls.Add(this.lbl_BookList);
this.Controls.Add(this.lbl_ISBN); this.Controls.Add(this.lbl_ISBN);
this.Controls.Add(this.lbl_SaveData); this.Controls.Add(this.lbl_SaveData);

View File

@@ -279,4 +279,16 @@
<metadata name="MarcValue.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="MarcValue.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="turnNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="tag.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="jisi.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MarcValue.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root> </root>

View File

@@ -28,13 +28,13 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
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();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.btn_Save = new System.Windows.Forms.Button(); this.btn_Save = new System.Windows.Forms.Button();
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
@@ -91,7 +91,6 @@
// panel1 // panel1
// //
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.panel4); this.panel1.Controls.Add(this.panel4);
this.panel1.Controls.Add(this.btn_Close); this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.btn_Select_List); this.panel1.Controls.Add(this.btn_Select_List);
@@ -102,7 +101,7 @@
// //
// btn_Save // btn_Save
// //
this.btn_Save.Location = new System.Drawing.Point(402, 5); this.btn_Save.Location = new System.Drawing.Point(3, 2);
this.btn_Save.Name = "btn_Save"; this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(86, 23); this.btn_Save.Size = new System.Drawing.Size(86, 23);
this.btn_Save.TabIndex = 10; this.btn_Save.TabIndex = 10;
@@ -113,17 +112,18 @@
// panel4 // panel4
// //
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.btn_Save);
this.panel4.Controls.Add(this.btn_Excel); this.panel4.Controls.Add(this.btn_Excel);
this.panel4.Controls.Add(this.cb_EncodingType); this.panel4.Controls.Add(this.cb_EncodingType);
this.panel4.Controls.Add(this.btn_Output); this.panel4.Controls.Add(this.btn_Output);
this.panel4.Location = new System.Drawing.Point(585, 2); this.panel4.Location = new System.Drawing.Point(402, 2);
this.panel4.Name = "panel4"; this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(274, 29); this.panel4.Size = new System.Drawing.Size(457, 29);
this.panel4.TabIndex = 9; this.panel4.TabIndex = 9;
// //
// btn_Excel // btn_Excel
// //
this.btn_Excel.Location = new System.Drawing.Point(194, 2); this.btn_Excel.Location = new System.Drawing.Point(338, 2);
this.btn_Excel.Name = "btn_Excel"; this.btn_Excel.Name = "btn_Excel";
this.btn_Excel.Size = new System.Drawing.Size(75, 23); this.btn_Excel.Size = new System.Drawing.Size(75, 23);
this.btn_Excel.TabIndex = 8; this.btn_Excel.TabIndex = 8;
@@ -135,14 +135,14 @@
// //
this.cb_EncodingType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cb_EncodingType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_EncodingType.FormattingEnabled = true; this.cb_EncodingType.FormattingEnabled = true;
this.cb_EncodingType.Location = new System.Drawing.Point(7, 3); this.cb_EncodingType.Location = new System.Drawing.Point(130, 3);
this.cb_EncodingType.Name = "cb_EncodingType"; this.cb_EncodingType.Name = "cb_EncodingType";
this.cb_EncodingType.Size = new System.Drawing.Size(81, 20); this.cb_EncodingType.Size = new System.Drawing.Size(81, 20);
this.cb_EncodingType.TabIndex = 9; this.cb_EncodingType.TabIndex = 9;
// //
// btn_Output // btn_Output
// //
this.btn_Output.Location = new System.Drawing.Point(94, 2); this.btn_Output.Location = new System.Drawing.Point(217, 2);
this.btn_Output.Name = "btn_Output"; this.btn_Output.Name = "btn_Output";
this.btn_Output.Size = new System.Drawing.Size(75, 23); this.btn_Output.Size = new System.Drawing.Size(75, 23);
this.btn_Output.TabIndex = 9; this.btn_Output.TabIndex = 9;
@@ -303,14 +303,14 @@
// //
this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
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[] {
this.idx, this.idx,
@@ -366,8 +366,8 @@
// //
// reg_num // reg_num
// //
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.reg_num.DefaultCellStyle = dataGridViewCellStyle2; this.reg_num.DefaultCellStyle = dataGridViewCellStyle9;
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";
@@ -375,8 +375,8 @@
// //
// class_code // class_code
// //
dataGridViewCellStyle3.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.class_code.DefaultCellStyle = dataGridViewCellStyle3; this.class_code.DefaultCellStyle = dataGridViewCellStyle10;
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";
@@ -384,8 +384,8 @@
// //
// author_code // author_code
// //
dataGridViewCellStyle4.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.author_code.DefaultCellStyle = dataGridViewCellStyle4; this.author_code.DefaultCellStyle = dataGridViewCellStyle11;
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";
@@ -393,8 +393,8 @@
// //
// volume // volume
// //
dataGridViewCellStyle5.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.volume.DefaultCellStyle = dataGridViewCellStyle5; this.volume.DefaultCellStyle = dataGridViewCellStyle12;
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";
@@ -403,8 +403,8 @@
// //
// copy // copy
// //
dataGridViewCellStyle6.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.copy.DefaultCellStyle = dataGridViewCellStyle6; this.copy.DefaultCellStyle = dataGridViewCellStyle13;
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";
@@ -413,8 +413,8 @@
// //
// prefix // prefix
// //
dataGridViewCellStyle7.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.prefix.DefaultCellStyle = dataGridViewCellStyle7; this.prefix.DefaultCellStyle = dataGridViewCellStyle14;
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";

View File

@@ -16,6 +16,8 @@ namespace WindowsFormsApp1.Mac
{ {
Main main; Main main;
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
string date = "";
public Marc_Plan(Main _main) public Marc_Plan(Main _main)
{ {
InitializeComponent(); InitializeComponent();
@@ -61,6 +63,7 @@ namespace WindowsFormsApp1.Mac
public void mk_Grid(string ListName, string date) public void mk_Grid(string ListName, string date)
{ {
btn_Select_List.Text = ListName; btn_Select_List.Text = ListName;
this.date = date;
dataGridView1.Rows.Clear(); dataGridView1.Rows.Clear();
string Table = "Specs_Marc"; string Table = "Specs_Marc";
@@ -274,7 +277,7 @@ namespace WindowsFormsApp1.Mac
} }
MessageBox.Show("저장되었습니다."); MessageBox.Show("저장되었습니다.");
mk_Grid(btn_Select_List.Text, this.date);
} }
private void btn_Close_Click(object sender, EventArgs e) private void btn_Close_Click(object sender, EventArgs e)
@@ -337,6 +340,17 @@ namespace WindowsFormsApp1.Mac
String_Text st = new String_Text(); String_Text st = new String_Text();
string Marc_data = string.Empty; string Marc_data = string.Empty;
string FileEncodingType = "";
switch (cb_EncodingType.SelectedIndex)
{
case 0: FileEncodingType = "ANSI"; break;
case 1: FileEncodingType = "UTF-8"; break;
case 2: FileEncodingType = "UniCode"; break;
default: break;
}
for (int a = 0; a < dataGridView1.Rows.Count; a++) for (int a = 0; a < dataGridView1.Rows.Count; a++)
{ {
if (dataGridView1.Rows[a].Cells["marc"].Value.ToString() == "" && if (dataGridView1.Rows[a].Cells["marc"].Value.ToString() == "" &&
@@ -349,7 +363,7 @@ namespace WindowsFormsApp1.Mac
string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString(); string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString();
marc = st.ConvertMarcType(marc); marc = st.ConvertMarcType(marc);
marc = st.ApplyMark(marc); marc = st.ApplyMark(marc);
marc = st.made_Ori_marc(marc); marc = st.made_Ori_marc(marc, FileEncodingType);
Marc_data += marc.Replace("₩", "\\"); Marc_data += marc.Replace("₩", "\\");
} }
@@ -362,15 +376,15 @@ namespace WindowsFormsApp1.Mac
if (saveFileDialog.ShowDialog() == DialogResult.OK) if (saveFileDialog.ShowDialog() == DialogResult.OK)
{ {
if (cb_EncodingType.SelectedIndex == 0) { if (FileEncodingType == "ANSI") {
FileName = saveFileDialog.FileName; FileName = saveFileDialog.FileName;
File.WriteAllText(FileName, Marc_data, Encoding.Default); File.WriteAllText(FileName, Marc_data, Encoding.Default);
} }
else if (cb_EncodingType.SelectedIndex == 1) { else if (FileEncodingType == "UTF-8") {
FileName = saveFileDialog.FileName; FileName = saveFileDialog.FileName;
File.WriteAllText(FileName, Marc_data, Encoding.UTF8); File.WriteAllText(FileName, Marc_data, Encoding.UTF8);
} }
else if (cb_EncodingType.SelectedIndex == 2) { else if (FileEncodingType == "UniCode") {
FileName = saveFileDialog.FileName; FileName = saveFileDialog.FileName;
File.WriteAllText(FileName, Marc_data, Encoding.Unicode); File.WriteAllText(FileName, Marc_data, Encoding.Unicode);
} }

View File

@@ -162,10 +162,10 @@ namespace UniMarc.마크
ListUser.Add(dataGridView1.Rows[row].Cells["user"].Value.ToString()); ListUser.Add(dataGridView1.Rows[row].Cells["user"].Value.ToString());
} }
Marc_Plan_Sub_SelectList_Morge morge = new Marc_Plan_Sub_SelectList_Morge(); Marc_Plan_Sub_SelectList_Morge morge = new Marc_Plan_Sub_SelectList_Morge(this);
morge.Init(ListIndex, ListName, ListDate, ListUser); morge.Init(ListIndex, ListName, ListDate, ListUser);
morge.TopMost = true; morge.TopMost = true;
morge.Show(); morge.Show(this);
} }
private void btn_Delete_Click(object sender, EventArgs e) // 삭제 (V 확인필요) private void btn_Delete_Click(object sender, EventArgs e) // 삭제 (V 확인필요)
@@ -195,6 +195,9 @@ namespace UniMarc.마크
// 목록 내 마크 제거 // 목록 내 마크 제거
cmd = db.DB_Delete_No_Limit("Specs_Marc", "compidx", compidx, search_col, search_data); cmd = db.DB_Delete_No_Limit("Specs_Marc", "compidx", compidx, search_col, search_data);
db.DB_Send_CMD_reVoid(cmd); db.DB_Send_CMD_reVoid(cmd);
MessageBox.Show("삭제되었습니다.");
btn_Search_Click(null, null);
} }
#region ButtonSub #region ButtonSub

View File

@@ -95,6 +95,7 @@ namespace UniMarc.마크
string cmd = db.More_Update("Specs_List", update_col, update_data, search_col, search_data); string cmd = db.More_Update("Specs_List", update_col, update_data, search_col, search_data);
db.DB_Send_CMD_reVoid(cmd); db.DB_Send_CMD_reVoid(cmd);
MessageBox.Show("저장완료되었습니다."); MessageBox.Show("저장완료되었습니다.");
sub.btn_Search_Click(null, null);
this.Close(); this.Close();
} }

View File

@@ -14,9 +14,11 @@ namespace UniMarc.마크
public partial class Marc_Plan_Sub_SelectList_Morge : Form public partial class Marc_Plan_Sub_SelectList_Morge : Form
{ {
Helper_DB db = new Helper_DB(); Helper_DB db = new Helper_DB();
public Marc_Plan_Sub_SelectList_Morge() Marc_Plan_Sub_SelectList sub;
public Marc_Plan_Sub_SelectList_Morge(Marc_Plan_Sub_SelectList _sub)
{ {
InitializeComponent(); InitializeComponent();
sub = _sub;
} }
public void Init(List<string> ListIdx, List<string> ListName, List<string>ListDate, List<string> ListUser) public void Init(List<string> ListIdx, List<string> ListName, List<string>ListDate, List<string> ListUser)
@@ -88,6 +90,9 @@ namespace UniMarc.마크
db.DB_Send_CMD_reVoid(D_cmd); db.DB_Send_CMD_reVoid(D_cmd);
} }
} }
MessageBox.Show("병합되었습니다.");
sub.btn_Search_Click(null, null);
} }
private void btn_Close_Click(object sender, EventArgs e) private void btn_Close_Click(object sender, EventArgs e)

View File

@@ -32,7 +32,8 @@ namespace WindowsFormsApp1.Convenience
{ {
#region #region
string[] MenuList = { string[] MenuList = {
"적용안함", "홈", "납품관리", "회계", "마크" //"적용안함", "홈", "납품관리", "회계", "마크"
"적용안함", "홈", "마크"
}; };
ComboBox[] Menu = { ComboBox[] Menu = {
@@ -41,12 +42,105 @@ namespace WindowsFormsApp1.Convenience
cb_menu11, cb_menu12 cb_menu11, cb_menu12
}; };
ComboBox[] ShortCombo = {
cb_setShort1,
cb_setShort2,
cb_setShort3,
cb_setShort4,
cb_setShort5,
cb_setShort6,
cb_setShort7,
cb_setShort8,
cb_setShort9,
cb_setShort10,
cb_setShort11,
cb_setShort12
};
for (int a = 0; a < Menu.Length; a++) for (int a = 0; a < Menu.Length; a++)
{ {
Menu[a].Items.AddRange(MenuList); Menu[a].Items.AddRange(MenuList);
} }
/// 저장된 퀵메뉴 입력 ///
string[] Home = {
"사용자 관리", "납품 / 거래처 관리", "주문처 관리", "도서정보 관리"
};
string[] Div = {
"물품등록", "목록조회", "목록집계", "주문입력", "입고작업",
"재고입력 및 조회", "반품처리"
};
string[] Acc = {
"송금내역조회", "송금등록", "매입 집계", "매입 장부", "매출 입력", "매출 입금",
"매출 조회", "매출 집계", "파트타임 관리"
};
string[] Marc = {
"마크 목록", "소장자료검색", "마크 정리", "ISBN 조회", "반입",
"반출", "복본 조사", "DLS 복본 조사", "마크 수집", "전집관리",
"검수", "저자기호", "DLS 조회 입력", "서류작성",
"마크통계", "장비관리"
};
string[] QuickButton = {
main.ShortCut1.Text, main.ShortCut2.Text, main.ShortCut3.Text, main.ShortCut4.Text, main.ShortCut5.Text,
main.ShortCut6.Text, main.ShortCut7.Text, main.ShortCut8.Text, main.ShortCut9.Text, main.ShortCut10.Text,
main.ShortCut11.Text, main.ShortCut12.Text
};
int count = 0;
foreach (string text in QuickButton)
{
// if (text.IndexOf("미지정") < 0) {
// continue;
// }
if (isContain(text, Home)) {
Menu[count].SelectedIndex = 1;
ShortCombo[count].SelectedItem = text;
}
// else if (isContain(text, Div)) {
// Menu[count].SelectedItem = 2;
// ShortCombo[count].SelectedItem = text;
// continue;
// }
//
// else if (isContain(text, Acc)) {
// Menu[count].SelectedItem = 3;
// ShortCombo[count].SelectedItem = text;
// continue;
// }
//
// else if (isContain(text, Marc)) {
// Menu[count].SelectedItem = 4;
// ShortCombo[count].SelectedItem = text;
// continue;
// }
else if (isContain(text, Marc)) {
Menu[count].SelectedIndex = 2;
ShortCombo[count].SelectedItem = text;
}
else {
Menu[count].SelectedIndex = 0;
}
count++;
}
#endregion #endregion
} }
bool isContain(string text, string[] MenuData)
{
foreach (string menu in MenuData)
{
if (menu.Contains(text))
return true;
}
return false;
}
private void btn_save_Click(object sender, EventArgs e) private void btn_save_Click(object sender, EventArgs e)
{ {
string Table = "User_ShortCut"; string Table = "User_ShortCut";
@@ -131,20 +225,25 @@ namespace WindowsFormsApp1.Convenience
"송금내역조회", "송금등록", "매입 집계", "매입 장부", "매출 입력", "매출 입금", "송금내역조회", "송금등록", "매입 집계", "매입 장부", "매출 입력", "매출 입금",
"매출 조회", "매출 집계", "파트타임 관리" "매출 조회", "매출 집계", "파트타임 관리"
}; };
string[] Marc = { string[] Marc = {
"마크 목록", "소장자료검색", "마크 정리", "복본 조사", "ISBN 조회",
"반입", "반출",
"전집관리", "저자기호", "DLS 복본 조사", "DLS 조회 입력",
"마크통계"
};
/* string[] Marc = {
"마크 목록", "소장자료검색", "마크 정리", "ISBN 조회", "반입", "마크 목록", "소장자료검색", "마크 정리", "ISBN 조회", "반입",
"반출", "복본 조사", "DLS 복본 조사", "마크 수집", "전집관리", "반출", "복본 조사", "DLS 복본 조사", "마크 수집", "전집관리",
"검수", "저자기호", "DLS 조회 입력", "서류작성", "검수", "저자기호", "DLS 조회 입력", "서류작성",
"마크통계", "장비관리" "마크통계", "장비관리"
}; };*/
int count = 0; int count = 0;
foreach (string name in comboName) foreach (string name in comboName)
{ {
if (name == combo.Name) if (name == combo.Name)
break; break;
count++;
} }
if (DetailMenu[count].Items.Count > 0) if (DetailMenu[count].Items.Count > 0)
@@ -160,13 +259,13 @@ namespace WindowsFormsApp1.Convenience
case 1: // 홈 case 1: // 홈
DetailMenu[count].Items.AddRange(Home); DetailMenu[count].Items.AddRange(Home);
break; break;
case 2: // 납품관리 //case 2: 납품관리
//DetailMenu[count].Items.AddRange(Div); // DetailMenu[count].Items.AddRange(Div);
break; // break;
case 3: // 회계 //case 3: 회계
//DetailMenu[count].Items.AddRange(Acc); // DetailMenu[count].Items.AddRange(Acc);
break; // break;
case 4: // 마크 case 2: // 4: 마크
DetailMenu[count].Items.AddRange(Marc); DetailMenu[count].Items.AddRange(Marc);
break; break;
default: default: