 e0eff9e225
			
		
	
	e0eff9e225
	
	
	
		
			
			------------------------ =====* ISBN 체크 프로그램 *===== ★작업완료★ a. 현재 마크팀 배포완료. - 추후 수정사항발생시 수정할 것. ------------------------ ===== 작업중 ===== b. 마크목록 폼 작성중 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 체크해볼것)
		
			
				
	
	
		
			116 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			116 lines
		
	
	
		
			3.7 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;
 | |
| using WindowsFormsApp1.마크;
 | |
| 
 | |
| namespace WindowsFormsApp1.Mac
 | |
| {
 | |
|     public partial class Search_Infor : Form
 | |
|     {
 | |
|         Main main;
 | |
|         Helper_DB db = new Helper_DB();
 | |
|         public string compidx;
 | |
|         public Search_Infor(Main _main)
 | |
|         {
 | |
|             InitializeComponent();
 | |
|             main = _main;
 | |
|             compidx = main.com_idx;
 | |
|         }
 | |
|         private void Search_Infor_Load(object sender, EventArgs e)
 | |
|         {
 | |
|             db.DBcon();
 | |
| 
 | |
|             string[] filter = { "도서명", "저자", "출판사", "ISBN" };
 | |
|             cb_filter.Items.AddRange(filter);
 | |
|             cb_filter.SelectedIndex = 0;
 | |
| 
 | |
|             for(int a= 0; a < dataGridView1.Columns.Count; a++)
 | |
|             {
 | |
|                 if (a != 7 && a != 8)
 | |
|                     dataGridView1.Columns[a].ReadOnly = true;
 | |
|             }
 | |
|         }
 | |
|         private void btn_search_Click(object sender, EventArgs e)
 | |
|         {
 | |
|             string target = string.Empty;
 | |
|             string Area = "`grade`, `ISBN`, `서명`, `저자`, `출판사`, `출판년월`, `가격`, `비고1`, `비고2`, `marc`";
 | |
|             if (cb_filter.SelectedIndex == -1) {
 | |
|                 MessageBox.Show("검색필터를 선택해주세요!");
 | |
|                 cb_filter.Focus();
 | |
|                 return;
 | |
|             }
 | |
|             if (cb_filter.SelectedItem.ToString() == "도서명") { target = "서명"; }
 | |
|             else { target = cb_filter.SelectedItem.ToString(); }
 | |
| 
 | |
|             string tmp_data = db.DB_Contains("Marc", compidx, target, tb_search.Text, Area);
 | |
|             string[] tmp_arr = tmp_data.Split('|');
 | |
|             input_grid(tmp_arr);
 | |
|         }
 | |
|         void input_grid(string[] arr)
 | |
|         {
 | |
|             string[] grid = { "", "", "", "", "",
 | |
|                               "", "", "", "", "" };
 | |
|             for(int a = 0; a < arr.Length; a++)
 | |
|             {
 | |
|                 if (a % 10 == 0) grid[0] = Change_Grade(arr[a]);
 | |
|                 if (a % 10 == 1) grid[1] = arr[a];
 | |
|                 if (a % 10 == 2) grid[2] = arr[a];
 | |
|                 if (a % 10 == 3) grid[3] = arr[a];
 | |
|                 if (a % 10 == 4) grid[4] = arr[a];
 | |
|                 if (a % 10 == 5) grid[5] = arr[a];
 | |
|                 if (a % 10 == 6) grid[6] = arr[a];
 | |
|                 if (a % 10 == 7) grid[7] = arr[a];
 | |
|                 if (a % 10 == 8) grid[8] = arr[a];
 | |
|                 if (a % 10 == 9) {
 | |
|                     grid[9] = arr[a];
 | |
|                     dataGridView1.Rows.Add(grid);
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
|         string Change_Grade(string idx)
 | |
|         {
 | |
|             string result = string.Empty;
 | |
|             switch (idx)
 | |
|             {
 | |
|                 case "0":
 | |
|                     result = "D";
 | |
|                     break;
 | |
|                 case "1":
 | |
|                     result = "C";
 | |
|                     break;
 | |
|                 case "2":
 | |
|                     result = "B";
 | |
|                     break;
 | |
|                 case "3":
 | |
|                     result = "A";
 | |
|                     break;
 | |
|                 default:
 | |
|                     result = "null";
 | |
|                     break;
 | |
|             }
 | |
|             return result;
 | |
|         }
 | |
|         private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 | |
|         {
 | |
|             int row = e.RowIndex;
 | |
|             int col = e.ColumnIndex;
 | |
| 
 | |
|             Search_Infor_Sub sis = new Search_Infor_Sub();
 | |
|         }
 | |
|         private void tb_search_KeyDown(object sender, KeyEventArgs e)
 | |
|         {
 | |
|             if (e.KeyCode == Keys.Enter) { btn_search_Click(null, null); }
 | |
|         }
 | |
|         private void btn_close_Click(object sender, EventArgs e)
 | |
|         {
 | |
|             this.Close();
 | |
|         }
 | |
|     }
 | |
| }
 |