a. 팩스전송 완료. b. 마크목록 폼 작성중 1. 엑셀반출 기능 추가중 사용 작업중 2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료) 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김. 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료. 2-3. 저장기능 완료. (04.14 체크해볼것) * ISBN 체크 프로그램 - ★작업완료★ a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것. -- 작업중 -- ISBN 체크 프로그램 => 본프로그램에 이식중. ㄴ> 코드는 다 옮겼으나 기존 사용하던 방식과 조금 달라서 버그발생 가능성 있음. ㄴ> 버그 체크 계속 해볼것. 21-04-15 -- 완료 -- 1. 주문관리 팩스연동 완료 2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료. 3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함.
89 lines
3.1 KiB
C#
89 lines
3.1 KiB
C#
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[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
|
|
"pubDate", "categoryName" };
|
|
richTextBox1.Text = api.Aladin_lookup(tb_author.Text, "ISBN13", param);
|
|
string[] ArrayValue = { tb_book_name.Text, tb_author.Text, tb_book_comp.Text };
|
|
|
|
// 도서명 / 저자 / 출판사 / isbn / 정가
|
|
// 발행일 / 도서분류 / 재고
|
|
// string[] param = { "title", "authors", "publisher", "isbn", "price",
|
|
// "datetime", "status" };
|
|
// string result = api.Daum(ArrayValue, param);
|
|
// richTextBox1.Text = result;
|
|
// input_Grid(result);
|
|
}
|
|
private void input_Grid(string value)
|
|
{
|
|
string[] sp_data = value.Split('|');
|
|
|
|
string[] grid = { "", "", "", "", "", "", "" };
|
|
|
|
for (int a = 0; a < sp_data.Length; 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) {
|
|
string[] tmp_isbn = sp_data[a].Split('|');
|
|
if (tmp_isbn.Length < 2)
|
|
grid[3] = sp_data[a].Replace(" ", "");
|
|
|
|
else
|
|
grid[3] = tmp_isbn[1]; } // isbn
|
|
if (a % 7 == 4) { grid[4] = sp_data[a]; } // 가격
|
|
if (a % 7 == 5) {
|
|
sp_data[a] = sp_data[a].Substring(0, sp_data[a].IndexOf('T'));
|
|
grid[5] = sp_data[a]; } // 출간일
|
|
if (a % 7 == 6) { 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);
|
|
}
|
|
}
|
|
|
|
private void label1_Click(object sender, EventArgs e)
|
|
{
|
|
// yyyyMMddhhmmss
|
|
|
|
string tmp = "yyyyMMddhhmmss";
|
|
string msg = string.Empty;
|
|
|
|
msg += tmp.Substring(0, 4) + "\n" + tmp.Substring(4, 2) + "\n" + tmp.Substring(6, 2) + "\n" + tmp.Substring(8,2) + "\n" + tmp.Substring(10,2) + "\n" + tmp.Substring(12,2);
|
|
|
|
MessageBox.Show(msg);
|
|
}
|
|
}
|
|
}
|