마크편집창 alt+(a~z), alt+enter 단축키 추가

D등급자료의 색상을 Red -> Darkviolet 변경, red는 데이터가 신규로 저장된다.
신규로 저장되는 자료의 인덱스를 저장하면서 바로 수집하도록 한다
This commit is contained in:
2026-01-25 11:19:12 +09:00
parent b7a2474ec2
commit 6c66cdb54a
12 changed files with 429 additions and 352 deletions

View File

@@ -313,6 +313,26 @@ namespace UniMarc
return cnt; return cnt;
} }
public long DB_Send_CMD_Insert_GetIdx(string cmd)
{
long lastId = -1;
try
{
using (var cn = this.CreateConnection())
{
var sqlcmd = new MySqlCommand(cmd, cn);
cn.Open();
sqlcmd.ExecuteNonQuery();
lastId = sqlcmd.LastInsertedId;
}
}
catch (Exception ex)
{
UTIL.MsgE($"데이터베이스 실행오류\n{ex.Message}");
}
return lastId;
}
/// <summary> /// <summary>
/// DBcon이 선진행되어야함. /// DBcon이 선진행되어야함.
/// SELECT * FROM [DB_Table_Name] WHERE [DB_Where_Table] LIKE \"%DB_Search_Data%\" /// SELECT * FROM [DB_Table_Name] WHERE [DB_Where_Table] LIKE \"%DB_Search_Data%\"

View File

@@ -25,6 +25,15 @@ namespace UniMarc
m = _m; m = _m;
} }
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Alt || keyData == (Keys.Alt | Keys.Menu))
{
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
private void AddMarc_Load(object sender, EventArgs e) private void AddMarc_Load(object sender, EventArgs e)
{ {
cb_SearchCol.SelectedIndex = 0; cb_SearchCol.SelectedIndex = 0;
@@ -2756,21 +2765,22 @@ namespace UniMarc
{ {
TextBox tb = sender as TextBox; TextBox tb = sender as TextBox;
if (e.Alt && e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z)
{
var letter = e.KeyCode.ToString().ToLower();
tb.InvokeInsertText("▽" + letter);
e.SuppressKeyPress = true;
return;
}
if (e.KeyCode == Keys.F3) if (e.KeyCode == Keys.F3)
{ {
tb.InvokeInsertText("▽"); tb.InvokeInsertText("▽");
//tb.Select(tb.Text.Length, 0);
} }
else if (e.KeyCode == Keys.F4) else if (e.KeyCode == Keys.F4)
{ {
tb.InvokeInsertText("△"); tb.InvokeInsertText("△");
//tb.Select(tb.Text.Length, 0);
} }
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
} }
private void etc_KeyDown(object sender, KeyEventArgs e) private void etc_KeyDown(object sender, KeyEventArgs e)
{ {

View File

@@ -44,7 +44,7 @@ namespace UniMarc
} }
private void MarcEditorControl1_BookSaved(object sender, MarcEditorControl.BookSavedEventArgs e) private void MarcEditorControl1_BookSaved(object sender, MarcEditorControl.BookSavedEventArgs e)
{ {
string tag056 = Tag056(e.DBMarc, e.griddata); string tag056 = Tag056(e.DBMarc, e.Param);
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = st.made_Ori_marc(e.DBMarc).Replace(@"\", "₩"); string orimarc = st.made_Ori_marc(e.DBMarc).Replace(@"\", "₩");
@@ -58,11 +58,11 @@ namespace UniMarc
string[] BookData = GetBookData(MarcText); string[] BookData = GetBookData(MarcText);
bool IsCoverDate = false; bool IsCoverDate = false;
if (e.griddata.SaveDate != "") if (e.Param.SaveDate != "")
{ {
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인 // 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
TimeSpan sp = CheckDate(e.griddata.SaveDate, date); TimeSpan sp = CheckDate(e.Param.SaveDate, date);
IsCoverDate = IsCoverData(sp.Days, e.griddata.User); IsCoverDate = IsCoverData(sp.Days, e.Param.User);
//if (IsCoverDate) //if (IsCoverDate)
// etc2.Text = etc2.Text.Replace(SaveData[0], date); // etc2.Text = etc2.Text.Replace(SaveData[0], date);
} }
@@ -75,12 +75,12 @@ namespace UniMarc
else else
isUpdate = false; isUpdate = false;
var grade = int.Parse(e.griddata.Grade); var grade = int.Parse(e.Param.Grade);
if (isUpdate) if (isUpdate)
UpdateMarc(Table, midx, orimarc, grade, tag056, date, IsCoverDate,e.griddata); UpdateMarc(Table, midx, orimarc, grade, tag056, date, IsCoverDate,e.Param);
else else
InsertMarc(Table, BookData, orimarc, grade, tag056, date, e.griddata); InsertMarc(Table, BookData, orimarc, grade, tag056, date, e.Param);
MessageBox.Show("저장되었습니다.", "저장"); MessageBox.Show("저장되었습니다.", "저장");
} }

View File

@@ -163,7 +163,7 @@
this.dataGridView1.RowHeadersWidth = 40; this.dataGridView1.RowHeadersWidth = 40;
this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(1638, 624); this.dataGridView1.Size = new System.Drawing.Size(1310, 478);
this.dataGridView1.TabIndex = 48; this.dataGridView1.TabIndex = 48;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
@@ -576,8 +576,8 @@
// //
// panel2 // panel2
// //
this.panel2.Controls.Add(this.bn1);
this.panel2.Controls.Add(this.dataGridView1); this.panel2.Controls.Add(this.dataGridView1);
this.panel2.Controls.Add(this.bn1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 34); this.panel2.Location = new System.Drawing.Point(0, 34);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
@@ -590,6 +590,8 @@
this.bn1.BindingSource = this.bs1; this.bn1.BindingSource = this.bs1;
this.bn1.CountItem = this.bindingNavigatorCountItem; this.bn1.CountItem = this.bindingNavigatorCountItem;
this.bn1.DeleteItem = this.bindingNavigatorDeleteItem; this.bn1.DeleteItem = this.bindingNavigatorDeleteItem;
this.bn1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem, this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem, this.bindingNavigatorMovePreviousItem,
@@ -602,14 +604,14 @@
this.bindingNavigatorSeparator2, this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem, this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem}); this.bindingNavigatorDeleteItem});
this.bn1.Location = new System.Drawing.Point(0, 0); this.bn1.Location = new System.Drawing.Point(0, 597);
this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem; this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem; this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn1.MoveNextItem = this.bindingNavigatorMoveNextItem; this.bn1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn1.MovePreviousItem = this.bindingNavigatorMovePreviousItem; this.bn1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn1.Name = "bn1"; this.bn1.Name = "bn1";
this.bn1.PositionItem = this.bindingNavigatorPositionItem; this.bn1.PositionItem = this.bindingNavigatorPositionItem;
this.bn1.Size = new System.Drawing.Size(1638, 25); this.bn1.Size = new System.Drawing.Size(1638, 27);
this.bn1.TabIndex = 49; this.bn1.TabIndex = 49;
this.bn1.Text = "bindingNavigator1"; this.bn1.Text = "bindingNavigator1";
// //
@@ -619,13 +621,13 @@
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image"))); this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem"; this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorAddNewItem.Text = "새로 추가"; this.bindingNavigatorAddNewItem.Text = "새로 추가";
// //
// bindingNavigatorCountItem // bindingNavigatorCountItem
// //
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22); this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 24);
this.bindingNavigatorCountItem.Text = "/{0}"; this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
// //
@@ -635,7 +637,7 @@
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image"))); this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem"; this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorDeleteItem.Text = "삭제"; this.bindingNavigatorDeleteItem.Text = "삭제";
// //
// bindingNavigatorMoveFirstItem // bindingNavigatorMoveFirstItem
@@ -644,7 +646,7 @@
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
// //
// bindingNavigatorMovePreviousItem // bindingNavigatorMovePreviousItem
@@ -653,13 +655,13 @@
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
// //
// bindingNavigatorSeparator // bindingNavigatorSeparator
// //
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25); this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 27);
// //
// bindingNavigatorPositionItem // bindingNavigatorPositionItem
// //
@@ -674,7 +676,7 @@
// bindingNavigatorSeparator1 // bindingNavigatorSeparator1
// //
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25); this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 27);
// //
// bindingNavigatorMoveNextItem // bindingNavigatorMoveNextItem
// //
@@ -682,7 +684,7 @@
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
// //
// bindingNavigatorMoveLastItem // bindingNavigatorMoveLastItem
@@ -691,13 +693,13 @@
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
// //
// bindingNavigatorSeparator2 // bindingNavigatorSeparator2
// //
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 27);
// //
// Mac_List // Mac_List
// //

