=====* ISBN 조회 *=====

Yes24 추가.
ㄴ> yes24에서 요구하는 양식에 맞춰 엑셀로 반출해주는 기능 추가.

=====* unimarc *=====
Yes24 추가.
ㄴ> yes24에서 요구하는 양식에 맞춰 엑셀로 반출해주는 기능 추가.

- 목록등록 -
머리글에 맞춰 숫자 입력기능 추가

- 목록조회 -
거래처 엔터시 명단이 출력되고 그 상태에서 엔터 입력 시 해당 데이터 선택으로 간주. 데이터 조회창으로 이관.

- 목록집계 -
필터링 테스트 코드 삭제
엔터 입력시 검색기능 추가
납품처명 필터링 추가

== TODO ==
기타 추가적인 버그 잡을것. / 바로빌 세금계산서알아볼것.

===== 작업중 =====
마크 반입 폼 완료
마크 반출 폼 작업중
ㄴ> 작업중 다문화 옮기는 도중 클립보드에서 일어나는 오류 잡아내는중.

===== 보류 =====
 b. 마크목록 폼 작성중
  1. 엑셀반출 기능 추가중 사용 작업대기중

 c. 마크 반입 폼 수정중
  1. 불러오기는 되나 저장 기능이 필요함.

===== 완료 =====
21.06.21 마크검색 작업완료

마크 편집창에서 메모장, 미리보기, 표지크게보기 기능 추가

21.06.08 자동업데이트 기능 완료 - 프로젝트가 새로 바뀜.

1. 주문관리 팩스연동 완료
2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료.
3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
4. 데이터베이스 내 이미지URL을 가져오는작업 완료
목록집계 폼 재 수정작업 완료 - 확인 및 수정 필요.

ISBN 체크 프로그램 => 본프로그램에 이식중.
ㄴ> 코드는 다 옮겼으나 기존 사용하던 방식과 조금 달라서 버그발생 가능성 있음.
ㄴ> 버그 체크 계속 해볼것. 21-04-15
ㄴ> 21_04_20 버그 없음.

2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료)
 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김.
 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료.
 2-3. 저장기능 완료. (04.14 체크해볼것 - 완료)

주문관리 작업중 (DataGridView 주문처 엔터키 입력시 검색되게끔 하는 코드작성중) - 21.04.27 완료
This commit is contained in:
SeungHo Yang
2021-06-30 19:06:53 +09:00
parent 0825e505be
commit fb615a6c70
66 changed files with 1727 additions and 573 deletions

View File

@@ -28,21 +28,10 @@
/// </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 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();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -63,6 +52,18 @@
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.image = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
@@ -71,13 +72,13 @@
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
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;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
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;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.num,
@@ -103,17 +104,17 @@
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;
this.dataGridView1.Location = new System.Drawing.Point(12, 35);
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
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;
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.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.dataGridView1.RowHeadersWidth = 20;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle9;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1608, 547);
this.dataGridView1.TabIndex = 0;
@@ -121,105 +122,6 @@
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(709, 7);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_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(516, 8);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(59, 8);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(199, 21);
this.tb_list_name.TabIndex = 4;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(457, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(819, 7);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(929, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(278, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(337, 8);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(93, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1060, 7);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(12, 589);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1608, 123);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// num
//
this.num.HeaderText = "번호";
@@ -329,6 +231,115 @@
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(706, 7);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_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(516, 8);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(161, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(16, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(59, 8);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(199, 21);
this.tb_list_name.TabIndex = 4;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(457, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(815, 7);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1033, 7);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(278, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(337, 8);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(93, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1166, 7);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(12, 589);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1608, 123);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(924, 7);
this.btn_yes24.Name = "btn_yes24";
this.btn_yes24.Size = new System.Drawing.Size(99, 23);
this.btn_yes24.TabIndex = 1;
this.btn_yes24.Text = "예스 양식 반출";
this.btn_yes24.UseVisualStyleBackColor = true;
this.btn_yes24.Click += new System.EventHandler(this.btn_yes24_Click);
//
// Check_ISBN
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -342,6 +353,7 @@
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.cb_filter);
this.Controls.Add(this.btn_yes24);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.btn_Save);
this.Controls.Add(this.btn_lookup);
@@ -389,5 +401,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn image;
private System.Windows.Forms.DataGridViewTextBoxColumn api_data;
private System.Windows.Forms.Button btn_yes24;
}
}

