 afe2605e98
			
		
	
	afe2605e98
	
	
	
		
			
			** ERP 작업 전면 중단 (마크우선) ** *** 마크작성 - 칸채우기 버그 수정을 위해 테스트 계정 제외하고 잠금*** 1. 복본 조사 ㄴ> 전남 무안군 공공도서관 추가 2. UI개편 ㄴ> 현재 마크탭에서 표출되는 DataGridView 뒷 배경색에 맞춰 공간 안보이게 해버림.
		
			
				
	
	
		
			124 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			124 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using ExcelTest;
 | |
| 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;
 | |
| 
 | |
| namespace UniMarc.마크
 | |
| {
 | |
|     public partial class Marc_memo : Form
 | |
|     {
 | |
|         Marc marc;
 | |
|         public Marc_memo(Marc _marc)
 | |
|         {
 | |
|             InitializeComponent();
 | |
|             marc = _marc;
 | |
|         }
 | |
| 
 | |
|         private void Marc_memo_Load(object sender, EventArgs e)
 | |
|         {
 | |
|             string[] com_List =
 | |
|             {
 | |
|                 "하나막", "코리스" 
 | |
|             };
 | |
|             cb_List.Items.AddRange(com_List);
 | |
|         }
 | |
| 
 | |
|         private void btn_ReturnMarc_Click(object sender, EventArgs e)
 | |
|         {
 | |
|             string text = richTextBox1.Text;
 | |
|             string result = "";
 | |
|             int idx = cb_List.SelectedIndex;
 | |
|             if (idx < 0)
 | |
|                 return;
 | |
|             try
 | |
|             {
 | |
|                 switch (idx)
 | |
|                 {
 | |
|                     case 0:
 | |
|                         result = Hana(text);
 | |
|                         break;
 | |
|                     case 1:
 | |
|                         result = Kolis(text) + "\n";
 | |
|                         break;
 | |
|                     default:
 | |
|                         break;
 | |
|                 }
 | |
|             }
 | |
|             catch { }
 | |
|             richTextBox1.Text = "";
 | |
|             marc.richTextBox1.Text = result.Replace("↔", "");
 | |
|         }
 | |
|         #region
 | |
|         string Hana(string text)
 | |
|         {
 | |
|             string[] arr = text.Split('\n');
 | |
| 
 | |
|             for (int a = 0; a < arr.Length - 1; a++)
 | |
|             {
 | |
|                 arr[a] = arr[a].Insert(5, "\t");
 | |
|                 arr[a] = arr[a].Insert(3, "\t");
 | |
|             }
 | |
|             return string.Join("▲\n", arr);
 | |
|         }
 | |
|         string Kolis(string text)
 | |
|         {
 | |
|             string[] arr = text.Split('\n');
 | |
| 
 | |
|             for (int a = 0; a < arr.Length; a++)
 | |
|             {
 | |
|                 string[] tag = arr[a].Split('\t');
 | |
|                 if (arr[a] == "") break;
 | |
| 
 | |
|                 if (tag[1].Length == 0)
 | |
|                     tag[1] = "  ";
 | |
| 
 | |
|                 else if (tag[1].Length == 1)
 | |
|                     tag[1] += " ";
 | |
| 
 | |
|                 arr[a] = string.Join("\t", tag);
 | |
|             }
 | |
|             return string.Join("\n", arr);
 | |
|         }
 | |
|         #endregion
 | |
| 
 | |
|         private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
 | |
|         {
 | |
|             if (e.Control)
 | |
|             {
 | |
|                 switch (e.KeyValue)
 | |
|                 {
 | |
|                     case 72:        // h
 | |
|                         findNchange fnc = new findNchange(this);
 | |
|                         fnc.TopMost = true;
 | |
|                         fnc.Show();
 | |
|                         break;
 | |
|                     default:
 | |
|                         break;
 | |
|                 }
 | |
|             }
 | |
|             if (e.KeyCode == Keys.Escape)
 | |
|             {
 | |
|                 this.Close();
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         private void btn_Close_Click(object sender, EventArgs e)
 | |
|         {
 | |
|             this.Close();
 | |
|         }
 | |
| 
 | |
|         private void trackBar1_Scroll(object sender, EventArgs e)
 | |
|         {
 | |
|             double Opacity = trackBar1.Value * 5 * 0.01;
 | |
| 
 | |
|             this.Opacity = Opacity;
 | |
|         }
 | |
|     }
 | |
| }
 |