일부 폼. .신규파일이름 2로 추가

This commit is contained in:
2026-02-14 22:10:32 +09:00
parent f6dcd5630a
commit 6e25a3d4e9
19 changed files with 4638 additions and 29 deletions

View File

@@ -273,6 +273,18 @@
<Compile Include="개발자용\fDevDB.Designer.cs">
<DependentUpon>fDevDB.cs</DependentUpon>
</Compile>
<Compile Include="납품관리\Book_Lookup2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="납품관리\Book_Lookup2.Designer.cs">
<DependentUpon>Book_Lookup2.cs</DependentUpon>
</Compile>
<Compile Include="납품관리\Order_input_Search2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="납품관리\Order_input_Search2.Designer.cs">
<DependentUpon>Order_input_Search2.cs</DependentUpon>
</Compile>
<Compile Include="마스터\From_User_manage_List.cs">
<SubType>Form</SubType>
</Compile>
@@ -346,6 +358,24 @@
<Compile Include="마크\Check_Copy_Sub_Selector.Designer.cs">
<DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Check_ISBN2.Designer.cs">
<DependentUpon>Check_ISBN2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN_Sub2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Check_ISBN_Sub2.Designer.cs">
<DependentUpon>Check_ISBN_Sub2.cs</DependentUpon>
</Compile>
<Compile Include="마크\Check_ISBN_Yes242.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마크\Check_ISBN_Yes242.Designer.cs">
<DependentUpon>Check_ISBN_Yes242.cs</DependentUpon>
</Compile>
<Compile Include="마크\FillBlankItem.cs" />
<Compile Include="마크\Help_007.cs">
<SubType>Form</SubType>
@@ -1063,6 +1093,12 @@
<EmbeddedResource Include="개발자용\fDevDB.resx">
<DependentUpon>fDevDB.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="납품관리\Book_Lookup2.resx">
<DependentUpon>Book_Lookup2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="납품관리\Order_input_Search2.resx">
<DependentUpon>Order_input_Search2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마스터\From_User_manage_List.resx">
<DependentUpon>From_User_manage_List.cs</DependentUpon>
</EmbeddedResource>
@@ -1099,6 +1135,15 @@
<EmbeddedResource Include="마크\Check_Copy_Sub_Selector.resx">
<DependentUpon>Check_Copy_Sub_Selector.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN2.resx">
<DependentUpon>Check_ISBN2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN_Sub2.resx">
<DependentUpon>Check_ISBN_Sub2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Check_ISBN_Yes242.resx">
<DependentUpon>Check_ISBN_Yes242.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\Help_007.resx">
<DependentUpon>Help_007.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -0,0 +1,679 @@
namespace UniMarc
{
partial class Book_Lookup2
{
/// <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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_idx = new System.Windows.Forms.Label();
this.tb_isbn = new System.Windows.Forms.TextBox();
this.tb_order_idx = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.tb_etc = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.tb_num = new System.Windows.Forms.TextBox();
this.label17 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.tb_order1 = new System.Windows.Forms.TextBox();
this.tb_charge = new System.Windows.Forms.TextBox();
this.label12 = new System.Windows.Forms.Label();
this.tb_total = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.tb_pay = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.tb_stock = new System.Windows.Forms.TextBox();
this.tb_count = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.tb_order_date = new System.Windows.Forms.TextBox();
this.tb_book_comp = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.tb_author = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.tb_book_name = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_date = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.btn_stock = new System.Windows.Forms.Button();
this.btn_order_ccl = new System.Windows.Forms.Button();
this.btn_order = new System.Windows.Forms.Button();
this.btn_close = new System.Windows.Forms.Button();
this.btn_save = new System.Windows.Forms.Button();
this.btn_printLine = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.tb_List_name = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.tb_date_res = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_unstock = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.lbl_idx);
this.panel1.Controls.Add(this.tb_isbn);
this.panel1.Controls.Add(this.tb_order_idx);
this.panel1.Controls.Add(this.label9);
this.panel1.Controls.Add(this.tb_etc);
this.panel1.Controls.Add(this.label10);
this.panel1.Controls.Add(this.tb_num);
this.panel1.Controls.Add(this.label17);
this.panel1.Controls.Add(this.label20);
this.panel1.Controls.Add(this.tb_order1);
this.panel1.Controls.Add(this.tb_charge);
this.panel1.Controls.Add(this.label12);
this.panel1.Controls.Add(this.tb_total);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.tb_pay);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.tb_stock);
this.panel1.Controls.Add(this.tb_count);
this.panel1.Controls.Add(this.label13);
this.panel1.Controls.Add(this.label22);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.tb_order_date);
this.panel1.Controls.Add(this.tb_book_comp);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.tb_author);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.tb_book_name);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(9, 106);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(648, 199);
this.panel1.TabIndex = 0;
//
// lbl_idx
//
this.lbl_idx.AutoSize = true;
this.lbl_idx.Location = new System.Drawing.Point(212, 10);
this.lbl_idx.Name = "lbl_idx";
this.lbl_idx.Size = new System.Drawing.Size(62, 12);
this.lbl_idx.TabIndex = 2;
this.lbl_idx.Text = "idx 들어감";
//
// tb_isbn
//
this.tb_isbn.Location = new System.Drawing.Point(414, 7);
this.tb_isbn.Name = "tb_isbn";
this.tb_isbn.Size = new System.Drawing.Size(215, 21);
this.tb_isbn.TabIndex = 1;
this.tb_isbn.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_order_idx
//
this.tb_order_idx.BackColor = System.Drawing.SystemColors.Control;
this.tb_order_idx.Enabled = false;
this.tb_order_idx.Location = new System.Drawing.Point(214, 168);
this.tb_order_idx.Name = "tb_order_idx";
this.tb_order_idx.Size = new System.Drawing.Size(43, 21);
this.tb_order_idx.TabIndex = 1;
this.tb_order_idx.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label9
//
this.label9.AutoSize = true;
this.label9.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label9.Location = new System.Drawing.Point(374, 11);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(33, 12);
this.label9.TabIndex = 0;
this.label9.Text = "ISBN";
//
// tb_etc
//
this.tb_etc.Location = new System.Drawing.Point(69, 141);
this.tb_etc.Name = "tb_etc";
this.tb_etc.Size = new System.Drawing.Size(560, 21);
this.tb_etc.TabIndex = 1;
this.tb_etc.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label10
//
this.label10.AutoSize = true;
this.label10.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label10.Location = new System.Drawing.Point(22, 10);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(29, 12);
this.label10.TabIndex = 0;
this.label10.Text = "번호";
//
// tb_num
//
this.tb_num.BackColor = System.Drawing.SystemColors.Control;
this.tb_num.Enabled = false;
this.tb_num.Location = new System.Drawing.Point(69, 6);
this.tb_num.Name = "tb_num";
this.tb_num.Size = new System.Drawing.Size(124, 21);
this.tb_num.TabIndex = 1;
this.tb_num.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label17
//
this.label17.AutoSize = true;
this.label17.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label17.Location = new System.Drawing.Point(22, 145);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(29, 12);
this.label17.TabIndex = 0;
this.label17.Text = "비고";
//
// label20
//
this.label20.AutoSize = true;
this.label20.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label20.Location = new System.Drawing.Point(14, 172);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(41, 12);
this.label20.TabIndex = 0;
this.label20.Text = "주문처";
//
// tb_order1
//
this.tb_order1.Location = new System.Drawing.Point(69, 168);
this.tb_order1.Name = "tb_order1";
this.tb_order1.Size = new System.Drawing.Size(139, 21);
this.tb_order1.TabIndex = 1;
this.tb_order1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_charge
//
this.tb_charge.BackColor = System.Drawing.SystemColors.Control;
this.tb_charge.Enabled = false;
this.tb_charge.Location = new System.Drawing.Point(487, 87);
this.tb_charge.Name = "tb_charge";
this.tb_charge.Size = new System.Drawing.Size(142, 21);
this.tb_charge.TabIndex = 1;
this.tb_charge.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label12
//
this.label12.AutoSize = true;
this.label12.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label12.Location = new System.Drawing.Point(430, 91);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(41, 12);
this.label12.TabIndex = 0;
this.label12.Text = "담당자";
//
// tb_total
//
this.tb_total.Location = new System.Drawing.Point(487, 114);
this.tb_total.Name = "tb_total";
this.tb_total.Size = new System.Drawing.Size(142, 21);
this.tb_total.TabIndex = 1;
this.tb_total.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label6
//
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label6.Location = new System.Drawing.Point(424, 118);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(53, 12);
this.label6.TabIndex = 0;
this.label6.Text = "합계금액";
//
// tb_pay
//
this.tb_pay.Location = new System.Drawing.Point(69, 114);
this.tb_pay.Name = "tb_pay";
this.tb_pay.Size = new System.Drawing.Size(124, 21);
this.tb_pay.TabIndex = 1;
this.tb_pay.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label5
//
this.label5.AutoSize = true;
this.label5.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label5.Location = new System.Drawing.Point(22, 118);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(29, 12);
this.label5.TabIndex = 0;
this.label5.Text = "정가";
//
// tb_stock
//
this.tb_stock.Location = new System.Drawing.Point(357, 114);
this.tb_stock.Name = "tb_stock";
this.tb_stock.Size = new System.Drawing.Size(57, 21);
this.tb_stock.TabIndex = 1;
this.tb_stock.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_count
//
this.tb_count.Location = new System.Drawing.Point(242, 114);
this.tb_count.Name = "tb_count";
this.tb_count.Size = new System.Drawing.Size(57, 21);
this.tb_count.TabIndex = 1;
this.tb_count.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label13
//
this.label13.AutoSize = true;
this.label13.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label13.Location = new System.Drawing.Point(314, 118);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(41, 12);
this.label13.TabIndex = 0;
this.label13.Text = "입고수";
//
// label22
//
this.label22.AutoSize = true;
this.label22.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label22.Location = new System.Drawing.Point(349, 172);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(53, 12);
this.label22.TabIndex = 0;
this.label22.Text = "주문일자";
//
// label4
//
this.label4.AutoSize = true;
this.label4.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label4.Location = new System.Drawing.Point(211, 118);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 12);
this.label4.TabIndex = 0;
this.label4.Text = "수량";
//
// tb_order_date
//
this.tb_order_date.BackColor = System.Drawing.SystemColors.Control;
this.tb_order_date.Enabled = false;
this.tb_order_date.Location = new System.Drawing.Point(409, 168);
this.tb_order_date.Name = "tb_order_date";
this.tb_order_date.Size = new System.Drawing.Size(220, 21);
this.tb_order_date.TabIndex = 1;
this.tb_order_date.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// tb_book_comp
//
this.tb_book_comp.Location = new System.Drawing.Point(69, 87);
this.tb_book_comp.Name = "tb_book_comp";
this.tb_book_comp.Size = new System.Drawing.Size(345, 21);
this.tb_book_comp.TabIndex = 1;
this.tb_book_comp.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label3
//
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label3.Location = new System.Drawing.Point(16, 91);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.TabIndex = 0;
this.label3.Text = "출판사";
//
// tb_author
//
this.tb_author.Location = new System.Drawing.Point(69, 60);
this.tb_author.Name = "tb_author";
this.tb_author.Size = new System.Drawing.Size(345, 21);
this.tb_author.TabIndex = 1;
this.tb_author.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label2.Location = new System.Drawing.Point(22, 64);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 0;
this.label2.Text = "저자";
//
// tb_book_name
//
this.tb_book_name.Location = new System.Drawing.Point(69, 33);
this.tb_book_name.Name = "tb_book_name";
this.tb_book_name.Size = new System.Drawing.Size(560, 21);
this.tb_book_name.TabIndex = 1;
this.tb_book_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label1.Location = new System.Drawing.Point(16, 37);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 0;
this.label1.Text = "도서명";
//
// tb_date
//
this.tb_date.Enabled = false;
this.tb_date.Location = new System.Drawing.Point(69, 34);
this.tb_date.Name = "tb_date";
this.tb_date.Size = new System.Drawing.Size(230, 21);
this.tb_date.TabIndex = 1;
this.tb_date.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label7
//
this.label7.AutoSize = true;
this.label7.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label7.Location = new System.Drawing.Point(10, 38);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(53, 12);
this.label7.TabIndex = 0;
this.label7.Text = "목록일자";
//
// btn_stock
//
this.btn_stock.Location = new System.Drawing.Point(90, 6);
this.btn_stock.Name = "btn_stock";
this.btn_stock.Size = new System.Drawing.Size(75, 23);
this.btn_stock.TabIndex = 3;
this.btn_stock.Text = "입고처리";
this.btn_stock.UseVisualStyleBackColor = true;
this.btn_stock.Click += new System.EventHandler(this.btn_stock_Click);
//
// btn_order_ccl
//
this.btn_order_ccl.Location = new System.Drawing.Point(171, 6);
this.btn_order_ccl.Name = "btn_order_ccl";
this.btn_order_ccl.Size = new System.Drawing.Size(75, 23);
this.btn_order_ccl.TabIndex = 3;
this.btn_order_ccl.Text = "주문취소";
this.btn_order_ccl.UseVisualStyleBackColor = true;
this.btn_order_ccl.Click += new System.EventHandler(this.btn_order_ccl_Click);
//
// btn_order
//
this.btn_order.Location = new System.Drawing.Point(252, 6);
this.btn_order.Name = "btn_order";
this.btn_order.Size = new System.Drawing.Size(75, 23);
this.btn_order.TabIndex = 3;
this.btn_order.Text = "주문처리";
this.btn_order.UseVisualStyleBackColor = true;
this.btn_order.Click += new System.EventHandler(this.btn_order_Click);
//
// btn_close
//
this.btn_close.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_close.Location = new System.Drawing.Point(564, 6);
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);
//
// btn_save
//
this.btn_save.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_save.Location = new System.Drawing.Point(483, 6);
this.btn_save.Name = "btn_save";
this.btn_save.Size = new System.Drawing.Size(75, 23);
this.btn_save.TabIndex = 3;
this.btn_save.Text = "저 장";
this.btn_save.UseVisualStyleBackColor = true;
this.btn_save.Click += new System.EventHandler(this.btn_save_Click);
//
// btn_printLine
//
this.btn_printLine.Location = new System.Drawing.Point(333, 6);
this.btn_printLine.Name = "btn_printLine";
this.btn_printLine.Size = new System.Drawing.Size(75, 23);
this.btn_printLine.TabIndex = 3;
this.btn_printLine.Text = "띠지출력";
this.btn_printLine.UseVisualStyleBackColor = true;
this.btn_printLine.Visible = false;
this.btn_printLine.Click += new System.EventHandler(this.btn_printLine_Click);
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.tb_List_name);
this.panel2.Controls.Add(this.label11);
this.panel2.Controls.Add(this.tb_date_res);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.tb_date);
this.panel2.Controls.Add(this.label7);
this.panel2.Location = new System.Drawing.Point(9, 36);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(648, 64);
this.panel2.TabIndex = 4;
//
// tb_List_name
//
this.tb_List_name.Enabled = false;
this.tb_List_name.Location = new System.Drawing.Point(69, 7);
this.tb_List_name.Name = "tb_List_name";
this.tb_List_name.Size = new System.Drawing.Size(560, 21);
this.tb_List_name.TabIndex = 1;
this.tb_List_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label11
//
this.label11.AutoSize = true;
this.label11.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label11.Location = new System.Drawing.Point(16, 11);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(41, 12);
this.label11.TabIndex = 0;
this.label11.Text = "목록명";
//
// tb_date_res
//
this.tb_date_res.Enabled = false;
this.tb_date_res.Location = new System.Drawing.Point(399, 34);
this.tb_date_res.Name = "tb_date_res";
this.tb_date_res.Size = new System.Drawing.Size(230, 21);
this.tb_date_res.TabIndex = 1;
this.tb_date_res.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
//
// label8
//
this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.label8.Location = new System.Drawing.Point(340, 38);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(53, 12);
this.label8.TabIndex = 0;
this.label8.Text = "완료일자";
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
this.dataGridView1.AllowUserToResizeRows = 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;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3,
this.Column4,
this.Column5,
this.Column6});
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.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dataGridView1.Location = new System.Drawing.Point(9, 311);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 15;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(648, 190);
this.dataGridView1.TabIndex = 5;
//
// Column1
//
this.Column1.HeaderText = "처리일자";
this.Column1.Name = "Column1";
//
// Column2
//
this.Column2.HeaderText = "구분";
this.Column2.Name = "Column2";
//
// Column3
//
this.Column3.HeaderText = "거래처명";
this.Column3.Name = "Column3";
this.Column3.Width = 250;
//
// Column4
//
this.Column4.HeaderText = "단가";
this.Column4.Name = "Column4";
this.Column4.Width = 80;
//
// Column5
//
this.Column5.HeaderText = "수량";
this.Column5.Name = "Column5";
this.Column5.Width = 40;
//
// Column6
//
this.Column6.HeaderText = "%";
this.Column6.Name = "Column6";
this.Column6.Width = 40;
//
// btn_unstock
//
this.btn_unstock.Location = new System.Drawing.Point(9, 6);
this.btn_unstock.Name = "btn_unstock";
this.btn_unstock.Size = new System.Drawing.Size(75, 23);
this.btn_unstock.TabIndex = 6;
this.btn_unstock.Text = "미입고처리";
this.btn_unstock.UseVisualStyleBackColor = true;
this.btn_unstock.Click += new System.EventHandler(this.btn_unstock_Click);
//
// Book_Lookup
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(667, 510);
this.Controls.Add(this.btn_unstock);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.btn_save);
this.Controls.Add(this.btn_close);
this.Controls.Add(this.btn_printLine);
this.Controls.Add(this.btn_order);
this.Controls.Add(this.btn_order_ccl);
this.Controls.Add(this.btn_stock);
this.Controls.Add(this.panel1);
this.Name = "Book_Lookup";
this.Text = "도서 정보";
this.Load += new System.EventHandler(this.Book_Lookup_Load);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Book_Lookup_KeyDown);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox tb_isbn;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox tb_etc;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.TextBox tb_charge;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.TextBox tb_num;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox tb_date;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox tb_total;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox tb_pay;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tb_count;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox tb_book_comp;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox tb_author;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox tb_book_name;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox tb_order_idx;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.TextBox tb_order1;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.TextBox tb_order_date;
private System.Windows.Forms.Button btn_stock;
private System.Windows.Forms.Button btn_order_ccl;
private System.Windows.Forms.Button btn_order;
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.Button btn_save;
private System.Windows.Forms.Button btn_printLine;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox tb_date_res;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox tb_List_name;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.TextBox tb_stock;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label lbl_idx;
private System.Windows.Forms.Button btn_unstock;
}
}