View File

@@ -169,7 +169,7 @@
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAVdJREFUOE/Nz0tLAmEUBmB3kWRoCUVEISFUJGb1OywiKrDsIpZdkJAkDUvDQkij wQAADsEBuJFr7QAAAVdJREFUOE/Nz0tLAmEUBmB3kWRoCUVEISFUJGb1OywiKrDsIpZdkJAkDUvDQkij
UKSbVIvatKhNi9oERRAGEQXhjJdp7Hd83/eGs2jhLGQ20QtndTgP71Gp/m0KZ1XInlTjM6XG+4EG5fuK UKSbVIvatKhNi9oERRAGEQXhjJdp7Hd83/eGs2jhLGQ20QtndTgP71Gp/m0KZ1XInlTjM6XG+4EG5fuK
yaTUIN8bIMUQ0gmtcuBtX/MLPMT0yoHnuA6kuA4iruI20lAZ+DiswWuyFum4Dk+7dbiP6kHEFVDBg+tQ yaTUIN8bIMUQ0gmtcuBtX/MLPMT0yoHnuA6kuA4iruI20lAZ+DiswWuyFum4Dk+7dbiP6kHEFVDBg+tQ
My4DLbjwG3DqbcORxygHXxJakGIQRFwDEf0gwjKI4AYtzIHmHaA5Oxg/CsYPIb7YIQced+qluvTLCyIs My4DLbjwG3DqbcORxygHXxJakGIQRFwDEf0gwjKI4AYtzIHmHaA5Oxg/CsYPIb7YIQced+qluvTLCyIs
@@ -184,7 +184,7 @@
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAWtJREFUOE+1kE0ow2Ecx/9X5a2UiwtKOSCTmJBMhuQlMo3IvCUHDouEXHZwIOVC wQAADsEBuJFr7QAAAWtJREFUOE+1kE0ow2Ecx/9X5a2UiwtKOSCTmJBMhuQlMo3IvCUHDouEXHZwIOVC
DrhIDiQl5USy07zNa2tKf2laaRf84/J8xBCetab4XL/f76fn+SnKX4DrGLqrwbHDzywkWJlHdJYjLEbY DrhIDiQl5USy07zNa2tKf2laaRf84/J8xBCetab4XL/f76fn+SnKX4DrGLqrwbHDzywkWJlHdJYjLEbY
Wg8q4eYKlma+d1hbgF4TotWIaC+FuYmAktcXCksx2HrknBOHX1KbiTDngrXhW0kMdSBM2TA5Io+/wuI0 Wg8q4eYKlma+d1hbgF4TotWIaC+FuYmAktcXCksx2HrknBOHX1KbiTDngrXhW0kMdSBM2TA5Io+/wuI0
oiz5TcRwB7hPYazfLx3rDz7+gCsXNBb4v1SdgajTQ19TaOMP2NtFmPSIilSo0v1y7FHBnAdZMWi6aO51 oiz5TcRwB7hPYazfLx3rDz7+gCsXNBb4v1SdgajTQ19TaOMP2NtFmPSIilSo0v1y7FHBnAdZMWi6aO51
@@ -196,7 +196,7 @@
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+ wQAADsEBuJFr7QAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
+8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A +8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/ ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
+4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/ +4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
@@ -207,7 +207,7 @@
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33 wQAADsEBuJFr7QAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII= 9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
@@ -216,7 +216,7 @@
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5 wQAADsEBuJFr7QAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu 8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+ I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC X6Bjq5qXAAAAAElFTkSuQmCC
@@ -225,7 +225,7 @@
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe wQAADsEBuJFr7QAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/ /w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI /tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6 ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6

View File

@@ -44,6 +44,15 @@ namespace UniMarc
ml = _ml; ml = _ml;
} }
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Alt || keyData == (Keys.Alt | Keys.Menu))
{
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
string l_idx = string.Empty; string l_idx = string.Empty;
string c_idx = string.Empty; string c_idx = string.Empty;
private void Marc_Load(object sender, EventArgs e) private void Marc_Load(object sender, EventArgs e)
@@ -496,9 +505,14 @@ namespace UniMarc
string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col); string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col);
PUB.log.Add("INSERT", string.Format("{0}({1},{2}) : {3}", PUB.user.UserName, PUB.user.CompanyIdx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, Incmd)); PUB.log.Add("INSERT", string.Format("{0}({1},{2}) : {3}", PUB.user.UserName, PUB.user.CompanyIdx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, Incmd));
db.DB_Send_CMD_reVoid(Incmd); long newIdx = db.DB_Send_CMD_Insert_GetIdx(Incmd);
if (newIdx > 0)
{
Midx = newIdx.ToString();
List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value = Midx;
isNewData = true; isNewData = true;
} }
}
else else
{ {
string[] Edit_tbl = { string[] Edit_tbl = {
@@ -530,13 +544,8 @@ namespace UniMarc
List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor = SetGradeColor(grade.ToString()); List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor = SetGradeColor(grade.ToString());
if (isNewData) // (신규 추가 시 위에서 이미 Midx를 할당함)
{
string MidxQuery = string.Format("SELECT `idx` FROM Marc WHERE isbn = {0} AND `compidx` = {1};", grid_data[0], PUB.user.CompanyIdx);
PUB.log.Add("MarcInsert", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, MidxQuery));
Midx = db.DB_Send_CMD_Search(MidxQuery).Replace("|", "");
List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value = Midx;
}
string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND 'compidx' ={2};", string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND 'compidx' ={2};",
Midx, List_Book.Rows[SaveRowIdx].Cells["list_idx"].Value.ToString(), PUB.user.CompanyIdx); Midx, List_Book.Rows[SaveRowIdx].Cells["list_idx"].Value.ToString(), PUB.user.CompanyIdx);
@@ -1495,25 +1504,22 @@ namespace UniMarc
{ {
TextBox tb = sender as TextBox; TextBox tb = sender as TextBox;
//if (e.KeyCode == Keys.F3) if (e.Alt && e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z)
//{ {
// int line = tb.SelectionStart; var letter = e.KeyCode.ToString().ToLower();
// tb.Text = tb.Text.Insert(line, "▽"); tb.InvokeInsertText("▽" + letter);
// tb.SelectionStart = line + 1; e.SuppressKeyPress = true;
//} return;
}
if (e.KeyCode == Keys.F3) if (e.KeyCode == Keys.F3)
{ {
tb.InvokeInsertText("▽"); tb.InvokeInsertText("▽");
//tb.Select(tb.Text.Length, 0);
} }
else if (e.KeyCode == Keys.F4) else if (e.KeyCode == Keys.F4)
{ {
tb.InvokeInsertText("△"); tb.InvokeInsertText("△");
//tb.Select(tb.Text.Length, 0);
} }
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
} }

