* unimarc

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

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

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

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

View File

@@ -23,7 +23,6 @@ namespace ISBN_Check_test
{
string[] api_list = { "알라딘", "네이버", "다음" };
cb_api.Items.AddRange(api_list);
}
private void button2_Click(object sender, EventArgs e)
{
@@ -140,11 +139,13 @@ namespace ISBN_Check_test
{
L_type.Clear();
L_Array.Clear();
process_Sub();
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;
#region
switch (cb_filter.SelectedIndex)
{
case 0:
@@ -191,13 +192,13 @@ namespace ISBN_Check_test
L_Array.Add(gridview.Rows[a].Cells["author"].Value.ToString());
L_Array.Add(gridview.Rows[a].Cells["book_comp"].Value.ToString());
break;
} // 필터 적용
}
#endregion
string[] arrayType = L_type.ToArray();
string[] arrayValue = L_Array.ToArray();
string result = api.Naver(arrayValue, arrayType, param);
insert_By_Naver(result, a);
process_Sub();
Thread.Sleep(700);
}
}
@@ -211,6 +212,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)
@@ -235,7 +237,6 @@ namespace ISBN_Check_test
string result = api.Daum(query, type, param);
richTextBox1.Text = result;
insert_By_Daum(result, a);
process_Sub();
}
}
private void process_Sub()
@@ -271,7 +272,6 @@ namespace ISBN_Check_test
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
}
bool[] chk = { false, false, false }; // 도서명 저자 출판사 체크.
string[] insert = data.Split('|');
if (data == "") { return; }
@@ -290,7 +290,7 @@ namespace ISBN_Check_test
if (insert.Length > 10)
return;
input_marc(insert, row, newstring);
input_api(insert, row, newstring);
}
void insert_By_Naver(string value, int row)
{
@@ -346,14 +346,14 @@ namespace ISBN_Check_test
}
#endregion
if (sp_data.Length > 1) return;
if (sp_data.Length > 10) return;
if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; }
dataGridView1.Rows[row].Selected = true;
string newstring = DateTime.ParseExact(grid[5], "yyyyMMdd", null).ToString("yyyy-MM-dd");
input_marc(grid, row, newstring);
input_api(grid, row, newstring);
}
void insert_By_Daum(string value, int row)
{
@@ -379,22 +379,23 @@ namespace ISBN_Check_test
grid[3] = tmp_isbn[1];
grid[4] = data[4];
grid[5] = data[5].Substring(0, data[5].IndexOf('T'));
grid[5] = data[5].Substring(0, 10);
grid[7] = data[6];
dataGridView1.Rows[row].Cells["Column1"].Value += string.Join("|", grid) + "|";
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
}
if (sp_data.Length > 1) return;
if (sp_data.Length > 10) return;
if (row > 0) dataGridView1.Rows[row - 1].Selected = false;
dataGridView1.Rows[row].Selected = true;
bool[] chk = { false, false, false };
string newstring = DateTime.ParseExact(grid[5], "yyyyMMdd", null).ToString("yyyy-MM-dd");
// string newstring = DateTime.ParseExact(grid[5], "yyyyMMdd", null).ToString("yyyy-MM-dd");
string newstring = grid[5];
input_marc(grid, row, newstring);
input_api(grid, row, newstring);
}
/// <summary>
/// API에서 가져온 데이터가 요구한 데이터와 일치하는지 알아보는 함수
@@ -402,7 +403,7 @@ namespace ISBN_Check_test
/// <param name="value">데이터</param>
/// <param name="idx">Grid의 row인덱스번호</param>
/// <param name="date">날짜</param>
void input_marc(string[] value, int idx, string date)
void input_api(string[] value, int idx, string date)
{
bool[] chk = { false, false, false };
@@ -420,8 +421,8 @@ namespace ISBN_Check_test
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)
{
if (chk[0] == true && chk[1] == true && chk[2] == true) {
dataGridView1.Rows[idx].Cells["isbn"].Value = value[3];
dataGridView1.Rows[idx].Cells["price2"].Value = value[4];
dataGridView1.Rows[idx].Cells["pubDate"].Value = date;