=====* UniMarc [0.0145] 버전 업데이트 내용 (추가) *=====

** ERP 작업 전면 중단 (마크우선) **

1. 복본조사
ㄴ> 목포 시립도서관 추가.
ㄴ> 광주 광산구 제대로 작동하지 않는 버그 수정.
This commit is contained in:
SeungHo Yang
2022-04-11 13:20:38 +09:00
parent 09fea5784a
commit 01498b4e10
15 changed files with 152 additions and 93 deletions

Binary file not shown.

View File

@@ -193,7 +193,7 @@ namespace WindowsFormsApp1.Mac
// 광주 광산구 (장덕, 이야기꽃, 첨단, 신가, 운남어린이, 스마트) // 광주 광산구 (장덕, 이야기꽃, 첨단, 신가, 운남어린이, 스마트)
else if (URL.IndexOf("lib.gwangsan.go.kr") > -1) else if (URL.IndexOf("lib.gwangsan.go.kr") > -1)
{ {
if (URL.IndexOf("bookSearch") > -1) if (URL.IndexOf("query") > -1)
BookCount = (); BookCount = ();
(text); (text);
@@ -257,13 +257,21 @@ namespace WindowsFormsApp1.Mac
(text); (text);
} }
// 전남 무안군 공공도서관 // 전남 무안군 공공도서관
else if (URL.IndexOf("muan.go.kr/lib/data/search") > -1) else if (URL.IndexOf("muan.go.kr/lib/data/search") > -1)
{ {
BookCount = (text); BookCount = (text);
} }
// 전남 목포 시립도서관
else if (URL.IndexOf("mokpolib.or.kr/dls_lt/index.php") > -1)
{
if (URL.IndexOf("searchWord") > -1)
BookCount = ();
(text);
}
int tmp = RowCount - 1; int tmp = RowCount - 1;
if (tmp < 0) tmp = 0; if (tmp < 0) tmp = 0;
@@ -425,19 +433,19 @@ namespace WindowsFormsApp1.Mac
void (string text) void (string text)
{ {
foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("select")) // foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("select"))
{ // {
if (he.Name.IndexOf("globalSearchLib") > -1) // if (he.Name.IndexOf("globalSearchLib") > -1)
{ // {
he.SetAttribute("value", Code); // he.SetAttribute("value", Code);
} // }
} // }
webBrowser1.Document.GetElementById("globalSearchText").SetAttribute("value", text); webBrowser1.Document.GetElementById("query").SetAttribute("value", text);
foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("button")) foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("button"))
{ {
// if (Btn.GetAttribute("className").IndexOf("btn-search") > -1) // if (Btn.GetAttribute("className").IndexOf("btn-search") > -1)
if (Btn.GetAttribute("className") == "btn-search") if (Btn.GetAttribute("className") == "btn btn-lg")
Btn.InvokeMember("click"); Btn.InvokeMember("click");
} }
} }
@@ -800,6 +808,47 @@ namespace WindowsFormsApp1.Mac
#endregion #endregion
#region
bool isMokClick = false;
void (string text)
{
foreach (HtmlElement input in webBrowser1.Document.GetElementsByTagName("input"))
{
if (input.Id != null && input.Id.IndexOf(Code) > -1 && !isMokClick)
{
input.InvokeMember("click");
isMokClick = true;
Delay(500);
}
if (input.Id != null && input.Id.IndexOf("searchWord") > -1)
input.SetAttribute("value", text);
}
foreach (HtmlElement btn in webBrowser1.Document.GetElementsByTagName("input"))
{
if (btn.GetAttribute("className").IndexOf("btn-search") > -1)
btn.InvokeMember("click");
}
}
string ()
{
string result = "";
foreach (HtmlElement strong in webBrowser1.Document.GetElementsByTagName("strong"))
{
if (strong.GetAttribute("className").IndexOf("cyan") > -1)
result = Regex.Replace(strong.InnerText, @"\D", "");
}
return result;
}
#endregion
#endregion #endregion
public string CopyCount(string Text) public string CopyCount(string Text)

View File

