* unimarc

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

* ISBN 체크 프로그램 - ★작업완료★
 a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것.

-- 완료 --
1. 주문관리 팩스연동 완료
2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료.
3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
This commit is contained in:
SeungHo Yang
2021-04-13 18:40:21 +09:00
parent ad0c06ac05
commit 2fe9185eaa
25 changed files with 151 additions and 137 deletions

View File

@@ -116,6 +116,7 @@ namespace ISBN_Check_test
}
for (int a = start; a < end; a++)
{
process_Sub();
if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.Yellow)
continue;
else if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.LightGray)
@@ -123,7 +124,6 @@ namespace ISBN_Check_test
query = Set_query(type, a);
insert_By_Aladin(api.Aladin(query, type, param), a);
process_Sub();
}
}
private void Naver_API(DataGridView gridview, int start, int end)
@@ -272,17 +272,12 @@ namespace ISBN_Check_test
}
bool[] chk = { false, false, false }; // 도서명 저자 출판사 체크.
string book_name = dataGridView1.Rows[row].Cells["book_name"].Value.ToString();
string author = dataGridView1.Rows[row].Cells["author"].Value.ToString();
string book_comp = dataGridView1.Rows[row].Cells["book_comp"].Value.ToString();
string[] insert = data.Split('|');
string newstring = string.Empty;
if (data == "") { return; }
// pubDate형 보기편하게 DateTime형으로 재정리
newstring = String.Format("{0:yyyy/MM/dd}",
string newstring = String.Format("{0:yyyy/MM/dd}",
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
// 도서 분류 필요한 데이터로 재정리
@@ -295,19 +290,7 @@ namespace ISBN_Check_test
if (insert.Length > 10)
return;
if (insert[0] == book_name) { chk[0] = true; }
if (insert[1].Contains(author) == true) { chk[1] = true; }
if (insert[2] == book_comp) { chk[2] = true; }
if (chk[0] == true && chk[1] == true && chk[2] == true)
{
dataGridView1.Rows[row].Cells["isbn"].Value = insert[3];
dataGridView1.Rows[row].Cells["price2"].Value = insert[4];
dataGridView1.Rows[row].Cells["pubDate"].Value = newstring;
dataGridView1.Rows[row].Cells["category"].Value = insert[6];
dataGridView1.Rows[row].Cells["sold_out"].Value = insert[7];
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
}
input_marc(insert, row, newstring);
}
void insert_By_Naver(string value, int row)
{
@@ -368,25 +351,9 @@ namespace ISBN_Check_test
if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; }
dataGridView1.Rows[row].Selected = true;
bool[] chk = { false, false, false };
string book_name = dataGridView1.Rows[row].Cells["book_name"].Value.ToString();
string author = dataGridView1.Rows[row].Cells["author"].Value.ToString();
string book_comp = dataGridView1.Rows[row].Cells["book_comp"].Value.ToString();
string newstring = DateTime.ParseExact(grid[5], "yyyyMMdd", null).ToString("yyyy-MM-dd");
if (grid[0] == book_name) chk[0] = true;
if (grid[1].Contains(author) == true) chk[1] = true;
if (grid[2] == book_comp) chk[2] = true;
if (chk[0] == true && chk[1] == true && chk[2] == true)
{
dataGridView1.Rows[row].Cells["isbn"].Value = grid[3];
dataGridView1.Rows[row].Cells["price2"].Value = grid[4];
dataGridView1.Rows[row].Cells["pubDate"].Value = newstring;
dataGridView1.Rows[row].Cells["category"].Value = grid[6];
dataGridView1.Rows[row].Cells["sold_out"].Value = grid[7];
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
}
input_marc(grid, row, newstring);
}
void insert_By_Daum(string value, int row)
{
@@ -425,23 +392,42 @@ namespace ISBN_Check_test
dataGridView1.Rows[row].Selected = true;
bool[] chk = { false, false, false };
string book_name = dataGridView1.Rows[row].Cells["book_name"].Value.ToString();
string author = dataGridView1.Rows[row].Cells["author"].Value.ToString();
string book_comp = dataGridView1.Rows[row].Cells["book_comp"].Value.ToString();
string newstring = DateTime.ParseExact(grid[5], "yyyyMMdd", null).ToString("yyyy-MM-dd");
if (grid[0] == book_name) chk[0] = true;
if (grid[1] == author) chk[1] = true;
if (grid[2] == book_comp) chk[2] = true;
input_marc(grid, row, newstring);
}
/// <summary>
/// API에서 가져온 데이터가 요구한 데이터와 일치하는지 알아보는 함수
/// </summary>
/// <param name="value">데이터</param>
/// <param name="idx">Grid의 row인덱스번호</param>
/// <param name="date">날짜</param>
void input_marc(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;
if (value[1].Contains(author)==true) chk[1] = true;
else if (author.Contains(value[1])==true) chk[1] = true;
else if (value[1] == author) chk[1] = true;
if (value[2].Contains(book_comp) == true) chk[2] = true;
else if (book_comp.Contains(value[2]) == true) chk[2] = true;
else if (value[2] == book_comp) chk[2] = true;
if (chk[0] == true && chk[1] == true && chk[2] == true)
{
dataGridView1.Rows[row].Cells["isbn"].Value = grid[3];
dataGridView1.Rows[row].Cells["price2"].Value = grid[4];
dataGridView1.Rows[row].Cells["pubDate"].Value = newstring;
dataGridView1.Rows[row].Cells["category"].Value = grid[6];
dataGridView1.Rows[row].Cells["sold_out"].Value = grid[7];
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
dataGridView1.Rows[idx].Cells["isbn"].Value = value[3];
dataGridView1.Rows[idx].Cells["price2"].Value = value[4];
dataGridView1.Rows[idx].Cells["pubDate"].Value = date;
dataGridView1.Rows[idx].Cells["category"].Value = value[6];
dataGridView1.Rows[idx].Cells["sold_out"].Value = value[7];
dataGridView1.Rows[idx].DefaultCellStyle.BackColor = Color.Yellow;
}
}
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)

