=====* unimarc [0.0104] 버전관리 시작 *=====

1. 인쇄 오류 수정
2. DLS복본조사 추가
This commit is contained in:
SeungHo Yang
2021-12-21 17:43:36 +09:00
parent d3ad66cf1f
commit 43625b5e62
91 changed files with 7119 additions and 4951 deletions

Binary file not shown.

View File

@@ -390,7 +390,7 @@
this.Column3});
this.GridView020.Location = new System.Drawing.Point(350, 71);
this.GridView020.Name = "GridView020";
this.GridView020.RowHeadersWidth = 10;
this.GridView020.RowHeadersWidth = 30;
this.GridView020.RowTemplate.Height = 23;
this.GridView020.Size = new System.Drawing.Size(395, 71);
this.GridView020.TabIndex = 208;
@@ -583,7 +583,7 @@
this.Column8});
this.GridView246.Location = new System.Drawing.Point(760, 238);
this.GridView246.Name = "GridView246";
this.GridView246.RowHeadersWidth = 10;
this.GridView246.RowHeadersWidth = 30;
this.GridView246.RowTemplate.Height = 23;
this.GridView246.Size = new System.Drawing.Size(568, 71);
this.GridView246.TabIndex = 208;
@@ -764,7 +764,7 @@
this.Column12});
this.GridView710.Location = new System.Drawing.Point(605, 384);
this.GridView710.Name = "GridView710";
this.GridView710.RowHeadersWidth = 10;
this.GridView710.RowHeadersWidth = 30;
this.GridView710.RowTemplate.Height = 23;
this.GridView710.Size = new System.Drawing.Size(360, 71);
this.GridView710.TabIndex = 208;
@@ -797,7 +797,7 @@
this.dataGridViewTextBoxColumn2});
this.GridView910.Location = new System.Drawing.Point(968, 384);
this.GridView910.Name = "GridView910";
this.GridView910.RowHeadersWidth = 10;
this.GridView910.RowHeadersWidth = 30;
this.GridView910.RowTemplate.Height = 23;
this.GridView910.Size = new System.Drawing.Size(360, 71);
this.GridView910.TabIndex = 208;
@@ -898,7 +898,7 @@
this.text440x});
this.GridView440.Location = new System.Drawing.Point(350, 486);
this.GridView440.Name = "GridView440";
this.GridView440.RowHeadersWidth = 10;
this.GridView440.RowHeadersWidth = 30;
this.GridView440.RowTemplate.Height = 23;
this.GridView440.Size = new System.Drawing.Size(610, 71);
this.GridView440.TabIndex = 208;
@@ -975,7 +975,7 @@
this.text490v});
this.GridView490.Location = new System.Drawing.Point(968, 486);
this.GridView490.Name = "GridView490";
this.GridView490.RowHeadersWidth = 10;
this.GridView490.RowHeadersWidth = 30;
this.GridView490.RowTemplate.Height = 23;
this.GridView490.Size = new System.Drawing.Size(360, 71);
this.GridView490.TabIndex = 208;
@@ -1019,7 +1019,7 @@
this.text505e});
this.GridView505.Location = new System.Drawing.Point(350, 617);
this.GridView505.Name = "GridView505";
this.GridView505.RowHeadersWidth = 10;
this.GridView505.RowHeadersWidth = 30;
this.GridView505.RowTemplate.Height = 23;
this.GridView505.Size = new System.Drawing.Size(410, 71);
this.GridView505.TabIndex = 208;

View File

@@ -96,12 +96,12 @@ namespace ExcelTest
private void button2_Click(object sender, EventArgs e)
{
string result = "";
string result;
richTextBox1.Text = "";
string mid = "\t--\t";
string Sort = "▼";
string End = "▲\n";
string dlatl = "";
string dlatl;
DataGridView data020 = GridView020;
DataGridView data246 = GridView246;
DataGridView data710 = GridView710;
@@ -116,7 +116,7 @@ namespace ExcelTest
string[] data440a = { "", "", "", "", "", "" };
string[] data490a = { "", "" };
string[] data505a = { "", "", "", "" };
int count = 0, a = 0, b = 0;
int count = 0, a, b;
result = "메모장\n008\t\t200604s20192020ulk b 000a kor ";
result = Create_008(result);

View File

@@ -45,3 +45,34 @@ C:\Users\Administrator\Desktop\project\ExcelTest\ExcelTest\bin\Debug\System.Runt
C:\Users\Administrator\Desktop\project\ExcelTest\ExcelTest\bin\Debug\System.Numerics.Vectors.dll
C:\Users\Administrator\Desktop\project\ExcelTest\ExcelTest\bin\Debug\MySql.Data.xml
C:\Users\Administrator\Desktop\project\ExcelTest\ExcelTest\obj\Debug\ExcelTest.csproj.CopyComplete
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\ExcelTest.exe.config
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\ExcelTest.exe
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\ExcelTest.pdb
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\MySql.Data.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\Google.Protobuf.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\Zstandard.Net.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\K4os.Compression.LZ4.Streams.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\BouncyCastle.Crypto.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\Ubiety.Dns.Core.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\Renci.SshNet.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\System.Buffers.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\K4os.Compression.LZ4.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\K4os.Hash.xxHash.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\System.Memory.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\System.Runtime.CompilerServices.Unsafe.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\System.Numerics.Vectors.dll
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\bin\Debug\MySql.Data.xml
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.csproj.AssemblyReference.cache
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.csproj.ResolveComReference.cache
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.findNchange.resources
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.Helper008.resources
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.Font.resources
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.Email.resources
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.Marc.resources
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.Properties.Resources.resources
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.SubString.resources
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.csproj.GenerateResource.cache
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.csproj.CoreCompileInputs.cache
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.csproj.CopyComplete
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.exe
C:\Users\Administrator\Desktop\unimarc\ExcelTest\ExcelTest\obj\Debug\ExcelTest.pdb

View File

@@ -29,21 +29,12 @@ namespace ISBN_Check_test
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.label1 = new System.Windows.Forms.Label();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.start_idx = new System.Windows.Forms.TextBox();
this.end_idx = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.btn_Yes24 = new System.Windows.Forms.Button();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -55,21 +46,37 @@ namespace ISBN_Check_test
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label1 = new System.Windows.Forms.Label();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.start_idx = new System.Windows.Forms.TextBox();
this.end_idx = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.btn_Yes24 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(154, 10);
this.cb_filter.Location = new System.Drawing.Point(139, 11);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(121, 20);
this.cb_filter.TabIndex = 0;
this.cb_filter.SelectedIndexChanged += new System.EventHandler(this.cb_filter_SelectedIndexChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(431, 9);
this.button1.Location = new System.Drawing.Point(416, 10);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 2;
@@ -79,14 +86,14 @@ namespace ISBN_Check_test
//
// dataGridView1
//
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.book_name,
this.author,
@@ -99,106 +106,27 @@ namespace ISBN_Check_test
this.sold_out,
this.Column1,
this.count});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;
this.dataGridView1.Location = new System.Drawing.Point(12, 38);
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle12.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle12;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dataGridView1.Size = new System.Drawing.Size(973, 466);
this.dataGridView1.Size = new System.Drawing.Size(1001, 471);
this.dataGridView1.TabIndex = 3;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(734, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 4;
this.label1.Text = "00:00:00.00";
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(12, 510);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(973, 96);
this.richTextBox1.TabIndex = 5;
this.richTextBox1.Text = "";
//
// start_idx
//
this.start_idx.Location = new System.Drawing.Point(287, 10);
this.start_idx.Name = "start_idx";
this.start_idx.Size = new System.Drawing.Size(42, 21);
this.start_idx.TabIndex = 6;
this.start_idx.Text = "1";
this.start_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress);
//
// end_idx
//
this.end_idx.Location = new System.Drawing.Point(355, 10);
this.end_idx.Name = "end_idx";
this.end_idx.Size = new System.Drawing.Size(42, 21);
this.end_idx.TabIndex = 6;
this.end_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(335, 14);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(14, 12);
this.label2.TabIndex = 4;
this.label2.Text = "~";
//
// button2
//
this.button2.Location = new System.Drawing.Point(518, 9);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 2;
this.button2.Text = "리 셋";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(27, 9);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(121, 20);
this.cb_api.TabIndex = 0;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(801, 9);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(184, 23);
this.progressBar1.TabIndex = 7;
//
// btn_Yes24
//
this.btn_Yes24.Location = new System.Drawing.Point(605, 9);
this.btn_Yes24.Name = "btn_Yes24";
this.btn_Yes24.Size = new System.Drawing.Size(75, 23);
this.btn_Yes24.TabIndex = 8;
this.btn_Yes24.Text = "Yes반출";
this.btn_Yes24.UseVisualStyleBackColor = true;
this.btn_Yes24.Click += new System.EventHandler(this.btn_Yes24_Click);
//
// book_name
//
this.book_name.HeaderText = "도서명";
@@ -258,35 +186,147 @@ namespace ISBN_Check_test
//
// count
//
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.count.DefaultCellStyle = dataGridViewCellStyle11;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.count.DefaultCellStyle = dataGridViewCellStyle2;
this.count.HeaderText = "검색갯수";
this.count.Name = "count";
this.count.Width = 80;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(719, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 4;
this.label1.Text = "00:00:00.00";
//
// richTextBox1
//
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1001, 100);
this.richTextBox1.TabIndex = 5;
this.richTextBox1.Text = "";
//
// start_idx
//
this.start_idx.Location = new System.Drawing.Point(272, 11);
this.start_idx.Name = "start_idx";
this.start_idx.Size = new System.Drawing.Size(42, 21);
this.start_idx.TabIndex = 6;
this.start_idx.Text = "1";
this.start_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress);
//
// end_idx
//
this.end_idx.Location = new System.Drawing.Point(340, 11);
this.end_idx.Name = "end_idx";
this.end_idx.Size = new System.Drawing.Size(42, 21);
this.end_idx.TabIndex = 6;
this.end_idx.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(320, 15);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(14, 12);
this.label2.TabIndex = 4;
this.label2.Text = "~";
//
// button2
//
this.button2.Location = new System.Drawing.Point(503, 10);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 2;
this.button2.Text = "리 셋";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(12, 10);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(121, 20);
this.cb_api.TabIndex = 0;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(786, 10);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(184, 23);
this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
this.progressBar1.TabIndex = 7;
//
// btn_Yes24
//
this.btn_Yes24.Location = new System.Drawing.Point(590, 10);
this.btn_Yes24.Name = "btn_Yes24";
this.btn_Yes24.Size = new System.Drawing.Size(75, 23);
this.btn_Yes24.TabIndex = 8;
this.btn_Yes24.Text = "Yes반출";
this.btn_Yes24.UseVisualStyleBackColor = true;
this.btn_Yes24.Click += new System.EventHandler(this.btn_Yes24_Click);
//
// panel1
//
this.panel1.Controls.Add(this.cb_api);
this.panel1.Controls.Add(this.btn_Yes24);
this.panel1.Controls.Add(this.cb_filter);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.progressBar1);
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.end_idx);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.start_idx);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1001, 47);
this.panel1.TabIndex = 9;
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 518);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1001, 100);
this.panel2.TabIndex = 10;
//
// panel3
//
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 47);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1001, 471);
this.panel3.TabIndex = 11;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1001, 618);
this.Controls.Add(this.btn_Yes24);
this.Controls.Add(this.label1);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.end_idx);
this.Controls.Add(this.start_idx);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.cb_api);
this.Controls.Add(this.cb_filter);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
@@ -315,6 +355,9 @@ namespace ISBN_Check_test
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
}
}

View File

@@ -86,20 +86,6 @@ namespace ISBN_Check_test
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0];
this.ActiveControl = dataGridView1;
}
#region
private void count_res()
{
String_Text st = new String_Text();
int count = dataGridView1.Rows.Count;
for(int a= 0; a < count; a++)
{
string search_data = dataGridView1.Rows[a].Cells["Column1"].Value.ToString();
int tmp_count = st.Char_count(search_data, '|');
int lcount = tmp_count / 8;
dataGridView1.Rows[a].Cells["count"].Value = lcount.ToString();
}
}
#endregion
/// <summary>
/// 알라딘 API
/// </summary>
@@ -109,18 +95,42 @@ namespace ISBN_Check_test
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
string[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
"pubDate", "categoryName" };
"pubDate", "categoryName", "stockStatus", };
API api = new API();
for (int a = start; a < end; a++)
{
process_Sub();
string query = dataGridView1.Rows[a].Cells["isbn"].Value.ToString();
string type;
switch (cb_filter.SelectedIndex)
{
case 0:
type = "Keyword";
break;
case 1:
type = "Title";
break;
case 2:
type = "Author";
break;
case 3:
type = "Publisher";
break;
case 4:
type = "ISBN13";
break;
default:
type = "";
break;
}
// string query = dataGridView1.Rows[a].Cells["isbn"].Value.ToString();
string query = Set_query(type, a);
if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.Yellow)
continue;
else if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.LightGray)
gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
string aladin = api.Aladin(query, "ISBN13", param);
// string aladin = api.Aladin(query, "ISBN13", param);
string aladin = api.Aladin(query, type, param);
insert_By_Aladin(aladin, a);
try
{
@@ -129,6 +139,28 @@ namespace ISBN_Check_test
catch { }
}
}
string Set_query(string type, int idx)
{
string result = string.Empty;
if (type == "Keyword")
result = dataGridView1.Rows[idx].Cells["book_name"].Value.ToString() +
dataGridView1.Rows[idx].Cells["author"].Value.ToString();
if (type == "Title")
result = dataGridView1.Rows[idx].Cells["book_name"].Value.ToString();
if (type == "Author")
result = dataGridView1.Rows[idx].Cells["author"].Value.ToString();
if (type == "Publisher")
result = dataGridView1.Rows[idx].Cells["book_comp"].Value.ToString();
if (type == "ISBN13")
result = dataGridView1.Rows[idx].Cells["isbn"].Value.ToString();
return result;
}
private void Naver_API(DataGridView gridview, int start, int end)
{
// 도서명 / 저자 / 출판사 / isbn / 정가
@@ -139,7 +171,7 @@ namespace ISBN_Check_test
List<string> L_type = new List<string>();
List<string> L_Array = new List<string>();
for(int a = start; a < end; a++)
for (int a = start; a < end; a++)
{
L_type.Clear();
L_Array.Clear();
@@ -248,35 +280,11 @@ namespace ISBN_Check_test
{
progressBar1.PerformStep();
}
string Set_query(string type, int idx)
{
string result = string.Empty;
if(type == "Keyword")
result = dataGridView1.Rows[idx].Cells["book_name"].Value.ToString() +
dataGridView1.Rows[idx].Cells["author"].Value.ToString();
if (type == "Title")
result = dataGridView1.Rows[idx].Cells["book_name"].Value.ToString();
if (type == "Author")
result = dataGridView1.Rows[idx].Cells["author"].Value.ToString();
if (type == "Publisher")
result = dataGridView1.Rows[idx].Cells["book_comp"].Value.ToString();
return result;
}
void insert_By_Aladin(string data, int row)
{
if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; }
dataGridView1.Rows[row].Selected = true;
if (data.Length > 0) {
dataGridView1.Rows[row].Cells["Column1"].Value = data;
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
}
string[] insert = data.Split('|');
if (data == "") { return; }
@@ -290,14 +298,28 @@ namespace ISBN_Check_test
}
catch(Exception ex) { MessageBox.Show(data); }
// 도서 분류 필요한 데이터로 재정리
int top = insert[6].IndexOf('>');
int mid = insert[6].IndexOf('>', top + 1);
int bot = insert[6].IndexOf('>', mid + 1);
if (bot < 0) { insert[6] = insert[6].Substring(top + 1); }
else { insert[6] = insert[6].Substring(top + 1, bot - top - 1); }
for (int a = 0; a < insert.Length; a++)
{
if (a % 8 == 6) { insert[a] = Aladin_CategorySort(insert[a]); }
}
input_api_aladin(insert, row, newstring);
dataGridView1.Rows[row].Cells["Column1"].Value += string.Join("|", insert) + "|";
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
if (cb_filter.SelectedItem.ToString() == "별치조사")
input_api_aladin(insert, row, newstring);
input_api(insert, row, newstring);
}
string Aladin_CategorySort(string insert)
{
// 도서 분류 필요한 데이터로 재정리
int top = insert.IndexOf('>');
int mid = insert.IndexOf('>', top + 1);
int bot = insert.IndexOf('>', mid + 1);
if (bot < 0) { insert = insert.Substring(top + 1); }
else { insert = insert.Substring(top + 1, bot - top - 1); }
return insert;
}
void input_api_aladin(string[] data, int row, string date)
{
@@ -450,12 +472,27 @@ namespace ISBN_Check_test
dataGridView1.Rows[idx].Cells["isbn"].Value = value[3];
dataGridView1.Rows[idx].Cells["price2"].Value = value[4];
dataGridView1.Rows[idx].Cells["pubDate"].Value = date;
// dataGridView1.Rows[idx].Cells["category"].Value = value[6];
//if (cb_api.SelectedIndex == 2)
dataGridView1.Rows[idx].Cells["category"].Value = value[6];
dataGridView1.Rows[idx].Cells["sold_out"].Value = value[7];
dataGridView1.Rows[idx].DefaultCellStyle.BackColor = Color.Yellow;
}
count_res();
}
#region
private void count_res()
{
String_Text st = new String_Text();
int count = dataGridView1.Rows.Count;
for (int a = 0; a < count; a++)
{
string search_data = dataGridView1.Rows[a].Cells["Column1"].Value.ToString();
int tmp_count = st.Char_count(search_data, '|');
int lcount = tmp_count / 8;
dataGridView1.Rows[a].Cells["count"].Value = lcount.ToString();
}
}
#endregion
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
@@ -488,7 +525,8 @@ namespace ISBN_Check_test
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
rowidx = e.RowIndex;
if(dataGridView1.Rows[e.RowIndex].Cells["Column1"].Value == null)
if (rowidx < 0) return;
if (dataGridView1.Rows[e.RowIndex].Cells["Column1"].Value == null)
dataGridView1.Rows[e.RowIndex].Cells["Column1"].Value = "";
richTextBox1.Text = dataGridView1.Rows[e.RowIndex].Cells["Column1"].Value.ToString();
@@ -522,27 +560,20 @@ namespace ISBN_Check_test
cb_filter.Items.AddRange(naver);
}
else if (cb_api.SelectedIndex == 2) {
string[] aladin = { "별치 조사" };
string[] aladin = { "도서명 + 저자", "도서명", "저자", "출판사", "별치조사" };
cb_filter.Items.AddRange(aladin);
}
Must_Col(cb_api.SelectedIndex);
}
private void Must_Col(int cb_idx)
{
if (cb_idx == 0 || cb_idx == 1)
if (cb_idx == 0 || cb_idx == 1 || cb_idx == 2)
{
dataGridView1.Columns["isbn"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["book_name"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns["author"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns["book_comp"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
}
else if (cb_idx == 2)
{
dataGridView1.Columns["isbn"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns["book_name"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["author"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["book_comp"].DefaultCellStyle.BackColor = Color.Empty;
}
else {
return;
}
@@ -552,5 +583,17 @@ namespace ISBN_Check_test
Yes24 yes24 = new Yes24(this);
yes24.Show();
}
private void cb_filter_SelectedIndexChanged(object sender, EventArgs e)
{
if (cb_filter.SelectedItem.ToString() == "별치조사")
{
dataGridView1.Columns["isbn"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns["book_name"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["author"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["book_comp"].DefaultCellStyle.BackColor = Color.Empty;
}
}
}
}

View File

@@ -52,7 +52,12 @@ namespace ISBN_Check_test
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_ReSearch = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// dataGridView1
@@ -77,9 +82,9 @@ namespace ISBN_Check_test
this.category,
this.sold_out,
this.Column1});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(0, 55);
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
@@ -91,10 +96,11 @@ namespace ISBN_Check_test
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dataGridView1.Size = new System.Drawing.Size(834, 324);
this.dataGridView1.Size = new System.Drawing.Size(876, 444);
this.dataGridView1.TabIndex = 4;
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.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// book_name
@@ -150,43 +156,47 @@ namespace ISBN_Check_test
//
// tb_book_name
//
this.tb_book_name.Location = new System.Drawing.Point(43, 28);
this.tb_book_name.Location = new System.Drawing.Point(12, 23);
this.tb_book_name.Name = "tb_book_name";
this.tb_book_name.Size = new System.Drawing.Size(254, 21);
this.tb_book_name.TabIndex = 5;
//
// tb_author
//
this.tb_author.Location = new System.Drawing.Point(303, 28);
this.tb_author.Location = new System.Drawing.Point(272, 23);
this.tb_author.Name = "tb_author";
this.tb_author.ReadOnly = true;
this.tb_author.Size = new System.Drawing.Size(101, 21);
this.tb_author.TabIndex = 5;
//
// tb_book_comp
//
this.tb_book_comp.Location = new System.Drawing.Point(410, 28);
this.tb_book_comp.Location = new System.Drawing.Point(379, 23);
this.tb_book_comp.Name = "tb_book_comp";
this.tb_book_comp.ReadOnly = true;
this.tb_book_comp.Size = new System.Drawing.Size(134, 21);
this.tb_book_comp.TabIndex = 5;
//
// tb_isbn
//
this.tb_isbn.Location = new System.Drawing.Point(550, 28);
this.tb_isbn.Location = new System.Drawing.Point(519, 23);
this.tb_isbn.Name = "tb_isbn";
this.tb_isbn.ReadOnly = true;
this.tb_isbn.Size = new System.Drawing.Size(109, 21);
this.tb_isbn.TabIndex = 5;
//
// tb_price
//
this.tb_price.Location = new System.Drawing.Point(665, 28);
this.tb_price.Location = new System.Drawing.Point(634, 23);
this.tb_price.Name = "tb_price";
this.tb_price.ReadOnly = true;
this.tb_price.Size = new System.Drawing.Size(55, 21);
this.tb_price.TabIndex = 5;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(150, 13);
this.label1.Location = new System.Drawing.Point(119, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 6;
@@ -195,7 +205,7 @@ namespace ISBN_Check_test
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(339, 13);
this.label2.Location = new System.Drawing.Point(308, 8);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 6;
@@ -204,7 +214,7 @@ namespace ISBN_Check_test
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(457, 13);
this.label3.Location = new System.Drawing.Point(426, 8);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.TabIndex = 6;
@@ -213,7 +223,7 @@ namespace ISBN_Check_test
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(588, 13);
this.label4.Location = new System.Drawing.Point(557, 8);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(33, 12);
this.label4.TabIndex = 6;
@@ -222,7 +232,7 @@ namespace ISBN_Check_test
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(678, 13);
this.label5.Location = new System.Drawing.Point(647, 8);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(29, 12);
this.label5.TabIndex = 6;
@@ -230,7 +240,7 @@ namespace ISBN_Check_test
//
// button1
//
this.button1.Location = new System.Drawing.Point(737, 18);
this.button1.Location = new System.Drawing.Point(776, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 7;
@@ -238,29 +248,60 @@ namespace ISBN_Check_test
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// panel1
//
this.panel1.Controls.Add(this.tb_book_name);
this.panel1.Controls.Add(this.btn_ReSearch);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.tb_author);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.tb_book_comp);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.tb_isbn);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.tb_price);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(876, 55);
this.panel1.TabIndex = 8;
//
// btn_ReSearch
//
this.btn_ReSearch.Location = new System.Drawing.Point(695, 12);
this.btn_ReSearch.Name = "btn_ReSearch";
this.btn_ReSearch.Size = new System.Drawing.Size(75, 23);
this.btn_ReSearch.TabIndex = 7;
this.btn_ReSearch.Text = "검 색";
this.btn_ReSearch.UseVisualStyleBackColor = true;
this.btn_ReSearch.Click += new System.EventHandler(this.btn_ReSearch_Click);
//
// panel3
//
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 55);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(876, 444);
this.panel3.TabIndex = 10;
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(834, 379);
this.Controls.Add(this.button1);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.tb_price);
this.Controls.Add(this.tb_isbn);
this.Controls.Add(this.tb_book_comp);
this.Controls.Add(this.tb_author);
this.Controls.Add(this.tb_book_name);
this.Controls.Add(this.dataGridView1);
this.ClientSize = new System.Drawing.Size(876, 499);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel1);
this.Name = "Form2";
this.Text = "Form2";
this.Load += new System.EventHandler(this.Form2_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel3.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
@@ -287,5 +328,8 @@ namespace ISBN_Check_test
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btn_ReSearch;
private System.Windows.Forms.Panel panel3;
}
}

View File