View File

@@ -1,6 +1,7 @@
using AR; using AR;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing; using System.Drawing;
using System.Drawing.Drawing2D; using System.Drawing.Drawing2D;
using System.IO; using System.IO;
@@ -37,9 +38,19 @@ namespace UniMarc
Skill_Search_Text search_Text = new Skill_Search_Text(); Skill_Search_Text search_Text = new Skill_Search_Text();
String_Text st = new String_Text(); String_Text st = new String_Text();
Mac_List ml; Mac_List ml;
BindingList<MarcBookItem> dataList = new BindingList<MarcBookItem>();
MacListItem pItem = null; MacListItem pItem = null;
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
// Alt 키 하나만 눌렸을 때 메뉴가 활성화되는 것을 방지
if (keyData == Keys.Alt || keyData == (Keys.Alt | Keys.Menu))
{
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
private void MarcEditorControl1_NextButton(object sender, EventArgs e) private void MarcEditorControl1_NextButton(object sender, EventArgs e)
@@ -137,6 +148,7 @@ namespace UniMarc
string[] sear_tbl = { "l_idx", "compidx" }; string[] sear_tbl = { "l_idx", "compidx" };
string[] sear_col = { item.idx, PUB.user.CompanyIdx }; string[] sear_col = { item.idx, PUB.user.CompanyIdx };
lbl_BookDate.Text = $"{item.start_date}";
lbl_BookList.Text = item.list_name; lbl_BookList.Text = item.list_name;
tbCustName.Text = item.customer_name; tbCustName.Text = item.customer_name;
lbCustIDX.Text = item.customer; lbCustIDX.Text = item.customer;
@@ -154,8 +166,8 @@ namespace UniMarc
"", "", "V", "", "" }; "", "", "V", "", "" };
mLoadCompleted = false; mLoadCompleted = false;
List<MarcBookItem> dataList = new List<MarcBookItem>();
dataList = new BindingList<MarcBookItem>();
for (int a = 0; a < db_data.Length - 1; a += 11) for (int a = 0; a < db_data.Length - 1; a += 11)
{ {
MarcBookItem bitem = new MarcBookItem(); MarcBookItem bitem = new MarcBookItem();
@@ -290,7 +302,7 @@ namespace UniMarc
return Color.Gray; return Color.Gray;
case "3": // D case "3": // D
return Color.Red; return Color.DarkViolet;
default: default:
return Color.Black; return Color.Black;
@@ -385,6 +397,7 @@ namespace UniMarc
string user = List_Book.Rows[row_idx].Cells["user"].Value?.ToString() ?? ""; string user = List_Book.Rows[row_idx].Cells["user"].Value?.ToString() ?? "";
string saveDate = List_Book.Rows[row_idx].Cells["SaveDate"].Value?.ToString() ?? ""; string saveDate = List_Book.Rows[row_idx].Cells["SaveDate"].Value?.ToString() ?? "";
string listIdx = List_Book.Rows[row_idx].Cells["list_idx"].Value?.ToString() ?? ""; // verify this column name in input_list string listIdx = List_Book.Rows[row_idx].Cells["list_idx"].Value?.ToString() ?? ""; // verify this column name in input_list
this.lbListIdx.Text = $"Row:{SaveRowIdx},List:{listIdx}";
var remark = ReadRemark(row_idx); var remark = ReadRemark(row_idx);
var p = new MacEditorParameter var p = new MacEditorParameter
{ {
@@ -435,18 +448,24 @@ namespace UniMarc
if (isSort) if (isSort)
{ {
var list = bs1.DataSource as List<MarcBookItem>; var list = bs1.DataSource as BindingList<MarcBookItem>;
if (list != null) if (list != null)
{ {
List<MarcBookItem> sorted;
if (combo == 0) if (combo == 0)
{ {
list.Sort((x, y) => string.Compare(x.Grade, y.Grade)); sorted = list.OrderBy(x => x.Grade).ToList();
} }
else else
{ {
list.Sort((x, y) => string.Compare(x.ISBN13, y.ISBN13)); sorted = list.OrderBy(x => x.ISBN13).ToList();
} }
bs1.ResetBindings(false);
list.RaiseListChangedEvents = false;
list.Clear();
foreach (var item in sorted) list.Add(item);
list.RaiseListChangedEvents = true;
list.ResetBindings();
} }
} }
else else
@@ -543,25 +562,19 @@ namespace UniMarc
private void MarcEditorControl_BookSaved(object sender, MarcEditorControl.BookSavedEventArgs e) private void MarcEditorControl_BookSaved(object sender, MarcEditorControl.BookSavedEventArgs e)
{ {
/* [기존 방식: UI 직접 수정 로직 주석 처리]
string table_name = "Marc"; string table_name = "Marc";
//string[] grid_data = { //데이터인덱스를 찾아서 값을 업데이트한다.
// e.griddata[0],// List_Book.Rows[SaveRowIdx].Cells["ISBN13"].Value.ToString(), var item = this.dataList.Where(t => t.ListIdx == e.Param.ListIdx).FirstOrDefault();
// e.griddata[1],//List_Book.Rows[SaveRowIdx].Cells["book_name"].Value.ToString(),
// e.griddata[2],//List_Book.Rows[SaveRowIdx].Cells["author"].Value.ToString(),
// e.griddata[3],//List_Book.Rows[SaveRowIdx].Cells["book_comp"].Value.ToString(),
// e.griddata[4],//List_Book.Rows[SaveRowIdx].Cells["pay"].Value.ToString(),
// e.griddata[5]//List_Book.Rows[SaveRowIdx].Cells["url"].Value.ToString()
//};
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = e.DBMarc;// st.made_Ori_marc(richTextBox1).Replace(@"\", "₩"); string orimarc = e.DBMarc;// st.made_Ori_marc(richTextBox1).Replace(@"\", "₩");
string Midx = List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value.ToString(); string Midx = List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value.ToString();
string SaveDate = List_Book.Rows[SaveRowIdx].Cells["SaveDate"].Value.ToString(); string SaveDate = List_Book.Rows[SaveRowIdx].Cells["SaveDate"].Value.ToString();
string SaveUser = List_Book.Rows[SaveRowIdx].Cells["user"].Value.ToString(); string SaveUser = List_Book.Rows[SaveRowIdx].Cells["user"].Value.ToString();
bool IsCoverDate = false; bool IsCoverDate = false;
if (SaveDate != "") if (SaveDate != "")
{ {
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인 // 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
@@ -582,16 +595,21 @@ namespace UniMarc
"grade", "marc_chk", "user", "division", "008tag", "grade", "marc_chk", "user", "division", "008tag",
"date", "compidx" }; "date", "compidx" };
string[] Insert_col = { string[] Insert_col = {
e.griddata.ISBN13, e.griddata.BookName, e.griddata.Author, e.griddata.Publisher, e.Param.ISBN13, e.Param.BookName, e.Param.Author, e.Param.Publisher,
e.griddata.Price, orimarc, e.griddata.Remark1, e.griddata.Remark2, e.griddata.URL, e.Param.Price, orimarc, e.Param.Remark1, e.Param.Remark2, e.Param.URL,
e.griddata.Grade, "1", mUserName, e.griddata.tag056, e.griddata.text008, e.Param.Grade, "1", mUserName, e.Param.tag056, e.Param.text008,
date, mCompidx }; date, mCompidx };
string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col); string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col);
PUB.log.Add("INSERT", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, Incmd)); PUB.log.Add("INSERT", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor, Incmd));
db.DB_Send_CMD_reVoid(Incmd); long newIdx = db.DB_Send_CMD_Insert_GetIdx(Incmd);
if (newIdx > 0)
{
Midx = newIdx.ToString();
List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value = Midx;
isNewData = true; isNewData = true;
} }
}
else else
{ {
string[] Edit_tbl = { string[] Edit_tbl = {
@@ -599,12 +617,12 @@ namespace UniMarc
"비고2", "url", "division", "008tag", "date", "비고2", "url", "division", "008tag", "date",
"user", "grade" }; "user", "grade" };
string[] Edit_col = { string[] Edit_col = {
mCompidx, orimarc, "1", mOldMarc , "0", e.griddata.Remark1, mCompidx, orimarc, "1", mOldMarc , "0", e.Param.Remark1,
e.griddata.Remark2, e.griddata.URL, e.griddata.tag056,e.griddata.text008, date, e.Param.Remark2, e.Param.URL, e.Param.tag056,e.Param.text008, date,
mUserName, e.griddata.Grade }; mUserName, e.Param.Grade };
string[] Sear_tbl = { "idx", "compidx" }; string[] Sear_tbl = { "idx", "compidx" };
string[] Sear_col = { Midx, mCompidx }; string[] Sear_col = { Midx, mCompidx };
if (e.griddata.ISBN13 == null || e.griddata.ISBN13 == "") if (e.Param.ISBN13 == null || e.Param.ISBN13 == "")
{ {
MessageBox.Show("ISBN 데이터가 없습니다."); MessageBox.Show("ISBN 데이터가 없습니다.");
return; return;
@@ -616,30 +634,80 @@ namespace UniMarc
isNewData = false; isNewData = false;
} }
List_Book.Rows[SaveRowIdx].Cells["grade"].Value = e.griddata.Grade; List_Book.Rows[SaveRowIdx].Cells["grade"].Value = e.Param.Grade;
List_Book.Rows[SaveRowIdx].Cells["SaveDate"].Value = e.SaveDate; List_Book.Rows[SaveRowIdx].Cells["SaveDate"].Value = e.SaveDate;
List_Book.Rows[SaveRowIdx].Cells["user"].Value = mUserName; List_Book.Rows[SaveRowIdx].Cells["user"].Value = mUserName;
List_Book.Rows[SaveRowIdx].Cells["db_marc"].Value = e.DBMarc; List_Book.Rows[SaveRowIdx].Cells["db_marc"].Value = e.DBMarc;
List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor = SetGradeColor(grade.ToString()); List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor = SetGradeColor(grade.ToString());
var item = List_Book.Rows[SaveRowIdx].DataBoundItem as MarcBookItem; var item = List_Book.Rows[SaveRowIdx].DataBoundItem as MarcBookItem;
if (item != null) item.ForeColor = List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor; if (item != null) item.ForeColor = List_Book.Rows[SaveRowIdx].DefaultCellStyle.ForeColor;
if (isNewData) // (신규 추가 시 위에서 이미 Midx를 할당함)
{
string MidxQuery = string.Format("SELECT `idx` FROM Marc WHERE isbn = {0} AND `compidx` = {1};", e.griddata.ISBN13, mCompidx);
PUB.log.Add("MarcInsert", string.Format("{0}({1}) : {2}", mUserName, mCompidx, MidxQuery));
Midx = db.DB_Send_CMD_Search(MidxQuery).Replace("|", "");
List_Book.Rows[SaveRowIdx].Cells["marc_idx"].Value = Midx;
}
string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND 'compidx' ={2};", string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND 'compidx' ={2};",
Midx, List_Book.Rows[SaveRowIdx].Cells["list_idx"].Value.ToString(), mCompidx); Midx, List_Book.Rows[SaveRowIdx].Cells["list_idx"].Value.ToString(), mCompidx);
PUB.log.Add("MarcUpdate", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpdateListIndex)); PUB.log.Add("MarcUpdate", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpdateListIndex));
db.DB_Send_CMD_reVoid(UpdateListIndex); db.DB_Send_CMD_reVoid(UpdateListIndex);
MessageBox.Show("저장되었습니다!"); MessageBox.Show("저장되었습니다!");
*/
// [신규 방식: 데이터 객체(Item) 중심 로직]
var item = this.dataList.Where(t => t.ListIdx == e.Param.ListIdx).FirstOrDefault();
if (item == null) return;
string table_name = "Marc";
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = e.DBMarc;
string Midx = item.MarcIdx;
// 1. DB 작업 (저장 전략 결정: Foreground 색상 기준)
if (item.ForeColor == Color.Orange || item.ForeColor == Color.Red)
{
string[] Insert_tbl = { "ISBN", "서명", "저자", "출판사", "가격", "marc", "비고1", "비고2", "url", "grade", "marc_chk", "user", "division", "008tag", "date", "compidx" };
string[] Insert_col = { e.Param.ISBN13, e.Param.BookName, e.Param.Author, e.Param.Publisher, e.Param.Price, orimarc, e.Param.Remark1, e.Param.Remark2, e.Param.URL, e.Param.Grade, "1", mUserName, e.Param.tag056, e.Param.text008, date, mCompidx };
string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col);
PUB.log.Add("INSERT", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, item.ForeColor, Incmd));
long newIdx = db.DB_Send_CMD_Insert_GetIdx(Incmd);
if (newIdx > 0)
{
Midx = newIdx.ToString();
item.MarcIdx = Midx;
}
}
else
{
string[] Edit_tbl = { "compidx", "marc", "marc_chk", "marc1", "marc_chk1", "비고1", "비고2", "url", "division", "008tag", "date", "user", "grade" };
string[] Edit_col = { mCompidx, orimarc, "1", mOldMarc , "0", e.Param.Remark1, e.Param.Remark2, e.Param.URL, e.Param.tag056,e.Param.text008, date, mUserName, e.Param.Grade };
string[] Sear_tbl = { "idx", "compidx" };
string[] Sear_col = { Midx, mCompidx };
if (string.IsNullOrEmpty(e.Param.ISBN13)) { MessageBox.Show("ISBN 데이터가 없습니다."); return; }
string U_cmd = db.More_Update(table_name, Edit_tbl, Edit_col, Sear_tbl, Sear_col);
PUB.log.Add("Update", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, item.ForeColor, U_cmd.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(U_cmd);
}
// 2. 객체 데이터 업데이트 및 시각적 상태 계산
item.Grade = e.Param.Grade;
item.SaveDate = date;
item.User = mUserName;
item.DbMarc = e.DBMarc;
item.ForeColor = SetGradeColor(item.Grade);
item.BackColor = GetSaveDateColor(date);
// 3. 목록 인덱스 연동 업데이트 (Obj_List_Book)
string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND `compidx` ={2};", Midx, item.ListIdx, mCompidx);
db.DB_Send_CMD_reVoid(UpdateListIndex);
// 4. BindingSource 갱신으로 UI 자동 업데이트
bs1.ResetCurrentItem();
MessageBox.Show("저장되었습니다!");
} }
#region Save_Click_Sub #region Save_Click_Sub
@@ -801,25 +869,22 @@ namespace UniMarc
{ {
TextBox tb = sender as TextBox; TextBox tb = sender as TextBox;
//if (e.KeyCode == Keys.F3) if (e.Alt && e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z)
//{ {
// int line = tb.SelectionStart; var letter = e.KeyCode.ToString().ToLower();
// tb.Text = tb.Text.Insert(line, "▽"); tb.InvokeInsertText("▽" + letter);
// tb.SelectionStart = line + 1; e.SuppressKeyPress = true;
//} return;
}
if (e.KeyCode == Keys.F3) if (e.KeyCode == Keys.F3)
{ {
tb.InvokeInsertText("▽"); tb.InvokeInsertText("▽");
//tb.Select(tb.Text.Length, 0);
} }
else if (e.KeyCode == Keys.F4) else if (e.KeyCode == Keys.F4)
{ {
tb.InvokeInsertText("△"); tb.InvokeInsertText("△");
//tb.Select(tb.Text.Length, 0);
} }
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
} }
@@ -925,7 +990,7 @@ namespace UniMarc
if (int.TryParse(lbCustIDX.Text, out int custidx) && custidx >= 0) if (int.TryParse(lbCustIDX.Text, out int custidx) && custidx >= 0)
{ {
var sql = $"update Obj_List set customer={custidx} where idx = {pItem.idx} and comp_num={PUB.user.CompanyIdx}"; var sql = $"update Obj_List set customer={custidx} where idx = {pItem.idx} and comp_num={PUB.user.CompanyIdx}";
var cnt = Helper_DB.ExcuteNonQuery(sql,out string msg); var cnt = Helper_DB.ExcuteNonQuery(sql, out string msg);
if (cnt != 1) if (cnt != 1)
UTIL.MsgE($"데이터 저장시 오류가 발생했습니다. 영향을 받은 행 수 = {cnt},메세지={msg}"); UTIL.MsgE($"데이터 저장시 오류가 발생했습니다. 영향을 받은 행 수 = {cnt},메세지={msg}");
} }

View File

@@ -39,10 +39,10 @@
System.Windows.Forms.Label label25; System.Windows.Forms.Label label25;
System.Windows.Forms.Label label26; System.Windows.Forms.Label label26;
System.Windows.Forms.Label label27; System.Windows.Forms.Label label27;
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc2)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc2));
this.List_Book = new System.Windows.Forms.DataGridView(); this.List_Book = new System.Windows.Forms.DataGridView();
this.list_idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.list_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -73,19 +73,15 @@
this.tbCustName = new System.Windows.Forms.Button(); this.tbCustName = new System.Windows.Forms.Button();
this.lbCustIDX = new System.Windows.Forms.Label(); this.lbCustIDX = new System.Windows.Forms.Label();
this.btCopy = new System.Windows.Forms.Button(); this.btCopy = new System.Windows.Forms.Button();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.lbl_BookList = new System.Windows.Forms.ToolStripStatusLabel();
this.btClose = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.marcEditorControl1 = new UniMarc.MarcEditorControl();
this.panel3 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
this.lbl_BookList = new System.Windows.Forms.Label();
this.lbl_BookDate = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.bn1 = new System.Windows.Forms.BindingNavigator(this.components); this.bn1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs1 = new System.Windows.Forms.BindingSource(this.components); this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
@@ -93,8 +89,10 @@
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.marcEditorControl1 = new UniMarc.MarcEditorControl();
this.lblBookDate = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.lbListIdx = new System.Windows.Forms.ToolStripLabel();
label31 = new System.Windows.Forms.Label(); label31 = new System.Windows.Forms.Label();
label30 = new System.Windows.Forms.Label(); label30 = new System.Windows.Forms.Label();
label33 = new System.Windows.Forms.Label(); label33 = new System.Windows.Forms.Label();
@@ -107,7 +105,6 @@
label27 = new System.Windows.Forms.Label(); label27 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.List_Book)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.List_Book)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
this.panel4.SuspendLayout(); this.panel4.SuspendLayout();
@@ -193,14 +190,14 @@
this.List_Book.AllowUserToDeleteRows = false; this.List_Book.AllowUserToDeleteRows = false;
this.List_Book.BackgroundColor = System.Drawing.Color.SkyBlue; this.List_Book.BackgroundColor = System.Drawing.Color.SkyBlue;
this.List_Book.BorderStyle = System.Windows.Forms.BorderStyle.None; this.List_Book.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.List_Book.ColumnHeadersHeight = 29; this.List_Book.ColumnHeadersHeight = 29;
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,
@@ -220,22 +217,22 @@
this.SaveDate}); this.SaveDate});
this.List_Book.Dock = System.Windows.Forms.DockStyle.Fill; this.List_Book.Dock = System.Windows.Forms.DockStyle.Fill;
this.List_Book.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.List_Book.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.List_Book.Location = new System.Drawing.Point(0, 68); this.List_Book.Location = new System.Drawing.Point(0, 103);
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;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.ControlDark; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ControlDark;
dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle8; this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.List_Book.RowHeadersWidth = 51; this.List_Book.RowHeadersWidth = 51;
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(555, 541); this.List_Book.Size = new System.Drawing.Size(555, 528);
this.List_Book.TabIndex = 217; this.List_Book.TabIndex = 217;
this.List_Book.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.List_Book_RowPostPaint); this.List_Book.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.List_Book_RowPostPaint);
this.List_Book.SelectionChanged += new System.EventHandler(this.List_Book_SelectionChanged); this.List_Book.SelectionChanged += new System.EventHandler(this.List_Book_SelectionChanged);
@@ -357,9 +354,9 @@
// grade // grade
// //
this.grade.DataPropertyName = "Grade"; this.grade.DataPropertyName = "Grade";
dataGridViewCellStyle6.Format = "N0"; dataGridViewCellStyle2.Format = "N0";
dataGridViewCellStyle6.NullValue = null; dataGridViewCellStyle2.NullValue = null;
this.grade.DefaultCellStyle = dataGridViewCellStyle6; this.grade.DefaultCellStyle = dataGridViewCellStyle2;
this.grade.HeaderText = "등급"; this.grade.HeaderText = "등급";
this.grade.MinimumWidth = 6; this.grade.MinimumWidth = 6;
this.grade.Name = "grade"; this.grade.Name = "grade";
@@ -370,8 +367,8 @@
// colCheck // colCheck
// //
this.colCheck.DataPropertyName = "ColCheck"; this.colCheck.DataPropertyName = "ColCheck";
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle7; this.colCheck.DefaultCellStyle = dataGridViewCellStyle3;
this.colCheck.HeaderText = "V"; this.colCheck.HeaderText = "V";
this.colCheck.MinimumWidth = 6; this.colCheck.MinimumWidth = 6;
this.colCheck.Name = "colCheck"; this.colCheck.Name = "colCheck";
@@ -447,7 +444,7 @@
this.panel1.Controls.Add(this.rb_Filter); this.panel1.Controls.Add(this.rb_Filter);
this.panel1.Controls.Add(this.comboBox8); this.panel1.Controls.Add(this.comboBox8);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 33); this.panel1.Location = new System.Drawing.Point(0, 68);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(555, 35); this.panel1.Size = new System.Drawing.Size(555, 35);
this.panel1.TabIndex = 226; this.panel1.TabIndex = 226;
@@ -500,7 +497,7 @@
this.checkBox3.BackColor = System.Drawing.Color.White; this.checkBox3.BackColor = System.Drawing.Color.White;
this.checkBox3.Checked = true; this.checkBox3.Checked = true;
this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox3.Location = new System.Drawing.Point(509, 74); this.checkBox3.Location = new System.Drawing.Point(511, 109);
this.checkBox3.Name = "checkBox3"; this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(15, 14); this.checkBox3.Size = new System.Drawing.Size(15, 14);
this.checkBox3.TabIndex = 227; this.checkBox3.TabIndex = 227;
@@ -510,11 +507,10 @@
// tbCustName // tbCustName
// //
this.tbCustName.BackColor = System.Drawing.Color.LightGray; this.tbCustName.BackColor = System.Drawing.Color.LightGray;
this.tbCustName.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbCustName.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold); this.tbCustName.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.tbCustName.Location = new System.Drawing.Point(103, 3); this.tbCustName.Location = new System.Drawing.Point(163, 35);
this.tbCustName.Name = "tbCustName"; this.tbCustName.Name = "tbCustName";
this.tbCustName.Size = new System.Drawing.Size(301, 27); this.tbCustName.Size = new System.Drawing.Size(314, 27);
this.tbCustName.TabIndex = 33; this.tbCustName.TabIndex = 33;
this.tbCustName.Text = " "; this.tbCustName.Text = " ";
this.tbCustName.UseVisualStyleBackColor = false; this.tbCustName.UseVisualStyleBackColor = false;
@@ -523,12 +519,10 @@
// lbCustIDX // lbCustIDX
// //
this.lbCustIDX.BackColor = System.Drawing.Color.LightGray; this.lbCustIDX.BackColor = System.Drawing.Color.LightGray;
this.lbCustIDX.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbCustIDX.Dock = System.Windows.Forms.DockStyle.Right;
this.lbCustIDX.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold); this.lbCustIDX.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.lbCustIDX.Location = new System.Drawing.Point(404, 3); this.lbCustIDX.Location = new System.Drawing.Point(483, 35);
this.lbCustIDX.Name = "lbCustIDX"; this.lbCustIDX.Name = "lbCustIDX";
this.lbCustIDX.Size = new System.Drawing.Size(60, 27); this.lbCustIDX.Size = new System.Drawing.Size(63, 27);
this.lbCustIDX.TabIndex = 319; this.lbCustIDX.TabIndex = 319;
this.lbCustIDX.Text = " "; this.lbCustIDX.Text = " ";
this.lbCustIDX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lbCustIDX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -544,38 +538,6 @@
this.btCopy.UseVisualStyleBackColor = true; this.btCopy.UseVisualStyleBackColor = true;
this.btCopy.Click += new System.EventHandler(this.button1_Click); this.btCopy.Click += new System.EventHandler(this.button1_Click);
// //
// statusStrip1
//
this.statusStrip1.BackColor = System.Drawing.SystemColors.Control;
this.statusStrip1.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lblBookDate,
this.lbl_BookList});
this.statusStrip1.Location = new System.Drawing.Point(0, 634);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 12, 0);
this.statusStrip1.Size = new System.Drawing.Size(1638, 24);
this.statusStrip1.TabIndex = 322;
this.statusStrip1.Text = "statusStrip1";
//
// lbl_BookList
//
this.lbl_BookList.Name = "lbl_BookList";
this.lbl_BookList.Size = new System.Drawing.Size(119, 19);
this.lbl_BookList.Text = "{booklist}";
//
// btClose
//
this.btClose.Dock = System.Windows.Forms.DockStyle.Right;
this.btClose.Location = new System.Drawing.Point(464, 3);
this.btClose.Name = "btClose";
this.btClose.Size = new System.Drawing.Size(88, 27);
this.btClose.TabIndex = 324;
this.btClose.Text = "닫 기";
this.btClose.UseVisualStyleBackColor = true;
this.btClose.Click += new System.EventHandler(this.btClose_Click);
//
// panel2 // panel2
// //
this.panel2.Controls.Add(this.marcEditorControl1); this.panel2.Controls.Add(this.marcEditorControl1);
@@ -583,19 +545,9 @@
this.panel2.Location = new System.Drawing.Point(555, 0); this.panel2.Location = new System.Drawing.Point(555, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1083, 634); this.panel2.Size = new System.Drawing.Size(1083, 658);
this.panel2.TabIndex = 325; this.panel2.TabIndex = 325;
// //
// marcEditorControl1
//
this.marcEditorControl1.BackColor = System.Drawing.Color.Gray;
this.marcEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(0, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(1083, 634);
this.marcEditorControl1.TabIndex = 0;
//
// panel3 // panel3
// //
this.panel3.BackColor = System.Drawing.Color.White; this.panel3.BackColor = System.Drawing.Color.White;
@@ -608,28 +560,48 @@
this.panel3.Location = new System.Drawing.Point(0, 0); this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.panel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel3.Name = "panel3"; this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(555, 634); this.panel3.Size = new System.Drawing.Size(555, 658);
this.panel3.TabIndex = 325; this.panel3.TabIndex = 325;
// //
// panel4 // panel4
// //
this.panel4.Controls.Add(this.lbl_BookList);
this.panel4.Controls.Add(this.lbl_BookDate);
this.panel4.Controls.Add(this.tbCustName); this.panel4.Controls.Add(this.tbCustName);
this.panel4.Controls.Add(this.lbCustIDX); this.panel4.Controls.Add(this.lbCustIDX);
this.panel4.Controls.Add(this.btClose);
this.panel4.Controls.Add(this.button1); this.panel4.Controls.Add(this.button1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Top; this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 0); this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Name = "panel4"; this.panel4.Name = "panel4";
this.panel4.Padding = new System.Windows.Forms.Padding(3); this.panel4.Padding = new System.Windows.Forms.Padding(3);
this.panel4.Size = new System.Drawing.Size(555, 33); this.panel4.Size = new System.Drawing.Size(555, 68);
this.panel4.TabIndex = 327; this.panel4.TabIndex = 327;
// //
// lbl_BookList
//
this.lbl_BookList.BackColor = System.Drawing.Color.LightGray;
this.lbl_BookList.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.lbl_BookList.Location = new System.Drawing.Point(163, 6);
this.lbl_BookList.Name = "lbl_BookList";
this.lbl_BookList.Size = new System.Drawing.Size(383, 27);
this.lbl_BookList.TabIndex = 326;
this.lbl_BookList.Text = " ";
//
// lbl_BookDate
//
this.lbl_BookDate.BackColor = System.Drawing.Color.LightGray;
this.lbl_BookDate.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold);
this.lbl_BookDate.Location = new System.Drawing.Point(6, 6);
this.lbl_BookDate.Name = "lbl_BookDate";
this.lbl_BookDate.Size = new System.Drawing.Size(151, 27);
this.lbl_BookDate.TabIndex = 325;
this.lbl_BookDate.Text = " ";
//
// button1 // button1
// //
this.button1.Dock = System.Windows.Forms.DockStyle.Left; this.button1.Location = new System.Drawing.Point(6, 35);
this.button1.Location = new System.Drawing.Point(3, 3);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(100, 27); this.button1.Size = new System.Drawing.Size(151, 27);
this.button1.TabIndex = 324; this.button1.TabIndex = 324;
this.button1.Text = "다시불러오기"; this.button1.Text = "다시불러오기";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
@@ -637,11 +609,12 @@
// //
// bn1 // bn1
// //
this.bn1.AddNewItem = this.bindingNavigatorAddNewItem; this.bn1.AddNewItem = null;
this.bn1.BindingSource = this.bs1; this.bn1.BindingSource = this.bs1;
this.bn1.CountItem = this.bindingNavigatorCountItem; this.bn1.CountItem = this.bindingNavigatorCountItem;
this.bn1.DeleteItem = this.bindingNavigatorDeleteItem; this.bn1.DeleteItem = null;
this.bn1.Dock = System.Windows.Forms.DockStyle.Bottom; this.bn1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem, this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem, this.bindingNavigatorMovePreviousItem,
@@ -651,52 +624,34 @@
this.bindingNavigatorSeparator1, this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem, this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem, this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2, this.toolStripSeparator1,
this.bindingNavigatorAddNewItem, this.toolStripLabel1,
this.bindingNavigatorDeleteItem}); this.lbListIdx});
this.bn1.Location = new System.Drawing.Point(0, 609); this.bn1.Location = new System.Drawing.Point(0, 631);
this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem; this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem; this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn1.MoveNextItem = this.bindingNavigatorMoveNextItem; this.bn1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn1.MovePreviousItem = this.bindingNavigatorMovePreviousItem; this.bn1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn1.Name = "bn1"; this.bn1.Name = "bn1";
this.bn1.PositionItem = this.bindingNavigatorPositionItem; this.bn1.PositionItem = this.bindingNavigatorPositionItem;
this.bn1.Size = new System.Drawing.Size(555, 25); this.bn1.Size = new System.Drawing.Size(555, 27);
this.bn1.TabIndex = 326; this.bn1.TabIndex = 326;
this.bn1.Text = "bindingNavigator1"; this.bn1.Text = "bindingNavigator1";
// //
// bindingNavigatorAddNewItem
//
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorAddNewItem.Text = "새로 추가";
//
// bindingNavigatorCountItem // bindingNavigatorCountItem
// //
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22); this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 24);
this.bindingNavigatorCountItem.Text = "/{0}"; this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수"; this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
// //
// bindingNavigatorDeleteItem
//
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorDeleteItem.Text = "삭제";
//
// bindingNavigatorMoveFirstItem // bindingNavigatorMoveFirstItem
// //
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem"; this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동"; this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
// //
// bindingNavigatorMovePreviousItem // bindingNavigatorMovePreviousItem
@@ -705,13 +660,13 @@
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem"; this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동"; this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
// //
// bindingNavigatorSeparator // bindingNavigatorSeparator
// //
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator"; this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25); this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 27);
// //
// bindingNavigatorPositionItem // bindingNavigatorPositionItem
// //
@@ -726,7 +681,7 @@
// bindingNavigatorSeparator1 // bindingNavigatorSeparator1
// //
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1"; this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25); this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 27);
// //
// bindingNavigatorMoveNextItem // bindingNavigatorMoveNextItem
// //
@@ -734,7 +689,7 @@
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem"; this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동"; this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
// //
// bindingNavigatorMoveLastItem // bindingNavigatorMoveLastItem
@@ -743,19 +698,36 @@
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem"; this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true; this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동"; this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
// //
// bindingNavigatorSeparator2 // marcEditorControl1
// //
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; this.marcEditorControl1.BackColor = System.Drawing.Color.Gray;
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); this.marcEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(0, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(1083, 658);
this.marcEditorControl1.TabIndex = 0;
// //
// lblBookDate // toolStripSeparator1
// //
this.lblBookDate.Name = "lblBookDate"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.lblBookDate.Size = new System.Drawing.Size(119, 19); this.toolStripSeparator1.Size = new System.Drawing.Size(6, 27);
this.lblBookDate.Text = "{bookdate}"; //
// toolStripLabel1
//
this.toolStripLabel1.Name = "toolStripLabel1";
this.toolStripLabel1.Size = new System.Drawing.Size(25, 24);
this.toolStripLabel1.Text = "List";
//
// lbListIdx
//
this.lbListIdx.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold);
this.lbListIdx.Name = "lbListIdx";
this.lbListIdx.Size = new System.Drawing.Size(14, 24);
this.lbListIdx.Text = "0";
// //
// Marc2 // Marc2
// //
@@ -765,7 +737,6 @@
this.ClientSize = new System.Drawing.Size(1638, 658); this.ClientSize = new System.Drawing.Size(1638, 658);
this.Controls.Add(this.panel2); this.Controls.Add(this.panel2);
this.Controls.Add(this.panel3); this.Controls.Add(this.panel3);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.btCopy); this.Controls.Add(this.btCopy);
this.KeyPreview = true; this.KeyPreview = true;
this.Name = "Marc2"; this.Name = "Marc2";
@@ -775,8 +746,6 @@
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Marc_KeyDown); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Marc_KeyDown);
((System.ComponentModel.ISupportInitialize)(this.List_Book)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.List_Book)).EndInit();
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false); this.panel3.ResumeLayout(false);
this.panel3.PerformLayout(); this.panel3.PerformLayout();
@@ -786,7 +755,6 @@
this.bn1.PerformLayout(); this.bn1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
@@ -824,18 +792,13 @@
public System.Windows.Forms.Button tbCustName; public System.Windows.Forms.Button tbCustName;
public System.Windows.Forms.Label lbCustIDX; public System.Windows.Forms.Label lbCustIDX;
private System.Windows.Forms.Button btCopy; private System.Windows.Forms.Button btCopy;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel lbl_BookList;
private System.Windows.Forms.Button btClose;
private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
public MarcEditorControl marcEditorControl1; public MarcEditorControl marcEditorControl1;
private System.Windows.Forms.BindingSource bs1; private System.Windows.Forms.BindingSource bs1;
private System.Windows.Forms.BindingNavigator bn1; private System.Windows.Forms.BindingNavigator bn1;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem; private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
@@ -843,8 +806,11 @@
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.Panel panel4; private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.ToolStripStatusLabel lblBookDate; public System.Windows.Forms.Label lbl_BookList;
public System.Windows.Forms.Label lbl_BookDate;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripLabel toolStripLabel1;
private System.Windows.Forms.ToolStripLabel lbListIdx;
} }
} }