View File

@@ -310,7 +310,6 @@ namespace ISBN_Check_test
}
}
}
((DataGridView)sender).Rows.Add();
}
}
}

View File

@@ -16,7 +16,7 @@ namespace ISBN_Check_test
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form3());
Application.Run(new Form1());
}
}
}

View File

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

View File

@@ -3,7 +3,7 @@
<asmv1:assemblyIdentity name="ISBN_Check_test.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="ISBN_Check_test" version="1.0.7769.19175" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.7773.31453" language="neutral" processorArchitecture="msil" />
<commandLine file="ISBN_Check_test.exe" parameters="" />
</entryPoint>
<trustInfo>
@@ -42,14 +42,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="43008">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7769.19175" language="neutral" processorArchitecture="msil" />
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="42496">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7773.31453" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>sJtRJUuCXQIaz6twsCpewElVltlc6NpvIbx0LSSzeLg=</dsig:DigestValue>
<dsig:DigestValue>stzHcifpPhqkwUOTrlsIYPoH0AQvHydDZp7ZZczJhpk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@@ -74,13 +74,13 @@
<dsig:DigestValue>R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=</dsig:DigestValue>
</hash>
</file>
<file name="ISBN_Check_test.pdb" size="69120">
<file name="ISBN_Check_test.pdb" size="67072">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>VMPQHKSieXevI1Q5Ythv36A/XEljFScABlMsffq4u4Y=</dsig:DigestValue>
<dsig:DigestValue>xynw3Nbvs3kZvoiRFHpODME9jYRpL6OxWToRCRPmUZg=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

View File

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

View File