@@ -23,23 +23,30 @@ namespace ISBN_Check_test
}
private void Form2_Load(object sender, EventArgs e)
{
Sort_data();
Sort_data(f1.dataGridView1);
// 비슷한거 색깔표시
same_chk();
}
private void Sort_data()
private void Sort_data(DataGridView f1GridView)
{
tb_book_name.Text = f1.dataGridView1.Rows[row].Cells["book_name"].Value.ToString();
tb_author.Text = f1.dataGridView1.Rows[row].Cells["author"].Value.ToString();
tb_book_comp.Text = f1.dataGridView1.Rows[row].Cells["book_comp"].Value.ToString();
tb_book_name.Text = f1GridView.Rows[row].Cells["book_name"].Value.ToString();
tb_author.Text = f1GridView.Rows[row].Cells["author"].Value.ToString();
tb_book_comp.Text = f1GridView.Rows[row].Cells["book_comp"].Value.ToString();
if (f1.dataGridView1.Rows[row].Cells["price"].Value != null)
tb_price.Text = f1.dataGridView1.Rows[row].Cells["price"].Value.ToString();
if (f1GridView.Rows[row].Cells["price"].Value != null)
tb_price.Text = f1GridView.Rows[row].Cells["price"].Value.ToString();
else { tb_price.Text = ""; }
string data = f1.dataGridView1.Rows[row].Cells["Column1"].Value.ToString();
string data = f1GridView.Rows[row].Cells["Column1"].Value.ToString();
inputGrid(data);
}
private void inputGrid(string data)
{
dataGridView1.Rows.Clear();
// 도서명 / 저자 / 출판사 / isbn / 출간일 / 카테고리 / 품절여부
string[] tmp = data.Split('|');
@@ -53,15 +60,22 @@ namespace ISBN_Check_test
if (a % 8 == 3) { grid[3] = tmp[a]; }
if (a % 8 == 4) { grid[4] = tmp[a]; }
if (a % 8 == 5) { grid[5] = change_Date_type(tmp[a]); }
if (a % 8 == 6) { grid[6] = tmp[a]; }
if (a % 8 == 6) { grid[6] = Aladin_CategorySort(tmp[a]); }
if (a % 8 == 7) { grid[7] = tmp[a]; dataGridView1.Rows.Add(grid); }
}
}
private string change_Date_type(string date)
{
if (Call_API == "알라딘")
return String.Format("{0:yyyy/MM/dd}", DateTime.Parse(date.Remove(date.IndexOf(" G"))));
else if (Call_API == "네이버")
{
try
{
return String.Format("{0:yyyy/MM/dd}",
DateTime.Parse(date.Remove(date.IndexOf(" G"))));
}
catch { return date; }
}
if (Call_API == "네이버")
try
{
return DateTime.ParseExact(date, "yyyyMMdd", null).ToString("yyyy-MM-dd");
@@ -157,5 +171,49 @@ namespace ISBN_Check_test
{
rowidx = e.RowIndex;
}
/// <summary>
/// 재검색
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btn_ReSearch_Click(object sender, EventArgs e)
{
string[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
"pubDate", "categoryName", "stockStatus", };
API api = new API();
string type = "Title";
string query = tb_book_name.Text;
string aladin = api.Aladin(query, type, param);
if (aladin == "") return;
inputGrid(aladin);
}
string Aladin_CategorySort(string insert)
{
try
{
// 도서 분류 필요한 데이터로 재정리
int top = insert.IndexOf('>');
int mid = insert.IndexOf('>', top + 1);
int bot = insert.IndexOf('>', mid + 1);
if (bot < 0) { insert = insert.Substring(top + 1); }
else { insert = insert.Substring(top + 1, bot - top - 1); }
return insert;
}
catch
{
return insert;
}
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
}
}

View File

@@ -21,7 +21,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>+MrCwwIqdW5a7byy/y9gxOk+aEXFqsgtK5j+CUByFTI=</dsig:DigestValue>
<dsig:DigestValue>oDGHLUSiwYxsLD3eIcgv30mFLMv2XBPtto12TCuBiKE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@@ -3,7 +3,7 @@
<asmv1:assemblyIdentity name="ISBN_Check_test.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="ISBN_Check_test" version="1.0.7866.16966" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.8020.28093" language="neutral" processorArchitecture="msil" />
<commandLine file="ISBN_Check_test.exe" parameters="" />
</entryPoint>
<trustInfo>
@@ -66,14 +66,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="74752">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7866.16966" language="neutral" processorArchitecture="msil" />
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="76800">
<assemblyIdentity name="ISBN_Check_test" version="1.0.8020.28093" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>++pv0LHaDa8ziJMfnyICIlKOnuotJHtIQcdR8OfA+uQ=</dsig:DigestValue>
<dsig:DigestValue>PBtPbXDpNLIogBBAhd0sSHeOXXuVr2EUhxehjKWs9nk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@@ -230,13 +230,13 @@
<dsig:DigestValue>Qx+jN639AkukL3VOtM7n2jV0SwkhZyRLAjCNL9Lyp14=</dsig:DigestValue>
</hash>
</file>
<file name="ISBN_Check_test.pdb" size="118272">
<file name="ISBN_Check_test.pdb" size="122368">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>LHCHPQZvhBXwS5g0pB0KViIDcPqgteLoLW03r6PxZSI=</dsig:DigestValue>
<dsig:DigestValue>LHqpLQbzqW7AQgNAsA417MTjarz9ePKU/qMVRC8RamY=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

View File

@@ -21,7 +21,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>+MrCwwIqdW5a7byy/y9gxOk+aEXFqsgtK5j+CUByFTI=</dsig:DigestValue>
<dsig:DigestValue>oDGHLUSiwYxsLD3eIcgv30mFLMv2XBPtto12TCuBiKE=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>

View File

@@ -3,7 +3,7 @@
<asmv1:assemblyIdentity name="ISBN_Check_test.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="ISBN_Check_test" version="1.0.7866.16966" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.8020.28093" language="neutral" processorArchitecture="msil" />
<commandLine file="ISBN_Check_test.exe" parameters="" />
</entryPoint>
<trustInfo>
@@ -66,14 +66,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="74752">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7866.16966" language="neutral" processorArchitecture="msil" />
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="76800">
<assemblyIdentity name="ISBN_Check_test" version="1.0.8020.28093" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>++pv0LHaDa8ziJMfnyICIlKOnuotJHtIQcdR8OfA+uQ=</dsig:DigestValue>
<dsig:DigestValue>PBtPbXDpNLIogBBAhd0sSHeOXXuVr2EUhxehjKWs9nk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@@ -230,13 +230,13 @@
<dsig:DigestValue>Qx+jN639AkukL3VOtM7n2jV0SwkhZyRLAjCNL9Lyp14=</dsig:DigestValue>
</hash>
</file>
<file name="ISBN_Check_test.pdb" size="118272">
<file name="ISBN_Check_test.pdb" size="122368">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>LHCHPQZvhBXwS5g0pB0KViIDcPqgteLoLW03r6PxZSI=</dsig:DigestValue>
<dsig:DigestValue>LHqpLQbzqW7AQgNAsA417MTjarz9ePKU/qMVRC8RamY=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -47,23 +47,25 @@ namespace WindowsFormsApp1
login login = new login();
if (DialogResult.OK == login.ShowDialog(this))
{
if (DialogResult.OK == login.ShowDialog(this)) {
this.Visible = true;
}
else { this.Close(); }
else {
this.Close();
}
_DB.DBcon();
string cmd = _DB.DB_Search("User_Data", "id", User_Name);
string cmd = _DB.DB_Search("User_Data", "ID", User_Name);
DB_User_Data = _DB.DB_Send_CMD_Search(cmd);
try
{
string[] result = DB_User_Data.Split('|');
if (result[3] == null) { }
else {
else
{
toolStripLabel2.Text = result[4];
toolStripLabel1.Text = result[3];
botUserLabel.Text = result[3];
User = result[3];
}
@@ -72,13 +74,215 @@ namespace WindowsFormsApp1
cmd = _DB.DB_Select_Search("`idx`", "Comp", "comp_name", result[5]);
com_idx = _DB.DB_Send_CMD_Search(cmd).Replace("|", "");
Settings.Default.compidx = com_idx;
Settings.Default.User = toolStripLabel1.Text;
Settings.Default.User = botUserLabel.Text;
this.Text = "[ '" + com_idx + "' : " + result[4] + " - " + result[3] + "]";
isAccess();
SetBtnName();
}
catch { }
catch (Exception ex) { MessageBox.Show(ex.ToString()); }
}
#region
public void SetBtnName()
{
string Area =
"`ShortCut1`, `ShortCut2`, `ShortCut3`, `ShortCut4`, `ShortCut5`, " +
"`ShortCut6`, `ShortCut7`, `ShortCut8`, `ShortCut9`, `ShortCut10`, " +
"`ShortCut11`, `ShortCut12`";
string cmd = string.Format("SELECT {0} FROM `User_ShortCut` WHERE `id` = \"{1}\"", Area, User_Name);
string res = _DB.DB_Send_CMD_Search(cmd);
string[] ary_res = res.Split('|');
Button[] btn = {
ShortCut1, ShortCut2, ShortCut3, ShortCut4, ShortCut5,
ShortCut6, ShortCut7, ShortCut8, ShortCut9, ShortCut10,
ShortCut11, ShortCut12
};
for (int a = 0; a < btn.Length; a++)
{
if (ary_res[a] == "")
ary_res[a] = string.Format("미지정{0}", a + 1);
btn[a].Text = ary_res[a];
if (!ary_res[a].Contains("미지정"))
btn[a].Enabled = true;
}
}
private void Btn_ShortCut_Click(object sender, EventArgs e)
{
#region
Button btn = sender as Button;
string btnText = btn.Text;
string[] Div = {
"물품등록", "목록조회", "목록집계", "주문입력", "입고작업",
"재고입력 및 조회", "반품처리" };
ToolStripMenuItem[] DivT = {
, , , , ,
,
};
string[] Acc = {
"송금내역조회", "송금등록", "매입 집계", "매입 장부", "매출 입력",
"매출 입금", "매출 조회", "매출 집계", "파트타임 관리" };
ToolStripMenuItem[] AccT = {
, , , , ,
, , ,
};
ToolStripMenuItem[] TempAcc = {
, , , , ,
, , ,
};
string[] Marc = {
"마크 목록", "소장자료검색", "마크 정리", "ISBN 조회", "반입",
"반출", "복본 조사", "DLS 복본 조사", "마크 수집", "전집관리",
"검수", "저자기호", "DLS 조회", "DLS 입력", "서류작성",
"마크통계", "장비관리" };
ToolStripMenuItem[] MarcT = {
, , , iSBN조회, ,
, 1, dLS복본조사, , ,
, , DLS조회, DLS입력, ,
,
};
ToolStripMenuItem[] TempMarc = {
, , , , ,
, , , , ,
, , DLS, DLS, ,
,
};
string[] Home = {
"사용자 관리", "납품 / 거래처 관리", "주문처 관리", "도서정보 관리" };
ToolStripMenuItem[] HomeT = {
, , ,
};
string[][] MenuTotal = { Div, Acc, Marc, Home };
ToolStripMenuItem[][] MenuTotalT = { DivT, AccT, MarcT, HomeT };
ToolStripMenuItem[][] MenuCheckT = { DivT, TempAcc, TempMarc, HomeT };
int[] count = { -1, -1 };
#endregion
for (int a = 0; a < MenuTotal.Length; a++)
{
bool IsText = false;
for(int b = 0; b < MenuTotal[a].Length; b++)
{
if (MenuTotal[a][b] == btnText) {
IsText = true;
count[1] = b;
break;
}
}
if (IsText) {
count[0] = a;
break;
}
}
// 지정된게 없을경우 리턴
foreach (int a in count)
if (a == -1)
return;
// 권한설정으로 인한 리턴
if (!MenuCheckT[count[0]][count[1]].Enabled) {
MessageBox.Show("권한이 설정되지 않았습니다!");
return;
}
// 실행.
MenuTotalT[count[0]][count[1]].PerformClick();
}
#endregion
#region
private void isAccess()
{
string Area =
"`Div_ListInput`, `Div_ListLookup`, `Div_ListTotal`, `Div_OrderInput`, `Div_Inven`,"
+ "`Div_Stock`, `Div_Return`,"
+ "`Acc_SendMoneyList`, `Acc_SendMoneyInput`, `Acc_Buy`, `Acc_Sales`, `Acc_PartTime`,"
+ "`Marc_Setup`, `Marc_Work`, `Marc_Input`, `Marc_CopyCheck`, `Marc_Option`,"
+ "`Marc_DLS`, `Marc_ETC`,"
+ "`Manage_User`, `Manage_Client`, `Manage_Purchase`, `Manage_Book`";
string cmd = string.Format("SELECT {0} FROM `User_Access` WHERE `id` = \"{1}\"", Area, User_Name);
string res = _DB.DB_Send_CMD_Search(cmd);
string[] ary_res = res.Split('|');
ToolStripMenuItem[] menus =
{
, , , , ,
, ,
, , , , ,
, , , , , DLS, ,
, , ,
};
for (int a = 0; a < ary_res.Length; a++)
{
if (ary_res[a] == "0")
{
menus[a].Enabled = false;
}
}
ToolStripMenuItem[] Div = {
, , , , ,
,
};
IsMenuAccess(Div, ToolStripMenuItem);
ToolStripMenuItem[] Acc = {
, , , ,
};
IsMenuAccess(Acc, ToolStripMenuItem);
ToolStripMenuItem[] Marc = {
, , , , , DLS,
};
IsMenuAccess(Marc, ToolStripMenuItem);
ToolStripMenuItem[] Manage = {
, , ,
};
IsMenuAccess(Manage, ToolStripMenuItem);
}
private void IsMenuAccess(ToolStripMenuItem[] Menu, ToolStripMenuItem Target)
{
bool IsEnabled = true;
for (int a = 0; a < Menu.Length; a++)
{
if (Menu[a].Enabled)
IsEnabled = false;
if (!IsEnabled)
break;
}
if (IsEnabled)
Target.Enabled = false;
}
#endregion
#region
// 홈 탭 클릭이벤트
private User_Infor User_Infor;

1347
unimarc/unimarc/Marc_FillBlank.Designer.cs generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public partial class Marc_FillBlank : Form
{
public Marc_FillBlank()
{
InitializeComponent();
}
private void Marc_FillBlank_Load(object sender, EventArgs e)
{
}
}
}

View File

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

View File

@@ -96,6 +96,12 @@
<DesignTime>True</DesignTime>
<DependentUpon>Reference.svcmap</DependentUpon>
</Compile>
<Compile Include="Marc_FillBlank.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Marc_FillBlank.Designer.cs">
<DependentUpon>Marc_FillBlank.cs</DependentUpon>
</Compile>
<Compile Include="Settings.cs" />
<Compile Include="납품관리\Bring_Back.cs">
<SubType>Form</SubType>
@@ -699,6 +705,9 @@
<Compile Include="작업일지\Work_Log.Designer.cs">
<DependentUpon>Work_Log.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="Marc_FillBlank.resx">
<DependentUpon>Marc_FillBlank.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="납품관리\Bring_Back.resx">
<DependentUpon>Bring_Back.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -1 +1 @@
01f4ac01b639d352c1b8aaaec11c6204688f1d5e
02c13c381324ee7c969ccf6c53a55e2b4d05469e

View File

@@ -129,3 +129,4 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Check_Copy_Sub_List.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\Interop.SHDocVw.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.DLS_Manage.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.Marc_FillBlank.resources

View File

@@ -35,6 +35,9 @@
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DLS_Area = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DLS_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DLS_PW = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
@@ -56,7 +59,10 @@
this.Column2,
this.Column3,
this.Column4,
this.Column5});
this.Column5,
this.DLS_Area,
this.DLS_ID,
this.DLS_PW});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
@@ -101,6 +107,21 @@
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
//
// DLS_Area
//
this.DLS_Area.HeaderText = "DLS_지역";
this.DLS_Area.Name = "DLS_Area";
//
// DLS_ID
//
this.DLS_ID.HeaderText = "DLS_ID";
this.DLS_ID.Name = "DLS_ID";
//
// DLS_PW
//
this.DLS_PW.HeaderText = "DLS_PW";
this.DLS_PW.Name = "DLS_PW";
//
// Commodity_Search
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -124,5 +145,8 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn DLS_Area;
private System.Windows.Forms.DataGridViewTextBoxColumn DLS_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn DLS_PW;
}
}

View File

@@ -24,6 +24,7 @@ namespace WindowsFormsApp1.Delivery
Sales_Lookup sb;
Sales_In_Pay sip;
List_Lookup ll;
Mac.DLS_Copy dc;
public Commodity_Search(Purchase _pur)
{
InitializeComponent();
@@ -64,6 +65,11 @@ namespace WindowsFormsApp1.Delivery
InitializeComponent();
ll = _ll;
}
public Commodity_Search(Mac.DLS_Copy _dc)
{
InitializeComponent();
dc = _dc;
}
#region
@@ -71,19 +77,22 @@ namespace WindowsFormsApp1.Delivery
{
string compidx = Set_compidx();
Helper_DB db = new Helper_DB();
string Area = "`c_sangho`, `c_boss`, `c_tel`, `c_man`, `c_mantel`";
string Area = "`c_sangho`, `c_boss`, `c_tel`, `c_man`, `c_mantel`, `c_dlsArea`, `c_dlsID`, `c_dlsPW`";
db.DBcon();
string dbcmd = db.DB_Contains("Client", compidx, "c_sangho", Clinet_name, Area);
string dbcon = db.DB_Send_CMD_Search(dbcmd);
string[] res = dbcon.Split('|');
string[] grid = { "", "", "", "", "" };
string[] grid = { "", "", "", "", "", "", "", "" };
for(int a = 0; a < res.Length; a++)
{
if (a % 5 == 0) { grid[0] = res[a]; }
if (a % 5 == 1) { grid[1] = res[a]; }
if (a % 5 == 2) { grid[2] = res[a]; }
if (a % 5 == 3) { grid[3] = res[a]; }
if (a % 5 == 4) { grid[4] = res[a];
if (a % 8 == 0) { grid[0] = res[a]; }
if (a % 8 == 1) { grid[1] = res[a]; }
if (a % 8 == 2) { grid[2] = res[a]; }
if (a % 8 == 3) { grid[3] = res[a]; }
if (a % 8 == 4) { grid[4] = res[a]; }
if (a % 8 == 5) { grid[5] = res[a]; }
if (a % 8 == 6) { grid[6] = res[a]; }
if (a % 8 == 7) { grid[7] = res[a];
dataGridView1.Rows.Add(grid);
}
}
@@ -142,9 +151,16 @@ namespace WindowsFormsApp1.Delivery
if (sb != null) { sb.tb_clt.Text = ""; compidx = sb.compidx; }
if (sip != null) { sip.tb_clt.Text = ""; compidx = sip.compidx; }
if (ll != null) { ll.tb_clt.Text = ""; compidx = ll.compidx; }
if (dc != null) { dc.tb_SearchClient.Text = ""; compidx = dc.compidx; }
return compidx;
}
/// <summary>
/// 검색결과 원하는 창에 표출
/// </summary>
/// <param name="value">검색 결과</param>
/// <param name="idx">선택 인덱스</param>
private void Set_data(string value, int idx)
{
if (edit != null) { edit.New_Clit.Text = value; }
@@ -155,6 +171,13 @@ namespace WindowsFormsApp1.Delivery
if (sb != null) { sb.tb_clt.Text = value; sb.btn_Lookup_Click(null, null); }
if (sip != null) { sip.tb_clt.Text = value; }
if (ll != null) { ll.tb_clt.Text = value; }
if (dc != null) {
dc.tb_SearchClient.Text = value;
dc.lbl_Client.Text = value;
dc.lbl_ID.Text = dataGridView1.Rows[idx].Cells["DLS_ID"].Value.ToString();
dc.lbl_PW.Text = dataGridView1.Rows[idx].Cells["DLS_PW"].Value.ToString();
dc.lbl_Area.Text = dataGridView1.Rows[idx].Cells["DLS_Area"].Value.ToString();
}
}
}
}

View File

@@ -132,4 +132,13 @@
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DLS_Area.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DLS_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DLS_PW.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -28,13 +28,13 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(List_Lookup));
this.label1 = new System.Windows.Forms.Label();
this.cb_list = new System.Windows.Forms.ComboBox();
this.cb_stat = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.cb_search = new System.Windows.Forms.ComboBox();
this.tb_search = new System.Windows.Forms.TextBox();
@@ -77,9 +77,10 @@
this.lbl_pay = new System.Windows.Forms.Label();
this.lbl_count = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.printDialog1 = new System.Windows.Forms.PrintDialog();
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
this.button1 = new System.Windows.Forms.Button();
this.printDialog1 = new System.Windows.Forms.PrintDialog();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
@@ -96,15 +97,15 @@
this.label1.TabIndex = 0;
this.label1.Text = "목록";
//
// cb_list
// cb_stat
//
this.cb_list.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_list.FormattingEnabled = true;
this.cb_list.Location = new System.Drawing.Point(35, 6);
this.cb_list.Name = "cb_list";
this.cb_list.Size = new System.Drawing.Size(58, 20);
this.cb_list.TabIndex = 1;
this.cb_list.SelectedIndexChanged += new System.EventHandler(this.cb_list_SelectedIndexChanged);
this.cb_stat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_stat.FormattingEnabled = true;
this.cb_stat.Location = new System.Drawing.Point(35, 6);
this.cb_stat.Name = "cb_stat";
this.cb_stat.Size = new System.Drawing.Size(58, 20);
this.cb_stat.TabIndex = 1;
this.cb_stat.SelectedIndexChanged += new System.EventHandler(this.cb_list_SelectedIndexChanged);
//
// label2
//
@@ -135,7 +136,7 @@
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.cb_list);
this.panel1.Controls.Add(this.cb_stat);
this.panel1.Controls.Add(this.tb_search);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.cb_search);
@@ -312,14 +313,14 @@
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
@@ -337,31 +338,31 @@
this.order,
this.Column2,
this.Column3});
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle6;
this.dataGridView1.Location = new System.Drawing.Point(10, 80);
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.RowHeadersWidth = 21;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle8;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dataGridView1.Size = new System.Drawing.Size(1206, 371);
this.dataGridView1.Size = new System.Drawing.Size(1206, 547);
this.dataGridView1.TabIndex = 8;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
//
@@ -463,7 +464,7 @@
this.panel4.Controls.Add(this.lbl_pay);
this.panel4.Controls.Add(this.lbl_count);
this.panel4.Controls.Add(this.label11);
this.panel4.Location = new System.Drawing.Point(10, 457);
this.panel4.Location = new System.Drawing.Point(10, 633);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1206, 26);
this.panel4.TabIndex = 9;
@@ -508,13 +509,9 @@
this.label11.TabIndex = 0;
this.label11.Text = "목록 총 합계";
//
// printDialog1
//
this.printDialog1.UseEXDialog = true;
//
// printDocument1
//
this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_tempPage);
//
// printPreviewDialog1
//
@@ -526,11 +523,26 @@
this.printPreviewDialog1.Name = "printPreviewDialog1";
this.printPreviewDialog1.Visible = false;
//
// button1
//
this.button1.Location = new System.Drawing.Point(898, 51);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 10;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// printDialog1
//
this.printDialog1.UseEXDialog = true;
//
// List_Lookup
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1229, 494);
this.ClientSize = new System.Drawing.Size(1229, 671);
this.Controls.Add(this.button1);
this.Controls.Add(this.panel4);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel3);
@@ -558,7 +570,7 @@
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox cb_list;
private System.Windows.Forms.ComboBox cb_stat;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox cb_search;
private System.Windows.Forms.TextBox tb_search;
@@ -585,7 +597,6 @@
private System.Windows.Forms.Label lbl_pay;
private System.Windows.Forms.Label lbl_count;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.PrintDialog printDialog1;
private System.Drawing.Printing.PrintDocument printDocument1;
private System.Windows.Forms.PrintPreviewDialog printPreviewDialog1;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
@@ -604,5 +615,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
public System.Windows.Forms.TextBox tb_clt;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.PrintDialog printDialog1;
}
}

View File