View File

@@ -0,0 +1,320 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Printing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public partial class Book_Lookup2 : Form
{
Helper_DB db = new Helper_DB();
Order_input oin;
Purchase pur;
List_Lookup ll;
Bring_Back bb;
Check_ISBN2 cisbn;
string list_name;
int idx;
public Book_Lookup2(Order_input _oin)
{
InitializeComponent();
oin = _oin;
idx = oin.grididx;
}
public Book_Lookup2(Purchase _pur)
{
InitializeComponent();
pur = _pur;
idx = pur.grididx;
}
public Book_Lookup2(List_Lookup _ll)
{
InitializeComponent();
ll = _ll;
idx = ll.grididx;
}
public Book_Lookup2(Bring_Back _bb)
{
InitializeComponent();
bb = _bb;
idx = bb.grididx;
}
public Book_Lookup2(Check_ISBN2 _isbn)
{
InitializeComponent();
cisbn = _isbn;
idx = cisbn.rowidx;
}
private void Book_Lookup_Load(object sender, EventArgs e)
{
db.DBcon();
tb_isbn.Text = isbn();
list_db();
this.Text = "도서 정보 - 『" + tb_book_name.Text + "』";
mk_Grid();
/* Obj_List_Book
* idx 도서명 저자 출판사 isbn
* 정가 수량 입고수 합계금액 비고
* 주문처 주문일자 */
string[] List_book = { PUB.user.CompanyIdx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text,
tb_order1.Text, tb_order_date.Text, tb_List_name.Text };
}
private void mk_Grid()
{
string Area = "`order`, `pay`, `count`, `persent`, " + // 0-3
"`order_date`, `import_date`, `chk_date`, `export_date`"; // 4-7
string[] Search_col = { "compidx", "list_name", "book_name", "author", "book_comp" };
string[] Search_data = { PUB.user.CompanyIdx, tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
string cmd = db.More_DB_Search("Obj_List_Book", Search_col, Search_data, Area);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] db_data = db_res.Split('|');
string[] add_grid = { "", "", db_data[0], db_data[1], db_data[2], db_data[3] };
// 처리일자 구분 거래처명 단가 수량 %
if (db_data[4] != "") {
add_grid[0] = db_data[4];
add_grid[1] = "주문";
dataGridView1.Rows.Add(add_grid);
}
if (db_data[5] != "") {
add_grid[0] = db_data[5];
add_grid[1] = "입고";
btn_printLine.Visible = true;
dataGridView1.Rows.Add(add_grid);
}
if (db_data[6] != "") {
add_grid[0] = db_data[6];
add_grid[1] = "검수";
dataGridView1.Rows.Add(add_grid);
}
if (db_data[7] != "") {
add_grid[0] = db_data[7];
add_grid[1] = "출고";
dataGridView1.Rows.Add(add_grid);
}
}
/// <summary>
/// 폼에 들어갈 데이터를 사전에 준비하여야함.
/// </summary>
/// <param name="book_name"></param>
/// <param name="author"></param>
/// <param name="book_comp"></param>
/// <param name="list_name"></param>
public void Lookup_Load(string book_name, string author, string book_comp, string list_name)
{
this.list_name = list_name;
db.DBcon();
string search = "`book_name`, `author`, `book_comp`, `count`, `pay`, " +
"`total`, `header`, `num`, `order`, `etc`, " +
"`input_count`, `order_date`, `list_name`, `idx`";
string[] data = { PUB.user.CompanyIdx, book_name, author, book_comp, list_name };
string[] table = { "compidx", "book_name", "author", "book_comp", "list_name" };
string cmd = db.More_DB_Search("Obj_List_Book", table, data, search);
string db_res = db.DB_Send_CMD_Search(cmd);
mk_Lookup(db_res);
}
public void Lookup_Load_tmp(string idx)
{
db.DBcon();
string search = "`book_name`, `author`, `book_comp`, `count`, `pay`, " +
"`total`, `header`, `num`, `order`, `etc`, " +
"`input_count`, `order_date`, `list_name`, `idx`";
string[] data = { PUB.user.CompanyIdx, idx };
string[] table = { "compidx", "idx" };
string cmd = db.More_DB_Search("Obj_List_Book", table, data, search);
string db_res = db.DB_Send_CMD_Search(cmd);
mk_Lookup(db_res);
}
private void mk_Lookup(string values)
{
string[] data = values.Split('|');
tb_book_name.Text = data[0];
tb_author.Text = data[1];
tb_book_comp.Text = data[2];
tb_count.Text = data[3];
tb_pay.Text = data[4];
tb_total.Text = data[5];
tb_num.Text = data[6] + " " + data[7];
tb_order1.Text = data[8];
tb_etc.Text = data[9];
tb_stock.Text = data[10];
if (data[11].Length < 3) { tb_order_date.Text = ""; }
else { tb_order_date.Text = data[11].Substring(0, 10); }
this.list_name = data[12];
lbl_idx.Text = data[13];
}
/// <summary>
/// 목록db에서 불러온 값을 적용시키는 함수
/// </summary>
private void list_db()
{
string[] where_table = { "comp_num", "list_name" };
string[] search_data = { PUB.user.CompanyIdx, list_name };
string cmd = db.More_DB_Search("Obj_List", where_table, search_data,
"`clt`, `dly`, `charge`, `date`, `date_res`");
cmd = db.DB_Send_CMD_Search(cmd);
string[] data = cmd.Split('|');
tb_List_name.Text = list_name;
tb_charge.Text = data[2];
tb_date.Text = data[3];
tb_date_res.Text = data[4];
}
/// <summary>
/// 목록도서DB에 저장된 isbn값을 가져오는 함수.
/// </summary>
/// <returns></returns>
private string isbn()
{
string[] where_table = { "compidx", "list_name", "book_name", "author", "book_comp" };
string[] search_data = { PUB.user.CompanyIdx,
list_name, tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
string cmd = db.More_DB_Search("Obj_List_Book", where_table, search_data, "`isbn`");
string db_res = db.DB_Send_CMD_Search(cmd);
db_res = db_res.Replace("|", "");
return db_res;
}
private void Book_Lookup_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
btn_close_Click(null, null);
}
}
private void btn_save_Click(object sender, EventArgs e)
{
/* Obj_List_Book
* idx 도서명 저자 출판사 isbn
* 정가 수량 입고수 합계금액 비고
* 주문처 주문일자 */
string[] Table = {
"compidx", "book_name", "author", "book_comp", "isbn",
"pay", "count", "input_count", "total", "etc",
"order", "order_date", "list_name" };
string[] List_book = {
PUB.user.CompanyIdx, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text,
tb_pay.Text, tb_count.Text, tb_stock.Text, tb_total.Text, tb_etc.Text,
tb_order1.Text, tb_order_date.Text, tb_List_name.Text };
string[] idx_table = { "idx" };
string[] idx_col = { lbl_idx.Text };
string U_cmd = db.More_Update("Obj_List_Book", Table, List_book, idx_table, idx_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("저장되었습니다.");
}
private void btn_close_Click(object sender, EventArgs e)
{
Close();
}
private void btn_stock_Click(object sender, EventArgs e)
{
tb_stock.Text = tb_count.Text;
string[] edit_tbl = { "input_count", "import", "import_date" };
string[] edit_col = { tb_stock.Text, "입고", DateTime.Today.ToString("yyyy-MM-dd") };
string[] search_tbl = { "compidx", "list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_col = { PUB.user.CompanyIdx,
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 입고처리되었습니다.");
mk_Grid();
}
private void btn_unstock_Click(object sender, EventArgs e)
{
tb_stock.Text = "0";
string[] edit_tbl = { "input_count", "import", "import_date" };
string[] edit_col = { tb_stock.Text, "미입고", "" };
string[] search_tbl = { "compidx",
"list_name", "book_name", "author", "book_comp", "isbn" };
string[] search_col = { PUB.user.CompanyIdx,
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 미입고처리되었습니다.");
mk_Grid();
}
private void btn_order_ccl_Click(object sender, EventArgs e)
{
tb_order1.Text = "";
tb_order_date.Text = "";
tb_order_idx.Text = "";
}
private void btn_order_Click(object sender, EventArgs e)
{
tb_order_date.Text = DateTime.Now.ToString("G").Substring(0, 10);
}
private void btn_printLine_Click(object sender, EventArgs e)
{
PrintDocument pd = new PrintDocument();
pd.DocumentName = "띠지 출력";
pd.DefaultPageSettings.Landscape = true;
pd.PrintPage += new PrintPageEventHandler(this.pd_Print_Page);
pd.Print();
}
#region PrintLine_Sub
private void pd_Print_Page(object sender, PrintPageEventArgs e)
{
string list_name = tb_List_name.Text.Replace("[", "");
list_name = list_name.Replace("]", "-");
string book_name = tb_book_name.Text;
string price = tb_pay.Text.Replace(",", "");
price = string.Format("{0:#,###}", Convert.ToInt32(price));
tb_pay.Text = price;
string[] text = { tb_num.Text, tb_count.Text, list_name, book_name, price, tb_book_comp.Text, tb_isbn.Text };
Graphics g = e.Graphics;
int xPos = 0;
int yPos = 0;
int MaxX = 133;
Pen p = new Pen(Color.Black);
Font title = new Font("굴림", 22, FontStyle.Bold);
Font count = new Font("굴림", 16, FontStyle.Bold);
Font list = new Font("굴림", 14, FontStyle.Regular);
Font book = new Font("굴림", 18, FontStyle.Regular);
Font price_f = new Font("굴림", 14, FontStyle.Regular);
RectangleF title_Area = new RectangleF(xPos, yPos, MaxX, 35);
yPos += 30;
RectangleF count_Area = new RectangleF(xPos, yPos, MaxX, 35);
yPos += 25;
RectangleF list_Area = new RectangleF(xPos, yPos, MaxX, 70);
yPos += 65;
RectangleF book_Area1 = new RectangleF(xPos, yPos, MaxX, 120);
yPos += 115;
RectangleF price_Area = new RectangleF(xPos, yPos, MaxX, 70);
//g.DrawLine(p, MaxX, 0, MaxX, yPos);
using (SolidBrush drawBrush = new SolidBrush(Color.Black))
{
g.DrawString(text[0], title, drawBrush, title_Area);
g.DrawString(text[1], count, drawBrush, count_Area);
g.DrawString(text[2], list, drawBrush, list_Area);
g.DrawString(text[3], book, drawBrush, book_Area1);
g.DrawString(text[4], price_f, drawBrush, price_Area);
}
}
#endregion
}
}

View File

@@ -0,0 +1,138 @@
<?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="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="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>
</root>

View File

@@ -0,0 +1,123 @@
namespace UniMarc
{
partial class Order_input_Search2
{
/// <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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.date = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.date_res = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.ClipboardCopyMode = System.Windows.Forms.DataGridViewClipboardCopyMode.Disable;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.TopCenter;
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.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
this.list_name,
this.charge,
this.date,
this.date_res});
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);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 21;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(641, 215);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
//
// list_name
//
this.list_name.HeaderText = "목록";
this.list_name.Name = "list_name";
this.list_name.Width = 300;
//
// charge
//
this.charge.HeaderText = "담당자";
this.charge.Name = "charge";
//
// date
//
this.date.HeaderText = "목록일자";
this.date.Name = "date";
//
// date_res
//
this.date_res.HeaderText = "완료일자";
this.date_res.Name = "date_res";
//
// Order_input_Search
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(641, 215);
this.Controls.Add(this.dataGridView1);
this.Name = "Order_input_Search";
this.Text = "Order_input_Search";
this.Load += new System.EventHandler(this.Order_input_Search_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn list_name;
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
private System.Windows.Forms.DataGridViewTextBoxColumn date;
private System.Windows.Forms.DataGridViewTextBoxColumn date_res;
}
}

