* unimarc

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

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

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

-- 완료 --
1. 주문관리 팩스연동 완료
2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료.
3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
This commit is contained in:
SeungHo Yang
2021-04-16 18:36:37 +09:00
parent c6b4702a79
commit 289ea93e11
31 changed files with 477 additions and 408 deletions

View File

@@ -21,7 +21,7 @@ namespace ISBN_Check_test
}
private void Form1_Load(object sender, EventArgs e)
{
string[] api_list = { "알라딘", "네이버", "다음" };
string[] api_list = { "다음", "네이버", "알라딘" };
cb_api.Items.AddRange(api_list);
}
private void button2_Click(object sender, EventArgs e)
@@ -60,13 +60,13 @@ namespace ISBN_Check_test
switch (cb_api.SelectedIndex)
{
case 0:
Aladin_API(dataGridView1, start, end);
Daum_API(dataGridView1, start, end);
break;
case 1:
Naver_API(dataGridView1, start, end);
break;
case 2:
Daum_API(dataGridView1, start, end);
Aladin_API(dataGridView1, start, end);
break;
}
@@ -90,39 +90,21 @@ namespace ISBN_Check_test
/// <param name="gridview"></param>
private void Aladin_API(DataGridView gridview, int start, int end)
{
string temp = string.Empty;
string type = string.Empty;
string query = string.Empty;
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
string[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
"pubDate", "categoryName", "stockStatus" };
"pubDate", "categoryName" };
API api = new API();
switch (cb_filter.SelectedIndex)
{
case 0: // 제목+저자
type = "Keyword";
break;
case 1: // 제목
type = "Title";
break;
case 2: // 저자
type = "Author";
break;
case 3: // 출판사
type = "Publisher";
break;
}
for (int a = start; a < end; a++)
{
process_Sub();
string query = dataGridView1.Rows[a].Cells["isbn"].Value.ToString();
if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.Yellow)
continue;
else if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.LightGray)
gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
query = Set_query(type, a);
insert_By_Aladin(api.Aladin(query, type, param), a);
insert_By_Aladin(api.Aladin(query, "ISBN13", param), a);
}
}
private void Naver_API(DataGridView gridview, int start, int end)
@@ -287,10 +269,16 @@ namespace ISBN_Check_test
if (bot < 0) { insert[6] = insert[6].Substring(top + 1); }
else { insert[6] = insert[6].Substring(top + 1, bot - top - 1); }
if (insert.Length > 10)
return;
input_api(insert, row, newstring);
input_api_aladin(insert, row, newstring);
}
void input_api_aladin(string[] data, int row, string date)
{
dataGridView1.Rows[row].Cells["book_name"].Value = data[0];
dataGridView1.Rows[row].Cells["author"].Value = data[1];
dataGridView1.Rows[row].Cells["book_comp"].Value = data[2];
dataGridView1.Rows[row].Cells["price2"].Value = data[4];
dataGridView1.Rows[row].Cells["pubDate"].Value = date;
dataGridView1.Rows[row].Cells["category"].Value = data[6];
}
void insert_By_Naver(string value, int row)
{
@@ -486,9 +474,9 @@ namespace ISBN_Check_test
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);
if (cb_api.SelectedIndex == 0){
string[] daum = { "도서명", "저자", "출판사" };
cb_filter.Items.AddRange(daum);
}
else if (cb_api.SelectedIndex == 1) {
string[] naver = { "도서명", "저자", "출판사",
@@ -497,8 +485,29 @@ namespace ISBN_Check_test
cb_filter.Items.AddRange(naver);
}
else if (cb_api.SelectedIndex == 2) {
string[] daum = { "도서명", "저자", "출판사" };
cb_filter.Items.AddRange(daum);
string[] aladin = { "별치 조사" };
cb_filter.Items.AddRange(aladin);
}
Must_Col(cb_api.SelectedIndex);
}
private void Must_Col(int cb_idx)
{
if (cb_idx == 0 || cb_idx == 1)
{
dataGridView1.Columns["isbn"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["book_name"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns["author"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns["book_comp"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
}
else if (cb_idx == 2)
{
dataGridView1.Columns["isbn"].DefaultCellStyle.BackColor = Color.FromArgb(234, 226, 202);
dataGridView1.Columns["book_name"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["author"].DefaultCellStyle.BackColor = Color.Empty;
dataGridView1.Columns["book_comp"].DefaultCellStyle.BackColor = Color.Empty;
}
else {
return;
}
}
}