@@ -141,7 +141,7 @@ namespace WindowsFormsApp1.Mac
"ISBN", "서명", "총서명", "저자", "출판사", "가격", "ISBN", "서명", "총서명", "저자", "출판사", "가격",
"marc", "marc_chk", "compidx", "grade", "date", "marc", "marc_chk", "compidx", "grade", "date",
"user", "008tag" }; "user", "008tag" };
for(int a = 0; a < dataGridView1.Rows.Count; a++) for (int a = 0; a < dataGridView1.Rows.Count; a++)
{ {
foreach (string colName in GridCol) foreach (string colName in GridCol)
{ {

View File

@@ -28,13 +28,13 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan));
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
@@ -141,7 +141,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1487, 35); this.panel1.Size = new System.Drawing.Size(1462, 35);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// panel4 // panel4
@@ -351,14 +351,14 @@
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.AppWorkspace; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.AppWorkspace;
dataGridViewCellStyle15.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)));
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15; this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeight = 25; this.dataGridView1.ColumnHeadersHeight = 25;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -389,7 +389,7 @@
this.dataGridView1.Location = new System.Drawing.Point(0, 0); this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23; this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1487, 544); this.dataGridView1.Size = new System.Drawing.Size(1462, 544);
this.dataGridView1.TabIndex = 1; this.dataGridView1.TabIndex = 1;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
@@ -417,8 +417,8 @@
// //
// reg_num // reg_num
// //
dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.reg_num.DefaultCellStyle = dataGridViewCellStyle16; this.reg_num.DefaultCellStyle = dataGridViewCellStyle2;
this.reg_num.FillWeight = 130.9363F; this.reg_num.FillWeight = 130.9363F;
this.reg_num.HeaderText = "등록번호"; this.reg_num.HeaderText = "등록번호";
this.reg_num.Name = "reg_num"; this.reg_num.Name = "reg_num";
@@ -426,8 +426,8 @@
// //
// class_code // class_code
// //
dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.class_code.DefaultCellStyle = dataGridViewCellStyle17; this.class_code.DefaultCellStyle = dataGridViewCellStyle3;
this.class_code.FillWeight = 76.41504F; this.class_code.FillWeight = 76.41504F;
this.class_code.HeaderText = "분류"; this.class_code.HeaderText = "분류";
this.class_code.Name = "class_code"; this.class_code.Name = "class_code";
@@ -435,8 +435,8 @@
// //
// author_code // author_code
// //
dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.author_code.DefaultCellStyle = dataGridViewCellStyle18; this.author_code.DefaultCellStyle = dataGridViewCellStyle4;
this.author_code.FillWeight = 77.02635F; this.author_code.FillWeight = 77.02635F;
this.author_code.HeaderText = "저자기호"; this.author_code.HeaderText = "저자기호";
this.author_code.Name = "author_code"; this.author_code.Name = "author_code";
@@ -444,8 +444,8 @@
// //
// volume // volume
// //
dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.volume.DefaultCellStyle = dataGridViewCellStyle19; this.volume.DefaultCellStyle = dataGridViewCellStyle5;
this.volume.FillWeight = 38.80909F; this.volume.FillWeight = 38.80909F;
this.volume.HeaderText = "V"; this.volume.HeaderText = "V";
this.volume.Name = "volume"; this.volume.Name = "volume";
@@ -454,8 +454,8 @@
// //
// copy // copy
// //
dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.copy.DefaultCellStyle = dataGridViewCellStyle20; this.copy.DefaultCellStyle = dataGridViewCellStyle6;
this.copy.FillWeight = 40.14827F; this.copy.FillWeight = 40.14827F;
this.copy.HeaderText = "C"; this.copy.HeaderText = "C";
this.copy.Name = "copy"; this.copy.Name = "copy";
@@ -464,8 +464,8 @@
// //
// prefix // prefix
// //
dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.prefix.DefaultCellStyle = dataGridViewCellStyle21; this.prefix.DefaultCellStyle = dataGridViewCellStyle7;
this.prefix.FillWeight = 41.51828F; this.prefix.FillWeight = 41.51828F;
this.prefix.HeaderText = "F"; this.prefix.HeaderText = "F";
this.prefix.Name = "prefix"; this.prefix.Name = "prefix";
@@ -609,7 +609,7 @@
this.panel5.Dock = System.Windows.Forms.DockStyle.Top; this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 35); this.panel5.Location = new System.Drawing.Point(0, 35);
this.panel5.Name = "panel5"; this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(1487, 40); this.panel5.Size = new System.Drawing.Size(1462, 40);
this.panel5.TabIndex = 9; this.panel5.TabIndex = 9;
// //
// panel6 // panel6
@@ -654,7 +654,7 @@
this.panel6.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel6.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel6.Location = new System.Drawing.Point(0, 619); this.panel6.Location = new System.Drawing.Point(0, 619);
this.panel6.Name = "panel6"; this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(1487, 59); this.panel6.Size = new System.Drawing.Size(1462, 59);
this.panel6.TabIndex = 10; this.panel6.TabIndex = 10;
// //
// tb_Left // tb_Left
@@ -1010,11 +1010,12 @@
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill; this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(0, 75); this.panel7.Location = new System.Drawing.Point(0, 75);
this.panel7.Name = "panel7"; this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(1487, 544); this.panel7.Size = new System.Drawing.Size(1462, 544);
this.panel7.TabIndex = 11; this.panel7.TabIndex = 11;
// //
// printDocument1 // printDocument1
// //
this.printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument1_BeginPrint);
this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage); this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
// //
// printPreviewDialog1 // printPreviewDialog1
@@ -1031,7 +1032,7 @@
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1487, 678); this.ClientSize = new System.Drawing.Size(1462, 678);
this.Controls.Add(this.panel7); this.Controls.Add(this.panel7);
this.Controls.Add(this.panel6); this.Controls.Add(this.panel6);
this.Controls.Add(this.panel5); this.Controls.Add(this.panel5);