View File

@@ -0,0 +1,202 @@
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 Order_input_Search2 : Form
{
Order_input oin;
Purchase_Book pb;
Remit_reg2 rem2;
Check_ISBN2 isbn;
Helper_DB db = new Helper_DB();
public int[] oin_grid_idx = { 0, 0 };
public string Where_Open;
public string searchText;
public bool OnlyMarc = false;
string compidx;
public Order_input_Search2(Order_input o_in)
{
InitializeComponent();
oin = o_in;
compidx = oin.compidx;
}
public Order_input_Search2(Remit_reg2 _rem2)
{
InitializeComponent();
rem2 = _rem2;
compidx = rem2.compidx;
searchText = rem2.tb_purchase.Text;
}
public Order_input_Search2(Purchase_Book _pb)
{
InitializeComponent();
pb = _pb;
compidx = pb.compidx;
searchText = pb.tb_purchase.Text;
}
public Order_input_Search2(Check_ISBN2 _isbn)
{
InitializeComponent();
isbn = _isbn;
compidx = isbn.compidx;
searchText = isbn.tb_list_name.Text;
}
public Order_input_Search2()
{
InitializeComponent();
}
private void Order_input_Search_Load(object sender, EventArgs e)
{
string cmd, db_res;
db.DBcon();
if (Where_Open == "book_list")
{
string table = "Obj_List";
string Area = "`idx`, `list_name`, `charge`, `date`, `date_res`";
cmd = string.Format("SELECT {0} FROM {1} WHERE `comp_num` = {2} AND `state` = \"진행\"", Area, table, compidx);
if (searchText != "")
{
cmd += " AND `list_name` like \"%" + searchText + "%\"";
// cmd = db.DB_Contains("Obj_List", compidx,
// "", "", "`list_name`, `charge`, `date`, `date_res`");
}
if (OnlyMarc)
{
cmd += " AND `chk_marc` > 0";
// cmd = db.DB_Contains("Obj_List", compidx,
// "list_name", searchText, "`list_name`, `charge`, `date`, `date_res`");
}
cmd += ";";
db_res = db.DB_Send_CMD_Search(cmd);
made_grid(db_res);
this.Text = "목록 검색";
}
else if (Where_Open.Contains("Order"))
{
list_name.HeaderText = "주문처";
charge.HeaderText = "대표자";
date.HeaderText = "종목";
date_res.HeaderText = "업태";
cmd = db.DB_Contains("Purchase", compidx,
"sangho", searchText, "`idx`, `sangho`, `boss`, `jongmok`, `uptae`");
db_res = db.DB_Send_CMD_Search(cmd);
made_grid(db_res);
this.Text = "주문처 검색";
}
}
private void made_grid(string strValue)
{
string[] data = strValue.Split('|');
dataGridView1.Rows.Clear();
string[] res = { "", "", "", "", "" };
for (int a = 0; a < data.Length; a++)
{
if (a % 5 == 0) { res[0] = data[a]; }
if (a % 5 == 1) { res[1] = data[a]; }
if (a % 5 == 2) { res[2] = data[a]; }
if (a % 5 == 3) { res[3] = data[a]; }
if (a % 5 == 4) { res[4] = data[a];
if (res[1].Contains(searchText))
dataGridView1.Rows.Add(res);
}
}
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {
if (dataGridView1.Rows.Count == 0)
return;
dataGridView1_CellDoubleClick(null, null);
}
if (e.KeyCode == Keys.Escape) { Close(); }
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
int row = 0;
if (Where_Open == "") { row = 0; }
else row = dataGridView1.CurrentCell.RowIndex;
if (e != null) { row = e.RowIndex; }
else row = dataGridView1.CurrentCell.RowIndex;
if (oin != null) {
oin_result(row);
}
else if (pb != null) {
pb_result(row);
}
else if (rem2 != null) {
rem2.tb_purchase.Text = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
rem2.mk_base(rem2.tb_purchase.Text);
}
else if (isbn != null) {
string listName = dataGridView1.Rows[row].Cells["list_name"].Value.ToString();
string l_idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
isbn.tb_list_name.Text = listName;
isbn.DataLoad(listName, l_idx);
}
Close();
}
private void oin_result(int grididx)
{
if (Where_Open == "book_list")
{
string ListName = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
string DBdate = dataGridView1.Rows[grididx].Cells["date"].Value.ToString();
string[] tmp_col = { "compidx", "list_name", "date" };
string[] tmp_data = { compidx, ListName, DBdate };
string takedata = "`order`, `order_stat`, `isbn`, `book_name`, `author`, " +
"`book_comp`, `order_count`, `count`, `pay`, `total`, " +
"`etc`, `list_name`, `order_date`, `send_date`, `header`, " +
"`num`, `idx`";
string cmd = db.More_DB_Search("Obj_List_Book", tmp_col, tmp_data, takedata);
string db_res = db.DB_Send_CMD_Search(cmd);
oin.made_grid(db_res, false);
oin.tb_search_book_list.Text = ListName;
DateTime setDate = DateTime.ParseExact(DBdate, "yyyy-MM-dd", null);
oin.dtp_listBegin.Checked = true;
oin.dtp_listEnd.Checked = true;
oin.dtp_listBegin.Value = setDate;
oin.dtp_listEnd.Value = setDate;
}
else if (Where_Open.Contains("Order"))
{
if (Where_Open == "Order_Grid") {
oin.dataGridView1.Rows[oin_grid_idx[0]].Cells[oin_grid_idx[1]].Value =
dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
}
else
{
try
{
oin.tb_orderText.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
}
catch { }
}
}
}
private void pb_result(int grididx)
{
pb.tb_purchase.Text = dataGridView1.Rows[grididx].Cells["list_name"].Value.ToString();
pb.btn_Lookup_Click(null, null);
}
}
}

