=====* UniMarc [0.0159] 버전 업데이트 내용 *=====
** ERP 작업 전면 중단 (마크우선) ** 1. 마크 추가 ㄴ> 코리스에서 마크 가져오는 폼 새로 추가 (AddMarcFillBlank.cs) ㄴ> 저장쪽에서 생기는 이슈사항 하드코딩으로 임시 해결. 2. 코리스 마크 가져오는 폼 추가하면서 기존에 있던 버그 수정완료. 3. DB접속 방법 변경. 코드 내 명시되어있던 아이피가 거슬려서 감춘것뿐. 4. 매크로 (현재 55건) ㄴ> 기존에 그냥 반출하던 방식을 바꿔서 매크로를 적용후 반출하여 파일로 저장하는 방식으로 변경됨. ㄴ> 추가 요청사항시 업데이트가 필요함. 5. DLS 복본조사 ㄴ> DLS 접속방침이 변경됨에 따라 업데이트가 불가피하여 방식을 변경함. ㄴ> 바로 URL로 이동하는 방식을 웹페이지내 버튼을 클릭하여 이동하는 방식으로 변경함. 6. 마크 칸채우기 ㄴ> 검색시 여러건이 나옴에 따라 기존에 맨 윗목록만 클릭하던 방식을 변형하여 원하는 목록을 클릭하면 자동으로 마크창으로 이동시켜주게 변경.
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								unimarc/.vs/unimarc/v17/HierarchyCache.v1.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								unimarc/.vs/unimarc/v17/HierarchyCache.v1.txt
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -33,6 +33,27 @@ | |||||||
|       <setting name="User" serializeAs="String"> |       <setting name="User" serializeAs="String"> | ||||||
|         <value /> |         <value /> | ||||||
|       </setting> |       </setting> | ||||||
|  |       <setting name="IP" serializeAs="String"> | ||||||
|  |         <value>1.215.250.130</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="Port" serializeAs="String"> | ||||||
|  |         <value>815</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="Uid" serializeAs="String"> | ||||||
|  |         <value>gloriabook</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="pwd" serializeAs="String"> | ||||||
|  |         <value>admin@!@#$</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="dbPort" serializeAs="String"> | ||||||
|  |         <value>3306</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="dbUid" serializeAs="String"> | ||||||
|  |         <value>root</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="dbPwd" serializeAs="String"> | ||||||
|  |         <value>Admin21234</value> | ||||||
|  |       </setting> | ||||||
|     </UniMarc.Properties.Settings> |     </UniMarc.Properties.Settings> | ||||||
|   </userSettings> |   </userSettings> | ||||||
| </configuration> | </configuration> | ||||||
|   | |||||||
| @@ -7,6 +7,7 @@ using System.Threading.Tasks; | |||||||
| using System.Windows.Forms; | using System.Windows.Forms; | ||||||
| using MySql.Data.MySqlClient; | using MySql.Data.MySqlClient; | ||||||
| using Renci.SshNet; | using Renci.SshNet; | ||||||
|  | using UniMarc.Properties; | ||||||
|  |  | ||||||
| namespace WindowsFormsApp1 | namespace WindowsFormsApp1 | ||||||
| { | { | ||||||
| @@ -18,6 +19,22 @@ namespace WindowsFormsApp1 | |||||||
|         // 접속 |         // 접속 | ||||||
|         MySqlConnection conn; |         MySqlConnection conn; | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// IP / Port / Uid / pwd | ||||||
|  |         /// </summary> | ||||||
|  |         string[] ServerData = { | ||||||
|  |             Settings.Default.IP, | ||||||
|  |             Settings.Default.Uid, | ||||||
|  |             Settings.Default.pwd | ||||||
|  |         }; | ||||||
|  |         int port = Settings.Default.Port; | ||||||
|  |  | ||||||
|  |         string[] DBData = { | ||||||
|  |             Settings.Default.dbPort, | ||||||
|  |             Settings.Default.dbUid, | ||||||
|  |             Settings.Default.dbPwd | ||||||
|  |         }; | ||||||
|  |  | ||||||
|         // 쿼리 |         // 쿼리 | ||||||
|         MySqlCommand sqlcmd = new MySqlCommand(); |         MySqlCommand sqlcmd = new MySqlCommand(); | ||||||
|         MySqlDataReader sd; |         MySqlDataReader sd; | ||||||
| @@ -29,18 +46,19 @@ namespace WindowsFormsApp1 | |||||||
|         /// </summary> |         /// </summary> | ||||||
|         public void DBcon()     // DB접속 함수 |         public void DBcon()     // DB접속 함수 | ||||||
|         { |         { | ||||||
|             PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo("1.215.250.130", 815, "gloriabook", "admin@!@#$"); |             PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo(ServerData[0], port, ServerData[1], ServerData[2]); | ||||||
|             connectionInfo.Timeout = TimeSpan.FromSeconds(30); |             connectionInfo.Timeout = TimeSpan.FromSeconds(30); | ||||||
|             using (var client = new SshClient(connectionInfo)) |             using (var client = new SshClient(connectionInfo)) | ||||||
|             { |             { | ||||||
|                 client.Connect(); |                 client.Connect(); | ||||||
|                 if (client.IsConnected) |                 if (client.IsConnected) | ||||||
|                 { |                 { | ||||||
|                     string strConnection = "Server=1.215.250.130;" |                     string strConnection = string.Format( | ||||||
|                                          + "Port=3306;" |                         "Server={0};" + | ||||||
|                                          + "Database=unimarc;" |                         "Port={1};" + | ||||||
|                                          + "uid=root;" |                         "Database=unimarc;" + | ||||||
|                                          + "pwd=Admin21234;"; |                         "uid={2};" + | ||||||
|  |                         "pwd={3};", ServerData[0], DBData[0], DBData[1], DBData[2]); | ||||||
|                     conn = new MySqlConnection(strConnection); |                     conn = new MySqlConnection(strConnection); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| @@ -50,18 +68,19 @@ namespace WindowsFormsApp1 | |||||||
|         /// </summary> |         /// </summary> | ||||||
|         public void DBcon_cl()     // DB접속 함수  |         public void DBcon_cl()     // DB접속 함수  | ||||||
|         { |         { | ||||||
|             PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo("1.215.250.130", 815, "gloriabook", "admin@!@#$"); |             PasswordConnectionInfo connectionInfo = new PasswordConnectionInfo(ServerData[0], port, ServerData[1], ServerData[2]); | ||||||
|             connectionInfo.Timeout = TimeSpan.FromSeconds(30); |             connectionInfo.Timeout = TimeSpan.FromSeconds(30); | ||||||
|             using (var client = new SshClient(connectionInfo)) |             using (var client = new SshClient(connectionInfo)) | ||||||
|             { |             { | ||||||
|                 client.Connect(); |                 client.Connect(); | ||||||
|                 if (client.IsConnected) |                 if (client.IsConnected) | ||||||
|                 { |                 { | ||||||
|                     string strConnection = "Server=1.215.250.130;" |                     string strConnection = string.Format( | ||||||
|                                          + "Port=3306;" |                         "Server={0};" + | ||||||
|                                          + "Database=cl_marc;" |                         "Port={1};" + | ||||||
|                                          + "uid=root;" |                         "Database=cl_marc;" + | ||||||
|                                          + "pwd=Admin21234;"; |                         "uid={2};" + | ||||||
|  |                         "pwd={3};", ServerData[0], DBData[0], DBData[1], DBData[2]); | ||||||
|                     conn = new MySqlConnection(strConnection); |                     conn = new MySqlConnection(strConnection); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -58,7 +58,7 @@ namespace WindowsFormsApp1 | |||||||
|                             WriteFile(); |                             WriteFile(); | ||||||
|                     if (!CheckIP(lbl_IP.Text, result[4])) |                     if (!CheckIP(lbl_IP.Text, result[4])) | ||||||
|                     { |                     { | ||||||
|                         MessageBox.Show("저장된 아이피가 다릅니다!"); |                         MessageBox.Show("허용된 아이피가 아닙니다!"); | ||||||
|                         return; |                         return; | ||||||
|                     } |                     } | ||||||
|                     ((Main)(this.Owner)).IPText.Text = string.Format("접속 아이피 : {0}", lbl_IP.Text); |                     ((Main)(this.Owner)).IPText.Text = string.Format("접속 아이피 : {0}", lbl_IP.Text); | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								unimarc/unimarc/Main.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								unimarc/unimarc/Main.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -410,13 +410,13 @@ | |||||||
|             this.마크설정.Name = "마크설정"; |             this.마크설정.Name = "마크설정"; | ||||||
|             this.마크설정.Size = new System.Drawing.Size(156, 22); |             this.마크설정.Size = new System.Drawing.Size(156, 22); | ||||||
|             this.마크설정.Text = "설정"; |             this.마크설정.Text = "설정"; | ||||||
|             this.마크설정.Visible = false; |  | ||||||
|             //  |             //  | ||||||
|             // 단축키설정 |             // 단축키설정 | ||||||
|             //  |             //  | ||||||
|             this.단축키설정.Name = "단축키설정"; |             this.단축키설정.Name = "단축키설정"; | ||||||
|             this.단축키설정.Size = new System.Drawing.Size(138, 22); |             this.단축키설정.Size = new System.Drawing.Size(138, 22); | ||||||
|             this.단축키설정.Text = "단축키"; |             this.단축키설정.Text = "단축키"; | ||||||
|  |             this.단축키설정.Visible = false; | ||||||
|             this.단축키설정.Click += new System.EventHandler(this.단축키설정ToolStripMenuItem_Click); |             this.단축키설정.Click += new System.EventHandler(this.단축키설정ToolStripMenuItem_Click); | ||||||
|             //  |             //  | ||||||
|             // 매크로문구 |             // 매크로문구 | ||||||
| @@ -431,6 +431,7 @@ | |||||||
|             this.불용어.Name = "불용어"; |             this.불용어.Name = "불용어"; | ||||||
|             this.불용어.Size = new System.Drawing.Size(138, 22); |             this.불용어.Size = new System.Drawing.Size(138, 22); | ||||||
|             this.불용어.Text = "불용어"; |             this.불용어.Text = "불용어"; | ||||||
|  |             this.불용어.Visible = false; | ||||||
|             this.불용어.Click += new System.EventHandler(this.불용어ToolStripMenuItem_Click); |             this.불용어.Click += new System.EventHandler(this.불용어ToolStripMenuItem_Click); | ||||||
|             //  |             //  | ||||||
|             // 작업지시서 |             // 작업지시서 | ||||||
| @@ -438,6 +439,7 @@ | |||||||
|             this.작업지시서.Name = "작업지시서"; |             this.작업지시서.Name = "작업지시서"; | ||||||
|             this.작업지시서.Size = new System.Drawing.Size(138, 22); |             this.작업지시서.Size = new System.Drawing.Size(138, 22); | ||||||
|             this.작업지시서.Text = "작업지시서"; |             this.작업지시서.Text = "작업지시서"; | ||||||
|  |             this.작업지시서.Visible = false; | ||||||
|             this.작업지시서.Click += new System.EventHandler(this.작업지시서ToolStripMenuItem_Click); |             this.작업지시서.Click += new System.EventHandler(this.작업지시서ToolStripMenuItem_Click); | ||||||
|             //  |             //  | ||||||
|             // 마크작업 |             // 마크작업 | ||||||
|   | |||||||
							
								
								
									
										86
									
								
								unimarc/unimarc/Properties/Settings.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										86
									
								
								unimarc/unimarc/Properties/Settings.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -12,7 +12,7 @@ namespace UniMarc.Properties { | |||||||
|      |      | ||||||
|      |      | ||||||
|     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||||||
|     [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")] |     [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")] | ||||||
|     public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |     public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { | ||||||
|          |          | ||||||
|         private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |         private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | ||||||
| @@ -46,5 +46,89 @@ namespace UniMarc.Properties { | |||||||
|                 this["User"] = value; |                 this["User"] = value; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |          | ||||||
|  |         [global::System.Configuration.UserScopedSettingAttribute()] | ||||||
|  |         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||||
|  |         [global::System.Configuration.DefaultSettingValueAttribute("1.215.250.130")] | ||||||
|  |         public string IP { | ||||||
|  |             get { | ||||||
|  |                 return ((string)(this["IP"])); | ||||||
|  |             } | ||||||
|  |             set { | ||||||
|  |                 this["IP"] = value; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |          | ||||||
|  |         [global::System.Configuration.UserScopedSettingAttribute()] | ||||||
|  |         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||||
|  |         [global::System.Configuration.DefaultSettingValueAttribute("815")] | ||||||
|  |         public int Port { | ||||||
|  |             get { | ||||||
|  |                 return ((int)(this["Port"])); | ||||||
|  |             } | ||||||
|  |             set { | ||||||
|  |                 this["Port"] = value; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |          | ||||||
|  |         [global::System.Configuration.UserScopedSettingAttribute()] | ||||||
|  |         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||||
|  |         [global::System.Configuration.DefaultSettingValueAttribute("gloriabook")] | ||||||
|  |         public string Uid { | ||||||
|  |             get { | ||||||
|  |                 return ((string)(this["Uid"])); | ||||||
|  |             } | ||||||
|  |             set { | ||||||
|  |                 this["Uid"] = value; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |          | ||||||
|  |         [global::System.Configuration.UserScopedSettingAttribute()] | ||||||
|  |         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||||
|  |         [global::System.Configuration.DefaultSettingValueAttribute("admin@!@#$")] | ||||||
|  |         public string pwd { | ||||||
|  |             get { | ||||||
|  |                 return ((string)(this["pwd"])); | ||||||
|  |             } | ||||||
|  |             set { | ||||||
|  |                 this["pwd"] = value; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |          | ||||||
|  |         [global::System.Configuration.UserScopedSettingAttribute()] | ||||||
|  |         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||||
|  |         [global::System.Configuration.DefaultSettingValueAttribute("3306")] | ||||||
|  |         public string dbPort { | ||||||
|  |             get { | ||||||
|  |                 return ((string)(this["dbPort"])); | ||||||
|  |             } | ||||||
|  |             set { | ||||||
|  |                 this["dbPort"] = value; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |          | ||||||
|  |         [global::System.Configuration.UserScopedSettingAttribute()] | ||||||
|  |         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||||
|  |         [global::System.Configuration.DefaultSettingValueAttribute("root")] | ||||||
|  |         public string dbUid { | ||||||
|  |             get { | ||||||
|  |                 return ((string)(this["dbUid"])); | ||||||
|  |             } | ||||||
|  |             set { | ||||||
|  |                 this["dbUid"] = value; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |          | ||||||
|  |         [global::System.Configuration.UserScopedSettingAttribute()] | ||||||
|  |         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||||||
|  |         [global::System.Configuration.DefaultSettingValueAttribute("Admin21234")] | ||||||
|  |         public string dbPwd { | ||||||
|  |             get { | ||||||
|  |                 return ((string)(this["dbPwd"])); | ||||||
|  |             } | ||||||
|  |             set { | ||||||
|  |                 this["dbPwd"] = value; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -8,5 +8,26 @@ | |||||||
|     <Setting Name="User" Type="System.String" Scope="User"> |     <Setting Name="User" Type="System.String" Scope="User"> | ||||||
|       <Value Profile="(Default)" /> |       <Value Profile="(Default)" /> | ||||||
|     </Setting> |     </Setting> | ||||||
|  |     <Setting Name="IP" Type="System.String" Scope="User"> | ||||||
|  |       <Value Profile="(Default)">1.215.250.130</Value> | ||||||
|  |     </Setting> | ||||||
|  |     <Setting Name="Port" Type="System.Int32" Scope="User"> | ||||||
|  |       <Value Profile="(Default)">815</Value> | ||||||
|  |     </Setting> | ||||||
|  |     <Setting Name="Uid" Type="System.String" Scope="User"> | ||||||
|  |       <Value Profile="(Default)">gloriabook</Value> | ||||||
|  |     </Setting> | ||||||
|  |     <Setting Name="pwd" Type="System.String" Scope="User"> | ||||||
|  |       <Value Profile="(Default)">admin@!@#$</Value> | ||||||
|  |     </Setting> | ||||||
|  |     <Setting Name="dbPort" Type="System.String" Scope="User"> | ||||||
|  |       <Value Profile="(Default)">3306</Value> | ||||||
|  |     </Setting> | ||||||
|  |     <Setting Name="dbUid" Type="System.String" Scope="User"> | ||||||
|  |       <Value Profile="(Default)">root</Value> | ||||||
|  |     </Setting> | ||||||
|  |     <Setting Name="dbPwd" Type="System.String" Scope="User"> | ||||||
|  |       <Value Profile="(Default)">Admin21234</Value> | ||||||
|  |     </Setting> | ||||||
|   </Settings> |   </Settings> | ||||||
| </SettingsFile> | </SettingsFile> | ||||||
| @@ -2001,11 +2001,21 @@ namespace WindowsFormsApp1 | |||||||
|                     if (!SplitContent[a - 1].EndsWith("=")) |                     if (!SplitContent[a - 1].EndsWith("=")) | ||||||
|                         SplitContent[a - 1] += "="; |                         SplitContent[a - 1] += "="; | ||||||
|  |  | ||||||
|  |                 // $d 앞에 "/" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("d")) | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith("/")) | ||||||
|  |                         SplitContent[a - 1] += "/"; | ||||||
|  |  | ||||||
|                 // $n 앞에 "." 적용 |                 // $n 앞에 "." 적용 | ||||||
|                 if (SplitContent[a].StartsWith("n")) |                 if (SplitContent[a].StartsWith("n")) | ||||||
|                     if (!SplitContent[a - 1].EndsWith(".")) |                     if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|                         SplitContent[a - 1] += "."; |                         SplitContent[a - 1] += "."; | ||||||
|  |  | ||||||
|  |                 // $e 앞에 "," 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("e")) | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                         SplitContent[a - 1] += ","; | ||||||
|  |  | ||||||
|                 // $p 앞에 $n이 나온 경우 "," 적용, $p앞에 $n이 없는 경우 "." 적용 |                 // $p 앞에 $n이 나온 경우 "," 적용, $p앞에 $n이 없는 경우 "." 적용 | ||||||
|                 if (SplitContent[a].StartsWith("p")) |                 if (SplitContent[a].StartsWith("p")) | ||||||
|                 { |                 { | ||||||
| @@ -2021,11 +2031,6 @@ namespace WindowsFormsApp1 | |||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 // $d 앞에 "/" 적용 |  | ||||||
|                 if (SplitContent[a].StartsWith("d")) |  | ||||||
|                     if (!SplitContent[a - 1].EndsWith("/")) |  | ||||||
|                         SplitContent[a - 1] += "/"; |  | ||||||
|  |  | ||||||
|                 // TODO : $e 논의 필요 (역할어가 필요함) |                 // TODO : $e 논의 필요 (역할어가 필요함) | ||||||
|                 if (SplitContent[a].StartsWith("e")) |                 if (SplitContent[a].StartsWith("e")) | ||||||
|                 { |                 { | ||||||
| @@ -2192,6 +2197,11 @@ namespace WindowsFormsApp1 | |||||||
|                 if (SplitContent[a].StartsWith("v")) |                 if (SplitContent[a].StartsWith("v")) | ||||||
|                     if (!SplitContent[a - 1].EndsWith(";")) |                     if (!SplitContent[a - 1].EndsWith(";")) | ||||||
|                         SplitContent[a - 1] += ";"; |                         SplitContent[a - 1] += ";"; | ||||||
|  |  | ||||||
|  |                 // $x 앞에는 "=" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("x")) | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith("=")) | ||||||
|  |                         SplitContent[a - 1] += "="; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             return string.Join("▼", SplitContent); |             return string.Join("▼", SplitContent); | ||||||
|   | |||||||
| @@ -282,6 +282,7 @@ | |||||||
|     <Compile Include="마크\Mac_Stat_Stat.Designer.cs"> |     <Compile Include="마크\Mac_Stat_Stat.Designer.cs"> | ||||||
|       <DependentUpon>Mac_Stat_Stat.cs</DependentUpon> |       <DependentUpon>Mac_Stat_Stat.cs</DependentUpon> | ||||||
|     </Compile> |     </Compile> | ||||||
|  |     <Compile Include="마크\Marc_Macro_Sub.cs" /> | ||||||
|     <Compile Include="마크\Marc_mkList.cs"> |     <Compile Include="마크\Marc_mkList.cs"> | ||||||
|       <SubType>Form</SubType> |       <SubType>Form</SubType> | ||||||
|     </Compile> |     </Compile> | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							| @@ -33,6 +33,27 @@ | |||||||
|       <setting name="User" serializeAs="String"> |       <setting name="User" serializeAs="String"> | ||||||
|         <value /> |         <value /> | ||||||
|       </setting> |       </setting> | ||||||
|  |       <setting name="IP" serializeAs="String"> | ||||||
|  |         <value>1.215.250.130</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="Port" serializeAs="String"> | ||||||
|  |         <value>815</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="Uid" serializeAs="String"> | ||||||
|  |         <value>gloriabook</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="pwd" serializeAs="String"> | ||||||
|  |         <value>admin@!@#$</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="dbPort" serializeAs="String"> | ||||||
|  |         <value>3306</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="dbUid" serializeAs="String"> | ||||||
|  |         <value>root</value> | ||||||
|  |       </setting> | ||||||
|  |       <setting name="dbPwd" serializeAs="String"> | ||||||
|  |         <value>Admin21234</value> | ||||||
|  |       </setting> | ||||||
|     </UniMarc.Properties.Settings> |     </UniMarc.Properties.Settings> | ||||||
|   </userSettings> |   </userSettings> | ||||||
| </configuration> | </configuration> | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -1 +1 @@ | |||||||
| 74d5fec563e4aeeff90499a7c76911ecef0f8c28 | 6c54ed79386ab964ca1567ff2675488ae1879557 | ||||||
|   | |||||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										150
									
								
								unimarc/unimarc/마크/AddMarc.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										150
									
								
								unimarc/unimarc/마크/AddMarc.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -29,7 +29,6 @@ namespace UniMarc.마크 | |||||||
|         /// </summary> |         /// </summary> | ||||||
|         private void InitializeComponent() |         private void InitializeComponent() | ||||||
|         { |         { | ||||||
|             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddMarc)); |  | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
| @@ -38,6 +37,9 @@ namespace UniMarc.마크 | |||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|  |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|  |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|  |             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddMarc)); | ||||||
|             this.textKDC4 = new System.Windows.Forms.TextBox(); |             this.textKDC4 = new System.Windows.Forms.TextBox(); | ||||||
|             this.textKDC5 = new System.Windows.Forms.TextBox(); |             this.textKDC5 = new System.Windows.Forms.TextBox(); | ||||||
|             this.textKDC6 = new System.Windows.Forms.TextBox(); |             this.textKDC6 = new System.Windows.Forms.TextBox(); | ||||||
| @@ -92,7 +94,6 @@ namespace UniMarc.마크 | |||||||
|             this.cb_grade = new System.Windows.Forms.ComboBox(); |             this.cb_grade = new System.Windows.Forms.ComboBox(); | ||||||
|             this.input_date = new System.Windows.Forms.DateTimePicker(); |             this.input_date = new System.Windows.Forms.DateTimePicker(); | ||||||
|             this.panel3 = new System.Windows.Forms.Panel(); |             this.panel3 = new System.Windows.Forms.Panel(); | ||||||
|             this.btn_Reflesh008 = new System.Windows.Forms.Button(); |  | ||||||
|             this.text008 = new System.Windows.Forms.TextBox(); |             this.text008 = new System.Windows.Forms.TextBox(); | ||||||
|             this.label4 = new System.Windows.Forms.Label(); |             this.label4 = new System.Windows.Forms.Label(); | ||||||
|             this.btn_close = new System.Windows.Forms.Button(); |             this.btn_close = new System.Windows.Forms.Button(); | ||||||
| @@ -223,8 +224,9 @@ namespace UniMarc.마크 | |||||||
|             this.panel2 = new System.Windows.Forms.Panel(); |             this.panel2 = new System.Windows.Forms.Panel(); | ||||||
|             this.btn_Empty = new System.Windows.Forms.Button(); |             this.btn_Empty = new System.Windows.Forms.Button(); | ||||||
|             this.lbl_Midx = new System.Windows.Forms.Label(); |             this.lbl_Midx = new System.Windows.Forms.Label(); | ||||||
|             this.pictureBox1 = new System.Windows.Forms.PictureBox(); |  | ||||||
|             this.Btn_SearchKolis = new System.Windows.Forms.Button(); |             this.Btn_SearchKolis = new System.Windows.Forms.Button(); | ||||||
|  |             this.btn_Reflesh008 = new System.Windows.Forms.Button(); | ||||||
|  |             this.pictureBox1 = new System.Windows.Forms.PictureBox(); | ||||||
|             this.groupBox1.SuspendLayout(); |             this.groupBox1.SuspendLayout(); | ||||||
|             this.groupBox4.SuspendLayout(); |             this.groupBox4.SuspendLayout(); | ||||||
|             this.groupBox3.SuspendLayout(); |             this.groupBox3.SuspendLayout(); | ||||||
| @@ -832,24 +834,11 @@ namespace UniMarc.마크 | |||||||
|             this.panel3.Controls.Add(this.btn_Reflesh008); |             this.panel3.Controls.Add(this.btn_Reflesh008); | ||||||
|             this.panel3.Controls.Add(this.text008); |             this.panel3.Controls.Add(this.text008); | ||||||
|             this.panel3.Controls.Add(this.label4); |             this.panel3.Controls.Add(this.label4); | ||||||
|             this.panel3.Location = new System.Drawing.Point(8, 11); |             this.panel3.Location = new System.Drawing.Point(8, 5); | ||||||
|             this.panel3.Name = "panel3"; |             this.panel3.Name = "panel3"; | ||||||
|             this.panel3.Size = new System.Drawing.Size(364, 30); |             this.panel3.Size = new System.Drawing.Size(364, 30); | ||||||
|             this.panel3.TabIndex = 385; |             this.panel3.TabIndex = 385; | ||||||
|             //  |             //  | ||||||
|             // btn_Reflesh008 |  | ||||||
|             //  |  | ||||||
|             this.btn_Reflesh008.BackColor = System.Drawing.SystemColors.WindowText; |  | ||||||
|             this.btn_Reflesh008.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_Reflesh008.BackgroundImage"))); |  | ||||||
|             this.btn_Reflesh008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |  | ||||||
|             this.btn_Reflesh008.Dock = System.Windows.Forms.DockStyle.Right; |  | ||||||
|             this.btn_Reflesh008.Location = new System.Drawing.Point(334, 0); |  | ||||||
|             this.btn_Reflesh008.Name = "btn_Reflesh008"; |  | ||||||
|             this.btn_Reflesh008.Size = new System.Drawing.Size(28, 28); |  | ||||||
|             this.btn_Reflesh008.TabIndex = 207; |  | ||||||
|             this.btn_Reflesh008.UseVisualStyleBackColor = false; |  | ||||||
|             this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click); |  | ||||||
|             //  |  | ||||||
|             // text008 |             // text008 | ||||||
|             //  |             //  | ||||||
|             this.text008.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |             this.text008.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
| @@ -973,9 +962,9 @@ namespace UniMarc.마크 | |||||||
|             //  |             //  | ||||||
|             this.comboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |             this.comboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; | ||||||
|             this.comboBox7.FormattingEnabled = true; |             this.comboBox7.FormattingEnabled = true; | ||||||
|             this.comboBox7.Location = new System.Drawing.Point(994, 5); |             this.comboBox7.Location = new System.Drawing.Point(995, 5); | ||||||
|             this.comboBox7.Name = "comboBox7"; |             this.comboBox7.Name = "comboBox7"; | ||||||
|             this.comboBox7.Size = new System.Drawing.Size(118, 20); |             this.comboBox7.Size = new System.Drawing.Size(117, 20); | ||||||
|             this.comboBox7.TabIndex = 372; |             this.comboBox7.TabIndex = 372; | ||||||
|             this.comboBox7.SelectedIndexChanged += new System.EventHandler(this.ComboBox008_SelectedIndexChanged); |             this.comboBox7.SelectedIndexChanged += new System.EventHandler(this.ComboBox008_SelectedIndexChanged); | ||||||
|             //  |             //  | ||||||
| @@ -985,7 +974,7 @@ namespace UniMarc.마크 | |||||||
|             this.comboBox3.FormattingEnabled = true; |             this.comboBox3.FormattingEnabled = true; | ||||||
|             this.comboBox3.Location = new System.Drawing.Point(875, 5); |             this.comboBox3.Location = new System.Drawing.Point(875, 5); | ||||||
|             this.comboBox3.Name = "comboBox3"; |             this.comboBox3.Name = "comboBox3"; | ||||||
|             this.comboBox3.Size = new System.Drawing.Size(118, 20); |             this.comboBox3.Size = new System.Drawing.Size(117, 20); | ||||||
|             this.comboBox3.TabIndex = 374; |             this.comboBox3.TabIndex = 374; | ||||||
|             this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.ComboBox008_SelectedIndexChanged); |             this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.ComboBox008_SelectedIndexChanged); | ||||||
|             //  |             //  | ||||||
| @@ -1242,6 +1231,14 @@ namespace UniMarc.마크 | |||||||
|             this.GridView505.AllowDrop = true; |             this.GridView505.AllowDrop = true; | ||||||
|             this.GridView505.AllowUserToAddRows = false; |             this.GridView505.AllowUserToAddRows = false; | ||||||
|             this.GridView505.AllowUserToResizeRows = false; |             this.GridView505.AllowUserToResizeRows = false; | ||||||
|  |             dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|  |             dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; | ||||||
|  |             dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|  |             dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|  |             dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|  |             dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|  |             dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|  |             this.GridView505.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; | ||||||
|             this.GridView505.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |             this.GridView505.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | ||||||
|             this.GridView505.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |             this.GridView505.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|             this.text505n, |             this.text505n, | ||||||
| @@ -1252,8 +1249,8 @@ namespace UniMarc.마크 | |||||||
|             this.GridView505.Name = "GridView505"; |             this.GridView505.Name = "GridView505"; | ||||||
|             this.GridView505.RowHeadersVisible = false; |             this.GridView505.RowHeadersVisible = false; | ||||||
|             this.GridView505.RowHeadersWidth = 30; |             this.GridView505.RowHeadersWidth = 30; | ||||||
|             dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |             dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
|             this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle1; |             this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle2; | ||||||
|             this.GridView505.RowTemplate.Height = 23; |             this.GridView505.RowTemplate.Height = 23; | ||||||
|             this.GridView505.Size = new System.Drawing.Size(401, 71); |             this.GridView505.Size = new System.Drawing.Size(401, 71); | ||||||
|             this.GridView505.TabIndex = 246; |             this.GridView505.TabIndex = 246; | ||||||
| @@ -1335,14 +1332,14 @@ namespace UniMarc.마크 | |||||||
|             this.GridView246.AllowDrop = true; |             this.GridView246.AllowDrop = true; | ||||||
|             this.GridView246.AllowUserToAddRows = false; |             this.GridView246.AllowUserToAddRows = false; | ||||||
|             this.GridView246.AllowUserToResizeRows = false; |             this.GridView246.AllowUserToResizeRows = false; | ||||||
|             dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |             dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|             dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; |             dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; | ||||||
|             dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |             dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|             dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; |             dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|             dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; |             dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|             dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |             dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|             dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |             dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|             this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |             this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; | ||||||
|             this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |             this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|             this.Text246Jisi, |             this.Text246Jisi, | ||||||
|             this.Text246i, |             this.Text246i, | ||||||
| @@ -1354,8 +1351,8 @@ namespace UniMarc.마크 | |||||||
|             this.GridView246.Name = "GridView246"; |             this.GridView246.Name = "GridView246"; | ||||||
|             this.GridView246.RowHeadersVisible = false; |             this.GridView246.RowHeadersVisible = false; | ||||||
|             this.GridView246.RowHeadersWidth = 30; |             this.GridView246.RowHeadersWidth = 30; | ||||||
|             dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |             dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
|             this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle3; |             this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle4; | ||||||
|             this.GridView246.RowTemplate.Height = 23; |             this.GridView246.RowTemplate.Height = 23; | ||||||
|             this.GridView246.Size = new System.Drawing.Size(493, 138); |             this.GridView246.Size = new System.Drawing.Size(493, 138); | ||||||
|             this.GridView246.TabIndex = 250; |             this.GridView246.TabIndex = 250; | ||||||
| @@ -1658,6 +1655,14 @@ namespace UniMarc.마크 | |||||||
|             this.GridView020.AllowDrop = true; |             this.GridView020.AllowDrop = true; | ||||||
|             this.GridView020.AllowUserToAddRows = false; |             this.GridView020.AllowUserToAddRows = false; | ||||||
|             this.GridView020.AllowUserToResizeRows = false; |             this.GridView020.AllowUserToResizeRows = false; | ||||||
|  |             dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|  |             dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; | ||||||
|  |             dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|  |             dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|  |             dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|  |             dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|  |             dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|  |             this.GridView020.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; | ||||||
|             this.GridView020.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |             this.GridView020.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | ||||||
|             this.GridView020.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |             this.GridView020.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|             this.CheckSet, |             this.CheckSet, | ||||||
| @@ -1669,8 +1674,8 @@ namespace UniMarc.마크 | |||||||
|             this.GridView020.Name = "GridView020"; |             this.GridView020.Name = "GridView020"; | ||||||
|             this.GridView020.RowHeadersVisible = false; |             this.GridView020.RowHeadersVisible = false; | ||||||
|             this.GridView020.RowHeadersWidth = 30; |             this.GridView020.RowHeadersWidth = 30; | ||||||
|             dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |             dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
|             this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle4; |             this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle6; | ||||||
|             this.GridView020.RowTemplate.Height = 23; |             this.GridView020.RowTemplate.Height = 23; | ||||||
|             this.GridView020.Size = new System.Drawing.Size(408, 80); |             this.GridView020.Size = new System.Drawing.Size(408, 80); | ||||||
|             this.GridView020.TabIndex = 244; |             this.GridView020.TabIndex = 244; | ||||||
| @@ -1726,14 +1731,14 @@ namespace UniMarc.마크 | |||||||
|             this.GridView440.AllowDrop = true; |             this.GridView440.AllowDrop = true; | ||||||
|             this.GridView440.AllowUserToAddRows = false; |             this.GridView440.AllowUserToAddRows = false; | ||||||
|             this.GridView440.AllowUserToResizeRows = false; |             this.GridView440.AllowUserToResizeRows = false; | ||||||
|             dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |             dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|             dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; |             dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; | ||||||
|             dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |             dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|             dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; |             dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|             dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; |             dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|             dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |             dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|             dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |             dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|             this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5; |             this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; | ||||||
|             this.GridView440.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |             this.GridView440.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | ||||||
|             this.GridView440.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |             this.GridView440.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|             this.text440a, |             this.text440a, | ||||||
| @@ -1746,8 +1751,8 @@ namespace UniMarc.마크 | |||||||
|             this.GridView440.Name = "GridView440"; |             this.GridView440.Name = "GridView440"; | ||||||
|             this.GridView440.RowHeadersVisible = false; |             this.GridView440.RowHeadersVisible = false; | ||||||
|             this.GridView440.RowHeadersWidth = 30; |             this.GridView440.RowHeadersWidth = 30; | ||||||
|             dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |             dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
|             this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle6; |             this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle8; | ||||||
|             this.GridView440.RowTemplate.Height = 23; |             this.GridView440.RowTemplate.Height = 23; | ||||||
|             this.GridView440.Size = new System.Drawing.Size(597, 71); |             this.GridView440.Size = new System.Drawing.Size(597, 71); | ||||||
|             this.GridView440.TabIndex = 245; |             this.GridView440.TabIndex = 245; | ||||||
| @@ -1845,14 +1850,14 @@ namespace UniMarc.마크 | |||||||
|             this.GridView490.AllowDrop = true; |             this.GridView490.AllowDrop = true; | ||||||
|             this.GridView490.AllowUserToAddRows = false; |             this.GridView490.AllowUserToAddRows = false; | ||||||
|             this.GridView490.AllowUserToResizeRows = false; |             this.GridView490.AllowUserToResizeRows = false; | ||||||
|             dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |             dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|             dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; |             dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; | ||||||
|             dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |             dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|             dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; |             dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|             dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; |             dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|             dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |             dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|             dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |             dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|             this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; |             this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; | ||||||
|             this.GridView490.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |             this.GridView490.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | ||||||
|             this.GridView490.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |             this.GridView490.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|             this.text490a, |             this.text490a, | ||||||
| @@ -1861,8 +1866,8 @@ namespace UniMarc.마크 | |||||||
|             this.GridView490.Name = "GridView490"; |             this.GridView490.Name = "GridView490"; | ||||||
|             this.GridView490.RowHeadersVisible = false; |             this.GridView490.RowHeadersVisible = false; | ||||||
|             this.GridView490.RowHeadersWidth = 30; |             this.GridView490.RowHeadersWidth = 30; | ||||||
|             dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); |             dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
|             this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle8; |             this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle10; | ||||||
|             this.GridView490.RowTemplate.Height = 23; |             this.GridView490.RowTemplate.Height = 23; | ||||||
|             this.GridView490.Size = new System.Drawing.Size(321, 71); |             this.GridView490.Size = new System.Drawing.Size(321, 71); | ||||||
|             this.GridView490.TabIndex = 247; |             this.GridView490.TabIndex = 247; | ||||||
| @@ -2150,14 +2155,14 @@ namespace UniMarc.마크 | |||||||
|             "서명", |             "서명", | ||||||
|             "저자", |             "저자", | ||||||
|             "출판사"}); |             "출판사"}); | ||||||
|             this.cb_SearchCol.Location = new System.Drawing.Point(16, 4); |             this.cb_SearchCol.Location = new System.Drawing.Point(8, 5); | ||||||
|             this.cb_SearchCol.Name = "cb_SearchCol"; |             this.cb_SearchCol.Name = "cb_SearchCol"; | ||||||
|             this.cb_SearchCol.Size = new System.Drawing.Size(121, 20); |             this.cb_SearchCol.Size = new System.Drawing.Size(121, 20); | ||||||
|             this.cb_SearchCol.TabIndex = 395; |             this.cb_SearchCol.TabIndex = 395; | ||||||
|             //  |             //  | ||||||
|             // tb_Search |             // tb_Search | ||||||
|             //  |             //  | ||||||
|             this.tb_Search.Location = new System.Drawing.Point(143, 4); |             this.tb_Search.Location = new System.Drawing.Point(135, 5); | ||||||
|             this.tb_Search.Name = "tb_Search"; |             this.tb_Search.Name = "tb_Search"; | ||||||
|             this.tb_Search.Size = new System.Drawing.Size(205, 21); |             this.tb_Search.Size = new System.Drawing.Size(205, 21); | ||||||
|             this.tb_Search.TabIndex = 0; |             this.tb_Search.TabIndex = 0; | ||||||
| @@ -2229,6 +2234,29 @@ namespace UniMarc.마크 | |||||||
|             this.lbl_Midx.TabIndex = 393; |             this.lbl_Midx.TabIndex = 393; | ||||||
|             this.lbl_Midx.Visible = false; |             this.lbl_Midx.Visible = false; | ||||||
|             //  |             //  | ||||||
|  |             // Btn_SearchKolis | ||||||
|  |             //  | ||||||
|  |             this.Btn_SearchKolis.Location = new System.Drawing.Point(959, 233); | ||||||
|  |             this.Btn_SearchKolis.Name = "Btn_SearchKolis"; | ||||||
|  |             this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23); | ||||||
|  |             this.Btn_SearchKolis.TabIndex = 397; | ||||||
|  |             this.Btn_SearchKolis.Text = "코리스 검색"; | ||||||
|  |             this.Btn_SearchKolis.UseVisualStyleBackColor = true; | ||||||
|  |             this.Btn_SearchKolis.Click += new System.EventHandler(this.Btn_SearchKolis_Click); | ||||||
|  |             //  | ||||||
|  |             // btn_Reflesh008 | ||||||
|  |             //  | ||||||
|  |             this.btn_Reflesh008.BackColor = System.Drawing.SystemColors.WindowText; | ||||||
|  |             this.btn_Reflesh008.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_Reflesh008.BackgroundImage"))); | ||||||
|  |             this.btn_Reflesh008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; | ||||||
|  |             this.btn_Reflesh008.Dock = System.Windows.Forms.DockStyle.Right; | ||||||
|  |             this.btn_Reflesh008.Location = new System.Drawing.Point(334, 0); | ||||||
|  |             this.btn_Reflesh008.Name = "btn_Reflesh008"; | ||||||
|  |             this.btn_Reflesh008.Size = new System.Drawing.Size(28, 28); | ||||||
|  |             this.btn_Reflesh008.TabIndex = 207; | ||||||
|  |             this.btn_Reflesh008.UseVisualStyleBackColor = false; | ||||||
|  |             this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click); | ||||||
|  |             //  | ||||||
|             // pictureBox1 |             // pictureBox1 | ||||||
|             //  |             //  | ||||||
|             this.pictureBox1.BackColor = System.Drawing.SystemColors.ControlLight; |             this.pictureBox1.BackColor = System.Drawing.SystemColors.ControlLight; | ||||||
| @@ -2240,16 +2268,6 @@ namespace UniMarc.마크 | |||||||
|             this.pictureBox1.TabIndex = 387; |             this.pictureBox1.TabIndex = 387; | ||||||
|             this.pictureBox1.TabStop = false; |             this.pictureBox1.TabStop = false; | ||||||
|             //  |             //  | ||||||
|             // Btn_SearchKolis |  | ||||||
|             //  |  | ||||||
|             this.Btn_SearchKolis.Location = new System.Drawing.Point(959, 233); |  | ||||||
|             this.Btn_SearchKolis.Name = "Btn_SearchKolis"; |  | ||||||
|             this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23); |  | ||||||
|             this.Btn_SearchKolis.TabIndex = 397; |  | ||||||
|             this.Btn_SearchKolis.Text = "코리스 검색"; |  | ||||||
|             this.Btn_SearchKolis.UseVisualStyleBackColor = true; |  | ||||||
|             this.Btn_SearchKolis.Click += new System.EventHandler(this.Btn_SearchKolis_Click); |  | ||||||
|             //  |  | ||||||
|             // AddMarc |             // AddMarc | ||||||
|             //  |             //  | ||||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | ||||||
|   | |||||||
| @@ -232,7 +232,7 @@ namespace UniMarc.마크 | |||||||
|  |  | ||||||
|             if (!isPass(MarcText)) |             if (!isPass(MarcText)) | ||||||
|             { |             { | ||||||
|                 MessageBox.Show("입력된 마크의 상태를 확인해주세요."); |                 MessageBox.Show("입력된 마크의 상태를 확인해주세요.", "isPass"); | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|  |  | ||||||
| @@ -496,8 +496,9 @@ namespace UniMarc.마크 | |||||||
|             string[] TargetArr = ViewMarc.Split('\n'); |             string[] TargetArr = ViewMarc.Split('\n'); | ||||||
|             foreach (string Target in TargetArr) |             foreach (string Target in TargetArr) | ||||||
|             { |             { | ||||||
|                 string[] tmp = Target.Split('\t'); |                 string[] tmp = Target.Replace("▲", "").Split('\t'); | ||||||
|                 if (tmp[0] == "020" && !IsISBN) {   // 0:ISBN 4:Price |                 // 0:ISBN 4:Price | ||||||
|  |                 if (tmp[0] == "020" && !IsISBN) { | ||||||
|                     IsISBN = true; |                     IsISBN = true; | ||||||
|                     result[0] = GetMiddelString(tmp[2], "▼a", "▼"); |                     result[0] = GetMiddelString(tmp[2], "▼a", "▼"); | ||||||
|                     result[4] = GetMiddelString(tmp[2], "▼c", "▼"); |                     result[4] = GetMiddelString(tmp[2], "▼c", "▼"); | ||||||
| @@ -583,11 +584,13 @@ namespace UniMarc.마크 | |||||||
|                     } |                     } | ||||||
|                     else |                     else | ||||||
|                     { |                     { | ||||||
|  |                         MessageBox.Show(string.Format("SplitError : {0}", string.Join("\t", DataSplit))); | ||||||
|                         return false; |                         return false; | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 else |                 else | ||||||
|                 { |                 { | ||||||
|  |                     MessageBox.Show(string.Format("DataError : {0}", Data)); | ||||||
|                     return false; |                     return false; | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| @@ -2529,53 +2532,33 @@ namespace UniMarc.마크 | |||||||
|  |  | ||||||
|             try |             try | ||||||
|             { |             { | ||||||
|                 if (invertCheck.Checked) |                 for (int a = 0; a < invert.Length; a++) | ||||||
|                 { |                 { | ||||||
|                     for (int a = 0; a < invert.Length; a++) |                     int length = invert[a].Length - 1; | ||||||
|  |                     if (a == 0) | ||||||
|                     { |                     { | ||||||
|                         int length = invert[a].Length - 1; |                         if (invert[a][length] != ',') invert[a] += ","; | ||||||
|                         if (a == 0) |                         basicHeadBox.Text = invert[a] + " "; | ||||||
|                         { |                         if (invert[a][length] == ',') invert[a] = invert[a].Substring(0, length); | ||||||
|                             if (invert[a][length] != ',') invert[a] += ","; |  | ||||||
|                             basicHeadBox.Text = invert[a] + " "; |  | ||||||
|                             if (invert[a][length] == ',') invert[a] = invert[a].Substring(0, length); |  | ||||||
|                         } |  | ||||||
|                         else |  | ||||||
|                         { |  | ||||||
|                             if (invert[a][length] != ',') invert[a] += ","; |  | ||||||
|                             basicHeadBox.Text += invert[a] + " "; |  | ||||||
|                             if (invert[a][length] == ',') invert[a] = invert[a].Substring(0, length); |  | ||||||
|                         } |  | ||||||
|                     } |                     } | ||||||
|                 } |                     else | ||||||
|                 else |  | ||||||
|                 { |  | ||||||
|                     for (int a = 0; a < invert.Length; a++) |  | ||||||
|                     { |                     { | ||||||
|                         int length = invert[a].Length - 1; |                         if (invert[a][length] != ',') invert[a] += ","; | ||||||
|                         if (a == 0) |                         basicHeadBox.Text += invert[a] + " "; | ||||||
|                         { |                         if (invert[a][length] == ',') invert[a] = invert[a].Substring(0, length); | ||||||
|                             if (invert[a][length] != ',') invert[a] += ","; |  | ||||||
|                             basicHeadBox.Text = invert[a] + " "; |  | ||||||
|                             if (invert[a][length] == ',') invert[a] = invert[a].Substring(0, length); |  | ||||||
|                         } |  | ||||||
|                         else |  | ||||||
|                         { |  | ||||||
|                             if (invert[a][length] != ',') invert[a] += ","; |  | ||||||
|                             basicHeadBox.Text += invert[a] + " "; |  | ||||||
|                             if (invert[a][length] == ',') invert[a] = invert[a].Substring(0, length); |  | ||||||
|                         } |  | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 int basicLength = basicHeadBox.Text.Length - 1; |                 int basicLength = basicHeadBox.Text.Length - 1; | ||||||
|                 if (basicHeadBox.Text[basicLength] == ' ') |                 if (basicHeadBox.Text[basicLength] == ' ') | ||||||
|                     basicHeadBox.Text = basicHeadBox.Text.Substring(0, basicLength); |                     basicHeadBox.Text = basicHeadBox.Text.Substring(0, basicLength); | ||||||
|  |  | ||||||
|  |                 basicLength = basicHeadBox.Text.Length - 1; | ||||||
|                 if (basicHeadBox.Text[basicLength] == ',') |                 if (basicHeadBox.Text[basicLength] == ',') | ||||||
|                     basicHeadBox.Text = basicHeadBox.Text.Substring(0, basicLength); |                     basicHeadBox.Text = basicHeadBox.Text.Substring(0, basicLength); | ||||||
|             } |             } | ||||||
|             catch |             catch(Exception ex) | ||||||
|             { |             { | ||||||
|                 MessageBox.Show("데이터가 올바르지않습니다.\n245d를 확인해주세요."); |                 MessageBox.Show("데이터가 올바르지않습니다.\n245d를 확인해주세요.\n" + ex.ToString()); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         #region 기본표목 생성 서브 함수 |         #region 기본표목 생성 서브 함수 | ||||||
|   | |||||||
| @@ -69,7 +69,6 @@ namespace UniMarc.마크 | |||||||
|             else |             else | ||||||
|             { |             { | ||||||
|                 Btn_Apply.Enabled = false; |                 Btn_Apply.Enabled = false; | ||||||
|                 Btn_Apply.ForeColor = Color.Red; |  | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
| @@ -97,8 +96,18 @@ namespace UniMarc.마크 | |||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             am.richTextBox1.Text = Text; |             string tmp = ""; | ||||||
|  |             foreach (string t in Text.Replace("↔", "").Split('\n')) | ||||||
|  |             { | ||||||
|  |                 if (t.StartsWith("00") || t == "") | ||||||
|  |                     continue; | ||||||
|  |  | ||||||
|  |                 string[] ary = t.Split('\t'); | ||||||
|  |                 if (ary[1] == "") ary[1] = "  "; | ||||||
|  |                 if (ary[1].Length != 2) ary[1].PadRight(2); | ||||||
|  |                 tmp += String.Join("\t", ary) + "\n"; | ||||||
|  |             } | ||||||
|  |             am.richTextBox1.Text = tmp; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         private void Btn_Close_Click(object sender, EventArgs e) |         private void Btn_Close_Click(object sender, EventArgs e) | ||||||
|   | |||||||
| @@ -8,6 +8,7 @@ using System.Text; | |||||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||||
| using System.Windows.Forms; | using System.Windows.Forms; | ||||||
| using WindowsFormsApp1; | using WindowsFormsApp1; | ||||||
|  | using WindowsFormsApp1.Mac; | ||||||
|  |  | ||||||
| namespace UniMarc.마크 | namespace UniMarc.마크 | ||||||
| { | { | ||||||
| @@ -308,48 +309,37 @@ namespace UniMarc.마크 | |||||||
|         private void Btn_OutPut_Click(object sender, EventArgs e) |         private void Btn_OutPut_Click(object sender, EventArgs e) | ||||||
|         { |         { | ||||||
|             String_Text st = new String_Text(); |             String_Text st = new String_Text(); | ||||||
|             string Marc_data = string.Empty; |             Set_Macro sm = new Set_Macro(); | ||||||
|  |  | ||||||
|  |             string FileEncodingType = ""; | ||||||
|  |  | ||||||
|  |             switch (cb_EncodingType.SelectedIndex) | ||||||
|  |             { | ||||||
|  |                 case 0: FileEncodingType = "ANSI"; break; | ||||||
|  |                 case 1: FileEncodingType = "UTF-8"; break; | ||||||
|  |                 case 2: FileEncodingType = "UniCode"; break; | ||||||
|  |                 default: break; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             string[] MarcArray = new string[dataGridView1.RowCount]; | ||||||
|             for (int a = 0; a < dataGridView1.Rows.Count; a++) |             for (int a = 0; a < dataGridView1.Rows.Count; a++) | ||||||
|             { |             { | ||||||
|                 if (!(bool)dataGridView1.Rows[a].Cells["Check"].Value) continue; |                 if (dataGridView1.Rows[a].Cells["marc"].Value.ToString() == "" && | ||||||
|  |                     dataGridView1.Rows[a].Cells["marc"].Value == null) | ||||||
|                 if (dataGridView1.Rows[a].Cells["Marc"].Value.ToString() == "" && |  | ||||||
|                     dataGridView1.Rows[a].Cells["Marc"].Value == null) |  | ||||||
|                     continue; |                     continue; | ||||||
|  |  | ||||||
|                 string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString(); |                 if (dataGridView1.Rows[a].Cells["colCheck"].Value.ToString() != "T") | ||||||
|  |                     continue; | ||||||
|  |  | ||||||
|  |                 string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString().Replace("₩", "\\"); | ||||||
|                 marc = st.ConvertMarcType(marc); |                 marc = st.ConvertMarcType(marc); | ||||||
|                 marc = st.ApplyMark(marc); |  | ||||||
|                 marc = st.made_Ori_marc(marc); |  | ||||||
|  |  | ||||||
|                 Marc_data += marc.Replace("₩", "\\"); |                 MarcArray[a] = marc; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             string FileName; |             sm.ViewMarcArray = MarcArray; | ||||||
|             SaveFileDialog saveFileDialog = new SaveFileDialog(); |             sm.FileType = FileEncodingType; | ||||||
|             saveFileDialog.Title = "저장 경로를 지정하세요."; |             sm.Show(); | ||||||
|             saveFileDialog.OverwritePrompt = true; |  | ||||||
|             saveFileDialog.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*"; |  | ||||||
|  |  | ||||||
|             if (saveFileDialog.ShowDialog() == DialogResult.OK) |  | ||||||
|             { |  | ||||||
|                 if (cb_EncodingType.SelectedIndex == 0) |  | ||||||
|                 { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     System.IO.File.WriteAllText(FileName, Marc_data, Encoding.Default); |  | ||||||
|                 } |  | ||||||
|                 else if (cb_EncodingType.SelectedIndex == 1) |  | ||||||
|                 { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     System.IO.File.WriteAllText(FileName, Marc_data, Encoding.UTF8); |  | ||||||
|                 } |  | ||||||
|                 else if (cb_EncodingType.SelectedIndex == 2) |  | ||||||
|                 { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     System.IO.File.WriteAllText(FileName, Marc_data, Encoding.Unicode); |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -85,7 +85,8 @@ namespace WindowsFormsApp1.Mac | |||||||
|             } |             } | ||||||
|             url = url.Replace("http", "https"); |             url = url.Replace("http", "https"); | ||||||
|  |  | ||||||
|             webBrowser1.Navigate(url + "/r/newReading/member/loginForm.jsp"); |             //webBrowser1.Navigate(url + "/r/newReading/member/loginForm.jsp"); | ||||||
|  |             webBrowser1.Document.GetElementById("headerLoginBtn").InvokeMember("click"); | ||||||
|             bool isWebComplite = false; |             bool isWebComplite = false; | ||||||
|  |  | ||||||
|             while (!isWebComplite) |             while (!isWebComplite) | ||||||
|   | |||||||
| @@ -109,7 +109,8 @@ namespace WindowsFormsApp1.DLS | |||||||
|             } |             } | ||||||
|             url = url.Replace("http", "https"); |             url = url.Replace("http", "https"); | ||||||
|  |  | ||||||
|             webBrowser1.Navigate(url + "/r/newReading/member/loginForm.jsp"); |             //webBrowser1.Navigate(url + "/r/newReading/member/loginForm.jsp"); | ||||||
|  |             webBrowser1.Document.GetElementById("headerLoginBtn").InvokeMember("click"); | ||||||
|             bool isWebComplite = false; |             bool isWebComplite = false; | ||||||
|  |  | ||||||
|             while (!isWebComplite) |             while (!isWebComplite) | ||||||
|   | |||||||
| @@ -173,46 +173,37 @@ namespace WindowsFormsApp1.Mac | |||||||
|         private void btn_file_save_Click(object sender, EventArgs e) |         private void btn_file_save_Click(object sender, EventArgs e) | ||||||
|         { |         { | ||||||
|             String_Text st = new String_Text(); |             String_Text st = new String_Text(); | ||||||
|             string Marc_data = string.Empty; |             Set_Macro sm = new Set_Macro(); | ||||||
|  |  | ||||||
|  |             string FileEncodingType = ""; | ||||||
|  |  | ||||||
|  |             switch (cb_EncodingType.SelectedIndex) | ||||||
|  |             { | ||||||
|  |                 case 0: FileEncodingType = "ANSI"; break; | ||||||
|  |                 case 1: FileEncodingType = "UTF-8"; break; | ||||||
|  |                 case 2: FileEncodingType = "UniCode"; break; | ||||||
|  |                 default: break; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             string[] MarcArray = new string[dataGridView1.RowCount]; | ||||||
|             for (int a = 0; a < dataGridView1.Rows.Count; a++) |             for (int a = 0; a < dataGridView1.Rows.Count; a++) | ||||||
|             { |             { | ||||||
|                 if (dataGridView1.Rows[a].Cells["Marc"].Value.ToString() == "" && |                 if (dataGridView1.Rows[a].Cells["marc"].Value.ToString() == "" && | ||||||
|                     dataGridView1.Rows[a].Cells["Marc"].Value == null) |                     dataGridView1.Rows[a].Cells["marc"].Value == null) | ||||||
|                     continue; |                     continue; | ||||||
|  |  | ||||||
|                 string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString(); |                 if (dataGridView1.Rows[a].Cells["colCheck"].Value.ToString() != "T") | ||||||
|  |                     continue; | ||||||
|  |  | ||||||
|  |                 string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString().Replace("₩", "\\"); | ||||||
|                 marc = st.ConvertMarcType(marc); |                 marc = st.ConvertMarcType(marc); | ||||||
|                 marc = st.ApplyMark(marc); |  | ||||||
|                 marc = st.made_Ori_marc(marc); |  | ||||||
|  |  | ||||||
|                 Marc_data += marc.Replace("₩", "\\"); |                 MarcArray[a] = marc; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             string FileName; |             sm.ViewMarcArray = MarcArray; | ||||||
|             SaveFileDialog saveFileDialog = new SaveFileDialog(); |             sm.FileType = FileEncodingType; | ||||||
|             saveFileDialog.Title = "저장 경로를 지정하세요."; |             sm.Show(); | ||||||
|             saveFileDialog.OverwritePrompt = true; |  | ||||||
|             saveFileDialog.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*"; |  | ||||||
|  |  | ||||||
|             if (saveFileDialog.ShowDialog() == DialogResult.OK) |  | ||||||
|             { |  | ||||||
|                 if (cb_EncodingType.SelectedIndex == 0) |  | ||||||
|                 { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     File.WriteAllText(FileName, Marc_data, Encoding.Default); |  | ||||||
|                 } |  | ||||||
|                 else if (cb_EncodingType.SelectedIndex == 1) |  | ||||||
|                 { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     File.WriteAllText(FileName, Marc_data, Encoding.UTF8); |  | ||||||
|                 } |  | ||||||
|                 else if (cb_EncodingType.SelectedIndex == 2) |  | ||||||
|                 { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     File.WriteAllText(FileName, Marc_data, Encoding.Unicode); |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         private void btn_close_Click(object sender, EventArgs e) |         private void btn_close_Click(object sender, EventArgs e) | ||||||
|   | |||||||
| @@ -67,7 +67,7 @@ namespace UniMarc | |||||||
|                 if (tb_URL.Text.Contains("searchResultAllList")) |                 if (tb_URL.Text.Contains("searchResultAllList")) | ||||||
|                     InitCrowling(); |                     InitCrowling(); | ||||||
|  |  | ||||||
|                 if (tb_URL.Text.Contains("searchResultEditonList")) |                 if (tb_URL.Text.Contains("searchResultEditonList") && isAll)    // 전체 옮기기 클릭때만 실행. | ||||||
|                     SearchResultEditonList(); |                     SearchResultEditonList(); | ||||||
|  |  | ||||||
|                 if (tb_URL.Text.Contains("searchResultDetail")) |                 if (tb_URL.Text.Contains("searchResultDetail")) | ||||||
|   | |||||||
							
								
								
									
										703
									
								
								unimarc/unimarc/마크/Marc_Macro_Sub.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										703
									
								
								unimarc/unimarc/마크/Marc_Macro_Sub.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,703 @@ | |||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Linq; | ||||||
|  | using System.Text; | ||||||
|  | using System.Threading.Tasks; | ||||||
|  | using System.Web.UI.WebControls; | ||||||
|  | using WindowsFormsApp1; | ||||||
|  |  | ||||||
|  | namespace UniMarc.마크 | ||||||
|  | { | ||||||
|  |     internal class Macro_Gudu | ||||||
|  |     { | ||||||
|  |         String_Text st = new String_Text(); | ||||||
|  |         public Macro_Gudu() { } | ||||||
|  |  | ||||||
|  |         public Macro_Gudu(string fileType) | ||||||
|  |         { | ||||||
|  |             FileType = fileType; | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         public string[,] MacroList = {      // 55 | ||||||
|  |             { "0", "020", "$c앞에 : 입력" }, | ||||||
|  |             { "1", "110", ". 한칸 뒤에 $b삽입 (710과 비교)" }, | ||||||
|  |             { "2", "245", "두번째 $a앞에 : 입력" }, | ||||||
|  |             { "3", "245", "$b앞에 : 입력" }, | ||||||
|  |             { "4", "245", "$n앞에 , 입력" }, | ||||||
|  |  | ||||||
|  |             { "5", "245", "$x앞에 = 입력" }, | ||||||
|  |             { "6", "245", "$d앞에 / 입력" }, | ||||||
|  |             { "7", "245", "$d앞에 ,, 를 ,로 변경" }, | ||||||
|  |             { "8", "245", "$p 앞에 $n이 나온 경우 , 적용, $p앞에 $n이 없는 경우 . 적용" }, | ||||||
|  |             { "9", "245", "$e 앞에 , 적용" }, | ||||||
|  |  | ||||||
|  |             { "10", "246", "$i뒤의 :뒤를 띄움" }, | ||||||
|  |             { "11", "246", "$b앞에 : 입력" }, | ||||||
|  |             { "12", "246", "$n앞에 . 입력" }, | ||||||
|  |             { "13", "246", "$p 앞에 $n이 나온 경우 , 적용, $p앞에 $n이 없는 경우 . 적용" }, | ||||||
|  |             { "14", "246", "$g앞에 \" \" 입력" }, | ||||||
|  |  | ||||||
|  |             { "15", "260", "두 번째 $a앞에 ; 입력" }, | ||||||
|  |             { "16", "260", "$b앞에 : 입력" }, | ||||||
|  |             { "17", "260", "$c앞에 , 입력" }, | ||||||
|  |             { "18", "300", "$b앞에 : 입력" }, | ||||||
|  |             { "19", "300", "$c 앞에 ; 입력" }, | ||||||
|  |  | ||||||
|  |             { "20", "300", "$e 앞에 + 입력" }, | ||||||
|  |             { "21", "440", "$n앞에 . 입력" }, | ||||||
|  |             { "22", "440", "$p 앞에 $n이 나온 경우 , 적용, $p앞에 $n이 없는 경우 . 적용" }, | ||||||
|  |             { "23", "440", "$v앞에 ; 입력" }, | ||||||
|  |             { "24", "440", "$x앞에 = 입력" }, | ||||||
|  |  | ||||||
|  |             { "25", "830", "$n앞에 . 입력" }, | ||||||
|  |             { "26", "830", "$p 앞에 $n이 나온 경우 , 적용, $p앞에 $n이 없는 경우 . 적용" }, | ||||||
|  |             { "27", "830", "$v앞에 ; 입력" }, | ||||||
|  |         | ||||||
|  |             { "28", "082", "태그삭제" }, | ||||||
|  |             { "29", "111", "태그삭제" }, | ||||||
|  |             { "30", "520", "태그삭제" }, | ||||||
|  |             { "31", "536", "태그삭제" }, | ||||||
|  |             { "32", "546", "태그삭제" }, | ||||||
|  |             { "33", "650", "태그삭제" }, | ||||||
|  |  | ||||||
|  |             { "34", "049", "지시기호 [0 ]으로 수정" }, | ||||||
|  |             { "35", "100", "지시기호 [1 ]으로 수정" }, | ||||||
|  |             { "36", "100", "지시기호 [  ]으로 수정" }, | ||||||
|  |             { "37", "490", "지시기호 [10]으로 수정" }, | ||||||
|  |             { "38", "500", "지시기호 [  ]으로 수정" }, | ||||||
|  |             { "39", "505", "지시기호 [00]으로 수정" }, | ||||||
|  |             { "40", "700", "지시기호 [1 ]으로 수정" }, | ||||||
|  |             { "41", "710", "지시기호 [  ]으로 수정" }, | ||||||
|  |             { "42", "740", "지시기호 [02]으로 수정" }, | ||||||
|  |             { "43", "830", "지시기호 [ 0]으로 수정" }, | ||||||
|  |             { "44", "900", "지시기호 [10]으로 수정" }, | ||||||
|  |             { "45", "910", "지시기호 [ 0]으로 수정" }, | ||||||
|  |             { "46", "940", "지시기호 [0 ]으로 수정" }, | ||||||
|  |             { "47", "950", "지시기호 [0 ]으로 수정" }, | ||||||
|  |  | ||||||
|  |             { "48", "245", "245가 괄호 시작일 경우 [20], 괄호 시작이 아니며 100이나 110태그 사용시 [10], 해당 없을시 [00]" }, | ||||||
|  |  | ||||||
|  |             ///////// | ||||||
|  |  | ||||||
|  |             // { "49", "245", "245b -> 740a로 복사" }, | ||||||
|  |             // { "50", "440", "440a -> 490a, 830a로 각각 복사" }, | ||||||
|  |             // { "51", "440", "440x -> 490a로 복사" }, | ||||||
|  |             // { "52", "440", "440n p x -> 490v [p-n-v 순서]로 변환" }, | ||||||
|  |             // { "53", "440", "440n p x -> 830 n p v로 변환" }, | ||||||
|  |             //  | ||||||
|  |             // { "54", "525", "525a를 500a로 부출 후 삭제" }, | ||||||
|  |  | ||||||
|  |         }; | ||||||
|  |  | ||||||
|  |         string TargetMarc; | ||||||
|  |         bool isAuthorTag = false; | ||||||
|  |         public string FileType = "ANSI"; | ||||||
|  |  | ||||||
|  |         public string MacroMarc(string ViewMarc, List<string> idx) | ||||||
|  |         { | ||||||
|  |             return RunningMacro(ViewMarc, idx.ToArray()); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         public string MacroMarc(string ViewMarc, string[] idx) | ||||||
|  |         { | ||||||
|  |             return RunningMacro(ViewMarc, idx); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string RunningMacro(string ViewMarc, string[] idx) | ||||||
|  |         { | ||||||
|  |             List<string> SplitMarc = new List<string>(ViewMarc.Split('\n')); | ||||||
|  |              | ||||||
|  |             for (int a = 0; a < SplitMarc.Count; a++) | ||||||
|  |             { | ||||||
|  |                 isAuthorTag = false; | ||||||
|  |                 if (SplitMarc[a].Length < 2) continue; | ||||||
|  |                 string ContentTag = SplitMarc[a].Substring(0, 3); | ||||||
|  |  | ||||||
|  |                 TargetMarc = ViewMarc; | ||||||
|  |                 SplitMarc[a] = Macro_Index(idx, ContentTag, SplitMarc[a]); | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             // 반출용 마크로 변환 | ||||||
|  |              | ||||||
|  |  | ||||||
|  |             return st.made_Ori_marc(String.Join("\n", SplitMarc)); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Macro_Index(string[] idx, string ContentTag, string Content) | ||||||
|  |         { | ||||||
|  |             string Target = Content; | ||||||
|  |             foreach (string i in idx) | ||||||
|  |             { | ||||||
|  |                 switch (ContentTag) | ||||||
|  |                 { | ||||||
|  |                     case "020": Target = Index_020(i, Target.Split('▼')); break; | ||||||
|  |                     case "049": Target = Index_049(i, Target.Split('▼')); break; | ||||||
|  |                     case "082": Target = Index_082(i, Target.Split('▼')); break; | ||||||
|  |                     case "100": Target = Index_100(i, Target.Split('▼')); break; | ||||||
|  |                     case "110": Target = Index_110(i, Target.Split('▼')); break; | ||||||
|  |                     case "111": Target = Index_111(i, Target.Split('▼')); break; | ||||||
|  |                     case "245": Target = Index_245(i, Target.Split('▼')); break; | ||||||
|  |                     case "246": Target = Index_246(i, Target.Split('▼')); break; | ||||||
|  |                     case "260": Target = Index_260(i, Target.Split('▼')); break; | ||||||
|  |                     case "300": Target = Index_300(i, Target.Split('▼')); break; | ||||||
|  |                     case "440": Target = Index_440(i, Target.Split('▼')); break; | ||||||
|  |                     case "490": Target = Index_490(i, Target.Split('▼')); break; | ||||||
|  |                     case "500": Target = Index_500(i, Target.Split('▼')); break; | ||||||
|  |                     case "505": Target = Index_505(i, Target.Split('▼')); break; | ||||||
|  |                     case "520": Target = Index_520(i, Target.Split('▼')); break; | ||||||
|  |                     case "536": Target = Index_536(i, Target.Split('▼')); break; | ||||||
|  |                     case "546": Target = Index_546(i, Target.Split('▼')); break; | ||||||
|  |                     case "650": Target = Index_650(i, Target.Split('▼')); break; | ||||||
|  |                     case "700": Target = Index_700(i, Target.Split('▼')); break; | ||||||
|  |                     case "710": Target = Index_710(i, Target.Split('▼')); break; | ||||||
|  |                     case "740": Target = Index_740(i, Target.Split('▼')); break; | ||||||
|  |                     case "830": Target = Index_830(i, Target.Split('▼')); break; | ||||||
|  |                     case "900": Target = Index_900(i, Target.Split('▼')); break; | ||||||
|  |                     case "910": Target = Index_910(i, Target.Split('▼')); break; | ||||||
|  |                     case "940": Target = Index_940(i, Target.Split('▼')); break; | ||||||
|  |                     case "950": Target = Index_950(i, Target.Split('▼')); break; | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |             return Target; | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 020 매크로 | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="SplitContent">020 태그 내용</param> | ||||||
|  |         /// <returns>020태그 매크로 적용된 내용</returns> | ||||||
|  |         private string Index_020(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 // $c 앞에 $g가 있을 경우 $c 앞에 ":" | ||||||
|  |                 if (SplitContent[a].StartsWith("c") && idx == "0") | ||||||
|  |                     if (SplitContent[a - 1].StartsWith("g")) | ||||||
|  |                         if (!SplitContent[a - 1].EndsWith(":")) | ||||||
|  |                             SplitContent[a - 1] += ":"; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 049 매크로 | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="SplitContent">태그 내용</param> | ||||||
|  |         /// <returns>매크로 적용된 내용</returns> | ||||||
|  |         private string Index_049(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "34") SplitContent[a] = "0 "; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 082 매크로 | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="SplitContent">082 태그 내용</param> | ||||||
|  |         /// <returns>082태그 매크로 적용된 내용</returns> | ||||||
|  |         private string Index_082(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             if (idx == "28") | ||||||
|  |                 return ""; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_100(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             isAuthorTag = true; | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "35") SplitContent[a] = "1 "; | ||||||
|  |                 if (a == 0 && idx == "36") SplitContent[a] = "  "; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 110 매크로 | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="Content">110태그 내용</param> | ||||||
|  |         /// <returns>110태그 매크로 적용된 내용</returns> | ||||||
|  |         private string Index_110(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             isAuthorTag = true; | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |  | ||||||
|  |                 if (idx == "1") | ||||||
|  |                 { | ||||||
|  |                     // $a 뒤에 $b가 있는 경우 $b앞에 "." | ||||||
|  |                     if (SplitContent[a].StartsWith("b")) | ||||||
|  |                         if (SplitContent[a - 1].StartsWith("a")) | ||||||
|  |                             if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                                 SplitContent[a - 1] += "."; | ||||||
|  |  | ||||||
|  |                     // $b 뒤에 $b가 있는 경우 $b앞에 "." | ||||||
|  |                     if (SplitContent[a].StartsWith("b")) | ||||||
|  |                         if (SplitContent[a - 1].StartsWith("b")) | ||||||
|  |                             if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                                 SplitContent[a - 1] += "."; | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 111 매크로 | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="Content">태그 내용</param> | ||||||
|  |         /// <returns>매크로 적용된 내용</returns> | ||||||
|  |         private string Index_111(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             if (idx == "29") | ||||||
|  |                 return ""; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 245 매크로 적용 | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="Content">245태그 내용</param> | ||||||
|  |         /// <returns>245태그 매크로 적용된 내용</returns> | ||||||
|  |         private string Index_245(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |  | ||||||
|  |                 if (SplitContent[a].StartsWith("a") && idx == "48") | ||||||
|  |                 { | ||||||
|  |                     if (SplitContent[a].Contains("(")) | ||||||
|  |                         SplitContent[0] = "20"; | ||||||
|  |                     else if (isAuthorTag) | ||||||
|  |                         SplitContent[0] = "10"; | ||||||
|  |                     else | ||||||
|  |                         SplitContent[0] = "00"; | ||||||
|  |                 } | ||||||
|  |  | ||||||
|  |                 // 두번째 $a 앞에 ":" | ||||||
|  |                 if (SplitContent[a - 1].StartsWith("a") && idx == "2") | ||||||
|  |                     if (SplitContent[a].StartsWith("a")) | ||||||
|  |                         if (!SplitContent[a - 1].EndsWith(":")) | ||||||
|  |                             SplitContent[a - 1] += ":"; | ||||||
|  |                  | ||||||
|  |                 // $b 앞에 ":"적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("b") && idx == "3") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(":")) | ||||||
|  |                         SplitContent[a - 1] += ":"; | ||||||
|  |  | ||||||
|  |                 // $n 앞에 "," 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("n") && idx == "4") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                         SplitContent[a - 1] += ","; | ||||||
|  |  | ||||||
|  |                 // $d 앞에 "/" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("d") && idx == "6") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith("/")) | ||||||
|  |                         SplitContent[a - 1] += "/"; | ||||||
|  |  | ||||||
|  |                 // $d앞에 ,, 를 ,로 변경 | ||||||
|  |                 if (SplitContent[a].StartsWith("d") && idx == "7") | ||||||
|  |                     SplitContent[a] = SplitContent[a].Replace(",,", ","); | ||||||
|  |  | ||||||
|  |  | ||||||
|  |                 // $p 앞에 $n이 나온 경우 "," 적용, $p앞에 $n이 없는 경우 "." 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("p") && idx == "8") | ||||||
|  |                 { | ||||||
|  |                     if (SplitContent[a - 1].StartsWith("n")) | ||||||
|  |                     { | ||||||
|  |                         if (!SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                             SplitContent[a - 1] += ","; | ||||||
|  |                     } | ||||||
|  |                     else | ||||||
|  |                     { | ||||||
|  |                         if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                             SplitContent[a - 1] += "."; | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |  | ||||||
|  |                 // $x 앞에 "=" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("x") && idx == "5") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith("=")) | ||||||
|  |                         SplitContent[a - 1] += "="; | ||||||
|  |  | ||||||
|  |                 // $e 앞에 "," 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("e") && idx == "9") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                         SplitContent[a - 1] += ","; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 246 매크로 적용 | ||||||
|  |         /// </summary> | ||||||
|  |         /// <param name="Content">245태그 내용</param> | ||||||
|  |         /// <returns>245태그 매크로 적용된 내용</returns> | ||||||
|  |         private string Index_246(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             char[] Gudo = { ';', ':', '.', ',', '/' }; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |  | ||||||
|  |                 // $a 앞에 $i가 나온경우 $a 앞에 ":"적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("a") && idx == "10") | ||||||
|  |                     if (SplitContent[a - 1].StartsWith("i")) | ||||||
|  |                         if (!SplitContent[a - 1].EndsWith(":")) | ||||||
|  |                             SplitContent[a - 1] += ":"; | ||||||
|  |  | ||||||
|  |                 // $b 앞에는 ":"적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("b") && idx == "11") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(":")) | ||||||
|  |                         SplitContent[a - 1] += ":"; | ||||||
|  |  | ||||||
|  |                 // $n 앞에는 "." 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("n") && idx == "12") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                         SplitContent[a - 1] += "."; | ||||||
|  |  | ||||||
|  |                 // $p 앞에 $n이 나온 경우 "," 적용, $p앞에 $n이 없는 경우 "."적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("p") && idx == "13") | ||||||
|  |                 { | ||||||
|  |                     if (SplitContent[a - 1].StartsWith("n")) | ||||||
|  |                     { | ||||||
|  |                         if (!SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                             SplitContent[a - 1] += ","; | ||||||
|  |                     } | ||||||
|  |                     else | ||||||
|  |                     { | ||||||
|  |                         if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                             SplitContent[a - 1] += "."; | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |  | ||||||
|  |                 // $g 앞에는 "" | ||||||
|  |                 if (SplitContent[a].StartsWith("g") && idx == "14") | ||||||
|  |                 { | ||||||
|  |                     SplitContent[a - 1].TrimEnd(Gudo); | ||||||
|  |                     SplitContent[a - 1].TrimEnd(' '); | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_260(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |  | ||||||
|  |                 // 두번째 $a 앞에 ";" | ||||||
|  |                 if (SplitContent[a].StartsWith("a") && idx == "15") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(";")) | ||||||
|  |                         SplitContent[a - 1] += ";"; | ||||||
|  |  | ||||||
|  |                 // $b 앞에는 ":" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("b") && idx == "16") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(":")) | ||||||
|  |                         SplitContent[a - 1] += ":"; | ||||||
|  |  | ||||||
|  |                 // $c 앞에는 "," 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("c") && idx == "17") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                         SplitContent[a - 1] += ","; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_300(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |  | ||||||
|  |                 // $b 앞에는 ":" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("b") && idx == "18") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(":")) | ||||||
|  |                         SplitContent[a - 1] += ":"; | ||||||
|  |  | ||||||
|  |                 // $c 앞에는 ";" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("c") && idx == "19") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(";")) | ||||||
|  |                         SplitContent[a - 1] += ";"; | ||||||
|  |  | ||||||
|  |                 // $e 앞에는 "+" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("e") && idx == "20") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith("+")) | ||||||
|  |                         SplitContent[a - 1] += "+"; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_440(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |  | ||||||
|  |                 // $n 앞에는 "." 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("n") && idx == "21") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                         SplitContent[a - 1] += "."; | ||||||
|  |  | ||||||
|  |                 // $p 앞에 $n이 나온 경우 "," 적용, $p앞에 $n이 없는 경우 "."적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("p") && idx == "22") | ||||||
|  |                 { | ||||||
|  |                     if (SplitContent[a - 1].StartsWith("n")) | ||||||
|  |                     { | ||||||
|  |                         if (SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                             SplitContent[a - 1] += ","; | ||||||
|  |                     } | ||||||
|  |                     else | ||||||
|  |                     { | ||||||
|  |                         if (SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                             SplitContent[a - 1] += "."; | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |  | ||||||
|  |                 // $v 앞에는 ";" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("v") && idx == "23") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(";")) | ||||||
|  |                         SplitContent[a - 1] += ";"; | ||||||
|  |  | ||||||
|  |                 // $x 앞에는 "=" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("x") && idx == "24") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith("=")) | ||||||
|  |                         SplitContent[a - 1] += "="; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_490(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "37") SplitContent[a] = "10"; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_500(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "38") SplitContent[a] = "  "; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_505(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "39") SplitContent[a] = "00"; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_520(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             if (idx == "30") return ""; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |         private string Index_536(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             if (idx == "31") return ""; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |         private string Index_546(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             if (idx == "32") return ""; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |         private string Index_650(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             if (idx == "33") return ""; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_700(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "40") SplitContent[a] = "1 "; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_710(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "41") SplitContent[a] = "  "; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_740(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "42") SplitContent[a] = "02"; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_830(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= 1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "43") SplitContent[a] = " 0"; | ||||||
|  |  | ||||||
|  |                 // $n 앞에는 "." 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("n") && idx == "25") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                         SplitContent[a - 1] += "."; | ||||||
|  |  | ||||||
|  |                 // $p 앞에 $n이 나온 경우 "," 적용, $p앞에 $n이 없는 경우 "."적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("p") && idx == "26") | ||||||
|  |                 { | ||||||
|  |                     if (SplitContent[a - 1].StartsWith("n")) | ||||||
|  |                     { | ||||||
|  |                         if (SplitContent[a - 1].EndsWith(",")) | ||||||
|  |                             SplitContent[a - 1] += ","; | ||||||
|  |                     } | ||||||
|  |                     else | ||||||
|  |                     { | ||||||
|  |                         if (SplitContent[a - 1].EndsWith(".")) | ||||||
|  |                             SplitContent[a - 1] += "."; | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |  | ||||||
|  |                 // $v 앞에는 ";" 적용 | ||||||
|  |                 if (SplitContent[a].StartsWith("v") && idx == "27") | ||||||
|  |                     if (!SplitContent[a - 1].EndsWith(";")) | ||||||
|  |                         SplitContent[a - 1] += ";"; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_900(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "44") SplitContent[a] = "10"; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_910(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "45") SplitContent[a] = " 0"; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_940(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "46") SplitContent[a] = "0 "; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private string Index_950(string idx, string[] SplitContent) | ||||||
|  |         { | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < SplitContent.Length; a++) | ||||||
|  |             { | ||||||
|  |                 if (a <= -1) continue; | ||||||
|  |  | ||||||
|  |                 if (a == 0 && idx == "47") SplitContent[a] = "0 "; | ||||||
|  |             } | ||||||
|  |             return string.Join("▼", SplitContent); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										66
									
								
								unimarc/unimarc/마크/Marc_Plan.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										66
									
								
								unimarc/unimarc/마크/Marc_Plan.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -28,13 +28,13 @@ | |||||||
|         /// </summary> |         /// </summary> | ||||||
|         private void InitializeComponent() |         private void InitializeComponent() | ||||||
|         { |         { | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan)); |             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan)); | ||||||
|             this.panel1 = new System.Windows.Forms.Panel(); |             this.panel1 = new System.Windows.Forms.Panel(); | ||||||
|             this.panel4 = new System.Windows.Forms.Panel(); |             this.panel4 = new System.Windows.Forms.Panel(); | ||||||
| @@ -226,7 +226,7 @@ | |||||||
|             this.panel3.Controls.Add(this.cb_FirstAuthor); |             this.panel3.Controls.Add(this.cb_FirstAuthor); | ||||||
|             this.panel3.Controls.Add(this.label3); |             this.panel3.Controls.Add(this.label3); | ||||||
|             this.panel3.Controls.Add(this.label4); |             this.panel3.Controls.Add(this.label4); | ||||||
|             this.panel3.Location = new System.Drawing.Point(10, 5); |             this.panel3.Location = new System.Drawing.Point(10, 3); | ||||||
|             this.panel3.Name = "panel3"; |             this.panel3.Name = "panel3"; | ||||||
|             this.panel3.Size = new System.Drawing.Size(566, 29); |             this.panel3.Size = new System.Drawing.Size(566, 29); | ||||||
|             this.panel3.TabIndex = 7; |             this.panel3.TabIndex = 7; | ||||||
| @@ -351,14 +351,14 @@ | |||||||
|             this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; |             this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control; | ||||||
|             this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; |             this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; | ||||||
|             this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; |             this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; | ||||||
|             dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |             dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|             dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.AppWorkspace; |             dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.AppWorkspace; | ||||||
|             dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |             dataGridViewCellStyle15.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|             dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; |             dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|             dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |             dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|             dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |             dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|             dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |             dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|             this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; |             this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15; | ||||||
|             this.dataGridView1.ColumnHeadersHeight = 25; |             this.dataGridView1.ColumnHeadersHeight = 25; | ||||||
|             this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |             this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; | ||||||
|             this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |             this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
| @@ -389,7 +389,7 @@ | |||||||
|             this.dataGridView1.Location = new System.Drawing.Point(0, 0); |             this.dataGridView1.Location = new System.Drawing.Point(0, 0); | ||||||
|             this.dataGridView1.Name = "dataGridView1"; |             this.dataGridView1.Name = "dataGridView1"; | ||||||
|             this.dataGridView1.RowTemplate.Height = 23; |             this.dataGridView1.RowTemplate.Height = 23; | ||||||
|             this.dataGridView1.Size = new System.Drawing.Size(1462, 544); |             this.dataGridView1.Size = new System.Drawing.Size(1462, 549); | ||||||
|             this.dataGridView1.TabIndex = 1; |             this.dataGridView1.TabIndex = 1; | ||||||
|             this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); |             this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick); | ||||||
|             this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); |             this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick); | ||||||
| @@ -417,8 +417,8 @@ | |||||||
|             //  |             //  | ||||||
|             // reg_num |             // reg_num | ||||||
|             //  |             //  | ||||||
|             dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); |             dataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); | ||||||
|             this.reg_num.DefaultCellStyle = dataGridViewCellStyle2; |             this.reg_num.DefaultCellStyle = dataGridViewCellStyle16; | ||||||
|             this.reg_num.FillWeight = 130.9363F; |             this.reg_num.FillWeight = 130.9363F; | ||||||
|             this.reg_num.HeaderText = "등록번호"; |             this.reg_num.HeaderText = "등록번호"; | ||||||
|             this.reg_num.Name = "reg_num"; |             this.reg_num.Name = "reg_num"; | ||||||
| @@ -426,8 +426,8 @@ | |||||||
|             //  |             //  | ||||||
|             // class_code |             // class_code | ||||||
|             //  |             //  | ||||||
|             dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); |             dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); | ||||||
|             this.class_code.DefaultCellStyle = dataGridViewCellStyle3; |             this.class_code.DefaultCellStyle = dataGridViewCellStyle17; | ||||||
|             this.class_code.FillWeight = 76.41504F; |             this.class_code.FillWeight = 76.41504F; | ||||||
|             this.class_code.HeaderText = "분류"; |             this.class_code.HeaderText = "분류"; | ||||||
|             this.class_code.Name = "class_code"; |             this.class_code.Name = "class_code"; | ||||||
| @@ -435,8 +435,8 @@ | |||||||
|             //  |             //  | ||||||
|             // author_code |             // author_code | ||||||
|             //  |             //  | ||||||
|             dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); |             dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); | ||||||
|             this.author_code.DefaultCellStyle = dataGridViewCellStyle4; |             this.author_code.DefaultCellStyle = dataGridViewCellStyle18; | ||||||
|             this.author_code.FillWeight = 77.02635F; |             this.author_code.FillWeight = 77.02635F; | ||||||
|             this.author_code.HeaderText = "저자기호"; |             this.author_code.HeaderText = "저자기호"; | ||||||
|             this.author_code.Name = "author_code"; |             this.author_code.Name = "author_code"; | ||||||
| @@ -444,8 +444,8 @@ | |||||||
|             //  |             //  | ||||||
|             // volume |             // volume | ||||||
|             //  |             //  | ||||||
|             dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); |             dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); | ||||||
|             this.volume.DefaultCellStyle = dataGridViewCellStyle5; |             this.volume.DefaultCellStyle = dataGridViewCellStyle19; | ||||||
|             this.volume.FillWeight = 38.80909F; |             this.volume.FillWeight = 38.80909F; | ||||||
|             this.volume.HeaderText = "V"; |             this.volume.HeaderText = "V"; | ||||||
|             this.volume.Name = "volume"; |             this.volume.Name = "volume"; | ||||||
| @@ -454,8 +454,8 @@ | |||||||
|             //  |             //  | ||||||
|             // copy |             // copy | ||||||
|             //  |             //  | ||||||
|             dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); |             dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); | ||||||
|             this.copy.DefaultCellStyle = dataGridViewCellStyle6; |             this.copy.DefaultCellStyle = dataGridViewCellStyle20; | ||||||
|             this.copy.FillWeight = 40.14827F; |             this.copy.FillWeight = 40.14827F; | ||||||
|             this.copy.HeaderText = "C"; |             this.copy.HeaderText = "C"; | ||||||
|             this.copy.Name = "copy"; |             this.copy.Name = "copy"; | ||||||
| @@ -464,8 +464,8 @@ | |||||||
|             //  |             //  | ||||||
|             // prefix |             // prefix | ||||||
|             //  |             //  | ||||||
|             dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); |             dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); | ||||||
|             this.prefix.DefaultCellStyle = dataGridViewCellStyle7; |             this.prefix.DefaultCellStyle = dataGridViewCellStyle21; | ||||||
|             this.prefix.FillWeight = 41.51828F; |             this.prefix.FillWeight = 41.51828F; | ||||||
|             this.prefix.HeaderText = "F"; |             this.prefix.HeaderText = "F"; | ||||||
|             this.prefix.Name = "prefix"; |             this.prefix.Name = "prefix"; | ||||||
| @@ -597,7 +597,7 @@ | |||||||
|             this.panel2.Controls.Add(this.tb_ISBN); |             this.panel2.Controls.Add(this.tb_ISBN); | ||||||
|             this.panel2.Controls.Add(this.btn_ChangeTag); |             this.panel2.Controls.Add(this.btn_ChangeTag); | ||||||
|             this.panel2.Controls.Add(this.tb_SearchTag); |             this.panel2.Controls.Add(this.tb_SearchTag); | ||||||
|             this.panel2.Location = new System.Drawing.Point(596, 5); |             this.panel2.Location = new System.Drawing.Point(596, 3); | ||||||
|             this.panel2.Name = "panel2"; |             this.panel2.Name = "panel2"; | ||||||
|             this.panel2.Size = new System.Drawing.Size(412, 29); |             this.panel2.Size = new System.Drawing.Size(412, 29); | ||||||
|             this.panel2.TabIndex = 8; |             this.panel2.TabIndex = 8; | ||||||
| @@ -609,7 +609,7 @@ | |||||||
|             this.panel5.Dock = System.Windows.Forms.DockStyle.Top; |             this.panel5.Dock = System.Windows.Forms.DockStyle.Top; | ||||||
|             this.panel5.Location = new System.Drawing.Point(0, 35); |             this.panel5.Location = new System.Drawing.Point(0, 35); | ||||||
|             this.panel5.Name = "panel5"; |             this.panel5.Name = "panel5"; | ||||||
|             this.panel5.Size = new System.Drawing.Size(1462, 40); |             this.panel5.Size = new System.Drawing.Size(1462, 35); | ||||||
|             this.panel5.TabIndex = 9; |             this.panel5.TabIndex = 9; | ||||||
|             //  |             //  | ||||||
|             // panel6 |             // panel6 | ||||||
| @@ -1008,9 +1008,9 @@ | |||||||
|             this.panel7.Controls.Add(this.checkBox1); |             this.panel7.Controls.Add(this.checkBox1); | ||||||
|             this.panel7.Controls.Add(this.dataGridView1); |             this.panel7.Controls.Add(this.dataGridView1); | ||||||
|             this.panel7.Dock = System.Windows.Forms.DockStyle.Fill; |             this.panel7.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|             this.panel7.Location = new System.Drawing.Point(0, 75); |             this.panel7.Location = new System.Drawing.Point(0, 70); | ||||||
|             this.panel7.Name = "panel7"; |             this.panel7.Name = "panel7"; | ||||||
|             this.panel7.Size = new System.Drawing.Size(1462, 544); |             this.panel7.Size = new System.Drawing.Size(1462, 549); | ||||||
|             this.panel7.TabIndex = 11; |             this.panel7.TabIndex = 11; | ||||||
|             //  |             //  | ||||||
|             // printDocument1 |             // printDocument1 | ||||||
|   | |||||||
| @@ -461,7 +461,7 @@ namespace WindowsFormsApp1.Mac | |||||||
|         private void btn_Output_Click(object sender, EventArgs e) |         private void btn_Output_Click(object sender, EventArgs e) | ||||||
|         { |         { | ||||||
|             String_Text st = new String_Text(); |             String_Text st = new String_Text(); | ||||||
|             string Marc_data = string.Empty; |             Set_Macro sm = new Set_Macro(); | ||||||
|  |  | ||||||
|             string FileEncodingType = ""; |             string FileEncodingType = ""; | ||||||
|  |  | ||||||
| @@ -473,7 +473,7 @@ namespace WindowsFormsApp1.Mac | |||||||
|                 default: break; |                 default: break; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|  |             string[] MarcArray = new string[dataGridView1.RowCount]; | ||||||
|             for (int a = 0; a < dataGridView1.Rows.Count; a++) |             for (int a = 0; a < dataGridView1.Rows.Count; a++) | ||||||
|             { |             { | ||||||
|                 if (dataGridView1.Rows[a].Cells["marc"].Value.ToString() == "" && |                 if (dataGridView1.Rows[a].Cells["marc"].Value.ToString() == "" && | ||||||
| @@ -483,37 +483,15 @@ namespace WindowsFormsApp1.Mac | |||||||
|                 if (dataGridView1.Rows[a].Cells["colCheck"].Value.ToString() != "T") |                 if (dataGridView1.Rows[a].Cells["colCheck"].Value.ToString() != "T") | ||||||
|                     continue; |                     continue; | ||||||
|  |  | ||||||
|                 string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString(); |                 string marc = dataGridView1.Rows[a].Cells["Marc"].Value.ToString().Replace("₩", "\\"); | ||||||
|                 marc = st.ConvertMarcType(marc); |                 marc = st.ConvertMarcType(marc); | ||||||
|                 marc = st.ApplyMark(marc); |  | ||||||
|                 marc = st.made_Ori_marc(marc, FileEncodingType); |  | ||||||
|  |  | ||||||
|                 Marc_data += marc.Replace("₩", "\\"); |                 MarcArray[a] = marc; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             string FileName; |             sm.ViewMarcArray = MarcArray; | ||||||
|             SaveFileDialog saveFileDialog = new SaveFileDialog(); |             sm.FileType = FileEncodingType; | ||||||
|             saveFileDialog.Title = "저장 경로를 지정하세요."; |             sm.Show(); | ||||||
|             saveFileDialog.OverwritePrompt = true; |  | ||||||
|             saveFileDialog.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*"; |  | ||||||
|              |  | ||||||
|             if (saveFileDialog.ShowDialog() == DialogResult.OK) |  | ||||||
|             { |  | ||||||
|                 if (FileEncodingType == "ANSI") { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     File.WriteAllText(FileName, Marc_data, Encoding.Default); |  | ||||||
|                 } |  | ||||||
|                 else if (FileEncodingType == "UTF-8") { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     File.WriteAllText(FileName, Marc_data, Encoding.UTF8); |  | ||||||
|                 } |  | ||||||
|                 else if (FileEncodingType == "UniCode") { |  | ||||||
|                     FileName = saveFileDialog.FileName; |  | ||||||
|                     File.WriteAllText(FileName, Marc_data, Encoding.Unicode); |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|             MessageBox.Show("반출되었습니다!"); |  | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         #region Grid 드래그 앤 드랍 함수 (현재 사용 중지) (사용하려면 dataGridView1의 AllowDrop 활성화해야함) |         #region Grid 드래그 앤 드랍 함수 (현재 사용 중지) (사용하려면 dataGridView1의 AllowDrop 활성화해야함) | ||||||
|   | |||||||
| @@ -29,7 +29,7 @@ namespace UniMarc.마크 | |||||||
|         /// </summary> |         /// </summary> | ||||||
|         private void InitializeComponent() |         private void InitializeComponent() | ||||||
|         { |         { | ||||||
|             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|             this.panel1 = new System.Windows.Forms.Panel(); |             this.panel1 = new System.Windows.Forms.Panel(); | ||||||
|             this.tb_Search = new System.Windows.Forms.TextBox(); |             this.tb_Search = new System.Windows.Forms.TextBox(); | ||||||
|             this.cb_gu = new System.Windows.Forms.ComboBox(); |             this.cb_gu = new System.Windows.Forms.ComboBox(); | ||||||
| @@ -77,6 +77,7 @@ namespace UniMarc.마크 | |||||||
|             this.tb_Search.Size = new System.Drawing.Size(169, 21); |             this.tb_Search.Size = new System.Drawing.Size(169, 21); | ||||||
|             this.tb_Search.TabIndex = 2; |             this.tb_Search.TabIndex = 2; | ||||||
|             this.tb_Search.Enter += new System.EventHandler(this.tb_Search_Enter); |             this.tb_Search.Enter += new System.EventHandler(this.tb_Search_Enter); | ||||||
|  |             this.tb_Search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_Search_KeyDown); | ||||||
|             this.tb_Search.Leave += new System.EventHandler(this.tb_Search_Leave); |             this.tb_Search.Leave += new System.EventHandler(this.tb_Search_Leave); | ||||||
|             //  |             //  | ||||||
|             // cb_gu |             // cb_gu | ||||||
| @@ -172,14 +173,14 @@ namespace UniMarc.마크 | |||||||
|             this.dataGridView1.AllowUserToAddRows = false; |             this.dataGridView1.AllowUserToAddRows = false; | ||||||
|             this.dataGridView1.AllowUserToDeleteRows = false; |             this.dataGridView1.AllowUserToDeleteRows = false; | ||||||
|             this.dataGridView1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders; |             this.dataGridView1.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders; | ||||||
|             dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |             dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|             dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; |             dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; | ||||||
|             dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |             dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|             dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; |             dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|             dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; |             dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|             dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |             dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|             dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |             dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|             this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; |             this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; | ||||||
|             this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |             this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | ||||||
|             this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |             this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|             this.idx, |             this.idx, | ||||||
|   | |||||||
| @@ -331,5 +331,11 @@ namespace UniMarc.마크 | |||||||
|  |  | ||||||
|             this.Close(); |             this.Close(); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         private void tb_Search_KeyDown(object sender, KeyEventArgs e) | ||||||
|  |         { | ||||||
|  |             if (e.KeyCode == Keys.Enter) | ||||||
|  |                 btn_Search_Click(null, null); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -186,8 +186,8 @@ namespace UniMarc.마크 | |||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 Author[0] = Regex.Replace(Author[0], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline); |                 Author[0] = Regex.Replace(Author[0], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline); | ||||||
|                 Author[1] = Regex.Replace(Author[1], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline); |  | ||||||
|                 Author[1] = st.RemoveWordInBracket(Author[1]); |                 Author[1] = st.RemoveWordInBracket(Author[1]); | ||||||
|  |                 Author[1] = Regex.Replace(Author[1], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline); | ||||||
|  |  | ||||||
|                 AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol(); |                 AuthorSymbol.Symbol sb = new AuthorSymbol.Symbol(); | ||||||
|                 string authorType = cb_authorType.SelectedItem.ToString(); |                 string authorType = cb_authorType.SelectedItem.ToString(); | ||||||
|   | |||||||
							
								
								
									
										212
									
								
								unimarc/unimarc/마크/Set_Macro.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										212
									
								
								unimarc/unimarc/마크/Set_Macro.Designer.cs
									
									
									
										generated
									
									
									
								
							| @@ -28,33 +28,227 @@ | |||||||
|         /// </summary> |         /// </summary> | ||||||
|         private void InitializeComponent() |         private void InitializeComponent() | ||||||
|         { |         { | ||||||
|  |             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); | ||||||
|  |             this.panel1 = new System.Windows.Forms.Panel(); | ||||||
|  |             this.btn_MakeFile = new System.Windows.Forms.Button(); | ||||||
|  |             this.cb_SearchList = new System.Windows.Forms.ComboBox(); | ||||||
|  |             this.btn_ListRemove = new System.Windows.Forms.Button(); | ||||||
|  |             this.btn_ListSave = new System.Windows.Forms.Button(); | ||||||
|  |             this.btn_AddList = new System.Windows.Forms.Button(); | ||||||
|  |             this.btn_Close = new System.Windows.Forms.Button(); | ||||||
|             this.label1 = new System.Windows.Forms.Label(); |             this.label1 = new System.Windows.Forms.Label(); | ||||||
|  |             this.MacroGrid = new System.Windows.Forms.DataGridView(); | ||||||
|  |             this.panel3 = new System.Windows.Forms.Panel(); | ||||||
|  |             this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.TagNum = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.Macro = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.Check = new System.Windows.Forms.DataGridViewCheckBoxColumn(); | ||||||
|  |             this.cb_EncodingType = new System.Windows.Forms.ComboBox(); | ||||||
|  |             this.panel1.SuspendLayout(); | ||||||
|  |             ((System.ComponentModel.ISupportInitialize)(this.MacroGrid)).BeginInit(); | ||||||
|  |             this.panel3.SuspendLayout(); | ||||||
|             this.SuspendLayout(); |             this.SuspendLayout(); | ||||||
|             //  |             //  | ||||||
|  |             // panel1 | ||||||
|  |             //  | ||||||
|  |             this.panel1.BackColor = System.Drawing.SystemColors.AppWorkspace; | ||||||
|  |             this.panel1.Controls.Add(this.cb_EncodingType); | ||||||
|  |             this.panel1.Controls.Add(this.btn_MakeFile); | ||||||
|  |             this.panel1.Controls.Add(this.cb_SearchList); | ||||||
|  |             this.panel1.Controls.Add(this.btn_ListRemove); | ||||||
|  |             this.panel1.Controls.Add(this.btn_ListSave); | ||||||
|  |             this.panel1.Controls.Add(this.btn_AddList); | ||||||
|  |             this.panel1.Controls.Add(this.btn_Close); | ||||||
|  |             this.panel1.Controls.Add(this.label1); | ||||||
|  |             this.panel1.Dock = System.Windows.Forms.DockStyle.Top; | ||||||
|  |             this.panel1.Location = new System.Drawing.Point(0, 0); | ||||||
|  |             this.panel1.Name = "panel1"; | ||||||
|  |             this.panel1.Size = new System.Drawing.Size(900, 35); | ||||||
|  |             this.panel1.TabIndex = 1; | ||||||
|  |             //  | ||||||
|  |             // btn_MakeFile | ||||||
|  |             //  | ||||||
|  |             this.btn_MakeFile.Location = new System.Drawing.Point(668, 6); | ||||||
|  |             this.btn_MakeFile.Name = "btn_MakeFile"; | ||||||
|  |             this.btn_MakeFile.Size = new System.Drawing.Size(75, 23); | ||||||
|  |             this.btn_MakeFile.TabIndex = 5; | ||||||
|  |             this.btn_MakeFile.Text = "마크 반출"; | ||||||
|  |             this.btn_MakeFile.UseVisualStyleBackColor = true; | ||||||
|  |             this.btn_MakeFile.Click += new System.EventHandler(this.btn_MakeFile_Click); | ||||||
|  |             //  | ||||||
|  |             // cb_SearchList | ||||||
|  |             //  | ||||||
|  |             this.cb_SearchList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; | ||||||
|  |             this.cb_SearchList.FormattingEnabled = true; | ||||||
|  |             this.cb_SearchList.Location = new System.Drawing.Point(72, 7); | ||||||
|  |             this.cb_SearchList.Name = "cb_SearchList"; | ||||||
|  |             this.cb_SearchList.Size = new System.Drawing.Size(238, 20); | ||||||
|  |             this.cb_SearchList.TabIndex = 4; | ||||||
|  |             this.cb_SearchList.SelectedIndexChanged += new System.EventHandler(this.cb_SearchList_SelectedIndexChanged); | ||||||
|  |             //  | ||||||
|  |             // btn_ListRemove | ||||||
|  |             //  | ||||||
|  |             this.btn_ListRemove.Location = new System.Drawing.Point(466, 6); | ||||||
|  |             this.btn_ListRemove.Name = "btn_ListRemove"; | ||||||
|  |             this.btn_ListRemove.Size = new System.Drawing.Size(75, 23); | ||||||
|  |             this.btn_ListRemove.TabIndex = 3; | ||||||
|  |             this.btn_ListRemove.Text = "목록 제거"; | ||||||
|  |             this.btn_ListRemove.UseVisualStyleBackColor = true; | ||||||
|  |             this.btn_ListRemove.Click += new System.EventHandler(this.btn_ListRemove_Click); | ||||||
|  |             //  | ||||||
|  |             // btn_ListSave | ||||||
|  |             //  | ||||||
|  |             this.btn_ListSave.Location = new System.Drawing.Point(391, 6); | ||||||
|  |             this.btn_ListSave.Name = "btn_ListSave"; | ||||||
|  |             this.btn_ListSave.Size = new System.Drawing.Size(75, 23); | ||||||
|  |             this.btn_ListSave.TabIndex = 3; | ||||||
|  |             this.btn_ListSave.Text = "목록 저장"; | ||||||
|  |             this.btn_ListSave.UseVisualStyleBackColor = true; | ||||||
|  |             this.btn_ListSave.Click += new System.EventHandler(this.btn_ListSave_Click); | ||||||
|  |             //  | ||||||
|  |             // btn_AddList | ||||||
|  |             //  | ||||||
|  |             this.btn_AddList.Location = new System.Drawing.Point(316, 6); | ||||||
|  |             this.btn_AddList.Name = "btn_AddList"; | ||||||
|  |             this.btn_AddList.Size = new System.Drawing.Size(75, 23); | ||||||
|  |             this.btn_AddList.TabIndex = 3; | ||||||
|  |             this.btn_AddList.Text = "목록 생성"; | ||||||
|  |             this.btn_AddList.UseVisualStyleBackColor = true; | ||||||
|  |             this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click); | ||||||
|  |             //  | ||||||
|  |             // btn_Close | ||||||
|  |             //  | ||||||
|  |             this.btn_Close.Location = new System.Drawing.Point(813, 6); | ||||||
|  |             this.btn_Close.Name = "btn_Close"; | ||||||
|  |             this.btn_Close.Size = new System.Drawing.Size(75, 23); | ||||||
|  |             this.btn_Close.TabIndex = 2; | ||||||
|  |             this.btn_Close.Text = "닫    기"; | ||||||
|  |             this.btn_Close.UseVisualStyleBackColor = true; | ||||||
|  |             this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click); | ||||||
|  |             //  | ||||||
|             // label1 |             // label1 | ||||||
|             //  |             //  | ||||||
|             this.label1.AutoSize = true; |             this.label1.AutoSize = true; | ||||||
|             this.label1.Location = new System.Drawing.Point(371, 219); |             this.label1.Location = new System.Drawing.Point(13, 11); | ||||||
|             this.label1.Name = "label1"; |             this.label1.Name = "label1"; | ||||||
|             this.label1.Size = new System.Drawing.Size(151, 12); |             this.label1.Size = new System.Drawing.Size(57, 12); | ||||||
|             this.label1.TabIndex = 3; |             this.label1.TabIndex = 1; | ||||||
|             this.label1.Text = "마크관리_매크로 문구 설정"; |             this.label1.Text = "목록 검색"; | ||||||
|  |             //  | ||||||
|  |             // MacroGrid | ||||||
|  |             //  | ||||||
|  |             this.MacroGrid.AllowUserToAddRows = false; | ||||||
|  |             this.MacroGrid.AllowUserToDeleteRows = false; | ||||||
|  |             dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; | ||||||
|  |             dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; | ||||||
|  |             dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); | ||||||
|  |             dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; | ||||||
|  |             dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; | ||||||
|  |             dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; | ||||||
|  |             dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|  |             this.MacroGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; | ||||||
|  |             this.MacroGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | ||||||
|  |             this.MacroGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|  |             this.idx, | ||||||
|  |             this.TagNum, | ||||||
|  |             this.Macro, | ||||||
|  |             this.Check}); | ||||||
|  |             this.MacroGrid.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|  |             this.MacroGrid.Location = new System.Drawing.Point(0, 0); | ||||||
|  |             this.MacroGrid.Name = "MacroGrid"; | ||||||
|  |             this.MacroGrid.ReadOnly = true; | ||||||
|  |             this.MacroGrid.RowTemplate.Height = 23; | ||||||
|  |             this.MacroGrid.Size = new System.Drawing.Size(900, 572); | ||||||
|  |             this.MacroGrid.TabIndex = 0; | ||||||
|  |             this.MacroGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.MacroGrid_CellClick); | ||||||
|  |             //  | ||||||
|  |             // panel3 | ||||||
|  |             //  | ||||||
|  |             this.panel3.Controls.Add(this.MacroGrid); | ||||||
|  |             this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|  |             this.panel3.Location = new System.Drawing.Point(0, 35); | ||||||
|  |             this.panel3.Name = "panel3"; | ||||||
|  |             this.panel3.Size = new System.Drawing.Size(900, 572); | ||||||
|  |             this.panel3.TabIndex = 3; | ||||||
|  |             //  | ||||||
|  |             // idx | ||||||
|  |             //  | ||||||
|  |             this.idx.HeaderText = "idx"; | ||||||
|  |             this.idx.Name = "idx"; | ||||||
|  |             this.idx.ReadOnly = true; | ||||||
|  |             this.idx.Visible = false; | ||||||
|  |             this.idx.Width = 60; | ||||||
|  |             //  | ||||||
|  |             // TagNum | ||||||
|  |             //  | ||||||
|  |             this.TagNum.HeaderText = "태그번호"; | ||||||
|  |             this.TagNum.Name = "TagNum"; | ||||||
|  |             this.TagNum.ReadOnly = true; | ||||||
|             //  |             //  | ||||||
|             // Macro |             // Macro | ||||||
|             //  |             //  | ||||||
|  |             this.Macro.HeaderText = "매크로"; | ||||||
|  |             this.Macro.Name = "Macro"; | ||||||
|  |             this.Macro.ReadOnly = true; | ||||||
|  |             this.Macro.Width = 700; | ||||||
|  |             //  | ||||||
|  |             // Check | ||||||
|  |             //  | ||||||
|  |             this.Check.FalseValue = "F"; | ||||||
|  |             this.Check.HeaderText = "V"; | ||||||
|  |             this.Check.Name = "Check"; | ||||||
|  |             this.Check.ReadOnly = true; | ||||||
|  |             this.Check.TrueValue = "T"; | ||||||
|  |             this.Check.Width = 40; | ||||||
|  |             //  | ||||||
|  |             // cb_EncodingType | ||||||
|  |             //  | ||||||
|  |             this.cb_EncodingType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; | ||||||
|  |             this.cb_EncodingType.FormattingEnabled = true; | ||||||
|  |             this.cb_EncodingType.Items.AddRange(new object[] { | ||||||
|  |             "ANSI", | ||||||
|  |             "UTF-8", | ||||||
|  |             "UniCode"}); | ||||||
|  |             this.cb_EncodingType.Location = new System.Drawing.Point(581, 7); | ||||||
|  |             this.cb_EncodingType.Name = "cb_EncodingType"; | ||||||
|  |             this.cb_EncodingType.Size = new System.Drawing.Size(81, 20); | ||||||
|  |             this.cb_EncodingType.TabIndex = 10; | ||||||
|  |             //  | ||||||
|  |             // Set_Macro | ||||||
|  |             //  | ||||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); | ||||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||||
|             this.ClientSize = new System.Drawing.Size(800, 450); |             this.ClientSize = new System.Drawing.Size(900, 607); | ||||||
|             this.Controls.Add(this.label1); |             this.Controls.Add(this.panel3); | ||||||
|             this.Name = "Macro"; |             this.Controls.Add(this.panel1); | ||||||
|             this.Text = "Macro"; |             this.Name = "Set_Macro"; | ||||||
|  |             this.Text = "반출 옵션 선택"; | ||||||
|  |             this.Load += new System.EventHandler(this.Set_Macro_Load); | ||||||
|  |             this.panel1.ResumeLayout(false); | ||||||
|  |             this.panel1.PerformLayout(); | ||||||
|  |             ((System.ComponentModel.ISupportInitialize)(this.MacroGrid)).EndInit(); | ||||||
|  |             this.panel3.ResumeLayout(false); | ||||||
|             this.ResumeLayout(false); |             this.ResumeLayout(false); | ||||||
|             this.PerformLayout(); |  | ||||||
|  |  | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         #endregion |         #endregion | ||||||
|  |  | ||||||
|  |         private System.Windows.Forms.Panel panel1; | ||||||
|  |         private System.Windows.Forms.Panel panel3; | ||||||
|  |         private System.Windows.Forms.DataGridView MacroGrid; | ||||||
|         private System.Windows.Forms.Label label1; |         private System.Windows.Forms.Label label1; | ||||||
|  |         private System.Windows.Forms.Button btn_Close; | ||||||
|  |         private System.Windows.Forms.Button btn_ListSave; | ||||||
|  |         private System.Windows.Forms.Button btn_AddList; | ||||||
|  |         private System.Windows.Forms.Button btn_ListRemove; | ||||||
|  |         private System.Windows.Forms.DataGridViewCheckBoxColumn Save_Check; | ||||||
|  |         private System.Windows.Forms.ComboBox cb_SearchList; | ||||||
|  |         private System.Windows.Forms.Button btn_MakeFile; | ||||||
|  |         private System.Windows.Forms.DataGridViewTextBoxColumn idx; | ||||||
|  |         private System.Windows.Forms.DataGridViewTextBoxColumn TagNum; | ||||||
|  |         private System.Windows.Forms.DataGridViewTextBoxColumn Macro; | ||||||
|  |         private System.Windows.Forms.DataGridViewCheckBoxColumn Check; | ||||||
|  |         private System.Windows.Forms.ComboBox cb_EncodingType; | ||||||
|     } |     } | ||||||
| } | } | ||||||
| @@ -7,16 +7,223 @@ using System.Linq; | |||||||
| using System.Text; | using System.Text; | ||||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||||
| using System.Windows.Forms; | using System.Windows.Forms; | ||||||
|  | using System.IO; | ||||||
|  |  | ||||||
|  | using UniMarc.마크; | ||||||
|  |  | ||||||
| namespace WindowsFormsApp1.Mac | namespace WindowsFormsApp1.Mac | ||||||
| { | { | ||||||
|     public partial class Set_Macro : Form |     public partial class Set_Macro : Form | ||||||
|     { |     { | ||||||
|         Main main; |         Main main; | ||||||
|  |         Helper_DB db = new Helper_DB(); | ||||||
|  |         Macro_Gudu gudu = new Macro_Gudu(); | ||||||
|  |         string compidx = UniMarc.Properties.Settings.Default.compidx; | ||||||
|  |         public string[] ViewMarcArray { get; set; } | ||||||
|  |         public string FileType { get; set; } | ||||||
|  |  | ||||||
|         public Set_Macro(Main _main) |         public Set_Macro(Main _main) | ||||||
|         { |         { | ||||||
|             InitializeComponent(); |             InitializeComponent(); | ||||||
|             main = _main; |             main = _main; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         public Set_Macro() | ||||||
|  |         { | ||||||
|  |             InitializeComponent(); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void Set_Macro_Load(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             db.DBcon(); | ||||||
|  |  | ||||||
|  |             string cmd = string.Format("SELECT `listname` FROM `Comp_SaveMacro` WHERE `compidx` = \"{0}\";", compidx); | ||||||
|  |             string res = db.DB_Send_CMD_Search(cmd); | ||||||
|  |             foreach (string l in res.Split('|')) | ||||||
|  |             { | ||||||
|  |                 if (l == "") | ||||||
|  |                     continue; | ||||||
|  |                 cb_SearchList.Items.Add(l); | ||||||
|  |             } | ||||||
|  |             string[,] callGudu = gudu.MacroList; | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < callGudu.GetLength(0); a++) | ||||||
|  |             { | ||||||
|  |                 string[] Grid = new string[] { callGudu[a, 0], callGudu[a, 1], callGudu[a, 2] }; | ||||||
|  |                 MacroGrid.Rows.Add(Grid); | ||||||
|  |             } | ||||||
|  |             MacroGrid.Sort(TagNum, ListSortDirection.Ascending); | ||||||
|  |             MakeGridCheckReload(); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         /// <summary> | ||||||
|  |         /// 표의 체크박스 초기화 | ||||||
|  |         /// </summary> | ||||||
|  |         void MakeGridCheckReload() | ||||||
|  |         { | ||||||
|  |             for (int a = 0; a < MacroGrid.Rows.Count; a++) | ||||||
|  |             { | ||||||
|  |                 MacroGrid.Rows[a].Cells["Check"].Value = "F"; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void cb_SearchList_SelectedIndexChanged(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             string listname = cb_SearchList.SelectedItem.ToString(); | ||||||
|  |             string cmd = string.Format("SELECT `Macroidx` FROM `Comp_SaveMacro` WHERE `compidx` = \"{0}\" AND `listname` = \"{1}\";", compidx, listname); | ||||||
|  |             string res = db.DB_Send_CMD_Search(cmd).Replace("|", ""); | ||||||
|  |  | ||||||
|  |             MakeGridCheckReload(); | ||||||
|  |  | ||||||
|  |             foreach (string l in res.Split('^')) | ||||||
|  |             { | ||||||
|  |                 for (int a = 0; a < MacroGrid.Rows.Count; a++) | ||||||
|  |                 { | ||||||
|  |                     if (MacroGrid.Rows[a].Cells["idx"].Value.ToString() == l) | ||||||
|  |                     { | ||||||
|  |                         MacroGrid.Rows[a].Cells["Check"].Value = true; | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void btn_MakeFile_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             Macro_Gudu macro = new Macro_Gudu(FileType); | ||||||
|  |             string Marc_data = ""; | ||||||
|  |             List<string> idxArray = new List<string>(); | ||||||
|  |  | ||||||
|  |             for (int a = 0; a < MacroGrid.Rows.Count; a++) | ||||||
|  |             { | ||||||
|  |                 if (MacroGrid.Rows[a].Cells["Check"].Value.ToString() == "T") | ||||||
|  |                 { | ||||||
|  |                     idxArray.Add(MacroGrid.Rows[a].Cells["idx"].Value.ToString()); | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             foreach (string t in ViewMarcArray) | ||||||
|  |             { | ||||||
|  |                 Marc_data += macro.MacroMarc(t, idxArray); | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             string FileName; | ||||||
|  |             SaveFileDialog saveFileDialog = new SaveFileDialog(); | ||||||
|  |             saveFileDialog.Title = "저장 경로를 지정하세요."; | ||||||
|  |             saveFileDialog.OverwritePrompt = true; | ||||||
|  |             saveFileDialog.Filter = "마크 파일 (*.mrc)|*.mrc|모든 파일 (*.*)|*.*"; | ||||||
|  |  | ||||||
|  |             if (saveFileDialog.ShowDialog() == DialogResult.OK) | ||||||
|  |             { | ||||||
|  |                 if (FileType == "ANSI") | ||||||
|  |                 { | ||||||
|  |                     FileName = saveFileDialog.FileName; | ||||||
|  |                     File.WriteAllText(FileName, Marc_data, Encoding.Default); | ||||||
|  |                 } | ||||||
|  |                 else if (FileType == "UTF-8") | ||||||
|  |                 { | ||||||
|  |                     FileName = saveFileDialog.FileName; | ||||||
|  |                     File.WriteAllText(FileName, Marc_data, Encoding.UTF8); | ||||||
|  |                 } | ||||||
|  |                 else if (FileType == "UniCode") | ||||||
|  |                 { | ||||||
|  |                     FileName = saveFileDialog.FileName; | ||||||
|  |                     File.WriteAllText(FileName, Marc_data, Encoding.Unicode); | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             MessageBox.Show("반출되었습니다!"); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void btn_AddList_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             Skill_Search_Text sst = new Skill_Search_Text(); | ||||||
|  |  | ||||||
|  |             string value = ""; | ||||||
|  |             if (sst.InputBox("생성할 목록명을 입력해주세요.", "목록 생성", ref value) == DialogResult.OK) | ||||||
|  |             { | ||||||
|  |                 string user = UniMarc.Properties.Settings.Default.User; | ||||||
|  |                 string compidx = UniMarc.Properties.Settings.Default.compidx; | ||||||
|  |  | ||||||
|  |                 string Table = "Comp_SaveMacro"; | ||||||
|  |                 if (db.DB_Send_CMD_Search(string.Format("SELECT * FROM {0} WHERE \"compidx\" = {1} AND \"{2}\" = \"{3}\"", Table, compidx, "listname", value)).Length > 2) | ||||||
|  |                 { | ||||||
|  |                     MessageBox.Show("중복된 목록명이 있습니다!"); | ||||||
|  |                     return; | ||||||
|  |                 } | ||||||
|  |                 string[] Insert_Tbl = { "compidx", "listname", "user" }; | ||||||
|  |                 string[] Insert_Col = { compidx, value, user }; | ||||||
|  |  | ||||||
|  |                 string cmd = db.DB_INSERT(Table, Insert_Tbl, Insert_Col); | ||||||
|  |                 db.DB_Send_CMD_reVoid(cmd); | ||||||
|  |                 cb_SearchList.Items.Add(value); | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void btn_ListSave_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             string MacroIndex = ""; | ||||||
|  |             string compidx = UniMarc.Properties.Settings.Default.compidx; | ||||||
|  |             string listname = cb_SearchList.Text; | ||||||
|  |             for (int a = 0; a < MacroGrid.Rows.Count; a++) | ||||||
|  |             { | ||||||
|  |                 MacroIndex += MacroGrid.Rows[a].Cells["idx"].Value.ToString() + "^"; | ||||||
|  |             } | ||||||
|  |             MacroIndex.TrimEnd('^'); | ||||||
|  |  | ||||||
|  |             string Table = "Comp_SaveMacro"; | ||||||
|  |             string[] Search_T = { "compidx", "listname" }; | ||||||
|  |             string[] Search_C = { compidx, listname }; | ||||||
|  |  | ||||||
|  |             if (db.DB_Send_CMD_Search(db.More_DB_Search(Table, Search_T, Search_C)).Length < 2) | ||||||
|  |             { | ||||||
|  |                 MessageBox.Show("선택된 목록이 없습니다!"); | ||||||
|  |                 return; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             string[] Update_T = { "Macroidx" }; | ||||||
|  |             string[] Update_C = { MacroIndex }; | ||||||
|  |  | ||||||
|  |             db.DB_Send_CMD_reVoid(db.More_Update(Table, Update_T, Update_C, Search_T, Search_C)); | ||||||
|  |             MessageBox.Show("저장되었습니다!"); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void btn_ListRemove_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             if (DialogResult.Yes != MessageBox.Show("현재 목록을 삭제하시겠습니까?", "목록 삭제", MessageBoxButtons.YesNo)) | ||||||
|  |                 return; | ||||||
|  |  | ||||||
|  |             string compidx = UniMarc.Properties.Settings.Default.compidx; | ||||||
|  |             string listname = cb_SearchList.Text; | ||||||
|  |  | ||||||
|  |             string Table = "Comp_SaveMacro"; | ||||||
|  |             string[] Search_T = { "compidx", "listname" }; | ||||||
|  |             string[] Search_C = { compidx, listname }; | ||||||
|  |  | ||||||
|  |             if (db.DB_Send_CMD_Search(db.More_DB_Search(Table, Search_T, Search_C)).Length < 2) | ||||||
|  |             { | ||||||
|  |                 MessageBox.Show("선택된 목록이 없습니다!"); | ||||||
|  |                 return; | ||||||
|  |             } | ||||||
|  |  | ||||||
|  |             db.DB_Send_CMD_reVoid(db.DB_Delete_More_term(Table, "compidx", compidx, Search_T, Search_C)); | ||||||
|  |             MessageBox.Show("삭제되었습니다!"); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void btn_Close_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             this.Close(); | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |         private void MacroGrid_CellClick(object sender, DataGridViewCellEventArgs e) | ||||||
|  |         { | ||||||
|  |             if (e.RowIndex < 0) | ||||||
|  |                 return; | ||||||
|  |  | ||||||
|  |             if (e.ColumnIndex == 3) | ||||||
|  |                 if (MacroGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString() == "T") | ||||||
|  |                     MacroGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = false; | ||||||
|  |                 else | ||||||
|  |                     MacroGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = true; | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -117,4 +117,16 @@ | |||||||
|   <resheader name="writer"> |   <resheader name="writer"> | ||||||
|     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||||
|   </resheader> |   </resheader> | ||||||
|  |   <metadata name="idx.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|  |     <value>True</value> | ||||||
|  |   </metadata> | ||||||
|  |   <metadata name="TagNum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|  |     <value>True</value> | ||||||
|  |   </metadata> | ||||||
|  |   <metadata name="Macro.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|  |     <value>True</value> | ||||||
|  |   </metadata> | ||||||
|  |   <metadata name="Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|  |     <value>True</value> | ||||||
|  |   </metadata> | ||||||
| </root> | </root> | ||||||
		Reference in New Issue
	
	Block a user
	 SeungHo Yang
					SeungHo Yang