View File

@@ -591,6 +591,11 @@ namespace WindowsFormsApp1.Mac
/// 여러장 인쇄인지 /// 여러장 인쇄인지
/// </summary> /// </summary>
bool isMorePage; bool isMorePage;
private void printDocument1_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
Cnt = 0;
isMorePage = false;
}
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{ {
@@ -723,6 +728,7 @@ namespace WindowsFormsApp1.Mac
foreach (TextBox tb in MyBox) foreach (TextBox tb in MyBox)
{ {
tb.Text = Box[count].Text; tb.Text = Box[count].Text;
count++;
} }
cb_TextFont.SelectedItem = Font; cb_TextFont.SelectedItem = Font;
@@ -731,5 +737,6 @@ namespace WindowsFormsApp1.Mac
chk_V.Checked = ChkByC_V[1]; chk_V.Checked = ChkByC_V[1];
} }
#endregion #endregion
} }
} }

View File

@@ -29,7 +29,7 @@ namespace UniMarc.마크
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.tb_Search = new System.Windows.Forms.TextBox(); this.tb_Search = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
@@ -38,9 +38,6 @@ namespace UniMarc.마크
this.btn_Close = new System.Windows.Forms.Button(); this.btn_Close = new System.Windows.Forms.Button();
this.btn_Empty = new System.Windows.Forms.Button(); this.btn_Empty = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.user = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.label18 = new System.Windows.Forms.Label(); this.label18 = new System.Windows.Forms.Label();
this.cb_TextFont = new System.Windows.Forms.ComboBox(); this.cb_TextFont = new System.Windows.Forms.ComboBox();
@@ -75,6 +72,9 @@ namespace UniMarc.마크
this.tb_ListName = new System.Windows.Forms.TextBox(); this.tb_ListName = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.btn_Apply = new System.Windows.Forms.Button(); this.btn_Apply = new System.Windows.Forms.Button();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.user = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
@@ -155,14 +155,14 @@ namespace UniMarc.마크
// //
this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false; this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.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)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx, this.idx,
@@ -175,30 +175,8 @@ namespace UniMarc.마크
this.dataGridView1.Size = new System.Drawing.Size(440, 196); this.dataGridView1.Size = new System.Drawing.Size(440, 196);
this.dataGridView1.TabIndex = 3; this.dataGridView1.TabIndex = 3;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint); this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
// //
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.ReadOnly = true;
this.idx.Visible = false;
//
// name
//
this.name.HeaderText = "목록";
this.name.Name = "name";
this.name.ReadOnly = true;
this.name.Width = 300;
//
// user
//
this.user.HeaderText = "저장자";
this.user.Name = "user";
this.user.ReadOnly = true;
this.user.Width = 80;
//
// panel2 // panel2
// //
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -543,6 +521,28 @@ namespace UniMarc.마크
this.btn_Apply.UseVisualStyleBackColor = true; this.btn_Apply.UseVisualStyleBackColor = true;
this.btn_Apply.Click += new System.EventHandler(this.btn_Apply_Click); this.btn_Apply.Click += new System.EventHandler(this.btn_Apply_Click);
// //
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.ReadOnly = true;
this.idx.Visible = false;
this.idx.Width = 50;
//
// name
//
this.name.HeaderText = "목록";
this.name.Name = "name";
this.name.ReadOnly = true;
this.name.Width = 300;
//
// user
//
this.user.HeaderText = "저장자";
this.user.Name = "user";
this.user.ReadOnly = true;
this.user.Width = 80;
//
// Marc_Plan_PrintLabel // Marc_Plan_PrintLabel
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -605,12 +605,12 @@ namespace UniMarc.마크
private System.Windows.Forms.CheckBox chk_C; private System.Windows.Forms.CheckBox chk_C;
private System.Windows.Forms.CheckBox chk_V; private System.Windows.Forms.CheckBox chk_V;
private System.Windows.Forms.Label label18; private System.Windows.Forms.Label label18;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn name;
private System.Windows.Forms.DataGridViewTextBoxColumn user;
private System.Windows.Forms.Button btn_Apply; private System.Windows.Forms.Button btn_Apply;
private System.Windows.Forms.Button btn_Empty; private System.Windows.Forms.Button btn_Empty;
private System.Windows.Forms.Button btn_Delete; private System.Windows.Forms.Button btn_Delete;
private System.Windows.Forms.Button btn_Save; private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn name;
private System.Windows.Forms.DataGridViewTextBoxColumn user;
} }
} }

