=====* ISBN 조회 *=====
Yes24 - 가격 검색 추가. DateTime 버그 수정. 검색시 몇개가 검색됬는지 표출. =====* unimarc *===== - 목록등록 - 머리글에 맞춰 숫자 입력기능 추가 - 목록조회 - 거래처 엔터시 명단이 출력되고 그 상태에서 엔터 입력 시 해당 데이터 선택으로 간주. 데이터 조회창으로 이관. - 목록집계 - 필터링 테스트 코드 삭제 엔터 입력시 검색기능 추가 납품처명 필터링 추가 - 주문관리 - 주문할 때 선택 내용 엑셀로 임시저장 추가 + 양식수정, 엑셀 내용 수정. 임시저장된 파일을 미리 설정된 거래처 주문방법에 따라 팩스/메일로 나뉘어져 보내게 됨. 팩스시 FTP업로드, 바로빌 FAX 전송, 전송결과와 주문수량 주문일자 등 자체 DB에 저장됨. 전송결과를 알아볼수있는 창도 리뉴얼.
This commit is contained in:
@@ -9,6 +9,8 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using WindowsFormsApp1;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace ISBN_Check_test
|
||||
{
|
||||
@@ -84,6 +86,20 @@ namespace ISBN_Check_test
|
||||
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells[0];
|
||||
this.ActiveControl = dataGridView1;
|
||||
}
|
||||
#region 검색갯수 계산
|
||||
private void count_res()
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
int count = dataGridView1.Rows.Count;
|
||||
for(int a= 0; a < count; a++)
|
||||
{
|
||||
string search_data = dataGridView1.Rows[a].Cells["Column1"].Value.ToString();
|
||||
int tmp_count = st.Char_count(search_data, '|');
|
||||
int lcount = tmp_count / 8;
|
||||
dataGridView1.Rows[a].Cells["count"].Value = lcount.ToString();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 알라딘 API
|
||||
/// </summary>
|
||||
@@ -104,7 +120,7 @@ namespace ISBN_Check_test
|
||||
else if (gridview.Rows[a].DefaultCellStyle.BackColor == Color.LightGray)
|
||||
gridview.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
|
||||
|
||||
// insert_By_Aladin(api.Aladin(query, "ISBN13", param), a);
|
||||
insert_By_Aladin(api.Aladin(query, "ISBN13", param), a);
|
||||
try
|
||||
{
|
||||
richTextBox1.Text = api.Aladin(query, "ISBN13", param);
|
||||
@@ -265,8 +281,13 @@ namespace ISBN_Check_test
|
||||
if (data == "") { return; }
|
||||
|
||||
// pubDate형 보기편하게 DateTime형으로 재정리
|
||||
string newstring = String.Format("{0:yyyy/MM/dd}",
|
||||
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
|
||||
string newstring = "";
|
||||
try
|
||||
{
|
||||
newstring = String.Format("{0:yyyy/MM/dd}",
|
||||
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
|
||||
}
|
||||
catch(Exception ex) { MessageBox.Show(data); }
|
||||
|
||||
// 도서 분류 필요한 데이터로 재정리
|
||||
int top = insert[6].IndexOf('>');
|
||||
@@ -344,8 +365,12 @@ namespace ISBN_Check_test
|
||||
|
||||
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");
|
||||
string newstring = "";
|
||||
try
|
||||
{
|
||||
newstring = DateTime.ParseExact(grid[5], "yyyyMMdd", null).ToString("yyyy-MM-dd");
|
||||
}
|
||||
catch { }
|
||||
|
||||
input_api(grid, row, newstring);
|
||||
}
|
||||
@@ -428,6 +453,7 @@ namespace ISBN_Check_test
|
||||
dataGridView1.Rows[idx].Cells["sold_out"].Value = value[7];
|
||||
dataGridView1.Rows[idx].DefaultCellStyle.BackColor = Color.Yellow;
|
||||
}
|
||||
count_res();
|
||||
}
|
||||
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user