View File

@@ -0,0 +1,135 @@
<?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="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="list_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="charge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="date.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="date_res.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -0,0 +1,493 @@
namespace UniMarc
{
partial class Check_ISBN2
{
/// <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 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();
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.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_ComparePrice = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.search_book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.search_author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.search_book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.total = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.condition = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pubDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.persent = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.category = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.image = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
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;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
this.num,
this.isbn,
this.book_name,
this.search_book_name,
this.author,
this.search_author,
this.book_comp,
this.search_book_comp,
this.count,
this.unit,
this.total,
this.condition,
this.price,
this.etc,
this.pubDate,
this.persent,
this.category,
this.sold_out,
this.image,
this.api_data});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;
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;
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;
this.dataGridView1.RowHeadersWidth = 20;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1630, 591);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
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(693, 4);
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(577, 5);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(100, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(45, 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(54, 5);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(213, 21);
this.tb_list_name.TabIndex = 4;
this.tb_list_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_list_name_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(518, 9);
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(796, 4);
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(1105, 4);
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(285, 9);
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(344, 5);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(160, 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(1241, 4);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
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(1632, 100);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(1002, 4);
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_Marc
//
this.Check_Marc.AutoSize = true;
this.Check_Marc.Checked = true;
this.Check_Marc.CheckState = System.Windows.Forms.CheckState.Checked;
this.Check_Marc.Enabled = false;
this.Check_Marc.Location = new System.Drawing.Point(1488, 7);
this.Check_Marc.Name = "Check_Marc";
this.Check_Marc.Size = new System.Drawing.Size(132, 16);
this.Check_Marc.TabIndex = 9;
this.Check_Marc.Text = "마크ISBN 동시 저장";
this.Check_Marc.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Controls.Add(this.btn_ComparePrice);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.Check_Marc);
this.panel1.Controls.Add(this.btn_lookup);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.progressBar1);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.cb_api);
this.panel1.Controls.Add(this.btn_yes24);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.cb_filter);
this.panel1.Controls.Add(this.tb_list_name);
this.panel1.Controls.Add(this.label2);
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(1632, 31);
this.panel1.TabIndex = 10;
//
// btn_ComparePrice
//
this.btn_ComparePrice.Location = new System.Drawing.Point(899, 4);
this.btn_ComparePrice.Name = "btn_ComparePrice";
this.btn_ComparePrice.Size = new System.Drawing.Size(99, 23);
this.btn_ComparePrice.TabIndex = 10;
this.btn_ComparePrice.Text = "정 가 대 조";
this.btn_ComparePrice.UseVisualStyleBackColor = true;
this.btn_ComparePrice.Click += new System.EventHandler(this.btn_ComparePrice_Click);
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 624);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1632, 100);
this.panel2.TabIndex = 11;
//
// 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, 31);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1632, 593);
this.panel3.TabIndex = 12;
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
this.idx.Width = 50;
//
// num
//
this.num.HeaderText = "번호";
this.num.Name = "num";
this.num.Width = 50;
//
// isbn
//
this.isbn.HeaderText = "ISBN13";
this.isbn.Name = "isbn";
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 130;
//
// search_book_name
//
this.search_book_name.HeaderText = "검색 도서명";
this.search_book_name.Name = "search_book_name";
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
//
// search_author
//
this.search_author.HeaderText = "검색 저자";
this.search_author.Name = "search_author";
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
//
// search_book_comp
//
this.search_book_comp.HeaderText = "검색 출판사";
this.search_book_comp.Name = "search_book_comp";
//
// count
//
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Visible = false;
this.count.Width = 50;
//
// unit
//
this.unit.HeaderText = "단가";
this.unit.Name = "unit";
this.unit.Width = 70;
//
// total
//
this.total.HeaderText = "합계";
this.total.Name = "total";
this.total.Visible = false;
this.total.Width = 70;
//
// condition
//
this.condition.HeaderText = "상태";
this.condition.Name = "condition";
this.condition.Visible = false;
//
// price
//
this.price.HeaderText = "정가";
this.price.Name = "price";
this.price.Width = 50;
//
// etc
//
this.etc.HeaderText = "비고";
this.etc.Name = "etc";
//
// pubDate
//
this.pubDate.HeaderText = "발행일";
this.pubDate.Name = "pubDate";
//
// persent
//
this.persent.HeaderText = "%";
this.persent.Name = "persent";
this.persent.Width = 50;
//
// category
//
this.category.HeaderText = "도서분류";
this.category.Name = "category";
//
// sold_out
//
this.sold_out.HeaderText = "품절/절판";
this.sold_out.Name = "sold_out";
//
// image
//
this.image.HeaderText = "이미지";
this.image.Name = "image";
this.image.Visible = false;
//
// api_data
//
this.api_data.HeaderText = "api_data";
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// Check_ISBN
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1632, 724);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Check_ISBN";
this.Text = "ISBN 조회";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Check_ISBN_FormClosing);
this.Load += new System.EventHandler(this.Check_ISBN_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);
}
#endregion
private System.Windows.Forms.Button btn_lookup;
private System.Windows.Forms.ComboBox cb_filter;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox cb_api;
private System.Windows.Forms.ProgressBar progressBar1;
public System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Button btn_yes24;
public System.Windows.Forms.TextBox tb_list_name;
private System.Windows.Forms.CheckBox Check_Marc;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_ComparePrice;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
private System.Windows.Forms.DataGridViewTextBoxColumn isbn;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn search_book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn search_author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn search_book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn count;
private System.Windows.Forms.DataGridViewTextBoxColumn unit;
private System.Windows.Forms.DataGridViewTextBoxColumn total;
private System.Windows.Forms.DataGridViewTextBoxColumn condition;
private System.Windows.Forms.DataGridViewTextBoxColumn price;
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
private System.Windows.Forms.DataGridViewTextBoxColumn pubDate;
private System.Windows.Forms.DataGridViewTextBoxColumn persent;
private System.Windows.Forms.DataGridViewTextBoxColumn category;
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn image;
private System.Windows.Forms.DataGridViewTextBoxColumn api_data;
}
}

View File