@@ -3,7 +3,7 @@
<asmv1:assemblyIdentity name="ISBN_Check_test.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="msil" type="win32" />
<application />
<entryPoint>
<assemblyIdentity name="ISBN_Check_test" version="1.0.7769.19175" language="neutral" processorArchitecture="msil" />
<assemblyIdentity name="ISBN_Check_test" version="1.0.7773.31453" language="neutral" processorArchitecture="msil" />
<commandLine file="ISBN_Check_test.exe" parameters="" />
</entryPoint>
<trustInfo>
@@ -42,14 +42,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="43008">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7769.19175" language="neutral" processorArchitecture="msil" />
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="ISBN_Check_test.exe" size="42496">
<assemblyIdentity name="ISBN_Check_test" version="1.0.7773.31453" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>sJtRJUuCXQIaz6twsCpewElVltlc6NpvIbx0LSSzeLg=</dsig:DigestValue>
<dsig:DigestValue>stzHcifpPhqkwUOTrlsIYPoH0AQvHydDZp7ZZczJhpk=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
@@ -74,13 +74,13 @@
<dsig:DigestValue>R+Wg8QGvQVHX8T0ta/qbhH1bXkqY0fRnS3wBV3J0bN8=</dsig:DigestValue>
</hash>
</file>
<file name="ISBN_Check_test.pdb" size="69120">
<file name="ISBN_Check_test.pdb" size="67072">
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>VMPQHKSieXevI1Q5Ythv36A/XEljFScABlMsffq4u4Y=</dsig:DigestValue>
<dsig:DigestValue>xynw3Nbvs3kZvoiRFHpODME9jYRpL6OxWToRCRPmUZg=</dsig:DigestValue>
</hash>
</file>
</asmv1:assembly>

View File

@@ -15,6 +15,7 @@ namespace ExcelTest
public string find;
public string change;
public string call = "";
private string data008 = string.Empty;
string tbName = "";
public int checkCout = 0;
public bool gridViewChk = false; // True / False
@@ -997,6 +998,7 @@ namespace ExcelTest
if (check == false) { ArrayChar[idx] = '0'; }
else if(check == true) { ArrayChar[idx] = '1'; }
text008.Text = new string(ArrayChar);
Apply_Main_marc();
}
/// <summary>
/// 색상 변경함수
@@ -1991,6 +1993,7 @@ namespace ExcelTest
string result = TagNum[a].Substring(0, 3);
if (TagNum[a].Substring(0,3) == "008") {
text008.Text = field[a].Replace("▲", "");
data008 = text008.Text;
}
else {
}
@@ -2011,8 +2014,11 @@ namespace ExcelTest
string text = text008.Text;
string comboName = ((ComboBox)sender).Name;
int comboIdx = ((ComboBox)sender).SelectedIndex;
text008.Text = tag008.combo_Change(text, comboName, comboIdx);
Apply_Main_marc();
// 입력일자 (00-05)
// 발행년유형 (6)
// 발행년1 (07-10)
@@ -2037,6 +2043,12 @@ namespace ExcelTest
// 언어 (35-37) v
// 한국정부기관부호 (38-39)
}
private void Apply_Main_marc()
{
string text = text008.Text;
richTextBox1.Text = richTextBox1.Text.Replace(data008, text);
data008 = text;
}
private void col008res_TextChanged(object sender, EventArgs e)
{
if (text008.Text.Length < 3) { return; }
@@ -2059,6 +2071,19 @@ namespace ExcelTest
}
text = new string(textArray);
text008.Text = text;
Apply_Main_marc();
}
private void input_date_ValueChanged(object sender, EventArgs e)
{
string date = input_date.Value.ToString();
date = date.Substring(0, 10);
date = date.Replace("-", "");
date = date.Remove(0, 2);
text008.Text = text008.Text.Remove(0, 6);
text008.Text = date + text008.Text;
Apply_Main_marc();
}
}
}

View File