@@ -17,7 +17,6 @@ namespace WindowsFormsApp1.Delivery
Helper_DB db = new Helper_DB();
List_aggregation list_a;
Main main;
string form_call;
public string call_base;
public int grididx;
public string compidx;
@@ -29,22 +28,20 @@ namespace WindowsFormsApp1.Delivery
{
InitializeComponent();
list_a = list_ag;
form_call = "list_a";
compidx = list_a.compidx;
}
public List_Lookup(Main _main)
{
InitializeComponent();
main = _main;
form_call = "main";
compidx = main.com_idx;
}
private void List_Lookup_Load(object sender, EventArgs e)
{
db.DBcon();
string[] combo_list = { "진행", "완료" };
cb_list.Items.AddRange(combo_list);
cb_list.SelectedIndex = 0;
cb_stat.Items.AddRange(combo_list);
cb_stat.SelectedIndex = 0;
string[] combo_search = { "도서명", "출판사" };
cb_search.Items.AddRange(combo_search);
@@ -84,21 +81,22 @@ namespace WindowsFormsApp1.Delivery
}
#endregion
int cnt = 0, pageNo = 1;
PrinterSettings ps = new PrinterSettings();
private void btn_print_Click(object sender, EventArgs e) // 인쇄 기능
{
PrinterSettings ps = new PrinterSettings();
ps.FromPage = 12;
ps.PrintRange = PrintRange.CurrentPage;
ps.ToPage = 13;
if (dataGridView1.Rows.Count < 1)
{
MessageBox.Show("인쇄할 목록이 없습니다!");
return;
}
// 여백 설정
printDocument1.DefaultPageSettings.Margins.Top = 10;
printDocument1.DefaultPageSettings.Margins.Left = 10;
printDocument1.DefaultPageSettings.Margins.Right = 10;
printDocument1.DefaultPageSettings.Margins.Bottom = 10;
// 용지 방향
printDocument1.DefaultPageSettings.Landscape = true; // 가로(true), 세로(false)
// 용지 방향 가로(true), 세로(false)
printDocument1.DefaultPageSettings.Landscape = true;
// 용지 크기
printDocument1.DefaultPageSettings.PaperSize =
@@ -114,11 +112,126 @@ namespace WindowsFormsApp1.Delivery
pageNo = 1;
}
}
private void button1_Click(object sender, EventArgs e)
{
string x = ps.DefaultPageSettings.PrintableArea.ToString();
string y = ps.DefaultPageSettings.PrintableArea.ToString();
string landscape = ps.DefaultPageSettings.Landscape.ToString();
string size = ps.DefaultPageSettings.PaperSize.ToString();
string msg = string.Format("x:{0}\n, y:{1}\n, 가로:{2}\n, 사이즈:{3}\n", x, y, landscape, size);
MessageBox.Show(msg);
}
private void printDocument1_tempPage(object sender, PrintPageEventArgs e)
{
PrintGrid(dataGridView1, e);
cnt = 0;
pageNo = 1;
}
private void PrintGrid(DataGridView gridView, PrintPageEventArgs e)
{
Graphics g = e.Graphics;
// 페이지 전체넓이 printPreviewDialog.Width
int dialogWidth = 528;
// 컬럼 안에 있는 값들 가운데로 정렬하기 위해 선언
StringFormat sf = new StringFormat();
sf.Alignment = StringAlignment.Center;
// 시작점 위치, datagrid 1개의 컬럼 가로길이
int width, width1;
// 시작점 x좌표
int startWidth = 10;
// 시작점 y좌표
int startHeight = 140;
// datagrid 1개의 컬럼 하나의 높이
int avgHeight = gridView.Rows[0].Height;
int temp = 0; // row개수 세어줄 것. cnt역할.
g.DrawString("목록 조회", new Font("Arial", 20, FontStyle.Bold), Brushes.Black, dialogWidth / 2, 40);
g.DrawString("인쇄일: " + DateTime.Now.ToString("yyyy/MM/dd"), new Font("Arial", 13), Brushes.Black, dialogWidth - 20, 80);
g.DrawString("페이지번호: " + pageNo, new Font("Arial", 13), Brushes.Black, dialogWidth - 20, 100);
for (int a = 0; a < gridView.ColumnCount; a++) // columnCount는 일정
{
if (!gridView.Columns[a].Visible) { continue; }
if (a == 0)
{
width = 0;
width1 = gridView.Columns[a].Width + 15;
}
else if (a >= 1 && a < gridView.ColumnCount - 1)
{
width = gridView.Columns[a - 1].Width + 15;
width1 = gridView.Columns[a].Width + 15;
}
else
{
width = gridView.Columns[a - 1].Width + 15;
width1 = gridView.Columns[a].Width + 40;
}
RectangleF drawRect = new RectangleF((float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
g.DrawRectangle(Pens.Black, (float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
g.DrawString(gridView.Columns[a].HeaderText,
new Font("Arial", 12, FontStyle.Bold), Brushes.Black, drawRect, sf);
startWidth += width;
}
startHeight += avgHeight;
for (int a = cnt; a < gridView.RowCount; a++)
{
startWidth = 10;
for (int b = 0; b < gridView.ColumnCount; b++)
{
if (!gridView.Columns[b].Visible) { continue; }
if (b == 0)
{
width = 0;
width1 = gridView.Columns[b].Width + 15;
}
else if (b >= 1 && b <= gridView.ColumnCount - 2)
{
width = gridView.Columns[b - 1].Width + 15;
width1 = gridView.Columns[b].Width + 15;
}
else
{
width = gridView.Columns[b - 1].Width + 15;
width1 = gridView.Columns[b].Width + 40;
}
if (b == 2) { sf.LineAlignment = StringAlignment.Near; }
else { sf.LineAlignment = StringAlignment.Center; }
RectangleF drawRect = new RectangleF((float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
g.DrawRectangle(Pens.Black, (float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
g.DrawString(gridView.Rows[a].Cells[b].FormattedValue.ToString(),
new Font("Arial", 7), Brushes.Black, drawRect, sf);
startWidth += width;
}
startHeight += avgHeight;
temp++;
cnt++;
if (temp % 23 == 0)
{
e.HasMorePages = true;
pageNo++;
return;
}
}
}
private void printDocument1_PrintPage(object sender, PrintPageEventArgs e)
{
if (dataGridView1.Rows.Count < 1) {
MessageBox.Show("인쇄할 목록이 없습니다!");
return; }
int dialogWidth = 528; // 페이지 전체 넓이
StringFormat sf = new StringFormat();
@@ -132,9 +245,11 @@ namespace WindowsFormsApp1.Delivery
int avgHeight = dataGridView1.Rows[0].Height; // girdview 컬럼 하나의 높이
int temp = 0; // row 개수 세어줄 것. cnt의 역할
avgHeight = avgHeight / 3 * 4;
e.Graphics.DrawString("목록 조회", new Font("Arial", 20, FontStyle.Bold), Brushes.Black, dialogWidth / 2, 40);
e.Graphics.DrawString("인쇄일: " + DateTime.Now.ToString("yyyy/MM/dd"), new Font("Arial", 13), Brushes.Black, dialogWidth - 20, 80);
e.Graphics.DrawString("페이지번호: " + pageNo, new Font("Arial", 13), Brushes.Black, dialogWidth - 20, 100);
for(int a = 0; a < dataGridView1.ColumnCount; a++) // columnCount는 일정
{
if (!dataGridView1.Columns[a].Visible) { continue; }
@@ -213,12 +328,7 @@ namespace WindowsFormsApp1.Delivery
private void mk_grid()
{
dataGridView1.Rows.Clear();
string list = cb_list_name.Text;
string area = "`idx`, `header`, `num`, `book_name`, `author`, `book_comp`, " +
"`count`, `pay`, `total`, `stat`, `etc`, " +
"`list_name`, `order`, `import`, `export`, `set_book_name`";
string cmd = db.DB_Select_Search(area, "Obj_List_Book", "compidx", compidx);
string db_res = db.DB_Send_CMD_Search(cmd);
string db_res = db.DB_Send_CMD_Search(QueryFilter());
string[] data = db_res.Split('|');
string[] mkgrid = { "", "", "", "", "",
"", "", "", "", "",
@@ -246,13 +356,59 @@ namespace WindowsFormsApp1.Delivery
if (data[a] != "") // 세트분할도서 미표시
continue;
if (filter(mkgrid))
{
dataGridView1.Rows.Add(mkgrid);
}
dataGridView1.Rows.Add(mkgrid);
// if (filter(mkgrid))
}
}
}
private string QueryFilter()
{
string[] ary_where = { "", "", "", "", "", "" };
ary_where[0] = string.Format("`list_name` IN (SELECT `list_name` FROM `Obj_List` WHERE `state` = \"{0}\")", cb_stat.Text);
if (tb_search.Text != "")
{
if (cb_search.SelectedIndex == 0) // 도서명
ary_where[1] = string.Format("`book_name` like \"%{0}%\"", tb_search.Text);
else if (cb_search.SelectedIndex == 1) // 출판사
ary_where[1] = string.Format("`book_comp` like \"%{0}%\"", tb_search.Text);
}
if (tb_clt.Text != "")
{
ary_where[2] = string.Format("`order` like \"%{0}%\"", tb_clt.Text);
}
if (cb_list_name.SelectedItem.ToString() != "전체")
{
ary_where[3] = string.Format("`list_name` = \"{0}\"", cb_list_name.Text);
}
if (cb_import.SelectedItem.ToString() != "전체")
{
ary_where[4] = string.Format("`import` = \"{0}\"", cb_import.Text);
}
if (cb_export.SelectedItem.ToString() != "전체")
{
ary_where[5] = string.Format("`export` = \"{0}\"", cb_export.Text);
}
string where = "";
for (int a = 0; a < ary_where.Length; a++)
{
if (ary_where[a] != "" && where != "")
where += " AND " + ary_where[a];
else if (ary_where[a] != "")
where += ary_where[a];
}
string area = "`idx`, `header`, `num`, `book_name`, `author`, `book_comp`, " +
"`count`, `pay`, `total`, `stat`, `etc`, " +
"`list_name`, `order`, `import`, `export`, `set_book_name`";
// string cmd = db.DB_Select_Search(area, "Obj_List_Book", "compidx", compidx);
string cmd = string.Format("SELECT {0} FROM {1} WHERE {2};", area, "Obj_List_Book", where);
return cmd;
}
private bool filter(string[] array)
{
@@ -353,7 +509,7 @@ namespace WindowsFormsApp1.Delivery
{
cb_list_name.Items.Clear();
// 진행과 완료를 구분지어 명단목록 작성
string state = cb_list.Text;
string state = cb_stat.Text;
string charge = cb_charge.Text;
string search_table = "list_name";
string cmd;
@@ -373,17 +529,21 @@ namespace WindowsFormsApp1.Delivery
for (int a = 0; a < data.Length - 1; a++) {
cb_list_name.Items.Add(data[a]);
}
for(int a = 0; a < cb_list_name.Items.Count; a++) {
if(call_base == cb_list_name.Items[a].ToString()) {
for (int a = 0; a < cb_list_name.Items.Count; a++)
{
if (call_base == cb_list_name.Items[a].ToString())
{
cb_list_name.SelectedIndex = a;
btn_lookup_Click(null, null);
break;
break;
}
else { cb_list_name.SelectedIndex = 0; }
}
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0) return;
Book_Lookup bl = new Book_Lookup(this);
bl.TopMost = true;
bl.Lookup_Load_tmp(dataGridView1.Rows[e.RowIndex].Cells["idx"].Value.ToString());

View File

@@ -162,14 +162,11 @@
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="printDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>-2, -3</value>
</metadata>
<metadata name="printDocument1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>119, -3</value>
<value>1, -5</value>
</metadata>
<metadata name="printPreviewDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>262, -3</value>
<value>125, -3</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="printPreviewDialog1.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -345,6 +342,9 @@
wf+0BQAAgAUAAIAFAACAAQAAgAHB/4ABAACAAQAAgAEAALwBAAC8AQAAvAHB/4ABbP///5H/
</value>
</data>
<metadata name="printDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>289, -3</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>

View File

@@ -61,7 +61,6 @@
this.combo_user = new System.Windows.Forms.ComboBox();
this.btn_process = new System.Windows.Forms.Button();
this.btn_ISBN = new System.Windows.Forms.Button();
this.btn_date = new System.Windows.Forms.Button();
this.btn_checkup = new System.Windows.Forms.Button();
this.btn_print = new System.Windows.Forms.Button();
this.combo_year = new System.Windows.Forms.ComboBox();
@@ -361,7 +360,7 @@
//
// btn_process
//
this.btn_process.Location = new System.Drawing.Point(308, 5);
this.btn_process.Location = new System.Drawing.Point(306, 5);
this.btn_process.Name = "btn_process";
this.btn_process.Size = new System.Drawing.Size(65, 23);
this.btn_process.TabIndex = 4;
@@ -371,7 +370,7 @@
//
// btn_ISBN
//
this.btn_ISBN.Location = new System.Drawing.Point(166, 5);
this.btn_ISBN.Location = new System.Drawing.Point(212, 5);
this.btn_ISBN.Name = "btn_ISBN";
this.btn_ISBN.Size = new System.Drawing.Size(65, 23);
this.btn_ISBN.TabIndex = 2;
@@ -379,20 +378,9 @@
this.btn_ISBN.UseVisualStyleBackColor = true;
this.btn_ISBN.Click += new System.EventHandler(this.btn_ISBN_Click);
//
// btn_date
//
this.btn_date.Enabled = false;
this.btn_date.Location = new System.Drawing.Point(237, 5);
this.btn_date.Name = "btn_date";
this.btn_date.Size = new System.Drawing.Size(65, 23);
this.btn_date.TabIndex = 3;
this.btn_date.Text = "일 정";
this.btn_date.UseVisualStyleBackColor = true;
this.btn_date.Click += new System.EventHandler(this.btn_date_Click);
//
// btn_checkup
//
this.btn_checkup.Location = new System.Drawing.Point(95, 5);
this.btn_checkup.Location = new System.Drawing.Point(118, 5);
this.btn_checkup.Name = "btn_checkup";
this.btn_checkup.Size = new System.Drawing.Size(65, 23);
this.btn_checkup.TabIndex = 1;
@@ -463,7 +451,6 @@
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label10);
this.panel1.Controls.Add(this.btn_ISBN);
this.panel1.Controls.Add(this.btn_date);
this.panel1.Controls.Add(this.btn_apply);
this.panel1.Controls.Add(this.btn_checkup);
this.panel1.Controls.Add(this.btn_process);
@@ -889,7 +876,6 @@
private System.Windows.Forms.ComboBox combo_user;
private System.Windows.Forms.Button btn_process;
private System.Windows.Forms.Button btn_ISBN;
private System.Windows.Forms.Button btn_date;
private System.Windows.Forms.Button btn_checkup;
private System.Windows.Forms.Button btn_print;
private System.Windows.Forms.ComboBox combo_year;

View File

@@ -59,7 +59,7 @@ namespace WindowsFormsApp1.Delivery
if (a == user_name.Length - 1) { break; }
combo_user.Items.Add(user_name[a]);
}
combo_user.SelectedItem = main.toolStripLabel1.Text;
combo_user.SelectedItem = main.botUserLabel.Text;
}
public void btn_lookup_Click(object sender, EventArgs e) // 조회
{
@@ -363,6 +363,7 @@ namespace WindowsFormsApp1.Delivery
int startHeight = 140; // 시작 y좌표
int avgHeight = dataGridView1.Rows[0].Height; // gridview 컬럼 하나의 높이
int temp = 0;
avgHeight = avgHeight / 3 * 4;
e.Graphics.DrawString("제목", new Font("Arial", 20, FontStyle.Bold), Brushes.Black, dialogWidth / 2, 40);
e.Graphics.DrawString("인쇄일 : " + DateTime.Now.ToString("yyyy/MM/dd"), new Font("Arial", 13), Brushes.Black, dialogWidth - 20, 80);
@@ -370,6 +371,7 @@ namespace WindowsFormsApp1.Delivery
for (int i = 0; i < dataGridView1.ColumnCount; i++)
{
if (!dataGridView1.Columns[i].Visible) continue;
if (i == 0)
{
width = 0;
@@ -385,34 +387,40 @@ namespace WindowsFormsApp1.Delivery
width = this.dataGridView1.Columns[i - 1].Width + 15;
width1 = this.dataGridView1.Columns[i].Width + 40;
}
RectangleF drawRect = new RectangleF((float)(startWidth + width), (float)startHeight, (float)width1, avgHeight);
e.Graphics.DrawRectangle(Pens.Black, (float)(startWidth + width), (float)startHeight, (float)width1, avgHeight);
e.Graphics.DrawString(dataGridView1.Columns[i].HeaderText, new Font("Arial", 12, FontStyle.Bold), Brushes.Black, drawRect, sf);
RectangleF drawRect = new RectangleF((float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
e.Graphics.DrawRectangle(Pens.Black, (float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
e.Graphics.DrawString(dataGridView1.Columns[i].HeaderText,
new Font("Arial", 12, FontStyle.Bold), Brushes.Black, drawRect, sf);
startWidth += width;
}
startHeight += avgHeight;
for (int i = cnt; i < dataGridView1.RowCount - 1; i++) {
for (int i = cnt; i < dataGridView1.RowCount - 1; i++)
{
startWidth = 10;
for(int j = 0; j < dataGridView1.ColumnCount; j++) {
if (!dataGridView1.Columns[j].Visible) continue;
if (j == 0) {
width = 0;
width1 = this.dataGridView1.Columns[j].Width + 15;
}
else if (j >= 1 && j <= dataGridView1.ColumnCount - 2)
{
else if (j >= 1 && j <= dataGridView1.ColumnCount - 2) {
width = this.dataGridView1.Columns[j - 1].Width + 15;
width1 = this.dataGridView1.Columns[j].Width + 15;
}
else
{
else {
width = this.dataGridView1.Columns[j - 1].Width + 15;
width1 = this.dataGridView1.Columns[j].Width + 40;
}
RectangleF drawRect = new RectangleF((float)(startWidth + width), (float)startHeight, (float)width1, avgHeight);
e.Graphics.DrawRectangle(Pens.Black, (float)(startWidth + width), (float)startHeight, (float)width1, avgHeight);
e.Graphics.DrawString(dataGridView1.Rows[i].Cells[j].FormattedValue.ToString(), new Font("Arial", 9), Brushes.Black, drawRect, sf);
RectangleF drawRect = new RectangleF((float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
e.Graphics.DrawRectangle(Pens.Black, (float)(startWidth + width) / 4 * 3,
(float)startHeight, (float)width1 / 4 * 3, avgHeight);
e.Graphics.DrawString(dataGridView1.Rows[i].Cells[j].FormattedValue.ToString(),
new Font("Arial", 9), Brushes.Black, drawRect, sf);
startWidth += width;
}
startHeight += avgHeight;
@@ -460,8 +468,7 @@ namespace WindowsFormsApp1.Delivery
string textBox = ((TextBox)sender).Name;
switch (textBox) {
case "tb_clt":
if (e.KeyCode == Keys.Enter)
{
if (e.KeyCode == Keys.Enter) {
Commodity_Search sea = new Commodity_Search(this);
sea.Clinet_name = tb_clt.Text;
sea.Show();
@@ -469,13 +476,9 @@ namespace WindowsFormsApp1.Delivery
break;
case "tb_dlv":
if (e.KeyCode == Keys.Enter)
{
btn_lookup_Click(null, null);
}
break;
}
}
private void combo_state_SelectedIndexChanged(object sender, EventArgs e)
{
@@ -501,14 +504,9 @@ namespace WindowsFormsApp1.Delivery
}
// gird 선택시 우측란에 해당 정보로 초기화 및 최신화
if(e.KeyCode == Keys.Up)
if(e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
{
if (row > 0) { row -= 1; }
infor_Update(row);
}
if (e.KeyCode == Keys.Down)
{
if (row < dataGridView1.Rows.Count-1) { row += 1; }
int row = dataGridView1.CurrentRow.Index;
infor_Update(row);
}
}

View File

@@ -52,7 +52,7 @@
this.tb_PS = new System.Windows.Forms.TextBox();
this.btn_lookup = new System.Windows.Forms.Button();
this.btn_Reset_Order = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.btn_AutoOrder = new System.Windows.Forms.Button();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.btn_All_chk = new System.Windows.Forms.Button();
this.btn_All_unchk = new System.Windows.Forms.Button();
@@ -287,15 +287,15 @@
this.btn_Reset_Order.UseVisualStyleBackColor = true;
this.btn_Reset_Order.Click += new System.EventHandler(this.btn_Reset_Order_Click);
//
// button8
// btn_AutoOrder
//
this.button8.Location = new System.Drawing.Point(173, 111);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(75, 23);
this.button8.TabIndex = 34;
this.button8.Text = "자동주문처";
this.button8.UseVisualStyleBackColor = true;
this.button8.Visible = false;
this.btn_AutoOrder.Location = new System.Drawing.Point(173, 111);
this.btn_AutoOrder.Name = "btn_AutoOrder";
this.btn_AutoOrder.Size = new System.Drawing.Size(75, 23);
this.btn_AutoOrder.TabIndex = 34;
this.btn_AutoOrder.Text = "자동주문처";
this.btn_AutoOrder.UseVisualStyleBackColor = true;
this.btn_AutoOrder.Click += new System.EventHandler(this.btn_AutoOrder_Click);
//
// checkBox3
//
@@ -710,7 +710,7 @@
this.Controls.Add(this.btn_All_unchk);
this.Controls.Add(this.btn_All_chk);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.button8);
this.Controls.Add(this.btn_AutoOrder);
this.Controls.Add(this.btn_Reset_Order);
this.Name = "Order_input";
this.Text = "주문입력";
@@ -748,7 +748,7 @@
private System.Windows.Forms.TextBox tb_PS;
private System.Windows.Forms.Button btn_lookup;
private System.Windows.Forms.Button btn_Reset_Order;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.Button btn_AutoOrder;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button btn_All_chk;
private System.Windows.Forms.Button btn_All_unchk;

View File

@@ -56,7 +56,7 @@ namespace WindowsFormsApp1.Delivery
if (a == user_name.Length - 1) { break; }
cb_user.Items.Add(user_name[a]);
}
cb_user.SelectedItem = main.toolStripLabel1.Text;
cb_user.SelectedItem = main.botUserLabel.Text;
// 상태 구분
string[] state = { "미입고", "입고", "전체" };
@@ -719,5 +719,30 @@ namespace WindowsFormsApp1.Delivery
else { return; }
}
}
private void btn_AutoOrder_Click(object sender, EventArgs e)
{
// SELECT `sangho`
// FROM `Purchase`
// WHERE idx = (SELECT `puridx` FROM `IndexWord` WHERE `word` = "특별한서재");
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
string book_comp = dataGridView1.Rows[a].Cells["book_comp"].Value.ToString();
string cmdSub = string.Format(
"SELECT `puridx` FROM `IndexWord` WHERE `word` = \"{0}\" AND `compidx` = \"{1}\"", book_comp, compidx);
string cmd = string.Format(
"SELECT `sangho` " +
"FROM `Purchase` " +
"WHERE `idx` = ({0});", cmdSub);
string res = db.DB_Send_CMD_Search(cmd);
string[] pur = res.Split('|');
dataGridView1.Rows[a].Cells["order"].Value = pur[0];
}
}
}
}

View File

@@ -29,32 +29,379 @@
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Check = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel2 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel();
this.rBtn_ISBN = new System.Windows.Forms.RadioButton();
this.rBtn_BookName = new System.Windows.Forms.RadioButton();
this.label2 = new System.Windows.Forms.Label();
this.btn_Search = new System.Windows.Forms.Button();
this.lbl_PW = new System.Windows.Forms.Label();
this.lbl_Check = new System.Windows.Forms.Label();
this.lbl_Area = new System.Windows.Forms.Label();
this.lbl_ID = new System.Windows.Forms.Label();
this.lbl_Client = new System.Windows.Forms.Label();
this.tb_SearchClient = new System.Windows.Forms.TextBox();
this.btn_Close = new System.Windows.Forms.Button();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.panel4 = new System.Windows.Forms.Panel();
this.panel7 = new System.Windows.Forms.Panel();
this.panel6 = new System.Windows.Forms.Panel();
this.btn_Back = new System.Windows.Forms.Button();
this.btn_Forward = new System.Windows.Forms.Button();
this.tb_URL = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel2.SuspendLayout();
this.panel5.SuspendLayout();
this.panel4.SuspendLayout();
this.panel7.SuspendLayout();
this.panel6.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(371, 219);
this.label1.Location = new System.Drawing.Point(7, 13);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(106, 12);
this.label1.TabIndex = 5;
this.label1.Text = "마크관리_DLS복본";
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 0;
this.label1.Text = "납품처명";
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(364, 715);
this.panel1.TabIndex = 1;
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 70);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(362, 643);
this.panel3.TabIndex = 4;
//
// dataGridView1
//
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Book_name,
this.ISBN,
this.Check});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 31;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(360, 641);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// Book_name
//
this.Book_name.HeaderText = "도서명";
this.Book_name.Name = "Book_name";
this.Book_name.Width = 140;
//
// ISBN
//
this.ISBN.HeaderText = "ISBN";
this.ISBN.Name = "ISBN";
//
// Check
//
this.Check.HeaderText = "Y/N";
this.Check.Name = "Check";
this.Check.Width = 70;
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.panel5);
this.panel2.Controls.Add(this.lbl_PW);
this.panel2.Controls.Add(this.lbl_Check);
this.panel2.Controls.Add(this.lbl_Area);
this.panel2.Controls.Add(this.lbl_ID);
this.panel2.Controls.Add(this.lbl_Client);
this.panel2.Controls.Add(this.label1);
this.panel2.Controls.Add(this.tb_SearchClient);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(362, 70);
this.panel2.TabIndex = 3;
//
// panel5
//
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel5.Controls.Add(this.rBtn_ISBN);
this.panel5.Controls.Add(this.rBtn_BookName);
this.panel5.Controls.Add(this.label2);
this.panel5.Controls.Add(this.btn_Search);
this.panel5.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel5.Location = new System.Drawing.Point(0, 37);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(360, 31);
this.panel5.TabIndex = 4;
//
// rBtn_ISBN
//
this.rBtn_ISBN.AutoSize = true;
this.rBtn_ISBN.Checked = true;
this.rBtn_ISBN.Location = new System.Drawing.Point(185, 7);
this.rBtn_ISBN.Name = "rBtn_ISBN";
this.rBtn_ISBN.Size = new System.Drawing.Size(51, 16);
this.rBtn_ISBN.TabIndex = 4;
this.rBtn_ISBN.TabStop = true;
this.rBtn_ISBN.Text = "ISBN";
this.rBtn_ISBN.UseVisualStyleBackColor = true;
//
// rBtn_BookName
//
this.rBtn_BookName.AutoSize = true;
this.rBtn_BookName.Location = new System.Drawing.Point(98, 7);
this.rBtn_BookName.Name = "rBtn_BookName";
this.rBtn_BookName.Size = new System.Drawing.Size(59, 16);
this.rBtn_BookName.TabIndex = 4;
this.rBtn_BookName.Text = "도서명";
this.rBtn_BookName.UseVisualStyleBackColor = true;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색조건";
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(277, 4);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(75, 23);
this.btn_Search.TabIndex = 2;
this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true;
this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
//
// lbl_PW
//
this.lbl_PW.AutoSize = true;
this.lbl_PW.Location = new System.Drawing.Point(297, 37);
this.lbl_PW.Name = "lbl_PW";
this.lbl_PW.Size = new System.Drawing.Size(23, 12);
this.lbl_PW.TabIndex = 3;
this.lbl_PW.Text = "PW";
//
// lbl_Check
//
this.lbl_Check.AutoSize = true;
this.lbl_Check.Location = new System.Drawing.Point(284, 13);
this.lbl_Check.Name = "lbl_Check";
this.lbl_Check.Size = new System.Drawing.Size(0, 12);
this.lbl_Check.TabIndex = 3;
this.lbl_Check.TextChanged += new System.EventHandler(this.lbl_Area_TextChanged);
//
// lbl_Area
//
this.lbl_Area.AutoSize = true;
this.lbl_Area.Location = new System.Drawing.Point(111, 37);
this.lbl_Area.Name = "lbl_Area";
this.lbl_Area.Size = new System.Drawing.Size(31, 12);
this.lbl_Area.TabIndex = 3;
this.lbl_Area.Text = "Area";
this.lbl_Area.TextChanged += new System.EventHandler(this.lbl_Area_TextChanged_1);
//
// lbl_ID
//
this.lbl_ID.AutoSize = true;
this.lbl_ID.Location = new System.Drawing.Point(185, 37);
this.lbl_ID.Name = "lbl_ID";
this.lbl_ID.Size = new System.Drawing.Size(16, 12);
this.lbl_ID.TabIndex = 3;
this.lbl_ID.Text = "ID";
//
// lbl_Client
//
this.lbl_Client.AutoSize = true;
this.lbl_Client.Location = new System.Drawing.Point(7, 37);
this.lbl_Client.Name = "lbl_Client";
this.lbl_Client.Size = new System.Drawing.Size(37, 12);
this.lbl_Client.TabIndex = 3;
this.lbl_Client.Text = "Client";
//
// tb_SearchClient
//
this.tb_SearchClient.Location = new System.Drawing.Point(65, 9);
this.tb_SearchClient.Name = "tb_SearchClient";
this.tb_SearchClient.Size = new System.Drawing.Size(288, 21);
this.tb_SearchClient.TabIndex = 1;
this.tb_SearchClient.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_SearchClient_KeyDown);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(820, 8);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 2;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(0, 0);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.ScriptErrorsSuppressed = true;
this.webBrowser1.Size = new System.Drawing.Size(974, 675);
this.webBrowser1.TabIndex = 5;
this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
//
// panel4
//
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.panel7);
this.panel4.Controls.Add(this.panel6);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(364, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(976, 715);
this.panel4.TabIndex = 2;
//
// panel7
//
this.panel7.Controls.Add(this.webBrowser1);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(0, 38);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(974, 675);
this.panel7.TabIndex = 7;
//
// panel6
//
this.panel6.Controls.Add(this.label3);
this.panel6.Controls.Add(this.btn_Back);
this.panel6.Controls.Add(this.btn_Forward);
this.panel6.Controls.Add(this.tb_URL);
this.panel6.Controls.Add(this.btn_Close);
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Location = new System.Drawing.Point(0, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(974, 38);
this.panel6.TabIndex = 6;
//
// btn_Back
//
this.btn_Back.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Back.Location = new System.Drawing.Point(10, 8);
this.btn_Back.Name = "btn_Back";
this.btn_Back.Size = new System.Drawing.Size(43, 23);
this.btn_Back.TabIndex = 1;
this.btn_Back.Text = "<<";
this.btn_Back.UseVisualStyleBackColor = true;
this.btn_Back.Click += new System.EventHandler(this.btn_Back_Click);
//
// btn_Forward
//
this.btn_Forward.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_Forward.Location = new System.Drawing.Point(59, 8);
this.btn_Forward.Name = "btn_Forward";
this.btn_Forward.Size = new System.Drawing.Size(43, 23);
this.btn_Forward.TabIndex = 1;
this.btn_Forward.Text = ">>";
this.btn_Forward.UseVisualStyleBackColor = true;
this.btn_Forward.Click += new System.EventHandler(this.btn_Forward_Click);
//
// tb_URL
//
this.tb_URL.Location = new System.Drawing.Point(108, 9);
this.tb_URL.Name = "tb_URL";
this.tb_URL.Size = new System.Drawing.Size(706, 21);
this.tb_URL.TabIndex = 0;
this.tb_URL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_URL_KeyDown);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(910, 13);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 3;
this.label3.Text = " ";
//
// DLS_Copy
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.label1);
this.ClientSize = new System.Drawing.Size(1340, 715);
this.Controls.Add(this.panel4);
this.Controls.Add(this.panel1);
this.Name = "DLS_Copy";
this.Text = "DLS_Copy";
this.Text = "DLS 복본조사";
this.Load += new System.EventHandler(this.DLS_Copy_Load);
this.panel1.ResumeLayout(false);
this.panel3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.panel5.ResumeLayout(false);
this.panel5.PerformLayout();
this.panel4.ResumeLayout(false);
this.panel7.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Button btn_Close;
public System.Windows.Forms.TextBox tb_SearchClient;
public System.Windows.Forms.Label lbl_PW;
public System.Windows.Forms.Label lbl_ID;
public System.Windows.Forms.Label lbl_Client;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.RadioButton rBtn_ISBN;
private System.Windows.Forms.RadioButton rBtn_BookName;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btn_Search;
private System.Windows.Forms.DataGridViewTextBoxColumn Book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
private System.Windows.Forms.DataGridViewTextBoxColumn Check;
public System.Windows.Forms.Label lbl_Area;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.TextBox tb_URL;
private System.Windows.Forms.Button btn_Back;
private System.Windows.Forms.Button btn_Forward;
private System.Windows.Forms.Panel panel7;
public System.Windows.Forms.Label lbl_Check;
private System.Windows.Forms.Label label3;
}
}

View File

@@ -13,10 +13,306 @@ namespace WindowsFormsApp1.Mac
public partial class DLS_Copy : Form
{
Main main;
public string compidx;
public DLS_Copy(Main _main)
{
InitializeComponent();
main = _main;
compidx = main.com_idx;
}
private void DLS_Copy_Load(object sender, EventArgs e)
{
webBrowser1.Navigate("https://reading.jnei.go.kr/r/newReading/member/loginForm.jsp");
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Excel_to_DataGridView(sender, e);
}
private void tb_SearchClient_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
// 검색 함수
ClientSearch();
}
}
#region KeyDown SUB
private void ClientSearch()
{
Delivery.Commodity_Search cs = new Delivery.Commodity_Search(this);
cs.Clinet_name = tb_SearchClient.Text;
cs.Show();
}
#endregion
private void lbl_Area_TextChanged_1(object sender, EventArgs e)
{
lbl_Check.Text = lbl_Area.Text;
}
private void lbl_Area_TextChanged(object sender, EventArgs e)
{
if (lbl_Client.Text == "Client") {
MessageBox.Show("납품처명을 선택해주세요");
return;
}
if (lbl_Area.Text == "") {
MessageBox.Show("설정된 지역이 없습니다. 납품처 관리에서 확인해주세요.");
return;
}
string dlsArea = lbl_Area.Text;
string code = SetArea(dlsArea);
string url = "";
webBrowser1.Navigate("https://reading.jnei.go.kr/r/newReading/member/loginForm.jsp");
Delay(2000);
HtmlElementCollection combo = webBrowser1.Document.GetElementsByTagName("option");
foreach (HtmlElement Select in combo)
{
if (Select.Id == code)
url = Select.GetAttribute("value");
}
url = url.Replace("http", "https");
webBrowser1.Navigate(url + "/r/newReading/member/loginForm.jsp");
bool isWebComplite = false;
while (!isWebComplite)
{
Delay(500);
if (lbl_Check.Text == lbl_Area.Text) {
isWebComplite = true;
break;
}
}
if (isWebComplite)
DLS_Login(url);
}
private void DLS_Login(string url)
{
if (lbl_ID.Text == "" || lbl_PW.Text == "") {
MessageBox.Show("ID 혹은 PW가 없습니다.");
return;
}
string ID = lbl_ID.Text;
string PW = lbl_PW.Text;
webBrowser1.Document.GetElementById("s_id").SetAttribute("value", ID);
webBrowser1.Document.GetElementById("s_pwd").SetAttribute("value", PW);
HtmlElementCollection button = webBrowser1.Document.GetElementsByTagName("button");
foreach (HtmlElement SearchButton in button)
{
if (SearchButton.Id == "s_login")
SearchButton.InvokeMember("click");
}
Delay(4000);
webBrowser1.Navigate(url + "/r/dls_new/bookInfo/collectionFormMA.jsp");
}
private void btn_Search_Click(object sender, EventArgs e)
{
if (dataGridView1.Rows[0].Cells["ISBN"].Value == null && rBtn_ISBN.Checked) {
MessageBox.Show("ISBN이 입력되지않았습니다!");
return;
}
if (dataGridView1.Rows[0].Cells["Book_name"].Value == null && rBtn_BookName.Checked) {
MessageBox.Show("도서명이 입력되지않았습니다!");
return;
}
bool isISBN = rBtn_ISBN.Checked;
SearchCopy(isISBN);
MessageBox.Show("완료되었습니다.");
}
#region SearchClick_Sub
private void SearchCopy(bool isISBN)
{
if (!webBrowser1.Url.AbsoluteUri.Contains("collectionFormMA")) {
MessageBox.Show("자료관리 창이 아닙니다!");
return;
}
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (isISBN) {
string Target = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
SearchISBN(Target, a);
}
else {
string Target = dataGridView1.Rows[a].Cells["Book_name"].Value.ToString();
SearchName(Target, a);
}
}
}
private void SearchName(string Target, int row)
{
HtmlElementCollection search = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement Search in search)
{
if (Search.Id == "bib1")
Search.SetAttribute("value", Target);
if (Search.GetAttribute("className") == "button_search")
Search.InvokeMember("click");
}
Delay(1000);
HtmlElementCollection paging_nav = webBrowser1.Document.GetElementsByTagName("div");
foreach (HtmlElement div in paging_nav)
{
if (div.GetAttribute("className") == "paging_nav")
{
HtmlElementCollection span = div.GetElementsByTagName("span");
foreach (HtmlElement count in span)
{
dataGridView1.Rows[row].Cells["Check"].Value = count.InnerText;
break;
}
}
}
}
private void SearchISBN(string Target, int row)
{
HtmlElementCollection combo = webBrowser1.Document.GetElementsByTagName("select");
foreach (HtmlElement Search in combo)
{
if (Search.Id == "bibKind2")
Search.SetAttribute("selectedIndex", "2");
}
Delay(1000);
HtmlElementCollection search = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement Search in search)
{
if (Search.Id == "bib2")
Search.SetAttribute("value", Target);
if (Search.GetAttribute("className") == "button_search")
Search.InvokeMember("click");
}
Delay(1000);
HtmlElementCollection paging_nav = webBrowser1.Document.GetElementsByTagName("div");
foreach (HtmlElement div in paging_nav)
{
if (div.GetAttribute("className") == "paging_nav")
{
HtmlElementCollection span = div.GetElementsByTagName("span");
foreach (HtmlElement count in span)
{
dataGridView1.Rows[row].Cells["Check"].Value = count.InnerText;
break;
}
}
}
}
#endregion
/// <summary>
/// DLS지역 코드 변환
/// </summary>
/// <returns>코드</returns>
string SetArea(string dlsArea)
{
string[] Area = {
"서울", "부산", "대구", "인천", "광주",
"대전", "울산", "세종", "경기", "강원",
"충북", "충남", "전북", "전남", "경북",
"경남", "제주"
};
string[] Code = {
"SU", "BS", "DG", "IC", "KJ",
"DJ", "US", "SJ", "KG", "KW",
"CB", "CN", "JB", "JN", "KB",
"KN", "JJ"
};
int idx = 0;
foreach (string code in Area)
{
if (code == dlsArea)
{
break;
}
idx++;
}
return Code[idx];
}
/// <summary>
/// 지연시키는 함수
/// </summary>
/// <param name="ms">1000 = 1초</param>
void Delay(int ms)
{
DateTime dateTimeNow = DateTime.Now;
TimeSpan duration = new TimeSpan(0, 0, 0, 0, ms);
DateTime dateTimeAdd = dateTimeNow.Add(duration);
while (dateTimeAdd >= dateTimeNow)
{
Application.DoEvents();
dateTimeNow = DateTime.Now;
}
return;
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void btn_Back_Click(object sender, EventArgs e)
{
webBrowser1.GoBack();
}
private void btn_Forward_Click(object sender, EventArgs e)
{
webBrowser1.GoForward();
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
tb_URL.Text = webBrowser1.Url.AbsoluteUri;
}
private void tb_URL_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {
string url = tb_URL.Text;
webBrowser1.Navigate(url);
}
}
}
}