@@ -0,0 +1,880 @@
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public partial class Check_ISBN2 : Form
{
Main main;
List_aggregation list_agg;
Commodity_registration cr;
Helper_DB db = new Helper_DB();
public string compidx;
public string list_name = string.Empty;
private string mListIDX = string.Empty;
private string mSearchText = string.Empty;
public int rowidx;
private bool save = true;
string[] list_combo = { "알라딘", "국립중앙도서관", "다음", "네이버" };
public Check_ISBN2(Main _main,string pSearchText = "",string pListIDX = "")
{
InitializeComponent();
main = _main;
compidx = PUB.user.CompanyIdx;
mSearchText = pSearchText;
mListIDX = pListIDX;
}
public Check_ISBN2(List_aggregation _list_agg)
{
InitializeComponent();
list_agg = _list_agg;
compidx = list_agg.compidx;
}
public Check_ISBN2(Commodity_registration _cr)
{
InitializeComponent();
cr = _cr;
compidx = cr.comp_idx;
}
private void Check_ISBN_Load(object sender, EventArgs e)
{
if (mSearchText != "")
{
tb_list_name.Text = mSearchText;
DataLoad(mSearchText, mListIDX);
}
}
public void DataLoad()
{
tb_list_name.Text = list_name;
cb_api.Items.Clear();
cb_api.Items.AddRange(list_combo);
db.DBcon();
string[] search_tbl = { "compidx", "list_name" };
string[] search_col = { compidx, list_name };
string search_data = "`idx`, `header`, `num`, `isbn`, `book_name`, `author`, `book_comp`, " +
"`count`, `pay`, `total`, `import`, `price`, " +
"`etc`, `pubDate`, `persent`, `category`, `image_url`, `set_book_name`";
string cmd = db.More_DB_Search("Obj_List_Book", search_tbl, search_col, search_data);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] data = db_res.Split('|');
made_Grid(data);
}
public void DataLoad(string ListName, string l_idx)
{
dataGridView1.Rows.Clear();
cb_api.Items.Clear();
list_name = ListName;
cb_api.Items.AddRange(list_combo);
db.DBcon();
string[] search_tbl = { "compidx", "l_idx" };
string[] search_col = { compidx, l_idx };
string search_data = "`idx`, `header`, `num`, `isbn_marc`, `book_name`, `author`, `book_comp`, " +
"`count`, `pay`, `total`, `import`, `price`, " +
"`etc`, `pubDate`, `persent`, `category`, `image_url`, `set_book_name`";
string cmd = db.More_DB_Search("Obj_List_Book", search_tbl, search_col, search_data);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] data = db_res.Split('|');
made_Grid(data);
}
#region Load_Sub
void made_Grid(string[] data)
{
/* 번호 isbn 도서명 저자 출판사
* 수량 단가 합계 상태 정가
* 비고 발행일 % 도서분류 */
string[] grid = { "", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "",
"", "", "", "", "" };
int sdc = 18; // search_data_count
for (int a = 0; a < data.Length; a++)
{
if (a % sdc == 0) { grid[ 0] = data[a]; } // idx
if (a % sdc == 2) { grid[ 1] = data[a - 1] + " " + data[a]; } // 번호
if (a % sdc == 3) { grid[ 2] = data[a]; } // isbn
if (a % sdc == 4) { grid[ 3] = data[a]; } // 도서명
if (a % sdc == 5) { grid[ 5] = data[a]; } // 저자
if (a % sdc == 6) { grid[ 7] = data[a]; } // 출판사
if (a % sdc == 7) { grid[ 9] = data[a]; } // 수량
if (a % sdc == 8) { grid[10] = data[a]; } // 단가
if (a % sdc == 9) { grid[11] = data[a]; } // 합계
if (a % sdc == 10) { grid[12] = data[a]; } // 상태
if (a % sdc == 11) { grid[13] = data[a]; } // 정가
if (a % sdc == 12) { grid[14] = data[a]; } // 비고
if (a % sdc == 13) { grid[15] = data[a]; } // 발행일
if (a % sdc == 14) { grid[16] = data[a]; } // %
if (a % sdc == 15) { grid[17] = data[a]; } // 도서분류
if (a % sdc == 16) { grid[19] = data[a]; } // 도서 URL
if (a % sdc == 17) {
if (data[a] != "") {
grid[3] = data[a];
}
dataGridView1.Rows.Add(grid);
}
}
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["isbn"].Value.ToString() != "")
{
if (dataGridView1.Rows[a].Cells["unit"].Value.ToString() !=
dataGridView1.Rows[a].Cells["price"].Value.ToString())
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Orange;
else
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Yellow;
}
}
Set_grid();
}
void Set_grid()
{
for (int a = 0; a < dataGridView1.Columns.Count; a++)
{
if (dataGridView1.Columns[a].HeaderText == "ISBN13" ||
dataGridView1.Columns[a].Name == "book_name" ||
dataGridView1.Columns[a].Name == "author" ||
dataGridView1.Columns[a].Name == "book_comp" ||
dataGridView1.Columns[a].Name == "price" ||
dataGridView1.Columns[a].Name == "category" ||
dataGridView1.Columns[a].Name == "etc")
{
dataGridView1.Columns[a].ReadOnly = false;
}
else { dataGridView1.Columns[a].ReadOnly = true; }
}
}
#endregion
private void btn_lookup_Click(object sender, EventArgs e)
{
if (cb_api.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; }
if (cb_filter.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; }
clear_api();
progressBar1.Style = ProgressBarStyle.Continuous;
progressBar1.Minimum = 0;
progressBar1.Maximum = dataGridView1.Rows.Count;
progressBar1.Step = 1;
progressBar1.Value = 0;
switch (cb_api.SelectedIndex)
{
case 0:
Aladin_API(dataGridView1);
break;
case 1:
NL_API(dataGridView1);
break;
case 2:
Daum_API(dataGridView1);
break;
case 3:
Naver_API(dataGridView1);
break;
}
// 총 검색 횟수, 일치, 중복
MessageBox.Show("검색이 완료되었습니다!");
progressBar1.Value = dataGridView1.Rows.Count;
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells["num"];
this.ActiveControl = dataGridView1;
rowidx = 0;
save = false;
}
/// <summary>
/// 불러와서 저장한 api값 초기화
/// </summary>
void clear_api()
{
for(int a = 0; a < dataGridView1.Rows.Count; a++)
{
dataGridView1.Rows[a].Cells["api_data"].Value = "";
}
}
private void Aladin_API(DataGridView gridview)
{
string temp = string.Empty;
string type = string.Empty;
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
string[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
"pubDate", "categoryName", "stockStatus", "cover" };
API api = new API();
switch (cb_filter.SelectedIndex)
{
case 0:
type = "Title";
break;
case 1:
type = "Author";
break;
case 2:
type = "Publisher";
break;
case 3:
type = "ISBN13";
break;
}
for (int a = 0; a < gridview.Rows.Count; a++)
{
progressBar1.PerformStep();
if (gridview.Rows[a].Cells["isbn"].Value == null)
gridview.Rows[a].Cells["isbn"].Value = "";
string isbn = gridview.Rows[a].Cells["isbn"].Value.ToString();
if (cb_filter.SelectedIndex == 3) {
if (!CheckData(isbn))
continue;
else
gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
}
else {
if (CheckData(isbn))
continue;
else
gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
}
string query = Aladin_Set_query(type, a);
insert_Aladin(api.Aladin(query, type, param), a);
}
}
string Aladin_Set_query(string type, int idx)
{
string result = string.Empty;
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 NL_API(DataGridView gridView)
{
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 /
string[] param = { "TITLE", "AUTHOR", "PUBLISHER", "EA_ISBN", "PRE_PRICE",
"PUBLISH_PREDATE", "KDC", "TITLE_URL" };
API api = new API();
for (int a = 0; a < gridView.Rows.Count; a++)
{
string[] grid = { "", "", "", "", "",
"", "", "", "" };
string type = "";
string target = "";
progressBar1.PerformStep();
if (gridView.Rows[a].Cells["isbn"].Value == null)
gridView.Rows[a].Cells["isbn"].Value = "";
string isbn = gridView.Rows[a].Cells["isbn"].Value.ToString();
if (CheckData(isbn))
continue;
else
gridView.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
switch (cb_filter.SelectedIndex)
{
case 0:
type = "title";
target = gridView.Rows[a].Cells["book_name"].Value.ToString();
break;
case 1:
type = "author";
target = gridView.Rows[a].Cells["author"].Value.ToString();
break;
case 2:
type = "publisher";
target = gridView.Rows[a].Cells["book_comp"].Value.ToString();
break;
}
string result = api.NationalLibraryOfKorea(target, type, param);
if (result.Length < 4) continue;
string[] tmp_Array = result.Split('|');
int ArrayLength = tmp_Array.Length;
for (int b = 0; b < ArrayLength; b++)
{
if (b % 8 == 0) grid[0] = tmp_Array[b];
if (b % 8 == 1) grid[1] = tmp_Array[b];
if (b % 8 == 2) grid[2] = tmp_Array[b];
if (b % 8 == 3) grid[3] = tmp_Array[b];
if (b % 8 == 4) grid[4] = tmp_Array[b].Replace(",", "");
if (b % 8 == 5) grid[5] = tmp_Array[b];
if (b % 8 == 6) grid[6] = tmp_Array[b];
if (b % 8 == 7)
{
grid[8] = tmp_Array[b];
gridView.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
if (ArrayLength < 10) {
input_api(grid, a, grid[5]);
break;
}
else
{
gridView.Rows[a].Cells["api_data"].Value += string.Join("|", grid) + "|";
}
}
}
}
}
private void Naver_API(DataGridView gridview)
{
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
string[] param = { "title", "author", "publisher", "isbn", "discount",
"pubdate", "discount", "image"};
API api = new API();
for (int a = 0; a < gridview.Rows.Count; a++)
{
progressBar1.PerformStep();
if (gridview.Rows[a].Cells["isbn"].Value == null)
gridview.Rows[a].Cells["isbn"].Value = "";
string isbn = gridview.Rows[a].Cells["isbn"].Value.ToString();
string Target = "";
if (CheckData(isbn))
continue;
else
gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
#region
switch (cb_filter.SelectedIndex)
{
case 0:
Target = gridview.Rows[a].Cells["book_name"].Value.ToString();
break;
case 1:
Target = gridview.Rows[a].Cells["author"].Value.ToString();
break;
case 2:
Target = gridview.Rows[a].Cells["book_comp"].Value.ToString();
break;
}
#endregion
string result = api.Naver(Target, "query", param);
insert_Naver(result, a);
Thread.Sleep(700);
}
}
private void Daum_API(DataGridView gridview)
{
string[] param = { "title", "authors", "publisher", "isbn", "price",
"datetime", "status", "thumbnail" };
string type = string.Empty;
string query = string.Empty;
API api = new API();
for(int a = 0; a < gridview.Rows.Count; a++)
{
progressBar1.PerformStep();
if (gridview.Rows[a].Cells["isbn"].Value == null)
gridview.Rows[a].Cells["isbn"].Value = "";
string isbn = gridview.Rows[a].Cells["isbn"].Value.ToString();
if (CheckData(isbn))
continue;
else
gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
switch (cb_filter.SelectedIndex)
{
case 0:
type = "title";
query = gridview.Rows[a].Cells["book_name"].Value.ToString();
break;
case 1:
type = "person";
query = gridview.Rows[a].Cells["author"].Value.ToString();
break;
case 2:
type = "publisher";
query = gridview.Rows[a].Cells["book_comp"].Value.ToString();
break;
}
string result = api.Daum(query, type, param);
insert_Daum(result, a);
}
}
bool CheckData(string isbn)
{
if (string.IsNullOrEmpty(isbn))
return false;
return true;
}
void insert_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["api_data"].Value = data;
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
}
string[] insert = data.Split('|');
if (data == "") { return; }
string newstring;
try {
// pubDate형 보기편하게 DateTime형으로 재정리
newstring = String.Format("{0:yyyy/MM/dd HH:mm}",
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
}
catch {
newstring = insert[5];
}
insert[6] = Aladin_CategorySort(insert[6]);
if (insert.Length > 10) {
return;
}
if (cb_filter.SelectedItem.ToString() == "별치조사")
input_api_aladin(insert, row, newstring);
input_api(insert, row, newstring);
/*
if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; }
dataGridView1.Rows[row].Selected = true;
string[] insert = data.Split('|');
if (data == "") { return; }
// pubDate형 보기편하게 DateTime형으로 재정리
string newstring = "";
try
{
newstring = String.Format("{0:yyyy/MM/dd}",
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
}
catch (Exception ex) { MessageBox.Show(data); }
for (int a = 0; a < insert.Length; a++)
{
if (a % 8 == 6) { insert[a] = Aladin_CategorySort(insert[a]); }
}
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);
*/
}
public 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[] value, int idx, string date)
{
dataGridView1.Rows[idx].Cells["search_book_name"].Value = value[0];
dataGridView1.Rows[idx].Cells["search_author"].Value = value[1];
dataGridView1.Rows[idx].Cells["search_book_comp"].Value = value[2];
dataGridView1.Rows[idx].Cells["price"].Value = value[4];
dataGridView1.Rows[idx].Cells["pubDate"].Value = date;
dataGridView1.Rows[idx].Cells["category"].Value = value[6];
}
void insert_Naver(string value, int row)
{
if (row > 0) dataGridView1.Rows[row - 1].Selected = false;
dataGridView1.Rows[row].Selected = true;
if (value == "") return;
value = value.Replace("<b>", "");
value = value.Replace("</b>", "");
string[] sp_data = value.Split('\t');
string[] grid = { "", "", "", "", "", "", "", "", "" };
#region
for (int a = 0; a < sp_data.Length - 1; a++)
{
string[] data = sp_data[a].Split('|');
int idx = data.Length - 2;
grid[0] = data[0];
grid[1] = data[1];
for (int b = 2; b < idx - 5; b++)
{
grid[1] += ", " + data[b];
}
grid[2] = data[idx - 5];
if (data[idx - 4].Contains(" ") == true)
{
string[] isbn = data[idx - 4].Split(' ');
grid[3] = isbn[1];
}
else
grid[3] = data[idx - 4];
grid[4] = data[idx - 3];
grid[5] = data[idx - 2];
if (data[idx - 1] == "")
grid[7] = "절판";
else
grid[7] = "";
grid[8] = data[idx];
dataGridView1.Rows[row].Cells["api_data"].Value += string.Join("|", grid) + "|";
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
}
#endregion
if (sp_data.Length > 10) return;
if (row > 0) dataGridView1.Rows[row - 1].Selected = false;
dataGridView1.Rows[row].Selected = true;
string newstring = "";
try
{
newstring = DateTime.ParseExact(grid[5], "yyyyMMdd", null).ToString("yyyy-MM-dd");
}
catch (FormatException fe)
{
}
input_api(grid, row, newstring);
}
void insert_Daum(string value, int row)
{
if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; }
dataGridView1.Rows[row].Selected = true;
if (value == "") return;
string[] sp_data = value.Split('\n');
string[] grid = { "", "", "", "", "", "", "", "", "" };
for (int a = 0; a < sp_data.Length - 1; a++)
{
string[] data = sp_data[a].Split('|');
grid[0] = data[0];
grid[1] = data[1];
grid[2] = data[2];
string[] tmp_isbn = data[3].Split(' ');
if (tmp_isbn.Length < 2)
grid[3] = data[3].Replace(" ", "");
else
grid[3] = tmp_isbn[1];
grid[4] = data[4];
if (data[5].Length < 10)
grid[5] = data[5];
else
grid[5] = data[5].Substring(0, 10);
grid[7] = data[6];
grid[8] = data[7];
dataGridView1.Rows[row].Cells["api_data"].Value += string.Join("|", grid) + "|";
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
}
if (sp_data.Length > 10) return;
if (row > 0) dataGridView1.Rows[row - 1].Selected = false;
dataGridView1.Rows[row].Selected = true;
string newstring = grid[5];
input_api(grid, row, newstring);
}
/// <summary>
/// API에서 가져온 데이터가 요구한 데이터와 일치하는지 알아보는 함수
/// </summary>
/// <param name="value">데이터</param>
/// <param name="idx">Grid의 row인덱스 번호</param>
/// <param name="date">날짜</param>
void input_api(string[] value, int idx, string date)
{
bool[] chk = { false, false, false };
string book_name = dataGridView1.Rows[idx].Cells["book_name"].Value.ToString();
string author = dataGridView1.Rows[idx].Cells["author"].Value.ToString();
string book_comp = dataGridView1.Rows[idx].Cells["book_comp"].Value.ToString();
if (value[0] == book_name) chk[0] = true;
else if (book_name.Contains(value[0])) chk[0] = true;
else if (value[0].Contains(book_name)) chk[0] = true;
if (value[1] == author) chk[1] = true;
else if (author.Contains(value[1])) chk[1] = true;
else if (value[1].Contains(author)) chk[1] = true;
if (value[2] == book_comp) chk[2] = true;
else if (book_comp.Contains(value[2])) chk[2] = true;
else if (value[2].Contains(book_comp)) chk[2] = true;
if (chk[0] && chk[1] && chk[2]) {
dataGridView1.Rows[idx].Cells["search_book_name"].Value = value[0];
dataGridView1.Rows[idx].Cells["search_author"].Value = value[1];
dataGridView1.Rows[idx].Cells["search_book_comp"].Value = value[2];
dataGridView1.Rows[idx].Cells["isbn"].Value = value[3];
dataGridView1.Rows[idx].Cells["price"].Value = value[4];
dataGridView1.Rows[idx].Cells["pubDate"].Value = date;
dataGridView1.Rows[idx].Cells["category"].Value = value[6];
dataGridView1.Rows[idx].Cells["sold_out"].Value = value[7];
dataGridView1.Rows[idx].Cells["image"].Value = value[8];
dataGridView1.Rows[idx].DefaultCellStyle.BackColor = Color.Yellow;
}
}
private void btn_Save_Click(object sender, EventArgs e)
{
string[] Edit_tbl = { "isbn", "price", "pubDate", "category", "image_url", "etc" };
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (dataGridView1.Rows[a].Cells["isbn"].Value == null &&
dataGridView1.Rows[a].Cells["isbn"].Value.ToString() == "") continue;
if (main != null)
Edit_tbl[0] = "isbn_marc";
else
Edit_tbl[0] = "isbn";
string[] Edit_Col = {
dataGridView1.Rows[a].Cells["isbn"].Value.ToString(),
dataGridView1.Rows[a].Cells["price"].Value.ToString(),
dataGridView1.Rows[a].Cells["pubDate"].Value.ToString(),
dataGridView1.Rows[a].Cells["category"].Value.ToString(),
dataGridView1.Rows[a].Cells["image"].Value.ToString(),
dataGridView1.Rows[a].Cells["etc"].Value.ToString()
};
string[] Search_tbl = { "idx", "list_name", "compidx" };
string[] Search_col = { dataGridView1.Rows[a].Cells["idx"].Value.ToString(),
list_name, compidx };
if (dataGridView1.Rows[a].Cells["etc"].Value.ToString().Contains("세트분할"))
Search_tbl[0] = "set_book_name";
string U_cmd = db.More_Update("Obj_List_Book", Edit_tbl, Edit_Col, Search_tbl, Search_col, 1);
Helper_DB.ExcuteNonQuery(U_cmd);
if (Check_Marc.Checked) {
string CMcmd = string.Format("UPDATE `Obj_List_Book` SET `isbn_marc` = \"{0}\" WHERE `idx` = \"{1}\"",
Edit_Col[0], Search_col[0]);
Helper_DB.ExcuteNonQuery(CMcmd);
}
}
MessageBox.Show("저장되었습니다!");
save = true;
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
//if (rowidx >= dataGridView1.Rows.Count) return;
//if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null ||
// dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString() == "") {
// return;
//}
//Check_ISBN_Sub sub = new Check_ISBN_Sub(this);
//sub.row = rowidx;
//sub.Call_API = cb_api.Text;
//sub.Show();
}
private void SHOW_ISBN()
{
if (rowidx >= dataGridView1.Rows.Count) return;
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null ||
dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString() == "")
{
return;
}
var sub = new Check_ISBN_Sub2(this);
sub.row = rowidx;
sub.Call_API = cb_api.Text;
sub.Show();
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Excel_to_DataGridView(sender, e);
//if (e.KeyCode == Keys.Enter) { dataGridView1_CellDoubleClick(null, null); rowidx++; }
if (e.KeyCode == Keys.Enter) { SHOW_ISBN(); rowidx++; }
if (e.KeyCode == Keys.Insert)
{
// Check_ISBN_Split split = new Check_ISBN_Split(this);
// split.book_data[0] = dataGridView1.Rows[rowidx].Cells["num"].Value.ToString();
// split.book_data[1] = dataGridView1.Rows[rowidx].Cells["book_name"].Value.ToString();
// split.book_data[2] = dataGridView1.Rows[rowidx].Cells["author"].Value.ToString();
// split.book_data[3] = dataGridView1.Rows[rowidx].Cells["book_comp"].Value.ToString();
// split.book_data[4] = dataGridView1.Rows[rowidx].Cells["unit"].Value.ToString();
// split.book_data[5] = dataGridView1.Rows[rowidx].Cells["count"].Value.ToString();
// split.row_idx = rowidx;
// split.compidx = compidx;
// split.Show();
}
if (e.KeyCode == Keys.F12)
{
var bl = new Book_Lookup2(this);
bl.TopMost = true;
string book_name = dataGridView1.Rows[rowidx].Cells["book_name"].Value.ToString();
string author = dataGridView1.Rows[rowidx].Cells["author"].Value.ToString();
string book_comp = dataGridView1.Rows[rowidx].Cells["book_comp"].Value.ToString();
bl.Lookup_Load(book_name, author, book_comp, list_name);
bl.Show();
}
if (e.KeyCode == Keys.Up)
{
rowidx--;
if (rowidx < 0)
rowidx = 0;
}
if (e.KeyCode == Keys.Down)
{
rowidx++;
if (rowidx > dataGridView1.Rows.Count - 1)
rowidx = dataGridView1.Rows.Count - 1;
}
}
private void cb_api_SelectedIndexChanged(object sender, EventArgs e)
{
cb_filter.Items.Clear();
if (cb_api.SelectedIndex == 0) {
string[] aladin = { "도서명", "저자", "출판사", "별치조사" };
cb_filter.Items.AddRange(aladin);
}
else {
string[] sub = { "도서명", "저자", "출판사" };
cb_filter.Items.AddRange(sub);
}
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
rowidx = e.RowIndex;
if (rowidx < 0) {
return;
}
richTextBox1.Text += dataGridView1.Rows[rowidx].Cells["etc"].Value.ToString().Contains("세트분할").ToString();
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null) {
return;
}
richTextBox1.Text = dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString();
}
private void Check_ISBN_FormClosing(object sender, FormClosingEventArgs e)
{
if (!save) {
if (MessageBox.Show("데이터가 저장되지않았습니다!\n종료하시겠습니까?", "Warning!", MessageBoxButtons.YesNo) == DialogResult.No) {
e.Cancel = true;
}
}
}
private void btn_yes24_Click(object sender, EventArgs e)
{
var yes = new Check_ISBN_Yes242(this);
yes.Show();
}
private void tb_list_name_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
var search = new Order_input_Search2(this);
search.Where_Open = "book_list";
search.searchText = tb_list_name.Text;
search.OnlyMarc = true;
search.TopMost = true;
search.Show();
}
}
private void btn_ComparePrice_Click(object sender, EventArgs e)
{
int GridCount = dataGridView1.Rows.Count;
for (int a = 0; a < GridCount; a++)
{
string isbn = dataGridView1.Rows[a].Cells["isbn"].Value.ToString();
if (isbn == null || isbn == "") continue;
string unit = dataGridView1.Rows[a].Cells["unit"].Value.ToString();
string price = dataGridView1.Rows[a].Cells["price"].Value.ToString();
if (unit != price)
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Orange;
}
}
}
}