View File

@@ -28,6 +28,8 @@ namespace UniMarc.마크
string[] Font = { "굴림", "굴림체", "돋움", "바탕체", "맑은 고딕", "HY강B", "HY강M" }; string[] Font = { "굴림", "굴림체", "돋움", "바탕체", "맑은 고딕", "HY강B", "HY강M" };
cb_TextFont.Items.AddRange(Font); cb_TextFont.Items.AddRange(Font);
SearchList();
} }
private void tb_Search_KeyDown(object sender, KeyEventArgs e) private void tb_Search_KeyDown(object sender, KeyEventArgs e)
@@ -41,9 +43,11 @@ namespace UniMarc.마크
/// </summary> /// </summary>
private void SearchList() private void SearchList()
{ {
dataGridView1.Rows.Clear();
string Text = tb_Search.Text; string Text = tb_Search.Text;
string Area = "`compidx`, `name`, `user`"; string Area = "`idx`, `name`, `user`";
string Tabel = "PrintLabel"; string Tabel = "PrintLabel";
string compidx = Properties.Settings.Default.compidx; string compidx = Properties.Settings.Default.compidx;
@@ -104,11 +108,10 @@ namespace UniMarc.마크
int count = 0; int count = 0;
foreach (string Data in SplitData) foreach (string Data in SplitData)
{ {
if (tb.Length <= count) if (Data == "")
{ continue;
tb[count].Text = Data;
} if (count == 8)
else if (count == 8)
{ {
if (Data == "0") if (Data == "0")
chk_V.Checked = false; chk_V.Checked = false;
@@ -130,6 +133,10 @@ namespace UniMarc.마크
{ {
tb_TextSize.Text = Data; tb_TextSize.Text = Data;
} }
else if (tb.Length > count)
{
tb[count].Text = Data;
}
count++; count++;
} }
} }
@@ -275,10 +282,5 @@ namespace UniMarc.마크
Skill_Grid sg = new Skill_Grid(); Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e); sg.Print_Grid_Num(sender, e);
} }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
}
} }
} }