View File

@@ -117,4 +117,13 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="Book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ISBN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -12,82 +12,112 @@ namespace ExcelTest
/// <summary>
/// 이용자 9개
/// </summary>
public string[] combo1 = { "일반", "유아", "아동", "초등", "중학생",
"고등학생", "성인용 19금", "특수계층", "미상" };
public string[] combo1 = {
"일반", "유아", "아동", "초등", "중학생",
"고등학생", "성인용 19금", "특수계층", "미상"
};
/// <summary>
/// 자료형식 3개
/// </summary>
public string[] combo2 = { "해당무", "큰 글자", "점자" };
public string[] combo2 = {
"해당무", "큰 글자", "점자"
};
/// <summary>
/// 내용형식 28개
/// </summary>
public string[] combo3 = { "해당무", "만화/그래픽노블", "사전", "백과사전", "평론",
"통계자료", "명감", "연감", "족보", "조약, 협정문",
"학위논문", "법률논문", "법령집", "판례집 및 판례요약집", "판결보도 및 판결 평석",
"별쇄본", "역서(전체)", "음반목록", "영화작품목록", "초록",
"서지", "목록", "편람", "색인", "조사보고",
"기술보고서", "프로그램화된 텍스트", "표준/표준해설자료"};
public string[] combo3 = {
"해당무", "만화/그래픽노블", "사전", "백과사전", "평론",
"통계자료", "명감", "연감", "족보", "조약", "협정문",
"학위논문", "법률논문", "법령집", "판례집 및 판례요약집", "판결보도 및 판결 평석",
"별쇄본", "역서(전체)", "음반목록", "영화작품목록", "초록",
"서", "목록", "편람", "색인", "조사보고",
"기술보고서", "프로그램화된 텍스트", "표준/표준해설자료"
};
/// <summary>
/// 문학형식 16개
/// </summary>
public string[] combo4 = { "해당무", "소설", "추리소설", "단편소설", "시",
"수필", "희곡/시나리오", "문집", "기행문/일기문/수기", "평론",
"논픽션", "연설문", "논설문", "향가/시조", "풍자문학",
"서간문학" };
public string[] combo4 = {
"해당무", "소설", "추리소설", "단편소설", "",
"수필", "희곡/시나리오", "문", "기행문/일기문/수기", "평론",
"논픽션", "연설문", "논설문", "향가/시조", "풍자문학",
"서간문학"
};
/// <summary>
/// 전기 5개
/// </summary>
public string[] combo5 = { "해당무", "자서전", "개인전기서", "전기물의 합저서", "전기적 정보가 포함된 자료" };
public string[] combo5 = {
"해당무", "자서전", "개인전기서", "전기물의 합저서", "전기적 정보가 포함된 자료"
};
/// <summary>
/// 언어 36개
/// </summary>
public string[] combo6 = { "한국어", "영어", "일본어", "중국어", "독일어",
"프랑스어", "러시아어", "스페인어", "이탈리아어", "네덜란드어",
"핀란드어", "스웨덴어", "포르투갈어", "노르웨이어", "그리스어",
"체코어", "폴란드어", "다국어", "말레이시아어", "몽골어",
"미얀마(버마어)", "베트남어", "슬로베니아어", "아어", "아프리카어",
"에스토니아어", "우즈베키스탄어", "우크라이나어", "인도(마라티어)", "캄보디아어",
"태국어", "터키어", "투르크메니스탄어", "티베르어", "필리핀(타갈로그어)",
"헝가리어" };
public string[] combo6 = {
"한국어", "어", "일본어", "중국어", "독일어",
"프랑스어", "러시아어", "스페인어", "이탈리아어", "네덜란드어",
"핀란드어", "스웨덴어", "포르투갈어", "노르웨이어", "그리스어",
"체코어", "폴란드어", "다국어", "말레이시아어", "몽골어",
"미얀마(버마어)", "베트남어", "슬로베니아어", "아랍어", "아프리카어",
"에스토니아어", "우즈베키스탄어", "우크라이나어", "인도(마라티어)", "캄보디아어",
"태국어", "터키어", "투르크메니스탄어", "티베르어", "필리핀(타갈로그어)",
"헝가리어"
};
public string Combo_Change(string Text, string Name, int idx)
{
char[] textArray = Text.ToCharArray();
string[] combo1_res = { " ", "a", "j", "b", "c",
"d", "e", "f", "z" };
string[] combo2_res = { " ", "d", "f" };
string[] combo3_res = { " ", "6", "d", "e", "o",
"s", "r", "y", "j", "z",
"m", "g", "l", "v", "w",
"2", "5", "k", "q", "a",
"b", "c", "f", "i", "n",
"t", "p", "u" };
string[] combo4_res = { " ", "f", "k", "j", "p",
"e", "d", "v", "m", "u",
"l", "s", "t", "w", "h",
"i" };
string[] combo5_res = { " ", "a", "b", "c", "d" };
string[] combo6_res = { "kor", "eng", "jpn", "chi", "ger",
"fre", "rus", "spa", "ita", "dut",
"fin", "swe", "por", "nor", "grc",
"cze", "pol", "mul", "may", "mon",
"bur", "vie", "slv", "ara", "afr",
"est", "uzb", "ukr", "mar", "cam",
"tha", "tur", "tuk", "tib", "tag",
"hun" };
/* comboBox1 = 이용대상자수준
* comboBox2 = 개별자료형태
* comboBox3 = 내용형식1
* comboBox7 = 내용형식2
* comboBox4 = 문학형식
* comboBox5 = 전기
* comboBox6 = 언어 */
// comboBox1 = 이용대상자수준
string[] combo1_res = {
" ", "a", "j", "b", "c",
"d", "e", "f", "z"
};
// comboBox2 = 개별자료형태
string[] combo2_res = {
" ", "d", "f"
};
// comboBox3 = 내용형식1
// comboBox7 = 내용형식2
string[] combo3_res = {
" ", "6", "d", "e", "o",
"s", "r", "y", "j", "z",
"m", "g", "l", "v", "w",
"2", "5", "k", "q", "a",
"b", "c", "f", "i", "n",
"t", "p", "u"
};
// comboBox4 = 문학형식
string[] combo4_res = {
" ", "f", "k", "j", "p",
"e", "d", "v", "m", "u",
"l", "s", "t", "w", "h",
"i"
};
// comboBox5 = 전기
string[] combo5_res = {
" ", "a", "b", "c", "d"
};
// comboBox6 = 언어
string[] combo6_res = {
"kor", "eng", "jpn", "chi", "ger",
"fre", "rus", "spa", "ita", "dut",
"fin", "swe", "por", "nor", "grc",
"cze", "pol", "mul", "may", "mon",
"bur", "vie", "slv", "ara", "afr",
"est", "uzb", "ukr", "mar", "cam",
"tha", "tur", "tuk", "tib", "tag",
"hun"
};
char[] inputArray;
switch (Name)
@@ -139,7 +169,7 @@ namespace ExcelTest
int result;
for(result = 0; result < combo1_res.Length; result++)
{
if(value == combo1_res[result]) { break; }
if (value == combo1_res[result]) { break; }
}
return result;
}
@@ -261,25 +291,25 @@ namespace ExcelTest
string result = "";
strValue = strValue.ToLower();
if (strValue.Contains(ulk) == true) { result = "ulk"; } // 서울
if (strValue.Contains(bnk) == true) { result = "bnk"; } // 부산
if (strValue.Contains(tgk) == true) { result = "tgk"; } // 대구
if (strValue.Contains(ick) == true) { result = "ick"; } // 인천
if (strValue.Contains(kjk) == true) { result = "kjk"; } // 광주
if (strValue.Contains(tjk) == true) { result = "tjk"; } // 대전
if (strValue.Contains(usk) == true) { result = "usk"; } // 울산
if (strValue.Contains(sjk) == true) { result = "sjk"; } // 세종
for (int a = 0; a < ggk.Length; a++) { if (strValue.Contains(ggk[a]) == true) { result = "ggk"; } } // 경기
for (int a = 0; a < gak.Length; a++) { if (strValue.Contains(gak[a]) == true) { result = "gak"; } } // 강원
for (int a = 0; a < hbk.Length; a++) { if (strValue.Contains(hbk[a]) == true) { result = "hbk"; } } // 충북
for (int a = 0; a < hck.Length; a++) { if (strValue.Contains(hck[a]) == true) { result = "hck"; } } // 충남
for (int a = 0; a < gbk.Length; a++) { if (strValue.Contains(gbk[a]) == true) { result = "gbk"; } } // 경북
for (int a = 0; a < gnk.Length; a++) { if (strValue.Contains(gnk[a]) == true) { result = "gnk"; } } // 경남
for (int a = 0; a < jbk.Length; a++) { if (strValue.Contains(jbk[a]) == true) { result = "jbk"; } } // 전북
for (int a = 0; a < jnk.Length; a++) { if (strValue.Contains(jnk[a]) == true) { result = "jnk"; } } // 전남
for (int a = 0; a < jjk.Length; a++) { if (strValue.Contains(jjk[a]) == true) { result = "jjk"; } } // 제주
for (int a = 0; a < us.Length; a++) { if (strValue.Contains(us[a]) == true) { result = "us"; } } // 미국
for (int a = 0; a < uk.Length; a++) { if (strValue.Contains(uk[a]) == true) { result = "uk"; } } // 영국
if (strValue.Contains(ulk)) { result = "ulk"; } // 서울
if (strValue.Contains(bnk)) { result = "bnk"; } // 부산
if (strValue.Contains(tgk)) { result = "tgk"; } // 대구
if (strValue.Contains(ick)) { result = "ick"; } // 인천
if (strValue.Contains(kjk)) { result = "kjk"; } // 광주
if (strValue.Contains(tjk)) { result = "tjk"; } // 대전
if (strValue.Contains(usk)) { result = "usk"; } // 울산
if (strValue.Contains(sjk)) { result = "sjk"; } // 세종
for (int a = 0; a < ggk.Length; a++) { if (strValue.Contains(ggk[a])) { result = "ggk"; } } // 경기
for (int a = 0; a < gak.Length; a++) { if (strValue.Contains(gak[a])) { result = "gak"; } } // 강원
for (int a = 0; a < hbk.Length; a++) { if (strValue.Contains(hbk[a])) { result = "hbk"; } } // 충북
for (int a = 0; a < hck.Length; a++) { if (strValue.Contains(hck[a])) { result = "hck"; } } // 충남
for (int a = 0; a < gbk.Length; a++) { if (strValue.Contains(gbk[a])) { result = "gbk"; } } // 경북
for (int a = 0; a < gnk.Length; a++) { if (strValue.Contains(gnk[a])) { result = "gnk"; } } // 경남
for (int a = 0; a < jbk.Length; a++) { if (strValue.Contains(jbk[a])) { result = "jbk"; } } // 전북
for (int a = 0; a < jnk.Length; a++) { if (strValue.Contains(jnk[a])) { result = "jnk"; } } // 전남
for (int a = 0; a < jjk.Length; a++) { if (strValue.Contains(jjk[a])) { result = "jjk"; } } // 제주
for (int a = 0; a < us.Length; a++) { if (strValue.Contains(us[a])) { result = "us"; } } // 미국
for (int a = 0; a < uk.Length; a++) { if (strValue.Contains(uk[a])) { result = "uk"; } } // 영국
return result;
}
@@ -287,23 +317,26 @@ namespace ExcelTest
public string Picture_008(string strValue)
{
string result = "";
string[] dpfk = { "삽화", "지도", "초상", "표", "설계",
string[] dpfk = { "삽화", "지도", "초상", "표", "설계",
"도판", "악보", "영인물", "문장", "계보",
"서식", "양식", "견본", "녹음자료", "사진",
"서식", "양식", "견본", "녹음", "사진",
"채색장식",
"ill", "map", "photo" };
string[] tlqkf = { "a", "b", "c", "d", "e",
"f", "g", "h", "i", "j",
"k", "k", "l", "m", "o",
"p",
"a", "b", "o" };
// "col.ill.", "col. ill.", "ill."
strValue = strValue.ToLower();
string[] str1 = strValue.Split(',');
for(int a = 0; a < str1.Length; a++)
{
for (int b = 0; b < dpfk.Length; b++)
{
if(str1[a].Contains(dpfk[b]) == true) { result += tlqkf[b]; }
if(str1[a].Contains(dpfk[b])) { result += tlqkf[b]; }
}
}
if (result.Length > 4)
@@ -314,12 +347,14 @@ namespace ExcelTest
{
for(int a = 0; a < 4; a++)
{
if (result.Length < 4) { result += " "; }
else { break; }
if (result.Length < 4)
result += " ";
else
break;
}
}
return result;
}
}
}
}

View File

@@ -28,50 +28,19 @@
/// </summary>
private void InitializeComponent()
{
this.panel2 = new System.Windows.Forms.Panel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_Close = new System.Windows.Forms.Button();
this.btn_Go = new System.Windows.Forms.Button();
this.tb_URL = new System.Windows.Forms.TextBox();
this.btn_Forward = new System.Windows.Forms.Button();
this.btn_Back = new System.Windows.Forms.Button();
this.panel2.SuspendLayout();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Controls.Add(this.webBrowser1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 36);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1152, 612);
this.panel2.TabIndex = 5;
//
// richTextBox1
//
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.richTextBox1.Location = new System.Drawing.Point(0, 580);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1152, 32);
this.richTextBox1.TabIndex = 1;
this.richTextBox1.Text = "";
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(0, 0);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.ScriptErrorsSuppressed = true;
this.webBrowser1.Size = new System.Drawing.Size(1152, 612);
this.webBrowser1.TabIndex = 0;
this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
this.webBrowser1.NewWindow += new System.ComponentModel.CancelEventHandler(this.webBrowser1_NewWindow);
//
// panel1
//
this.panel1.Controls.Add(this.btn_Close);
@@ -135,6 +104,37 @@
this.btn_Back.UseVisualStyleBackColor = true;
this.btn_Back.Click += new System.EventHandler(this.btn_Back_Click);
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(0, 0);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.ScriptErrorsSuppressed = true;
this.webBrowser1.Size = new System.Drawing.Size(1152, 612);
this.webBrowser1.TabIndex = 0;
this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
this.webBrowser1.NewWindow += new System.ComponentModel.CancelEventHandler(this.webBrowser1_NewWindow);
//
// richTextBox1
//
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.richTextBox1.Location = new System.Drawing.Point(0, 580);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1152, 32);
this.richTextBox1.TabIndex = 1;
this.richTextBox1.Text = "";
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Controls.Add(this.webBrowser1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 36);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1152, 612);
this.panel2.TabIndex = 5;
//
// Input_DLS
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -145,23 +145,22 @@
this.Name = "Input_DLS";
this.Text = "DLS_DLS입력";
this.Load += new System.EventHandler(this.Input_DLS_Load);
this.panel2.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Button btn_Go;
private System.Windows.Forms.TextBox tb_URL;
private System.Windows.Forms.Button btn_Forward;
private System.Windows.Forms.Button btn_Back;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Panel panel2;
}
}

View File

