=====* unimarc *=====
------------------------ =====* ISBN 체크 프로그램 *===== ★작업완료★ a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것. ------------------------ ===== 작업중 ===== 목록집계 폼 재 수정작업 완료 - 확인 및 수정 필요. ===== 보류 ===== b. 마크목록 폼 작성중 1. 엑셀반출 기능 추가중 사용 작업대기중 c. 마크 반입 폼 수정중 1. 불러오기는 되나 저장 기능이 필요함. ===== 완료 ===== 1. 주문관리 팩스연동 완료 2. 전송된 팩스 확인 작업개시, 이메일 전송모듈 수정완료. 3. 주문관리에서 주문처와 목록 검색하는 폼 검색 모듈도 재수정 완료함. 4. 데이터베이스 내 이미지URL을 가져오는작업 완료 ISBN 체크 프로그램 => 본프로그램에 이식중. ㄴ> 코드는 다 옮겼으나 기존 사용하던 방식과 조금 달라서 버그발생 가능성 있음. ㄴ> 버그 체크 계속 해볼것. 21-04-15 ㄴ> 21_04_20 버그 없음. 2. 마크편집 폼 수정 중 (마크 반출 test프로젝트 진행완료, 본 프로젝트에 적용중. / 저장기능활성화 작업완료) 2-1. 기존의 칸채우기에서 예상되지 못한 버그가 발생하여 칸채우기 숨김. 2-2. 008태크 재배치 => TextBox에 적용완료. 변경사항 메모장으로 넘기는 작업 완료. 2-3. 저장기능 완료. (04.14 체크해볼것 - 완료) 주문관리 작업중 (DataGridView 주문처 엔터키 입력시 검색되게끔 하는 코드작성중) - 21.04.27 완료
This commit is contained in:
		| @@ -19,6 +19,7 @@ namespace WindowsFormsApp1.Delivery | ||||