View File

@@ -0,0 +1,183 @@
<?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="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="num.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="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="search_book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="search_author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="search_book_comp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="unit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="total.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="condition.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>
<metadata name="etc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pubDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="persent.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="category.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="sold_out.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="image.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="api_data.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@@ -0,0 +1,321 @@
namespace UniMarc
{
partial class Check_ISBN_Sub2
{
/// <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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.btn_Close = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.tb_price = new System.Windows.Forms.TextBox();
this.tb_isbn = new System.Windows.Forms.TextBox();
this.tb_book_comp = new System.Windows.Forms.TextBox();
this.tb_author = new System.Windows.Forms.TextBox();
this.tb_book_name = new System.Windows.Forms.TextBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.pubDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.category = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(727, 24);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 18;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(648, 12);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(29, 12);
this.label5.TabIndex = 13;
this.label5.Text = "정가";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(566, 12);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(33, 12);
this.label4.TabIndex = 14;
this.label4.Text = "ISBN";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(462, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.TabIndex = 15;
this.label3.Text = "출판사";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(368, 12);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(29, 12);
this.label2.TabIndex = 16;
this.label2.Text = "저자";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(162, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 17;
this.label1.Text = "도서명";
//
// tb_price
//
this.tb_price.Location = new System.Drawing.Point(640, 25);
this.tb_price.Name = "tb_price";
this.tb_price.Size = new System.Drawing.Size(61, 21);
this.tb_price.TabIndex = 8;
//
// tb_isbn
//
this.tb_isbn.Location = new System.Drawing.Point(540, 25);
this.tb_isbn.Name = "tb_isbn";
this.tb_isbn.Size = new System.Drawing.Size(101, 21);
this.tb_isbn.TabIndex = 9;
//
// tb_book_comp
//
this.tb_book_comp.Location = new System.Drawing.Point(440, 25);
this.tb_book_comp.Name = "tb_book_comp";
this.tb_book_comp.Size = new System.Drawing.Size(101, 21);
this.tb_book_comp.TabIndex = 10;
//
// tb_author
//
this.tb_author.Location = new System.Drawing.Point(340, 25);
this.tb_author.Name = "tb_author";
this.tb_author.Size = new System.Drawing.Size(101, 21);
this.tb_author.TabIndex = 11;
//
// tb_book_name
//
this.tb_book_name.Location = new System.Drawing.Point(41, 25);
this.tb_book_name.Name = "tb_book_name";
this.tb_book_name.Size = new System.Drawing.Size(300, 21);
this.tb_book_name.TabIndex = 12;
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
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,
this.book_comp,
this.isbn,
this.price,
this.pubDate,
this.category,
this.sold_out,
this.Column1});
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);
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;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dataGridView1.Size = new System.Drawing.Size(964, 357);
this.dataGridView1.TabIndex = 19;
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
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 300;
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
//
// isbn
//
this.isbn.HeaderText = "ISBN";
this.isbn.Name = "isbn";
//
// price
//
this.price.HeaderText = "정가";
this.price.Name = "price";
this.price.Width = 60;
//
// pubDate
//
this.pubDate.HeaderText = "출간일";
this.pubDate.Name = "pubDate";
this.pubDate.Width = 70;
//
// category
//
this.category.HeaderText = "카테고리";
this.category.Name = "category";
//
// sold_out
//
this.sold_out.HeaderText = "품절여부";
this.sold_out.Name = "sold_out";
this.sold_out.Width = 70;
//
// Column1
//
this.Column1.HeaderText = "Column1";
this.Column1.Name = "Column1";
this.Column1.Visible = false;
//
// panel1
//
this.panel1.Controls.Add(this.tb_book_name);
this.panel1.Controls.Add(this.tb_author);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.tb_book_comp);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.tb_isbn);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.tb_price);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label2);
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(964, 55);
this.panel1.TabIndex = 20;
//
// panel2
//
this.panel2.Controls.Add(this.dataGridView1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 55);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(964, 357);
this.panel2.TabIndex = 21;
//
// Check_ISBN_Sub
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(964, 412);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "Check_ISBN_Sub";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ISBN 상세 조회";
this.Load += new System.EventHandler(this.Check_ISBN_Sub_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_Close;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox tb_price;
private System.Windows.Forms.TextBox tb_isbn;
private System.Windows.Forms.TextBox tb_book_comp;
private System.Windows.Forms.TextBox tb_author;
private System.Windows.Forms.TextBox tb_book_name;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn author;
private System.Windows.Forms.DataGridViewTextBoxColumn book_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn isbn;
private System.Windows.Forms.DataGridViewTextBoxColumn price;
private System.Windows.Forms.DataGridViewTextBoxColumn pubDate;
private System.Windows.Forms.DataGridViewTextBoxColumn category;
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
}
}