View File

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

View File

@@ -28,14 +28,14 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
this.label31 = new System.Windows.Forms.Label(); this.label31 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label(); this.label30 = new System.Windows.Forms.Label();
this.label33 = new System.Windows.Forms.Label(); this.label33 = new System.Windows.Forms.Label();
@@ -85,6 +85,7 @@
this.btn_FillBlank = new System.Windows.Forms.Button(); this.btn_FillBlank = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.label7 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
this.Btn_interlock = new System.Windows.Forms.Button(); this.Btn_interlock = new System.Windows.Forms.Button();
@@ -360,9 +361,9 @@
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.richTextBox1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.richTextBox1.Location = new System.Drawing.Point(3, 3); this.richTextBox1.Location = new System.Drawing.Point(3, 30);
this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(935, 779); this.richTextBox1.Size = new System.Drawing.Size(935, 752);
this.richTextBox1.TabIndex = 32; this.richTextBox1.TabIndex = 32;
this.richTextBox1.Text = ""; this.richTextBox1.Text = "";
this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown); this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
@@ -768,6 +769,7 @@
// //
this.tabPage1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tabPage1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.tabPage1.Controls.Add(this.richTextBox1); this.tabPage1.Controls.Add(this.richTextBox1);
this.tabPage1.Controls.Add(this.label7);
this.tabPage1.Location = new System.Drawing.Point(4, 23); this.tabPage1.Location = new System.Drawing.Point(4, 23);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
@@ -775,6 +777,18 @@
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "마크 편집"; this.tabPage1.Text = "마크 편집";
// //
// label7
//
this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.label7.Dock = System.Windows.Forms.DockStyle.Top;
this.label7.Location = new System.Drawing.Point(3, 3);
this.label7.Name = "label7";
this.label7.Padding = new System.Windows.Forms.Padding(3, 0, 3, 0);
this.label7.Size = new System.Drawing.Size(935, 27);
this.label7.TabIndex = 33;
this.label7.Text = "Alt+(a~z) : ▼a~z , Alt+Enter : ▲";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// tabPage2 // tabPage2
// //
this.tabPage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.tabPage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
@@ -877,8 +891,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;
dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle9; this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle25;
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 = 0; this.GridView020.TabIndex = 0;
@@ -952,8 +966,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;
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle26.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle10; this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle26;
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 = 2; this.GridView505.TabIndex = 2;
@@ -1092,14 +1106,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;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle27.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11; this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle27;
this.GridView246.ColumnHeadersHeight = 29; this.GridView246.ColumnHeadersHeight = 29;
this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Text246Jisi, this.Text246Jisi,
@@ -1112,8 +1126,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;
dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle28.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle12; this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle28;
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 = 31; this.GridView246.TabIndex = 31;
@@ -1272,14 +1286,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;
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle13.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle29.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle29;
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,
@@ -1292,8 +1306,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;
dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle14; this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle30;
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 = 18; this.GridView440.TabIndex = 18;
@@ -1401,14 +1415,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;
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle15.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); dataGridViewCellStyle31.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15; this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle31;
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,
@@ -1417,8 +1431,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;
dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle16; this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle32;
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 = 19; this.GridView490.TabIndex = 19;
@@ -2616,5 +2630,6 @@
private System.Windows.Forms.Panel panel6; private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Button btNext; private System.Windows.Forms.Button btNext;
private System.Windows.Forms.Button btPrev; private System.Windows.Forms.Button btPrev;
private System.Windows.Forms.Label label7;
} }
} }