@@ -126,22 +126,27 @@ namespace WindowsFormsApp1.Mac
}
private void btn_db_save_Click(object sender, EventArgs e)
{
string compidx = UniMarc.Properties.Settings.Default.compidx;
string table = "Marc";
string[] col = { "grade", "ISBN", "서명", "총서명", "저자", "출판사", "가격", "marc", "marc_chk" };
string[] col = { "ISBN", "서명", "총서명", "저자", "출판사", "가격", "marc", "marc_chk", "compidx", "grade" };
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
string Marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString();
Marc = Marc.Replace(@"'", "'");
Marc = Marc.Replace(@"""", "\"\"");
string[] data = { "2", dataGridView1.Rows[a].Cells["isbn"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["series"].Value.ToString(),
dataGridView1.Rows[a].Cells["author"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_comp"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(),
Marc, "1" };
string Incmd = db.DB_INSERT(table, col, data);
db.DB_Send_CMD_reVoid(Incmd);
try
{
string[] data = { dataGridView1.Rows[a].Cells["isbn"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_name"].Value.ToString(),
dataGridView1.Rows[a].Cells["series"].Value.ToString(),
dataGridView1.Rows[a].Cells["author"].Value.ToString(),
dataGridView1.Rows[a].Cells["book_comp"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(),
Marc, "1", compidx, "4" };
string Incmd = db.DB_INSERT(table, col, data);
db.DB_Send_CMD_reVoid(Incmd);
}
catch(Exception ex) { MessageBox.Show(ex.Message); }
}
MessageBox.Show("DB 저장 완료!");
}

View File

@@ -22,7 +22,7 @@ namespace WindowsFormsApp1.Mac
InitializeComponent();
main = _main;
compidx = main.com_idx;
user_name = main.toolStripLabel1.Text;
user_name = main.botUserLabel.Text;
}
private void Mac_List_Load(object sender, EventArgs e)
{

View File

@@ -28,7 +28,7 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -38,6 +38,7 @@
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_close = new System.Windows.Forms.Button();
this.connect_list = new System.Windows.Forms.ComboBox();
this.cb_list = new System.Windows.Forms.ComboBox();
this.btn_file_save = new System.Windows.Forms.Button();
@@ -46,7 +47,6 @@
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.btn_close = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
@@ -55,14 +55,14 @@
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.isbn,
@@ -137,11 +137,21 @@
this.panel1.Size = new System.Drawing.Size(1273, 40);
this.panel1.TabIndex = 10;
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(826, 8);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 7;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// connect_list
//
this.connect_list.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.connect_list.FormattingEnabled = true;
this.connect_list.Location = new System.Drawing.Point(1147, 11);
this.connect_list.Location = new System.Drawing.Point(1147, 9);
this.connect_list.Name = "connect_list";
this.connect_list.Size = new System.Drawing.Size(121, 20);
this.connect_list.TabIndex = 6;
@@ -205,16 +215,6 @@
this.label1.TabIndex = 1;
this.label1.Text = "구분";
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(826, 8);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 7;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// Mac_Output
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -131,6 +131,7 @@ namespace WindowsFormsApp1.Mac
}
}
}
private void Search_Marc()
{
string area = "`총서명`, `marc`, `marc_chk`, `marc1`, `marc_chk1`, `marc2`, `marc_chk2`";
@@ -178,7 +179,7 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[a].Cells["Marc"].Value == null)
continue;
Marc_data += dataGridView1.Rows[a].Cells["Marc"].Value.ToString();
Marc_data += dataGridView1.Rows[a].Cells["Marc"].Value.ToString().Replace("₩", "\\");
}
string FileName;

View File

@@ -86,15 +86,17 @@ namespace UniMarc.마크
lbl_log_a.Text = db.self_Made_Cmd(cmd).Replace("|", "");
Label[] k_lbl = { lbl_kor_s, lbl_kor_a, lbl_kor_t }; // 국내서 라벨
tab2_total1(k_lbl);
Label[] l_lbl = { lbl_log_s, lbl_log_a, lbl_log_t }; // 서양서 라벨
tab2_total1(l_lbl);
Label[] s_lbl = { lbl_kor_s, lbl_log_s, lbl_s_total }; // 소장 라벨
Label[] a_lbl = { lbl_kor_a, lbl_log_a, lbl_a_total }; // 추가 라벨
tab2_total1(k_lbl);
tab2_total1(l_lbl);
tab2_total1(s_lbl);
Label[] a_lbl = { lbl_kor_a, lbl_log_a, lbl_a_total }; // 추가 라벨
tab2_total1(a_lbl);
}
#region button2_Click_Sub
void tab2_total1(Label[] lbl)

View File

@@ -13,8 +13,12 @@ namespace ExcelTest
{
public partial class Marc : Form
{
/// <summary>
/// isbn / 도서명 / 저자 / 출판사 / 가격
/// </summary>
string[] data_book = { "", "", "", "", "" };
string user_name;
string compidx;
public string find;
public string change;
public string call = "";
@@ -74,6 +78,7 @@ namespace ExcelTest
comboBox7.SelectedIndex = 0;
comboBox8.SelectedIndex = 0;
#endregion
compidx = UniMarc.Properties.Settings.Default.compidx;
}
/// <summary>
/// 가져온 목록을 책목록과 연동하여 Grid에 집어넣음.
@@ -121,7 +126,32 @@ namespace ExcelTest
{
string[] sear_tbl = { "ISBN" };
string[] sear_col = { List_Book.Rows[a].Cells["ISBN13"].Value.ToString() };
string cmd = db.More_DB_Search("Marc", sear_tbl, sear_col, "`idx`, `marc`, `grade`");
string tmp_cmd = db.More_DB_Search("Marc", sear_tbl, sear_col, "`marc_chk`, `marc_chk1`, `marc_chk2`");
string tmp_res = db.DB_Send_CMD_Search(tmp_cmd);
string[] tmp_ary = tmp_res.Split('|');
string cmd = "";
if (tmp_ary.Length <= 1)
{
cmd = db.More_DB_Search("Marc", sear_tbl, sear_col, "`idx`, `marc`, `grade`");
}
else
{
if (tmp_ary[0] == "1")
cmd = string.Format(
"SELECT `idx`, `marc`, `grade`, `008tag` FROM `Marc` WHERE `{0}` = \"{1}\" " +
"AND (`marc_chk` = 1 OR `marc_chk1` = 1 OR `marc_chk2` = 1);", sear_tbl[0], sear_col[0]);
else if (tmp_ary[1] == "1")
cmd = string.Format(
"SELECT `idx`, `marc1`, `grade`, `008tag` FROM `Marc` WHERE `{0}` = \"{1}\" " +
"AND (`marc_chk` = 1 OR `marc_chk1` = 1 OR `marc_chk2` = 1);", sear_tbl[0], sear_col[0]);
else if (tmp_ary[2] == "1")
cmd = string.Format(
"SELECT `idx`, `marc2`, `grade`, `008tag` FROM `Marc` WHERE `{0}` = \"{1}\" " +
"AND (`marc_chk` = 1 OR `marc_chk1` = 1 OR `marc_chk2` = 1);", sear_tbl[0], sear_col[0]);
}
string db_res = db.DB_Send_CMD_Search(cmd);
string[] db_data = db_res.Split('|');
if (db_data.Length < 2) {
@@ -147,6 +177,7 @@ namespace ExcelTest
List_Book.Rows[a].Cells["marc_idx"].Value = db_data[0];
List_Book.Rows[a].Cells["db_marc"].Value = db_data[1];
List_Book.Rows[a].Cells["grade"].Value = db_data[2];
text008.Text = db_data[3];
}
}
}
@@ -337,7 +368,7 @@ namespace ExcelTest
break;
case 88: // TODO: 입력시 코드값?이 출력됨 X쪽의 문제인지 아스키코드의 문제인지 확인 불가.
richTextBox1.SelectionColor = Color.Blue;
richTextBox1.SelectedText = "▼x";
richTextBox1.SelectedText = @"▼x";
richTextBox1.SelectionColor = Color.Black;
break;
case 89:
@@ -406,63 +437,18 @@ namespace ExcelTest
helper.Show();
}
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
string name = ((CheckBox)sender).Name;
if (((CheckBox)sender).Checked == true) {
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물o";
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집o";
break;
}
}
else if (((CheckBox)sender).Checked == false) {
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물x";
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집x";
break;
}
}
switch (name)
{
case "checkBox1":
Publication(checkBox1.Checked, 29);
break;
case "checkBox2":
Publication(checkBox2.Checked, 30);
break;
}
}
void Publication(bool check, int idx)
{
if(text008.Text == "") { return; }
char[] ArrayChar = text008.Text.ToCharArray();
if (check == false) { ArrayChar[idx] = '0'; }
else if(check == true) { ArrayChar[idx] = '1'; }
text008.Text = new string(ArrayChar);
Apply_Main_marc();
}
private void Btn_Memo_Click(object sender, EventArgs e)
{
Marc_memo memo = new Marc_memo(this);
memo.StartPosition = FormStartPosition.Manual;
memo.Location = new Point(1018, 8);
memo.TopMost = true;
memo.Show();
}
private void Btn_preview_Click(object sender, EventArgs e)
{
Marc_Preview mp = new Marc_Preview();
mp.url_isbn = data_book[0];
mp.TopMost = true;
Marc_Preview mp = new Marc_Preview(this);
mp.book_data = data_book;
mp.richTextBox1.Text = richTextBox1.Text;
mp.Show();
}
private void Btn_Save_Click(object sender, EventArgs e)
@@ -481,8 +467,14 @@ namespace ExcelTest
if (List_Book.Rows[row_idx].Cells["db_marc"].Value.ToString() != "")
{
string[] Edit_tbl = { "marc", "marc_chk", "marc_chk1", "비고1", "비고2", "url", "division", "008tag", "date", "user" };
string[] Edit_col = { st.made_Ori_marc(richTextBox1), "1", "0", etc1.Text, etc2.Text, grid_data[5], tag056, text008.Text, date, user_name };
string[] Edit_tbl = {
"compidx", "marc", "marc_chk", "marc_chk1", "비고1",
"비고2", "url", "division", "008tag", "date",
"user" };
string[] Edit_col = {
compidx, st.made_Ori_marc(richTextBox1), "1", "0", etc1.Text,
etc2.Text, grid_data[5], tag056, text008.Text, date,
user_name };
string[] Sear_tbl = { "ISBN" };
string[] Sear_col = { List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString() };
@@ -490,19 +482,19 @@ namespace ExcelTest
switch (res)
{
case "0":
Edit_tbl[0] = "marc1";
Edit_tbl[1] = "marc_chk1";
Edit_tbl[2] = "marc_chk";
Edit_tbl[1] = "marc1";
Edit_tbl[2] = "marc_chk1";
Edit_tbl[3] = "marc_chk";
break;
case "1":
Edit_tbl[0] = "marc2";
Edit_tbl[1] = "marc_chk2";
Edit_tbl[2] = "marc_chk1";
Edit_tbl[1] = "marc2";
Edit_tbl[2] = "marc_chk2";
Edit_tbl[3] = "marc_chk1";
break;
case "2":
Edit_tbl[0] = "marc";
Edit_tbl[1] = "marc_chk";
Edit_tbl[2] = "marc_chk2";
Edit_tbl[1] = "marc";
Edit_tbl[2] = "marc_chk";
Edit_tbl[3] = "marc_chk2";
break;
default:
break;
@@ -510,22 +502,22 @@ namespace ExcelTest
string U_cmd = db.More_Update(table_name, Edit_tbl, Edit_col, Sear_tbl, Sear_col);
db.DB_Send_CMD_reVoid(U_cmd);
MessageBox.Show(res + ": 업데이트");
}
else
{
string[] Insert_tbl = { "ISBN", "서명", "저자", "출판사",
"가격", "marc", "비고1", "비고2", "url",
"grade", "marc_chk", "user", "division", "008tag",
"date" };
string[] Insert_col = { grid_data[0], grid_data[1], grid_data[2], grid_data[3],
grid_data[4], st.made_Ori_marc(richTextBox1), etc1.Text, etc2.Text, grid_data[5],
cb_grade.SelectedIndex.ToString(), "1", user_name, tag056, text008.Text,
date };
string[] Insert_tbl = {
"ISBN", "서명", "저자", "출판사",
"가격", "marc", "비고1", "비고2", "url",
"grade", "marc_chk", "user", "division", "008tag",
"date", "compidx" };
string[] Insert_col = {
grid_data[0], grid_data[1], grid_data[2], grid_data[3],
grid_data[4], st.made_Ori_marc(richTextBox1), etc1.Text, etc2.Text, grid_data[5],
cb_grade.SelectedIndex.ToString(), "1", user_name, tag056, text008.Text,
date, compidx };
string Incmd = db.DB_INSERT(table_name, Insert_tbl, Insert_col);
db.DB_Send_CMD_reVoid(Incmd);
MessageBox.Show("추가");
}
List_Book.Rows[row_idx].Cells["db_marc"].Value = st.made_Ori_marc(richTextBox1);
List_Book.Rows[row_idx].DefaultCellStyle.BackColor = Color.White;
@@ -547,6 +539,10 @@ namespace ExcelTest
MessageBox.Show("저장되었습니다!");
}
#region Save_Click_Sub
/// <summary>
/// 분류기호(056)추출 & 008태그 마크에 삽입
/// </summary>
/// <returns></returns>
string Tag056()
{
string marc = richTextBox1.Text;
@@ -606,7 +602,10 @@ namespace ExcelTest
Save_data(row_idx);
richTextBox1.Text = "";
if (!click_Marc(row_idx)) { richTextBox1.Text = Make_Empty(); }
bool check_Marc = click_Marc(row_idx);
if (!check_Marc) { richTextBox1.Text = Make_Empty(); }
else { ReadRemark(row_idx); }
input_picture(row_idx);
Create_008();
st.Color_change("▼", richTextBox1);
@@ -619,6 +618,19 @@ namespace ExcelTest
cb_grade.SelectedIndex = grade;
}
#region ContentClick_Sub
void ReadRemark(int row)
{
string[] sear_tbl = { "ISBN" };
string[] sear_col = { List_Book.Rows[row].Cells["ISBN13"].Value.ToString() };
string cmd = db.More_DB_Search("Marc", sear_tbl, sear_col, "`비고1`, `비고2`");
string res = db.DB_Send_CMD_Search(cmd);
string[] ary = res.Split('|');
etc1.Text = ary[0];
etc2.Text = ary[1];
}
bool check_V(int row, int col)
{
string name = List_Book.Columns[col].Name;
@@ -629,7 +641,7 @@ namespace ExcelTest
else
List_Book.Rows[row].Cells["colCheck"].Value = "V";
return true;
}
else
@@ -765,14 +777,16 @@ namespace ExcelTest
if (data == "" || data == null) { return; }
string[] Tag008 = { "", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "" };
/* 입력일자 발행년유형 발행년1 발행년2 발행국
* 삽화표시 이용대상자수준 개별자료형태 내용형식1 내용형식2
* 한국대학부호 수정레코드 회의간행물 기념논문집 색인
* 목록전거 문학형식 전기 언어 한국정부기관부호 */
string[] Tag008 = {
// 입력일자 발행년유형 발행년1 발행년2 발행국
"", "", "", "", "",
// 삽화표시 이용대상자수준 개별자료형태 내용형식1 내용형식2
"", "", "", "", "",
// 한국대학부호 수정레코드 회의간행물 기념논문집 색인
"", "", "", "", "",
// 목록전거 문학형식 전기 언어 한국정부기관부호
"", "", "", "", ""
};
// 사전에 선언된 string배열에 맞는 데이터를 배정.
int tmp_years = Convert.ToInt32(data.Substring(0, 2));
@@ -831,6 +845,119 @@ namespace ExcelTest
return;
}
#endregion
#region 008
private void btn_Reflesh008_Click(object sender, EventArgs e)
{
string data = text008.Text;
string oriMarc = st.made_Ori_marc(richTextBox1);
if (data == "" || data == null) { return; }
// 입력일자 발행년유형 발행년1 발행년2 발행국
// 삽화표시 이용대상자수준 개별자료형태 내용형식1 내용형식2
// 한국대학부호 수정레코드 회의간행물 기념논문집 색인
// 목록전거 문학형식 전기 언어 한국정부기관부호
#region string배열에 .
// 참조할 태그 배열선언
string[] SearchTag = { "260c", "260a", "300b" };
string[] ContentTag = st.Take_Tag(oriMarc, SearchTag);
// 입력일자 (00-05)
string day;
if (input_date.Checked)
day = string.Format("{0}{1}{2}",
DateTime.Now.ToString("yy"), DateTime.Now.ToString("MM"), DateTime.Now.ToString("dd"));
else
day = input_date.Value.ToString("yy") + input_date.Value.ToString("MM") + input_date.Value.ToString("dd");
// 발행년유형 (6), 발행년1 (07-10), 발행년2 (11-14)
string DateSet = pubDateSet(ContentTag[0]);
// 발행국 (15-17)
string Country = pubCountry(ContentTag[1]);
// 삽화표시 (18-21)
string Picture = tag008.Picture_008(ContentTag[2]);
string tmp = day + DateSet + Country + Picture;
char[] textArray = data.ToCharArray();
for (int a = 0; a < tmp.Length; a++)
{
textArray[a] = tmp[a];
}
text008.Text = new string(textArray);
// 이용대상자수준 (22) v
// 개별자료형태 (23) v
// 내용형식1 (24) v
// 내용형식2 (25) v
// 한국대학부호 (26-27)
// 수정레코드 (28)
// 회의간행물 (29) c
// 기념논문집 (30) c
// 색인 (31)
// 목록전거 (32)
// 문학형식 (33) v
// 전기 (34) v
// 언어 (35-37) v
// 한국정부기관부호 (38-39)
#endregion
}
/// <summary>
/// 발행년유형 / 발행년1 / 발행년2 를 260c태그로 확인.
/// </summary>
/// <param name="ContentTag">260c의 태그내용</param>
/// <returns></returns>
private string pubDateSet(string ContentTag)
{
string Result = "";
string pubDate = Regex.Replace(ContentTag, @"[^0-9]", "");
if (pubDate.Length < 3) {
MessageBox.Show("260c가 인식되지않습니다.");
return "false";
}
else if (pubDate.Length < 5)
Result = "s" + pubDate + " ";
else
Result = "m" + pubDate;
return Result;
}
/// <summary>
/// 발행국명 을 260a태그로 확인.
/// </summary>
/// <param name="ContentTag">260a의 태그내용</param>
/// <returns></returns>
private string pubCountry(string ContentTag)
{
string Result = "";
// string cmd = db.DB_Select_Search("`Code`", "Tag008_Country", "Area", ContentTag);
string cmd = string.Format(
"SELECT `Code` FROM `Tag008_Country` WHERE `Area` <= \"{0}\" ORDER BY `Area` DESC LIMIT 1;", ContentTag);
string res = db.DB_Send_CMD_Search(cmd).Replace("|", "");
if (res == "") {
MessageBox.Show("260a가 인식되지않습니다.");
return "false";
}
else if (res.Length < 3)
Result = res + " ";
else
Result = res;
return Result;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (text008.Text.Length < 3) { return; }
@@ -842,15 +969,7 @@ namespace ExcelTest
text008.Text = tag008.Combo_Change(text, comboName, comboIdx);
Apply_Main_marc();
}
/// <summary>
/// 008text가 메인 텍스트박스에 적용됨.
/// </summary>
private void Apply_Main_marc()
{
string text = text008.Text;
richTextBox1.Text = richTextBox1.Text.Replace(data008, text);
data008 = text;
}
private void col008res_TextChanged(object sender, EventArgs e)
{
if (text008.Text.Length < 3) { return; }
@@ -875,6 +994,7 @@ namespace ExcelTest
text008.Text = text;
Apply_Main_marc();
}
private void input_date_ValueChanged(object sender, EventArgs e)
{
if (text008.Text.Length < 3) { return; }
@@ -888,10 +1008,71 @@ namespace ExcelTest
Apply_Main_marc();
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
string name = ((CheckBox)sender).Name;
if (((CheckBox)sender).Checked == true)
{
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물o";
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집o";
break;
}
}
else if (((CheckBox)sender).Checked == false)
{
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물x";
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집x";
break;
}
}
switch (name)
{
case "checkBox1":
Publication(checkBox1.Checked, 29);
break;
case "checkBox2":
Publication(checkBox2.Checked, 30);
break;
}
}
void Publication(bool check, int idx)
{
if (text008.Text == "") { return; }
char[] ArrayChar = text008.Text.ToCharArray();
if (check == false) { ArrayChar[idx] = '0'; }
else if (check == true) { ArrayChar[idx] = '1'; }
text008.Text = new string(ArrayChar);
Apply_Main_marc();
}
/// <summary>
/// 008text가 메인 텍스트박스에 적용됨.
/// </summary>
private void Apply_Main_marc()
{
string text = text008.Text;
richTextBox1.Text = richTextBox1.Text.Replace(data008, text);
data008 = text;
}
#endregion
private void Btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void dataGridView8_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Space)
@@ -1048,5 +1229,10 @@ namespace ExcelTest
}
}
}
private void btn_FillBlank_Click(object sender, EventArgs e)
{
}
}
}

View File

@@ -28,8 +28,9 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.etc1 = new System.Windows.Forms.RichTextBox();
this.etc2 = new System.Windows.Forms.RichTextBox();
@@ -74,6 +75,7 @@
this.label4 = new System.Windows.Forms.Label();
this.text008 = new System.Windows.Forms.TextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_Reflesh008 = new System.Windows.Forms.Button();
this.btn_close = new System.Windows.Forms.Button();
this.input_date = new System.Windows.Forms.DateTimePicker();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
@@ -89,6 +91,7 @@
this.btn_mk_marcList = new System.Windows.Forms.Button();
this.btn_Search = new System.Windows.Forms.Button();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.btn_FillBlank = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.List_Book)).BeginInit();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
@@ -100,7 +103,7 @@
//
this.richTextBox1.AcceptsTab = true;
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.richTextBox1.Font = new System.Drawing.Font("굴림체", 9F, 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(542, 95);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(631, 649);
@@ -111,7 +114,7 @@
// etc1
//
this.etc1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.etc1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.etc1.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.etc1.Location = new System.Drawing.Point(1187, 324);
this.etc1.Name = "etc1";
this.etc1.Size = new System.Drawing.Size(291, 204);
@@ -122,7 +125,7 @@
// etc2
//
this.etc2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.etc2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.etc2.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.etc2.Location = new System.Drawing.Point(1187, 534);
this.etc2.Name = "etc2";
this.etc2.Size = new System.Drawing.Size(291, 201);
@@ -162,7 +165,7 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(856, 15);
this.label3.Location = new System.Drawing.Point(872, 15);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 206;
@@ -172,7 +175,7 @@
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(907, 11);
this.comboBox2.Location = new System.Drawing.Point(926, 11);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(79, 20);
this.comboBox2.TabIndex = 207;
@@ -202,7 +205,7 @@
// label99
//
this.label99.AutoSize = true;
this.label99.Location = new System.Drawing.Point(1306, 15);
this.label99.Location = new System.Drawing.Point(1310, 15);
this.label99.Name = "label99";
this.label99.Size = new System.Drawing.Size(29, 12);
this.label99.TabIndex = 206;
@@ -210,7 +213,7 @@
//
// text008col
//
this.text008col.Location = new System.Drawing.Point(1335, 11);
this.text008col.Location = new System.Drawing.Point(1339, 11);
this.text008col.Name = "text008col";
this.text008col.Size = new System.Drawing.Size(41, 21);
this.text008col.TabIndex = 204;
@@ -219,7 +222,7 @@
// label100
//
this.label100.AutoSize = true;
this.label100.Location = new System.Drawing.Point(808, 37);
this.label100.Location = new System.Drawing.Point(872, 37);
this.label100.Name = "label100";
this.label100.Size = new System.Drawing.Size(53, 12);
this.label100.TabIndex = 206;
@@ -229,7 +232,7 @@
//
this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox4.FormattingEnabled = true;
this.comboBox4.Location = new System.Drawing.Point(859, 33);
this.comboBox4.Location = new System.Drawing.Point(926, 33);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(79, 20);
this.comboBox4.TabIndex = 207;
@@ -239,7 +242,7 @@
// label101
//
this.label101.AutoSize = true;
this.label101.Location = new System.Drawing.Point(947, 37);
this.label101.Location = new System.Drawing.Point(1033, 37);
this.label101.Name = "label101";
this.label101.Size = new System.Drawing.Size(29, 12);
this.label101.TabIndex = 206;
@@ -249,9 +252,9 @@
//
this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox5.FormattingEnabled = true;
this.comboBox5.Location = new System.Drawing.Point(977, 33);
this.comboBox5.Location = new System.Drawing.Point(1063, 33);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(101, 20);
this.comboBox5.Size = new System.Drawing.Size(97, 20);
this.comboBox5.TabIndex = 207;
this.comboBox5.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox5.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -259,7 +262,7 @@
// label102
//
this.label102.AutoSize = true;
this.label102.Location = new System.Drawing.Point(1093, 37);
this.label102.Location = new System.Drawing.Point(1173, 37);
this.label102.Name = "label102";
this.label102.Size = new System.Drawing.Size(29, 12);
this.label102.TabIndex = 206;
@@ -269,16 +272,16 @@
//
this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox6.FormattingEnabled = true;
this.comboBox6.Location = new System.Drawing.Point(1123, 33);
this.comboBox6.Location = new System.Drawing.Point(1203, 33);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(101, 20);
this.comboBox6.Size = new System.Drawing.Size(97, 20);
this.comboBox6.TabIndex = 207;
this.comboBox6.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox6.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
//
// text008gov
//
this.text008gov.Location = new System.Drawing.Point(1263, 33);
this.text008gov.Location = new System.Drawing.Point(1339, 33);
this.text008gov.Name = "text008gov";
this.text008gov.Size = new System.Drawing.Size(41, 21);
this.text008gov.TabIndex = 204;
@@ -287,7 +290,7 @@
// label103
//
this.label103.AutoSize = true;
this.label103.Location = new System.Drawing.Point(1234, 37);
this.label103.Location = new System.Drawing.Point(1310, 37);
this.label103.Name = "label103";
this.label103.Size = new System.Drawing.Size(29, 12);
this.label103.TabIndex = 206;
@@ -298,7 +301,7 @@
this.col008res.AutoSize = true;
this.col008res.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.col008res.ForeColor = System.Drawing.Color.Blue;
this.col008res.Location = new System.Drawing.Point(1378, 15);
this.col008res.Location = new System.Drawing.Point(1382, 15);
this.col008res.Name = "col008res";
this.col008res.Size = new System.Drawing.Size(13, 12);
this.col008res.TabIndex = 206;
@@ -310,7 +313,7 @@
this.gov008res.AutoSize = true;
this.gov008res.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.gov008res.ForeColor = System.Drawing.Color.Blue;
this.gov008res.Location = new System.Drawing.Point(1306, 37);
this.gov008res.Location = new System.Drawing.Point(1382, 37);
this.gov008res.Name = "gov008res";
this.gov008res.Size = new System.Drawing.Size(13, 12);
this.gov008res.TabIndex = 206;
@@ -352,9 +355,9 @@
//
// Btn_Memo
//
this.Btn_Memo.Location = new System.Drawing.Point(1403, 92);
this.Btn_Memo.Location = new System.Drawing.Point(1191, 164);
this.Btn_Memo.Name = "Btn_Memo";
this.Btn_Memo.Size = new System.Drawing.Size(75, 23);
this.Btn_Memo.Size = new System.Drawing.Size(77, 23);
this.Btn_Memo.TabIndex = 215;
this.Btn_Memo.Text = "메모장";
this.Btn_Memo.UseVisualStyleBackColor = true;
@@ -365,14 +368,14 @@
this.List_Book.AllowUserToAddRows = false;
this.List_Book.AllowUserToDeleteRows = false;
this.List_Book.AllowUserToResizeColumns = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.List_Book.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.list_idx,
this.ISBN13,
@@ -495,8 +498,8 @@
//
// colCheck
//
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle6;
this.colCheck.HeaderText = "V";
this.colCheck.Name = "colCheck";
this.colCheck.ReadOnly = true;
@@ -505,9 +508,9 @@
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(1403, 120);
this.btn_Save.Location = new System.Drawing.Point(1191, 192);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(75, 23);
this.btn_Save.Size = new System.Drawing.Size(77, 23);
this.btn_Save.TabIndex = 215;
this.btn_Save.Text = "저 장";
this.btn_Save.UseVisualStyleBackColor = true;
@@ -516,7 +519,7 @@
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(8, 9);
this.label4.Location = new System.Drawing.Point(8, 7);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(49, 12);
this.label4.TabIndex = 206;
@@ -525,27 +528,41 @@
// text008
//
this.text008.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.text008.Location = new System.Drawing.Point(60, 4);
this.text008.Location = new System.Drawing.Point(60, 3);
this.text008.MaxLength = 40;
this.text008.Name = "text008";
this.text008.Size = new System.Drawing.Size(356, 21);
this.text008.Size = new System.Drawing.Size(317, 21);
this.text008.TabIndex = 204;
//
// panel3
//
this.panel3.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.btn_Reflesh008);
this.panel3.Controls.Add(this.text008);
this.panel3.Controls.Add(this.label4);
this.panel3.Location = new System.Drawing.Point(551, 57);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(430, 30);
this.panel3.Size = new System.Drawing.Size(409, 30);
this.panel3.TabIndex = 219;
//
// btn_Reflesh008
//
this.btn_Reflesh008.BackColor = System.Drawing.SystemColors.WindowText;
this.btn_Reflesh008.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_Reflesh008.BackgroundImage")));
this.btn_Reflesh008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btn_Reflesh008.Location = new System.Drawing.Point(379, -2);
this.btn_Reflesh008.Name = "btn_Reflesh008";
this.btn_Reflesh008.Size = new System.Drawing.Size(30, 30);
this.btn_Reflesh008.TabIndex = 207;
this.btn_Reflesh008.UseVisualStyleBackColor = false;
this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click);
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(1403, 149);
this.btn_close.Location = new System.Drawing.Point(1191, 221);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.Size = new System.Drawing.Size(77, 23);
this.btn_close.TabIndex = 215;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
@@ -553,11 +570,13 @@
//
// input_date
//
this.input_date.Checked = false;
this.input_date.CustomFormat = "yyyy-MM-dd";
this.input_date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.input_date.Location = new System.Drawing.Point(613, 11);
this.input_date.Name = "input_date";
this.input_date.Size = new System.Drawing.Size(91, 21);
this.input_date.ShowCheckBox = true;
this.input_date.Size = new System.Drawing.Size(101, 21);
this.input_date.TabIndex = 220;
this.input_date.ValueChanged += new System.EventHandler(this.input_date_ValueChanged);
//
@@ -565,7 +584,7 @@
//
this.pictureBox1.BackColor = System.Drawing.SystemColors.ControlLight;
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pictureBox1.Location = new System.Drawing.Point(1187, 62);
this.pictureBox1.Location = new System.Drawing.Point(1273, 62);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(204, 256);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
@@ -575,9 +594,9 @@
//
// btn_preview
//
this.btn_preview.Location = new System.Drawing.Point(1403, 63);
this.btn_preview.Location = new System.Drawing.Point(1191, 106);
this.btn_preview.Name = "btn_preview";
this.btn_preview.Size = new System.Drawing.Size(75, 23);
this.btn_preview.Size = new System.Drawing.Size(77, 23);
this.btn_preview.TabIndex = 215;
this.btn_preview.Text = "미리보기";
this.btn_preview.UseVisualStyleBackColor = true;
@@ -592,7 +611,7 @@
"B",
"C",
"D"});
this.cb_grade.Location = new System.Drawing.Point(1074, 62);
this.cb_grade.Location = new System.Drawing.Point(1192, 80);
this.cb_grade.Name = "cb_grade";
this.cb_grade.Size = new System.Drawing.Size(75, 20);
this.cb_grade.TabIndex = 222;
@@ -600,9 +619,10 @@
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(1011, 66);
this.label6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label6.Location = new System.Drawing.Point(1198, 66);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(57, 12);
this.label6.Size = new System.Drawing.Size(62, 12);
this.label6.TabIndex = 223;
this.label6.Text = "마크 등급";
//
@@ -704,11 +724,22 @@
this.checkBox3.UseVisualStyleBackColor = true;
this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
//
// btn_FillBlank
//
this.btn_FillBlank.Location = new System.Drawing.Point(1191, 135);
this.btn_FillBlank.Name = "btn_FillBlank";
this.btn_FillBlank.Size = new System.Drawing.Size(77, 23);
this.btn_FillBlank.TabIndex = 228;
this.btn_FillBlank.Text = "칸채우기";
this.btn_FillBlank.UseVisualStyleBackColor = true;
this.btn_FillBlank.Click += new System.EventHandler(this.btn_FillBlank_Click);
//
// Marc
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1489, 770);
this.Controls.Add(this.btn_FillBlank);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label6);
@@ -826,5 +857,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn colCheck;
public System.Windows.Forms.DataGridView List_Book;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.Button btn_Reflesh008;
private System.Windows.Forms.Button btn_FillBlank;
}
}

View File

@@ -156,4 +156,43 @@
<metadata name="colCheck.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="btn_Reflesh008.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAABGdBTUEAALGPC/xhBQAAAIFQTFRF////
AAAAlJSU4ODgU1NT6enp+Pj4w8PDxMTEkpKS/Pz81tbW5eXlRERE3NzcmZmZzMzMZGRkTU1Nb29vg4OD
urq6KioqW1tb8vLyf39/sbGxEhISPz8/i4uL0NDQZmZmIyMjoqKiNTU1tLS0GRkZp6end3d3Li4uOjo6
Dg4OJSUlLUB5vgAABwxJREFUeF7tnX97ojAMx6ceIqDi/DXndJ47vZt7/y/wFOMUSKG0SWE8+fxz9zxl
ZN8BaZq26ZMgCIIgCIIgCIIgCIIgCIIgCIIgCIIgCELrWHnDsb8+7uNuvD+u/fHQW0GLOT34t276kb99
nn51siynu60f9eEqA7Zb+E+d9P1g9AaKcN42gR/C1dUIOl34X12E43gDMsrYxGP4IX26nZoVRtt/8Ovr
8bmtJvIssE6Fq/3n9feuxOao73wuAutTGD0nv7AJM80HmQisS6E/TaybMh3AfYq4CqxH4ULXuagp1wgC
61A4MPn88kzf4X44N4HuFQ5/gWV7dh7cE+FboGuF/S3YpSFWhQF3gY4VTqp1f+V8RnDnNA8C3Sr8C0Yp
wcLOR4EuFUYnsEnLMjd4SAl0qDAGi/SswQKQFuhMYWgewpTzF4wkZAS6Ujj8DfZ4+LzHqlmBjhROwBob
p1uomhPoRuEajJUzms3jtT+JxtHEP3bnM/3w7hrF5QU6UbgHW8V8BAsvl60I+8M/2w+4opjF+XJEoAuF
mNkMy3lhIB0uZhrf8RG3xK8wAEtKvrZ4YJJmMitO5ZzB3TW7wrIn+OLrJtJWa73XNQO3wpJvcFYtmzkY
wc9VgFnhHzCDMysY/iiYVNbIq/AdrKC8VE8OXlhUHJ+wKvTACMZJJ9WCEpb6rhScCsN8kv6bV7MU9pVe
lTwPp8IZ2MhzmMAlpmj0sTcYFard6LP9jNKktHe8wadwDBbyBHCFFStdp8qnUBlnGbuYDJo5ETaFr2Ag
y5tOiKaHnk/lUqjqCQ9DuIACrUELk8JQEUIe7H3MI8Uh0xUmhQpvTixQK7vFo1ARzLxRvqJntHpFHoU7
uHsGOieToNftsyhUuBkfmonQjGtYFOLTn8SmdAM3DoV47vAZWonQFciiEH2ExG5UWyCHQvwR2o4m0ugL
5FD4ArdO8QqNNFQQyKCwB3dOcbIZ8OaoIpBBIRryU40nEioJpFfYhxuneIFGEqoJpFeIzsKYZdVwKgqk
V4h1FTNoo6CqQHKFqJ+pnvhVUi2TeIFaITaeIXyElZ8gvUIsP0S30tpAILVCbGBI50hNBFIrPMJtHyEb
NBkJpFaIRGxLi4X2KcwEUiuEuz5CtRvAUCCxQmxwT5S6MBVIrBD5DP9BkyXGAokVIp/hHJrsMBdIrBCZ
qyAZVVSPZO6QKhzCTR+BJitsBNIqRBzNBppssHhFz5AqRBwNwVyhnUBahcjw/rLazA6rV/QMqULElVoP
nGwF0sw430AGFrYhWzjuWUKZp10dQNadETS1BGToRJm/aABId0gT0TQGJEcTQ1NLQCYsMlshfjoLkPUA
8aRo3SAKaWecagdJdxPP3NcNEpZSpvMbQPufYfu/w/b70vb3h+2Padofl7Z/bNH+8SHHGL9hcORpmgVL
rq1R8ORLmwRTzrtBcM1bNAiuuafmwDZ/2BgQV7OEppbAOI/fFEDVI+5e02D6Kwc00YFs+idbT1PGCqnw
k6rrQgLyITob52PbvOhDKt51bcVgiwYZ3h9sAa2bKrARWHuEeBdLAvP60gKQvpglTcS9RliJO8Pc67xV
YKVbdtBGC/tafRx0QyBPTMy/3wIFqzd5gjZq0D0z3H0ikm7nS9Zig0TifU850BenQ7yt+g7mton3rmVB
3xv6iO2Gi/2HaQZgIw1joOFiD+kjWMjN1VVccbIP+AH0s+DtodCHyJZYxAv3cj5CRffL1WWgHUWnQ1y+
IYubmgoJir8md2ZBURfjRP+HRQPuM+yJBcXKZXKH6inKRfHProeKuuvEEhXvSmcK7ZwoPg/aAi69/JTs
FSdZBQd1opTlsx2tj1DW+qLqNHy4Xw5X813qem00+wPUi/idzTuz1txb4aHaBYfTzuq6iW+2I42Jysdw
j9MyLMEoglXty1Dlxs64Xd+i6q4unMwdjl9wBMHB8fIWVa+YYFiDdqz+As84X7JLXkfYQxMW39Qwp05b
C7qndl4JtazeKds9qF/PO/QL388zR7jSMaXb677mOoFcNC+tAb2HS52jsQe0pK7+02Be0PHcqOkJXtAq
M9r5xM5GeOp7i0Cv8nOtC64rnW/RPSbnW7z763g+0y0WXPua+cJ+kYTa17R4BcXLCfjgSzdrEyrSbyQ0
ZDU533lPNTrRNJF6xGPD7ybtHiuOKc1wOhwsh/zsvI/GbR0jPv8w4J1aNmNYFj7r88I8+2LMwP6c1Quj
Ju9tJDhLdtT0jRy+fsCJMao5CtXC5kznn7Kw2tubvKyb+EdtpYo0z8W7sdRKBzSLcBzrfpIf8biJ3Z8O
fT8YFR/9c9gE2gmrptKP/O3zNJ+N+Zrutovop6u7s/KG48H6uI+78X6/9qOh14ChrSAIgiAIgiAIgiAI
giAIgiAIgiAIgiAIAilPT/8BzuZT5uV+S2QAAAAASUVORK5CYII=
</value>
</data>
</root>

View File

@@ -30,26 +30,187 @@ namespace UniMarc.마크
private void InitializeComponent()
{
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.panel1 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_Search = new System.Windows.Forms.Button();
this.btn_Save = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.KyoBoPage = new System.Windows.Forms.TabPage();
this.NLPage = new System.Windows.Forms.TabPage();
this.webBrowser2 = new System.Windows.Forms.WebBrowser();
this.KolisPage = new System.Windows.Forms.TabPage();
this.webBrowser3 = new System.Windows.Forms.WebBrowser();
this.panel1.SuspendLayout();
this.panel4.SuspendLayout();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
this.tabControl1.SuspendLayout();
this.KyoBoPage.SuspendLayout();
this.NLPage.SuspendLayout();
this.KolisPage.SuspendLayout();
this.SuspendLayout();
//
// webBrowser1
//
this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser1.Location = new System.Drawing.Point(0, 0);
this.webBrowser1.Location = new System.Drawing.Point(3, 3);
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.Size = new System.Drawing.Size(800, 450);
this.webBrowser1.ScriptErrorsSuppressed = true;
this.webBrowser1.Size = new System.Drawing.Size(1302, 929);
this.webBrowser1.TabIndex = 0;
//
// Mac_Preview
// panel1
//
this.panel1.Controls.Add(this.panel4);
this.panel1.Controls.Add(this.panel3);
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(432, 961);
this.panel1.TabIndex = 1;
//
// panel4
//
this.panel4.Controls.Add(this.richTextBox1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(0, 44);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(432, 917);
this.panel4.TabIndex = 1;
//
// richTextBox1
//
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(432, 917);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// panel3
//
this.panel3.Controls.Add(this.btn_Search);
this.panel3.Controls.Add(this.btn_Save);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(432, 44);
this.panel3.TabIndex = 1;
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(172, 12);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(75, 23);
this.btn_Search.TabIndex = 0;
this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true;
this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(253, 12);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(75, 23);
this.btn_Save.TabIndex = 0;
this.btn_Save.Text = "마크 저장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// panel2
//
this.panel2.Controls.Add(this.tabControl1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(432, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1316, 961);
this.panel2.TabIndex = 2;
//
// tabControl1
//
this.tabControl1.Controls.Add(this.KyoBoPage);
this.tabControl1.Controls.Add(this.NLPage);
this.tabControl1.Controls.Add(this.KolisPage);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1316, 961);
this.tabControl1.TabIndex = 3;
//
// KyoBoPage
//
this.KyoBoPage.Controls.Add(this.webBrowser1);
this.KyoBoPage.Location = new System.Drawing.Point(4, 22);
this.KyoBoPage.Name = "KyoBoPage";
this.KyoBoPage.Padding = new System.Windows.Forms.Padding(3);
this.KyoBoPage.Size = new System.Drawing.Size(1308, 935);
this.KyoBoPage.TabIndex = 0;
this.KyoBoPage.Text = "교보";
this.KyoBoPage.UseVisualStyleBackColor = true;
//
// NLPage
//
this.NLPage.Controls.Add(this.webBrowser2);
this.NLPage.Location = new System.Drawing.Point(4, 22);
this.NLPage.Name = "NLPage";
this.NLPage.Padding = new System.Windows.Forms.Padding(3);
this.NLPage.Size = new System.Drawing.Size(1308, 935);
this.NLPage.TabIndex = 1;
this.NLPage.Text = "국중";
this.NLPage.UseVisualStyleBackColor = true;
//
// webBrowser2
//
this.webBrowser2.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser2.Location = new System.Drawing.Point(3, 3);
this.webBrowser2.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser2.Name = "webBrowser2";
this.webBrowser2.ScriptErrorsSuppressed = true;
this.webBrowser2.Size = new System.Drawing.Size(1302, 929);
this.webBrowser2.TabIndex = 1;
//
// KolisPage
//
this.KolisPage.Controls.Add(this.webBrowser3);
this.KolisPage.Location = new System.Drawing.Point(4, 22);
this.KolisPage.Name = "KolisPage";
this.KolisPage.Size = new System.Drawing.Size(1308, 935);
this.KolisPage.TabIndex = 2;
this.KolisPage.Text = "코리스";
this.KolisPage.UseVisualStyleBackColor = true;
//
// webBrowser3
//
this.webBrowser3.Dock = System.Windows.Forms.DockStyle.Fill;
this.webBrowser3.Location = new System.Drawing.Point(0, 0);
this.webBrowser3.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser3.Name = "webBrowser3";
this.webBrowser3.Size = new System.Drawing.Size(1308, 935);
this.webBrowser3.TabIndex = 0;
//
// Marc_Preview
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.webBrowser1);
this.Name = "Mac_Preview";
this.ClientSize = new System.Drawing.Size(1748, 961);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Marc_Preview";
this.Text = "미리보기";
this.Load += new System.EventHandler(this.Mac_Preview_Load);
this.panel1.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.KyoBoPage.ResumeLayout(false);
this.NLPage.ResumeLayout(false);
this.KolisPage.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -57,5 +218,18 @@ namespace UniMarc.마크
#endregion
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage KyoBoPage;
private System.Windows.Forms.TabPage NLPage;
private System.Windows.Forms.WebBrowser webBrowser2;
public System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_Search;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.TabPage KolisPage;
private System.Windows.Forms.WebBrowser webBrowser3;
}
}

View File

@@ -7,20 +7,121 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ExcelTest;
namespace UniMarc.
{
public partial class Marc_Preview : Form
{
public string url_isbn = "";
public Marc_Preview()
/// <summary>
/// isbn / 도서명 / 저자 / 출판사 / 가격
/// </summary>
public string[] book_data;
Marc mac;
public Marc_Preview(Marc _mac)
{
InitializeComponent();
}
private void Mac_Preview_Load(object sender, EventArgs e)
{
webBrowser1.Navigate("https://preview.kyobobook.co.kr/preview.jsp?siteGb=INK&ejkGb=KOR&barcode=" + url_isbn + "&loginYn=N&orderClick=JAW");
webBrowser1.Navigate("http://www.kyobobook.co.kr/index.laf");
webBrowser2.Navigate("https://www.nl.go.kr/");
}
private void btn_Search_Click(object sender, EventArgs e)
{
string Search = book_data[0];
KyoBo(Search);
NationalLibrary(Search);
Kolis(Search);
}
/// <summary>
/// 교보 접속
/// </summary>
private void KyoBo(string Search)
{
Delay(3000);
HtmlElementCollection search = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement SearchBox in search)
{
if (SearchBox.Id == "searchKeyword")
SearchBox.InvokeMember("click");
}
webBrowser1.Document.GetElementById("searchKeyword").SetAttribute("value", Search);
Delay(500);
HtmlElementCollection button = webBrowser1.Document.GetElementsByTagName("input");
foreach (HtmlElement SearchButton in button)
{
if (SearchButton.GetAttribute("className") == "btn_search")
SearchButton.InvokeMember("click");
}
}
/// <summary>
/// 국립중앙도서관
/// </summary>
private void NationalLibrary(string Search)
{
Delay(3000);
webBrowser2.Document.GetElementById("main_input-text").SetAttribute("value", Search);
Delay(500);
HtmlElementCollection button = webBrowser2.Document.GetElementsByTagName("button");
foreach (HtmlElement SearchButton in button)
{
if (SearchButton.GetAttribute("className") == "btn-search")
SearchButton.InvokeMember("click");
}
}
/// <summary>
/// 국중 코리스넷
/// </summary>
/// <param name="Search"></param>
private void Kolis(string Search)
{
string url = string.Format("https://www.nl.go.kr/kolisnet/search/searchResultAllList.do?tab=ALL" +
"&historyYn=Y" +
"&keywordType1=total" +
"&keyword1={0}" +
"&bookFilter=BKGM" +
"&bookFilter=YON" +
"&bookFilter=BKDM" +
"&bookFilter=NK" +
"&bookFilter=NP" +
"&bookFilter=OT", Search);
webBrowser3.Navigate(url);
}
private void btn_Save_Click(object sender, EventArgs e)
{
mac.richTextBox1.Text = richTextBox1.Text;
}
/// <summary>
/// 지연시키는 함수
/// </summary>
/// <param name="ms">1000 = 1초</param>
void Delay(int ms)
{
DateTime dateTimeNow = DateTime.Now;
TimeSpan duration = new TimeSpan(0, 0, 0, 0, ms);
DateTime dateTimeAdd = dateTimeNow.Add(duration);
while (dateTimeAdd >= dateTimeNow)
{
Application.DoEvents();
dateTimeNow = DateTime.Now;
}
return;
}
}
}

View File

@@ -154,13 +154,27 @@ namespace UniMarc.마크
insert_marc_data[19] = marc.List_Book.Rows[row[a]].Cells["marc_idx"].Value.ToString();
string[] Marc = st.Take_Tag(insert_marc_data[14], Search);
string[] Author = { Marc[4], Marc[1] };
string[] Author = { "", Marc[1] }; // 저자, 도서명
// 100, 110, 111태그중 한개라도 있으면 저자로 인식.
string[] Author_Search = { "100a", "110a", "111a" };
string[] Author_res = st.Take_Tag(insert_marc_data[14], Author_Search);
if (Author_res[0].Length > 1) Author[0] = Author_res[0];
if (Author_res[1].Length > 1) Author[0] = Author_res[1];
if (Author_res[2].Length > 1) Author[0] = Author_res[2];
for (int b = 0; b < Marc.Length; b++)
{
insert_marc_data[b + 3] = Marc[b];
}
if (Author[0].Length < 1) {
MessageBox.Show(row[a] + "번째의 저자를 확인해주세요. \n (100a, 110a, 111a 중 1개 필수)");
return;
}
Author[0] = Regex.Replace(Author[0], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline);
Author[1] = Regex.Replace(Author[1], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline);
Author[1] = st.RemoveWordInBracket(Author[1]);
@@ -169,48 +183,6 @@ namespace UniMarc.마크
string authorType = cb_authorType.SelectedItem.ToString();
string res_Author = sb.SymbolAuthor(Author[0], Author[1], authorType, isType);
/*
char aut;
if (Author[0].Length <= 1)
aut = Author[0][0];
else
aut = Author[0][1];
string res_Author = sb.Author_Fillter(Author[0][0], isAuthor);
#region 콤보박스 선택
if (cb_authorType.SelectedIndex == 0) // 이재철 1표
Author[0] = sb.Symbol_1(aut);
if (cb_authorType.SelectedIndex == 1) // 이재철 2표
Author[0] = sb.Symbol_2(aut);
if (cb_authorType.SelectedIndex == 2) // 이재철 3표
Author[0] = sb.Symbol_3(aut);
if (cb_authorType.SelectedIndex == 3) // 이재철 4표
Author[0] = sb.Symbol_4(aut);
if (cb_authorType.SelectedIndex == 4) // 이재철 5표
Author[0] = sb.Symbol_5(aut);
if (cb_authorType.SelectedIndex == 5) // 이재철 6표
Author[0] = sb.Symbol_6(aut);
if (cb_authorType.SelectedIndex == 6) // 이재철 7표
Author[0] = sb.Symbol_7(aut);
if (cb_authorType.SelectedIndex == 7) // 이재철 7표 (동양서저자기호표)
Author[0] = sb.Symbol_7_동서(aut);
if (cb_authorType.SelectedIndex == 8) // 이재철 8표
Author[0] = sb.Symbol_8(aut);
if (cb_authorType.SelectedIndex == 9) // 이재철 8표 (동양서저자기호표)
Author[0] = sb.Symbol_8_동서(aut);
if (cb_authorType.SelectedIndex == 10) // 장일세
Author[0] = sb.Symbol_Jang(Marc[0]);
if (cb_authorType.SelectedIndex == 11) // 커터샌본
Author[0] = sb.Cutter(Author[0]);
if (cb_authorType.SelectedIndex == 12) // 엘러드
Author[0] = sb.Elord(Author[0]);
if (cb_authorType.SelectedIndex == 13) // 동서양 저자기호표(국중)
Author[0] = sb.NLK(Author[0]);
#endregion
Author[0] = Author[0].Replace("|", "");
res_Author += Author[0] + sb.Book_Fillter(Author[1], isBook);
*/
insert_marc_data[13] = res_Author;
if (a == row.Length - 1)
cmdByMarc += db.DB_INSERT_SUB("value", insert_marc_data) + ";";

View File

@@ -31,12 +31,6 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.label1 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.label2 = new System.Windows.Forms.Label();
this.tb_search = new System.Windows.Forms.TextBox();
this.btn_search = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.btn_close = new System.Windows.Forms.Button();
this.cb_data_area = new System.Windows.Forms.ComboBox();
this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -47,6 +41,13 @@
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label2 = new System.Windows.Forms.Label();
this.tb_search = new System.Windows.Forms.TextBox();
this.btn_search = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.btn_close = new System.Windows.Forms.Button();
this.cb_data_area = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
@@ -91,61 +92,6 @@
this.dataGridView1.TabIndex = 49;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(430, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 5;
this.label2.Text = "검색어";
//
// tb_search
//
this.tb_search.Location = new System.Drawing.Point(477, 7);
this.tb_search.Name = "tb_search";
this.tb_search.Size = new System.Drawing.Size(222, 21);
this.tb_search.TabIndex = 6;
this.tb_search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
//
// btn_search
//
this.btn_search.Location = new System.Drawing.Point(710, 6);
this.btn_search.Name = "btn_search";
this.btn_search.Size = new System.Drawing.Size(75, 23);
this.btn_search.TabIndex = 7;
this.btn_search.Text = "검 색";
this.btn_search.UseVisualStyleBackColor = true;
this.btn_search.Click += new System.EventHandler(this.btn_search_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(222, 7);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 50;
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(798, 6);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 51;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// cb_data_area
//
this.cb_data_area.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_data_area.FormattingEnabled = true;
this.cb_data_area.Location = new System.Drawing.Point(71, 7);
this.cb_data_area.Name = "cb_data_area";
this.cb_data_area.Size = new System.Drawing.Size(145, 20);
this.cb_data_area.TabIndex = 52;
//
// grade
//
this.grade.HeaderText = "등급";
@@ -204,11 +150,76 @@
this.etc2.Name = "etc2";
this.etc2.Width = 140;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(430, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 5;
this.label2.Text = "검색어";
//
// tb_search
//
this.tb_search.Location = new System.Drawing.Point(477, 7);
this.tb_search.Name = "tb_search";
this.tb_search.Size = new System.Drawing.Size(222, 21);
this.tb_search.TabIndex = 6;
this.tb_search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
//
// btn_search
//
this.btn_search.Location = new System.Drawing.Point(710, 6);
this.btn_search.Name = "btn_search";
this.btn_search.Size = new System.Drawing.Size(75, 23);
this.btn_search.TabIndex = 7;
this.btn_search.Text = "검 색";
this.btn_search.UseVisualStyleBackColor = true;
this.btn_search.Click += new System.EventHandler(this.btn_search_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(222, 7);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 50;
//
// btn_close
//
this.btn_close.Location = new System.Drawing.Point(798, 6);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(75, 23);
this.btn_close.TabIndex = 51;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// cb_data_area
//
this.cb_data_area.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_data_area.FormattingEnabled = true;
this.cb_data_area.Location = new System.Drawing.Point(71, 7);
this.cb_data_area.Name = "cb_data_area";
this.cb_data_area.Size = new System.Drawing.Size(145, 20);
this.cb_data_area.TabIndex = 52;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(898, 11);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(38, 12);
this.label3.TabIndex = 53;
this.label3.Text = "label3";
//
// Search_Infor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1258, 666);
this.Controls.Add(this.label3);
this.Controls.Add(this.cb_data_area);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.cb_filter);
@@ -246,5 +257,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
private System.Windows.Forms.DataGridViewTextBoxColumn etc1;
private System.Windows.Forms.DataGridViewTextBoxColumn etc2;
private System.Windows.Forms.Label label3;
}
}

View File

@@ -67,6 +67,7 @@ namespace WindowsFormsApp1.Mac
string db_res = db.DB_Send_CMD_Search(cmd);
string[] tmp_arr = db_res.Split('|');
input_grid(tmp_arr);
label3.Text = string.Format("결과 {0:0,0}건", dataGridView1.Rows.Count.ToString());
}
#region search_Click_Sub

View File

@@ -1521,7 +1521,7 @@ namespace AuthorSymbol
return Author.ToString();
HANGUL_INFO info = HangulJaso.DevideJaso(Author);
if (info.isHangul == "NH" && !rb)
if (info.isHangul == "NH" || !rb)
return "";
return info.chars[0].ToString();
@@ -1533,7 +1533,7 @@ namespace AuthorSymbol
return "";
HANGUL_INFO info = HangulJaso.DevideJaso(book[0]);
if (info.isHangul == "NH" && !rb)
if (info.isHangul == "NH" || !rb)
return "";
if (rb)

File diff suppressed because it is too large Load Diff

View File

@@ -25,604 +25,154 @@ namespace WindowsFormsApp1.Convenience
private void Quick_menu_Load(object sender, EventArgs e)
{
db.DBcon();
base_setting();
Init();
}
private void base_setting()
private void Init()
{
rb_home1.Checked = true;
rb_home2.Checked = true;
rb_home3.Checked = true;
rb_home4.Checked = true;
rb_home5.Checked = true;
rb_home6.Checked = true;
rb_home7.Checked = true;
rb_home8.Checked = true;
rb_home9.Checked = true;
rb_home10.Checked = true;
#region
string[] MenuList = {
"적용안함", "홈", "납품관리", "회계", "마크"
};
string[] list_home = { "사용자 관리", "납품/거래처 관리", "주문처 관리", "도서정보 관리", "사용대장" };
string[] list_div = { "물품등록", "목록조회", "목록집계", "주문입력", "예가조회",
"견적서", "입고작업", "매입/반품입력", "재고입력/조회" };
string[] list_pay = { "송금내역조회", "매입집계", "매입장부", "매입미결제", "매출입력",
"매출입금", "매출장부", "매출미수금", "계산서관리" };
ComboBox[] Menu = {
cb_menu1, cb_menu2, cb_menu3, cb_menu4, cb_menu5,
cb_menu6, cb_menu7, cb_menu8, cb_menu9, cb_menu10,
cb_menu11, cb_menu12
};
cb_home1.Items.AddRange(list_home);
cb_home2.Items.AddRange(list_home);
cb_home3.Items.AddRange(list_home);
cb_home4.Items.AddRange(list_home);
cb_home5.Items.AddRange(list_home);
cb_home6.Items.AddRange(list_home);
cb_home7.Items.AddRange(list_home);
cb_home8.Items.AddRange(list_home);
cb_home9.Items.AddRange(list_home);
cb_home10.Items.AddRange(list_home);
cb_div1.Items.AddRange(list_div);
cb_div2.Items.AddRange(list_div);
cb_div3.Items.AddRange(list_div);
cb_div4.Items.AddRange(list_div);
cb_div5.Items.AddRange(list_div);
cb_div6.Items.AddRange(list_div);
cb_div7.Items.AddRange(list_div);
cb_div8.Items.AddRange(list_div);
cb_div9.Items.AddRange(list_div);
cb_div10.Items.AddRange(list_div);
cb_pay1.Items.AddRange(list_pay);
cb_pay2.Items.AddRange(list_pay);
cb_pay3.Items.AddRange(list_pay);
cb_pay4.Items.AddRange(list_pay);
cb_pay5.Items.AddRange(list_pay);
cb_pay6.Items.AddRange(list_pay);
cb_pay7.Items.AddRange(list_pay);
cb_pay8.Items.AddRange(list_pay);
cb_pay9.Items.AddRange(list_pay);
cb_pay10.Items.AddRange(list_pay);
}
private void radio_Checked(object sender)
{
string tmp_name = Regex.Replace(((RadioButton)sender).Name, @"\D", "");
int num = 0;
num = Convert.ToInt32(tmp_name);
combo_Enabled(((RadioButton)sender).Name, num);
}
private void combo_Enabled(string name, int num)
{
if (name.Contains("rb_home") == true) {
switch (num) {
case 1:
cb_home1.Enabled = true;
cb_div1.Enabled = false;
cb_pay1.Enabled = false;
cb_marc1.Enabled = false;
cb_work1.Enabled = false;
cb_conv1.Enabled = false;
break;
case 2:
cb_home2.Enabled = true;
cb_div2.Enabled = false;
cb_pay2.Enabled = false;
cb_marc2.Enabled = false;
cb_work2.Enabled = false;
cb_conv2.Enabled = false;
break;
case 3:
cb_home3.Enabled = true;
cb_div3.Enabled = false;
cb_pay3.Enabled = false;
cb_marc3.Enabled = false;
cb_work3.Enabled = false;
cb_conv3.Enabled = false;
break;
case 4:
cb_home4.Enabled = true;
cb_div4.Enabled = false;
cb_pay4.Enabled = false;
cb_marc4.Enabled = false;
cb_work4.Enabled = false;
cb_conv4.Enabled = false;
break;
case 5:
cb_home5.Enabled = true;
cb_div5.Enabled = false;
cb_pay5.Enabled = false;
cb_marc5.Enabled = false;
cb_work5.Enabled = false;
cb_conv5.Enabled = false;
break;
case 6:
cb_home6.Enabled = true;
cb_div6.Enabled = false;
cb_pay6.Enabled = false;
cb_marc6.Enabled = false;
cb_work6.Enabled = false;
cb_conv6.Enabled = false;
break;
case 7:
cb_home7.Enabled = true;
cb_div7.Enabled = false;
cb_pay7.Enabled = false;
cb_marc7.Enabled = false;
cb_work7.Enabled = false;
cb_conv7.Enabled = false;
break;
case 8:
cb_home8.Enabled = true;
cb_div8.Enabled = false;
cb_pay8.Enabled = false;
cb_marc8.Enabled = false;
cb_work8.Enabled = false;
cb_conv8.Enabled = false;
break;
case 9:
cb_home9.Enabled = true;
cb_div9.Enabled = false;
cb_pay9.Enabled = false;
cb_marc9.Enabled = false;
cb_work9.Enabled = false;
cb_conv9.Enabled = false;
break;
case 10:
cb_home10.Enabled = true;
cb_div10.Enabled = false;
cb_pay10.Enabled = false;
cb_marc10.Enabled = false;
cb_work10.Enabled = false;
cb_conv10.Enabled = false;
break;
default:
break;
}
}
else if (name.Contains("rb_div") == true) {
switch (num) {
case 1:
cb_home1.Enabled = false;
cb_div1.Enabled = true;
cb_pay1.Enabled = false;
cb_marc1.Enabled = false;
cb_work1.Enabled = false;
cb_conv1.Enabled = false;
break;
case 2:
cb_home2.Enabled = false;
cb_div2.Enabled = true;
cb_pay2.Enabled = false;
cb_marc2.Enabled = false;
cb_work2.Enabled = false;
cb_conv2.Enabled = false;
break;
case 3:
cb_home3.Enabled = false;
cb_div3.Enabled = true;
cb_pay3.Enabled = false;
cb_marc3.Enabled = false;
cb_work3.Enabled = false;
cb_conv3.Enabled = false;
break;
case 4:
cb_home4.Enabled = false;
cb_div4.Enabled = true;
cb_pay4.Enabled = false;
cb_marc4.Enabled = false;
cb_work4.Enabled = false;
cb_conv4.Enabled = false;
break;
case 5:
cb_home5.Enabled = false;
cb_div5.Enabled = true;
cb_pay5.Enabled = false;
cb_marc5.Enabled = false;
cb_work5.Enabled = false;
cb_conv5.Enabled = false;
break;
case 6:
cb_home6.Enabled = false;
cb_div6.Enabled = true;
cb_pay6.Enabled = false;
cb_marc6.Enabled = false;
cb_work6.Enabled = false;
cb_conv6.Enabled = false;
break;
case 7:
cb_home7.Enabled = false;
cb_div7.Enabled = true;
cb_pay7.Enabled = false;
cb_marc7.Enabled = false;
cb_work7.Enabled = false;
cb_conv7.Enabled = false;
break;
case 8:
cb_home8.Enabled = false;
cb_div8.Enabled = true;
cb_pay8.Enabled = false;
cb_marc8.Enabled = false;
cb_work8.Enabled = false;
cb_conv8.Enabled = false;
break;
case 9:
cb_home9.Enabled = false;
cb_div9.Enabled = true;
cb_pay9.Enabled = false;
cb_marc9.Enabled = false;
cb_work9.Enabled = false;
cb_conv9.Enabled = false;
break;
case 10:
cb_home10.Enabled = false;
cb_div10.Enabled = true;
cb_pay10.Enabled = false;
cb_marc10.Enabled = false;
cb_work10.Enabled = false;
cb_conv10.Enabled = false;
break;
default:
break;
}
}
else if (name.Contains("rb_pay") == true) {
switch (num) {
case 1:
cb_home1.Enabled = false;
cb_div1.Enabled = false;
cb_pay1.Enabled = true;
cb_marc1.Enabled = false;
cb_work1.Enabled = false;
cb_conv1.Enabled = false;
break;
case 2:
cb_home2.Enabled = false;
cb_div2.Enabled = false;
cb_pay2.Enabled = true;
cb_marc2.Enabled = false;
cb_work2.Enabled = false;
cb_conv2.Enabled = false;
break;
case 3:
cb_home3.Enabled = false;
cb_div3.Enabled = false;
cb_pay3.Enabled = true;
cb_marc3.Enabled = false;
cb_work3.Enabled = false;
cb_conv3.Enabled = false;
break;
case 4:
cb_home4.Enabled = false;
cb_div4.Enabled = false;
cb_pay4.Enabled = true;
cb_marc4.Enabled = false;
cb_work4.Enabled = false;
cb_conv4.Enabled = false;
break;
case 5:
cb_home5.Enabled = false;
cb_div5.Enabled = false;
cb_pay5.Enabled = true;
cb_marc5.Enabled = false;
cb_work5.Enabled = false;
cb_conv5.Enabled = false;
break;
case 6:
cb_home6.Enabled = false;
cb_div6.Enabled = false;
cb_pay6.Enabled = true;
cb_marc6.Enabled = false;
cb_work6.Enabled = false;
cb_conv6.Enabled = false;
break;
case 7:
cb_home7.Enabled = false;
cb_div7.Enabled = false;
cb_pay7.Enabled = true;
cb_marc7.Enabled = false;
cb_work7.Enabled = false;
cb_conv7.Enabled = false;
break;
case 8:
cb_home8.Enabled = false;
cb_div8.Enabled = false;
cb_pay8.Enabled = true;
cb_marc8.Enabled = false;
cb_work8.Enabled = false;
cb_conv8.Enabled = false;
break;
case 9:
cb_home9.Enabled = false;
cb_div9.Enabled = false;
cb_pay9.Enabled = true;
cb_marc9.Enabled = false;
cb_work9.Enabled = false;
cb_conv9.Enabled = false;
break;
case 10:
cb_home10.Enabled = false;
cb_div10.Enabled = false;
cb_pay10.Enabled = true;
cb_marc10.Enabled = false;
cb_work10.Enabled = false;
cb_conv10.Enabled = false;
break;
default:
break;
}
}
else if (name.Contains("rb_marc") == true) {
switch (num) {
case 1:
cb_home1.Enabled = false;
cb_div1.Enabled = false;
cb_pay1.Enabled = false;
cb_marc1.Enabled = true;
cb_work1.Enabled = false;
cb_conv1.Enabled = false;
break;
case 2:
cb_home2.Enabled = false;
cb_div2.Enabled = false;
cb_pay2.Enabled = false;
cb_marc2.Enabled = true;
cb_work2.Enabled = false;
cb_conv2.Enabled = false;
break;
case 3:
cb_home3.Enabled = false;
cb_div3.Enabled = false;
cb_pay3.Enabled = false;
cb_marc3.Enabled = true;
cb_work3.Enabled = false;
cb_conv3.Enabled = false;
break;
case 4:
cb_home4.Enabled = false;
cb_div4.Enabled = false;
cb_pay4.Enabled = false;
cb_marc4.Enabled = true;
cb_work4.Enabled = false;
cb_conv4.Enabled = false;
break;
case 5:
cb_home5.Enabled = false;
cb_div5.Enabled = false;
cb_pay5.Enabled = false;
cb_marc5.Enabled = true;
cb_work5.Enabled = false;
cb_conv5.Enabled = false;
break;
case 6:
cb_home6.Enabled = false;
cb_div6.Enabled = false;
cb_pay6.Enabled = false;
cb_marc6.Enabled = true;
cb_work6.Enabled = false;
cb_conv6.Enabled = false;
break;
case 7:
cb_home7.Enabled = false;
cb_div7.Enabled = false;
cb_pay7.Enabled = false;
cb_marc7.Enabled = true;
cb_work7.Enabled = false;
cb_conv7.Enabled = false;
break;
case 8:
cb_home8.Enabled = false;
cb_div8.Enabled = false;
cb_pay8.Enabled = false;
cb_marc8.Enabled = true;
cb_work8.Enabled = false;
cb_conv8.Enabled = false;
break;
case 9:
cb_home9.Enabled = false;
cb_div9.Enabled = false;
cb_pay9.Enabled = false;
cb_marc9.Enabled = true;
cb_work9.Enabled = false;
cb_conv9.Enabled = false;
break;
case 10:
cb_home10.Enabled = false;
cb_div10.Enabled = false;
cb_pay10.Enabled = false;
cb_marc10.Enabled = true;
cb_work10.Enabled = false;
cb_conv10.Enabled = false;
break;
default:
break;
}
}
else if (name.Contains("rb_work") == true) {
switch (num)
{
case 1:
cb_home1.Enabled = false;
cb_div1.Enabled = false;
cb_pay1.Enabled = false;
cb_marc1.Enabled = false;
cb_work1.Enabled = true;
cb_conv1.Enabled = false;
break;
case 2:
cb_home2.Enabled = false;
cb_div2.Enabled = false;
cb_pay2.Enabled = false;
cb_marc2.Enabled = false;
cb_work2.Enabled = true;
cb_conv2.Enabled = false;
break;
case 3:
cb_home3.Enabled = false;
cb_div3.Enabled = false;
cb_pay3.Enabled = false;
cb_marc3.Enabled = false;
cb_work3.Enabled = true;
cb_conv3.Enabled = false;
break;
case 4:
cb_home4.Enabled = false;
cb_div4.Enabled = false;
cb_pay4.Enabled = false;
cb_marc4.Enabled = false;
cb_work4.Enabled = true;
cb_conv4.Enabled = false;
break;
case 5:
cb_home5.Enabled = false;
cb_div5.Enabled = false;
cb_pay5.Enabled = false;
cb_marc5.Enabled = false;
cb_work5.Enabled = true;
cb_conv5.Enabled = false;
break;
case 6:
cb_home6.Enabled = false;
cb_div6.Enabled = false;
cb_pay6.Enabled = false;
cb_marc6.Enabled = false;
cb_work6.Enabled = true;
cb_conv6.Enabled = false;
break;
case 7:
cb_home7.Enabled = false;
cb_div7.Enabled = false;
cb_pay7.Enabled = false;
cb_marc7.Enabled = false;
cb_work7.Enabled = true;
cb_conv7.Enabled = false;
break;
case 8:
cb_home8.Enabled = false;
cb_div8.Enabled = false;
cb_pay8.Enabled = false;
cb_marc8.Enabled = false;
cb_work8.Enabled = true;
cb_conv8.Enabled = false;
break;
case 9:
cb_home9.Enabled = false;
cb_div9.Enabled = false;
cb_pay9.Enabled = false;
cb_marc9.Enabled = false;
cb_work9.Enabled = true;
cb_conv9.Enabled = false;
break;
case 10:
cb_home10.Enabled = false;
cb_div10.Enabled = false;
cb_pay10.Enabled = false;
cb_marc10.Enabled = false;
cb_work10.Enabled = true;
cb_conv10.Enabled = false;
break;
default:
break;
}
}
else if (name.Contains("rb_conv") == true) {
switch (num)
{
case 1:
cb_home1.Enabled = false;
cb_div1.Enabled = false;
cb_pay1.Enabled = false;
cb_marc1.Enabled = false;
cb_work1.Enabled = false;
cb_conv1.Enabled = true;
break;
case 2:
cb_home2.Enabled = false;
cb_div2.Enabled = false;
cb_pay2.Enabled = false;
cb_marc2.Enabled = false;
cb_work2.Enabled = false;
cb_conv2.Enabled = true;
break;
case 3:
cb_home3.Enabled = false;
cb_div3.Enabled = false;
cb_pay3.Enabled = false;
cb_marc3.Enabled = false;
cb_work3.Enabled = false;
cb_conv3.Enabled = true;
break;
case 4:
cb_home4.Enabled = false;
cb_div4.Enabled = false;
cb_pay4.Enabled = false;
cb_marc4.Enabled = false;
cb_work4.Enabled = false;
cb_conv4.Enabled = true;
break;
case 5:
cb_home5.Enabled = false;
cb_div5.Enabled = false;
cb_pay5.Enabled = false;
cb_marc5.Enabled = false;
cb_work5.Enabled = false;
cb_conv5.Enabled = true;
break;
case 6:
cb_home6.Enabled = false;
cb_div6.Enabled = false;
cb_pay6.Enabled = false;
cb_marc6.Enabled = false;
cb_work6.Enabled = false;
cb_conv6.Enabled = true;
break;
case 7:
cb_home7.Enabled = false;
cb_div7.Enabled = false;
cb_pay7.Enabled = false;
cb_marc7.Enabled = false;
cb_work7.Enabled = false;
cb_conv7.Enabled = true;
break;
case 8:
cb_home8.Enabled = false;
cb_div8.Enabled = false;
cb_pay8.Enabled = false;
cb_marc8.Enabled = false;
cb_work8.Enabled = false;
cb_conv8.Enabled = true;
break;
case 9:
cb_home9.Enabled = false;
cb_div9.Enabled = false;
cb_pay9.Enabled = false;
cb_marc9.Enabled = false;
cb_work9.Enabled = false;
cb_conv9.Enabled = true;
break;
case 10:
cb_home10.Enabled = false;
cb_div10.Enabled = false;
cb_pay10.Enabled = false;
cb_marc10.Enabled = false;
cb_work10.Enabled = false;
cb_conv10.Enabled = true;
break;
default:
break;
}
for (int a = 0; a < Menu.Length; a++)
{
Menu[a].Items.AddRange(MenuList);
}
#endregion
}
private void btn_save_Click(object sender, EventArgs e)
{
/* TODO:
* 1. DB에 자료 저장할 리스트 구상할 것.
* 2. main폼과 연동하여 버튼이벤트를 활성화시킬 것.
* 3. 저장하는 즉시 퀵메뉴가 적용이 되어야함. (아니면 재접속하는 방법)
*/
string Table = "User_ShortCut";
string User = main.User_Name;
ComboBox[] DetailMenu = {
cb_setShort1, cb_setShort2, cb_setShort3, cb_setShort4, cb_setShort5,
cb_setShort6, cb_setShort7, cb_setShort8, cb_setShort9, cb_setShort10,
cb_setShort11, cb_setShort12
};
List<string> Column_L = new List<string> {
"`id`"
};
List<string> Values_L = new List<string>{
"\"" + User + "\""
};
for (int a = 0; a < DetailMenu.Length; a++)
{
if (DetailMenu[a].Text != "") {
Column_L.Add(string.Format("`ShortCut{0}`", a + 1));
Values_L.Add(string.Format("\"{0}\"", DetailMenu[a].Text));
}
}
string Column = string.Join(", ", Column_L);
string Values = string.Join(", ", Values_L);
string InCmd = string.Format("INSERT INTO `{0}` ({1}) VALUES ({2}) ", Table, Column, Values);
string UpCmd = "ON DUPLICATE KEY UPDATE ";
for (int a = 0; a < Column_L.Count; a++)
{
UpCmd += string.Format("{0} = {1}", Column_L[a], Values_L[a]);
if (a % Column_L.Count == Column_L.Count - 1)
UpCmd += ";";
else
UpCmd += ", ";
}
string cmd = InCmd + UpCmd;
db.DB_Send_CMD_reVoid(cmd);
MessageBox.Show("저장완료!");
main.SetBtnName();
}
private void btn_close_Click(object sender, EventArgs e)
{
this.Close();
}
private void rb_home1_CheckedChanged(object sender, EventArgs e)
private void cb_menus_SelectedIndexChanged(object sender, EventArgs e)
{
radio_Checked(sender);
ComboBox combo = sender as ComboBox;
string[] comboName = {
"cb_menu1", "cb_menu2", "cb_menu3", "cb_menu4", "cb_menu5",
"cb_menu6", "cb_menu7", "cb_menu8", "cb_menu9", "cb_menu10",
"cb_menu11", "cb_menu12"
};
ComboBox[] DetailMenu = {
cb_setShort1, cb_setShort2, cb_setShort3, cb_setShort4, cb_setShort5,
cb_setShort6, cb_setShort7, cb_setShort8, cb_setShort9, cb_setShort10,
cb_setShort11, cb_setShort12
};
string[] Home = {
"사용자 관리", "납품 / 거래처 관리", "주문처 관리", "도서정보 관리"
};
string[] Div = {
"물품등록", "목록조회", "목록집계", "주문입력", "입고작업",
"재고입력 및 조회", "반품처리"
};
string[] Acc = {
"송금내역조회", "송금등록", "매입 집계", "매입 장부", "매출 입력", "매출 입금",
"매출 조회", "매출 집계", "파트타임 관리"
};
string[] Marc = {
"마크 목록", "소장자료검색", "마크 정리", "ISBN 조회", "반입",
"반출", "복본 조사", "DLS 복본 조사", "마크 수집", "전집관리",
"검수", "저자기호", "DLS 조회", "DLS 입력", "서류작성",
"마크통계", "장비관리"
};
int count = 0;
foreach (string name in comboName)
{
if (name == combo.Name)
break;
count++;
}
if (DetailMenu[count].Items.Count > 0)
DetailMenu[count].Items.Clear();
DetailMenu[count].Enabled = true;
switch (combo.SelectedIndex)
{
case 0: // 적용안함
DetailMenu[count].Enabled = false;
break;
case 1: // 홈
DetailMenu[count].Items.AddRange(Home);
break;
case 2: // 납품관리
DetailMenu[count].Items.AddRange(Div);
break;
case 3: // 회계
DetailMenu[count].Items.AddRange(Acc);
break;
case 4: // 마크
DetailMenu[count].Items.AddRange(Marc);
break;
default:
break;
}
}
}
}

View File

@@ -28,33 +28,19 @@
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(360, 219);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(83, 12);
this.label1.TabIndex = 7;
this.label1.Text = "편의기능_채팅";
//
// Talk
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.label1);
this.Name = "Talk";
this.Text = "Talk";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
}
}

View File

@@ -179,6 +179,11 @@ namespace WindowsFormsApp1.Home
MessageBox.Show("성명 / 아이디 / 비밀번호 를 채워주세요.");
return;
}
if (!overlap) {
MessageBox.Show("아이디 중복확인을 해주세요.");
return;
}
bool IsUpdate = true;
string cmd = _DB.DB_Search(Table_User, "id", tb_ID.Text);

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,6 @@ namespace WindowsFormsApp1.Home
{
Helper_DB db = new Helper_DB();
Main main;
int grididx = -3333;
public Order_manage(Main _main)
{
InitializeComponent();
@@ -57,17 +56,17 @@ namespace WindowsFormsApp1.Home
string db_res = db.DB_Send_CMD_Search(cmd);
Made_Grid(db_res);
}
grididx = 0;
Fill_textBox();
Fill_textBox(0);
}
private void Made_Grid(string strValue)
{
dataGridView1.Rows.Clear();
string[] dbdata = strValue.Split('|');
string[] grid = { "", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
string[] grid = { "", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "" };
int count = dbdata.Length;
int ea = 0;
@@ -100,97 +99,125 @@ namespace WindowsFormsApp1.Home
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
grididx = e.RowIndex;
Fill_textBox();
int row = e.RowIndex;
Fill_textBox(row);
}
void Fill_textBox()
void Fill_textBox(int row)
{
if (dataGridView1.RowCount <= 0) { return; }
if (row < 0) { return; }
btn_Add_Click(null, null);
tb_sangho.Text = dataGridView1.Rows[grididx].Cells["sangho"].Value.ToString();
tb_boss.Text = dataGridView1.Rows[grididx].Cells["boss"].Value.ToString();
tb_bubin.Text = dataGridView1.Rows[grididx].Cells["bubin"].Value.ToString();
tb_uptae.Text = dataGridView1.Rows[grididx].Cells["uptae"].Value.ToString();
tb_jongmok.Text = dataGridView1.Rows[grididx].Cells["jongmok"].Value.ToString();
tb_zip.Text = dataGridView1.Rows[grididx].Cells["zip"].Value.ToString();
tb_addr.Text = dataGridView1.Rows[grididx].Cells["addr"].Value.ToString();
tb_tel.Text = dataGridView1.Rows[grididx].Cells["tel"].Value.ToString();
tb_fax.Text = dataGridView1.Rows[grididx].Cells["fax"].Value.ToString();
tb_bank_no.Text = dataGridView1.Rows[grididx].Cells["bank_no"].Value.ToString();
tb_bank_comp.Text = dataGridView1.Rows[grididx].Cells["bank_comp"].Value.ToString();
tb_bank_name.Text = dataGridView1.Rows[grididx].Cells["bank_name"].Value.ToString();
tb_barea.Text = dataGridView1.Rows[grididx].Cells["barea"].Value.ToString();
lbl_idx.Text = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
tb_sangho.Text = dataGridView1.Rows[row].Cells["sangho"].Value.ToString();
tb_boss.Text = dataGridView1.Rows[row].Cells["boss"].Value.ToString();
tb_bubin.Text = dataGridView1.Rows[row].Cells["bubin"].Value.ToString();
tb_uptae.Text = dataGridView1.Rows[row].Cells["uptae"].Value.ToString();
tb_jongmok.Text = dataGridView1.Rows[row].Cells["jongmok"].Value.ToString();
tb_zip.Text = dataGridView1.Rows[row].Cells["zip"].Value.ToString();
tb_addr.Text = dataGridView1.Rows[row].Cells["addr"].Value.ToString();
tb_tel.Text = dataGridView1.Rows[row].Cells["tel"].Value.ToString();
tb_fax.Text = dataGridView1.Rows[row].Cells["fax"].Value.ToString();
tb_bank_no.Text = dataGridView1.Rows[row].Cells["bank_no"].Value.ToString();
tb_bank_comp.Text = dataGridView1.Rows[row].Cells["bank_comp"].Value.ToString();
tb_bank_name.Text = dataGridView1.Rows[row].Cells["bank_name"].Value.ToString();
tb_barea.Text = dataGridView1.Rows[row].Cells["barea"].Value.ToString();
string[] Search_data = { tb_sangho.Text, tb_boss.Text, tb_bubin.Text, tb_jongmok.Text, tb_zip.Text };
string[] Where_col = { "sangho", "boss", "bubin", "jongmok", "zip" };
string cmd = db.More_DB_Search("Purchase", Where_col, Search_data, "emchk");
string db_res = db.DB_Send_CMD_Search(cmd);
db_res = db_res.Replace("|", "");
if (db_res == "0")
{
rtb_etc.Text = dataGridView1.Rows[grididx].Cells["etc_1"].Value.ToString();
rtb_etc.Text += "\n" + dataGridView1.Rows[grididx].Cells["etc_2"].Value.ToString();
if (db_res == "0") {
rtb_etc.Text = dataGridView1.Rows[row].Cells["etc_1"].Value.ToString();
rtb_etc.Text += "\n" + dataGridView1.Rows[row].Cells["etc_2"].Value.ToString();
}
else
rtb_etc.Text = dataGridView1.Rows[row].Cells["etc_1"].Value.ToString();
tb_email.Text = dataGridView1.Rows[row].Cells["email"].Value.ToString();
tb_id.Text = dataGridView1.Rows[row].Cells["id"].Value.ToString();
tb_pw.Text = dataGridView1.Rows[row].Cells["pw"].Value.ToString();
tb_site.Text = dataGridView1.Rows[row].Cells["site"].Value.ToString();
if (dataGridView1.Rows[row].Cells["send_chk"].Value.ToString() == "") chk_send.Checked = false;
if (dataGridView1.Rows[row].Cells["send_chk"].Value.ToString() == "V") chk_send.Checked = true;
if (dataGridView1.Rows[row].Cells["emchk"].Value.ToString() == "0") chk_email.Checked = false;
if (dataGridView1.Rows[row].Cells["emchk"].Value.ToString() == "1") chk_email.Checked = true;
if (dataGridView1.Rows[row].Cells["gu"].Value.ToString() == "출판") cb_gubun.SelectedIndex = 0;
if (dataGridView1.Rows[row].Cells["gu"].Value.ToString() == "도매") cb_gubun.SelectedIndex = 1;
if (dataGridView1.Rows[row].Cells["gu"].Value.ToString() == "기타") cb_gubun.SelectedIndex = 2;
if (dataGridView1.Rows[row].Cells["gu"].Value.ToString() == "경비") cb_gubun.SelectedIndex = 3;
InputIndexWord();
}
/// <summary>
/// 색인어 그리드 채우기
/// </summary>
private void InputIndexWord()
{
dgv_IndexWord.Rows.Clear();
string Area = "`word`, `persent`";
string[] Search_Col = {
"compidx", "puridx"
};
string[] Search_Data = {
main.com_idx,
lbl_idx.Text
};
string cmd = db.More_DB_Search("IndexWord", Search_Col, Search_Data, Area);
string res = db.DB_Send_CMD_Search(cmd);
string[] ary = res.Split('|');
string[] grid = { "", "" };
for (int a = 0; a < ary.Length; a++)
{
rtb_etc.Text = dataGridView1.Rows[grididx].Cells["etc_1"].Value.ToString();
if (a % 2 == 0) { grid[0] = ary[a]; }
if (a % 2 == 1) { grid[1] = ary[a];
dgv_IndexWord.Rows.Add(grid);
}
}
tb_email.Text = dataGridView1.Rows[grididx].Cells["email"].Value.ToString();
tb_id.Text = dataGridView1.Rows[grididx].Cells["id"].Value.ToString();
tb_pw.Text = dataGridView1.Rows[grididx].Cells["pw"].Value.ToString();
tb_site.Text = dataGridView1.Rows[grididx].Cells["site"].Value.ToString();
if (dataGridView1.Rows[grididx].Cells["send_chk"].Value.ToString() == "") { chk_send.Checked = false; }
if (dataGridView1.Rows[grididx].Cells["send_chk"].Value.ToString() == "V") { chk_send.Checked = true; }
if (dataGridView1.Rows[grididx].Cells["emchk"].Value.ToString() == "0") { chk_email.Checked = false; }
if (dataGridView1.Rows[grididx].Cells["emchk"].Value.ToString() == "1") { chk_email.Checked = true; }
if(dataGridView1.Rows[grididx].Cells["gu"].Value.ToString() == "출판") { cb_gubun.SelectedIndex = 0; }
if(dataGridView1.Rows[grididx].Cells["gu"].Value.ToString() == "도매") { cb_gubun.SelectedIndex = 1; }
if(dataGridView1.Rows[grididx].Cells["gu"].Value.ToString() == "기타") { cb_gubun.SelectedIndex = 2; }
if(dataGridView1.Rows[grididx].Cells["gu"].Value.ToString() == "경비") { cb_gubun.SelectedIndex = 3; }
}
private void btn_Add_Click(object sender, EventArgs e) // 추가
{
tb_sangho.Text = "";
tb_boss.Text = "";
tb_bubin.Text = "";
tb_uptae.Text = "";
tb_jongmok.Text = "";
tb_zip.Text = "";
tb_addr.Text = "";
tb_tel.Text = "";
tb_fax.Text = "";
tb_bank_no.Text = "";
tb_bank_comp.Text = "";
tb_bank_name.Text = "";
tb_barea.Text = "";
TextBox[] textBox = {
tb_sangho, tb_boss, tb_bubin, tb_uptae, tb_jongmok,
tb_zip, tb_addr, tb_tel, tb_fax, tb_bank_no, tb_bank_comp,
tb_bank_name, tb_barea, tb_email, tb_id, tb_pw,
tb_site
};
for (int a = 0; a < textBox.Length; a++)
textBox[a].Text = "";
rtb_etc.Text = "";
tb_email.Text = "";
tb_id.Text = "";
tb_pw.Text = "";
tb_site.Text = "";
cb_gubun.SelectedIndex = 0;
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Up)
if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
{
grididx--;
Fill_textBox();
}
if (e.KeyCode == Keys.Down)
{
grididx++;
Fill_textBox();
int row = dataGridView1.CurrentCell.RowIndex;
if (e.KeyCode == Keys.Up && row > 0)
{
row--;
}
if (e.KeyCode == Keys.Down && row < dataGridView1.RowCount - 1)
{
row++;
}
Fill_textBox(row);
}
}
private void btn_Save_Click(object sender, EventArgs e) // 저장
{
string Table = "Purchase";
string[] Search_Table = { "comparyidx", "bubin" };
string[] Search_Data = { main.com_idx, tb_bubin.Text };
string[] Search_Table = { "comparyidx", "idx" };
string[] Search_Data = { main.com_idx, lbl_idx.Text };
bool Isinsert = false;
string cmd = db.More_DB_Search(Table, Search_Table, Search_Data);
@@ -228,8 +255,10 @@ namespace WindowsFormsApp1.Home
}
private void btn_Delete_Click(object sender, EventArgs e) // 삭제
{
string idx = dataGridView1.Rows[grididx].Cells["idx"].Value.ToString();
string sangho = dataGridView1.Rows[grididx].Cells["sangho"].Value.ToString();
int row = dataGridView1.CurrentCell.RowIndex;
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
string sangho = dataGridView1.Rows[row].Cells["sangho"].Value.ToString();
string D_cmd = db.DB_Delete("Purchase", "idx", idx, "sangho", sangho);
db.DB_Send_CMD_reVoid(D_cmd);
MessageBox.Show(sangho + " 삭제 완료");
@@ -241,7 +270,22 @@ namespace WindowsFormsApp1.Home
}
private void btn_SitePage_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(tb_site.Text);
string text = tb_site.Text;
string[] before = { "네이버", "다음", "네이트" };
string[] after = { "www.naver.com", "www.daum.net", "www.nate.com" };
for(int a= 0; a < before.Length; a++)
{
if (text == before[a])
text = after[a];
}
try
{
System.Diagnostics.Process.Start(text);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void btn_close_Click(object sender, EventArgs e)
{
@@ -265,5 +309,156 @@ namespace WindowsFormsApp1.Home
tb_sangho.Text = tb_sangho.Text.Replace("-사용중지", "");
}
}
#region
private void btn_AddIW_Click(object sender, EventArgs e)
{
tb_IndexWord.Text = "";
tb_persent.Value = 0;
}
private void btn_SaveIW_Click(object sender, EventArgs e)
{
// 사전준비
string compidx = main.com_idx;
string puridx = lbl_idx.Text;
string word = tb_IndexWord.Text;
string persent = tb_persent.Value.ToString();
IndexWordSavetoDB(compidx, puridx, word, persent);
InputIndexWord();
}
private void IndexWordSavetoDB(string compidx, string puridx, string word, string persent)
{
// DB중복체크
string Table = "IndexWord";
string[] Search_Table = { "compidx", "puridx", "word" };
string[] Search_Data = { compidx, puridx, word };
bool IsInsert = false;
string cmd = db.More_DB_Search(Table, Search_Table, Search_Data);
if (db.DB_Send_CMD_Search(cmd).Length < 5) IsInsert = true;
string[] Insert_Col = { "compidx", "puridx", "word", "persent" };
string[] Insert_Data = { compidx, puridx, word, persent };
string InCmd = "";
if (IsInsert)
InCmd = db.DB_INSERT("IndexWord", Insert_Col, Insert_Data);
else
InCmd = db.More_Update(Table, Insert_Col, Insert_Data, Search_Table, Search_Data);
db.DB_Send_CMD_reVoid(InCmd);
}
private void btn_ExcelIW_Click(object sender, EventArgs e)
{
// ????
}
private void btn_DeleteIW_Click(object sender, EventArgs e)
{
int row = dgv_IndexWord.CurrentRow.Index;
string puridx = lbl_idx.Text;
string word = dgv_IndexWord.Rows[row].Cells["IndexWord"].Value.ToString();
string persent = dgv_IndexWord.Rows[row].Cells["IndexPersent"].Value.ToString();
string cmd = string.Format(
"DELETE FROM `{0}` " +
"WHERE `{1}` = \"{2}\" " +
"AND `{3}` = \"{4}\" " +
"AND `{5}` = \"{6}\" " +
"AND `{7}` = \"{8}\" " +
"LIMIT 1;",
"IndexWord",
"compidx", main.com_idx,
"puridx", puridx,
"word", word,
"persent", persent);
MessageBox.Show(cmd);
db.DB_Send_CMD_reVoid(cmd);
dgv_IndexWord.Rows.RemoveAt(row);
}
#endregion
private void tb_IndexWord_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
tb_persent.Focus();
}
}
private void tb_persent_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
btn_SaveIW.Focus();
}
}
private void dgv_IndexWord_CellClick(object sender, DataGridViewCellEventArgs e)
{
int row = e.RowIndex;
if (row < 0) return;
tb_IndexWord.Text = dgv_IndexWord.Rows[row].Cells["IndexWord"].Value.ToString();
tb_persent.Value = Convert.ToInt32(dgv_IndexWord.Rows[row].Cells["IndexPersent"].Value.ToString());
}
private void dgv_IndexWord_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
private void dgv_IndexWord_KeyDown(object sender, KeyEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Excel_to_DataGridView(sender, e);
}
#region
private void btn_batchProcess_Click(object sender, EventArgs e)
{
if (panel_batchProcess.Visible)
panel_batchProcess.Visible = false;
else
panel_batchProcess.Visible = true;
}
private void btn_batchProcessing_Click(object sender, EventArgs e)
{
int count = dgv_WordSUB.RowCount;
string compidx = main.com_idx;
string puridx = lbl_idx.Text;
for (int a = 0; a < count; a++)
{
if (dgv_WordSUB.Rows[a].Cells["IndexWordSub"].Value.ToString() == "" ||
dgv_WordSUB.Rows[a].Cells["IndexWordSub"].Value == null) break;
string word = dgv_WordSUB.Rows[a].Cells["IndexWordSub"].Value.ToString();
string persent = dgv_WordSUB.Rows[a].Cells["IndexPersentSub"].Value.ToString();
IndexWordSavetoDB(compidx, puridx, word, persent);
}
InputIndexWord();
}
private void btn_ProcessExit_Click(object sender, EventArgs e)
{
panel_batchProcess.Visible = false;
}
#endregion
}
}

View File

@@ -186,16 +186,16 @@
<metadata name="emchk.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="IndexWord.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="IndexPersent.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="IndexWordSub.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<metadata name="IndexPersentSub.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -28,14 +28,14 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
this.NameLabel = new System.Windows.Forms.Label();
this.tb_sangho = new System.Windows.Forms.TextBox();
this.tb_addr = new System.Windows.Forms.TextBox();
@@ -55,26 +55,6 @@
this.cb_gubun2 = new System.Windows.Forms.ComboBox();
this.rtb_etc = new System.Windows.Forms.RichTextBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sangho = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.gubun = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.boss = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bubin = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.uptae = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.jongmok = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.fax = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.mail = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.man = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.assumer = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.post_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.addr = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DLSid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DLSpw = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.division = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.program = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tb_man1 = new System.Windows.Forms.TextBox();
this.btn_search = new System.Windows.Forms.Button();
this.tb_id = new System.Windows.Forms.TextBox();
@@ -105,18 +85,42 @@
this.btn_marc_expand = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.marcGrid = new System.Windows.Forms.DataGridView();
this.marcLabel = new System.Windows.Forms.Label();
this.gearLabel = new System.Windows.Forms.Label();
this.gearGrid = new System.Windows.Forms.DataGridView();
this.tb_marcEmpty = new System.Windows.Forms.Button();
this.tb_gearEmpty = new System.Windows.Forms.Button();
this.tb_marcSave = new System.Windows.Forms.Button();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.marcLabel = new System.Windows.Forms.Label();
this.gearLabel = new System.Windows.Forms.Label();
this.gearGrid = new System.Windows.Forms.DataGridView();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tb_marcEmpty = new System.Windows.Forms.Button();
this.tb_gearEmpty = new System.Windows.Forms.Button();
this.tb_marcSave = new System.Windows.Forms.Button();
this.cb_dlsArea = new System.Windows.Forms.ComboBox();
this.label18 = new System.Windows.Forms.Label();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sangho = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.gubun = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.boss = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bubin = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.uptae = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.jongmok = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.fax = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.mail = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.man = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.mantel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.assumer = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.post_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.addr = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dlsArea = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DLSid = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DLSpw = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.division = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.program = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bigo = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.marcGrid)).BeginInit();
@@ -299,14 +303,14 @@
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
@@ -320,9 +324,11 @@
this.fax,
this.mail,
this.man,
this.mantel,
this.assumer,
this.post_num,
this.addr,
this.dlsArea,
this.DLSid,
this.DLSpw,
this.division,
@@ -334,14 +340,14 @@
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.ControlDark;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.ControlDark;
dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle10;
this.dataGridView1.RowHeadersWidth = 21;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@@ -350,132 +356,6 @@
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.ReadOnly = true;
this.idx.Visible = false;
//
// sangho
//
this.sangho.HeaderText = "업체명";
this.sangho.Name = "sangho";
this.sangho.ReadOnly = true;
this.sangho.Width = 150;
//
// gubun
//
this.gubun.HeaderText = "구분";
this.gubun.Name = "gubun";
this.gubun.ReadOnly = true;
this.gubun.Width = 80;
//
// boss
//
this.boss.HeaderText = "대표자명";
this.boss.Name = "boss";
this.boss.ReadOnly = true;
//
// bubin
//
this.bubin.HeaderText = "등록번호";
this.bubin.Name = "bubin";
this.bubin.ReadOnly = true;
//
// uptae
//
this.uptae.HeaderText = "업태";
this.uptae.Name = "uptae";
this.uptae.ReadOnly = true;
//
// jongmok
//
this.jongmok.HeaderText = "종목";
this.jongmok.Name = "jongmok";
this.jongmok.ReadOnly = true;
//
// tel
//
this.tel.HeaderText = "전화번호";
this.tel.Name = "tel";
this.tel.ReadOnly = true;
//
// fax
//
this.fax.HeaderText = "팩스";
this.fax.Name = "fax";
this.fax.ReadOnly = true;
//
// mail
//
this.mail.HeaderText = "메일";
this.mail.Name = "mail";
this.mail.ReadOnly = true;
//
// man
//
this.man.HeaderText = "담당자 정보";
this.man.Name = "man";
this.man.ReadOnly = true;
this.man.Width = 220;
//
// assumer
//
this.assumer.HeaderText = "담당직원";
this.assumer.Name = "assumer";
this.assumer.ReadOnly = true;
//
// post_num
//
this.post_num.HeaderText = "우편번호";
this.post_num.Name = "post_num";
this.post_num.ReadOnly = true;
//
// addr
//
this.addr.HeaderText = "주소";
this.addr.Name = "addr";
this.addr.ReadOnly = true;
this.addr.Width = 200;
//
// DLSid
//
this.DLSid.HeaderText = "아이디";
this.DLSid.Name = "DLSid";
this.DLSid.ReadOnly = true;
//
// DLSpw
//
this.DLSpw.HeaderText = "비밀번호";
this.DLSpw.Name = "DLSpw";
this.DLSpw.ReadOnly = true;
//
// division
//
this.division.HeaderText = "용지칸수";
this.division.Name = "division";
this.division.ReadOnly = true;
//
// label
//
this.label.HeaderText = "띠라벨";
this.label.Name = "label";
this.label.ReadOnly = true;
//
// program
//
this.program.HeaderText = "사용프로그램";
this.program.Name = "program";
this.program.ReadOnly = true;
//
// bigo
//
this.bigo.HeaderText = "비고";
this.bigo.Name = "bigo";
this.bigo.ReadOnly = true;
this.bigo.Visible = false;
//
// tb_man1
//
this.tb_man1.Location = new System.Drawing.Point(271, 84);
@@ -712,6 +592,7 @@
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.cb_dlsArea);
this.panel1.Controls.Add(this.NameLabel);
this.panel1.Controls.Add(this.tb_sangho);
this.panel1.Controls.Add(this.btn_marc_expand);
@@ -721,6 +602,7 @@
this.panel1.Controls.Add(this.btn_close);
this.panel1.Controls.Add(this.tb_tel);
this.panel1.Controls.Add(this.tb_bubin);
this.panel1.Controls.Add(this.label18);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.tb_jongmok);
this.panel1.Controls.Add(this.tb_addr);
@@ -767,14 +649,14 @@
//
this.marcGrid.AllowUserToAddRows = false;
this.marcGrid.AllowUserToDeleteRows = false;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
this.marcGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.marcGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
@@ -790,6 +672,26 @@
this.marcGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.marcGrid_RowPostPaint);
this.marcGrid.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Grid_KeyDown);
//
// Column1
//
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.Column1.DefaultCellStyle = dataGridViewCellStyle12;
this.Column1.HeaderText = "날짜";
this.Column1.Name = "Column1";
//
// Column2
//
this.Column2.HeaderText = "내용";
this.Column2.Name = "Column2";
this.Column2.Width = 350;
//
// Column3
//
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.Column3.DefaultCellStyle = dataGridViewCellStyle13;
this.Column3.HeaderText = "작성자";
this.Column3.Name = "Column3";
//
// marcLabel
//
this.marcLabel.AutoSize = true;
@@ -816,14 +718,14 @@
//
this.gearGrid.AllowUserToAddRows = false;
this.gearGrid.AllowUserToDeleteRows = false;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle14.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
this.gearGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gearGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dataGridViewTextBoxColumn1,
@@ -839,6 +741,26 @@
this.gearGrid.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.marcGrid_RowPostPaint);
this.gearGrid.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Grid_KeyDown);
//
// dataGridViewTextBoxColumn1
//
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle15;
this.dataGridViewTextBoxColumn1.HeaderText = "날짜";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.HeaderText = "내용";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.Width = 350;
//
// dataGridViewTextBoxColumn3
//
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle16;
this.dataGridViewTextBoxColumn3.HeaderText = "작성자";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
//
// tb_marcEmpty
//
this.tb_marcEmpty.Location = new System.Drawing.Point(1487, 11);
@@ -869,45 +791,163 @@
this.tb_marcSave.UseVisualStyleBackColor = true;
this.tb_marcSave.Click += new System.EventHandler(this.tb_marcSave_Click);
//
// Column1
// cb_dlsArea
//
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.Column1.DefaultCellStyle = dataGridViewCellStyle4;
this.Column1.HeaderText = "날짜";
this.Column1.Name = "Column1";
this.cb_dlsArea.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_dlsArea.FormattingEnabled = true;
this.cb_dlsArea.Location = new System.Drawing.Point(639, 132);
this.cb_dlsArea.Name = "cb_dlsArea";
this.cb_dlsArea.Size = new System.Drawing.Size(194, 20);
this.cb_dlsArea.TabIndex = 47;
//
// Column2
// label18
//
this.Column2.HeaderText = "내용";
this.Column2.Name = "Column2";
this.Column2.Width = 350;
this.label18.AutoSize = true;
this.label18.ForeColor = System.Drawing.SystemColors.ControlText;
this.label18.Location = new System.Drawing.Point(584, 136);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(52, 12);
this.label18.TabIndex = 24;
this.label18.Text = "DLS지역";
//
// Column3
// idx
//
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.Column3.DefaultCellStyle = dataGridViewCellStyle5;
this.Column3.HeaderText = "작성자";
this.Column3.Name = "Column3";
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.ReadOnly = true;
this.idx.Visible = false;
//
// dataGridViewTextBoxColumn1
// sangho
//
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle7;
this.dataGridViewTextBoxColumn1.HeaderText = "날짜";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.sangho.HeaderText = "업체명";
this.sangho.Name = "sangho";
this.sangho.ReadOnly = true;
this.sangho.Width = 150;
//
// dataGridViewTextBoxColumn2
// gubun
//
this.dataGridViewTextBoxColumn2.HeaderText = "내용";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.Width = 350;
this.gubun.HeaderText = "구분";
this.gubun.Name = "gubun";
this.gubun.ReadOnly = true;
this.gubun.Width = 80;
//
// dataGridViewTextBoxColumn3
// boss
//
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle8;
this.dataGridViewTextBoxColumn3.HeaderText = "작성자";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.boss.HeaderText = "대표자명";
this.boss.Name = "boss";
this.boss.ReadOnly = true;
//
// bubin
//
this.bubin.HeaderText = "등록번호";
this.bubin.Name = "bubin";
this.bubin.ReadOnly = true;
//
// uptae
//
this.uptae.HeaderText = "업태";
this.uptae.Name = "uptae";
this.uptae.ReadOnly = true;
//
// jongmok
//
this.jongmok.HeaderText = "종목";
this.jongmok.Name = "jongmok";
this.jongmok.ReadOnly = true;
//
// tel
//
this.tel.HeaderText = "전화번호";
this.tel.Name = "tel";
this.tel.ReadOnly = true;
//
// fax
//
this.fax.HeaderText = "팩스";
this.fax.Name = "fax";
this.fax.ReadOnly = true;
//
// mail
//
this.mail.HeaderText = "메일";
this.mail.Name = "mail";
this.mail.ReadOnly = true;
//
// man
//
this.man.HeaderText = "담당자";
this.man.Name = "man";
this.man.ReadOnly = true;
this.man.Width = 80;
//
// mantel
//
this.mantel.HeaderText = "담당자 정보";
this.mantel.Name = "mantel";
this.mantel.ReadOnly = true;
this.mantel.Width = 160;
//
// assumer
//
this.assumer.HeaderText = "담당직원";
this.assumer.Name = "assumer";
this.assumer.ReadOnly = true;
//
// post_num
//
this.post_num.HeaderText = "우편번호";
this.post_num.Name = "post_num";
this.post_num.ReadOnly = true;
//
// addr
//
this.addr.HeaderText = "주소";
this.addr.Name = "addr";
this.addr.ReadOnly = true;
this.addr.Width = 200;
//
// dlsArea
//
this.dlsArea.HeaderText = "DLS지역";
this.dlsArea.Name = "dlsArea";
this.dlsArea.ReadOnly = true;
//
// DLSid
//
this.DLSid.HeaderText = "아이디";
this.DLSid.Name = "DLSid";
this.DLSid.ReadOnly = true;
//
// DLSpw
//
this.DLSpw.HeaderText = "비밀번호";
this.DLSpw.Name = "DLSpw";
this.DLSpw.ReadOnly = true;
//
// division
//
this.division.HeaderText = "용지칸수";
this.division.Name = "division";
this.division.ReadOnly = true;
//
// label
//
this.label.HeaderText = "띠라벨";
this.label.Name = "label";
this.label.ReadOnly = true;
//
// program
//
this.program.HeaderText = "사용프로그램";
this.program.Name = "program";
this.program.ReadOnly = true;
//
// bigo
//
this.bigo.HeaderText = "비고";
this.bigo.Name = "bigo";
this.bigo.ReadOnly = true;
this.bigo.Visible = false;
//
// Transaction_manage
//
@@ -984,26 +1024,6 @@
public System.Windows.Forms.TextBox tb_program;
private System.Windows.Forms.Button btn_close;
public System.Windows.Forms.ComboBox cb_gubun1;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn sangho;
private System.Windows.Forms.DataGridViewTextBoxColumn gubun;
private System.Windows.Forms.DataGridViewTextBoxColumn boss;
private System.Windows.Forms.DataGridViewTextBoxColumn bubin;
private System.Windows.Forms.DataGridViewTextBoxColumn uptae;
private System.Windows.Forms.DataGridViewTextBoxColumn jongmok;
private System.Windows.Forms.DataGridViewTextBoxColumn tel;
private System.Windows.Forms.DataGridViewTextBoxColumn fax;
private System.Windows.Forms.DataGridViewTextBoxColumn mail;
private System.Windows.Forms.DataGridViewTextBoxColumn man;
private System.Windows.Forms.DataGridViewTextBoxColumn assumer;
private System.Windows.Forms.DataGridViewTextBoxColumn post_num;
private System.Windows.Forms.DataGridViewTextBoxColumn addr;
private System.Windows.Forms.DataGridViewTextBoxColumn DLSid;
private System.Windows.Forms.DataGridViewTextBoxColumn DLSpw;
private System.Windows.Forms.DataGridViewTextBoxColumn division;
private System.Windows.Forms.DataGridViewTextBoxColumn label;
private System.Windows.Forms.DataGridViewTextBoxColumn program;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo;
private System.Windows.Forms.Button btn_marc_expand;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.DataGridView marcGrid;
@@ -1019,5 +1039,29 @@
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.ComboBox cb_dlsArea;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn sangho;
private System.Windows.Forms.DataGridViewTextBoxColumn gubun;
private System.Windows.Forms.DataGridViewTextBoxColumn boss;
private System.Windows.Forms.DataGridViewTextBoxColumn bubin;
private System.Windows.Forms.DataGridViewTextBoxColumn uptae;
private System.Windows.Forms.DataGridViewTextBoxColumn jongmok;
private System.Windows.Forms.DataGridViewTextBoxColumn tel;
private System.Windows.Forms.DataGridViewTextBoxColumn fax;
private System.Windows.Forms.DataGridViewTextBoxColumn mail;
private System.Windows.Forms.DataGridViewTextBoxColumn man;
private System.Windows.Forms.DataGridViewTextBoxColumn mantel;
private System.Windows.Forms.DataGridViewTextBoxColumn assumer;
private System.Windows.Forms.DataGridViewTextBoxColumn post_num;
private System.Windows.Forms.DataGridViewTextBoxColumn addr;
private System.Windows.Forms.DataGridViewTextBoxColumn dlsArea;
private System.Windows.Forms.DataGridViewTextBoxColumn DLSid;
private System.Windows.Forms.DataGridViewTextBoxColumn DLSpw;
private System.Windows.Forms.DataGridViewTextBoxColumn division;
private System.Windows.Forms.DataGridViewTextBoxColumn label;
private System.Windows.Forms.DataGridViewTextBoxColumn program;
private System.Windows.Forms.DataGridViewTextBoxColumn bigo;
}
}

View File

@@ -27,6 +27,15 @@ namespace WindowsFormsApp1.Home
string[] gubun1 = { "전체", "납품처", "거래처" };
cb_gubun1.Items.AddRange(gubun1);
cb_gubun1.SelectedIndex = 0;
string[] dlsArea = {
"서울", "부산", "대구", "인천", "광주",
"대전", "울산", "세종", "경기", "강원",
"충북", "충남", "전북", "전남", "경북",
"경남", "제주"
};
cb_dlsArea.Items.AddRange(dlsArea);
compidx = main.com_idx;
marcLabel.Visible = false;
gearLabel.Visible = false;
@@ -42,8 +51,8 @@ namespace WindowsFormsApp1.Home
string seartempdb = "`idx`, `c_sangho`, `c_gu`, `c_boss`, `c_bubin`, " +
"`c_uptae`, `c_jongmok`, `c_tel`, `c_fax`, `c_email`, " +
"`c_man`, `c_mantel`, `c_user`, `c_zip`, `c_addr`, " +
"`c_dlsID`, `c_dlsPW`, `c_division`, `c_label`, `c_program`, " +
"`c_etc`";
"`c_dlsArea`, `c_dlsID`, `c_dlsPW`, `c_division`, `c_label`," +
" `c_program`, `c_etc`";
string cmd = db.DB_Select_Search(seartempdb, "Client", "campanyidx", compidx);
string db_res = db.DB_Send_CMD_Search(cmd);
dataGridView1.Rows.Clear();
@@ -52,7 +61,7 @@ namespace WindowsFormsApp1.Home
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"" };
"", "" };
int ea = 0;
for(int a = 0; a < data.Length; a++)
{
@@ -119,16 +128,22 @@ namespace WindowsFormsApp1.Home
MessageBox.Show("구분을 선택해주세요.");
return;
}
if (cb_gubun2.SelectedItem.ToString() == "학교" && cb_dlsArea.SelectedIndex < 0)
{
MessageBox.Show("DLS 지역을 선택해주세요.");
return;
}
string[] tmpdb = { "c_sangho`, `c_gu`, `c_boss`, `c_bubin`, `c_uptae`, " +
"`c_jongmok`, `c_tel`, `c_fax`, `c_email`, `c_man`, " +
"`c_mantel`, `c_user`, `c_zip`, `c_addr`, `c_dlsID`, " +
"`c_dlsPW`, `c_division`, `c_label`, `c_program`, `c_etc`, " +
"`campanyidx" };
"`campanyidx", "c_dlsArea" };
string[] tmpdb1 = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
tb_man1.Text, tb_user.Text, tb_zip.Text, tb_addr.Text, tb_id.Text,
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
compidx };
compidx, cb_dlsArea.Text };
string Incmd = db.DB_INSERT("Client", tmpdb, tmpdb1);
db.DB_Send_CMD_reVoid(Incmd);
MessageBox.Show(tb_sangho.Text + "가 성공적으로 저장되었습니다.");
@@ -136,18 +151,23 @@ namespace WindowsFormsApp1.Home
}
private void btn_edit_Click(object sender, EventArgs e)
{
string[] editcol = { "c_sangho`, `c_gu`, `c_boss`, `c_bubin`, `c_uptae`, " +
"`c_jongmok`, `c_tel`, `c_fax`, `c_email`, `c_man`, " +
"`c_mantel`, `c_user`, `c_zip`, `c_addr`, `c_dlsID`, " +
"`c_dlsPW`, `c_division`, `c_label`, `c_program`, `c_etc" };
string[] editcol = { "c_sangho", "c_gu", "c_boss", "c_bubin", "c_uptae",
"c_jongmok", "c_tel", "c_fax", "c_email", "c_man",
"c_mantel", "c_user", "c_zip", "c_addr", "c_dlsID",
"c_dlsPW", "c_division", "c_label", "c_program", "c_etc",
"c_dlsArea"
};
string[] editname = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
tb_man1.Text, tb_user.Text, tb_zip.Text, tb_addr.Text, tb_id.Text,
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text };
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
cb_dlsArea.Text
};
string[] searchcol = { "idx", "campanyidx" };
string[] searchname = { dataGridView1.Rows[grididx].Cells["idx"].Value.ToString(), compidx };
string U_cmd = db.More_Update("Client", editcol, editname, searchcol, searchname);
db.DB_Send_CMD_reVoid(U_cmd);
MessageBox.Show(tb_sangho.Text + "가 성공적으로 저장되었습니다.");
Made_Grid();
}
private void btn_delete_Click(object sender, EventArgs e)
@@ -172,19 +192,21 @@ namespace WindowsFormsApp1.Home
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if(e == null) {
if(updown == "UP")
if (e.RowIndex < 0) return;
if (e == null) {
if (updown == "UP")
{
if (grididx < 1) return;
grididx--;
}
else if(updown == "DOWN")
else if (updown == "DOWN")
{
if (grididx > dataGridView1.Rows.Count) return;
grididx++;
}
}
else if(e != null) { grididx = e.RowIndex; }
else if (e != null) { grididx = e.RowIndex; }
if (e.RowIndex < 0) { return; }
@@ -205,6 +227,8 @@ namespace WindowsFormsApp1.Home
tb_tel.Text = dataGridView1.Rows[grididx].Cells["tel"].Value.ToString();
tb_fax.Text = dataGridView1.Rows[grididx].Cells["fax"].Value.ToString();
cb_dlsArea.Text = dataGridView1.Rows[grididx].Cells["dlsArea"].Value.ToString();
if (tmp_man.Length > 1)
{
if (tmp_man[0] != "") { tb_man.Text = tmp_man[0]; }
@@ -265,8 +289,8 @@ namespace WindowsFormsApp1.Home
string search = "`idx`, `c_sangho`, `c_gu`, `c_boss`, `c_bubin`, " +
"`c_uptae`, `c_jongmok`, `c_tel`, `c_fax`, `c_email`, " +
"`c_man`, `c_mantel`, `c_user`, `c_zip`, `c_addr`, " +
"`c_dlsID`, `c_dlsPW`, `c_division`, `c_label`, `c_program`, " +
"`c_etc`";
"`c_dlsArea`, `c_dlsID`, `c_dlsPW`, `c_division`, `c_label`," +
" `c_program`, `c_etc`";
string cmd = db.DB_Contains("Client", compidx, "c_sangho", tb_sangho.Text, search);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] dbtext1 = db_res.Split('|');
@@ -277,27 +301,28 @@ namespace WindowsFormsApp1.Home
"", "" };
for (int a = 0; a < dbtext1.Length; a++)
{
if (a % 21 == 00) { result[00] = dbtext1[a]; } // idx
if (a % 21 == 01) { result[01] = dbtext1[a]; } // 거래처명
if (a % 21 == 02) { result[02] = dbtext1[a]; } // 구분
if (a % 21 == 03) { result[03] = dbtext1[a]; } // 대표자명
if (a % 21 == 04) { result[04] = dbtext1[a]; } // 등록번호
if (a % 21 == 05) { result[05] = dbtext1[a]; } // 업태
if (a % 21 == 06) { result[06] = dbtext1[a]; } // 종목
if (a % 21 == 07) { result[07] = dbtext1[a]; } // 전화번호
if (a % 21 == 08) { result[08] = dbtext1[a]; } // 팩스
if (a % 21 == 09) { result[09] = dbtext1[a]; } // 메일
if (a % 21 == 10) { result[10] = dbtext1[a]; } // 담당자정보1
if (a % 21 == 11) { result[11] = dbtext1[a]; } // 담당자정보2
if (a % 21 == 12) { result[12] = dbtext1[a]; } // 담당직원
if (a % 21 == 13) { result[13] = dbtext1[a]; } // 우편번호
if (a % 21 == 14) { result[14] = dbtext1[a]; } // 주소
if (a % 21 == 15) { result[15] = dbtext1[a]; } // 아이디
if (a % 21 == 16) { result[16] = dbtext1[a]; } // 비밀번호
if (a % 21 == 17) { result[17] = dbtext1[a]; } // 용지칸수
if (a % 21 == 18) { result[18] = dbtext1[a]; } // 띠라벨
if (a % 21 == 19) { result[19] = dbtext1[a]; } // 사용프로그램
if (a % 21 == 20) { result[20] = dbtext1[a]; dataGridView1.Rows.Add(result); } // 비고
if (a % 22 == 00) { result[00] = dbtext1[a]; } // idx
if (a % 22 == 01) { result[01] = dbtext1[a]; } // 거래처명
if (a % 22 == 02) { result[02] = dbtext1[a]; } // 구분
if (a % 22 == 03) { result[03] = dbtext1[a]; } // 대표자명
if (a % 22 == 04) { result[04] = dbtext1[a]; } // 등록번호
if (a % 22 == 05) { result[05] = dbtext1[a]; } // 업태
if (a % 22 == 06) { result[06] = dbtext1[a]; } // 종목
if (a % 22 == 07) { result[07] = dbtext1[a]; } // 전화번호
if (a % 22 == 08) { result[08] = dbtext1[a]; } // 팩스
if (a % 22 == 09) { result[09] = dbtext1[a]; } // 메일
if (a % 22 == 10) { result[10] = dbtext1[a]; } // 담당자정보1
if (a % 22 == 11) { result[11] = dbtext1[a]; } // 담당자정보2
if (a % 22 == 12) { result[12] = dbtext1[a]; } // 담당직원
if (a % 22 == 13) { result[13] = dbtext1[a]; } // 우편번호
if (a % 22 == 14) { result[14] = dbtext1[a]; } // 주소
if (a % 22 == 15) { result[15] = dbtext1[a]; } // DLS지역
if (a % 22 == 16) { result[16] = dbtext1[a]; } // 아이디
if (a % 22 == 17) { result[17] = dbtext1[a]; } // 비밀번호
if (a % 22 == 18) { result[18] = dbtext1[a]; } // 용지칸수
if (a % 22 == 19) { result[19] = dbtext1[a]; } // 띠라벨
if (a % 22 == 20) { result[20] = dbtext1[a]; } // 사용프로그램
if (a % 22 == 21) { result[21] = dbtext1[a]; dataGridView1.Rows.Add(result); } // 비고
}
dataGridView1.Focus();
}
@@ -325,9 +350,9 @@ namespace WindowsFormsApp1.Home
string seartempdb = "`idx`, `c_sangho`, `c_gu`, `c_boss`, `c_bubin`, " +
"`c_uptae`, `c_jongmok`, `c_tel`, `c_fax`, `c_email`, " +
"`c_man`, `c_mantel`, `c_user`, `c_zip`, `c_addr`, " +
"`c_dlsID`, `c_dlsPW`, `c_division`, `c_label`, `c_program`, " +
"`c_etc`";
"`c_dlsArea`, `c_dlsID`, `c_dlsPW`, `c_division`, `c_label`," +
" `c_program`, `c_etc`";
string cmd = "SELECT " + seartempdb + " FROM Client " +
"WHERE `c_gu` = '" + strValue1 + "' OR `c_gu` = '" + strValue2 + "';";
string tmpdb = db.self_Made_Cmd(cmd);
@@ -337,30 +362,31 @@ namespace WindowsFormsApp1.Home
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"" };
"", "" };
for (int a = 0; a < data.Length; a++)
{
if (a % 21 == 0) { result[0] = data[a]; } // idx
if (a % 21 == 1) { result[1] = data[a]; } // 거래처명
if (a % 21 == 2) { result[2] = data[a]; } // 구분
if (a % 21 == 3) { result[3] = data[a]; } // 대표자명
if (a % 21 == 4) { result[4] = data[a]; } // 등록번호
if (a % 21 == 5) { result[5] = data[a]; } // 업태
if (a % 21 == 6) { result[6] = data[a]; } // 종목
if (a % 21 == 7) { result[7] = data[a]; } // 전화번호
if (a % 21 == 8) { result[8] = data[a]; } // 팩스
if (a % 21 == 9) { result[9] = data[a]; } // 메일
if (a % 21 == 10) { result[10] = data[a]; } // 담당자정보1
if (a % 21 == 11) { result[10] += " | " + data[a]; } // 담당자정보2
if (a % 21 == 12) { result[11] = data[a]; } // 담당직원
if (a % 21 == 13) { result[12] = data[a]; } // 우편번호
if (a % 21 == 14) { result[13] = data[a]; } // 주소
if (a % 21 == 15) { result[14] = data[a]; } // 아이디
if (a % 21 == 16) { result[15] = data[a]; } // 비밀번호
if (a % 21 == 17) { result[16] = data[a]; } // 용지칸수
if (a % 21 == 18) { result[17] = data[a]; } // 띠라벨
if (a % 21 == 19) { result[18] = data[a]; } // 사용프로그램
if (a % 21 == 20) { result[19] = data[a]; dataGridView1.Rows.Add(result); } // 비고
if (a % 22 == 00) { result[00] = data[a]; } // idx
if (a % 22 == 01) { result[01] = data[a]; } // 거래처명
if (a % 22 == 02) { result[02] = data[a]; } // 구분
if (a % 22 == 03) { result[03] = data[a]; } // 대표자명
if (a % 22 == 04) { result[04] = data[a]; } // 등록번호
if (a % 22 == 05) { result[05] = data[a]; } // 업태
if (a % 22 == 06) { result[06] = data[a]; } // 종목
if (a % 22 == 07) { result[07] = data[a]; } // 전화번호
if (a % 22 == 08) { result[08] = data[a]; } // 팩스
if (a % 22 == 09) { result[09] = data[a]; } // 메일
if (a % 22 == 10) { result[10] = data[a]; } // 담당자정보1
if (a % 22 == 11) { result[11] = data[a]; } // 담당자정보2
if (a % 22 == 12) { result[12] = data[a]; } // 담당직원
if (a % 22 == 13) { result[13] = data[a]; } // 우편번호
if (a % 22 == 14) { result[14] = data[a]; } // 주소
if (a % 22 == 15) { result[15] = data[a]; } // DLS지역
if (a % 22 == 16) { result[16] = data[a]; } // 아이디
if (a % 22 == 17) { result[17] = data[a]; } // 비밀번호
if (a % 22 == 18) { result[18] = data[a]; } // 용지칸수
if (a % 22 == 19) { result[19] = data[a]; } // 띠라벨
if (a % 22 == 20) { result[20] = data[a]; } // 사용프로그램
if (a % 22 == 21) { result[21] = data[a]; dataGridView1.Rows.Add(result); } // 비고
}
}
bool marc_lookup = false;
@@ -499,7 +525,7 @@ namespace WindowsFormsApp1.Home
if (e.ColumnIndex == 1)
{
string date = DateTime.Now.ToString("yyyy-MM-dd");
string charge = main.toolStripLabel1.Text;
string charge = main.botUserLabel.Text;
gridView.Rows[e.RowIndex].Cells[0].Value = date;
gridView.Rows[e.RowIndex].Cells[2].Value = charge;

View File

@@ -150,6 +150,9 @@
<metadata name="man.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="mantel.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="assumer.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -159,6 +162,9 @@
<metadata name="addr.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dlsArea.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DLSid.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>