* unimarc

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

TODOLIST
1. 팩스로 전송될 엑셀파일 밑작업마무리 (입력될 파라미터만 적용하면 실사용가능)
2. 알라딘API로 ISBN조회 프로젝트 새로 작업할 것 => 대부분의 작업 완료. 내일 네이버 API연동중 자잘한 버그 수정작업 필요.
This commit is contained in:
SeungHo Yang
2021-03-26 18:48:00 +09:00
parent 40bdcd6e54
commit ed04bc56c3
24 changed files with 655 additions and 94 deletions

105
ISBN_Check_test/Form3.cs Normal file
View File

@@ -0,0 +1,105 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ISBN_Check_test
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void Form3_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
dataGridView1.Rows.Clear();
API api = new API();
// 도서명, 저자, 출판사
string[] ArrayValue = { tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
string[] param = { "title", "author", "publisher", "isbn", "price",
"pubdate", "discount" };
string result = api.Naver(ArrayValue, param);
richTextBox1.Text = result;
input_Grid(result);
}
private void input_Grid(string value)
{
value = value.Replace("<b>", "");
value = value.Replace("</b>", "");
string[] sp_data = value.Split('\t');
string[] grid = { "", "", "", "", "", "", "" };
for(int a = 0; a < sp_data.Length; a++)
{
string[] data = sp_data[a].Split('|');
if (data.Length > 7) {
data[1] += ", " + data[2];
data[2] = data[3];
if(data[4].Contains(" ") == true) {
string[] isbn = data[4].Split(' ');
data[3] = isbn[1];
}
else
data[3] = data[4];
data[4] = data[5];
data[5] = data[6];
if(data[7] == "")
data[6] = "절판";
else
data[6] = data[7];
}
dataGridView1.Rows.Add(data);
}
/*
string[] sp_data = value.Split('|');
string[] grid = { "", "", "", "", "", "", "" };
for(int a= 0; a < sp_data.Length - 1; a++)
{
if (a % 7 == 0) { grid[0] = sp_data[a]; } // 도서명
if (a % 7 == 1) { grid[1] = sp_data[a]; } // 저자
if (a % 7 == 2) { grid[2] = sp_data[a]; } // 출판사
if (a % 7 == 3) {
if (sp_data[a].Contains(" ") == true) {
string[] tmp_isbn = sp_data[a].Split(' ');
sp_data[a] = tmp_isbn[1];
}
grid[3] = sp_data[a];
} // isbn
if (a % 7 == 4) { grid[4] = sp_data[a]; } // 정가
if (a % 7 == 5) { grid[5] = sp_data[a]; } // 출간일
if (a % 7 == 6) {
if (sp_data[a] == "") { sp_data[a] = "절판"; }
grid[6] = sp_data[a]; // 재고?
dataGridView1.Rows.Add(grid);
}
}
*/
}
private void tb_book_name_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter) {
button1_Click(null, null);
}
}
}
}