View File

@@ -176,7 +176,8 @@ namespace UniMarc
private void richTextBox1_KeyDown(object sender, KeyEventArgs e) private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{ {
call = ((RichTextBox)sender).Name; var rt = sender as RichTextBox;
call = rt.Name;
richTextBox1.LanguageOption = 0; richTextBox1.LanguageOption = 0;
if (e.Control) if (e.Control)
@@ -186,7 +187,7 @@ namespace UniMarc
case 70: // f case 70: // f
string value = ""; string value = "";
if (search_Text.InputBox("찾을 단어를 입력해주세요.", "찾기(Ctrl+F)", ref value) == DialogResult.OK) if (search_Text.InputBox("찾을 단어를 입력해주세요.", "찾기(Ctrl+F)", ref value) == DialogResult.OK)
st.Color_change(value, richTextBox1); st.Color_change(value, rt);
break; break;
case 72: // h case 72: // h
@@ -199,6 +200,28 @@ namespace UniMarc
} }
} }
//260124
if (e.Alt && e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z)
{
var letter = e.KeyCode.ToString().ToLower();
rt.SelectionColor = Color.Blue;
rt.SelectedText = "▼";
rt.SelectionColor = rt.ForeColor;
rt.SelectedText = letter;
e.SuppressKeyPress = true;
return;
}
if (e.Alt && e.KeyCode == Keys.Enter)
{
rt.SelectionColor = Color.Red;
rt.SelectedText = "▲";
rt.SelectionColor = rt.ForeColor;
e.SuppressKeyPress = true;
return;
}
if (e.KeyCode == Keys.F9) if (e.KeyCode == Keys.F9)
SaveGrade(Keys.F9); SaveGrade(Keys.F9);
else if (e.KeyCode == Keys.F10) else if (e.KeyCode == Keys.F10)
@@ -208,9 +231,17 @@ namespace UniMarc
else if (e.KeyCode == Keys.F12) else if (e.KeyCode == Keys.F12)
SaveGrade(Keys.F12); SaveGrade(Keys.F12);
else if (e.KeyCode == Keys.F3) else if (e.KeyCode == Keys.F3)
richTextBox1.SelectedText = "▼"; {
rt.SelectionColor = Color.Blue;
rt.SelectedText = "▼";
rt.SelectionColor = rt.ForeColor;
}
else if (e.KeyCode == Keys.F4) else if (e.KeyCode == Keys.F4)
richTextBox1.SelectedText = "▲"; {
rt.SelectionColor = Color.Red;
rt.SelectedText = "▲";
rt.SelectionColor = rt.ForeColor;
}
else if (e.KeyCode == Keys.F8) //next else if (e.KeyCode == Keys.F8) //next
btNext.PerformClick(); btNext.PerformClick();
else if (e.KeyCode == Keys.F7) //prev else if (e.KeyCode == Keys.F7) //prev
@@ -301,7 +332,7 @@ namespace UniMarc
public string SaveDate { get; set; } public string SaveDate { get; set; }
public string DBMarc { get; set; } public string DBMarc { get; set; }
public MacEditorParameter griddata { get; set; } public MacEditorParameter Param { get; set; }
} }
public event EventHandler<BookSavedEventArgs> BookSaved; public event EventHandler<BookSavedEventArgs> BookSaved;
@@ -321,7 +352,7 @@ namespace UniMarc
return; return;
} }
string BaseText = richTextBox1.Text; string BaseText = richTextBox1.Text.Replace("▲▲", "▲").Replace("▼▼", "▼");
string lblisbn = Param.ISBN13; // lbl_ISBN.Text.Replace("[", "").Replace("]", ""); string lblisbn = Param.ISBN13; // lbl_ISBN.Text.Replace("[", "").Replace("]", "");
if (!BaseText.EndsWith("\n")) if (!BaseText.EndsWith("\n"))
@@ -336,7 +367,8 @@ namespace UniMarc
//ISBN이 변경되었다면 저장하지 못하게 한다 (경고 후 저장 가능하게 한다 26010?) //ISBN이 변경되었다면 저장하지 못하게 한다 (경고 후 저장 가능하게 한다 26010?)
if (BaseText.IndexOf(lblisbn) < 0) if (BaseText.IndexOf(lblisbn) < 0)
{ {
UTIL.MsgE("저장된 ISBN이 마크데이터에 없습니다.\nISBN값이 변경되었습니다"); var dlg = UTIL.MsgQ("저장된 ISBN이 마크데이터에 없습니다.\nISBN값이 변경되었습니다.\n그래도 저장 할까요?");
if (dlg != DialogResult.Yes)
return; return;
} }
string tag056 = Tag056(); string tag056 = Tag056();
@@ -360,7 +392,7 @@ namespace UniMarc
{ {
SaveDate = date, SaveDate = date,
DBMarc = orimarc, DBMarc = orimarc,
griddata = this.Param Param = this.Param
}); });
} }
@@ -1113,25 +1145,16 @@ namespace UniMarc
{ {
TextBox tb = sender as TextBox; TextBox tb = sender as TextBox;
//if (e.KeyCode == Keys.F3)
//{
// int line = tb.SelectionStart;
// tb.Text = tb.Text.Insert(line, "▽");
// tb.SelectionStart = line + 1;
//}
if (e.KeyCode == Keys.F3) if (e.KeyCode == Keys.F3)
{ {
tb.InvokeInsertText(""); tb.InvokeInsertText("");
//tb.Select(tb.Text.Length, 0);
} }
else if (e.KeyCode == Keys.F4) else if (e.KeyCode == Keys.F4)
{ {
tb.InvokeInsertText(""); tb.InvokeInsertText("");
//tb.Select(tb.Text.Length, 0);
} }
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
} }

