 673dbec89a
			
		
	
	673dbec89a
	
	
	
		
			
			** ERP 작업 전면 중단 (마크우선) ** *** 마크작성 - 칸채우기 버그 수정을 위해 테스트 계정 제외하고 잠금*** 1. 복본조사 ㄴ> "전남 여수 시립도서관" URL 변경하여 작업진행하게 수정. 2. 납품/거래처 관리 ㄴ> 저장 시 오류발생 및 "저장"버튼과 "수정"버튼이 햇갈리게 적용되어 "저장"으로 통합
		
			
				
	
	
		
			85 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			2.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;
 | |
| using WindowsFormsApp1.Mac;
 | |
| 
 | |
| namespace UniMarc.마크
 | |
| {
 | |
|     public partial class Check_Copy_Sub_Search : Form
 | |
|     {
 | |
|         Check_copy cc;
 | |
|         public Check_Copy_Sub_Search(Check_copy _cc)
 | |
|         {
 | |
|             InitializeComponent();
 | |
|             cc = _cc;
 | |
|         }
 | |
| 
 | |
|         public void Init(string[] ary, string SearchText)
 | |
|         {
 | |
|             this.Text = string.Format("검색어 : [{0}]", SearchText);
 | |
| 
 | |
|             // Province, Area, lib_name, Code
 | |
|             string[] grid = { "", "", "", "", "" };
 | |
|             for (int a = 0; a < ary.Length; a++)
 | |
|             {
 | |
|                 if (a % 5 == 0) grid[0] = ary[a];
 | |
|                 if (a % 5 == 1) grid[1] = ary[a];
 | |
|                 if (a % 5 == 2) grid[2] = string.Format("{0}_{1}_{2}", grid[0], grid[1], ary[a]);
 | |
|                 if (a % 5 == 3) grid[3] = ary[a];
 | |
|                 if (a % 5 == 4) {
 | |
|                     grid[4] = ary[a];
 | |
|                     dataGridView1.Rows.Add(grid);
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
 | |
|         {
 | |
|             Skill_Grid sg = new Skill_Grid();
 | |
|             sg.Print_Grid_Num(sender, e);
 | |
|         }
 | |
| 
 | |
|         private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 | |
|         {
 | |
|             int row = e.RowIndex;
 | |
|             SetCode(row);
 | |
|             this.Close();
 | |
|         }
 | |
| 
 | |
|         private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
 | |
|         {
 | |
|             if (e.KeyCode == Keys.Enter)
 | |
|             {
 | |
|                 if (dataGridView1.Rows.Count < 0) return;
 | |
|                 int row = dataGridView1.CurrentRow.Index;
 | |
|                 SetCode(row);
 | |
|                 this.Close();
 | |
|             }
 | |
|             if (e.KeyCode == Keys.Escape)
 | |
|                 this.Close();
 | |
|         }
 | |
| 
 | |
|         void SetCode(int row)
 | |
|         {
 | |
|             string Province = dataGridView1.Rows[row].Cells["Province"].Value.ToString();
 | |
|             string Area = dataGridView1.Rows[row].Cells["Area"].Value.ToString();
 | |
|             string Code = dataGridView1.Rows[row].Cells["Code"].Value.ToString();
 | |
|             string URL = dataGridView1.Rows[row].Cells["URL"].Value.ToString();
 | |
| 
 | |
|             string lib_Category = string.Format("{0}_{1}", Province, Area);
 | |
| 
 | |
|             cc.lib_Category = lib_Category;
 | |
|             cc.Code = Code;
 | |
|             cc.URL = URL;
 | |
|             cc.tb_SearchTarget.Text = dataGridView1.Rows[row].Cells["lib_name"].Value.ToString();
 | |
|         }
 | |
|     }
 | |
| }
 |