View File

@@ -9,6 +9,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using UniMarc.;
using WindowsFormsApp1.Delivery;
using WindowsFormsApp1.;
@@ -595,5 +596,10 @@ namespace WindowsFormsApp1.Mac
}
}
}
private void btn_yes24_Click(object sender, EventArgs e)
{
Check_ISBN_Yes24 yes = new Check_ISBN_Yes24(this);
yes.Show();
}
}
}

View File

@@ -0,0 +1,179 @@

namespace UniMarc.
{
partial class Check_ISBN_Yes24
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
this.btn_change = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.before_book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.after_book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.before_author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.after_author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.before_book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.after_book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// btn_change
//
this.btn_change.Location = new System.Drawing.Point(917, 8);
this.btn_change.Name = "btn_change";
this.btn_change.Size = new System.Drawing.Size(75, 23);
this.btn_change.TabIndex = 4;
this.btn_change.Text = "엑셀 변환";
this.btn_change.UseVisualStyleBackColor = true;
this.btn_change.Click += new System.EventHandler(this.btn_change_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(998, 8);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 3;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.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.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.before_book_name,
this.after_book_name,
this.before_author,
this.after_author,
this.before_book_comp,
this.after_book_comp,
this.price});
this.dataGridView1.Location = new System.Drawing.Point(12, 39);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1061, 661);
this.dataGridView1.TabIndex = 2;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
//
// before_book_name
//
this.before_book_name.HeaderText = "도서명 [전]";
this.before_book_name.Name = "before_book_name";
this.before_book_name.ReadOnly = true;
this.before_book_name.Width = 200;
//
// after_book_name
//
this.after_book_name.HeaderText = "도서명 [후]";
this.after_book_name.Name = "after_book_name";
this.after_book_name.ReadOnly = true;
this.after_book_name.Width = 200;
//
// before_author
//
this.before_author.HeaderText = "저자 [전]";
this.before_author.Name = "before_author";
this.before_author.ReadOnly = true;
//
// after_author
//
this.after_author.HeaderText = "저자 [후]";
this.after_author.Name = "after_author";
this.after_author.ReadOnly = true;
//
// before_book_comp
//
this.before_book_comp.HeaderText = "출판사 [전]";
this.before_book_comp.Name = "before_book_comp";
this.before_book_comp.ReadOnly = true;
this.before_book_comp.Width = 150;
//
// after_book_comp
//
this.after_book_comp.HeaderText = "출판사 [후]";
this.after_book_comp.Name = "after_book_comp";
this.after_book_comp.ReadOnly = true;
this.after_book_comp.Width = 150;
//
// price
//
this.price.HeaderText = "금액";
this.price.Name = "price";
this.price.ReadOnly = true;
//
// Check_ISBN_Yes24
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1085, 712);
this.Controls.Add(this.btn_change);
this.Controls.Add(this.btn_Close);
this.Controls.Add(this.dataGridView1);
this.Name = "Check_ISBN_Yes24";
this.Text = "Yes24양식";
this.Load += new System.EventHandler(this.Check_ISBN_Yes24_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_change;
private System.Windows.Forms.Button btn_Close;
public System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn before_book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn after_book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn before_author;
private System.Windows.Forms.DataGridViewTextBoxColumn after_author;
private System.Windows.Forms.DataGridViewTextBoxColumn before_book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn after_book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn price;
}
}

View File