View File

@@ -0,0 +1,195 @@
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 Check_ISBN_Sub2 : Form
{
Check_ISBN2 ci;
public int row;
public string Call_API = string.Empty;
int rowidx;
public Check_ISBN_Sub2(Check_ISBN2 _ci)
{
InitializeComponent();
ci = _ci;
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
private void Check_ISBN_Sub_Load(object sender, EventArgs e)
{
Sort_data();
same_chk(); // 비슷한거 색깔표시
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0];
this.ActiveControl = dataGridView1;
rowidx = 0;
}
private void Sort_data()
{
tb_book_name.Text = ci.dataGridView1.Rows[row].Cells["book_name"].Value.ToString();
tb_author.Text = ci.dataGridView1.Rows[row].Cells["author"].Value.ToString();
tb_book_comp.Text = ci.dataGridView1.Rows[row].Cells["book_comp"].Value.ToString();
if (ci.dataGridView1.Rows[row].Cells["unit"].Value != null)
tb_price.Text = ci.dataGridView1.Rows[row].Cells["unit"].Value.ToString();
else tb_price.Text = "";
string data = ci.dataGridView1.Rows[row].Cells["api_data"].Value.ToString();
// 도서명 / 저자 / 출판사 / isbn / 출간일 / 카테고리 / 품절여부
string[] tmp = data.Split('|');
string[] grid = { "", "", "", "", "", "", "", "", "" };
int idx = 9;
for(int a= 0; a < tmp.Length; a++)
{
if (a % idx == 0) grid[0] = tmp[a];
if (a % idx == 1) grid[1] = tmp[a];
if (a % idx == 2) grid[2] = tmp[a];
if (a % idx == 3) grid[3] = tmp[a];
if (a % idx == 4) grid[4] = tmp[a];
if (a % idx == 5) grid[5] = change_Date_type(tmp[a]);
if (a % idx == 6) grid[6] = tmp[a];
if (a % idx == 7) grid[7] = tmp[a];
if (a % idx == 8) { grid[8] = tmp[a]; dataGridView1.Rows.Add(grid); }
}
}
private string change_Date_type(string date)
{
if (Call_API == "알라딘")
{
try
{
return String.Format("{0:yyyy/MM/dd}",
DateTime.Parse(date.Remove(date.IndexOf(" G"))));
}
catch { return date; }
}
else if (Call_API == "네이버")
{
if (date.Length < 5)
return date;
return DateTime.ParseExact(date, "yyyyMMdd", null).ToString("yyyy-MM-dd");
}
else
return date;
}
private void same_chk()
{
// 도서명, 저자, 출판사, ISBN, 정가
string[] ori_data = { tb_book_name.Text,
tb_author.Text,
tb_book_comp.Text,
tb_isbn.Text,
tb_price.Text.Replace(",", "") };
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
int chk_idx = 0;
if (dataGridView1.Rows[a].Cells["book_name"].Value.ToString() == ori_data[0])
{
chk_idx++;
}
if (dataGridView1.Rows[a].Cells["author"].Value.ToString().Contains(ori_data[1]) == true)
{
chk_idx++;
}
if (dataGridView1.Rows[a].Cells["book_comp"].Value.ToString() == ori_data[2])
{
chk_idx++;
}
if (chk_idx >= 2)
{
int pay = Convert.ToInt32(dataGridView1.Rows[a].Cells["price"].Value.ToString());
int price = 0;
if (ori_data[4] != "")
price = Convert.ToInt32(ori_data[4]);
if (price == pay)
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Yellow;
else if (price - 500 < pay && pay < price + 500)
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Orange;
else
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
}
}
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
rowidx = e.RowIndex;
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (e != null) { rowidx = e.RowIndex; }
string book_name = dataGridView1.Rows[rowidx].Cells["book_name"].Value.ToString();
string author = dataGridView1.Rows[rowidx].Cells["author"].Value.ToString();
string book_comp = dataGridView1.Rows[rowidx].Cells["book_comp"].Value.ToString();
string isbn = dataGridView1.Rows[rowidx].Cells["isbn"].Value.ToString();
string price = dataGridView1.Rows[rowidx].Cells["price"].Value.ToString();
string Date = dataGridView1.Rows[rowidx].Cells["pubDate"].Value.ToString();
string category = dataGridView1.Rows[rowidx].Cells["category"].Value.ToString();
string sold = dataGridView1.Rows[rowidx].Cells["sold_out"].Value.ToString();
string image = dataGridView1.Rows[rowidx].Cells["Column1"].Value.ToString();
ci.dataGridView1.Rows[row].Cells["search_book_name"].Value = book_name;
ci.dataGridView1.Rows[row].Cells["search_author"].Value = author;
ci.dataGridView1.Rows[row].Cells["search_book_comp"].Value = book_comp;
ci.dataGridView1.Rows[row].Cells["isbn"].Value = isbn;
ci.dataGridView1.Rows[row].Cells["price"].Value = price;
ci.dataGridView1.Rows[row].Cells["pubDate"].Value = Date;
ci.dataGridView1.Rows[row].Cells["category"].Value = ci.Aladin_CategorySort(category);
ci.dataGridView1.Rows[row].Cells["sold_out"].Value = sold;
ci.dataGridView1.Rows[row].Cells["image"].Value = image;
ci.dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
this.Close();
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) { dataGridView1_CellDoubleClick(null, null); }
if (e.KeyCode == Keys.Up)
{
rowidx--;
if (rowidx < 0)
rowidx = 0;
}
if (e.KeyCode == Keys.Down)
{
rowidx++;
if (rowidx > dataGridView1.Rows.Count - 1)
rowidx = dataGridView1.Rows.Count - 1;
}
if (e.KeyCode == Keys.Escape)
{
this.Close();
}
}
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
Skill_Grid sg = new Skill_Grid();
sg.Print_Grid_Num(sender, e);
}
}
}

View File

@@ -0,0 +1,147 @@
<?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="book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="author.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="book_comp.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="price.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pubDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="category.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="sold_out.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>
</root>

View File

