=====* unimarc [0.0104] 버전관리 시작 *=====
1. 인쇄 오류 수정 2. DLS복본조사 추가
This commit is contained in:
@@ -23,23 +23,30 @@ namespace ISBN_Check_test
|
||||
}
|
||||
private void Form2_Load(object sender, EventArgs e)
|
||||
{
|
||||
Sort_data();
|
||||
|
||||
|
||||
Sort_data(f1.dataGridView1);
|
||||
|
||||
// 비슷한거 색깔표시
|
||||
same_chk();
|
||||
}
|
||||
private void Sort_data()
|
||||
private void Sort_data(DataGridView f1GridView)
|
||||
{
|
||||
tb_book_name.Text = f1.dataGridView1.Rows[row].Cells["book_name"].Value.ToString();
|
||||
tb_author.Text = f1.dataGridView1.Rows[row].Cells["author"].Value.ToString();
|
||||
tb_book_comp.Text = f1.dataGridView1.Rows[row].Cells["book_comp"].Value.ToString();
|
||||
tb_book_name.Text = f1GridView.Rows[row].Cells["book_name"].Value.ToString();
|
||||
tb_author.Text = f1GridView.Rows[row].Cells["author"].Value.ToString();
|
||||
tb_book_comp.Text = f1GridView.Rows[row].Cells["book_comp"].Value.ToString();
|
||||
|
||||
if (f1.dataGridView1.Rows[row].Cells["price"].Value != null)
|
||||
tb_price.Text = f1.dataGridView1.Rows[row].Cells["price"].Value.ToString();
|
||||
if (f1GridView.Rows[row].Cells["price"].Value != null)
|
||||
tb_price.Text = f1GridView.Rows[row].Cells["price"].Value.ToString();
|
||||
|
||||
else { tb_price.Text = ""; }
|
||||
|
||||
string data = f1.dataGridView1.Rows[row].Cells["Column1"].Value.ToString();
|
||||
string data = f1GridView.Rows[row].Cells["Column1"].Value.ToString();
|
||||
inputGrid(data);
|
||||
}
|
||||
private void inputGrid(string data)
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
|
||||
// 도서명 / 저자 / 출판사 / isbn / 출간일 / 카테고리 / 품절여부
|
||||
string[] tmp = data.Split('|');
|
||||
@@ -53,15 +60,22 @@ namespace ISBN_Check_test
|
||||
if (a % 8 == 3) { grid[3] = tmp[a]; }
|
||||
if (a % 8 == 4) { grid[4] = tmp[a]; }
|
||||
if (a % 8 == 5) { grid[5] = change_Date_type(tmp[a]); }
|
||||
if (a % 8 == 6) { grid[6] = tmp[a]; }
|
||||
if (a % 8 == 6) { grid[6] = Aladin_CategorySort(tmp[a]); }
|
||||
if (a % 8 == 7) { grid[7] = tmp[a]; dataGridView1.Rows.Add(grid); }
|
||||
}
|
||||
}
|
||||
private string change_Date_type(string date)
|
||||
{
|
||||
if (Call_API == "알라딘")
|
||||
return String.Format("{0:yyyy/MM/dd}", DateTime.Parse(date.Remove(date.IndexOf(" G"))));
|
||||
else if (Call_API == "네이버")
|
||||
{
|
||||
try
|
||||
{
|
||||
return String.Format("{0:yyyy/MM/dd}",
|
||||
DateTime.Parse(date.Remove(date.IndexOf(" G"))));
|
||||
}
|
||||
catch { return date; }
|
||||
}
|
||||
if (Call_API == "네이버")
|
||||
try
|
||||
{
|
||||
return DateTime.ParseExact(date, "yyyyMMdd", null).ToString("yyyy-MM-dd");
|
||||
@@ -157,5 +171,49 @@ namespace ISBN_Check_test
|
||||
{
|
||||
rowidx = e.RowIndex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 재검색
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btn_ReSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
string[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
|
||||
"pubDate", "categoryName", "stockStatus", };
|
||||
API api = new API();
|
||||
|
||||
string type = "Title";
|
||||
string query = tb_book_name.Text;
|
||||
|
||||
string aladin = api.Aladin(query, type, param);
|
||||
if (aladin == "") return;
|
||||
|
||||
inputGrid(aladin);
|
||||
}
|
||||
|
||||
string Aladin_CategorySort(string insert)
|
||||
{
|
||||
try
|
||||
{
|
||||
// 도서 분류 필요한 데이터로 재정리
|
||||
int top = insert.IndexOf('>');
|
||||
int mid = insert.IndexOf('>', top + 1);
|
||||
int bot = insert.IndexOf('>', mid + 1);
|
||||
if (bot < 0) { insert = insert.Substring(top + 1); }
|
||||
else { insert = insert.Substring(top + 1, bot - top - 1); }
|
||||
return insert;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return insert;
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
{
|
||||
Skill_Grid sg = new Skill_Grid();
|
||||
sg.Print_Grid_Num(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user