|         Main main; | ||||
|         string form_call; | ||||
|         public string call_base; | ||||
|         public int grididx; | ||||
|         public string compidx; | ||||
|         public List_Lookup() | ||||
|         { | ||||
| @@ -69,9 +70,9 @@ namespace WindowsFormsApp1.Delivery | ||||
|             ps.ToPage = 13; | ||||
|  | ||||
|             // 여백 설정 | ||||
|             printDocument1.DefaultPageSettings.Margins.Top = 10; | ||||
|             printDocument1.DefaultPageSettings.Margins.Left = 10; | ||||
|             printDocument1.DefaultPageSettings.Margins.Right = 10; | ||||
|             printDocument1.DefaultPageSettings.Margins.Top = 10; | ||||
|             printDocument1.DefaultPageSettings.Margins.Bottom = 10; | ||||
|  | ||||
|             // 용지 방향 | ||||
| @@ -93,6 +94,9 @@ namespace WindowsFormsApp1.Delivery | ||||
|         } | ||||
|         private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) | ||||
|         { | ||||
|             if (dataGridView1.Rows.Count < 1) { | ||||
|                 MessageBox.Show("인쇄할 목록이 없습니다!"); | ||||
|                 return; } | ||||
|             int dialogWidth = 528;      // 페이지 전체 넓이 | ||||
|  | ||||
|             StringFormat sf = new StringFormat(); | ||||
| @@ -174,6 +178,7 @@ namespace WindowsFormsApp1.Delivery | ||||
|             // 조회 기능 | ||||
|             mk_grid(); | ||||
|             res_total(); | ||||
|             Column_Text_Color(); | ||||
|         } | ||||
|         private void res_total() | ||||
|         { | ||||
| @@ -258,19 +263,19 @@ namespace WindowsFormsApp1.Delivery | ||||
|         { | ||||
|             dataGridView1.Rows.Clear(); | ||||
|             string list = cb_list_name.Text; | ||||
|             string area = "`header`, `num`, `book_name`, `author`, `book_comp`, " + | ||||
|             string area = "`idx`, `header`, `num`, `book_name`, `author`, `book_comp`, " + | ||||
|                           "`count`, `pay`, `total`, `stat`, `etc`, " + | ||||
|                           "`list_name`, `order`, `import`, `export`"; | ||||
|             string tmp_data = db.DB_Select_Search(area, "Obj_List_Book", "compidx", compidx); | ||||
|             string[] data = tmp_data.Split('|'); | ||||
|             string[] mkgrid = { "", "", "", "", "", | ||||
|                                 "", "", "", "", "", | ||||
|                                 "", "", "", "" }; | ||||
|             int num = 14; | ||||
|                                 "", "", "", "", "" }; | ||||
|             int num = 15; | ||||
|             for(int a = 0; a < data.Length; a++) { | ||||
|                 if (a % num == 0) { mkgrid[1] = data[a] + " "; } | ||||
|                 if (a % num == 1) { mkgrid[1] += data[a]; } | ||||
|                 if (a % num == 2) { mkgrid[2] = data[a]; } | ||||
|                 if (a % num == 0) { mkgrid[0] = data[a]; } | ||||
|                 if (a % num == 1) { mkgrid[2] = data[a] + " "; } | ||||
|                 if (a % num == 2) { mkgrid[2] += data[a]; } | ||||
|                 if (a % num == 3) { mkgrid[3] = data[a]; } | ||||
|                 if (a % num == 4) { mkgrid[4] = data[a]; } | ||||
|                 if (a % num == 5) { mkgrid[5] = data[a]; } | ||||
| @@ -281,13 +286,30 @@ namespace WindowsFormsApp1.Delivery | ||||
|                 if (a % num == 10) { mkgrid[10] = data[a]; } | ||||
|                 if (a % num == 11) { mkgrid[11] = data[a]; } | ||||
|                 if (a % num == 12) { mkgrid[12] = data[a]; } | ||||
|                 if (a % num == 13) { mkgrid[13] = data[a]; | ||||
|                     if (filter(mkgrid) == true) { | ||||
|                 if (a % num == 13) { mkgrid[13] = data[a]; } | ||||
|                 if (a % num == 14) { mkgrid[14] = data[a]; | ||||
|                     if (filter(mkgrid)) { | ||||
|                         dataGridView1.Rows.Add(mkgrid); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) | ||||
|         { | ||||
|             Book_Lookup bl = new Book_Lookup(this); | ||||
|             bl.TopMost = true; | ||||
|             bl.Lookup_Load_tmp(dataGridView1.Rows[e.RowIndex].Cells["idx"].Value.ToString()); | ||||
|             bl.Show(); | ||||
|         } | ||||
|  | ||||
|         private void tb_search_KeyDown(object sender, KeyEventArgs e) | ||||
|         { | ||||
|             if (e.KeyCode == Keys.Enter) | ||||
|             { | ||||
|                 btn_lookup_Click(null, null); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         private bool filter(string[] array) | ||||
|         { | ||||
|             /* 주 | 번호 | 도서명 | 저자 | 출판사 | ||||
| @@ -295,37 +317,49 @@ namespace WindowsFormsApp1.Delivery | ||||
|              * 구분 | 주문처 | 입고상태 | 출고상태 */ | ||||
|             if (tb_search.Text != "") { | ||||
|                 if (cb_search.SelectedIndex == 0) { | ||||
|                     if (array[2].Contains(tb_search.Text) == false) { | ||||
|                     if (array[3].Contains(tb_search.Text) == false) { | ||||
|                         return false; | ||||
|                     } | ||||
|                 } | ||||
|                 else if (cb_search.SelectedIndex == 1) { | ||||
|                     if (array[4].Contains(tb_search.Text) == false) { | ||||
|                     if (array[5].Contains(tb_search.Text) == false) { | ||||
|                         return false; | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|             if (tb_order.Text != "") { | ||||
|                 if (array[11].Contains(tb_order.Text) == false) { | ||||
|                 if (array[12].Contains(tb_order.Text) == false) { | ||||
|                     return false; | ||||
|                 } | ||||
|             } | ||||
|             if (cb_list_name.SelectedIndex != 0) { | ||||
|                 if (array[10].Contains(cb_list_name.Text) == false){ | ||||
|                 if (array[11].Contains(cb_list_name.Text) == false){ | ||||
|                     return false; | ||||
|                 } | ||||
|             } | ||||
|             if (cb_import.SelectedIndex != 0) { | ||||
|                 if (array[12].Contains(cb_import.Text) == false) { | ||||
|                 if (array[13] != cb_import.Text) { | ||||
|                     return false; | ||||
|                 } | ||||
|             } | ||||
|             if (cb_export.SelectedIndex != 0) { | ||||
|                 if (array[13].Contains(cb_export.Text) == false) { | ||||
|                 if (array[14] != cb_export.Text) { | ||||
|                     return false; | ||||
|                 } | ||||
|             } | ||||
|             return true; | ||||
|         } | ||||
|         void Column_Text_Color() | ||||
|         { | ||||
|             for(int a = 0; a < dataGridView1.Rows.Count; a++) | ||||
|             { | ||||
|                 if (dataGridView1.Rows[a].Cells["Column2"].Value.ToString() == "입고") { | ||||
|                     dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Blue; | ||||
|                 } | ||||
|                 else if (dataGridView1.Rows[a].Cells["Column2"].Value.ToString() == "미입고") { | ||||
|                     dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Red; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SeungHo Yang
					SeungHo Yang