@@ -0,0 +1,312 @@
namespace UniMarc
{
partial class Check_ISBN_Yes242
{
/// <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();
this.panel1 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.tb_PW = new System.Windows.Forms.TextBox();
this.tb_ID = new System.Windows.Forms.TextBox();
this.btn_Yes24Connect = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.webBrowser1 = new System.Windows.Forms.WebBrowser();
this.panel3 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel4.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
//
// btn_change
//
this.btn_change.Location = new System.Drawing.Point(423, 11);
this.btn_change.Name = "btn_change";
this.btn_change.Size = new System.Drawing.Size(75, 23);
this.btn_change.TabIndex = 3;
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(504, 11);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 23);
this.btn_Close.TabIndex = 4;
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;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
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.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
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.RowHeadersWidth = 30;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(579, 666);
this.dataGridView1.TabIndex = 0;
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.Visible = false;
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;
this.before_author.Visible = false;
//
// 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.Visible = false;
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;
this.price.Width = 80;
//
// panel1
//
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.tb_PW);
this.panel1.Controls.Add(this.tb_ID);
this.panel1.Controls.Add(this.btn_Yes24Connect);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.btn_change);
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(1316, 46);
this.panel1.TabIndex = 0;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(729, 16);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(23, 12);
this.label2.TabIndex = 7;
this.label2.Text = "PW";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(595, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(16, 12);
this.label1.TabIndex = 7;
this.label1.Text = "ID";
//
// tb_PW
//
this.tb_PW.Location = new System.Drawing.Point(754, 12);
this.tb_PW.Name = "tb_PW";
this.tb_PW.Size = new System.Drawing.Size(100, 21);
this.tb_PW.TabIndex = 1;
//
// tb_ID
//
this.tb_ID.Location = new System.Drawing.Point(613, 12);
this.tb_ID.Name = "tb_ID";
this.tb_ID.Size = new System.Drawing.Size(100, 21);
this.tb_ID.TabIndex = 0;
//
// btn_Yes24Connect
//
this.btn_Yes24Connect.Location = new System.Drawing.Point(867, 5);
this.btn_Yes24Connect.Name = "btn_Yes24Connect";
this.btn_Yes24Connect.Size = new System.Drawing.Size(99, 35);
this.btn_Yes24Connect.TabIndex = 2;
this.btn_Yes24Connect.Text = "Yes24 다중검색\r\n접속";
this.btn_Yes24Connect.UseVisualStyleBackColor = true;
this.btn_Yes24Connect.Click += new System.EventHandler(this.btn_Yes24Connect_Click);
//
// panel2
//
this.panel2.Controls.Add(this.panel4);
this.panel2.Controls.Add(this.panel3);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(0, 46);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1316, 666);
this.panel2.TabIndex = 5;
//
// panel4
//
this.panel4.Controls.Add(this.webBrowser1);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(579, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(737, 666);
this.panel4.TabIndex = 3;
//
// 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(737, 666);
this.webBrowser1.TabIndex = 0;
this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
//
// panel3
//
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
this.panel3.Location = new System.Drawing.Point(0, 0);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(579, 666);
this.panel3.TabIndex = 3;
//
// Check_ISBN_Yes24
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1316, 712);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
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.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel4.ResumeLayout(false);
this.panel3.ResumeLayout(false);
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.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Panel panel3;
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;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.Button btn_Yes24Connect;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox tb_PW;
private System.Windows.Forms.TextBox tb_ID;
}
}

View File

@@ -0,0 +1,266 @@
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 Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
using System.Text.RegularExpressions;
using System.IO;
namespace UniMarc
{
public partial class Check_ISBN_Yes242 : Form
{
Helper_DB db = new Helper_DB();
Check_ISBN2 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_Yes242(Check_ISBN2 _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 cmd = db.DB_Select_Search(area, "yes24");
string db_res = db.DB_Send_CMD_Search(cmd);
string[] ary_tmp = db_res.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, 6];
for(int a= 0; a < dataGridView1.Rows.Count; a++)
{
int count = a + 1;
string price = dataGridView1.Rows[a].Cells["price"].Value.ToString();
grid[a, 0] = count.ToString();
grid[a, 1] = dataGridView1.Rows[a].Cells["after_book_name"].Value.ToString();
grid[a, 2] = dataGridView1.Rows[a].Cells["after_author"].Value.ToString();
grid[a, 3] = dataGridView1.Rows[a].Cells["after_book_comp"].Value.ToString();
grid[a, 4] = Regex.Replace(price, @"[^0-9]", "");
grid[a, 5] = "1";
}
Excel_change(grid);
}
#region
private void Excel_change(string[,] grid)
{
string DesktopPath =
Environment.GetFolderPath(Environment.SpecialFolder.Desktop); // 바탕화면 경로
string FilePath =
Path.Combine(DesktopPath, "Excel.xlsx"); // 엑셀 파일 저장 경로
try
{
Excel.Application application = new Excel.Application();
application.Visible = true;
application.Interactive = false;
Excel._Workbook wb = 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", "F1"];
rng.Value2 = title;
rng.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter;
rng.Font.Bold = true;
int count = dataGridView1.Rows.Count + 1;
rng = ws.Range["A2", "F" + 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();
}
private void btn_Yes24Connect_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("http://www.yes24.com/Mall/CorpLargeOrder/CorpMain");
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
string url = webBrowser1.Url.AbsoluteUri;
if (url.IndexOf("yes24.com/Main") > -1)
webBrowser1.Navigate("http://www.yes24.com/Mall/CorpLargeOrder/CorpMain");
if (url.IndexOf("CorpLargeOrder/CorpMain") > -1)
if (isLogin())
webBrowser1.Navigate("https://www.yes24.com/Templates/FTLogin.aspx");
else
ExcelUpLoadSearch();
if (url.IndexOf("FTLogin") > -1)
Login();
}
#region DocumentCompleted Sub
bool isLogin()
{
string InnerText = "";
foreach (HtmlElement li in webBrowser1.Document.GetElementsByTagName("li"))
{
if (li.Id == null)
continue;
if (li.Id.IndexOf("LoginText") > -1)
{
if (li.InnerText.IndexOf("로그") > -1)
{
InnerText = li.InnerText;
break;
}
}
}
if (InnerText.IndexOf("로그인") > -1)
return true;
return false;
}
void ExcelUpLoadSearch()
{
webBrowser1.Navigate("http://www.yes24.com/Mall/CorpLargeOrder/ExcelUploadSearch");
}
void Login()
{
foreach (HtmlElement input in webBrowser1.Document.GetElementsByTagName("input"))
{
if (input.Id == null)
continue;
if (input.Id == "SMemberID")
input.SetAttribute("value", tb_ID.Text);
if (input.Id == "SMemberPassword")
input.SetAttribute("value", tb_PW.Text);
}
foreach (HtmlElement btn in webBrowser1.Document.GetElementsByTagName("button"))
{
if (btn.Id == null)
continue;
if (btn.Id.IndexOf("btnLogin") > -1)
btn.InvokeMember("click");
}
}
#endregion
private void webBrowser1_FileDownload(object sender, EventArgs e)
{
MessageBox.Show("You are in the WebBrowser. FileDownload event.");
}
}
}

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>

View File

@@ -29,8 +29,8 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = 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(Mac_List));
this.label1 = new System.Windows.Forms.Label();
this.tb_Search = new System.Windows.Forms.TextBox();
@@ -89,6 +89,7 @@
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.btEdit = new System.Windows.Forms.ToolStripButton();
this.button2 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@@ -124,14 +125,14 @@
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
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;
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.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
@@ -148,14 +149,14 @@
this.charge,
this.dvc_cust,
this.check});
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle8;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.MultiSelect = false;
@@ -418,6 +419,7 @@
// panel1
//
this.panel1.Controls.Add(this.panel11);
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.btnSearchISBN);
this.panel1.Controls.Add(this.panel10);
this.panel1.Controls.Add(this.button1);
@@ -486,7 +488,7 @@
// panel11
//
this.panel11.Dock = System.Windows.Forms.DockStyle.Right;
this.panel11.Location = new System.Drawing.Point(790, 5);
this.panel11.Location = new System.Drawing.Point(696, 5);
this.panel11.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel11.Name = "panel11";
this.panel11.Size = new System.Drawing.Size(8, 27);
@@ -494,14 +496,15 @@
//
// btnSearchISBN
//
this.btnSearchISBN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.btnSearchISBN.Dock = System.Windows.Forms.DockStyle.Right;
this.btnSearchISBN.Location = new System.Drawing.Point(798, 5);
this.btnSearchISBN.Location = new System.Drawing.Point(778, 5);
this.btnSearchISBN.Margin = new System.Windows.Forms.Padding(1);
this.btnSearchISBN.Name = "btnSearchISBN";
this.btnSearchISBN.Size = new System.Drawing.Size(74, 27);
this.btnSearchISBN.Size = new System.Drawing.Size(94, 27);
this.btnSearchISBN.TabIndex = 50;
this.btnSearchISBN.Text = "ISBN조회";
this.btnSearchISBN.UseVisualStyleBackColor = true;
this.btnSearchISBN.Text = "ISBN조회(구)";
this.btnSearchISBN.UseVisualStyleBackColor = false;
this.btnSearchISBN.Click += new System.EventHandler(this.btnSearchISBN_Click);
//
// panel10
@@ -701,10 +704,22 @@
this.btEdit.Image = ((System.Drawing.Image)(resources.GetObject("btEdit.Image")));
this.btEdit.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btEdit.Name = "btEdit";
this.btEdit.Size = new System.Drawing.Size(79, 24);
this.btEdit.Text = "정보편집";
this.btEdit.Size = new System.Drawing.Size(93, 24);
this.btEdit.Text = "정보편집(&E)";
this.btEdit.Click += new System.EventHandler(this.btEdit_Click);
//
// button2
//
this.button2.Dock = System.Windows.Forms.DockStyle.Right;
this.button2.Location = new System.Drawing.Point(704, 5);
this.button2.Margin = new System.Windows.Forms.Padding(1);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(74, 27);
this.button2.TabIndex = 65;
this.button2.Text = "ISBN조회";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Mac_List
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -788,5 +803,6 @@
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ToolStripButton btEdit;
public System.Windows.Forms.Button button2;
}
}

View File

@@ -348,5 +348,15 @@ namespace UniMarc
}
}
}
private void button2_Click(object sender, EventArgs e)
{
var item = bs1.Current as MacListItem;
if (item == null) return;
string tSearchText = item.list_name;
string tSearchIDX = item.idx;
var isbn = main.OpenFormInTab(() => new Check_ISBN2(main, tSearchText, tSearchIDX));
isbn.tb_list_name.Enabled = true;
}
}
}

View File

@@ -165,6 +165,9 @@
<metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>154, 17</value>
</metadata>
<metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>154, 17</value>
</metadata>
<metadata name="bs1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>308, 17</value>
</metadata>
@@ -172,7 +175,7 @@
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
vQAADr0BR/uQrQAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
+8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
+4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
@@ -183,7 +186,7 @@
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
vQAADr0BR/uQrQAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
@@ -192,7 +195,7 @@
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
vQAADr0BR/uQrQAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC
@@ -201,7 +204,7 @@
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
vQAADr0BR/uQrQAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6