View File

@@ -101,9 +101,9 @@ namespace UniMarc
{ {
// Update Specs_Marc table // Update Specs_Marc table
string oriMarc = e.DBMarc; string oriMarc = e.DBMarc;
string etc1 = e.griddata.Remark1 ?? ""; string etc1 = e.Param.Remark1 ?? "";
string etc2 = e.griddata.Remark2 ?? ""; string etc2 = e.Param.Remark2 ?? "";
string tag008 = e.griddata.text008; string tag008 = e.Param.text008;
// 등록번호 분류기호 저자기호 볼륨 복본 // 등록번호 분류기호 저자기호 볼륨 복본
// 별치 총서명 총서번호 저자 출판사 // 별치 총서명 총서번호 저자 출판사
@@ -125,7 +125,7 @@ namespace UniMarc
// Current ListIdx (Wait, idx in Marc_Plan corresponds to ListIdx in Parameter?) // Current ListIdx (Wait, idx in Marc_Plan corresponds to ListIdx in Parameter?)
// In Marc_Plan: ListIdx = idx. // In Marc_Plan: ListIdx = idx.
string listIdx = e.griddata.ListIdx; string listIdx = e.Param.ListIdx;
string[] Search_data = { listIdx }; string[] Search_data = { listIdx };
string[] Update_Col = { string[] Update_Col = {