=====* unimarc *=====
------------------------ =====* ISBN 체크 프로그램 *===== ★작업완료★ a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것. ------------------------ ===== 작업중 ===== b. 마크목록 폼 작성중 1. 엑셀반출 기능 추가중 사용 작업대기중 ===== 완료 ===== 1. 주문관리 팩스연동 완료 2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료. 3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함. 4. 데이터베이스 내 이미지URL을 가져오는작업 완료 ISBN 체크 프로그램 => 본프로그램에 이식중. ㄴ> 코드는 다 옮겼으나 기존 사용하던 방식과 조금 달라서 버그발생 가능성 있음. ㄴ> 버그 체크 계속 해볼것. 21-04-15 ㄴ> 21_04_20 버그 없음. 2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료) 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김. 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료. 2-3. 저장기능 완료. (04.14 체크해볼것)
This commit is contained in:
@@ -55,7 +55,7 @@ namespace WindowsFormsApp1.Mac
|
||||
string[] search_col = { compidx, list_name };
|
||||
string search_data = "`header`, `num`, `isbn`, `book_name`, `author`, `book_comp`, " +
|
||||
"`count`, `pay`, `total`, `import`, `price`, " +
|
||||
"`etc`, `pubDate`, `persent`, `category`";
|
||||
"`etc`, `pubDate`, `persent`, `category`, `image_url`";
|
||||
|
||||
string tmp_data = db.More_DB_Search("Obj_List_Book", search_tbl, search_col, search_data);
|
||||
string[] data = tmp_data.Split('|');
|
||||
@@ -170,7 +170,7 @@ namespace WindowsFormsApp1.Mac
|
||||
// 도서명 / 저자 / 출판사 / isbn / 정가
|
||||
// 발행일 / 도서분류 / 재고
|
||||
string[] param = { "title", "author", "publisher", "isbn", "price",
|
||||
"pubdate", "discount"};
|
||||
"pubdate", "discount", "image"};
|
||||
API api = new API();
|
||||
List<string> L_type = new List<string>();
|
||||
List<string> L_Array = new List<string>();
|
||||
@@ -246,7 +246,7 @@ namespace WindowsFormsApp1.Mac
|
||||
private void Daum_API(DataGridView gridview)
|
||||
{
|
||||
string[] param = { "title", "authors", "publisher", "isbn", "price",
|
||||
"datetime", "status" };
|
||||
"datetime", "status", "thumbnail" };
|
||||
string type = string.Empty;
|
||||
string query = string.Empty;
|
||||
API api = new API();
|
||||
@@ -319,7 +319,7 @@ namespace WindowsFormsApp1.Mac
|
||||
value = value.Replace("</b>", "");
|
||||
|
||||
string[] sp_data = value.Split('\t');
|
||||
string[] grid = { "", "", "", "", "", "", "", "" };
|
||||
string[] grid = { "", "", "", "", "", "", "", "", "" };
|
||||
|
||||
#region 분류작업
|
||||
for (int a = 0; a < sp_data.Length - 1; a++)
|
||||
@@ -328,27 +328,29 @@ namespace WindowsFormsApp1.Mac
|
||||
int idx = data.Length - 2;
|
||||
grid[0] = data[0];
|
||||
grid[1] = data[1];
|
||||
for (int b = 2; b < idx - 4; b++)
|
||||
for (int b = 2; b < idx - 5; b++)
|
||||
{
|
||||
grid[1] += ", " + data[b];
|
||||
}
|
||||
grid[2] = data[idx - 4];
|
||||
if (data[idx - 3].Contains(" ") == true)
|
||||
grid[2] = data[idx - 5];
|
||||
if (data[idx - 4].Contains(" ") == true)
|
||||
{
|
||||
string[] isbn = data[idx - 3].Split(' ');
|
||||
string[] isbn = data[idx - 4].Split(' ');
|
||||
grid[3] = isbn[1];
|
||||
}
|
||||
else
|
||||
grid[3] = data[idx - 3];
|
||||
grid[3] = data[idx - 4];
|
||||
|
||||
grid[4] = data[idx - 2];
|
||||
grid[5] = data[idx - 1];
|
||||
grid[4] = data[idx - 3];
|
||||
grid[5] = data[idx - 2];
|
||||
|
||||
if (data[idx] == "")
|
||||
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;
|
||||
}
|
||||
@@ -379,7 +381,7 @@ namespace WindowsFormsApp1.Mac
|
||||
if (value == "") return;
|
||||
|
||||
string[] sp_data = value.Split('\n');
|
||||
string[] grid = { "", "", "", "", "", "", "", "" };
|
||||
string[] grid = { "", "", "", "", "", "", "", "", "" };
|
||||
|
||||
for (int a = 0; a < sp_data.Length - 1; a++)
|
||||
{
|
||||
@@ -397,6 +399,7 @@ namespace WindowsFormsApp1.Mac
|
||||
grid[4] = data[4];
|
||||
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;
|
||||
@@ -445,6 +448,7 @@ namespace WindowsFormsApp1.Mac
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -456,9 +460,9 @@ namespace WindowsFormsApp1.Mac
|
||||
string[] grid = { "", "", "", "", "",
|
||||
"", "", "", "", "",
|
||||
"", "", "", "", "",
|
||||
"", "", "" };
|
||||
"", "", "", "" };
|
||||
|
||||
int sdc = 15; // search_data_count
|
||||
int sdc = 16; // search_data_count
|
||||
for (int a = 0; a < data.Length; a++)
|
||||
{
|
||||
if (a % sdc == 1) { grid[0] = data[a-1] + " " + data[a]; } // 번호
|
||||
@@ -474,7 +478,8 @@ namespace WindowsFormsApp1.Mac
|
||||
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 == 14) { grid[16] = data[a]; } // 도서분류
|
||||
if (a % sdc == 15) { grid[18] = data[a]; // 도서 URL
|
||||
dataGridView1.Rows.Add(grid); }
|
||||
}
|
||||
for(int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
@@ -508,11 +513,12 @@ namespace WindowsFormsApp1.Mac
|
||||
if (dataGridView1.Rows[a].Cells["isbn"].Value.ToString() == "" ||
|
||||
dataGridView1.Rows[a].Cells["price"].Value.ToString() == "" ||
|
||||
dataGridView1.Rows[a].Cells["pubDate"].Value.ToString() == "") { continue; }
|
||||
string[] Edit_tbl = { "isbn", "price", "pubDate", "category" };
|
||||
string[] Edit_tbl = { "isbn", "price", "pubDate", "category", "image_url" };
|
||||
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["category"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["image"].Value.ToString() };
|
||||
string[] Search_tbl = { "book_name", "author", "book_comp", "list_name" };
|
||||
string[] Search_col = {dataGridView1.Rows[a].Cells["book_name"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["author"].Value.ToString(),
|
||||
@@ -529,7 +535,7 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (rowidx > dataGridView1.Rows.Count) return;
|
||||
if (rowidx >= dataGridView1.Rows.Count) return;
|
||||
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null ||
|
||||
dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString() == "") {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user