* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user