@@ -0,0 +1,176 @@
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;
// 추가된 참조
using WindowsFormsApp1;
using WindowsFormsApp1.Mac;
using Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
namespace UniMarc.
{
public partial class Check_ISBN_Yes24 : Form
{
Helper_DB db = new Helper_DB();
Check_ISBN isbn;
List<string> l_target = new List<string>();
List<string> l_before = new List<string>();
List<string> l_after = new List<string>();
public Check_ISBN_Yes24(Check_ISBN _isbn)
{
InitializeComponent();
isbn = _isbn;
}
private void Check_ISBN_Yes24_Load(object sender, EventArgs e)
{
db.DBcon();
Take_DataBase();
Base_Setting();
}
#region Load_Sub
private void Take_DataBase()
{
string area = "`target`, `before`, `after`";
string tmp = db.DB_Select_Search(area, "yes24");
string[] ary_tmp = tmp.Split('|');
for(int a = 0; a < ary_tmp.Length; a++)
{
if (a % 3 == 0) { l_target.Add(ary_tmp[a]); }
if (a % 3 == 1) { l_before.Add(ary_tmp[a]); }
if (a % 3 == 2) { l_after.Add(ary_tmp[a]); }
}
}
private void Base_Setting()
{
int count = isbn.dataGridView1.Rows.Count;
for(int a= 0; a < count; a++)
{
string book_name = isbn.dataGridView1.Rows[a].Cells["book_name"].Value.ToString();
string author = isbn.dataGridView1.Rows[a].Cells["author"].Value.ToString();
string book_comp = isbn.dataGridView1.Rows[a].Cells["book_comp"].Value.ToString();
string unit = isbn.dataGridView1.Rows[a].Cells["unit"].Value.ToString();
string[] grid = {
book_name, Replace_target(book_name, "book_name"),
author, Replace_target(author, "author"),
book_comp, Replace_target(book_comp, "book_comp"),
unit
};
dataGridView1.Rows.Add(grid);
}
dataGridView1.Columns[0].DefaultCellStyle.BackColor = Color.Bisque;
dataGridView1.Columns[1].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns[2].DefaultCellStyle.BackColor = Color.Bisque;
dataGridView1.Columns[3].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns[4].DefaultCellStyle.BackColor = Color.Bisque;
dataGridView1.Columns[5].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
}
private string Replace_target(string value, string sort)
{
try
{
int start = value.IndexOf('(');
int end = value.IndexOf(')');
value = value.Remove(start, end - start);
start = value.IndexOf('[');
end = value.IndexOf(']');
value = value.Remove(start, end - start);
start = value.IndexOf('<');
end = value.IndexOf('>');
value = value.Remove(start, end - start);
}
catch { }
string[] target = l_target.ToArray();
string[] before = l_before.ToArray();
string[] after = l_after.ToArray();
for(int a= 0; a < before.Length; a++)
{
if (target[a] == sort)
{
value = value.Replace(before[a], after[a]);
}
}
return value;
}
#endregion
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
private void btn_change_Click(object sender, EventArgs e)
{
string[,] grid = new string[dataGridView1.Rows.Count, 5];
for(int a= 0; a < dataGridView1.Rows.Count; a++)
{
int count = a + 1;
grid[a, 0] = count.ToString();
grid[a, 1] = dataGridView1.Rows[a].Cells["after_book_name"].Value.ToString();
grid[a, 3] = dataGridView1.Rows[a].Cells["after_book_comp"].Value.ToString();
grid[a, 4] = dataGridView1.Rows[a].Cells["price"].Value.ToString();
}
Excel_change(grid);
}
#region
private void Excel_change(string[,] grid)
{
try
{
Excel.Application application = new Excel.Application();
application.Visible = true;
application.Interactive = false;
Excel._Workbook wb = (Excel._Workbook)application.Workbooks.Add(Missing.Value);
Excel._Worksheet ws = (Excel._Worksheet)application.ActiveSheet;
Excel.Range rng = null;
#region ( )
ws.Columns[1].ColumnWidth = 6.57;
ws.Columns[2].ColumnWidth = 43.86;
ws.Columns[3].ColumnWidth = 18.43;
ws.Columns[4].ColumnWidth = 22.57;
ws.Columns[5].ColumnWidth = 12.57;
#endregion
string[] title = { "번호", "도서명", "ISBN", "출판사", "정가" };
#region
rng = ws.Range["A1", "E1"];
rng.Value2 = title;
rng.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter;
rng.Font.Bold = true;
int count = dataGridView1.Rows.Count + 1;
rng = ws.Range["A2", "E" + count.ToString()];
rng.Value2 = grid;
rng.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter;
#endregion
application.Interactive = true;
}
catch (Exception e) { MessageBox.Show(e.Message); }
}
#endregion
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -0,0 +1,141 @@
<?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="before_book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="after_book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="before_author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="after_author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="before_book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="after_book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>