 a7ba860345
			
		
	
	a7ba860345
	
	
	
		
			
			------------------------ =====* 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 체크해볼것)
		
			
				
	
	
		
			114 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			114 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | ||
| using System.Collections.Generic;
 | ||
| using System.ComponentModel;
 | ||
| using System.Data;
 | ||
| using System.Drawing;
 | ||
| using System.IO;
 | ||
| using System.Linq;
 | ||
| using System.Text;
 | ||
| using System.Text.RegularExpressions;
 | ||
| using System.Threading.Tasks;
 | ||
| using System.Windows.Forms;
 | ||
| 
 | ||
| namespace WindowsFormsApp1.Mac
 | ||
| {
 | ||
|     public partial class Mac_Input : Form
 | ||
|     {
 | ||
|         Main main;
 | ||
|         public Mac_Input(Main _main)
 | ||
|         {
 | ||
|             InitializeComponent();
 | ||
|             main = _main;
 | ||
|         }
 | ||
|         private void Mac_Input_Load(object sender, EventArgs e)
 | ||
|         {
 | ||
|             string[] com_list = { "표준Marc", "라인Marc" };
 | ||
|             comboBox1.Items.AddRange(com_list);
 | ||
|             comboBox1.SelectedIndex = 0;
 | ||
| 
 | ||
|         }
 | ||
|         private void btn_FileOpen_Click(object sender, EventArgs e)
 | ||
|         {
 | ||
|             string file_path = string.Empty;
 | ||
|             if (openFileDialog1.ShowDialog() == DialogResult.OK)
 | ||
|             {
 | ||
|                 file_path = openFileDialog1.FileName;
 | ||
|                 try
 | ||
|                 {
 | ||
|                     StreamReader r = new StreamReader(file_path, Encoding.Default);
 | ||
|                     input_Grid(r.ReadToEnd());
 | ||
| 
 | ||
|                     r.Close();
 | ||
|                 }
 | ||
|                 catch(Exception ex)
 | ||
|                 {
 | ||
|                     // 
 | ||
|                     MessageBox.Show(ex.ToString());
 | ||
|                 }
 | ||
|             }
 | ||
|             tb_filePath.Text = file_path;
 | ||
|         }
 | ||
|         void input_Grid(string text)
 | ||
|         {
 | ||
|             string[] grid = text.Split('');
 | ||
|             for (int a = 0; a < grid.Length - 1; a++)
 | ||
|             {
 | ||
|                 string[] data = Split_Marc(grid[a]);
 | ||
|                 data[5] = grid[a] + "";
 | ||
|                 dataGridView1.Rows.Add(data);
 | ||
|             }
 | ||
|         }
 | ||
|         string[] Split_Marc(string text)
 | ||
|         {
 | ||
|             string tmp_string = text.Remove(0, 24);
 | ||
|             string[] Marc = tmp_string.Split('');
 | ||
|             string[] dir = made_Directory(Marc[0]);
 | ||
|             string[] data = { "", "", "", "", "", "" };     // isbn, 도서명, 저자, 출판사, 정가
 | ||
|             String_Text st = new String_Text();
 | ||
| 
 | ||
|             for(int a = 0; a < dir.Length; a++)
 | ||
|             {
 | ||
|                 if (dir[a] == "020")
 | ||
|                 {
 | ||
|                     data[0] = st.GetMiddelString(Marc[a + 1], "a", "");   // isbn
 | ||
|                     data[4] = st.GetMiddelString(Marc[a + 1], "c", "");   // 정가
 | ||
|                 }
 | ||
|                 if (dir[a] == "245")
 | ||
|                 {
 | ||
|                     data[1] = st.GetMiddelString(Marc[a + 1], "a", "");      // 도서명
 | ||
|                     data[2] = st.GetMiddelString(Marc[a + 1], "d", "");      // 저자
 | ||
|                 }
 | ||
|                 if (dir[a] == "260")
 | ||
|                 {
 | ||
|                     data[3] = st.GetMiddelString(Marc[a + 1], "b", "");    // 출판사
 | ||
|                 }
 | ||
|                 if (dir[a] == "950")
 | ||
|                 {
 | ||
|                     data[4] = st.GetMiddelString(Marc[a + 1], "b", "");
 | ||
|                 }
 | ||
|             }
 | ||
|             return data;
 | ||
|         }
 | ||
|         string[] made_Directory(string value)
 | ||
|         {
 | ||
|             int length = value.Length;
 | ||
|             int start = 0;
 | ||
|             List<string> L_dir = new List<string>();
 | ||
|             while (true)
 | ||
|             {
 | ||
|                 if (start + 12 > length) { break; }
 | ||
|                 L_dir.Add(value.Substring(start, 3));
 | ||
|                 start += 12;
 | ||
|             }
 | ||
|             string[] result = L_dir.ToArray();
 | ||
|             
 | ||
|             return result;
 | ||
|         }
 | ||
|         private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
 | ||
|         {
 | ||
|             Skill_Grid sg = new Skill_Grid();
 | ||
|             sg.Print_Grid_Num(sender, e);
 | ||
|         }
 | ||
|     }
 | ||
| }
 |