@@ -142,6 +142,13 @@
this.Btn_Helper = new System.Windows.Forms.Button();
this.Btn_interlock = new System.Windows.Forms.Button();
this.List_Book = new System.Windows.Forms.DataGridView();
this.btn_Save = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.text008 = new System.Windows.Forms.TextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_close = new System.Windows.Forms.Button();
this.input_date = new System.Windows.Forms.DateTimePicker();
this.list_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -151,13 +158,6 @@
this.marc_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.db_marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_Save = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.text008 = new System.Windows.Forms.TextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_close = new System.Windows.Forms.Button();
this.input_date = new System.Windows.Forms.DateTimePicker();
((System.ComponentModel.ISupportInitialize)(this.GridView020)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.GridView246)).BeginInit();
this.panel1.SuspendLayout();
@@ -1238,67 +1238,6 @@
this.List_Book.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.List_Book_CellContentClick);
this.List_Book.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView8_KeyDown);
//
// list_idx
//
this.list_idx.HeaderText = "list_idx";
this.list_idx.Name = "list_idx";
this.list_idx.ReadOnly = true;
this.list_idx.Width = 30;
//
// ISBN13
//
this.ISBN13.HeaderText = "ISBN13";
this.ISBN13.Name = "ISBN13";
this.ISBN13.ReadOnly = true;
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.ReadOnly = true;
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
this.author.ReadOnly = true;
this.author.Width = 50;
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
this.book_comp.ReadOnly = true;
this.book_comp.Width = 50;
//
// pay
//
this.pay.HeaderText = "정가";
this.pay.Name = "pay";
this.pay.ReadOnly = true;
this.pay.Width = 50;
//
// marc_idx
//
this.marc_idx.HeaderText = "marc_idx";
this.marc_idx.Name = "marc_idx";
this.marc_idx.ReadOnly = true;
this.marc_idx.Width = 30;
//
// db_marc
//
this.db_marc.HeaderText = "marc";
this.db_marc.Name = "db_marc";
this.db_marc.ReadOnly = true;
this.db_marc.Visible = false;
//
// grade
//
this.grade.HeaderText = "등급";
this.grade.Name = "grade";
this.grade.ReadOnly = true;
this.grade.Visible = false;
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(1233, 39);
@@ -1384,6 +1323,7 @@
//
this.text008.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.text008.Location = new System.Drawing.Point(60, 4);
this.text008.MaxLength = 40;
this.text008.Name = "text008";
this.text008.Size = new System.Drawing.Size(356, 22);
this.text008.TabIndex = 204;
@@ -1416,12 +1356,76 @@
this.input_date.Name = "input_date";
this.input_date.Size = new System.Drawing.Size(91, 21);
this.input_date.TabIndex = 220;
this.input_date.ValueChanged += new System.EventHandler(this.input_date_ValueChanged);
//
// list_idx
//
this.list_idx.HeaderText = "list_idx";
this.list_idx.Name = "list_idx";
this.list_idx.ReadOnly = true;
this.list_idx.Visible = false;
this.list_idx.Width = 30;
//
// ISBN13
//
this.ISBN13.HeaderText = "ISBN13";
this.ISBN13.Name = "ISBN13";
this.ISBN13.ReadOnly = true;
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.ReadOnly = true;
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
this.author.ReadOnly = true;
this.author.Width = 50;
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
this.book_comp.ReadOnly = true;
this.book_comp.Width = 50;
//
// pay
//
this.pay.HeaderText = "정가";
this.pay.Name = "pay";
this.pay.ReadOnly = true;
this.pay.Width = 50;
//
// marc_idx
//
this.marc_idx.HeaderText = "marc_idx";
this.marc_idx.Name = "marc_idx";
this.marc_idx.ReadOnly = true;
this.marc_idx.Visible = false;
this.marc_idx.Width = 30;
//
// db_marc
//
this.db_marc.HeaderText = "marc";
this.db_marc.Name = "db_marc";
this.db_marc.ReadOnly = true;
this.db_marc.Visible = false;
//
// grade
//
this.grade.HeaderText = "등급";
this.grade.Name = "grade";
this.grade.ReadOnly = true;
this.grade.Visible = false;
//
// Marc
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1660, 753);
this.ClientSize = new System.Drawing.Size(1339, 753);
this.Controls.Add(this.input_date);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
@@ -1603,14 +1607,14 @@
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.DateTimePicker input_date;
private System.Windows.Forms.DataGridViewTextBoxColumn marc_idx;
private System.Windows.Forms.DataGridViewTextBoxColumn list_idx;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN13;
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 pay;
private System.Windows.Forms.DataGridViewTextBoxColumn marc_idx;
private System.Windows.Forms.DataGridViewTextBoxColumn db_marc;
private System.Windows.Forms.DataGridViewTextBoxColumn grade;
private System.Windows.Forms.DataGridViewTextBoxColumn list_idx;
}
}