Compare commits

9 Commits

Author SHA1 Message Date
b13f01a3dd 마크정리->마크파일불러오기(fullparser 를 적용하여 데이터를 추출 함)
DLS 조회입력 화면 null 개체오류 분석 : 해당 화면은 고친적 없는 원본화면  https://reading.jnei.go.kr  페이지를 열어서 작업하는 것을 추정되나 해당 사이트가 접속이 되지 않은 것이 원인이됨 (프로그램이 멈추지 않고 오류 메세지가 나오도록 수정 함)
마크등급용 전용컨트롤 생성 및 공유
Grade - E 추가
마크목록 데이터 조회시 (ISBN검색결과 서명,저자,출판사,설명,URL 추가 )
2026-02-25 23:42:49 +09:00
5978d45af6 마크정리->마크파일불러오기(fullparser 를 적용하여 데이터를 추출 함) 2026-02-25 22:20:45 +09:00
3a503dda6d ISBN검색시 지연시간 추가 (설정에 저장됨)
ISBN검색중 알라딘의 경우 도서정보(html),URL 가 추가됨
ISBN검색결과  도서명, 저자, 출판사, 도서정보,URL이  DB에 저장되도록 함
2026-02-24 22:57:34 +09:00
c813ffe9e6 등급저장기능 추가, 비고기능 추가 2026-02-23 23:49:30 +09:00
c5571a98ab 유사본 저장시 마크외 정보도 저장되도록 함 2026-02-23 23:37:21 +09:00
3cfd7ff12c Messagebox 모두 변경 2026-02-23 23:11:54 +09:00
1b77fd02b0 마크작성기능 완료, fullmarc 해석기 1차완료 2026-02-23 22:29:01 +09:00
5271f9f1c3 마크파서 추가,, 신규 마크 추가 테스트 중. 2026-02-23 00:31:59 +09:00
6add9a00bc 마크편집창 및 신규생성 수정 중 2026-02-22 13:33:12 +09:00
111 changed files with 4061 additions and 2754 deletions

View File

@@ -1,19 +1,34 @@
namespace UniMarc
using AR;
namespace UniMarc
{
public static class DB_Utils
{
public static bool ExistISBN(string value)
{
Helper_DB db = new Helper_DB();
if (value.isEmpty())
{
UTIL.MsgE("중복검사할 ISBN값이 입력되지 않았습니다");
return false;
}
// ISBN 중복체크
string checkSql = string.Format("SELECT COUNT(*) FROM Marc WHERE isbn = '{0}' AND compidx = '{1}'", value, PUB.user.CompanyIdx);
string dupeCount = db.self_Made_Cmd(checkSql).Replace("|", "");
if (dupeCount != "0" && !string.IsNullOrEmpty(dupeCount))
var ret = Helper_DB.ExcuteScalar(checkSql);
if (ret.value == null)
{
UTIL.MsgE($"Database error [ExistISBN]\n{ret.errorMessage}");
return false;
}
if (int.TryParse(ret.value.ToString(), out int cnt) == false)
return false;
else
{
if (cnt > 0)
{
return true;
}
return false;
}
}
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
@@ -74,12 +75,12 @@ namespace UniMarc
{
SmtpMail.SmtpServer = smtp_server;
SmtpMail.Send(msg);
MessageBox.Show("다음 메일 전송 성공");
UTIL.MsgI("다음 메일 전송 성공");
return true;
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
UTIL.MsgE(e.ToString());
return false;
}
}
@@ -118,12 +119,12 @@ namespace UniMarc
try
{
smtp.Send(mail);
MessageBox.Show("메일 전송 완료");
UTIL.MsgI("메일 전송 완료");
return true;
}
catch (SmtpException e)
{
MessageBox.Show(e.ToString());
UTIL.MsgE(e.ToString());
return false;
}
}
@@ -156,7 +157,7 @@ namespace UniMarc
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
UTIL.MsgE(e.ToString());
}
}
else
@@ -187,7 +188,7 @@ namespace UniMarc
}
catch (SmtpException e)
{
MessageBox.Show(e.ToString());
UTIL.MsgE(e.ToString());
}
}
}

View File

@@ -0,0 +1,378 @@
using Org.BouncyCastle.Pkcs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniMarc
{
public class MarcSubfield
{
public char Code { get; set; }
public string Value { get; set; }
public MarcSubfield(char code, string value)
{
Code = code;
Value = value;
}
public override string ToString()
{
return $"▼{Code}{Value}";
}
}
public class MarcField
{
public string Tag { get; set; }
public string Indicators { get; set; } = " ";
public string ControlValue { get; set; }
public List<MarcSubfield> Subfields { get; set; } = new List<MarcSubfield>();
public bool IsControlField => int.TryParse(Tag, out int tagNum) && tagNum < 10;
public MarcField(string tag)
{
Tag = tag;
}
public string GetSubfieldValue(char code)
{
var sub = Subfields.FirstOrDefault(s => s.Code == code);
return sub != null ? sub.Value : string.Empty;
}
public override string ToString()
{
if (IsControlField)
return $"{Tag}\t \t{ControlValue}▲";
StringBuilder sb = new StringBuilder();
sb.Append($"{Tag}\t{Indicators}\t");
foreach (var sub in Subfields)
{
sb.Append(sub.ToString());
}
sb.Append("▲");
return sb.ToString();
}
}
public class MarcParser
{
public string Leader { get; set; } = "00000nam 2200000 k 4500";
public List<MarcField> Fields { get; set; } = new List<MarcField>();
private const char SUBFIELD_MARKER = '▼';
private const char FIELD_TERMINATOR = '▲';
private const char RECORD_TERMINATOR = '\x1D';
public MarcParser() { }
public void ParseMnemonic(string data)
{
Fields.Clear();
if (string.IsNullOrEmpty(data)) return;
string[] lines = data.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var line in lines)
{
string cleanLine = line.Trim();
if (cleanLine.Length < 3) continue;
string tag = cleanLine.Substring(0, 3);
MarcField field = new MarcField(tag);
string[] parts = cleanLine.Split('\t');
if (field.IsControlField)
{
if (parts.Length >= 3)
field.ControlValue = parts[2].TrimEnd(FIELD_TERMINATOR, ' ');
else
field.ControlValue = cleanLine.Substring(Math.Min(cleanLine.Length, 3)).Trim('\t', ' ', FIELD_TERMINATOR);
}
else
{
if (parts.Length >= 2)
field.Indicators = parts[1].PadRight(2).Substring(0, 2);
string dataPart = parts.Length >= 3 ? parts[2] : "";
if (parts.Length < 3 && cleanLine.Length > 5)
dataPart = cleanLine.Substring(5);
dataPart = dataPart.TrimEnd(FIELD_TERMINATOR);
ParseSubfields(field, dataPart);
}
Fields.Add(field);
}
}
private void ParseSubfields(MarcField field, string dataPart)
{
if (string.IsNullOrEmpty(dataPart)) return;
if (dataPart.Contains(SUBFIELD_MARKER))
{
string[] subfields = dataPart.Split(new[] { SUBFIELD_MARKER }, StringSplitOptions.RemoveEmptyEntries);
foreach (var s in subfields)
{
if (s.Length >= 1)
field.Subfields.Add(new MarcSubfield(s[0], s.Substring(1).TrimEnd(FIELD_TERMINATOR)));
}
}
else if (dataPart.Contains('\x1F'))
{
string[] subfields = dataPart.Split(new[] { '\x1F' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var s in subfields)
{
if (s.Length >= 1)
field.Subfields.Add(new MarcSubfield(s[0], s.Substring(1)));
}
}
else
{
for (int k = 0; k < dataPart.Length; k++)
{
if (char.IsLetter(dataPart[k]) && (k == 0 || dataPart[k - 1] == ' ' || dataPart[k - 1] == '^' || dataPart[k - 1] == '\x1F'))
{
char code = dataPart[k];
int next = -1;
for (int m = k + 1; m < dataPart.Length - 1; m++)
{
if (dataPart[m] == ' ' && char.IsLetter(dataPart[m + 1]))
{
next = m;
break;
}
}
string val = next == -1 ? dataPart.Substring(k + 1) : dataPart.Substring(k + 1, next - k - 1);
field.Subfields.Add(new MarcSubfield(code, val.Trim()));
if (next != -1) k = next;
else break;
}
}
}
}
public (bool success, string message) ParseFullMarc(string data)
{
System.Text.StringBuilder AlertMessage = new StringBuilder();
Fields.Clear();
if (data.Length < 24) return (false, "마크데이터가 24보다 작습니다");
//리더부는 항상 24바이트이다. 0~23까지이다.
Leader = data.Substring(0, 24);
if (!int.TryParse(Leader.Substring(12, 5), out int baseAddress)) return (false, string.Empty);
//data Length
if (int.TryParse(Leader.Substring(0, 5), out int dataLength) == false)
{
return (false, "Leader 전체 데이터 길이를 확인할 수 없습니다");
}
bool isScaled = false;
int directoryLength = baseAddress - 24;
int entryCount = directoryLength / 12;
var directory = data.Substring(24, directoryLength);
var RealData = data.Substring(24 + directoryLength);
if (RealData.Contains((char)0x1D) == false)
{
AlertMessage.AppendLine($"레코드식별기호 0x1D 가 없습니다");
}
else RealData = RealData.Trim((char)0x1D);
//태그별식별기호로 분리한다.
if (RealData[RealData.Length - 1] == (char)0x1E)
RealData = RealData.Substring(0, RealData.Length - 1);
var Tags = RealData.Split((char)0x1E);
if(Tags.Length != entryCount)
{
AlertMessage.AppendLine($"디렉토리 카운트({entryCount})와 태그수량({Tags.Length})이 일치하지 않습니다");
}
for (int i = 0; i < Math.Min(entryCount,Tags.Length); i++)
{
int entryStart = (i * 12);
//TAG(3)+LENGTH(4)+OFFSET(5)=12
if (entryStart + 12 > directory.Length) break;
if (directory[entryStart] == '\x1E' || directory[entryStart] == '^' || directory[entryStart] == FIELD_TERMINATOR) break;
string tag = directory.Substring(entryStart, 3);
var tag_len = directory.Substring(entryStart + 3, 4);
var tag_off = directory.Substring(entryStart + 7, 5);
if (!int.TryParse(tag_len, out int length))
{
AlertMessage.AppendLine($"태그({tag}) 길이를 확인할 수 없습니다 값:{tag_len}");
}
if (!int.TryParse(tag_off, out int offset))
{
AlertMessage.AppendLine($"태그({tag}) 오프셋을 확인할 수 없습니다 값:{offset}");
}
string fieldData = Tags[i];
fieldData = fieldData.TrimEnd('\x1E', '\x1D', FIELD_TERMINATOR, '^', ' ');
MarcField field = new MarcField(tag);
if (field.IsControlField)
field.ControlValue = fieldData;
else
{
var subfieldIndex = fieldData.IndexOf((char)0x1f);
string fielddata = "";
if (subfieldIndex < 0)
{
//1f가 없는 것은 오류 처리한다.
continue;
}
else if (subfieldIndex < 1)
{
//지시기호없이 데이터가 시작되는경우이다.
field.Indicators = " ";
ParseSubfields(field, fieldData);
}
else if (subfieldIndex < 2)
{
//지시기호가1개이다 뒤에 공백을 넣자
field.Indicators = fieldData.Substring(0, subfieldIndex) + " ";
ParseSubfields(field, fieldData.Substring(1));
}
else if (subfieldIndex > 2)
{
//지시기호가 2자리보다 길다? 이건 오류처리하자.
field.Indicators = " ";
ParseSubfields(field, fieldData.Substring(subfieldIndex));
}
else
{
field.Indicators = fieldData.Substring(0, 2);
ParseSubfields(field, fieldData.Substring(2));
}
}
Fields.Add(field);
}
return (true, AlertMessage.ToString());
}
public List<T> GetTag<T>(string path)
{
if (string.IsNullOrEmpty(path)) return new List<T>();
string tag = path.Substring(0, 3);
char? subCode = path.Length > 3 ? (char?)path[3] : null;
var fields = Fields.Where(f => f.Tag == tag).ToList();
if (fields.Count == 0) return new List<T>();
if (typeof(T) == typeof(MarcField))
return fields.Cast<T>().ToList();
if (typeof(T) == typeof(MarcSubfield))
{
if (!subCode.HasValue) return new List<T>();
var subResults = new List<MarcSubfield>();
foreach (var f in fields)
subResults.AddRange(f.Subfields.Where(s => s.Code == subCode.Value));
return subResults.Cast<T>().ToList();
}
if (typeof(T) == typeof(string))
{
var stringResults = new List<string>();
foreach (var f in fields)
{
if (f.IsControlField)
stringResults.Add(f.ControlValue);
else
{
if (subCode.HasValue)
stringResults.AddRange(f.Subfields.Where(s => s.Code == subCode.Value).Select(s => s.Value));
else
stringResults.AddRange(f.Subfields.Select(s => s.Value));
}
}
return stringResults.Cast<T>().ToList();
}
return new List<T>();
}
public List<string> GetTag(string path)
{
return GetTag<string>(path);
}
public void SetTag(string path, string value, string indicators = " ")
{
if (string.IsNullOrEmpty(path) || path.Length < 3) return;
string tag = path.Substring(0, 3);
bool isControl = int.TryParse(tag, out int tagNum) && tagNum < 10;
var field = Fields.FirstOrDefault(f => f.Tag == tag);
if (field == null)
{
field = new MarcField(tag) { Indicators = indicators };
Fields.Add(field);
Fields = Fields.OrderBy(f => f.Tag).ToList();
}
if (isControl)
field.ControlValue = value;
else
{
if (path.Length < 4) throw new ArgumentException("Subfield code required for data fields");
char subCode = path[3];
var sub = field.Subfields.FirstOrDefault(s => s.Code == subCode);
if (sub != null) sub.Value = value;
else field.Subfields.Add(new MarcSubfield(subCode, value));
}
}
public string Get008Segment(int offset, int length)
{
var valLine = GetTag("008").FirstOrDefault();
if (string.IsNullOrEmpty(valLine) || valLine.Length < offset + length) return string.Empty;
return valLine.Substring(offset, length);
}
public void Set008Segment(int offset, int length, string value)
{
var valLine = GetTag("008").FirstOrDefault() ?? new string(' ', 40);
if (valLine.Length < 40) valLine = valLine.PadRight(40);
StringBuilder sb = new StringBuilder(valLine);
for (int i = 0; i < length; i++)
{
char c = (i < value.Length) ? value[i] : ' ';
if (offset + i < sb.Length)
sb[offset + i] = c;
}
SetTag("008", sb.ToString());
}
public string ToMnemonicString()
{
StringBuilder sb = new StringBuilder();
foreach (var field in Fields)
sb.AppendLine(field.ToString());
return sb.ToString();
}
}
}

View File

@@ -0,0 +1 @@
00559nam 2200229 k 4500008004100000020003300041020002400074041000800098049000600106056001300112082001200125090001800137100001100155245004500166260002500211300001600236520000500252653003900257700001100296740001100307950001100318200306s2011 ggk 000 f kor  a9788954615860g04810c^158001 a9788954615853(세트)1 akor v1 a813.6240 a895.734 a813.6b이67퇴1 a이우혁00a퇴마록x退魔錄n1b국내편d이우혁 [지음] a파주b엘릭시르c2011 a663p.c20cm a a퇴마록a한국현대소설a한국장편소설1 a이우혁 0a국내편0 b^15800

View File

@@ -0,0 +1,15 @@
020 ▼a9788954615877▼g04810▼c\15800▲
020 1 ▼a9788954615853(세트)▲
049 ▼v2▲
056 ▼a813.6▼24▲
082 0 ▼a895.734▲
090 ▼a813.6▼b이67퇴▲
100 1 ▼a이우혁▲
245 00 ▼a퇴마록▼x退魔錄▼n2▼b국내편▼d이우혁 [지음]▲
260 ▼a파주▼b엘릭시르▼c2011▲
300 ▼a600p.▼c20cm▲
520 ▼a▲
653 ▼a퇴마록▼a한국현대소설▼a한국장편소설▲
700 1 ▼a이우혁▲
740 0 ▼a국내편▲
950 0 ▼b\15800▲

View File

@@ -35,7 +35,13 @@ namespace UniMarc
return new MySqlConnection(strConnection);
}
public static DataTable ExecuteQueryData(string query, MySqlConnection cn = null)
/// <summary>
/// 입력한 쿼리의 결과를 데이터테이블로 반환합니다
/// </summary>
/// <param name="query"></param>
/// <param name="cn"></param>
/// <returns></returns>
public static DataTable ExecuteDataTable(string query, MySqlConnection cn=null)
{
var bLocalCN = cn == null;
DataTable dt = new DataTable();
@@ -55,7 +61,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "ExecuteQueryData Error");
UTIL.MsgE(ex.ToString());
return null;
}
}
@@ -68,12 +74,12 @@ namespace UniMarc
/// <param name="wheres"></param>
/// <param name="orders"></param>
/// <returns></returns>
public static DataTable GetDT(string tableName, string columns = "*", string wheres = "", string orders = "", MySqlConnection cn = null)
public static DataTable ExecuteQueryData(string tableName, string columns = "*", string wheres = "", string orders = "", MySqlConnection cn = null)
{
var sql = $"select {columns} from {tableName}";
if (wheres.isEmpty() == false) sql += " where " + wheres;
if (orders.isEmpty() == false) sql += " order by " + orders;
return ExecuteQueryData(sql, cn);
return ExecuteDataTable(sql, cn);
}
@@ -101,6 +107,58 @@ namespace UniMarc
return (-1, ex.Message);
}
}
public static (long value, string errorMessage) ExcuteInsertGetIndex(string cmd, MySqlConnection cn = null)
{
long lastId = -1;
var bLocalCN = cn == null;
string message;
try
{
if (cn == null) cn = CreateConnection(eDbType.unimarc);//new MySqlConnection(cs);
using (var sqlcmd = new MySqlCommand(cmd, cn))
{
cn.Open();
sqlcmd.ExecuteNonQuery();
lastId = sqlcmd.LastInsertedId;
}
if (bLocalCN) cn.Dispose();
message = "";
}
catch (Exception ex)
{
lastId = -1;
message = ex.Message;
}
return (lastId, message);
}
/// <summary>
/// 단일항목값을 반환 합니다
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public static (object value, string errorMessage) ExcuteScalar(string query, MySqlConnection cn = null)
{
try
{
var bLocalCN = cn == null;
if (cn == null) cn = CreateConnection(eDbType.unimarc);//new MySqlConnection(cs);
var cmd = new MySqlCommand(query, cn);
cn.Open();
var val = cmd.ExecuteScalar();
cmd.Dispose();
if (bLocalCN) cn.Dispose();
return (val, string.Empty);
}
catch (Exception ex)
{
return (null, ex.Message);
}
}
/// <summary>
/// Insert 명령을 수행한 후 자동 생성된 index값을 반환합니다.
@@ -696,8 +754,7 @@ namespace UniMarc
}
catch (Exception e)
{
MessageBox.Show("{0} Exception caught.\n" + e.ToString());
MessageBox.Show(cmd);
UTIL.MsgE(e.ToString());
}
conn.Close();
return result;

View File

@@ -123,7 +123,7 @@ namespace UniMarc.ListOfValue
{
if (this.bs.Current == null)
{
MessageBox.Show("선택된 데이터가 없습니다.", "알림", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE("선택된 데이터가 없습니다.");
return;
}

View File

@@ -11,6 +11,7 @@ using System.IO;
using System.Net;
using System.Net.Sockets;
using Application = System.Windows.Forms.Application;
using AR;
namespace UniMarc
{
@@ -62,7 +63,7 @@ namespace UniMarc
((Main)(this.Owner)).User_Name = ID_text.Text;
if (db_res == "")
{
MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다.");
UTIL.MsgE("아이디 혹은 비밀번호가 정확하지않습니다.");
return;
}
@@ -75,7 +76,7 @@ namespace UniMarc
WriteFile();
if (!CheckIP(lbl_IP.Text, result[4]))
{
MessageBox.Show("허용된 아이피가 아닙니다!");
UTIL.MsgE("허용된 아이피가 아닙니다!");
return;
}
((Main)(this.Owner)).IPText.Text = string.Format("접속 아이피 : {0}", lbl_IP.Text);
@@ -88,12 +89,12 @@ namespace UniMarc
}
else
{
MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다.");
UTIL.MsgE("아이디 혹은 비밀번호가 정확하지않습니다.");
}
}
else
{
MessageBox.Show("아이디 혹은 비밀번호가 정확하지않습니다.");
UTIL.MsgE("아이디 혹은 비밀번호가 정확하지않습니다.");
}
}
#region CheckIP

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -97,7 +98,7 @@ namespace UniMarc
isAccess();
SetBtnName();
}
catch (Exception ex) { MessageBox.Show(ex.ToString()); }
catch (Exception ex) { UTIL.MsgE(ex.ToString()); }
UpdaterCheck();
@@ -298,7 +299,7 @@ namespace UniMarc
// 권한설정으로 인한 리턴
if (!MenuCheckT[count[0]][count[1]].Enabled)
{
MessageBox.Show("권한이 설정되지 않았습니다!");
UTIL.MsgE("권한이 설정되지 않았습니다!");
return;
}

View File

@@ -55,7 +55,7 @@ namespace UniMarc
string Empty_text = string.Format(
"020\t \t▼a{1}▼c\\{5}▲\n" +
"056\t \t▼a▼25▲\n" +
"100\t \t▼a▲\n" +
"100\t \t▼a{2}▲\n" +
"245\t \t▼a{2}▼d{3}▲\n" +
"260\t \t▼b{4}▲\n" +
"300\t \t▼a▼c▲\n" +

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
@@ -16,6 +17,12 @@ namespace UniMarc
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//var parserF = new UniMarc.MarcParser();
//var fullMarc = System.IO.File.ReadAllText(".\\Helper\\sample_fullmarc.txt");
//var rlt = parserF.ParseFullMarc(fullMarc);
//if(rlt.success==false)
//AR.UTIL.MsgE("unitmarc");
try
{
@@ -24,7 +31,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
UTIL.MsgE(ex.Message);
}
Application.Run(new Main());

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2026.02.04.2230")]
[assembly: AssemblyFileVersion("2026.02.04.2230")]
[assembly: AssemblyVersion("2026.02.23.2400")]
[assembly: AssemblyFileVersion("2026.02.23.2400")]

View File

@@ -5,11 +5,12 @@ namespace UniMarc.Properties {
public class UserSetting : AR.Setting
{
public int ISBNSearchDelay { get; set; }
public string LastSearchTarget { get; set; }
public string LastSearchTargetDLS { get; set; }
public override void AfterLoad()
{
if (ISBNSearchDelay == 0) ISBNSearchDelay = 500;
}
public override void AfterSave()

View File

@@ -24,6 +24,7 @@ using System.Globalization;
using System.Threading;
using System.Data.SqlTypes;
using AR;
using System.Runtime.InteropServices.WindowsRuntime;
namespace UniMarc
{
@@ -286,7 +287,7 @@ namespace UniMarc
Helper_DB db = new Helper_DB();
db.DBcon();
if (Pur == "") { MessageBox.Show("입력된 주문처가 없습니다!"); return "False"; }
if (Pur == "") { UTIL.MsgE("입력된 주문처가 없습니다!"); return "False"; }
string Area = "`comp_name`, `tel`, `fax`, `bubin`, `uptae`, " +
"`jongmok`, `addr`, `boss`, `email`, `barea`";
@@ -304,7 +305,7 @@ namespace UniMarc
if (db_res1.Length < 3)
{
MessageBox.Show("DB호출 에러!", "Error");
UTIL.MsgE("DB호출 에러!");
return "False";
}
string tel = string.Empty;
@@ -377,7 +378,7 @@ namespace UniMarc
// 엑셀 파일 이름 설정
string now = DateTime.Now.ToString("yy-MM-dd-HH-mm");
string FileName = string.Format("{0}_{1}_{2}_{3}.xlsx", now.Replace("-", ""), emchk, Pur, db_data[0]);
MessageBox.Show(FileName);
UTIL.MsgI(FileName);
// 엑셀 파일 저장 경로
string Savepath = Path.Combine(tempPath, FileName);
@@ -602,7 +603,7 @@ namespace UniMarc
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
UTIL.MsgE(e.ToString());
return "False";
}
}
@@ -640,7 +641,7 @@ namespace UniMarc
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
UTIL.MsgE(e.ToString());
}
}
#region MK_Excel_Sub
@@ -824,9 +825,9 @@ namespace UniMarc
string ErrMsg = FAX_GetErrString(result);
if (ErrMsg != "")
MessageBox.Show(msg, "전송완료");
UTIL.MsgI(msg);
else
MessageBox.Show(ErrMsg, "Error");
UTIL.MsgE(ErrMsg);
return result;
}
@@ -1307,7 +1308,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
UTIL.MsgE(ex.ToString());
this.LastException = ex;
System.Reflection.MemberInfo info = System.Reflection.MethodInfo.GetCurrentMethod();
string id = string.Format("{0}.{1}", info.ReflectedType.Name, info.Name);
@@ -1326,8 +1327,6 @@ namespace UniMarc
string url = string.Format(@"FTP://{0}:{1}/{2}", ipAddr, Port, serverFullPathFile);
FtpWebRequest ftp = (FtpWebRequest)WebRequest.Create(url);
MessageBox.Show(url);
ftp.Credentials = new NetworkCredential(userId, Pwd);
ftp.KeepAlive = false;
ftp.UseBinary = true;
@@ -1365,7 +1364,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
UTIL.MsgE(ex.ToString());
this.LastException = ex;
if (serverFullPathFile.Contains(@"\ZOOM\"))
@@ -1933,7 +1932,7 @@ namespace UniMarc
/// <returns></returns>
public string[] Take_Tag(string marc, string[] search, bool pSearchTag = false)
{
string[] ary = marc.Split('');
string[] ary = marc.Split(''); //0x1E
string[] tag = res_dir(ary[0].Substring(24));
(string[] jisi, string[] mrc) = jisi_Symbol(tag, ary);
@@ -2341,9 +2340,9 @@ namespace UniMarc
/// <param name="QueryType"></param>
/// <param name="Param"></param>
/// <returns></returns>
public string Aladin(string Query, string QueryType, string[] Param)
public List<string> Aladin(string Query, string QueryType, string[] Param)
{
string result = string.Empty;
List<string> result = new List<string>();
// 쿼리 생성
string key = "ttbgloriabook1512001";
string site = "http://www.aladin.co.kr/ttb/api/ItemSearch.aspx";
@@ -2384,7 +2383,7 @@ namespace UniMarc
}
catch (Exception ex)
{
return "";
return result;
}
var json = JsonConvert.SerializeXmlNode(doc);
@@ -2402,7 +2401,7 @@ namespace UniMarc
}
catch
{
return "";
return result;
}
int length = 0;
int ID_length = Param.Length;
@@ -2419,6 +2418,7 @@ namespace UniMarc
object buf = docs;
length = 1;
}
// List<string> retval = new List<string>();
for (int a = 0; a < length; a++)
{
List<string> tmp_data = new List<string>();
@@ -2432,9 +2432,10 @@ namespace UniMarc
{
tmp_data.Add(docs[a][Param[b]]);
}
result += tmp_data[b].Replace("|", "") + "|";
result.Add(tmp_data[b].Replace("|", ""));
//result += tmp_data[b].Replace("|", "") + "|";
}
result += "\n";
//result += "\n";
}
return result;
}
@@ -2459,7 +2460,7 @@ namespace UniMarc
}
else
{
MessageBox.Show(status, "Error");
UTIL.MsgE(status);
return "Error";
}

136
unimarc/unimarc/UC_SelectGrade.Designer.cs generated Normal file
View File

@@ -0,0 +1,136 @@
namespace UniMarc
{
partial class UC_SelectGrade
{
/// <summary>
/// 필수 디자이너 변수입니다.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 사용 중인 모든 리소스를 정리합니다.
/// </summary>
/// <param name="disposing">관리되는 리소스를 삭제해야 하면 true이고, 그렇지 않으면 false입니다.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
/// </summary>
private void InitializeComponent()
{
this.radD = new System.Windows.Forms.RadioButton();
this.radC = new System.Windows.Forms.RadioButton();
this.radB = new System.Windows.Forms.RadioButton();
this.radA = new System.Windows.Forms.RadioButton();
this.label6 = new System.Windows.Forms.Label();
this.radE = new System.Windows.Forms.RadioButton();
this.SuspendLayout();
//
// radD
//
this.radD.AutoSize = true;
this.radD.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radD.Location = new System.Drawing.Point(147, 4);
this.radD.Name = "radD";
this.radD.Size = new System.Drawing.Size(34, 20);
this.radD.TabIndex = 328;
this.radD.TabStop = true;
this.radD.Text = "D";
this.radD.UseVisualStyleBackColor = true;
//
// radC
//
this.radC.AutoSize = true;
this.radC.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radC.Location = new System.Drawing.Point(112, 4);
this.radC.Name = "radC";
this.radC.Size = new System.Drawing.Size(33, 20);
this.radC.TabIndex = 327;
this.radC.TabStop = true;
this.radC.Text = "C";
this.radC.UseVisualStyleBackColor = true;
//
// radB
//
this.radB.AutoSize = true;
this.radB.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radB.Location = new System.Drawing.Point(77, 4);
this.radB.Name = "radB";
this.radB.Size = new System.Drawing.Size(33, 20);
this.radB.TabIndex = 326;
this.radB.TabStop = true;
this.radB.Text = "B";
this.radB.UseVisualStyleBackColor = true;
//
// radA
//
this.radA.AutoSize = true;
this.radA.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radA.Location = new System.Drawing.Point(40, 4);
this.radA.Name = "radA";
this.radA.Size = new System.Drawing.Size(35, 20);
this.radA.TabIndex = 325;
this.radA.TabStop = true;
this.radA.Text = "A";
this.radA.UseVisualStyleBackColor = true;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label6.Location = new System.Drawing.Point(7, 8);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(31, 12);
this.label6.TabIndex = 324;
this.label6.Text = "등급";
//
// radE
//
this.radE.AutoSize = true;
this.radE.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radE.Location = new System.Drawing.Point(183, 4);
this.radE.Name = "radE";
this.radE.Size = new System.Drawing.Size(32, 20);
this.radE.TabIndex = 329;
this.radE.TabStop = true;
this.radE.Text = "E";
this.radE.UseVisualStyleBackColor = true;
//
// UC_SelectGrade
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.Controls.Add(this.radE);
this.Controls.Add(this.radD);
this.Controls.Add(this.radC);
this.Controls.Add(this.radB);
this.Controls.Add(this.radA);
this.Controls.Add(this.label6);
this.Name = "UC_SelectGrade";
this.Size = new System.Drawing.Size(221, 29);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RadioButton radD;
private System.Windows.Forms.RadioButton radC;
private System.Windows.Forms.RadioButton radB;
private System.Windows.Forms.RadioButton radA;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.RadioButton radE;
}
}

View File

@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public partial class UC_SelectGrade : UserControl
{
public UC_SelectGrade()
{
InitializeComponent();
}
public string GradeName
{
get
{
if(Grade == 0) return "A";
else if (Grade == 1) return "B";
else if (Grade == 2) return "C";
else if (Grade == 3) return "D";
else if (Grade == 4) return "E";
else return "";
}
set
{
if (value == "A") Grade = 0;
else if (value == "B") Grade = 1;
else if (value == "C") Grade = 2;
else if (value == "D") Grade = 3;
else if (value == "E") Grade = 4;
else Grade = -1;
}
}
public int Grade
{
get
{
if (radA.Checked) return 0;
else if (radB.Checked) return 1;
else if (radC.Checked) return 2;
else if (radD.Checked) return 3;
else if (radE.Checked) return 4;
else return -1;
}
set
{
if (value == -1)
{
radA.Checked = false;
radB.Checked = false;
radC.Checked = false;
radD.Checked = false;
radE.Checked = false;
}
else if (value == 0) radA.Checked = true;
else if (value == 1) radB.Checked = true;
else if (value == 2) radC.Checked = true;
else if (value == 3) radD.Checked = true;
else if (value == 4) radE.Checked = true;
}
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -225,6 +225,7 @@
<DependentUpon>Reference.svcmap</DependentUpon>
</Compile>
<Compile Include="DB_Utils.cs" />
<Compile Include="Helper\MarcParser.cs" />
<Compile Include="Helper_LibraryDelaySettings.cs" />
<Compile Include="ListOfValue\fSelectDT.cs">
<SubType>Form</SubType>
@@ -269,6 +270,12 @@
<Compile Include="SearchModel\NamguLibrarySearcher.cs" />
<Compile Include="SearchModel\SeleniumHelper.cs" />
<Compile Include="SortableBindingList.cs" />
<Compile Include="UC_SelectGrade.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UC_SelectGrade.Designer.cs">
<DependentUpon>UC_SelectGrade.cs</DependentUpon>
</Compile>
<Compile Include="개발자용\fDevDB.cs">
<SubType>Form</SubType>
</Compile>
@@ -419,6 +426,7 @@
<DependentUpon>Mac_List_Edit.cs</DependentUpon>
</Compile>
<Compile Include="마크\MarcBookItem.cs" />
<Compile Include="마크\MarcCopyItem.cs" />
<Compile Include="마크\MarcCopySelect2.cs">
<SubType>Form</SubType>
</Compile>
@@ -1103,6 +1111,9 @@
<EmbeddedResource Include="ListOfValue\fSelectDT.resx">
<DependentUpon>fSelectDT.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UC_SelectGrade.resx">
<DependentUpon>UC_SelectGrade.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="개발자용\fDevDB.resx">
<DependentUpon>fDevDB.cs</DependentUpon>
</EmbeddedResource>
@@ -2045,6 +2056,12 @@
<None Include="Connected Services\BaroService_TI\UniMarc.BaroService_TI.UpdateUserPWDResponse.datasource">
<DependentUpon>Reference.svcmap</DependentUpon>
</None>
<Content Include="Helper\sample_fullmarc.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Helper\sample_richtext.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
<None Include="Properties\app.manifest" />
<None Include="Properties\Settings.settings">
@@ -2182,6 +2199,7 @@
<Content Include="Resources\3_2_1_목록.png" />
<Content Include="Resources\3_2_2_편목.png" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Selenium.WebDriver.4.34.0\build\Selenium.WebDriver.targets" Condition="Exists('..\packages\Selenium.WebDriver.4.34.0\build\Selenium.WebDriver.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -211,7 +212,7 @@ namespace UniMarc
string U_cmd = db.More_Update("Obj_List_Book", Table, List_book, idx_table, idx_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("저장되었습니다.");
UTIL.MsgI("저장되었습니다.");
}
private void btn_close_Click(object sender, EventArgs e)
{
@@ -228,7 +229,7 @@ namespace UniMarc
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 입고처리되었습니다.");
UTIL.MsgI(tb_book_name.Text + "가 입고처리되었습니다.");
mk_Grid();
}
@@ -245,7 +246,7 @@ namespace UniMarc
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 미입고처리되었습니다.");
UTIL.MsgI(tb_book_name.Text + "가 미입고처리되었습니다.");
mk_Grid();
}
private void btn_order_ccl_Click(object sender, EventArgs e)

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -211,7 +212,7 @@ namespace UniMarc
string U_cmd = db.More_Update("Obj_List_Book", Table, List_book, idx_table, idx_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("저장되었습니다.");
UTIL.MsgI("저장되었습니다.");
}
private void btn_close_Click(object sender, EventArgs e)
{
@@ -228,7 +229,7 @@ namespace UniMarc
tb_List_name.Text, tb_book_name.Text, tb_author.Text, tb_book_comp.Text, tb_isbn.Text };
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 입고처리되었습니다.");
UTIL.MsgI(tb_book_name.Text + "가 입고처리되었습니다.");
mk_Grid();
}
@@ -245,7 +246,7 @@ namespace UniMarc
string U_cmd = db.More_Update("Obj_List_Book", edit_tbl, edit_col, search_tbl, search_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_book_name.Text + "가 미입고처리되었습니다.");
UTIL.MsgI(tb_book_name.Text + "가 미입고처리되었습니다.");
mk_Grid();
}
private void btn_order_ccl_Click(object sender, EventArgs e)

View File

@@ -71,7 +71,7 @@
this.dataGridView1.RowHeadersWidth = 20;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(563, 242);
this.dataGridView1.Size = new System.Drawing.Size(984, 661);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
@@ -126,9 +126,10 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(563, 242);
this.ClientSize = new System.Drawing.Size(984, 661);
this.Controls.Add(this.dataGridView1);
this.Name = "Commodity_Search";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Commodity_Sub";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Commodity_Search_FormClosed);
this.Load += new System.EventHandler(this.Commodity_Sub_Load);

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -107,7 +108,13 @@ namespace UniMarc
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
string value = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
if (e.RowIndex < 0 || e.ColumnIndex < 0) return;
string value = dataGridView1.Rows[e.RowIndex].Cells[0].Value?.ToString() ?? string.Empty;
if(value.isEmpty())
{
UTIL.MsgE("값이 없습니다.\n잠시 후 다시 시도하세요");
return;
}
Set_data(value, e.RowIndex);
@@ -176,7 +183,7 @@ namespace UniMarc
if (com != null) { com.tb_clt1.Text = value; }
if (pur != null) { pur.tb_clt.Text = value; }
if (la != null) { la.tb_clt.Text = value; la.btn_lookup_Click(null, null); }
if (si != null) { si.tb_clt.Text = value; si.lbl_tel.Text = dataGridView1.Rows[idx].Cells[2].Value.ToString(); }
if (si != null) { si.tb_clt.Text = value; si.lbl_tel.Text = dataGridView1.Rows[idx].Cells[2].Value?.ToString() ?? string.Empty; }
if (sb != null) { sb.tb_clt.Text = value; sb.btn_Lookup_Click(null, null); }
if (sip != null) { sip.tb_clt.Text = value; }
if (ll != null) { ll.tb_clt.Text = value; }
@@ -184,17 +191,17 @@ namespace UniMarc
dc.tb_SearchClient.Text = value;
dc.lbl_Client.Text = value;
dc.lbl_ID.Text = dataGridView1.Rows[idx].Cells["DLS_ID"].Value.ToString();
dc.lbl_PW.Text = dataGridView1.Rows[idx].Cells["DLS_PW"].Value.ToString();
dc.lbl_Area.Text = dataGridView1.Rows[idx].Cells["DLS_Area"].Value.ToString();
dc.lbl_PW.Text = dataGridView1.Rows[idx].Cells["DLS_PW"].Value?.ToString() ?? string.Empty;
dc.lbl_Area.Text = dataGridView1.Rows[idx].Cells["DLS_Area"].Value?.ToString() ?? string.Empty;
dc.btn_Connect.PerformClick();
//dc.SetArea(dataGridView1.Rows[idx].Cells["DLS_Area"].Value.ToString(), true);
}
if (sl != null) {
sl.tb_SearchClient.Text = value;
sl.lbl_Client.Text = value;
sl.lbl_ID.Text = dataGridView1.Rows[idx].Cells["DLS_ID"].Value.ToString();
sl.lbl_PW.Text = dataGridView1.Rows[idx].Cells["DLS_PW"].Value.ToString();
sl.lbl_Area.Text = dataGridView1.Rows[idx].Cells["DLS_Area"].Value.ToString();
sl.lbl_ID.Text = dataGridView1.Rows[idx].Cells["DLS_ID"].Value?.ToString() ?? string.Empty;
sl.lbl_PW.Text = dataGridView1.Rows[idx].Cells["DLS_PW"].Value?.ToString() ?? string.Empty;
sl.lbl_Area.Text = dataGridView1.Rows[idx].Cells["DLS_Area"].Value?.ToString() ?? string.Empty;
sl.SetArea(dataGridView1.Rows[idx].Cells["DLS_Area"].Value.ToString(), true);
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -103,7 +104,7 @@ namespace UniMarc
}
else
{
MessageBox.Show("읽을 파일이 없습니다.", "에러", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE("읽을 파일이 없습니다.");
}
}
/// <summary>
@@ -126,16 +127,16 @@ namespace UniMarc
/// <param name="e"></param>
private void btn_Save_Click(object sender, EventArgs e)
{
if(cltchk == false || tb_clt1.Text=="") { MessageBox.Show("거래처를 확인해주세요."); return; }
if (chk_Save_DB() == -1) { MessageBox.Show("작업 대상을 선택해 주세요."); return; }
if(cltchk == false || tb_clt1.Text=="") { UTIL.MsgE("거래처를 확인해주세요."); return; }
if (chk_Save_DB() == -1) { UTIL.MsgE("작업 대상을 선택해 주세요."); return; }
string cmd = db.DB_Select_Search("name", "User_Data", "name", tb_UserName.Text);
if (db.DB_Send_CMD_Search(cmd) == "")
{ MessageBox.Show("담당자를 확인해주세요."); return; }
{ UTIL.MsgE("담당자를 확인해주세요."); return; }
// TODO: 목록명, 목록일자로 구분
cmd = db.DB_Search("Obj_List", "list_name", "[" + tb_dvy1.Text + "]" + tb_clt1.Text, "comp_num", comp_idx);
if (db.DB_Send_CMD_Search(cmd) != "")
{ MessageBox.Show("DB의 납품목록과 중복됩니다."); return; }
{ UTIL.MsgE("DB의 납품목록과 중복됩니다."); return; }
bool MsgOk = false;
int Marc_ton = chk_Save_DB();
@@ -189,7 +190,7 @@ namespace UniMarc
}
}
if (MsgOk) {
MessageBox.Show(Strmsg + "번째 행의 단가/수량/합계를 확인해 주세요.");
UTIL.MsgE(Strmsg + "번째 행의 단가/수량/합계를 확인해 주세요.");
return;
}
data[0] = start_date.Value.ToString().Substring(0,10);
@@ -222,6 +223,8 @@ namespace UniMarc
string Incmd = db.DB_INSERT("Obj_List", col_name, setData);
Helper_DB.ExcuteNonQuery(Incmd);
UTIL.MsgI("저장되었습니다.");
Grid1_total();
dataGridView2.Rows.Add(add_grid_data);
GridColorChange();
@@ -269,7 +272,7 @@ namespace UniMarc
{
int cout = 0;
int delcout = 0;
if (MessageBox.Show("정말 삭제하시겠습니까?\n삭제는 1개씩입니다.", "Danger!!!", MessageBoxButtons.YesNo) == DialogResult.Yes)
if (UTIL.MsgQ("정말 삭제하시겠습니까?\n삭제는 1개씩입니다.") == DialogResult.Yes)
{
for (int a = 0; a < dataGridView2.Rows.Count; a++)
{
@@ -277,10 +280,10 @@ namespace UniMarc
if (isChecked)
{
if (cout == 0) { delcout = a; cout++; }
else { MessageBox.Show("체크가 2개이상 되어있습니다!"); cout++; break; }
else { UTIL.MsgE("체크가 2개이상 되어있습니다!"); cout++; break; }
}
}
if (cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; }
if (cout == 0) { UTIL.MsgE("체크된 사항이 없습니다."); return; }
else if (cout == 1)
{
string[] del_target = { dataGridView2.Rows[delcout].Cells["list_date"].Value.ToString(),
@@ -305,10 +308,10 @@ namespace UniMarc
if (isChecked)
{
if (cout == 0) { EditNumber = a; cout++; }
else if (cout != 0) { MessageBox.Show("체크가 2개이상 되어있습니다!"); cout++; break; }
else if (cout != 0) { UTIL.MsgE("체크가 2개이상 되어있습니다!"); cout++; break; }
}
}
if (cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; }
if (cout == 0) { UTIL.MsgE("체크된 사항이 없습니다."); return; }
if (cout == 1)
{
Commodity_Edit edit = new Commodity_Edit(this);
@@ -417,10 +420,10 @@ namespace UniMarc
else if (cout != 0) { MorgeNum[1] = a; cout++; break; }
}
}
if (cout == 0) { MessageBox.Show("체크된 사항이 없습니다."); return; }
if (cout == 0) { UTIL.MsgE("체크된 사항이 없습니다."); return; }
else if (cout == 1)
{
MessageBox.Show("체크가 1개밖에 되어있지않습니다.");
UTIL.MsgE("체크가 1개밖에 되어있지않습니다.");
}
else if (cout == 2) {
Commodity_Morge morge = new Commodity_Morge(this);
@@ -428,12 +431,12 @@ namespace UniMarc
}
else if (cout > 2)
{
MessageBox.Show("체크된 사항이 너무 많습니다!");
UTIL.MsgE("체크된 사항이 너무 많습니다!");
}
}
private void btn_ing_Click(object sender, EventArgs e)
{
if(MessageBox.Show("진행처리 하시겠습니까?", "진행", MessageBoxButtons.YesNo) == DialogResult.Yes)
if(UTIL.MsgQ("진행처리 하시겠습니까?") == DialogResult.Yes)
{
for(int a = 0; a < dataGridView2.Rows.Count; a++)
{
@@ -455,7 +458,7 @@ namespace UniMarc
}
private void btn_Complet_Click(object sender, EventArgs e)
{
if (MessageBox.Show("완료처리 하시겠습니까?", "완료", MessageBoxButtons.YesNo) == DialogResult.Yes)
if (UTIL.MsgQ("완료처리 하시겠습니까?") == DialogResult.Yes)
{
for (int a = 0; a < dataGridView2.Rows.Count; a++)
{

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -16,7 +17,7 @@ namespace UniMarc
Helper_DB db = new Helper_DB();
public string compidx;
string table_name = "Inven";
int rowidx=0;
int rowidx = 0;
public Input_Lookup_Stock(Main _main)
{
InitializeComponent();
@@ -34,7 +35,7 @@ namespace UniMarc
string cmd = db.DB_Select_Search(Area, table_name, "compidx", compidx);
string db_res = db.DB_Send_CMD_Search(cmd);
mk_grid(db_res);
for(int a= 0; a < dataGridView1.Rows.Count; a++)
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
if (chk_stock(dataGridView1.Rows[a].Cells["ISBN"].Value.ToString()) == true)
{
@@ -48,7 +49,8 @@ namespace UniMarc
string[] data = db_data.Split('|');
string[] input_grid = { "", "", "", "", "",
"", "", "" };
for(int a = 0; a < data.Length; a++) {
for (int a = 0; a < data.Length; a++)
{
if (a % 8 == 0) { input_grid[0] = data[a]; }
if (a % 8 == 1) { input_grid[1] = data[a]; }
if (a % 8 == 2) { input_grid[2] = data[a]; }
@@ -56,10 +58,12 @@ namespace UniMarc
if (a % 8 == 4) { input_grid[4] = data[a]; }
if (a % 8 == 5) { input_grid[5] = data[a]; }
if (a % 8 == 6) { input_grid[6] = data[a]; }
if (a % 8 == 7) {
if (a % 8 == 7)
{
if (data[a].Length < 3) { input_grid[7] = data[a]; }
else { input_grid[7] = data[a].Substring(0, 10); }
dataGridView1.Rows.Add(input_grid); }
dataGridView1.Rows.Add(input_grid);
}
}
}
private void btn_Add_Click(object sender, EventArgs e)
@@ -70,13 +74,13 @@ namespace UniMarc
}
private void btn_Save_Click(object sender, EventArgs e)
{
if (tb_book_name.Text == "") { MessageBox.Show("도서명을 작성해주세요."); return; }
if (tb_isbn.Text == "") { MessageBox.Show("ISBN을 작성해주세요."); return; }
if (tb_book_comp.Text == "") { MessageBox.Show("출판사를 작성해주세요."); return; }
if (tb_author.Text == "") { MessageBox.Show("저자를 작성해주세요."); return; }
if (tb_pay.Text == "") { MessageBox.Show("정가를 작성해주세요."); return; }
if (tb_order.Text == "") { MessageBox.Show("매입처를 작성해주세요."); return; }
if (tb_count.Text == "") { MessageBox.Show("수량을 작성해주세요."); return; }
if (tb_book_name.Text == "") { UTIL.MsgE("도서명을 작성해주세요."); return; }
if (tb_isbn.Text == "") { UTIL.MsgE("ISBN을 작성해주세요."); return; }
if (tb_book_comp.Text == "") { UTIL.MsgE("출판사를 작성해주세요."); return; }
if (tb_author.Text == "") { UTIL.MsgE("저자를 작성해주세요."); return; }
if (tb_pay.Text == "") { UTIL.MsgE("정가를 작성해주세요."); return; }
if (tb_order.Text == "") { UTIL.MsgE("매입처를 작성해주세요."); return; }
if (tb_count.Text == "") { UTIL.MsgE("수량을 작성해주세요."); return; }
if (!ask_SaveChk(grid_text_savechk())) { return; }
@@ -86,7 +90,7 @@ namespace UniMarc
"order", "count", "import_date", "compidx" };
string Incmd = db.DB_INSERT(table_name, where, input);
Helper_DB.ExcuteNonQuery(Incmd);
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
}
private bool grid_text_savechk()
{
@@ -106,10 +110,10 @@ namespace UniMarc
}
private bool ask_SaveChk(bool ask)
{
if (!ask) {
if (MessageBox.Show("저장하실 내용이 입고에 저장되어있습니다. 저장하시겠습니까?", "경고!",
MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) {
if (!ask)
{
if (UTIL.MsgQ("저장하실 내용이 입고에 저장되어있습니다. 저장하시겠습니까?") != DialogResult.Yes)
{
return false;
}
}
@@ -135,7 +139,7 @@ namespace UniMarc
private void stock_check(string[] stock)
{
string[] gird = { "", "", "", "", "", "", "", "" };
for(int a = 0; a < stock.Length - 1; a++)
for (int a = 0; a < stock.Length - 1; a++)
{
if (a % 8 == 0) { gird[0] = stock[a]; }
if (a % 8 == 1) { gird[1] = stock[a]; }
@@ -144,10 +148,12 @@ namespace UniMarc
if (a % 8 == 4) { gird[4] = stock[a]; }
if (a % 8 == 5) { gird[5] = stock[a]; }
if (a % 8 == 6) { gird[6] = stock[a]; }
if (a % 8 == 7) {
if (a % 8 == 7)
{
if (stock[a].Length < 3) { gird[7] = stock[a]; }
else { gird[7] = stock[a].Substring(0, 10); }
if (chk_stock(gird[0]) == true) {
if (chk_stock(gird[0]) == true)
{
dataGridView1.Rows.Add(gird);
}
}

View File

@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Printing;
using System.IO;
using AR;
namespace UniMarc
{
@@ -91,7 +92,7 @@ namespace UniMarc
private void btn_print_Click(object sender, EventArgs e) // 인쇄 기능
{
if (dataGridView1.Rows.Count < 1) {
MessageBox.Show("인쇄할 목록이 없습니다!");
UTIL.MsgE("인쇄할 목록이 없습니다!");
return;
}
// 여백 설정

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -246,7 +247,7 @@ namespace UniMarc
string U_cmd = db.More_Update(table, Edit_col, Edit_Data, Search_col, Search_Data);
Helper_DB.ExcuteNonQuery(U_cmd);
}
MessageBox.Show("저장되었습니다.");
UTIL.MsgI("저장되었습니다.");
}
private void btn_process_Click(object sender, EventArgs e) // 완료처리
{
@@ -277,7 +278,7 @@ namespace UniMarc
U_cmd = db.More_Update("Obj_List", Edit_col, Edit_data, Search_col, Search_data);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("정상적으로 완료처리 되었습니다.");
UTIL.MsgI("정상적으로 완료처리 되었습니다.");
}
/// <summary>
/// 목록도서DB 내용을 들고와서 SalesDB에 출고율을 추가하여 집어넣는다.

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -63,7 +64,7 @@ namespace UniMarc
Area, "날짜", start, end, gu, compidx );
//string cmd = db.Search_Date("Send_Order", Area, "날짜", set_date[0], set_date[1], compidx);
string Fax_Key_ary = db.DB_Send_CMD_Search(cmd);
MessageBox.Show(Fax_Key_ary);
UTIL.MsgI(Fax_Key_ary);
string[] Fax_Key = Fax_Key_ary.Split('|');
input_Grid(Fax_Key);
#endregion
@@ -212,10 +213,10 @@ namespace UniMarc
private static void DownloadFileCallBack(object sender, AsyncCompletedEventArgs e)
{
if (e.Cancelled)
MessageBox.Show("File Download Cancelled");
UTIL.MsgE("File Download Cancelled");
if (e.Error != null)
MessageBox.Show(e.Error.ToString());
UTIL.MsgE(e.Error.ToString());
}
#endregion
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -281,7 +282,7 @@ namespace UniMarc
string U_cmd = db.More_Update("Obj_List_Book", edit_col, edit_data, sear_col, sear_data);
Helper_DB.ExcuteNonQuery(U_cmd);
}
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
}
private void btn_close_Click(object sender, EventArgs e)
{
@@ -406,7 +407,7 @@ namespace UniMarc
total[1] += Convert.ToInt32(dataGridView1.Rows[a].Cells["pay"].Value.ToString());
}
}
if (chkIdx.Count < 1) { MessageBox.Show("선택된 도서가 없습니다!"); return "false"; }
if (chkIdx.Count < 1) { UTIL.MsgE("선택된 도서가 없습니다!"); return "false"; }
string[,] inputExcel = new string[chkIdx.Count, 7];
string pur = dataGridView1.Rows[chkIdx[0]].Cells["order"].Value.ToString();
@@ -433,7 +434,7 @@ namespace UniMarc
}
Excel_text ex = new Excel_text();
string filename = ex.mk_Excel_Order(inputExcel, total, compidx, pur, tb_PS.Text);
MessageBox.Show("엑셀 반출 완료");
UTIL.MsgI("엑셀 반출 완료");
return filename;
}
@@ -453,7 +454,7 @@ namespace UniMarc
{
if (dataGridView1.Rows[a].Cells["order"].Value.ToString() != over_lab)
{
MessageBox.Show("주문처가 동일하지 않습니다!", "Error");
UTIL.MsgE("주문처가 동일하지 않습니다!");
return "false";
}
}
@@ -592,7 +593,7 @@ namespace UniMarc
if (pur_data[1] == "")
{
MessageBox.Show("주문처의 팩스 번호가 비어있습니다!", "Error");
UTIL.MsgE("주문처의 팩스 번호가 비어있습니다!");
return false;
}
@@ -675,7 +676,7 @@ namespace UniMarc
if (st.isContainHangul(m_send))
{
MessageBox.Show("DB내 저장된 이메일이 사양과 다릅니다. 직접 입력해주세요.");
UTIL.MsgE("DB내 저장된 이메일이 사양과 다릅니다. 직접 입력해주세요.");
Skill_Search_Text sst = new Skill_Search_Text();
string value = "";

View File

@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Windows.Forms.VisualStyles;
using AR;
namespace UniMarc
{
@@ -219,7 +220,7 @@ namespace UniMarc
}
if (name == "dataGridView1" && col == 11) {
if(tb_persent.Text == "") {
MessageBox.Show("매입율을 작성해주세요.");
UTIL.MsgE("매입율을 작성해주세요.");
tb_persent.Focus();
}
else {
@@ -316,7 +317,7 @@ namespace UniMarc
}
}
}
else { MessageBox.Show("임시 저장된 데이터가 없습니다.", "에러", MessageBoxButtons.OK, MessageBoxIcon.Error); }
else { UTIL.MsgE("임시 저장된 데이터가 없습니다."); }
}
private void btn_lookup_Click(object sender, EventArgs e)
{
@@ -429,7 +430,7 @@ namespace UniMarc
if (chk_stock.Checked == true) {
if (stock_chk(isbn_chk) == true) {
int inven_count = stock_count_chk(isbn_chk);
MessageBox.Show(inven_count.ToString());
UTIL.MsgI(inven_count.ToString());
if (lbl_inven_count.Text == "0") {
lbl_inven_count.Text = "0";
inven_count = 0;
@@ -792,7 +793,7 @@ namespace UniMarc
{
string Incmd = db.DB_INSERT("Inven", input_col, input_data);
Helper_DB.ExcuteNonQuery(Incmd);
MessageBox.Show("DB 새로 추가");
UTIL.MsgI("DB 새로 추가");
return;
}
else
@@ -802,7 +803,7 @@ namespace UniMarc
string[] cout = db_res.Split('|');
int count = Convert.ToInt32(cout[0]);
count += data;
MessageBox.Show("DB 수정");
UTIL.MsgI("DB 수정");
string U_cmd = db.DB_Update("Inven", "count", count.ToString(), "idx", cout[0]);
Helper_DB.ExcuteNonQuery(U_cmd);
}
@@ -923,9 +924,9 @@ namespace UniMarc
{
string[] param = { "title", "publisher", "author", "priceStandard" };
API api = new API();
string aladin = api.Aladin(isbn, "ISBN13", param);
var aladinResult = api.Aladin(isbn, "ISBN13", param);
string[] insert = aladin.Split('|');
string[] insert = aladinResult.ToArray();// aladin.Split('|');
if (insert.Length < 2) { return; };
datagrid.Rows[row].Cells["book_name3"].Value = insert[0];
@@ -942,7 +943,7 @@ namespace UniMarc
}
private void Purchase_FormClosing(object sender, FormClosingEventArgs e)
{
if (MessageBox.Show("이대로 닫으시겠습니까?", "경고", MessageBoxButtons.YesNo) == DialogResult.No)
if (UTIL.MsgQ("이대로 닫으시겠습니까?") != DialogResult.Yes)
{
// 로컬파일 생성. (C:\)
create_TempTxt();

View File

@@ -29,7 +29,7 @@ namespace UniMarc
{
if (tCheckText == "")
{
MessageBox.Show("전화번호, 상호, 이메일, IP, 고유번호는 필수 입력 사항입니다.");
UTIL.MsgE("전화번호, 상호, 이메일, IP, 고유번호는 필수 입력 사항입니다.");
return;
}
}
@@ -43,7 +43,7 @@ namespace UniMarc
string tResult = mDb.DB_Send_CMD_Search(tCmd);
if (tResult != "")
{
MessageBox.Show("상호명이 중복되었습니다.\n다시 확인해주세요.");
UTIL.MsgE("상호명이 중복되었습니다.\n다시 확인해주세요.");
return;
}
@@ -52,7 +52,7 @@ namespace UniMarc
if (tResult != "")
{
MessageBox.Show("고유번호가 중복되었습니다.\n다시 확인해주세요.");
UTIL.MsgE("고유번호가 중복되었습니다.\n다시 확인해주세요.");
return;
}
@@ -86,7 +86,7 @@ namespace UniMarc
{
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count == 0)
{
MessageBox.Show("수정할 행을 선택해 주세요.");
UTIL.MsgE("수정할 행을 선택해 주세요.");
return;
}
string tText = string.Format("{0} 를 수정 하시겠습니까?", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
@@ -116,7 +116,7 @@ namespace UniMarc
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count == 0)
{
MessageBox.Show("삭제할 행을 선택해 주세요.");
UTIL.MsgE("삭제할 행을 선택해 주세요.");
return;
}
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -32,10 +33,10 @@ namespace UniMarc
{
data = Doc.GetElementsByTagName("b")[a].InnerText;
richTextBox1.Text += data + "\n";
MessageBox.Show(data);
UTIL.MsgI(data);
}
}
MessageBox.Show(Doc.GetElementsByTagName("a").Count.ToString());
UTIL.MsgI(Doc.GetElementsByTagName("a").Count.ToString());
// < a href = "https://www.aladin.co.kr/shop/wproduct.aspx?
// ItemId=248012843" class="bo3">
// <b>무한도전 낱말퍼즐 : 과학</b>

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -39,12 +40,12 @@ namespace UniMarc
if (ID == "")
{
MessageBox.Show("ID칸이 비어있습니다!");
UTIL.MsgE("ID칸이 비어있습니다!");
return;
}
if (!System.Text.RegularExpressions.Regex.IsMatch(ID, @"^[a-zA-Z0-9]"))
{
MessageBox.Show("영어와 숫자 조합으로 작성해주세요!");
UTIL.MsgE("영어와 숫자 조합으로 작성해주세요!");
isIDcheck = false;
return;
}
@@ -52,12 +53,12 @@ namespace UniMarc
string cmd = string.Format("SELECT * FROM `User_Data` WHERE `ID` = \"{0}\";", ID);
string res = db.DB_Send_CMD_Search(cmd);
if (res == "") {
MessageBox.Show("사용가능한 이이디입니다. [" + ID + "]");
UTIL.MsgI("사용가능한 이이디입니다. [" + ID + "]");
isIDcheck = true;
button1.ForeColor = Color.Blue;
}
else {
MessageBox.Show("중복된 아이디입니다. [" + ID + "]");
UTIL.MsgE("중복된 아이디입니다. [" + ID + "]");
isIDcheck = false;
}
}
@@ -77,7 +78,7 @@ namespace UniMarc
foreach (string CheckText in NeedText)
{
if (CheckText == "") {
MessageBox.Show("노란 박스는 꼭 채워주세요!");
UTIL.MsgE("노란 박스는 꼭 채워주세요!");
return;
}
}
@@ -85,12 +86,12 @@ namespace UniMarc
string cmd_sanghoCheck = string.Format("SELECT * FROM `Comp` WHERE `comp_name` = \"{0}\"", tb_sangho.Text);
string res = db.DB_Send_CMD_Search(cmd_sanghoCheck);
if (res != "") {
MessageBox.Show("상호명이 중복되었습니다.\n다시 확인해주세요.");
UTIL.MsgE("상호명이 중복되었습니다.\n다시 확인해주세요.");
return;
}
if (!isIDcheck)
{
MessageBox.Show("아이디 중복확인 먼저 진행해주세요.");
UTIL.MsgE("아이디 중복확인 먼저 진행해주세요.");
return;
}

View File

@@ -1,4 +1,5 @@
using SHDocVw;
using AR;
using SHDocVw;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -220,12 +221,12 @@ namespace UniMarc
if (TagIndex == 1)
{
MessageBox.Show("[칸채우기]가 아닌 [마크 작성] 탭에서 저장해주세요!");
UTIL.MsgE("[칸채우기]가 아닌 [마크 작성] 탭에서 저장해주세요!");
return;
}
if (grade == 3 || grade == -1)
{
MessageBox.Show("등급을 설정해주세요. (C 이상)");
UTIL.MsgE("등급을 설정해주세요. (C 이상)");
return;
}
@@ -238,7 +239,7 @@ namespace UniMarc
if (!isPass(MarcText))
{
MessageBox.Show("입력된 마크의 상태를 확인해주세요.", "isPass");
UTIL.MsgE("입력된 마크의 상태를 확인해주세요.");
return;
}
@@ -277,7 +278,7 @@ namespace UniMarc
else
InsertMarc(Table, BookData, orimarc, grade, tag056, date);
MessageBox.Show("저장되었습니다.", "저장");
UTIL.MsgI("저장되었습니다.");
}
#region SaveSub
@@ -431,7 +432,7 @@ namespace UniMarc
}
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
UTIL.MsgE(msg + "태그가 없습니다.");
return false;
}
@@ -445,7 +446,7 @@ namespace UniMarc
}
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
UTIL.MsgE("기본표목이 존재하지않습니다.");
return false;
}
@@ -463,7 +464,7 @@ namespace UniMarc
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
UTIL.MsgE("부출표목이 존재하지않습니다.");
return false;
}
@@ -572,13 +573,13 @@ namespace UniMarc
}
else
{
MessageBox.Show(string.Format("SplitError : {0}", string.Join("\t", DataSplit)));
UTIL.MsgE(string.Format("SplitError : {0}", string.Join("\t", DataSplit)));
return false;
}
}
else
{
MessageBox.Show(string.Format("DataError : {0}", Data));
UTIL.MsgE(string.Format("DataError : {0}", Data));
return false;
}
}
@@ -776,7 +777,7 @@ namespace UniMarc
if (pubDate.Length < 3)
{
MessageBox.Show("260c가 인식되지않습니다.");
UTIL.MsgE("260c가 인식되지않습니다.");
return "false";
}
else if (pubDate.Length < 5)
@@ -805,7 +806,7 @@ namespace UniMarc
if (res == "")
{
MessageBox.Show("260a가 인식되지않습니다.");
UTIL.MsgE("260a가 인식되지않습니다.");
return "false";
}
else if (res.Length < 3)
@@ -2680,7 +2681,7 @@ namespace UniMarc
}
catch(Exception ex)
{
MessageBox.Show("데이터가 올바르지않습니다.\n245d를 확인해주세요.\n" + ex.ToString());
UTIL.MsgE("데이터가 올바르지않습니다.\n245d를 확인해주세요.\n" + ex.ToString());
}
}
#region

View File

@@ -29,53 +29,53 @@ namespace UniMarc
/// </summary>
private void InitializeComponent()
{
this.btn_close = new System.Windows.Forms.Button();
this.btn_Save = new System.Windows.Forms.Button();
this.btSaveNew = new System.Windows.Forms.Button();
this.Btn_SearchKolis = new System.Windows.Forms.Button();
this.cb_SearchCol = new System.Windows.Forms.ComboBox();
this.btn_Empty = new System.Windows.Forms.Button();
this.tb_Search = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.marcEditorControl1 = new UniMarc.MarcEditorControl();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button2 = new System.Windows.Forms.Button();
this.panel5 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.rtEtc1 = new System.Windows.Forms.RichTextBox();
this.rtEtc2 = new System.Windows.Forms.RichTextBox();
this.panel6 = new System.Windows.Forms.Panel();
this.lbl_SaveData = new System.Windows.Forms.Label();
this.cb_grade = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.btSave = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.lbl_Midx = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.button1 = new System.Windows.Forms.Button();
this.lbl_SaveData = new System.Windows.Forms.TextBox();
this.marcEditorControl1 = new UniMarc.MarcEditorControl();
this.uC_SelectGrade1 = new UniMarc.UC_SelectGrade();
this.panel2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.panel5.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.panel6.SuspendLayout();
this.panel1.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.SuspendLayout();
//
// btn_close
// btSaveNew
//
this.btn_close.Location = new System.Drawing.Point(102, 156);
this.btn_close.Name = "btn_close";
this.btn_close.Size = new System.Drawing.Size(77, 23);
this.btn_close.TabIndex = 381;
this.btn_close.Text = "닫 기";
this.btn_close.UseVisualStyleBackColor = true;
this.btn_close.Click += new System.EventHandler(this.btn_close_Click);
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(19, 185);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(77, 23);
this.btn_Save.TabIndex = 398;
this.btn_Save.Text = "저장(F9)";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
this.btSaveNew.Location = new System.Drawing.Point(92, 8);
this.btSaveNew.Name = "btSaveNew";
this.btSaveNew.Size = new System.Drawing.Size(84, 33);
this.btSaveNew.TabIndex = 398;
this.btSaveNew.Text = "새로추가";
this.btSaveNew.UseVisualStyleBackColor = true;
this.btSaveNew.Click += new System.EventHandler(this.btn_Save_Click);
//
// Btn_SearchKolis
//
this.Btn_SearchKolis.Location = new System.Drawing.Point(102, 185);
this.Btn_SearchKolis.Dock = System.Windows.Forms.DockStyle.Fill;
this.Btn_SearchKolis.Location = new System.Drawing.Point(132, 3);
this.Btn_SearchKolis.Name = "Btn_SearchKolis";
this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23);
this.Btn_SearchKolis.Size = new System.Drawing.Size(123, 39);
this.Btn_SearchKolis.TabIndex = 397;
this.Btn_SearchKolis.Text = "코리스 검색";
this.Btn_SearchKolis.UseVisualStyleBackColor = true;
@@ -90,16 +90,17 @@ namespace UniMarc
"서명",
"저자",
"출판사"});
this.cb_SearchCol.Location = new System.Drawing.Point(19, 15);
this.cb_SearchCol.Location = new System.Drawing.Point(11, 20);
this.cb_SearchCol.Name = "cb_SearchCol";
this.cb_SearchCol.Size = new System.Drawing.Size(121, 20);
this.cb_SearchCol.Size = new System.Drawing.Size(238, 20);
this.cb_SearchCol.TabIndex = 395;
//
// btn_Empty
//
this.btn_Empty.Location = new System.Drawing.Point(19, 156);
this.btn_Empty.Dock = System.Windows.Forms.DockStyle.Fill;
this.btn_Empty.Location = new System.Drawing.Point(3, 3);
this.btn_Empty.Name = "btn_Empty";
this.btn_Empty.Size = new System.Drawing.Size(77, 23);
this.btn_Empty.Size = new System.Drawing.Size(123, 39);
this.btn_Empty.TabIndex = 396;
this.btn_Empty.Text = "비 우 기";
this.btn_Empty.UseVisualStyleBackColor = true;
@@ -107,39 +108,53 @@ namespace UniMarc
//
// tb_Search
//
this.tb_Search.Location = new System.Drawing.Point(11, 41);
this.tb_Search.Location = new System.Drawing.Point(11, 47);
this.tb_Search.Name = "tb_Search";
this.tb_Search.Size = new System.Drawing.Size(205, 21);
this.tb_Search.Size = new System.Drawing.Size(188, 21);
this.tb_Search.TabIndex = 0;
this.tb_Search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_ISBN_KeyDown);
//
// panel2
//
this.panel2.Controls.Add(this.marcEditorControl1);
this.panel2.Controls.Add(this.panel5);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Controls.Add(this.groupBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1059, 751);
this.panel2.Padding = new System.Windows.Forms.Padding(8);
this.panel2.Size = new System.Drawing.Size(277, 939);
this.panel2.TabIndex = 394;
//
// marcEditorControl1
// groupBox1
//
this.marcEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(0, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(793, 751);
this.marcEditorControl1.TabIndex = 394;
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.cb_SearchCol);
this.groupBox1.Controls.Add(this.tb_Search);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Location = new System.Drawing.Point(8, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(261, 79);
this.groupBox1.TabIndex = 408;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "마크 검색";
//
// button2
//
this.button2.Location = new System.Drawing.Point(205, 46);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(45, 22);
this.button2.TabIndex = 405;
this.button2.Text = "검색";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// panel5
//
this.panel5.Controls.Add(this.tableLayoutPanel1);
this.panel5.Controls.Add(this.panel6);
this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
this.panel5.Location = new System.Drawing.Point(793, 0);
this.panel5.Location = new System.Drawing.Point(1306, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(266, 751);
this.panel5.Size = new System.Drawing.Size(268, 939);
this.panel5.TabIndex = 395;
//
// tableLayoutPanel1
@@ -149,12 +164,12 @@ namespace UniMarc
this.tableLayoutPanel1.Controls.Add(this.rtEtc1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.rtEtc2, 0, 1);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 308);
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 455);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(266, 443);
this.tableLayoutPanel1.Size = new System.Drawing.Size(268, 484);
this.tableLayoutPanel1.TabIndex = 0;
//
// rtEtc1
@@ -164,109 +179,183 @@ namespace UniMarc
this.rtEtc1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.rtEtc1.Location = new System.Drawing.Point(3, 3);
this.rtEtc1.Name = "rtEtc1";
this.rtEtc1.Size = new System.Drawing.Size(260, 215);
this.rtEtc1.Size = new System.Drawing.Size(262, 236);
this.rtEtc1.TabIndex = 32;
this.rtEtc1.Text = "Remark1";
this.rtEtc1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.rtEtc1_KeyDown);
//
// rtEtc2
//
this.rtEtc2.BackColor = System.Drawing.SystemColors.ScrollBar;
this.rtEtc2.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtEtc2.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.rtEtc2.Location = new System.Drawing.Point(3, 224);
this.rtEtc2.Location = new System.Drawing.Point(3, 245);
this.rtEtc2.Name = "rtEtc2";
this.rtEtc2.Size = new System.Drawing.Size(260, 216);
this.rtEtc2.Size = new System.Drawing.Size(262, 236);
this.rtEtc2.TabIndex = 32;
this.rtEtc2.Text = "Remark2";
this.rtEtc2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.rtEtc1_KeyDown);
//
// panel6
//
this.panel6.Controls.Add(this.tb_Search);
this.panel6.Controls.Add(this.cb_SearchCol);
this.panel6.Controls.Add(this.btn_Save);
this.panel6.Controls.Add(this.Btn_SearchKolis);
this.panel6.Controls.Add(this.uC_SelectGrade1);
this.panel6.Controls.Add(this.btSave);
this.panel6.Controls.Add(this.panel1);
this.panel6.Controls.Add(this.tableLayoutPanel2);
this.panel6.Controls.Add(this.button1);
this.panel6.Controls.Add(this.btSaveNew);
this.panel6.Controls.Add(this.lbl_SaveData);
this.panel6.Controls.Add(this.cb_grade);
this.panel6.Controls.Add(this.label6);
this.panel6.Controls.Add(this.btn_Empty);
this.panel6.Controls.Add(this.btn_close);
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Location = new System.Drawing.Point(0, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(266, 308);
this.panel6.Padding = new System.Windows.Forms.Padding(5);
this.panel6.Size = new System.Drawing.Size(268, 455);
this.panel6.TabIndex = 1;
//
// btSave
//
this.btSave.Location = new System.Drawing.Point(6, 8);
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(84, 33);
this.btSave.TabIndex = 411;
this.btSave.Text = "수정";
this.btSave.UseVisualStyleBackColor = true;
this.btSave.Click += new System.EventHandler(this.btSave_Click);
//
// panel1
//
this.panel1.Controls.Add(this.lbl_Midx);
this.panel1.Controls.Add(this.label1);
this.panel1.Location = new System.Drawing.Point(8, 50);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(250, 65);
this.panel1.TabIndex = 410;
//
// lbl_Midx
//
this.lbl_Midx.BackColor = System.Drawing.Color.Tomato;
this.lbl_Midx.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_Midx.Font = new System.Drawing.Font("돋움체", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_Midx.Location = new System.Drawing.Point(0, 27);
this.lbl_Midx.Name = "lbl_Midx";
this.lbl_Midx.Size = new System.Drawing.Size(250, 38);
this.lbl_Midx.TabIndex = 409;
this.lbl_Midx.Text = "신규 데이터";
this.lbl_Midx.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.White;
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(250, 27);
this.label1.TabIndex = 408;
this.label1.Text = "MARC INDEX";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 2;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Controls.Add(this.btn_Empty, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.Btn_SearchKolis, 1, 0);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel2.Location = new System.Drawing.Point(5, 405);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(258, 45);
this.tableLayoutPanel2.TabIndex = 407;
//
// button1
//
this.button1.Location = new System.Drawing.Point(179, 8);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(79, 33);
this.button1.TabIndex = 404;
this.button1.Text = "닫기";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// lbl_SaveData
//
this.lbl_SaveData.AutoSize = true;
this.lbl_SaveData.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_SaveData.ForeColor = System.Drawing.Color.PaleTurquoise;
this.lbl_SaveData.Location = new System.Drawing.Point(32, 119);
this.lbl_SaveData.ForeColor = System.Drawing.Color.Black;
this.lbl_SaveData.Location = new System.Drawing.Point(8, 154);
this.lbl_SaveData.Multiline = true;
this.lbl_SaveData.Name = "lbl_SaveData";
this.lbl_SaveData.Size = new System.Drawing.Size(64, 19);
this.lbl_SaveData.Size = new System.Drawing.Size(255, 244);
this.lbl_SaveData.TabIndex = 319;
this.lbl_SaveData.Text = "[] []";
//
// cb_grade
// marcEditorControl1
//
this.cb_grade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_grade.FormattingEnabled = true;
this.cb_grade.Items.AddRange(new object[] {
"A (F9)",
"B (F10)",
"C (F11)",
"D (F12)"});
this.cb_grade.Location = new System.Drawing.Point(19, 96);
this.cb_grade.Name = "cb_grade";
this.cb_grade.Size = new System.Drawing.Size(75, 20);
this.cb_grade.TabIndex = 222;
this.marcEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(277, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(1029, 939);
this.marcEditorControl1.TabIndex = 394;
//
// label6
// uC_SelectGrade1
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label6.Location = new System.Drawing.Point(16, 78);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(62, 12);
this.label6.TabIndex = 223;
this.label6.Text = "마크 등급";
this.uC_SelectGrade1.Grade = -1;
this.uC_SelectGrade1.GradeName = "";
this.uC_SelectGrade1.Location = new System.Drawing.Point(11, 121);
this.uC_SelectGrade1.Name = "uC_SelectGrade1";
this.uC_SelectGrade1.Size = new System.Drawing.Size(245, 29);
this.uC_SelectGrade1.TabIndex = 412;
//
// AddMarc2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Gray;
this.ClientSize = new System.Drawing.Size(1324, 939);
this.ClientSize = new System.Drawing.Size(1574, 939);
this.Controls.Add(this.marcEditorControl1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel5);
this.Name = "AddMarc2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "마크 작성(2-New)";
this.Load += new System.EventHandler(this.AddMarc_Load);
this.panel2.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.panel5.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.panel1.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_close;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox tb_Search;
private System.Windows.Forms.ComboBox cb_SearchCol;
private System.Windows.Forms.Button btn_Empty;
private System.Windows.Forms.Button Btn_SearchKolis;
private MarcEditorControl marcEditorControl1;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button btSaveNew;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
public System.Windows.Forms.RichTextBox rtEtc1;
public System.Windows.Forms.RichTextBox rtEtc2;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Label lbl_SaveData;
private System.Windows.Forms.ComboBox cb_grade;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox lbl_SaveData;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label lbl_Midx;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btSave;
private UC_SelectGrade uC_SelectGrade1;
}
}

View File

@@ -1,4 +1,5 @@
using SHDocVw;
using AR;
using SHDocVw;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -18,22 +19,26 @@ namespace UniMarc
String_Text st = new String_Text();
Help008Tag tag008 = new Help008Tag();
private string mOldMarc = string.Empty;
private MacEditorParameter _param;
Main m;
public AddMarc2(Main _m)
{
InitializeComponent();
db.DBcon();
marcEditorControl1.db = this.db;
m = _m;
}
private void AddMarc_Load(object sender, EventArgs e)
{
cb_SearchCol.SelectedIndex = 0;
db.DBcon();
TextReset();
marcEditorControl1.db = this.db;
this.KeyPreview = true;
uC_SelectGrade1.GradeName = "D";
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
@@ -49,75 +54,24 @@ namespace UniMarc
{
this.marcEditorControl1.SetMarcString(marc);
}
private void btn_Save_Click(object sender, EventArgs e)
{
if (marcEditorControl1.CheckValidation() == false) return;
string dbMarc = marcEditorControl1.MakeMarcString();
string tag056 = Tag056(dbMarc, _param);
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = st.made_Ori_marc(dbMarc).Replace(@"\", "₩");
if (!isMustTag(orimarc))
{
return;
}
var MarcText = dbMarc;
string midx = this.lbl_Midx;
string[] BookData = GetBookData(MarcText);
bool IsCoverDate = false;
if (_param != null && _param.SaveDate != "")
{
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
TimeSpan sp = CheckDate(_param.SaveDate, date);
IsCoverDate = IsCoverData(sp.Days, _param.User);
}
string Table = "Marc";
bool isUpdate;
if (lbl_Midx != "")
isUpdate = true;
else
isUpdate = false;
var grade = this.cb_grade.SelectedIndex;// int.Parse(param.Grade);
if (isUpdate)
UpdateMarc(Table, midx, orimarc, grade, tag056, date, IsCoverDate, _param);
else
InsertMarc(Table, BookData, orimarc, grade, tag056, date, _param);
MessageBox.Show("저장되었습니다.", "저장");
}
private void MarcEditorControl1_BookSaved(object sender, EventArgs e)
{
// Removed - logic moved to btn_Save_Click
}
private void tb_ISBN_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode != Keys.Enter)
return;
searchMarc();
}
void searchMarc()
{
TextReset();
string SearchText = tb_Search.Text;
string SearchCol = cb_SearchCol.SelectedItem.ToString();
var mcs = new MarcCopySelect2(this);
mcs.Init(SearchCol, SearchText);
mcs.Show();
}
/// <summary>
/// ISBN 검색후 특정 마크 선택시 현재폼에 적용시키는 폼
/// </summary>
/// <param name="Marc">뷰형태 마크데이터</param>
/// <param name="ISBN">ISBN</param>
/// <param name="GridData">
using (var mcs = new MarcCopySelect2(SearchCol, SearchText))
if (mcs.ShowDialog() == DialogResult.OK)
{
/// 0:idx <br></br>
/// 1:compidx <br></br>
/// 2:user <br></br>
@@ -125,27 +79,42 @@ namespace UniMarc
/// 4:grade <br></br>
/// 5:tag008 <br></br>
/// 6:LineMarc</param>
public void SelectMarc_Sub(string Marc, string ISBN, string[] GridData)
var selected = mcs.SelectedItem;
var defMarc = PUB.MakeEmptyMarc(selected.ISBN, "BookName", "Author", "Publisher", "Price");
this.marcEditorControl1.LoadBookData(selected.marc_db, selected.ISBN, defMarc);
mOldMarc = selected.marc_db;
if (selected.compidx != PUB.user.CompanyIdx)
{
_param = new MacEditorParameter
{
ISBN13 = ISBN,
SaveDate = string.Format("[{0}] [{1}]", GridData[2], GridData[3]),
User = GridData[2],
NewMake = true,
text008 = GridData[5]
};
this.marcEditorControl1.LoadBookData(Marc, ISBN);
mOldMarc = GridData[6];
lbl_Midx = GridData[0];
UTIL.MsgI($"다른 기관의 데이터 입니다\n신규 등록모드로 실행됩니다.\n\n필요한 경우 입력일자를 업데이트하세요");
this.lbl_Midx.Text = "신규등록";// ".idx;
this.lbl_Midx.Tag = null;
this.lbl_Midx.BackColor = Color.Tomato;
}
else
{
this.lbl_Midx.Text = selected.idx;
this.lbl_Midx.Tag = selected.idx;
this.lbl_Midx.BackColor = Color.Lime;
}
string lbl_Midx = "";
private void btn_close_Click(object sender, EventArgs e)
{
this.Close();
//가져온 등급으로 변경해준다.
//if (selected.Grade == "0") radA.Checked = true;
//else if (selected.Grade == "1") radB.Checked = true;
//else if (selected.Grade == "2") radC.Checked = true;
//else if (selected.Grade == "3") radD.Checked = true;
if (int.TryParse(selected.Grade, out int vgrade))
uC_SelectGrade1.Grade = vgrade;
else
uC_SelectGrade1.Grade = -1;
rtEtc1.Text = selected.remark1;
rtEtc2.Text = selected.remark2;
}
}
private void btn_Empty_Click(object sender, EventArgs e)
{
@@ -161,17 +130,18 @@ namespace UniMarc
{
if (isDelete)
{
var isbn = $"※{DateTime.Now.ToString("yyMMddhhmmss")}";
var emptryMarc = PUB.MakeEmptyMarc(isbn, "title", "author", "publisher", "price");
var emptymarc = TextResetSub();
_param = new MacEditorParameter
{
ISBN13 = string.Empty,
SaveDate = string.Empty,
NewMake = true,
};
marcEditorControl1.LoadBookData(emptymarc, string.Empty);
marcEditorControl1.LoadBookData(string.Empty, isbn, defaultMarc: emptryMarc);
this.rtEtc1.Text = string.Empty;
this.rtEtc2.Text = string.Empty;
lbl_Midx.Tag = null;
lbl_Midx.Text = "신규작성";
lbl_Midx.BackColor = Color.Tomato;
}
}
string TextResetSub()
@@ -219,22 +189,124 @@ namespace UniMarc
}
#region SaveSub
/// <summary>
/// 마크DB에 UPDATE해주는 함수
/// </summary>
/// <param name="Table">테이블 이름</param>
/// <param name="MarcIndex">마크 인덱스 번호</param>
/// <param name="oriMarc">한줄짜리 마크</param>
/// <param name="FullMarc">한줄짜리 마크</param>
/// <param name="grade">마크 등급</param>
/// <param name="tag056">분류기호</param>
/// <param name="date">저장시각 yyyy-MM-dd HH:mm:ss</param>
/// <param name="IsCovertDate">덮어씌울지 유무</param>
void UpdateMarc(string Table, string MarcIndex, string oriMarc, int grade, string tag056, string date, bool IsCovertDate, MacEditorParameter param)
/// <param name="v_date">저장시각 yyyy-MM-dd HH:mm:ss</param>
void UpdateMarc(string MarcIndex, string FullMarc, string grade)
{
//도서정보추출
var v_isbn = "";
var v_price = "";
var v_author = "";
var v_title = "";
var v_publisher = "";
var v_date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
//파서를 사용해서 변경한다
var parser = new UniMarc.MarcParser();
parser.ParseFullMarc(FullMarc);
//ISBN와 가격 (처음나오는 020태그의 값을 적용)
var tag_020 = parser.GetTag<MarcField>("020").FirstOrDefault();
if (tag_020 != null)
{
v_isbn = tag_020.GetSubfieldValue('a');
v_price = tag_020.GetSubfieldValue('c');
}
//저자(100 -> 110 -> 111 순으로 적용)
var tag_100 = parser.GetTag<MarcField>("100").FirstOrDefault();
var tag_110 = parser.GetTag<MarcField>("110").FirstOrDefault();
var tag_111 = parser.GetTag<MarcField>("111").FirstOrDefault();
if (tag_111 != null)
v_author = tag_111.GetSubfieldValue('a');
else if (tag_110 != null)
v_author = tag_110.GetSubfieldValue('a');
else if (tag_100 != null)
v_author = tag_100.GetSubfieldValue('a');
//서명
var tag_245 = parser.GetTag<MarcSubfield>("245a").FirstOrDefault();
v_title = tag_245?.Value ?? string.Empty;
//출판사
var tag_264b = parser.GetTag<MarcSubfield>("264b").FirstOrDefault();
var tag_260b = parser.GetTag<MarcSubfield>("260b").FirstOrDefault();
if(tag_264b != null)
v_publisher = tag_264b?.Value ?? string.Empty;
else if (tag_260b != null)
v_publisher = tag_260b?.Value ?? string.Empty;
//056a
var v_056 = parser.GetTag("056a").FirstOrDefault() ?? string.Empty;
var v_008 = parser.GetTag("008").FirstOrDefault() ?? string.Empty;
if (v_056.isEmpty() || v_008.isEmpty())
{
UTIL.MsgE("056a | 008 태그의 값을 확인할 수 없습니다\n1.마크데이터를 확인 해주세요\n2.개발자에 해당 내용을 문의하세요");
return;
}
if (v_isbn.isEmpty() || v_title.isEmpty())
{
UTIL.MsgE("ISBN과 서명을 추출하지 못했습니다\n1.마크데이터를 확인 해주세요\n2.개발자에 해당 내용을 문의하세요");
return;
}
var etc1 = rtEtc1.Text.Trim();
var etc2 = rtEtc2.Text.Trim();
if (grade.isEmpty()) grade = "2";
if (MarcIndex.isEmpty())
{
//insert
string[] InsertTable =
{
"ISBN", "서명", "저자", "출판사", "가격",
"marc", "비고1", "비고2", "grade", "marc_chk",
"user", "division", "008tag", "date", "compidx"
};
//데이터중복검사필요
//동일 isbnd있다면 그래도 저장할건지 한번 더 물어봐야 함
if (DB_Utils.ExistISBN(v_isbn))
{
if (UTIL.MsgQ("동일한 ISBN이 이미 존재합니다. 그래도 저장하시겠습니까?") == DialogResult.No)
return;
}
string[] InsertColumn =
{
v_isbn, v_title, v_author, v_publisher, v_price,
FullMarc, etc1, etc2, grade.ToString(), "1",
PUB.user.UserName, v_056, v_008, v_date, PUB.user.CompanyIdx
};
string InCMD = db.DB_INSERT("Marc", InsertTable, InsertColumn);
PUB.log.Add("ADDMarcINSERT", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, InCMD.Replace("\r", " ").Replace("\n", " ")));
var rlt = Helper_DB.ExcuteInsertGetIndex(InCMD);
if (rlt.errorMessage.isEmpty() == false)
UTIL.MsgE(rlt.errorMessage);
else
{
lbl_Midx.Tag = rlt.value.ToString();
lbl_Midx.Text = rlt.value.ToString();
UTIL.MsgI($"저장 완료\n\nIDX:{rlt.value}");
}
}
else
{
//update
string[] EditTable =
{
"compidx", "marc", "marc_chk","marc1", "marc_chk1", "비고1",
@@ -243,343 +315,112 @@ namespace UniMarc
};
string[] EditColumn =
{
PUB.user.CompanyIdx, oriMarc, "1",mOldMarc, "0", etc1,
etc2, tag056, param.text008, date, PUB.user.UserName,
PUB.user.CompanyIdx, FullMarc, "1",mOldMarc, "0", etc1,
etc2, v_056, v_008, v_date, PUB.user.UserName,
grade.ToString()
};
string[] SearchTable = { "idx", "compidx" };
string[] SearchColumn = { MarcIndex, PUB.user.CompanyIdx };
//int marcChk = subMarcChk(Table, MarcIndex);
//if (IsCovertDate)
// marcChk--;
//switch (marcChk)
//{
// case 0:
// EditTable[1] = "marc1";
// EditTable[2] = "marc_chk1";
// EditTable[3] = "marc_chk";
// break;
// case 1:
// EditTable[1] = "marc2";
// EditTable[2] = "marc_chk2";
// EditTable[3] = "marc_chk1";
// break;
// case 2:
// EditTable[1] = "marc";
// EditTable[2] = "marc_chk";
// EditTable[3] = "marc_chk2";
// break;
// default:
// EditTable[1] = "marc";
// EditTable[2] = "marc_chk";
// EditTable[3] = "marc_chk2";
// break;
//}
string UpCMD = db.More_Update(Table, EditTable, EditColumn, SearchTable, SearchColumn);
string UpCMD = db.More_Update("Marc", EditTable, EditColumn, SearchTable, SearchColumn);
PUB.log.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, UpCMD.Replace("\r", " ").Replace("\n", " ")));
Helper_DB.ExcuteNonQuery(UpCMD);
}
/// <summary>
/// 마크DB에 INSERT해주는 함수
/// </summary>
/// <param name="Table">테이블 이름</param>
/// <param name="BookData">0:ISBN 1:서명 2:저자 3:출판사 4:정가</param>
/// <param name="oriMarc">한줄짜리 마크</param>
/// <param name="grade">마크 등급</param>
/// <param name="tag056">분류기호</param>
/// <param name="date">저장시각 yyyy-MM-dd HH:mm:ss</param>
void InsertMarc(string Table, string[] BookData, string oriMarc, int grade, string tag056, string date, MacEditorParameter param)
{
var etc1 = rtEtc1.Text.Trim();
var etc2 = rtEtc2.Text.Trim();
string[] InsertTable =
{
"ISBN", "서명", "저자", "출판사", "가격",
"marc", "비고1", "비고2", "grade", "marc_chk",
"user", "division", "008tag", "date", "compidx"
};
string[] InsertColumn =
{
BookData[0], BookData[1], BookData[2], BookData[3], BookData[4],
oriMarc, etc1, etc2, grade.ToString(), "1",
PUB.user.UserName, tag056, param.text008, date, PUB.user.CompanyIdx
};
string InCMD = db.DB_INSERT(Table, InsertTable, InsertColumn);
PUB.log.Add("ADDMarcINSERT", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, InCMD.Replace("\r", " ").Replace("\n", " ")));
Helper_DB.ExcuteNonQuery(InCMD);
}
/// <summary>
/// 마크 저장시 사용하며, 마지막 수정일과 수정자를 가져와 덮어씌울지 백업데이터를 만들지 구분
/// </summary>
/// <param name="TimeSpanDaysValue">저장할 마크의 마지막 수정일</param>
/// <param name="user">저장할 마크의 마지막 수정자</param>
/// <returns>마지막 수정일로부터 2일이 지나지 않고, 마지막 수정자와 해당 유저가 동일 할 경우 True 반환</returns>
private bool IsCoverData(int TimeSpanDaysValue, string user)
{
if (TimeSpanDaysValue < -1)
return false;
if (user != PUB.user.UserName)
return false;
return true;
}
private TimeSpan CheckDate(string LastDate, string SaveDate)
{
DateTime Last = Convert.ToDateTime(LastDate);
DateTime Save = Convert.ToDateTime(SaveDate);
return Last - Save;
}
/// <summary>
/// 필수태그 검사
/// </summary>
/// <param name="orimarc">한줄짜리 마크</param>
/// <returns>필수태그 없을시 false 반환</returns>
private bool isMustTag(string orimarc)
{
string[] SearchTag = { "056a", "0562", "245a", "245d", "260a", "260c", "300a", "300c", "653a" };
string[] Tag = st.Take_Tag(orimarc, SearchTag);
int count = 0;
string msg = "";
bool isTag = true;
foreach (string tag in Tag)
{
if (tag == "")
{
msg += SearchTag[count] + " ";
isTag = false;
}
count++;
}
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
return false;
}
bool is1XX = false;
string[] AuthorTag = { "100a", "110a", "111a" };
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is1XX = true;
}
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
return false;
}
bool is7XX = false;
AuthorTag[0] = "700a";
AuthorTag[1] = "710a";
AuthorTag[2] = "711a";
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is7XX = true;
}
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
return false;
}
return true;
}
/// <summary>
/// 관련 도서 정보를 가져옴
/// </summary>
/// <param name="ViewMarc">뷰형태의 마크</param>
/// <returns>0:ISBN 1:서명 2:저자 3:출판사 4:정가</returns>
string[] GetBookData(string ViewMarc)
{
// ISBN, BookName, Author, BookComp, Price
string[] result = { "", "", "", "", "" };
bool IsISBN = false;
string[] TargetArr = ViewMarc.Split('\n');
foreach (string Target in TargetArr)
{
string[] tmp = Target.Replace("▲", "").Split('\t');
// 0:ISBN 4:Price
if (tmp[0] == "020" && !IsISBN)
{
IsISBN = true;
result[0] = GetMiddelString(tmp[2], "▼a", "▼");
result[4] = GetMiddelString(tmp[2], "▼c", "▼");
}
// 2:Author
if (tmp[0] == "100")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
else if (tmp[0] == "110")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
else if (tmp[0] == "111")
result[2] = GetMiddelString(tmp[2], "▼a", "▼");
// 1:BookName
if (tmp[0] == "245")
result[1] = GetMiddelString(tmp[2], "▼a", "▼");
// 3:BookComp
if (tmp[0] == "300")
result[3] = GetMiddelString(tmp[2], "▼b", "▼");
}
return result;
}
string Tag056(string marc,MacEditorParameter param)
{
// string marc = richTextBox1.Text;
string[] temp = marc.Split('\n');
List<string> target = temp.ToList();
bool isEight = false;
bool eight_chk = false;
string tag056 = string.Empty;
int count = 0;
for (int a = 0; a < target.Count - 1; a++)
{
string[] tmp = target[a].Split('\t');
string tag = tmp[0];
if (tag == "") break;
int eight = Convert.ToInt32(tag.Substring(0, 3));
if (eight == 008)
{
count = a;
eight_chk = true;
isEight = true;
}
else if (eight > 008 && !eight_chk)
{
count = a;
eight_chk = true;
}
if (tag == "056")
tag056 = GetMiddelString(tmp[2], "▼a", "▼");
}
if (!isEight)
target.Insert(count, string.Format("{0}\t{1}\t{2}▲", "008", " ", param.text008));
//richTextBox1.Text = string.Join("\n", target.ToArray());
return tag056;
}
/// <summary>
/// 문자와 문자사이의 값 가져오기
/// </summary>
/// <param name="str">대상 문자열</param>
/// <param name="begin">시작 문자열</param>
/// <param name="end">마지막 문자열</param>
/// <param name="TagNum">불러올 태그 번호</param>
/// <returns>문자 사이값</returns>
public string GetMiddelString(string str, string begin, string end, string TagNum = "")
{
string result = "";
if (string.IsNullOrEmpty(str) || str == "")
return result;
int count = 0;
bool loop = false;
for (int a = count; a < str.Length; a++)
{
count = str.IndexOf(begin);
if (count > -1)
{
str = str.Substring(count + begin.Length);
if (loop)
// 여러 태그들 구분을 지어줌.
result += "▽";
if (str.IndexOf(end) > -1)
result += str.Substring(0, str.IndexOf(end));
var rlt = Helper_DB.ExcuteNonQuery(UpCMD);
if (rlt.applyCount != 1)
UTIL.MsgE(rlt.errorMessage);
else
result += str;
result = TrimEndGubun(result, TagNum);
}
else
break;
loop = true;
UTIL.MsgI("변경 완료");
}
return result;
}
string TrimEndGubun(string str, string TagNum)
{
char[] gu = { '.', ',', ':', ';', '/', ' ' };
if (TagNum == "300" || TagNum == "300a")
{
str = str.Trim();
if (TagNum == "300a")
{
gu = new char[] { '.', ',', '=', ':', ';', '/', '+', ' ' };
for (int i = 0; i < gu.Length; i++)
{
str = str.TrimEnd(gu[i]);
}
}
if (str.Contains("ill."))
return str;
if (str.Contains("p."))
return str;
}
if (TagNum == "710" || TagNum == "910")
return str;
if (TagNum == "245") gu = new char[] { '.', ':', ';', '/', ' ' };
if (TagNum == "245a") gu = new char[] { '.', ',', '=', ':', ';', '/', ' ' };
for (int i = 0; i < gu.Length; i++)
{
str = str.TrimEnd(gu[i]);
}
//foreach (char gubun in gu)
//{
// if (str.Length < 1) continue;
// if (str[str.Length - 1] == gubun)
// {
// str = str.Remove(str.Length - 1);
// str = str.Trim();
// }
//}
return str;
}
#endregion
private void Btn_SearchKolis_Click(object sender, EventArgs e)
{
AddMarc_FillBlank af = new AddMarc_FillBlank(this);
af.Show();
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
searchMarc();
}
private void btSave_Click(object sender, EventArgs e)
{
var midx = lbl_Midx.Tag?.ToString() ?? string.Empty;
if (midx.isEmpty())
{
UTIL.MsgE("저장할 마크를 불러오세요\n신규마크작성상태에서는 추가 버튼을 사용하세요");
return;
}
SaveData(true);
}
private void btn_Save_Click(object sender, EventArgs e)
{
SaveData(false);
}
void SaveData(bool isUpdate)
{
string tag008 = marcEditorControl1.text008.Text;
//입력일자를 업데이트할지 확인한다.
if (isUpdate == false)
{
var inputdate = tag008.Substring(0, 6);
if (inputdate == "000000")
inputdate = DateTime.Now.ToString("yyMMdd");
else if (inputdate != DateTime.Now.ToString("yyMMdd"))
{
if (UTIL.MsgQ($"입력일자({inputdate})를 오늘로 변경할까요?") == DialogResult.Yes)
{
tag008 = DateTime.Now.ToString("yyMMdd") + tag008.Substring(6);
marcEditorControl1.text008.Text = tag008;
}
}
}
if (marcEditorControl1.CheckValidation() == false) return;
string tag056 = marcEditorControl1.Tag056(out string with008TagOutput);// Tag056(dbMarc, _param);
//tag056을 호출해야 008이추가된다.그런후에 데이터를 처리해야함
string fullMarc = marcEditorControl1.MakeMarcString();
var marcString = marcEditorControl1.richTextBox1.Text;
var parserF = new UniMarc.MarcParser();
parserF.ParseFullMarc(fullMarc);
string midx = this.lbl_Midx.Tag?.ToString() ?? string.Empty;
if (isUpdate == false) midx = string.Empty;
var v_grade = uC_SelectGrade1.Grade == -1 ? string.Empty : uC_SelectGrade1.Grade.ToString();
//if (radA.Checked) v_grade = "0";
//else if (radB.Checked) v_grade = "1";
//else if (radC.Checked) v_grade = "2";
//else if (radD.Checked) v_grade = "3";
//midx 값이 emptry 라면 insert , 아니라면 update
UpdateMarc(midx, fullMarc, v_grade);
}
private void rtEtc1_KeyDown(object sender, KeyEventArgs e)
{
var rt = sender as RichTextBox;
if (rt == null) return;
if (e.KeyCode == Keys.F5)
{
rt.AppendText("["+DateTime.Now.ToString("yy-MM-dd")+"]");
}
}
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -143,7 +144,7 @@ namespace UniMarc
{
if (V_idx != -1 && dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V")
{
MessageBox.Show("체크사항이 1개인지 확인해주세요.");
UTIL.MsgE("체크사항이 개인지 확인해주세요.");
return -1;
}
if (dataGridView1.Rows[a].Cells["chk_V"].Value.ToString() == "V")
@@ -162,7 +163,7 @@ namespace UniMarc
return;
}
if (MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo) == DialogResult.Yes)
if (UTIL.MsgQ("삭제하시겠습니까?") == DialogResult.Yes)
{
string[] delete_area = { "set_name", "set_isbn", "set_count", "set_price" };
string[] delete_data = {

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -62,7 +63,7 @@ namespace UniMarc
}
}
if (!grid_chk) {
MessageBox.Show("필수 입력사항이 비어있습니다!\n맨 앞에 \"*\"이 붙은 곳을 확인해주세요.");
UTIL.MsgE("필수 입력사항이 비어있습니다!\n맨 앞에 \"*\"이 붙은 곳을 확인해주세요.");
return;
}
@@ -88,7 +89,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(Incmd);
}
MessageBox.Show("저장완료");
UTIL.MsgI("저장완료");
// 부모폼 조회버튼 클릭
manage.btn_Search_Click(null, null);

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -58,7 +59,7 @@ namespace UniMarc
string U_cmd = db.More_Update(table, edit_tbl, edit_col, sear_tbl, sear_col);
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show("변경되었습니다!");
UTIL.MsgI("변경되었습니다!");
manage.btn_Search_Click(null, null);
this.Close();
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -155,7 +156,7 @@ namespace UniMarc
string orimarc = st.made_Ori_marc(marc, false);
if (!isSaveOK(orimarc, code)) {
MessageBox.Show("상품코드를 확인해주세요.");
UTIL.MsgE("상품코드를 확인해주세요.");
return;
}
@@ -315,19 +316,19 @@ namespace UniMarc
// 상품코드 체크
if (!isSaveOK(orimarc, code)) {
MessageBox.Show("상품코드를 확인해주세요.");
UTIL.MsgE("상품코드를 확인해주세요.");
return;
}
// 필수태그 확인
if (!isMustTag(orimarc)) {
MessageBox.Show("입력된 마크의 상태를 확인해주세요.");
UTIL.MsgE("입력된 마크의 상태를 확인해주세요.");
return;
}
// 마크 형식 체크
if (!isPass(marc)) {
MessageBox.Show("입력된 마크의 상태를 확인해주세요.");
UTIL.MsgE("입력된 마크의 상태를 확인해주세요.");
return;
}
@@ -410,7 +411,7 @@ namespace UniMarc
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
UTIL.MsgE(msg + "태그가 없습니다.");
return false;
}
@@ -426,7 +427,7 @@ namespace UniMarc
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
UTIL.MsgE("기본표목이 존재하지않습니다.");
return false;
}
@@ -444,7 +445,7 @@ namespace UniMarc
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
UTIL.MsgE("부출표목이 존재하지않습니다.");
return false;
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -52,7 +53,7 @@ namespace UniMarc
string user = PUB.user.UserName;
if (listName == "") {
MessageBox.Show("목록명이 비어있습니다!");
UTIL.MsgE("목록명이 비어있습니다!");
return;
}
@@ -87,7 +88,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(listCMD);
Helper_DB.ExcuteNonQuery(ProductCMD);
MessageBox.Show("저장되었습니다.");
UTIL.MsgI("저장되었습니다.");
}
private void btn_Close_Click(object sender, EventArgs e)

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -86,7 +87,7 @@ namespace UniMarc
if (dataGridView1.Rows[row].Cells["Marc"].Value.ToString() == "" &&
dataGridView1.Rows[row].Cells["Marc"].Value == null)
{
MessageBox.Show("저장된 마크가 없습니다!");
UTIL.MsgE("저장된 마크가 없습니다!");
return;
}
@@ -342,7 +343,7 @@ namespace UniMarc
private void Btn_SelectRemove_Click(object sender, EventArgs e)
{
if (MessageBox.Show("정말 삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo) == DialogResult.No)
if (UTIL.MsgQ("정말 삭제하시겠습니까?") != DialogResult.Yes)
return;
List<int> SelectIndex = new List<int>();
@@ -356,7 +357,7 @@ namespace UniMarc
}
if (SelectIndex.Count <= 0) {
MessageBox.Show("선택 사항이 없습니다.");
UTIL.MsgE("선택 사항이 없습니다.");
return;
}
@@ -367,7 +368,7 @@ namespace UniMarc
db.DB_Delete("DVD_List_Product", "idx", dataGridView1.Rows[SelectIndex[a]].Cells["idx"].Value.ToString(), "compidx", compidx)
);
}
MessageBox.Show("삭제되었습니다");
UTIL.MsgI("삭제되었습니다");
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -100,7 +101,7 @@ namespace UniMarc
private void Btn_Delete_Click(object sender, EventArgs e)
{
if (dataGridView1.CurrentRow.Index < 0) return;
if (MessageBox.Show("정말 삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo) == DialogResult.Yes)
if (UTIL.MsgQ("정말 삭제하시겠습니까?") == DialogResult.Yes)
{
string idx = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["idx"].Value.ToString();
//string compidx = Properties.Settings.Default.compidx;
@@ -108,7 +109,7 @@ namespace UniMarc
string cmd = db.DB_Delete("DVD_List", "compidx", PUB.user.CompanyIdx, "idx", idx);
Helper_DB.ExcuteNonQuery(cmd);
MessageBox.Show("삭제되었습니다.");
UTIL.MsgI("삭제되었습니다.");
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -31,7 +32,7 @@ namespace UniMarc
if (id == "" || pw == "")
{
MessageBox.Show("입력된 값이 없습니다.");
UTIL.MsgE("입력된 값이 없습니다.");
return;
}

View File

@@ -32,23 +32,6 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_ComparePrice = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -70,6 +53,25 @@
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.image = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_ComparePrice = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.label4 = new System.Windows.Forms.Label();
this.tbDelayMs = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@@ -128,187 +130,12 @@
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1630, 591);
this.dataGridView1.Size = new System.Drawing.Size(1753, 591);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(693, 4);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(577, 5);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(100, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(45, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록 명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(54, 5);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(213, 21);
this.tb_list_name.TabIndex = 4;
this.tb_list_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_list_name_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(518, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(796, 4);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1105, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(285, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(344, 5);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(160, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1241, 4);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1632, 100);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(1002, 4);
this.btn_yes24.Name = "btn_yes24";
this.btn_yes24.Size = new System.Drawing.Size(99, 23);
this.btn_yes24.TabIndex = 1;
this.btn_yes24.Text = "예스 양식 반출";
this.btn_yes24.UseVisualStyleBackColor = true;
this.btn_yes24.Click += new System.EventHandler(this.btn_yes24_Click);
//
// Check_Marc
//
this.Check_Marc.AutoSize = true;
this.Check_Marc.Checked = true;
this.Check_Marc.CheckState = System.Windows.Forms.CheckState.Checked;
this.Check_Marc.Enabled = false;
this.Check_Marc.Location = new System.Drawing.Point(1488, 7);
this.Check_Marc.Name = "Check_Marc";
this.Check_Marc.Size = new System.Drawing.Size(132, 16);
this.Check_Marc.TabIndex = 9;
this.Check_Marc.Text = "마크ISBN 동시 저장";
this.Check_Marc.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Controls.Add(this.btn_ComparePrice);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.Check_Marc);
this.panel1.Controls.Add(this.btn_lookup);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.progressBar1);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.cb_api);
this.panel1.Controls.Add(this.btn_yes24);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.cb_filter);
this.panel1.Controls.Add(this.tb_list_name);
this.panel1.Controls.Add(this.label2);
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(1632, 31);
this.panel1.TabIndex = 10;
//
// btn_ComparePrice
//
this.btn_ComparePrice.Location = new System.Drawing.Point(899, 4);
this.btn_ComparePrice.Name = "btn_ComparePrice";
this.btn_ComparePrice.Size = new System.Drawing.Size(99, 23);
this.btn_ComparePrice.TabIndex = 10;
this.btn_ComparePrice.Text = "정 가 대 조";
this.btn_ComparePrice.UseVisualStyleBackColor = true;
this.btn_ComparePrice.Click += new System.EventHandler(this.btn_ComparePrice_Click);
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 624);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1632, 100);
this.panel2.TabIndex = 11;
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 31);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1632, 593);
this.panel3.TabIndex = 12;
//
// idx
//
this.idx.HeaderText = "idx";
@@ -428,11 +255,206 @@
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(802, 4);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(577, 5);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(100, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(45, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록 명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(54, 5);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(213, 21);
this.tb_list_name.TabIndex = 4;
this.tb_list_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_list_name_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(518, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(906, 4);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1217, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(97, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(285, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(344, 5);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(160, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1318, 4);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1755, 100);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(1112, 4);
this.btn_yes24.Name = "btn_yes24";
this.btn_yes24.Size = new System.Drawing.Size(99, 23);
this.btn_yes24.TabIndex = 1;
this.btn_yes24.Text = "예스 양식 반출";
this.btn_yes24.UseVisualStyleBackColor = true;
this.btn_yes24.Click += new System.EventHandler(this.btn_yes24_Click);
//
// Check_Marc
//
this.Check_Marc.AutoSize = true;
this.Check_Marc.Checked = true;
this.Check_Marc.CheckState = System.Windows.Forms.CheckState.Checked;
this.Check_Marc.Enabled = false;
this.Check_Marc.Location = new System.Drawing.Point(1565, 7);
this.Check_Marc.Name = "Check_Marc";
this.Check_Marc.Size = new System.Drawing.Size(132, 16);
this.Check_Marc.TabIndex = 9;
this.Check_Marc.Text = "마크ISBN 동시 저장";
this.Check_Marc.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Controls.Add(this.tbDelayMs);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.btn_ComparePrice);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.Check_Marc);
this.panel1.Controls.Add(this.btn_lookup);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.progressBar1);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.cb_api);
this.panel1.Controls.Add(this.btn_yes24);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.cb_filter);
this.panel1.Controls.Add(this.tb_list_name);
this.panel1.Controls.Add(this.label2);
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(1755, 31);
this.panel1.TabIndex = 10;
//
// btn_ComparePrice
//
this.btn_ComparePrice.Location = new System.Drawing.Point(1009, 4);
this.btn_ComparePrice.Name = "btn_ComparePrice";
this.btn_ComparePrice.Size = new System.Drawing.Size(99, 23);
this.btn_ComparePrice.TabIndex = 10;
this.btn_ComparePrice.Text = "정 가 대 조";
this.btn_ComparePrice.UseVisualStyleBackColor = true;
this.btn_ComparePrice.Click += new System.EventHandler(this.btn_ComparePrice_Click);
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 624);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1755, 100);
this.panel2.TabIndex = 11;
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 31);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1755, 593);
this.panel3.TabIndex = 12;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(683, 10);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(81, 12);
this.label4.TabIndex = 11;
this.label4.Text = "검색지연(ms)";
//
// tbDelayMs
//
this.tbDelayMs.Location = new System.Drawing.Point(766, 5);
this.tbDelayMs.Name = "tbDelayMs";
this.tbDelayMs.Size = new System.Drawing.Size(33, 21);
this.tbDelayMs.TabIndex = 12;
this.tbDelayMs.Text = "100";
this.tbDelayMs.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// Check_ISBN
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1632, 724);
this.ClientSize = new System.Drawing.Size(1755, 724);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
@@ -489,5 +511,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn image;
private System.Windows.Forms.DataGridViewTextBoxColumn api_data;
private System.Windows.Forms.TextBox tbDelayMs;
private System.Windows.Forms.Label label4;
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.ComponentModel;
@@ -50,6 +51,7 @@ namespace UniMarc
private void Check_ISBN_Load(object sender, EventArgs e)
{
this.tbDelayMs.Text = PUB.setting.ISBNSearchDelay.ToString();
if (mSearchText != "")
{
tb_list_name.Text = mSearchText;
@@ -171,8 +173,24 @@ namespace UniMarc
private void btn_lookup_Click(object sender, EventArgs e)
{
if (cb_api.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; }
if (cb_filter.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; }
if(int.TryParse(tbDelayMs.Text, out int delayMs)==false)
{
UTIL.MsgE("지연시간은 숫자로 입력하세요");
tbDelayMs.Focus();
tbDelayMs.SelectAll();
return;
}
//지연시간저장
if(PUB.setting.ISBNSearchDelay != delayMs)
{
PUB.setting.ISBNSearchDelay = delayMs;
PUB.setting.Save();
}
if (cb_api.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
if (cb_filter.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
clear_api();
@@ -185,21 +203,21 @@ namespace UniMarc
switch (cb_api.SelectedIndex)
{
case 0:
Aladin_API(dataGridView1);
Aladin_API(dataGridView1, delayMs);
break;
case 1:
NL_API(dataGridView1);
NL_API(dataGridView1, delayMs);
break;
case 2:
Daum_API(dataGridView1);
Daum_API(dataGridView1, delayMs);
break;
case 3:
Naver_API(dataGridView1);
Naver_API(dataGridView1, delayMs);
break;
}
// 총 검색 횟수, 일치, 중복
MessageBox.Show("검색이 완료되었습니다!");
UTIL.MsgI("검색이 완료되었습니다!");
progressBar1.Value = dataGridView1.Rows.Count;
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells["num"];
@@ -217,7 +235,7 @@ namespace UniMarc
dataGridView1.Rows[a].Cells["api_data"].Value = "";
}
}
private void Aladin_API(DataGridView gridview)
private void Aladin_API(DataGridView gridview,int delay_ms)
{
string temp = string.Empty;
string type = string.Empty;
@@ -265,7 +283,11 @@ namespace UniMarc
}
string query = Aladin_Set_query(type, a);
insert_Aladin(api.Aladin(query, type, param), a);
var apiresult = api.Aladin(query, type, param);
insert_Aladin(string.Join("|",apiresult), a);
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
string Aladin_Set_query(string type, int idx)
@@ -287,7 +309,7 @@ namespace UniMarc
return result;
}
private void NL_API(DataGridView gridView)
private void NL_API(DataGridView gridView, int delay_ms)
{
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 /
@@ -361,9 +383,11 @@ namespace UniMarc
}
}
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
private void Naver_API(DataGridView gridview)
private void Naver_API(DataGridView gridview, int delay_ms)
{
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
@@ -404,10 +428,11 @@ namespace UniMarc
#endregion
string result = api.Naver(Target, "query", param);
insert_Naver(result, a);
Thread.Sleep(700);
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
private void Daum_API(DataGridView gridview)
private void Daum_API(DataGridView gridview, int delay_ms)
{
string[] param = { "title", "authors", "publisher", "isbn", "price",
"datetime", "status", "thumbnail" };
@@ -446,6 +471,8 @@ namespace UniMarc
}
string result = api.Daum(query, type, param);
insert_Daum(result, a);
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
@@ -503,7 +530,7 @@ namespace UniMarc
newstring = String.Format("{0:yyyy/MM/dd}",
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
}
catch (Exception ex) { MessageBox.Show(data); }
catch (Exception ex) { UTIL.MsgE(data); }
for (int a = 0; a < insert.Length; a++)
{
@@ -735,7 +762,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(CMcmd);
}
}
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
save = true;
}
private void btn_Close_Click(object sender, EventArgs e)
@@ -836,7 +863,7 @@ namespace UniMarc
private void Check_ISBN_FormClosing(object sender, FormClosingEventArgs e)
{
if (!save) {
if (MessageBox.Show("데이터가 저장되지않았습니다!\n종료하시겠습니까?", "Warning!", MessageBoxButtons.YesNo) == DialogResult.No) {
if (UTIL.MsgQ("데이터가 저장되지않았습니다!\n종료하시겠습니까?") == DialogResult.No) {
e.Cancel = true;
}
}

View File

@@ -34,6 +34,37 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Check_ISBN2));
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.tbDelayMs = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.btn_ComparePrice = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.link_url = new System.Windows.Forms.LinkLabel();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -55,34 +86,7 @@
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.image = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_ComparePrice = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.dvc_search_description = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@@ -127,7 +131,8 @@
this.category,
this.sold_out,
this.image,
this.api_data});
this.api_data,
this.dvc_search_description});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
@@ -144,12 +149,320 @@
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1630, 566);
this.dataGridView1.Size = new System.Drawing.Size(1759, 566);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(805, 4);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "검색";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(577, 5);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(100, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(45, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록 명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(54, 5);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(213, 21);
this.tb_list_name.TabIndex = 4;
this.tb_list_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_list_name_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(518, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(908, 4);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1215, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(78, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(285, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(344, 5);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(160, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1299, 4);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(179, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 23);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1761, 77);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(1114, 4);
this.btn_yes24.Name = "btn_yes24";
this.btn_yes24.Size = new System.Drawing.Size(99, 23);
this.btn_yes24.TabIndex = 1;
this.btn_yes24.Text = "예스 양식 반출";
this.btn_yes24.UseVisualStyleBackColor = true;
this.btn_yes24.Click += new System.EventHandler(this.btn_yes24_Click);
//
// Check_Marc
//
this.Check_Marc.AutoSize = true;
this.Check_Marc.Checked = true;
this.Check_Marc.CheckState = System.Windows.Forms.CheckState.Checked;
this.Check_Marc.Enabled = false;
this.Check_Marc.Location = new System.Drawing.Point(1488, 7);
this.Check_Marc.Name = "Check_Marc";
this.Check_Marc.Size = new System.Drawing.Size(132, 16);
this.Check_Marc.TabIndex = 9;
this.Check_Marc.Text = "마크ISBN 동시 저장";
this.Check_Marc.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Controls.Add(this.tbDelayMs);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.btn_ComparePrice);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.Check_Marc);
this.panel1.Controls.Add(this.btn_lookup);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.progressBar1);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.cb_api);
this.panel1.Controls.Add(this.btn_yes24);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.cb_filter);
this.panel1.Controls.Add(this.tb_list_name);
this.panel1.Controls.Add(this.label2);
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(1761, 31);
this.panel1.TabIndex = 10;
//
// tbDelayMs
//
this.tbDelayMs.Location = new System.Drawing.Point(766, 4);
this.tbDelayMs.Name = "tbDelayMs";
this.tbDelayMs.Size = new System.Drawing.Size(33, 21);
this.tbDelayMs.TabIndex = 14;
this.tbDelayMs.Text = "100";
this.tbDelayMs.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(683, 9);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(81, 12);
this.label4.TabIndex = 13;
this.label4.Text = "검색지연(ms)";
//
// btn_ComparePrice
//
this.btn_ComparePrice.Location = new System.Drawing.Point(1011, 4);
this.btn_ComparePrice.Name = "btn_ComparePrice";
this.btn_ComparePrice.Size = new System.Drawing.Size(99, 23);
this.btn_ComparePrice.TabIndex = 10;
this.btn_ComparePrice.Text = "정 가 대 조";
this.btn_ComparePrice.UseVisualStyleBackColor = true;
this.btn_ComparePrice.Click += new System.EventHandler(this.btn_ComparePrice_Click);
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Controls.Add(this.link_url);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 624);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1761, 100);
this.panel2.TabIndex = 11;
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Controls.Add(this.bindingNavigator1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 31);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1761, 593);
this.panel3.TabIndex = 12;
//
// bindingNavigator1
//
this.bindingNavigator1.AddNewItem = null;
this.bindingNavigator1.BindingSource = this.bs1;
this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem;
this.bindingNavigator1.DeleteItem = null;
this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2});
this.bindingNavigator1.Location = new System.Drawing.Point(0, 566);
this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bindingNavigator1.Name = "bindingNavigator1";
this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem;
this.bindingNavigator1.Size = new System.Drawing.Size(1759, 25);
this.bindingNavigator1.TabIndex = 1;
this.bindingNavigator1.Text = "bindingNavigator1";
//
// bs1
//
this.bs1.CurrentChanged += new System.EventHandler(this.bs1_CurrentChanged);
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
//
// link_url
//
this.link_url.Dock = System.Windows.Forms.DockStyle.Top;
this.link_url.Location = new System.Drawing.Point(0, 0);
this.link_url.Name = "link_url";
this.link_url.Size = new System.Drawing.Size(1761, 23);
this.link_url.TabIndex = 9;
this.link_url.TabStop = true;
this.link_url.Text = "linkLabel1";
this.link_url.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.link_url.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.link_url_LinkClicked);
//
// idx
//
this.idx.DataPropertyName = "idx";
@@ -290,283 +603,17 @@
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// btn_lookup
// dvc_search_description
//
this.btn_lookup.Location = new System.Drawing.Point(693, 4);
this.btn_lookup.Name = "btn_lookup";
this.btn_lookup.Size = new System.Drawing.Size(99, 23);
this.btn_lookup.TabIndex = 1;
this.btn_lookup.Text = "ISBN 자동 조회";
this.btn_lookup.UseVisualStyleBackColor = true;
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
//
// cb_filter
//
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_filter.FormattingEnabled = true;
this.cb_filter.Location = new System.Drawing.Point(577, 5);
this.cb_filter.Name = "cb_filter";
this.cb_filter.Size = new System.Drawing.Size(100, 20);
this.cb_filter.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(45, 12);
this.label1.TabIndex = 3;
this.label1.Text = "목록 명";
//
// tb_list_name
//
this.tb_list_name.Enabled = false;
this.tb_list_name.Location = new System.Drawing.Point(54, 5);
this.tb_list_name.Name = "tb_list_name";
this.tb_list_name.Size = new System.Drawing.Size(213, 21);
this.tb_list_name.TabIndex = 4;
this.tb_list_name.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_list_name_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(518, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(57, 12);
this.label2.TabIndex = 3;
this.label2.Text = "검색 조건";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(796, 4);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(99, 23);
this.btn_Save.TabIndex = 1;
this.btn_Save.Text = "전 체 저 장";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(1105, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(99, 23);
this.btn_Close.TabIndex = 1;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(285, 9);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(57, 12);
this.label3.TabIndex = 5;
this.label3.Text = "검색 엔진";
//
// cb_api
//
this.cb_api.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_api.FormattingEnabled = true;
this.cb_api.Location = new System.Drawing.Point(344, 5);
this.cb_api.Name = "cb_api";
this.cb_api.Size = new System.Drawing.Size(160, 20);
this.cb_api.TabIndex = 6;
this.cb_api.SelectedIndexChanged += new System.EventHandler(this.cb_api_SelectedIndexChanged);
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(1241, 4);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(219, 23);
this.progressBar1.TabIndex = 7;
//
// richTextBox1
//
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1632, 100);
this.richTextBox1.TabIndex = 8;
this.richTextBox1.Text = "";
//
// btn_yes24
//
this.btn_yes24.Location = new System.Drawing.Point(1002, 4);
this.btn_yes24.Name = "btn_yes24";
this.btn_yes24.Size = new System.Drawing.Size(99, 23);
this.btn_yes24.TabIndex = 1;
this.btn_yes24.Text = "예스 양식 반출";
this.btn_yes24.UseVisualStyleBackColor = true;
this.btn_yes24.Click += new System.EventHandler(this.btn_yes24_Click);
//
// Check_Marc
//
this.Check_Marc.AutoSize = true;
this.Check_Marc.Checked = true;
this.Check_Marc.CheckState = System.Windows.Forms.CheckState.Checked;
this.Check_Marc.Enabled = false;
this.Check_Marc.Location = new System.Drawing.Point(1488, 7);
this.Check_Marc.Name = "Check_Marc";
this.Check_Marc.Size = new System.Drawing.Size(132, 16);
this.Check_Marc.TabIndex = 9;
this.Check_Marc.Text = "마크ISBN 동시 저장";
this.Check_Marc.UseVisualStyleBackColor = true;
//
// panel1
//
this.panel1.Controls.Add(this.btn_ComparePrice);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.Check_Marc);
this.panel1.Controls.Add(this.btn_lookup);
this.panel1.Controls.Add(this.btn_Save);
this.panel1.Controls.Add(this.progressBar1);
this.panel1.Controls.Add(this.btn_Close);
this.panel1.Controls.Add(this.cb_api);
this.panel1.Controls.Add(this.btn_yes24);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.cb_filter);
this.panel1.Controls.Add(this.tb_list_name);
this.panel1.Controls.Add(this.label2);
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(1632, 31);
this.panel1.TabIndex = 10;
//
// btn_ComparePrice
//
this.btn_ComparePrice.Location = new System.Drawing.Point(899, 4);
this.btn_ComparePrice.Name = "btn_ComparePrice";
this.btn_ComparePrice.Size = new System.Drawing.Size(99, 23);
this.btn_ComparePrice.TabIndex = 10;
this.btn_ComparePrice.Text = "정 가 대 조";
this.btn_ComparePrice.UseVisualStyleBackColor = true;
this.btn_ComparePrice.Click += new System.EventHandler(this.btn_ComparePrice_Click);
//
// panel2
//
this.panel2.Controls.Add(this.richTextBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 624);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1632, 100);
this.panel2.TabIndex = 11;
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Controls.Add(this.dataGridView1);
this.panel3.Controls.Add(this.bindingNavigator1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 31);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1632, 593);
this.panel3.TabIndex = 12;
//
// bindingNavigator1
//
this.bindingNavigator1.AddNewItem = null;
this.bindingNavigator1.BindingSource = this.bs1;
this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem;
this.bindingNavigator1.DeleteItem = null;
this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2});
this.bindingNavigator1.Location = new System.Drawing.Point(0, 566);
this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bindingNavigator1.Name = "bindingNavigator1";
this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem;
this.bindingNavigator1.Size = new System.Drawing.Size(1630, 25);
this.bindingNavigator1.TabIndex = 1;
this.bindingNavigator1.Text = "bindingNavigator1";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
this.dvc_search_description.DataPropertyName = "search_description";
this.dvc_search_description.HeaderText = "검색 설명";
this.dvc_search_description.Name = "dvc_search_description";
//
// Check_ISBN2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1632, 724);
this.ClientSize = new System.Drawing.Size(1761, 724);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
@@ -607,6 +654,20 @@
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_ComparePrice;
private System.Windows.Forms.BindingNavigator bindingNavigator1;
private System.Windows.Forms.BindingSource bs1;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.TextBox tbDelayMs;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.LinkLabel link_url;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
private System.Windows.Forms.DataGridViewTextBoxColumn isbn;
@@ -628,16 +689,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn image;
private System.Windows.Forms.DataGridViewTextBoxColumn api_data;
private System.Windows.Forms.BindingNavigator bindingNavigator1;
private System.Windows.Forms.BindingSource bs1;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_search_description;
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.ComponentModel;
@@ -15,9 +16,6 @@ namespace UniMarc
{
public partial class Check_ISBN2 : Form
{
Main main;
List_aggregation list_agg;
Commodity_registration cr;
Helper_DB db = new Helper_DB();
public string compidx;
public string list_name = string.Empty;
@@ -29,58 +27,29 @@ namespace UniMarc
BindingList<IsbnGridItem> bookList = new BindingList<IsbnGridItem>();
public Check_ISBN2(Main _main,string pSearchText = "",string pListIDX = "")
public Check_ISBN2(string pSearchText = "", string pListIDX = "")
{
InitializeComponent();
main = _main;
compidx = PUB.user.CompanyIdx;
mSearchText = pSearchText;
mListIDX = pListIDX;
}
public Check_ISBN2(List_aggregation _list_agg)
{
InitializeComponent();
list_agg = _list_agg;
compidx = list_agg.compidx;
}
public Check_ISBN2(Commodity_registration _cr)
{
InitializeComponent();
cr = _cr;
compidx = cr.comp_idx;
}
private void Check_ISBN_Load(object sender, EventArgs e)
{
bs1.DataSource = bookList;
dataGridView1.AutoGenerateColumns = false;
dataGridView1.DataSource = bs1;
dataGridView1.DataBindingComplete += DataGridView1_DataBindingComplete;
tbDelayMs.Text = PUB.setting.ISBNSearchDelay.ToString();
if (mSearchText != "")
{
tb_list_name.Text = mSearchText;
DataLoad(mSearchText, mListIDX);
}
}
public void DataLoad()
{
tb_list_name.Text = list_name;
cb_api.Items.Clear();
cb_api.Items.AddRange(list_combo);
db.DBcon();
string[] search_tbl = { "compidx", "list_name" };
string[] search_col = { compidx, list_name };
string search_data = "`idx`, `header`, `num`, `isbn`, `book_name`, `author`, `book_comp`, " +
"`count`, `pay`, `total`, `import`, `price`, " +
"`etc`, `pubDate`, `persent`, `category`, `image_url`, `set_book_name`";
string cmd = db.More_DB_Search("Obj_List_Book", search_tbl, search_col, search_data);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] data = db_res.Split('|');
made_Grid(data);
}
public void DataLoad(string ListName, string l_idx)
@@ -97,44 +66,49 @@ namespace UniMarc
string[] search_col = { compidx, l_idx };
string search_data = "`idx`, `header`, `num`, `isbn_marc`, `book_name`, `author`, `book_comp`, " +
"`count`, `pay`, `total`, `import`, `price`, " +
"`etc`, `pubDate`, `persent`, `category`, `image_url`, `set_book_name`";
"`etc`, `pubDate`, `persent`, `category`, `image_url`, `set_book_name`,`search_book_name`,`search_author`,`search_book_comp`,`search_description`,`search_url`";
string cmd = db.More_DB_Search("Obj_List_Book", search_tbl, search_col, search_data);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] data = db_res.Split('|');
made_Grid(data);
var dt = Helper_DB.ExecuteDataTable(cmd);
made_Grid(dt);
}
#region Load_Sub
void made_Grid(string[] data)
void made_Grid(DataTable datas)
{
/* 번호 isbn 도서명 저자 출판사
* 수량 단가 합계 상태 정가
* 비고 발행일 % 도서분류 */
int sdc = 18; // search_data_count
for (int a = 0; a < data.Length; a += sdc)
this.dataGridView1.AutoGenerateColumns = false;
if (datas == null)
{
if (a + 17 >= data.Length) break;
UTIL.MsgE("자료가 없습니다");
return;
}
foreach (DataRow row in datas.Rows)
{
var item = new IsbnGridItem();
item.idx = data[a];
item.num = data[a + 1] + " " + data[a + 2]; // header + num
item.isbn = data[a + 3];
item.book_name = data[a + 4];
item.author = data[a + 5];
item.book_comp = data[a + 6];
item.count = data[a + 7];
item.unit = data[a + 8];
item.total = data[a + 9];
item.condition = data[a + 10];
item.price = data[a + 11];
item.etc = data[a + 12];
item.pubDate = data[a + 13];
item.persent = data[a + 14];
item.category = data[a + 15];
item.image = data[a + 16];
item.idx = row["idx"]?.ToString() ?? string.Empty;
item.num = (row["header"]?.ToString() ?? string.Empty) + " " + (row["num"]?.ToString() ?? string.Empty); // header + num
item.isbn = row["isbn_marc"]?.ToString() ?? string.Empty;
item.book_name = row["book_name"]?.ToString() ?? string.Empty;
item.author = row["author"]?.ToString() ?? string.Empty;
item.book_comp = row["book_comp"]?.ToString() ?? string.Empty;
item.count = row["count"]?.ToString() ?? string.Empty;
item.unit = row["pay"]?.ToString() ?? string.Empty;
item.total = row["total"]?.ToString() ?? string.Empty;
item.condition = row["import"]?.ToString() ?? string.Empty;
item.price = row["price"]?.ToString() ?? string.Empty;
item.etc = row["etc"]?.ToString() ?? string.Empty;
item.pubDate = row["pubDate"]?.ToString() ?? string.Empty;
item.persent = row["persent"]?.ToString() ?? string.Empty;
item.category = row["category"]?.ToString() ?? string.Empty;
item.image = row["image_url"]?.ToString() ?? string.Empty;
string setBookName = data[a + 17];
item.search_book_name = row["search_book_name"]?.ToString() ?? string.Empty;
item.search_author = row["search_author"]?.ToString() ?? string.Empty;
item.search_book_comp = row["search_book_comp"]?.ToString() ?? string.Empty;
item.search_description = row["search_description"]?.ToString() ?? string.Empty;
item.search_link = row["search_url"]?.ToString() ?? string.Empty;
string setBookName = row["set_book_name"]?.ToString() ?? string.Empty;
if (!string.IsNullOrEmpty(setBookName))
{
item.book_name = setBookName;
@@ -194,8 +168,24 @@ namespace UniMarc
private void btn_lookup_Click(object sender, EventArgs e)
{
if (cb_api.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; }
if (cb_filter.SelectedIndex == -1) { MessageBox.Show("조건이 선택되지 않았습니다."); return; }
if (int.TryParse(tbDelayMs.Text, out int delayMs) == false)
{
UTIL.MsgE("지연시간은 숫자로 입력하세요");
tbDelayMs.Focus();
tbDelayMs.SelectAll();
return;
}
//지연시간저장
if (PUB.setting.ISBNSearchDelay != delayMs)
{
PUB.setting.ISBNSearchDelay = delayMs;
PUB.setting.Save();
}
if (cb_api.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
if (cb_filter.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
clear_api();
@@ -208,21 +198,21 @@ namespace UniMarc
switch (cb_api.SelectedIndex)
{
case 0:
Aladin_API();
Aladin_API(delayMs);
break;
case 1:
NL_API();
NL_API(delayMs);
break;
case 2:
Daum_API();
Daum_API(delayMs);
break;
case 3:
Naver_API();
Naver_API(delayMs);
break;
}
// 총 검색 횟수, 일치, 중복
MessageBox.Show("검색이 완료되었습니다!");
UTIL.MsgI("검색이 완료되었습니다!");
progressBar1.Value = bookList.Count;
bs1.Position = 0;
@@ -240,7 +230,7 @@ namespace UniMarc
item.api_data = "";
}
}
private void Aladin_API()
private void Aladin_API(int delay_ms)
{
string temp = string.Empty;
string type = string.Empty;
@@ -248,7 +238,7 @@ namespace UniMarc
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
string[] param = { "title", "author", "publisher", "isbn13", "priceStandard",
"pubDate", "categoryName", "stockStatus", "cover" };
"pubDate", "categoryName", "stockStatus", "cover" ,"description","link"};
API api = new API();
switch (cb_filter.SelectedIndex)
@@ -275,13 +265,15 @@ namespace UniMarc
item.isbn = "";
string isbn = item.isbn;
if (cb_filter.SelectedIndex == 3) {
if (cb_filter.SelectedIndex == 3)
{
if (!CheckData(isbn))
continue;
else
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Empty;
}
else {
else
{
if (CheckData(isbn))
continue;
else
@@ -289,7 +281,10 @@ namespace UniMarc
}
string query = Aladin_Set_query(type, a);
insert_Aladin(api.Aladin(query, type, param), a);
var apireseult = api.Aladin(query, type, param);
insert_Aladin(apireseult, a);
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
string Aladin_Set_query(string type, int idx)
@@ -311,7 +306,7 @@ namespace UniMarc
return result;
}
private void NL_API()
private void NL_API(int delay_ms)
{
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 /
@@ -375,7 +370,8 @@ namespace UniMarc
grid[8] = tmp_Array[b];
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
if (ArrayLength < 10) {
if (ArrayLength < 10)
{
input_api(grid, a, grid[5]);
break;
}
@@ -384,11 +380,13 @@ namespace UniMarc
bookList[a].api_data += string.Join("|", grid) + "|";
}
}
}
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
}
private void Naver_API()
private void Naver_API(int delay_ms)
{
// 도서명 / 저자 / 출판사 / isbn / 정가
// 발행일 / 도서분류 / 재고
@@ -430,10 +428,12 @@ namespace UniMarc
#endregion
string result = api.Naver(Target, "query", param);
insert_Naver(result, a);
Thread.Sleep(700);
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
private void Daum_API()
private void Daum_API(int delay_ms)
{
string[] param = { "title", "authors", "publisher", "isbn", "price",
"datetime", "status", "thumbnail" };
@@ -441,7 +441,7 @@ namespace UniMarc
string query = string.Empty;
API api = new API();
for(int a = 0; a < bookList.Count; a++)
for (int a = 0; a < bookList.Count; a++)
{
progressBar1.PerformStep();
@@ -473,6 +473,9 @@ namespace UniMarc
}
string result = api.Daum(query, type, param);
insert_Daum(result, a);
if (delay_ms > 0)
System.Threading.Thread.Sleep(delay_ms);
}
}
@@ -483,37 +486,41 @@ namespace UniMarc
return true;
}
void insert_Aladin(string data, int row)
void insert_Aladin(List<string> data, int row)
{
if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; }
dataGridView1.Rows[row].Selected = true;
if (data.Length > 0) {
bookList[row].api_data = data;
if (data.Count > 0)
{
bookList[row].api_data = string.Join("|", data);
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.LightGray;
}
string[] insert = data.Split('|');
//string[] insert = data.Split('|');
if (data == "") { return; }
if (data.Any() == false) { return; }
string newstring;
try {
try
{
// pubDate형 보기편하게 DateTime형으로 재정리
newstring = String.Format("{0:yyyy/MM/dd HH:mm}",
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
DateTime.Parse(data[5].Remove(data[5].IndexOf(" G"))));
}
catch {
newstring = insert[5];
catch
{
newstring = data[5];
}
insert[6] = Aladin_CategorySort(insert[6]);
data[6] = Aladin_CategorySort(data[6]);
if (insert.Length > 10) {
if (data.Count > 11)
{
return;
}
if (cb_filter.SelectedItem.ToString() == "별치조사")
input_api_aladin(insert, row, newstring);
input_api(insert, row, newstring);
input_api_aladin(data.ToArray(), row, newstring);
input_api(data.ToArray(), row, newstring);
/*
if (row > 0) { dataGridView1.Rows[row - 1].Selected = false; }
@@ -530,7 +537,7 @@ namespace UniMarc
newstring = String.Format("{0:yyyy/MM/dd}",
DateTime.Parse(insert[5].Remove(insert[5].IndexOf(" G"))));
}
catch (Exception ex) { MessageBox.Show(data); }
catch (Exception ex) { UTIL.MsgE(data); }
for (int a = 0; a < insert.Length; a++)
{
@@ -708,7 +715,8 @@ namespace UniMarc
else if (book_comp.Contains(value[2])) chk[2] = true;
else if (value[2].Contains(book_comp)) chk[2] = true;
if (chk[0] && chk[1] && chk[2]) {
if (chk[0] && chk[1] && chk[2])
{
item.search_book_name = value[0];
item.search_author = value[1];
@@ -720,13 +728,25 @@ namespace UniMarc
item.sold_out = value[7];
item.image = value[8];
if (value.Length > 9)
item.search_description = value[9];
else
item.search_description = string.Empty;
if (value.Length > 10)
item.search_link = value[10];
else
item.search_link = string.Empty;
dataGridView1.Rows[idx].DefaultCellStyle.BackColor = Color.Yellow;
}
}
private void btn_Save_Click(object sender, EventArgs e)
{
string[] Edit_tbl = { "isbn", "book_name", "author", "book_comp", "pay", "price", "pubDate", "category", "image_url", "sold_out", "etc" };
string[] Edit_tbl = { "isbn", "book_name", "author", "book_comp", "pay", "price", "pubDate", "category", "image_url", "sold_out", "etc",
"search_book_name","search_author","search_book_comp"};
for (int a = 0; a < bookList.Count; a++)
@@ -734,11 +754,6 @@ namespace UniMarc
var item = bookList[a];
if (string.IsNullOrEmpty(item.isbn)) continue;
if (main != null)
Edit_tbl[0] = "isbn_marc";
else
Edit_tbl[0] = "isbn";
string[] Edit_Col = {
item.isbn,
item.book_name,
@@ -750,7 +765,10 @@ namespace UniMarc
item.category,
item.image,
item.sold_out,
item.etc
item.etc,
item.search_book_name,
item.search_author,
item.search_book_comp
};
string[] Search_tbl = { "idx", "list_name", "compidx" };
@@ -762,13 +780,14 @@ namespace UniMarc
string U_cmd = db.More_Update("Obj_List_Book", Edit_tbl, Edit_Col, Search_tbl, Search_col, 1);
Helper_DB.ExcuteNonQuery(U_cmd);
if (Check_Marc.Checked) {
if (Check_Marc.Checked)
{
string CMcmd = string.Format("UPDATE `Obj_List_Book` SET `isbn_marc` = \"{0}\" WHERE `idx` = \"{1}\"",
Edit_Col[0], Search_col[0]);
Helper_DB.ExcuteNonQuery(CMcmd);
}
}
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
save = true;
}
private void btn_Close_Click(object sender, EventArgs e)
@@ -852,11 +871,13 @@ namespace UniMarc
private void cb_api_SelectedIndexChanged(object sender, EventArgs e)
{
cb_filter.Items.Clear();
if (cb_api.SelectedIndex == 0) {
if (cb_api.SelectedIndex == 0)
{
string[] aladin = { "도서명", "저자", "출판사", "별치조사" };
cb_filter.Items.AddRange(aladin);
}
else {
else
{
string[] sub = { "도서명", "저자", "출판사" };
cb_filter.Items.AddRange(sub);
}
@@ -864,19 +885,23 @@ namespace UniMarc
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
rowidx = e.RowIndex;
if (rowidx < 0) {
if (rowidx < 0)
{
return;
}
richTextBox1.Text += dataGridView1.Rows[rowidx].Cells["etc"].Value.ToString().Contains("세트분할").ToString();
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null) {
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null)
{
return;
}
richTextBox1.Text = dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString();
}
private void Check_ISBN_FormClosing(object sender, FormClosingEventArgs e)
{
if (!save) {
if (MessageBox.Show("데이터가 저장되지않았습니다!\n종료하시겠습니까?", "Warning!", MessageBoxButtons.YesNo) == DialogResult.No) {
if (!save)
{
if (UTIL.MsgQ("데이터가 저장되지않았습니다!\n종료하시겠습니까?") == DialogResult.No)
{
e.Cancel = true;
}
}
@@ -916,5 +941,28 @@ namespace UniMarc
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Orange;
}
}
private void bs1_CurrentChanged(object sender, EventArgs e)
{
//
var item = bs1.Current as IsbnGridItem;
if (item == null)
{
link_url.Text = "";
}
else
{
link_url.Text = item.search_link;
}
}
private void link_url_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var url = link_url.Text;
if (url.isEmpty()) return;
System.Diagnostics.Process.Start(url);
}
}
}

View File

@@ -180,6 +180,9 @@
<metadata name="api_data.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_search_description.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="bindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
@@ -189,42 +192,42 @@
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAExSURBVDhPY2AYNKBw1vP/TQue/8+c+Pg/uhwMhLc/wCnH
kDvz2f9VR97/x6UovvvB/+CGa1jlwCBjytP/C/d9wKoovufh/6X7///3r76AIQcHCT1P/k/b8h5DUUT7
fbDmzFn//3uVnsBtQGTXo/+9qz+gKAptvQfW3Lru/3//zr//XfIP4DYgsPnh/7r57+CKglvu/l+09///
jnX//2fM+fnfru7nf/uM7bgN8Ki6/z9/2hsURXbFt/+nz/n937/r23+dwnf/LRLW4zbAvvTu/+zJrzEU
6aec/29S9OK/Stan/8aRy3AbYJF3539q/2usigySTvyXTfv6Xzd4HoYcHBhm3f4f1vISpyL91Mv/NXyn
YZUDA520G//9qh/iVaTiMQGnHINT7pX/IAV4FQ1KAADwdsCrWJS2HgAAAABJRU5ErkJggg==
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
+8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
+4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
xpHLcBtgkXfnf2r/a6yKDJJO/JdN+/pfN3gehhwcGGbd/h/W8hKnIv3Uy/81fKdhlQMDnbQb//2qH+JV
pOIxAaccg1Pulf8gBXgVDUoAAPB2wKtYlLYeAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAC7SURBVDhPY2AYMiC8/cF/dDGiQXz3g//BDdfIMyC+5+H/
pfv///evvkC6ARHt98GaM2f9/+9VeoI0A0Jb74E1t677/9+/8+9/l/wDxBsQ3HL3/6K9//93rPv/P2PO
z/92dT//22dsJ94AELArvv0/fc7v//5d3/7rFL77b5GwnjQDQEA/5fx/k6IX/1WyPv03jlxGugEgYJB0
4r9s2tf/usHzyDMABPRTL//X8J1GvgEgoOIxgTIDBi8AANAUYJgsLP+3AAAAAElFTkSuQmCC
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACkSURBVDhPY2AYdKBw1vP/6GIkgdyZz/4ndN8j35CMKU//
z9v/+39C1x3yDEnoefJ/9r5f/zu3/v3vVnqZdEMiux79n7Lt1/+SpX//J0z/+98m9yxphgQ2P/zfuvY9
WLNxyZf/0tHX/htHLiPeEI+q+/9L5r6Da1Z06SFeMwjYl979H9jyjDzNIGCRd+e/TcEV8jSDgGHWbfI1
g4BO2g3yNQ9NAACgfl+gY6ualwAAAABJRU5ErkJggg==
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAErSURBVDhPY2AYVKBw1vP/6GIwAJJrWvD8f+bExzjVMOTO
fPY/ofseVgUguVVH3v8Pb3+AVR4MMqY8/T9v/+//CV13MBSB5Bbu+/A/uOEahhwcJPQ8+T9736//nVv/
/ncrvYyiECQ3bcv7//7VF3AbENn16P+Ubb/+lyz9+z9h+t//Nrln4YpBcr2rP/z3Kj2B24DA5of/W9e+
B2s2LvnyXzr62n/jyGVgDSC5uvnv/rvkH8BtgEfV/f8lc9/BNSu69MAVg+Typ735b5+xHbcB9qV3/we2
PMPQDJPLnvz6v0XCetwGWOTd+W9TcAVDM0wutf813EtYgWHWbayaQQAkF9by8r9u8Dys8mCgk3YDpyRI
zq/64X8N32k41eAFTrlX/qt4TABjdLmBBQC+0b+zZl1WGAAAAABJRU5ErkJggg==
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6
3AZY5N35b1NwBUMzTC61/zXcS1iBYdZtrJpBACQX1vLyv27wPKzyYKCTdgOnJEjOr/rhfw3faTjV4AVO
uVf+q3hMAGN0uYEFAL7Rv7NmXVYYAAAAAElFTkSuQmCC
</value>
</data>
</root>

View File

@@ -1,3 +1,4 @@
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -24,7 +25,7 @@ namespace UniMarc
{
if (_item == null)
{
MessageBox.Show("데이터가 없습니다.");
UTIL.MsgE("데이터가 없습니다.");
this.Close();
return;
}

View File

@@ -11,6 +11,7 @@ using Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
using System.Text.RegularExpressions;
using System.IO;
using AR;
namespace UniMarc
{
@@ -170,7 +171,7 @@ namespace UniMarc
application.Interactive = true;
}
catch (Exception e) { MessageBox.Show(e.Message); }
catch (Exception e) { UTIL.MsgE(e.Message); }
}
#endregion
@@ -260,7 +261,7 @@ namespace UniMarc
private void webBrowser1_FileDownload(object sender, EventArgs e)
{
MessageBox.Show("You are in the WebBrowser. FileDownload event.");
UTIL.MsgI("You are in the WebBrowser. FileDownload event.");
}
}
}

View File

@@ -11,6 +11,7 @@ using Excel = Microsoft.Office.Interop.Excel;
using System.Reflection;
using System.Text.RegularExpressions;
using System.IO;
using AR;
namespace UniMarc
{
@@ -170,7 +171,7 @@ namespace UniMarc
application.Interactive = true;
}
catch (Exception e) { MessageBox.Show(e.Message); }
catch (Exception e) { UTIL.MsgE(e.Message); }
}
#endregion
@@ -260,7 +261,7 @@ namespace UniMarc
private void webBrowser1_FileDownload(object sender, EventArgs e)
{
MessageBox.Show("You are in the WebBrowser. FileDownload event.");
UTIL.MsgI("You are in the WebBrowser. FileDownload event.");
}
}
}

View File

@@ -139,7 +139,7 @@ namespace UniMarc
if (BookSearchCount == "false")
{
MessageBox.Show("검색대상이 설정되지않았습니다!");
UTIL.MsgE("검색대상이 설정되지않았습니다!");
return;
}
@@ -190,7 +190,7 @@ namespace UniMarc
if (RowCount == SearchCount.Value)
{
webBrowser1.DocumentCompleted -= this.webBrowser1_DocumentCompleted;
MessageBox.Show("조사가 완료되었습니다!");
UTIL.MsgI("조사가 완료되었습니다!");
RowCount = 0;
return;
}
@@ -1575,7 +1575,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
UTIL.MsgE(ex.ToString());
}
}
}

View File

@@ -468,8 +468,7 @@ namespace UniMarc
// Chrome 설치 확인
if (!SeleniumHelper.IsBrowserInstalled())
{
MessageBox.Show("Google Chrome / Microsoft Edge 이(가) 설치되어 있지 않습니다. 브라우저를 설치한 후 프로그램을 다시 실행해주세요.",
"Chrome 필요", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE("Google Chrome / Microsoft Edge 이(가) 설치되어 있지 않습니다. 브라우저를 설치한 후 프로그램을 다시 실행해주세요.");
lblStatus.Text = "WebDriver: 브라우저가 설치되지 않음";
lblStatus.ForeColor = Color.Red;
return;
@@ -507,8 +506,7 @@ namespace UniMarc
{
lblStatus.Text = "WebDriver:드라이버 테스트 실패";
lblStatus.ForeColor = Color.Red;
MessageBox.Show("Chrome 드라이버 테스트에 실패했습니다. 인터넷 연결을 확인하고 프로그램을 다시 실행해주세요.",
"드라이버 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE("Chrome 드라이버 테스트에 실패했습니다. 인터넷 연결을 확인하고 프로그램을 다시 실행해주세요.");
}
}
catch (OperationCanceledException)
@@ -521,8 +519,7 @@ namespace UniMarc
{
lblStatus.Text = "WebDriver:Chrome 드라이버 테스트 실패";
lblStatus.ForeColor = Color.Red;
MessageBox.Show($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}",
"설정 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}");
return;
}
}
@@ -534,8 +531,7 @@ namespace UniMarc
{
lblStatus.Text = "WebDriver:Chrome 드라이버 테스트 실패";
lblStatus.ForeColor = Color.Red;
MessageBox.Show($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}",
"설정 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}");
}
}
#endregion
@@ -862,7 +858,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
UTIL.MsgE(ex.ToString());
}
}
}

View File

@@ -52,6 +52,7 @@
this.btn_Search = new System.Windows.Forms.Button();
this.rBtn_BookName = new System.Windows.Forms.RadioButton();
this.panel2 = new System.Windows.Forms.Panel();
this.btn_Close = new System.Windows.Forms.Button();
this.btn_SiteDenote = new System.Windows.Forms.Button();
this.btn_Connect = new System.Windows.Forms.Button();
this.lbl_PW = new System.Windows.Forms.Label();
@@ -61,7 +62,6 @@
this.tb_SearchClient = new System.Windows.Forms.TextBox();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.lblStatus = new System.Windows.Forms.ToolStripLabel();
this.btn_Close = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.panel8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
@@ -92,7 +92,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(640, 699);
this.panel1.Size = new System.Drawing.Size(649, 699);
this.panel1.TabIndex = 1;
//
// panel8
@@ -101,7 +101,7 @@
this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel8.Location = new System.Drawing.Point(0, 103);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(638, 594);
this.panel8.Size = new System.Drawing.Size(647, 594);
this.panel8.TabIndex = 5;
//
// dv1
@@ -119,7 +119,7 @@
this.dv1.Name = "dv1";
this.dv1.RowHeadersWidth = 31;
this.dv1.RowTemplate.Height = 23;
this.dv1.Size = new System.Drawing.Size(638, 594);
this.dv1.Size = new System.Drawing.Size(647, 594);
this.dv1.TabIndex = 0;
this.dv1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dv1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
@@ -164,7 +164,7 @@
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 68);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(638, 35);
this.panel5.Size = new System.Drawing.Size(647, 35);
this.panel5.TabIndex = 4;
//
// btn_ResultEmpty
@@ -209,8 +209,7 @@
//
// btn_ApplyFilter
//
this.btn_ApplyFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_ApplyFilter.Location = new System.Drawing.Point(258, 4);
this.btn_ApplyFilter.Location = new System.Drawing.Point(259, 4);
this.btn_ApplyFilter.Name = "btn_ApplyFilter";
this.btn_ApplyFilter.Size = new System.Drawing.Size(75, 24);
this.btn_ApplyFilter.TabIndex = 5;
@@ -232,7 +231,7 @@
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 33);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(638, 35);
this.panel3.Size = new System.Drawing.Size(647, 35);
this.panel3.TabIndex = 4;
//
// label3
@@ -254,11 +253,10 @@
//
// chkShowBrowser
//
this.chkShowBrowser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chkShowBrowser.AutoSize = true;
this.chkShowBrowser.Checked = true;
this.chkShowBrowser.CheckState = System.Windows.Forms.CheckState.Checked;
this.chkShowBrowser.Location = new System.Drawing.Point(354, 9);
this.chkShowBrowser.Location = new System.Drawing.Point(355, 9);
this.chkShowBrowser.Name = "chkShowBrowser";
this.chkShowBrowser.Size = new System.Drawing.Size(96, 16);
this.chkShowBrowser.TabIndex = 209;
@@ -331,13 +329,22 @@
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(638, 33);
this.panel2.Size = new System.Drawing.Size(647, 33);
this.panel2.TabIndex = 3;
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(559, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 24);
this.btn_Close.TabIndex = 7;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// btn_SiteDenote
//
this.btn_SiteDenote.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_SiteDenote.Location = new System.Drawing.Point(479, 5);
this.btn_SiteDenote.Location = new System.Drawing.Point(480, 5);
this.btn_SiteDenote.Name = "btn_SiteDenote";
this.btn_SiteDenote.Size = new System.Drawing.Size(77, 23);
this.btn_SiteDenote.TabIndex = 6;
@@ -347,8 +354,7 @@
//
// btn_Connect
//
this.btn_Connect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btn_Connect.Location = new System.Drawing.Point(406, 5);
this.btn_Connect.Location = new System.Drawing.Point(407, 5);
this.btn_Connect.Name = "btn_Connect";
this.btn_Connect.Size = new System.Drawing.Size(70, 23);
this.btn_Connect.TabIndex = 5;
@@ -394,12 +400,10 @@
//
// tb_SearchClient
//
this.tb_SearchClient.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tb_SearchClient.ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.tb_SearchClient.Location = new System.Drawing.Point(76, 6);
this.tb_SearchClient.Location = new System.Drawing.Point(90, 6);
this.tb_SearchClient.Name = "tb_SearchClient";
this.tb_SearchClient.Size = new System.Drawing.Size(326, 21);
this.tb_SearchClient.Size = new System.Drawing.Size(312, 21);
this.tb_SearchClient.TabIndex = 1;
this.tb_SearchClient.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_SearchClient_KeyDown);
//
@@ -410,7 +414,7 @@
this.lblStatus});
this.statusStrip1.Location = new System.Drawing.Point(0, 699);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(640, 22);
this.statusStrip1.Size = new System.Drawing.Size(649, 22);
this.statusStrip1.TabIndex = 3;
this.statusStrip1.Text = "statusStrip1";
//
@@ -421,21 +425,11 @@
this.lblStatus.Text = "WD";
this.lblStatus.Click += new System.EventHandler(this.lblStatus_Click);
//
// btn_Close
//
this.btn_Close.Location = new System.Drawing.Point(559, 4);
this.btn_Close.Name = "btn_Close";
this.btn_Close.Size = new System.Drawing.Size(75, 24);
this.btn_Close.TabIndex = 7;
this.btn_Close.Text = "닫 기";
this.btn_Close.UseVisualStyleBackColor = true;
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
//
// DLS_Copy
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(640, 721);
this.ClientSize = new System.Drawing.Size(649, 721);
this.Controls.Add(this.panel1);
this.Controls.Add(this.statusStrip1);
this.Name = "DLS_Copy";

View File

@@ -1,4 +1,5 @@
using BokBonCheck;
using AR;
using BokBonCheck;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -67,8 +68,7 @@ namespace UniMarc
// Chrome 설치 확인
if (!SeleniumHelper.IsBrowserInstalled())
{
MessageBox.Show("Google Chrome / Microsoft Edge 이(가) 설치되어 있지 않습니다. 브라우저를 설치한 후 프로그램을 다시 실행해주세요.",
"Chrome 필요", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE("Google Chrome / Microsoft Edge 이(가) 설치되어 있지 않습니다. 브라우저를 설치한 후 프로그램을 다시 실행해주세요.");
lblStatus.Text = "WebDriver: 브라우저가 설치되지 않음";
lblStatus.ForeColor = Color.Red;
return;
@@ -103,8 +103,7 @@ namespace UniMarc
{
lblStatus.Text = "WebDriver:드라이버 테스트 실패";
lblStatus.ForeColor = Color.Red;
MessageBox.Show("Chrome 드라이버 테스트에 실패했습니다. 인터넷 연결을 확인하고 프로그램을 다시 실행해주세요.",
"드라이버 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE("Chrome 드라이버 테스트에 실패했습니다. 인터넷 연결을 확인하고 프로그램을 다시 실행해주세요.");
}
}
catch (OperationCanceledException)
@@ -117,8 +116,7 @@ namespace UniMarc
{
lblStatus.Text = "WebDriver:Chrome 드라이버 테스트 실패";
lblStatus.ForeColor = Color.Red;
MessageBox.Show($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}",
"설정 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}");
return;
}
}
@@ -130,8 +128,7 @@ namespace UniMarc
{
lblStatus.Text = "WebDriver:Chrome 드라이버 테스트 실패";
lblStatus.ForeColor = Color.Red;
MessageBox.Show($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}",
"설정 오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE($"Chrome 드라이버 테스트 중 오류가 발생했습니다: {ex.Message}");
}
}
#endregion
@@ -160,6 +157,7 @@ namespace UniMarc
private void ClientSearch()
{
Commodity_Search cs = new Commodity_Search(this);
cs.StartPosition = FormStartPosition.CenterScreen;
cs.Clinet_name = tb_SearchClient.Text;
cs.Show();
}
@@ -169,12 +167,12 @@ namespace UniMarc
{
if (lbl_Client.Text == "Client")
{
MessageBox.Show("납품처명을 선택해주세요");
UTIL.MsgE("납품처명을 선택해주세요");
return;
}
if (lbl_Area.Text == "")
{
MessageBox.Show("설정된 지역이 없습니다. 납품처 관리에서 확인해주세요.");
UTIL.MsgE("설정된 지역이 없습니다. 납품처 관리에서 확인해주세요.");
return;
}
@@ -196,12 +194,12 @@ namespace UniMarc
{
if (dv1.Rows[0].Cells["ISBN"].Value == null && rBtn_ISBN.Checked)
{
MessageBox.Show("ISBN이 입력되지않았습니다!");
UTIL.MsgE("ISBN이 입력되지않았습니다!");
return;
}
if (dv1.Rows[0].Cells["Book_name"].Value == null && rBtn_BookName.Checked)
{
MessageBox.Show("도서명이 입력되지않았습니다!");
UTIL.MsgE("도서명이 입력되지않았습니다!");
return;
}
if (_searcher == null)
@@ -240,7 +238,7 @@ namespace UniMarc
}
MessageBox.Show("완료되었습니다.");
UTIL.MsgI("완료되었습니다.");
}

View File

@@ -129,18 +129,6 @@
<metadata name="dvc_Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Book_name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ISBN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_count.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dvc_Remark.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -83,12 +84,12 @@ namespace UniMarc
{
if (lbl_Client.Text == "Client")
{
MessageBox.Show("납품처명을 선택해주세요");
UTIL.MsgE("납품처명을 선택해주세요");
return;
}
if (lbl_Area.Text == "")
{
MessageBox.Show("설정된 지역이 없습니다. 납품처 관리에서 확인해주세요.");
UTIL.MsgE("설정된 지역이 없습니다. 납품처 관리에서 확인해주세요.");
return;
}
@@ -106,7 +107,7 @@ namespace UniMarc
{
if (lbl_ID.Text == "" || lbl_PW.Text == "")
{
MessageBox.Show("ID 혹은 PW가 없습니다.");
UTIL.MsgE("ID 혹은 PW가 없습니다.");
return;
}
string ID = lbl_ID.Text, PW = lbl_PW.Text;
@@ -152,7 +153,21 @@ namespace UniMarc
}
if (move)
webBrowser1.Navigate(webBrowser1.Document.GetElementById(Code[idx]).GetAttribute("value"));
{
var areacode = Code[idx];
if(webBrowser1.Document == null)
{
UTIL.MsgE("웹브라우저가 준비되지 않아 URL을 이동할 수 없습니다");
}
else
{
var elm = webBrowser1.Document.GetElementById(areacode);
var val = elm.GetAttribute("value");
webBrowser1.Navigate(val);
}
}
return Code[idx];
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -179,7 +180,7 @@ namespace UniMarc
int result = combo1_res.ToList().FindIndex(x => x == value);
if (result == -1)
{
MessageBox.Show(String.Format("이용대상자수준을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo1[0], combo1_res[0]), "경고");
UTIL.MsgE(String.Format("이용대상자수준을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo1[0], combo1_res[0]));
result = 0;
}
return result;
@@ -201,7 +202,7 @@ namespace UniMarc
int result = combo2_res.ToList().FindIndex(x=>x==value);
if (result == -1)
{
MessageBox.Show(String.Format("개별자료형태를 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo2[0], combo2_res[0]), "경고");
UTIL.MsgE(String.Format("개별자료형태를 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo2[0], combo2_res[0]));
result = 0;
}
return result;
@@ -227,7 +228,7 @@ namespace UniMarc
int result = combo3_res.ToList().FindIndex(x => x == value);
if (result == -1)
{
MessageBox.Show(String.Format("내용형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo3[0], combo3_res[0]), "경고");
UTIL.MsgE(String.Format("내용형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo3[0], combo3_res[0]));
result = 0;
}
return result;
@@ -252,7 +253,7 @@ namespace UniMarc
int result = combo4_res.ToList().FindIndex(x => x == value);
if (result == -1)
{
MessageBox.Show(String.Format("문학형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo4[0], combo4_res[0]), "경고");
UTIL.MsgE(String.Format("문학형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo4[0], combo4_res[0]));
result = 0;
}
return result;
@@ -274,7 +275,7 @@ namespace UniMarc
int result = combo5_res.ToList().FindIndex(x => x == value);
if (result == -1)
{
MessageBox.Show(String.Format("전기형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo5[0], combo5_res[0]), "경고");
UTIL.MsgE(String.Format("전기형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo5[0], combo5_res[0]));
result = 0;
}
return result;
@@ -303,7 +304,7 @@ namespace UniMarc
int result = combo6_res.ToList().FindIndex(x => x == value);
if (result == -1)
{
MessageBox.Show(String.Format("언어형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo6[0], combo6_res[0]), "경고");
UTIL.MsgE(String.Format("언어형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo6[0], combo6_res[0]));
result = 0;
}
return result;

View File

@@ -29,5 +29,10 @@ namespace UniMarc
public string sold_out { get; set; }
public string image { get; set; }
public string api_data { get; set; }
public string search_description { get; set; }
public string search_link { get; set; }
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -50,7 +51,7 @@ namespace UniMarc
catch(Exception ex)
{
// 
MessageBox.Show(ex.ToString());
UTIL.MsgE(ex.ToString());
}
}
tb_filePath.Text = file_path;
@@ -167,9 +168,9 @@ namespace UniMarc
string Incmd = db.DB_INSERT(table, col, data);
Helper_DB.ExcuteNonQuery(Incmd);
}
catch (Exception ex) { MessageBox.Show(ex.Message); }
catch (Exception ex) { UTIL.MsgE(ex.Message); }
}
MessageBox.Show("DB 저장 완료!");
UTIL.MsgI("DB 저장 완료!");
}
private void btn_close_Click(object sender, EventArgs e)

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -72,7 +73,7 @@ namespace UniMarc
"AND `chk_marc` > 0;",
Area, table, compidx, search, state);
DataTable dt = Helper_DB.ExecuteQueryData(cmd);
DataTable dt = Helper_DB.ExecuteDataTable(cmd);
List<MacListItem> items = new List<MacListItem>();
if (dt == null || dt.Rows.Count == 0)
@@ -115,7 +116,7 @@ namespace UniMarc
private void btn_Save_Click(object sender, EventArgs e)
{
if (MessageBox.Show("선택사항을 저장하시겠습니까?", "저장", MessageBoxButtons.YesNo) == DialogResult.No)
if (UTIL.MsgQ("선택사항을 저장하시겠습니까?") == DialogResult.No)
return;
string table = "Obj_List";
@@ -138,7 +139,7 @@ namespace UniMarc
}
}
bs1.ResetBindings(false);
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
}
private void btn_Excel_Click(object sender, EventArgs e)
@@ -183,7 +184,7 @@ namespace UniMarc
bool hasProgress = items.Any(i => i.check == "V" && i.state == "진행");
if (hasProgress)
{
MessageBox.Show("체크된 목록이 현재 진행중입니다.");
UTIL.MsgE("체크된 목록이 현재 진행중입니다.");
return;
}
@@ -193,7 +194,7 @@ namespace UniMarc
state_Save_Object(item);
}
MessageBox.Show("진행처리되었습니다.", "목록진행");
UTIL.MsgI("진행처리되었습니다.");
btn_Lookup_Click(null, null);
}
@@ -203,7 +204,7 @@ namespace UniMarc
bool hasCompletion = items.Any(i => i.check == "V" && i.state == "완료");
if (hasCompletion)
{
MessageBox.Show("체크된 목록은 현재 완료되어있습니다.");
UTIL.MsgE("체크된 목록은 현재 완료되어있습니다.");
return;
}
@@ -213,7 +214,7 @@ namespace UniMarc
state_Save_Object(item);
}
MessageBox.Show("완료처리되었습니다.", "목록완료");
UTIL.MsgI("완료처리되었습니다.");
btn_Lookup_Click(null, null);
}
@@ -237,7 +238,7 @@ namespace UniMarc
private void btn_Delete_Click(object sender, EventArgs e)
{
if (MessageBox.Show("정말로 삭제하시겠습니까?", "삭제경고", MessageBoxButtons.YesNo) == DialogResult.No) { return; }
if (UTIL.MsgQ("정말로 삭제하시겠습니까?") == DialogResult.No) { return; }
List<MacListItem> items = bs1.List.Cast<MacListItem>().ToList();
foreach (var item in items.Where(i => i.check == "V"))
@@ -252,7 +253,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(D_cmd);
}
MessageBox.Show("삭제되었습니다.");
UTIL.MsgI("삭제되었습니다.");
btn_Lookup_Click(null, null);
}
@@ -336,7 +337,7 @@ namespace UniMarc
var item = bs1.Current as MacListItem;
if (item == null)
{
MessageBox.Show("대상을 먼저 선택하세요.");
UTIL.MsgE("대상을 먼저 선택하세요.");
return;
}
@@ -355,7 +356,7 @@ namespace UniMarc
if (item == null) return;
string tSearchText = item.list_name;
string tSearchIDX = item.idx;
var isbn = main.OpenFormInTab(() => new Check_ISBN2(main, tSearchText, tSearchIDX));
var isbn = main.OpenFormInTab(() => new Check_ISBN2( tSearchText, tSearchIDX));
isbn.tb_list_name.Enabled = true;
}
}

View File

@@ -90,12 +90,12 @@ namespace UniMarc
if (!CopyCheck(compidx, listName, Today))
{
MessageBox.Show("목록이 중복되었습니다! 다시 확인해주세요.", "Error");
UTIL.MsgE("목록이 중복되었습니다! 다시 확인해주세요.");
return;
}
if (listName.isEmpty())
{
MessageBox.Show("목록명이 비어있습니다! 다시 확인해주세요.", "Error");
UTIL.MsgE("목록명이 비어있습니다! 다시 확인해주세요.");
return;
}
@@ -151,7 +151,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(InBook_Cmd);
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
ml.btn_Lookup_Click(null, null);
}
@@ -235,15 +235,13 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show("오류가 발생했습니다.\n" + ex.Message, "Error");
UTIL.MsgE("오류가 발생했습니다.\n" + ex.Message);
}
}
private void btn_DelRow_Click(object sender, EventArgs e)
{
DialogResult result = MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo);
if (result == DialogResult.No) return;
if (UTIL.MsgQ("삭제하시겠습니까?") == DialogResult.No) return;
int row = dataGridView1.CurrentCell.RowIndex;
@@ -280,7 +278,7 @@ namespace UniMarc
{
where += $" and c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = Helper_DB.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
var dt = Helper_DB.ExecuteQueryData("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{

View File

@@ -95,12 +95,12 @@ namespace UniMarc
if (!CopyCheck(compidx, listName, Today))
{
MessageBox.Show("목록이 중복되었습니다! 다시 확인해주세요.", "Error");
UTIL.MsgE("목록이 중복되었습니다! 다시 확인해주세요.");
return;
}
if (listName.isEmpty())
{
MessageBox.Show("목록명이 비어있습니다! 다시 확인해주세요.", "Error");
UTIL.MsgE("목록명이 비어있습니다! 다시 확인해주세요.");
return;
}
@@ -147,7 +147,7 @@ namespace UniMarc
if (InBook_List.Count == 0)
{
MessageBox.Show("저장할 데이터가 없습니다.");
UTIL.MsgE("저장할 데이터가 없습니다.");
return;
}
@@ -157,7 +157,7 @@ namespace UniMarc
long listIdxLong = db.DB_Send_CMD_Insert_GetIdx(InList_Cmd);
if (listIdxLong == -1)
{
MessageBox.Show($"목록 저장에 실패했습니다.");
UTIL.MsgE("목록 저장에 실패했습니다.");
return;
}
string listIdx = listIdxLong.ToString();
@@ -167,7 +167,7 @@ namespace UniMarc
var rlt = Helper_DB.ExcuteNonQuery(InBook_Cmd);
if (rlt.applyCount == 0)
{
MessageBox.Show($"내역 저장에 실패했습니다.\n{rlt.errorMessage}");
UTIL.MsgE($"내역 저장에 실패했습니다.\n{rlt.errorMessage}");
return;
}
@@ -245,7 +245,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show("오류가 발생했습니다.\n" + ex.Message, "Error");
UTIL.MsgE("오류가 발생했습니다.\n" + ex.Message);
}
}
@@ -253,7 +253,7 @@ namespace UniMarc
{
if (bs1.Current == null) return;
DialogResult result = MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo);
DialogResult result = UTIL.MsgQ("삭제하시겠습니까?");
if (result == DialogResult.No) return;
bs1.RemoveCurrent();
@@ -355,7 +355,7 @@ namespace UniMarc
{
where += $" and c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = Helper_DB.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
var dt = Helper_DB.ExecuteQueryData("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{

View File

@@ -91,7 +91,7 @@ namespace UniMarc
{
where += $" and c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = Helper_DB.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
var dt = Helper_DB.ExecuteQueryData("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{
@@ -111,7 +111,7 @@ namespace UniMarc
{
if (string.IsNullOrEmpty(tb_ListName.Text))
{
MessageBox.Show("목록명을 입력하세요.");
UTIL.MsgI("목록명을 입력하세요.");
return;
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -65,15 +66,15 @@ namespace UniMarc
private void btn_Merge_Click(object sender, EventArgs e)
{
if (!rb_Delete.Checked && !rb_Keep.Checked) {
MessageBox.Show("기존목록의 유지여부를 선택해주세요.");
UTIL.MsgE("기존목록의 유지여부를 선택해주세요.");
return;
}
if (tb_list_name.Text == "변경할 작업처의 이름") {
MessageBox.Show("작업처의 이름을 입력해주세요.");
UTIL.MsgE("작업처의 이름을 입력해주세요.");
return;
}
if (!chk_Overlap()) {
MessageBox.Show("작업처의 이름이 중복됩니다. 다시 설정해주세요.");
UTIL.MsgE("작업처의 이름이 중복됩니다. 다시 설정해주세요.");
return;
}
@@ -89,7 +90,7 @@ namespace UniMarc
data_delete();
}
MessageBox.Show("목록이 병합되었습니다.");
UTIL.MsgI("목록이 병합되었습니다.");
ml.btn_Lookup_Click(null, null);
this.Close();
}

View File

@@ -423,14 +423,14 @@ namespace UniMarc
{
if (SaveRowIdx < 0)
{
MessageBox.Show("마크가 선택되지않았습니다.");
UTIL.MsgE("마크가 선택되지않았습니다.");
return;
}
int TabIndex = tabControl1.SelectedIndex;
int grade = cb_grade.SelectedIndex;
if (TabIndex == 1)
{
MessageBox.Show("[칸채우기]가 아닌 [마크 편집] 탭에서 저장해주세요!");
UTIL.MsgE("[칸채우기]가 아닌 [마크 편집] 탭에서 저장해주세요!");
return;
}
//if (grade == 3)
@@ -447,7 +447,7 @@ namespace UniMarc
if (!isPass(BaseText))
{
MessageBox.Show("입력된 마크의 상태를 확인해주세요.");
UTIL.MsgE("입력된 마크의 상태를 확인해주세요.");
return;
}
@@ -530,7 +530,7 @@ namespace UniMarc
string[] Sear_col = { Midx, PUB.user.CompanyIdx };
if (grid_data[0] == null || grid_data[0] == "")
{
MessageBox.Show("ISBN 데이터가 없습니다.");
UTIL.MsgE("ISBN 데이터가 없습니다.");
return;
}
@@ -554,7 +554,7 @@ namespace UniMarc
Midx, List_Book.Rows[SaveRowIdx].Cells["list_idx"].Value.ToString(), PUB.user.CompanyIdx);
PUB.log.Add("MarcUpdate", string.Format("{0}({1}) : {2}", PUB.user.UserName, PUB.user.CompanyIdx, UpdateListIndex));
Helper_DB.ExcuteNonQuery(UpdateListIndex);
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
}
#region Save_Click_Sub
@@ -642,7 +642,7 @@ namespace UniMarc
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
UTIL.MsgE(msg + "태그가 없습니다.");
return false;
}
@@ -658,7 +658,7 @@ namespace UniMarc
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
UTIL.MsgE("기본표목이 존재하지않습니다.");
return false;
}
@@ -676,7 +676,7 @@ namespace UniMarc
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
UTIL.MsgE("부출표목이 존재하지않습니다.");
return false;
}
@@ -1134,7 +1134,7 @@ namespace UniMarc
if (pubDate.Length < 3)
{
MessageBox.Show("260c가 인식되지않습니다.");
UTIL.MsgE("260c가 인식되지않습니다.");
return "false";
}
else if (pubDate.Length < 5)
@@ -1163,7 +1163,7 @@ namespace UniMarc
if (res == "")
{
MessageBox.Show("260a가 인식되지않습니다.");
UTIL.MsgE("260a가 인식되지않습니다.");
return "false";
}
else if (res.Length < 3)
@@ -1560,7 +1560,7 @@ namespace UniMarc
if (ISBN == "" || ISBN == null)
{
MessageBox.Show("ISBN이 존재하지않습니다!");
UTIL.MsgE("ISBN이 존재하지않습니다!");
return;
}
@@ -3500,7 +3500,7 @@ namespace UniMarc
}
catch
{
MessageBox.Show("데이터가 올바르지않습니다.\n245d를 확인해주세요.");
UTIL.MsgE("데이터가 올바르지않습니다.\n245d를 확인해주세요.");
}
}
#region
@@ -3564,7 +3564,7 @@ namespace UniMarc
{
where = $"c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = Helper_DB.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
var dt = Helper_DB.ExecuteQueryData("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{

View File

@@ -3,6 +3,7 @@ using arCtl.TinyListview;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
@@ -14,7 +15,6 @@ using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using System.Windows.Forms;
using UniMarc.ListOfValue;
using static UniMarc.MarcEditorControl;
namespace UniMarc
{
@@ -90,10 +90,10 @@ namespace UniMarc
input_list(pItem);
}
(string remark1, string remark2) ReadRemark(int row)
(string remark1, string remark2) ReadRemark(string marcidx)
{
string[] sear_tbl = { "idx" };
string[] sear_col = { List_Book.Rows[row].Cells["marc_idx"].Value.ToString() };
string[] sear_col = { marcidx };// List_Book.Rows[row].Cells["marc_idx"].Value.ToString() };
string cmd = db.More_DB_Search("Marc", sear_tbl, sear_col, "`비고1`, `비고2`");
string res = db.DB_Send_CMD_Search(cmd);
@@ -140,7 +140,8 @@ namespace UniMarc
}
string Area = "`idx`, `isbn_marc`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `image_url`, `m_idx`";
string Area = "`idx`, `isbn_marc`, `header`, `num`, `book_name`, `author`, `book_comp`, `count`, `pay`, `image_url`, `m_idx`" +
",search_book_name,search_author,search_book_comp,search_description,search_url";
string[] sear_tbl = { "l_idx", "compidx" };
string[] sear_col = { item.idx, PUB.user.CompanyIdx };
@@ -154,8 +155,8 @@ namespace UniMarc
"FROM {1} " +
"WHERE `{2}` = \"{4}\" AND `{3}` = \"{5}\"" +
"ORDER BY `idx` ASC;", Area, "Obj_List_Book", sear_tbl[0], sear_tbl[1], sear_col[0], sear_col[1]);
string db_res = db.DB_Send_CMD_Search(cmd);
string[] db_data = db_res.Split('|');
var db_res = Helper_DB.ExecuteDataTable(cmd);// db.DB_Send_CMD_Search(cmd);
//string[] db_data = db_res.Split('|');
string[] grid = {
"", "", "", "", "",
"", "", "", "", "",
@@ -164,19 +165,26 @@ namespace UniMarc
mLoadCompleted = false;
dataList = new SortableBindingList<MarcBookItem>();
for (int a = 0; a < db_data.Length - 1; a += 11)
foreach (DataRow dr in db_res.Rows)// (int a = 0; a < db_data.Length - 1; a += 11)
{
MarcBookItem bitem = new MarcBookItem();
bitem.ListIdx = db_data[a]; // 0: idx
bitem.ISBN13 = db_data[a + 1]; // 1: isbn
bitem.Num = db_data[a + 2] + db_data[a + 3]; // 2: header + num
bitem.BookName = db_data[a + 4]; // 3: book_num
bitem.Author = db_data[a + 5]; // 4: author
bitem.BookComp = db_data[a + 6]; // 5: book_comp
bitem.Count = db_data[a + 7]; // 6: count
bitem.Pay = db_data[a + 8]; // 7: pay
bitem.Url = db_data[a + 9]; // 8: image_url
bitem.MarcIdx = db_data[a + 10]; // 9: m_idx
bitem.ListIdx = dr["idx"]?.ToString() ?? string.Empty; // db_data[a]; // 0: idx
bitem.ISBN13 = dr["isbn_marc"]?.ToString() ?? string.Empty; // db_data[a + 1]; // 1: isbn
bitem.Num = (dr["header"]?.ToString() ?? string.Empty) +( dr["num"]?.ToString() ?? string.Empty);
//; //db_data[a + 2] + db_data[a + 3]; // 2: header + num
bitem.BookName = dr["book_name"]?.ToString() ?? string.Empty; // db_data[a + 4]; // 3: book_num
bitem.Author = dr["author"]?.ToString() ?? string.Empty; // db_data[a + 5]; // 4: author
bitem.BookComp = dr["book_comp"]?.ToString() ?? string.Empty; //db_data[a + 6]; // 5: book_comp
bitem.Count = dr["count"]?.ToString() ?? string.Empty; // db_data[a + 7]; // 6: count
bitem.Pay = dr["pay"]?.ToString() ?? string.Empty; //db_data[a + 8]; // 7: pay
bitem.Url = dr["image_url"]?.ToString() ?? string.Empty; //db_data[a + 9]; // 8: image_url
bitem.MarcIdx = dr["m_idx"]?.ToString() ?? string.Empty; //db_data[a + 10]; // 9: m_idx
bitem.search_book_name = dr["search_book_name"]?.ToString() ?? string.Empty; //db_data[a + 11]; // 9: m_idx
bitem.search_author = dr["search_author"]?.ToString() ?? string.Empty; //db_data[a + 12]; // 9: m_idx
bitem.search_book_comp = dr["search_book_comp"]?.ToString() ?? string.Empty; //db_data[a + 13]; // 9: m_idx
bitem.search_description = dr["search_description"]?.ToString() ?? string.Empty; // db_data[a + 14]; // 9: m_idx
bitem.search_url = dr["search_url"]?.ToString() ?? string.Empty; //db_data[a + 15]; // 9: m_idx
dataList.Add(bitem);
}
@@ -324,6 +332,7 @@ namespace UniMarc
private void List_Book_SelectionChanged(object sender, EventArgs e)
{
if (!mLoadCompleted) return;
if (List_Book.CurrentCell == null) return;
int row_idx = List_Book.CurrentCell.RowIndex;
int col_idx = List_Book.CurrentCell.ColumnIndex;
@@ -335,95 +344,10 @@ namespace UniMarc
}
if (row_idx == -1 || col_idx == -1) { return; }
SaveRowIdx = row_idx;
mOldMarc = List_Book.Rows[row_idx].Cells["db_marc"].Value?.ToString() ?? string.Empty;
string isbn = List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString();
if (isbn != "")
{
string CountQuery = string.Format("SELECT Count(isbn) FROM Marc WHERE isbn = {0} GROUP BY isbn;", isbn);
string CountResult = db.self_Made_Cmd(CountQuery).Replace("|", "");
if (CountResult == "")
btn_CopySelect.Text = "0";
if (CountResult == "0")
{
btn_CopySelect.Enabled = false;
btn_CopySelect.BackColor = Color.Silver;
}
else
{
btn_CopySelect.Enabled = true;
btn_CopySelect.BackColor = Color.Khaki;
}
btn_CopySelect.Text = CountResult;
}
if (check_V(row_idx, col_idx))
return;
string isbn13 = List_Book.Rows[row_idx].Cells["ISBN13"].Value?.ToString() ?? "";
string bookName = List_Book.Rows[row_idx].Cells["book_name"].Value?.ToString() ?? "";
string author = List_Book.Rows[row_idx].Cells["author"].Value?.ToString() ?? "";
string publisher = List_Book.Rows[row_idx].Cells["book_comp"].Value?.ToString() ?? "";
string price = List_Book.Rows[row_idx].Cells["pay"].Value?.ToString() ?? "";
string url = List_Book.Rows[row_idx].Cells["url"].Value?.ToString() ?? ""; // or image_url?
string marcIdx = List_Book.Rows[row_idx].Cells["marc_idx"].Value?.ToString() ?? "";
string dbMarc = List_Book.Rows[row_idx].Cells["db_marc"].Value?.ToString() ?? "";
string grade = List_Book.Rows[row_idx].Cells["grade"].Value?.ToString() ?? "";
string user = List_Book.Rows[row_idx].Cells["user"].Value?.ToString() ?? "";
string saveDate = List_Book.Rows[row_idx].Cells["SaveDate"].Value?.ToString() ?? "";
string listIdx = List_Book.Rows[row_idx].Cells["list_idx"].Value?.ToString() ?? ""; // verify this column name in input_list
this.lbListIdx.Text = $"Row:{SaveRowIdx},List:{listIdx}";
var remark = ReadRemark(row_idx);
this.Param = new MacEditorParameter
{
ISBN13 = isbn13,
URL = url,
ListIdx = listIdx,
MarcIdx = marcIdx,
SaveDate = saveDate,
User = user,
BookName = bookName,
Author = author,
Publisher = publisher,
Price = price,
OriginalMarc = dbMarc,
};
var defMarc = PUB.MakeEmptyMarc(isbn13, bookName, author, publisher, price);
marcEditorControl1.LoadBookData(dbMarc, isbn13, defMarc);
//등급선택 (dbMarc 데이터를 확인하여. 등급을 결정한다)
int gradeNo;
bool check_Marc = dbMarc.Length >= 3;
if (!check_Marc)
{
//richTextBox1.Text = Make_Empty();
gradeNo = 3; //마크가 없는것은 D등급으로 한다
}
else
{
etc1.Text = remark.remark1;
etc2.Text = remark.remark2;
//자료의 등급 다시 선택
if (int.TryParse(grade, out gradeNo) == false)
gradeNo = 2;
}
if (gradeNo == 0 )
radA.Checked = true;
else if(gradeNo == 1)
radB.Checked = true;
else if(gradeNo == 3)
radD.Checked = true;
else
radC.Checked = true;
lbl_SaveData.Text = $"[{user}] [{saveDate}]";
}
@@ -531,35 +455,36 @@ namespace UniMarc
var dr = this.bs1.Current as MarcBookItem;
var copySelect = new MarcCopySelect2(this, dr);
copySelect.Init("isbn", dr.ISBN13);
copySelect.Show();
}
/// <summary>
/// 선택된 마크에 대한 정보를 그리드뷰에 저장.
/// </summary>
/// <param name="row"></param>
/// <param name="GridData">[0] idx, [1] compidx, [2] user, [3] date, [4] grade, [5] tag008, [6] marc </param>
public void SelectMarc_Sub(MarcBookItem row, string[] GridData)
using (var copySelect = new MarcCopySelect2("isbn", dr.ISBN13))
{
row.MarcIdx = GridData[0];
row.User = GridData[2];
row.SaveDate = GridData[4];
row.Grade = GridData[3];
// text008.Text = GridData[5];
row.DbMarc = GridData[6];
mOldMarc = GridData[6];
if (copySelect.ShowDialog() == DialogResult.OK)
{
var selected = copySelect.SelectedItem;
dr.MarcIdx = selected.idx;
dr.User = selected.User;
dr.SaveDate = selected.Date;
dr.Grade = selected.Grade;
// text008.Text = selected.Tag008;
dr.DbMarc = selected.marc_db;
mOldMarc = selected.marc_db;
// row.ForeColor = SetGradeColor(row.Grade); // Handled by MarcBookItem automatically
row.BackColor = Color.Yellow;
dr.BackColor = Color.Yellow;
var currentitem = this.bs1.Current as MarcBookItem;
if (currentitem != null && currentitem == row)
if (currentitem != null && currentitem == dr)
{
List_Book_SelectionChanged(null, null);
//List_Book_SelectionChanged(null, null);
bs1_CurrentChanged(null, null);
//bs1.ResetBindings(false);
}
}
}
}
#region Save_Click_Sub
@@ -782,7 +707,7 @@ namespace UniMarc
{
where = $"c_sangho like '%{inputsearch.Replace("'", "''")}%'";
}
var dt = Helper_DB.GetDT("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
var dt = Helper_DB.ExecuteQueryData("Client", columns: "idx,c_sangho", orders: "c_sangho", wheres: where);
using (var f = new fSelectDT(dt))
if (f.ShowDialog() == DialogResult.OK)
{
@@ -822,18 +747,22 @@ namespace UniMarc
switch (key)
{
case Keys.F9:
radA.Checked = true;// cb_grade.SelectedIndex = 0;// = "A (F9)";
uC_SelectGrade1.GradeName = "A";
//radA.Checked = true;// cb_grade.SelectedIndex = 0;// = "A (F9)";
break;
case Keys.F10:
radB.Checked = true;// cb_grade.SelectedIndex = 1;// = "B (F10)";
uC_SelectGrade1.GradeName = "B";
//radB.Checked = true;// cb_grade.SelectedIndex = 1;// = "B (F10)";
//Btn_Save_Click(null, null);
break;
case Keys.F11:
radC.Checked = true;// cb_grade.SelectedIndex = 2;// = "C (F11)";
uC_SelectGrade1.GradeName = "C";
//radC.Checked = true;// cb_grade.SelectedIndex = 2;// = "C (F11)";
//Btn_Save_Click(null, null);
break;
case Keys.F12:
radD.Checked = true;// cb_grade.SelectedIndex = 3;//.SelectedItem = "D (F12)";
uC_SelectGrade1.GradeName = "D";
//radD.Checked = true;// cb_grade.SelectedIndex = 3;//.SelectedItem = "D (F12)";
//Btn_Save_Click(null, null);
break;
}
@@ -841,29 +770,7 @@ namespace UniMarc
private void button1_Click(object sender, EventArgs e)
{
// 현재 데이터를 한줄 복사하고 ISBN 값을 삭제한다
// 생성된 자료는 좌측 목록에 추가되어야하고, 그 목록이 선택되도록 한다.
if (List_Book.SelectedRows.Count == 0)
return;
DataGridViewRow selectedRow = List_Book.SelectedRows[0];
int nRow = List_Book.Rows.Add();
DataGridViewRow newRow = List_Book.Rows[nRow];
for (int i = 0; i < selectedRow.Cells.Count; i++)
{
newRow.Cells[i].Value = selectedRow.Cells[i].Value;
}
newRow.Cells["ISBN13"].Value = "";
newRow.Cells["marc_idx"].Value = "";
newRow.Cells["list_idx"].Value = "";
//newRow.Cells["grade"].Value = "3"; // 등급 초기화 (D)
newRow.DefaultCellStyle.ForeColor = Color.Red; // 색상 초기화 (D급 색상)
List_Book.ClearSelection();
newRow.Selected = true;
List_Book.FirstDisplayedScrollingRowIndex = nRow;
}
private void btClose_Click(object sender, EventArgs e)
@@ -918,7 +825,7 @@ namespace UniMarc
var main = Application.OpenForms.OfType<Main>().FirstOrDefault();
if (main != null)
{
var isbn = main.OpenFormInTab(() => new Check_ISBN2(main, tSearchText, tSearchIDX));
var isbn = main.OpenFormInTab(() => new Check_ISBN2(tSearchText, tSearchIDX));
if (isbn != null)
{
isbn.tb_list_name.Enabled = true;
@@ -943,9 +850,8 @@ namespace UniMarc
private void button2_Click(object sender, EventArgs e)
{
marcEditorControl1.Tag056(); // 008 태그가 richTextBox1에 포함되도록 갱신
var orimarc = st.made_Ori_marc(marcEditorControl1.richTextBox1).Replace(@"\", "₩");
var fb = new Marc_CopyForm( orimarc);
var fullmarc = marcEditorControl1.MakeMarcString();
using (var fb = new Marc_CopyForm(fullmarc))
fb.ShowDialog();
}
@@ -953,7 +859,7 @@ namespace UniMarc
{
if (Param.NewMake == false && string.IsNullOrEmpty(Param.ISBN13))
{
MessageBox.Show("마크가 선택되지않았습니다.");
UTIL.MsgE("마크가 선택되지않았습니다.");
return;
}
@@ -965,24 +871,21 @@ namespace UniMarc
var v_isbn = marcEditorControl1.lbl_ISBN.Text.Trim();
// ISBN 중복체크
var exist = DB_Utils.ExistISBN(v_isbn);
if (exist)
{
if (UTIL.MsgQ($"입력하신 ISBN({v_isbn})은 이미 등록된 데이터가 존재합니다.\n그래도 저장하시겠습니까?") != DialogResult.Yes)
{
return;
}
}
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = marcEditorControl1.MakeMarcString();// st.made_Ori_marc(marcEditorControl1.richTextBox1).Replace(@"\", "₩");
//// ISBN 중복체크
//var exist = DB_Utils.ExistISBN(v_isbn);
//if (exist)
//{
// if (UTIL.MsgQ($"입력하신 ISBN({v_isbn})은 이미 등록된 데이터가 존재합니다.\n그래도 저장하시겠습니까?") != DialogResult.Yes)
// {
// return;
// }
//}
this.Param.text008 = marcEditorControl1.text008.Text.Trim();
this.Param.tag056 = marcEditorControl1.Tag056();
this.Param.tag056 = marcEditorControl1.Tag056(out string with008fullmarcstring);
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string orimarc = marcEditorControl1.MakeMarcString();
//아래는 실제 폼에서의 저장코드
@@ -992,11 +895,13 @@ namespace UniMarc
string table_name = "Marc";
string newsavedMarc = orimarc;
var v_grade = "";// cb_grade.SelectedIndex.ToString(); // 등급은 0~3의 숫자로 저장된다고 가정
if(radA.Checked) v_grade = "0";
else if(radB.Checked) v_grade = "1";
else if(radC.Checked) v_grade = "2";
else if(radD.Checked) v_grade = "3";
// cb_grade.SelectedIndex.ToString(); // 등급은 0~3의 숫자로 저장된다고 가정
var v_grade = uC_SelectGrade1.Grade == -1 ? "" : uC_SelectGrade1.Grade.ToString();
//if (radA.Checked) v_grade = "0";
//else if (radB.Checked) v_grade = "1";
//else if (radC.Checked) v_grade = "2";
//else if (radD.Checked) v_grade = "3";
var v_etc1 = this.etc1.Text.Trim();
var v_etc2 = this.etc2.Text.Trim();
@@ -1023,7 +928,7 @@ namespace UniMarc
string[] Sear_tbl = { "idx", "compidx" };
string[] Sear_col = { item.MarcIdx, mCompidx };
if (string.IsNullOrEmpty(this.Param.ISBN13)) { MessageBox.Show("ISBN 데이터가 없습니다."); return; }
if (string.IsNullOrEmpty(this.Param.ISBN13)) { UTIL.MsgE("ISBN 데이터가 없습니다."); return; }
string U_cmd = db.More_Update(table_name, Edit_tbl, Edit_col, Sear_tbl, Sear_col);
PUB.log.Add("Update", string.Format("{0}({1},{2}) : {3}", mUserName, mCompidx, item.Status, U_cmd.Replace("\r", " ").Replace("\n", " ")));
@@ -1034,6 +939,7 @@ namespace UniMarc
// 2. 객체 데이터 업데이트 및 시각적 상태 계산
item.Status = MarcRecordStatus.MyCompany;
item.BackColor = GetSaveDateColor(date);
item.Grade = v_grade; //등급업데이트추가
// 3. 목록 인덱스 연동 업데이트 (Obj_List_Book)
string UpdateListIndex = string.Format("UPDATE `Obj_List_Book` SET `m_idx` = {0} WHERE `idx` = {1} AND `compidx` ={2};", item.MarcIdx, item.ListIdx, mCompidx);
@@ -1041,7 +947,7 @@ namespace UniMarc
// 4. BindingSource 갱신으로 UI 자동 업데이트
bs1.ResetCurrentItem();
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
}
private void btn_FillBlank_Click(object sender, EventArgs e)
@@ -1052,7 +958,7 @@ namespace UniMarc
if (string.IsNullOrEmpty(ISBN))
{
MessageBox.Show("ISBN이 존재하지않습니다!");
UTIL.MsgE("ISBN이 존재하지않습니다!");
return;
}
@@ -1108,5 +1014,138 @@ namespace UniMarc
{
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
private void etc1_KeyDown(object sender, KeyEventArgs e)
{
var rt = sender as RichTextBox;
if (rt == null) return;
if (e.KeyCode == Keys.F5)
{
rt.AppendText("[" + DateTime.Now.ToString("yy-MM-dd") + "]");
}
}
private void bs1_CurrentChanged(object sender, EventArgs e)
{
if (!mLoadCompleted) return;
var dr = bs1.Current as MarcBookItem;
if (dr == null) return;
//if (List_Book.CurrentCell == null) return;
//int row_idx = List_Book.CurrentCell.RowIndex;
//int col_idx = List_Book.CurrentCell.ColumnIndex;
//if (List_Book.SelectedCells.Count > 0)
//{
// row_idx = List_Book.SelectedCells[0].RowIndex;
// col_idx = List_Book.SelectedCells[0].ColumnIndex;
//}
//if (row_idx == -1 || col_idx == -1) { return; }
//SaveRowIdx = row_idx;
mOldMarc = dr.DbMarc;// List_Book.Rows[row_idx].Cells["db_marc"].Value?.ToString() ?? string.Empty;
string isbn = dr.ISBN13;// List_Book.Rows[row_idx].Cells["ISBN13"].Value.ToString();
if (isbn != "")
{
string CountQuery = string.Format("SELECT Count(isbn) FROM Marc WHERE isbn = {0} GROUP BY isbn;", isbn);
string CountResult = db.self_Made_Cmd(CountQuery).Replace("|", "");
if (CountResult == "")
btn_CopySelect.Text = "0";
if (CountResult == "0")
{
btn_CopySelect.Enabled = false;
btn_CopySelect.BackColor = Color.Silver;
}
else
{
btn_CopySelect.Enabled = true;
btn_CopySelect.BackColor = Color.Khaki;
}
btn_CopySelect.Text = CountResult;
}
string isbn13 = dr.ISBN13;// List_Book.Rows[row_idx].Cells["ISBN13"].Value?.ToString() ?? "";
string bookName = dr.BookName;// List_Book.Rows[row_idx].Cells["book_name"].Value?.ToString() ?? "";
string author = dr.Author;// List_Book.Rows[row_idx].Cells["author"].Value?.ToString() ?? "";
string publisher = dr.BookComp;// List_Book.Rows[row_idx].Cells["book_comp"].Value?.ToString() ?? "";
string price = dr.Pay;// List_Book.Rows[row_idx].Cells["pay"].Value?.ToString() ?? "";
string url = dr.Url;// List_Book.Rows[row_idx].Cells["url"].Value?.ToString() ?? ""; // or image_url?
string marcIdx = dr.MarcIdx;// List_Book.Rows[row_idx].Cells["marc_idx"].Value?.ToString() ?? "";
string dbMarc = dr.DbMarc;// List_Book.Rows[row_idx].Cells["db_marc"].Value?.ToString() ?? "";
string grade = dr.Grade;// List_Book.Rows[row_idx].Cells["grade"].Value?.ToString() ?? "";
string user = dr.User;// List_Book.Rows[row_idx].Cells["user"].Value?.ToString() ?? "";
string saveDate = dr.SaveDate;// List_Book.Rows[row_idx].Cells["SaveDate"].Value?.ToString() ?? "";
string listIdx = dr.ListIdx;// List_Book.Rows[row_idx].Cells["list_idx"].Value?.ToString() ?? ""; // verify this column name in input_list
this.lbListIdx.Text = $"Row:{SaveRowIdx},List:{listIdx}";
var remark = ReadRemark(dr.MarcIdx);
this.Param = new MacEditorParameter
{
ISBN13 = isbn13,
URL = url,
ListIdx = listIdx,
MarcIdx = marcIdx,
SaveDate = saveDate,
User = user,
BookName = bookName,
Author = author,
Publisher = publisher,
Price = price,
OriginalMarc = dbMarc,
};
var defMarc = PUB.MakeEmptyMarc(isbn13, bookName, author, publisher, price);
marcEditorControl1.LoadBookData(dbMarc, isbn13, defMarc);
//등급선택 (dbMarc 데이터를 확인하여. 등급을 결정한다)
int gradeNo;
bool check_Marc = dbMarc.Length >= 3;
if (!check_Marc)
{
//richTextBox1.Text = Make_Empty();
gradeNo = 3; //마크가 없는것은 D등급으로 한다
}
else
{
etc1.Text = remark.remark1;
etc2.Text = remark.remark2;
//자료의 등급 다시 선택
if (int.TryParse(grade, out gradeNo) == false)
gradeNo = 2;
}
uC_SelectGrade1.Grade = gradeNo;
lbl_SaveData.Text = $"[{user}] [{saveDate}]\n{dr.search_book_name}\n{dr.search_author}\n{dr.search_book_comp}\n{dr.search_description}";
if (dr.search_url.isEmpty())
{
linkLabel1.Enabled = false;
linkLabel1.Text = "ISBN 검색 URL이 존재하지않습니다.";
linkLabel1.Tag = null;
}
else
{
linkLabel1.Text = dr.search_url;
linkLabel1.Tag = dr.search_url;
linkLabel1.Enabled = true;
}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (linkLabel1.Tag == null) return;
var ulr = linkLabel1.Tag.ToString();
System.Diagnostics.Process.Start(ulr);
}
}
}

View File

@@ -39,10 +39,10 @@
System.Windows.Forms.Label label25;
System.Windows.Forms.Label label26;
System.Windows.Forms.Label label27;
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = 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 dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc2));
this.List_Book = new System.Windows.Forms.DataGridView();
this.list_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -79,15 +79,10 @@
this.lbl_BookDate = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.bn1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel();
this.lbListIdx = new System.Windows.Forms.ToolStripLabel();
@@ -96,18 +91,22 @@
this.etc1 = new System.Windows.Forms.RichTextBox();
this.etc2 = new System.Windows.Forms.RichTextBox();
this.panel6 = new System.Windows.Forms.Panel();
this.radD = new System.Windows.Forms.RadioButton();
this.radC = new System.Windows.Forms.RadioButton();
this.radB = new System.Windows.Forms.RadioButton();
this.radA = new System.Windows.Forms.RadioButton();
this.lbl_SaveData = new System.Windows.Forms.TextBox();
this.button2 = new System.Windows.Forms.Button();
this.btNext = new System.Windows.Forms.Button();
this.btPrev = new System.Windows.Forms.Button();
this.btn_Save = new System.Windows.Forms.Button();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.btCopy = new System.Windows.Forms.Button();
this.btn_FillBlank = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.btPrev = new System.Windows.Forms.Button();
this.btNext = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.lbl_SaveData = new System.Windows.Forms.TextBox();
this.btn_Save = new System.Windows.Forms.Button();
this.marcEditorControl1 = new UniMarc.MarcEditorControl();
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.uC_SelectGrade1 = new UniMarc.UC_SelectGrade();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
label31 = new System.Windows.Forms.Label();
label30 = new System.Windows.Forms.Label();
label33 = new System.Windows.Forms.Label();
@@ -124,10 +123,11 @@
this.panel4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bn1)).BeginInit();
this.bn1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).BeginInit();
this.panel5.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.panel6.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).BeginInit();
this.SuspendLayout();
//
// label31
@@ -207,14 +207,14 @@
this.List_Book.AllowUserToDeleteRows = false;
this.List_Book.BackgroundColor = System.Drawing.Color.SkyBlue;
this.List_Book.BorderStyle = System.Windows.Forms.BorderStyle.None;
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.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle29.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle29;
this.List_Book.ColumnHeadersHeight = 29;
this.List_Book.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.list_idx,
@@ -238,14 +238,14 @@
this.List_Book.MultiSelect = false;
this.List_Book.Name = "List_Book";
this.List_Book.ReadOnly = true;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.ControlDark;
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.ControlDark;
dataGridViewCellStyle32.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle32.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.List_Book.RowHeadersDefaultCellStyle = dataGridViewCellStyle32;
this.List_Book.RowHeadersWidth = 51;
this.List_Book.RowTemplate.Height = 23;
this.List_Book.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
@@ -371,8 +371,8 @@
// colCheck
//
this.colCheck.DataPropertyName = "ColCheck";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle2;
dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.colCheck.DefaultCellStyle = dataGridViewCellStyle30;
this.colCheck.HeaderText = "V";
this.colCheck.MinimumWidth = 6;
this.colCheck.Name = "colCheck";
@@ -403,9 +403,9 @@
// grade
//
this.grade.DataPropertyName = "Grade";
dataGridViewCellStyle3.Format = "N0";
dataGridViewCellStyle3.NullValue = null;
this.grade.DefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle31.Format = "N0";
dataGridViewCellStyle31.NullValue = null;
this.grade.DefaultCellStyle = dataGridViewCellStyle31;
this.grade.HeaderText = "등급";
this.grade.MinimumWidth = 6;
this.grade.Name = "grade";
@@ -653,24 +653,6 @@
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
@@ -680,6 +662,7 @@
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
@@ -690,24 +673,6 @@
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 27);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
@@ -731,7 +696,7 @@
this.panel5.Controls.Add(this.tableLayoutPanel1);
this.panel5.Controls.Add(this.panel6);
this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
this.panel5.Location = new System.Drawing.Point(1372, 0);
this.panel5.Location = new System.Drawing.Point(1585, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(266, 658);
this.panel5.TabIndex = 326;
@@ -761,6 +726,7 @@
this.etc1.Size = new System.Drawing.Size(260, 169);
this.etc1.TabIndex = 32;
this.etc1.Text = "Remark1";
this.etc1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc1_KeyDown);
//
// etc2
//
@@ -772,20 +738,16 @@
this.etc2.Size = new System.Drawing.Size(260, 169);
this.etc2.TabIndex = 32;
this.etc2.Text = "Remark2";
this.etc2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc1_KeyDown);
//
// panel6
//
this.panel6.Controls.Add(this.radD);
this.panel6.Controls.Add(this.radC);
this.panel6.Controls.Add(this.radB);
this.panel6.Controls.Add(this.radA);
this.panel6.Controls.Add(this.linkLabel1);
this.panel6.Controls.Add(this.uC_SelectGrade1);
this.panel6.Controls.Add(this.tableLayoutPanel2);
this.panel6.Controls.Add(this.button3);
this.panel6.Controls.Add(this.lbl_SaveData);
this.panel6.Controls.Add(this.button2);
this.panel6.Controls.Add(this.btNext);
this.panel6.Controls.Add(this.btPrev);
this.panel6.Controls.Add(this.btn_Save);
this.panel6.Controls.Add(this.btn_FillBlank);
this.panel6.Controls.Add(this.label6);
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Location = new System.Drawing.Point(0, 0);
this.panel6.Name = "panel6";
@@ -793,99 +755,93 @@
this.panel6.TabIndex = 1;
this.panel6.Paint += new System.Windows.Forms.PaintEventHandler(this.panel6_Paint);
//
// radD
// tableLayoutPanel2
//
this.radD.AutoSize = true;
this.radD.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radD.Location = new System.Drawing.Point(194, 12);
this.radD.Name = "radD";
this.radD.Size = new System.Drawing.Size(42, 27);
this.radD.TabIndex = 323;
this.radD.TabStop = true;
this.radD.Text = "D";
this.radD.UseVisualStyleBackColor = true;
this.tableLayoutPanel2.ColumnCount = 2;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Controls.Add(this.btCopy, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.btn_FillBlank, 1, 0);
this.tableLayoutPanel2.Controls.Add(this.btPrev, 0, 1);
this.tableLayoutPanel2.Controls.Add(this.btNext, 1, 1);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 215);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(266, 93);
this.tableLayoutPanel2.TabIndex = 406;
//
// radC
// btCopy
//
this.radC.AutoSize = true;
this.radC.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radC.Location = new System.Drawing.Point(147, 12);
this.radC.Name = "radC";
this.radC.Size = new System.Drawing.Size(41, 27);
this.radC.TabIndex = 322;
this.radC.TabStop = true;
this.radC.Text = "C";
this.radC.UseVisualStyleBackColor = true;
this.btCopy.Dock = System.Windows.Forms.DockStyle.Fill;
this.btCopy.Location = new System.Drawing.Point(3, 3);
this.btCopy.Name = "btCopy";
this.btCopy.Size = new System.Drawing.Size(127, 40);
this.btCopy.TabIndex = 231;
this.btCopy.Text = "유사본";
this.btCopy.UseVisualStyleBackColor = true;
this.btCopy.Click += new System.EventHandler(this.button2_Click);
//
// radB
// btn_FillBlank
//
this.radB.AutoSize = true;
this.radB.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radB.Location = new System.Drawing.Point(100, 12);
this.radB.Name = "radB";
this.radB.Size = new System.Drawing.Size(41, 27);
this.radB.TabIndex = 321;
this.radB.TabStop = true;
this.radB.Text = "B";
this.radB.UseVisualStyleBackColor = true;
//
// radA
//
this.radA.AutoSize = true;
this.radA.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radA.Location = new System.Drawing.Point(53, 12);
this.radA.Name = "radA";
this.radA.Size = new System.Drawing.Size(41, 27);
this.radA.TabIndex = 320;
this.radA.TabStop = true;
this.radA.Text = "A";
this.radA.UseVisualStyleBackColor = true;
//
// lbl_SaveData
//
this.lbl_SaveData.BackColor = System.Drawing.Color.SkyBlue;
this.lbl_SaveData.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_SaveData.ForeColor = System.Drawing.Color.PaleTurquoise;
this.lbl_SaveData.Location = new System.Drawing.Point(11, 49);
this.lbl_SaveData.Multiline = true;
this.lbl_SaveData.Name = "lbl_SaveData";
this.lbl_SaveData.Size = new System.Drawing.Size(241, 123);
this.lbl_SaveData.TabIndex = 319;
this.lbl_SaveData.Text = "[] []";
//
// button2
//
this.button2.Location = new System.Drawing.Point(11, 230);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(110, 33);
this.button2.TabIndex = 231;
this.button2.Text = "유사본";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// btNext
//
this.btNext.Location = new System.Drawing.Point(147, 269);
this.btNext.Name = "btNext";
this.btNext.Size = new System.Drawing.Size(107, 33);
this.btNext.TabIndex = 230;
this.btNext.Text = "다 음(F8)";
this.btNext.UseVisualStyleBackColor = true;
this.btNext.Click += new System.EventHandler(this.btNext_Click);
this.btn_FillBlank.Dock = System.Windows.Forms.DockStyle.Fill;
this.btn_FillBlank.Location = new System.Drawing.Point(136, 3);
this.btn_FillBlank.Name = "btn_FillBlank";
this.btn_FillBlank.Size = new System.Drawing.Size(127, 40);
this.btn_FillBlank.TabIndex = 228;
this.btn_FillBlank.Text = "미소장 마크 코리스\r\n칸채우기";
this.btn_FillBlank.UseVisualStyleBackColor = true;
this.btn_FillBlank.Click += new System.EventHandler(this.btn_FillBlank_Click);
//
// btPrev
//
this.btPrev.Location = new System.Drawing.Point(11, 269);
this.btPrev.Dock = System.Windows.Forms.DockStyle.Fill;
this.btPrev.Location = new System.Drawing.Point(3, 49);
this.btPrev.Name = "btPrev";
this.btPrev.Size = new System.Drawing.Size(110, 33);
this.btPrev.Size = new System.Drawing.Size(127, 41);
this.btPrev.TabIndex = 229;
this.btPrev.Text = "이 전(F7)";
this.btPrev.UseVisualStyleBackColor = true;
this.btPrev.Click += new System.EventHandler(this.btPrev_Click);
//
// btNext
//
this.btNext.Dock = System.Windows.Forms.DockStyle.Fill;
this.btNext.Location = new System.Drawing.Point(136, 49);
this.btNext.Name = "btNext";
this.btNext.Size = new System.Drawing.Size(127, 41);
this.btNext.TabIndex = 230;
this.btNext.Text = "다 음(F8)";
this.btNext.UseVisualStyleBackColor = true;
this.btNext.Click += new System.EventHandler(this.btNext_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(147, 6);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(107, 33);
this.button3.TabIndex = 405;
this.button3.Text = "닫기";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// lbl_SaveData
//
this.lbl_SaveData.BackColor = System.Drawing.Color.SkyBlue;
this.lbl_SaveData.Font = new System.Drawing.Font("굴림체", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_SaveData.ForeColor = System.Drawing.Color.Black;
this.lbl_SaveData.Location = new System.Drawing.Point(13, 78);
this.lbl_SaveData.Multiline = true;
this.lbl_SaveData.Name = "lbl_SaveData";
this.lbl_SaveData.Size = new System.Drawing.Size(241, 114);
this.lbl_SaveData.TabIndex = 319;
this.lbl_SaveData.Text = "[] []";
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(147, 230);
this.btn_Save.Location = new System.Drawing.Point(11, 6);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(107, 33);
this.btn_Save.TabIndex = 215;
@@ -893,26 +849,6 @@
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_FillBlank
//
this.btn_FillBlank.Location = new System.Drawing.Point(11, 178);
this.btn_FillBlank.Name = "btn_FillBlank";
this.btn_FillBlank.Size = new System.Drawing.Size(243, 46);
this.btn_FillBlank.TabIndex = 228;
this.btn_FillBlank.Text = "미소장 마크 코리스\r\n칸채우기";
this.btn_FillBlank.UseVisualStyleBackColor = true;
this.btn_FillBlank.Click += new System.EventHandler(this.btn_FillBlank_Click);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label6.Location = new System.Drawing.Point(12, 22);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(31, 12);
this.label6.TabIndex = 223;
this.label6.Text = "등급";
//
// marcEditorControl1
//
this.marcEditorControl1.BackColor = System.Drawing.Color.Gray;
@@ -920,15 +856,76 @@
this.marcEditorControl1.Font = new System.Drawing.Font("돋움", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.marcEditorControl1.Location = new System.Drawing.Point(555, 0);
this.marcEditorControl1.Name = "marcEditorControl1";
this.marcEditorControl1.Size = new System.Drawing.Size(817, 658);
this.marcEditorControl1.Size = new System.Drawing.Size(1030, 658);
this.marcEditorControl1.TabIndex = 0;
//
// bs1
//
this.bs1.CurrentChanged += new System.EventHandler(this.bs1_CurrentChanged);
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// uC_SelectGrade1
//
this.uC_SelectGrade1.BackColor = System.Drawing.Color.White;
this.uC_SelectGrade1.Grade = -1;
this.uC_SelectGrade1.GradeName = "";
this.uC_SelectGrade1.Location = new System.Drawing.Point(13, 45);
this.uC_SelectGrade1.Name = "uC_SelectGrade1";
this.uC_SelectGrade1.Size = new System.Drawing.Size(241, 28);
this.uC_SelectGrade1.TabIndex = 407;
//
// linkLabel1
//
this.linkLabel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.linkLabel1.Location = new System.Drawing.Point(0, 201);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(266, 14);
this.linkLabel1.TabIndex = 408;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "search url";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// Marc2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.SkyBlue;
this.ClientSize = new System.Drawing.Size(1638, 658);
this.ClientSize = new System.Drawing.Size(1851, 658);
this.Controls.Add(this.marcEditorControl1);
this.Controls.Add(this.panel5);
this.Controls.Add(this.panel3);
@@ -946,11 +943,12 @@
((System.ComponentModel.ISupportInitialize)(this.bn1)).EndInit();
this.bn1.ResumeLayout(false);
this.bn1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit();
this.panel5.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
this.tableLayoutPanel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit();
this.ResumeLayout(false);
}
@@ -1013,16 +1011,15 @@
public System.Windows.Forms.RichTextBox etc1;
public System.Windows.Forms.RichTextBox etc2;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button btCopy;
private System.Windows.Forms.Button btNext;
private System.Windows.Forms.Button btPrev;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.Button btn_FillBlank;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox lbl_SaveData;
private System.Windows.Forms.RadioButton radA;
private System.Windows.Forms.RadioButton radC;
private System.Windows.Forms.RadioButton radB;
private System.Windows.Forms.RadioButton radD;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private UC_SelectGrade uC_SelectGrade1;
private System.Windows.Forms.LinkLabel linkLabel1;
}
}

View File

@@ -195,6 +195,9 @@
<metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>218, 13</value>
</metadata>
<metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>218, 13</value>
</metadata>
<metadata name="bs1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>108, 13</value>
</metadata>

View File

@@ -44,6 +44,12 @@ namespace UniMarc
public string User { get; set; }
public string SaveDate { get; set; }
public string search_book_name { get; set; }
public string search_author { get; set; }
public string search_book_comp { get; set; }
public string search_description { get; set; }
public string search_url { get; set; }
public System.Drawing.Color ForeColor { get; set; } = System.Drawing.Color.Black;
public System.Drawing.Color BackColor { get; set; } = System.Drawing.Color.White;

View File

@@ -0,0 +1,44 @@
using System;
namespace UniMarc
{
public class MarcCopyItem
{
public string idx { get; set; }
public string compidx { get; set; }
public string ISBN { get; set; }
public string Title { get; set; }
public string Author { get; set; }
public string Comp { get; set; }
public string User { get; set; }
public string Date { get; set; }
public string Grade { get; set; }
public string Tag008 { get; set; }
public string Marc { get; set; } // Calculated real MARC
// Raw MARC segments from DB
public string marc_db { get; set; }
public string marc_chk { get; set; }
public string marc1 { get; set; }
public string marc_chk1 { get; set; }
public string marc2 { get; set; }
public string marc_chk2 { get; set; }
public string remark1 { get; set; }
public string remark2 { get; set; }
public string DisplayGrade
{
get
{
switch (Grade)
{
case "0": return "A";
case "1": return "B";
case "2": return "C";
case "3": return "D";
default: return Grade;
}
}
}
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -450,11 +451,11 @@ namespace UniMarc
if (SelectAry[0] != compidx)
{
MessageBox.Show("해당 마크를 삭제할 권한이 없습니다.", "삭제");
UTIL.MsgE("해당 마크를 삭제할 권한이 없습니다.");
return;
}
if (MessageBox.Show("삭제하시겠습니까?", "삭제!", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
if (UTIL.MsgQ("삭제하시겠습니까?") == DialogResult.Cancel)
return;
string[] InsertCol = {

View File

@@ -29,7 +29,9 @@ namespace UniMarc
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MarcCopySelect2));
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.panel1 = new System.Windows.Forms.Panel();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
@@ -40,12 +42,30 @@ namespace UniMarc
this.btn_Close = new System.Windows.Forms.Button();
this.btn_Delete = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.rtEtc1 = new System.Windows.Forms.RichTextBox();
this.rtEtc2 = new System.Windows.Forms.RichTextBox();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit();
this.bindingNavigator1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).BeginInit();
this.panel3.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// dataGridView1
@@ -53,21 +73,21 @@ namespace UniMarc
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
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.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1109, 106);
this.dataGridView1.Size = new System.Drawing.Size(1293, 210);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
@@ -86,7 +106,7 @@ namespace UniMarc
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(1109, 33);
this.panel1.Size = new System.Drawing.Size(1293, 33);
this.panel1.TabIndex = 1;
//
// progressBar1
@@ -119,7 +139,8 @@ namespace UniMarc
this.cb_SearchFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_SearchFilter.FormattingEnabled = true;
this.cb_SearchFilter.Items.AddRange(new object[] {
"도서명",
"ISBN",
"서명",
"저자",
"출판사"});
this.cb_SearchFilter.Location = new System.Drawing.Point(11, 5);
@@ -160,12 +181,110 @@ namespace UniMarc
// panel2
//
this.panel2.Controls.Add(this.dataGridView1);
this.panel2.Controls.Add(this.bindingNavigator1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 33);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1109, 106);
this.panel2.Size = new System.Drawing.Size(1293, 237);
this.panel2.TabIndex = 2;
//
// bindingNavigator1
//
this.bindingNavigator1.AddNewItem = null;
this.bindingNavigator1.BindingSource = this.bs1;
this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem;
this.bindingNavigator1.DeleteItem = null;
this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bindingNavigator1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
this.bindingNavigatorMovePreviousItem,
this.bindingNavigatorSeparator,
this.bindingNavigatorPositionItem,
this.bindingNavigatorCountItem,
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2});
this.bindingNavigator1.Location = new System.Drawing.Point(0, 210);
this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bindingNavigator1.Name = "bindingNavigator1";
this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem;
this.bindingNavigator1.Size = new System.Drawing.Size(1293, 27);
this.bindingNavigator1.TabIndex = 4;
this.bindingNavigator1.Text = "bindingNavigator1";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 24);
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveFirstItem.Text = "처음으로 이동";
//
// bindingNavigatorMovePreviousItem
//
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMovePreviousItem.Text = "이전으로 이동";
//
// bindingNavigatorSeparator
//
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 27);
//
// bindingNavigatorPositionItem
//
this.bindingNavigatorPositionItem.AccessibleName = "위치";
this.bindingNavigatorPositionItem.AutoSize = false;
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
this.bindingNavigatorPositionItem.Text = "0";
this.bindingNavigatorPositionItem.ToolTipText = "현재 위치";
//
// bindingNavigatorSeparator1
//
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 27);
//
// bindingNavigatorMoveNextItem
//
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveNextItem.Text = "다음으로 이동";
//
// bindingNavigatorMoveLastItem
//
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(24, 24);
this.bindingNavigatorMoveLastItem.Text = "마지막으로 이동";
//
// bindingNavigatorSeparator2
//
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 27);
//
// richTextBox1
//
this.richTextBox1.BackColor = System.Drawing.Color.LightGray;
@@ -174,34 +293,78 @@ namespace UniMarc
this.richTextBox1.Font = new System.Drawing.Font("굴림체", 11.25F);
this.richTextBox1.Location = new System.Drawing.Point(0, 0);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(1109, 540);
this.richTextBox1.Size = new System.Drawing.Size(1050, 528);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
//
// panel3
//
this.panel3.Controls.Add(this.richTextBox1);
this.panel3.Controls.Add(this.tableLayoutPanel1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 139);
this.panel3.Location = new System.Drawing.Point(0, 270);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(1109, 540);
this.panel3.Size = new System.Drawing.Size(1293, 528);
this.panel3.TabIndex = 3;
//
// MarcCopySelect
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.rtEtc1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.rtEtc2, 0, 1);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Right;
this.tableLayoutPanel1.Location = new System.Drawing.Point(1050, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(243, 528);
this.tableLayoutPanel1.TabIndex = 1;
//
// rtEtc1
//
this.rtEtc1.BackColor = System.Drawing.SystemColors.ScrollBar;
this.rtEtc1.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtEtc1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.rtEtc1.Location = new System.Drawing.Point(3, 3);
this.rtEtc1.Name = "rtEtc1";
this.rtEtc1.Size = new System.Drawing.Size(237, 258);
this.rtEtc1.TabIndex = 32;
this.rtEtc1.Text = "Remark1";
//
// rtEtc2
//
this.rtEtc2.BackColor = System.Drawing.SystemColors.ScrollBar;
this.rtEtc2.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtEtc2.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.rtEtc2.Location = new System.Drawing.Point(3, 267);
this.rtEtc2.Name = "rtEtc2";
this.rtEtc2.Size = new System.Drawing.Size(237, 258);
this.rtEtc2.TabIndex = 32;
this.rtEtc2.Text = "Remark2";
//
// MarcCopySelect2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1109, 679);
this.ClientSize = new System.Drawing.Size(1293, 798);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "MarcCopySelect";
this.Name = "MarcCopySelect2";
this.Text = "마크 선택";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit();
this.bindingNavigator1.ResumeLayout(false);
this.bindingNavigator1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.bs1)).EndInit();
this.panel3.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -220,5 +383,19 @@ namespace UniMarc
private System.Windows.Forms.Button btn_Search;
private System.Windows.Forms.TextBox tb_SearchBox;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.BindingNavigator bindingNavigator1;
private System.Windows.Forms.BindingSource bs1;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
public System.Windows.Forms.RichTextBox rtEtc1;
public System.Windows.Forms.RichTextBox rtEtc2;
}
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -14,28 +15,35 @@ namespace UniMarc
public partial class MarcCopySelect2 : Form
{
Helper_DB db = new Helper_DB();
Marc2 m2;
AddMarc2 am2;
MarcBookItem item;
SortableBindingList<MarcCopyItem> _list = new SortableBindingList<MarcCopyItem>();
public MarcCopySelect2()
public MarcCopyItem SelectedItem { get; private set; }
public MarcCopySelect2(string search_col, string search_Target)
{
InitializeComponent();
}
public MarcCopySelect2(AddMarc2 cD)
{
InitializeComponent();
am2 = cD;
db.DBcon();
}
public MarcCopySelect2(Marc2 _m,MarcBookItem _item)
{
InitializeComponent();
m2 = _m;
this.item = _item;
db.DBcon();
// Lowercase mapping for common inputs from Marc2.cs or AddMarc2.cs
string normalizedCol = search_col;
if (search_col != null && search_col.ToLower() == "isbn") normalizedCol = "ISBN";
else if (search_col == "도서명") normalizedCol = "서명";
cb_SearchFilter.Text = normalizedCol;
if (cb_SearchFilter.SelectedIndex < 0)
cb_SearchFilter.SelectedIndex = 0;
tb_SearchBox.Text = search_Target;
SettingGrid_Book();
bs1.DataSource = _list;
dataGridView1.DataSource = bs1;
dataGridView1.CellFormatting += dataGridView1_CellFormatting;
if (!string.IsNullOrEmpty(search_Target))
btn_Search_Click(null, null);
}
private void tb_SearchBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
@@ -46,216 +54,140 @@ namespace UniMarc
{
if (cb_SearchFilter.SelectedIndex < 0) return;
dataGridView1.Rows.Clear();
richTextBox1.Text = "";
string search_Col = "";
string search_Target = tb_SearchBox.Text;
switch (cb_SearchFilter.SelectedIndex)
{
case 0:
search_Col = "ISBN";
break;
case 1:
search_Col = "서명";
break;
case 2:
search_Col = "저자";
break;
case 3:
search_Col = "출판사";
break;
}
Init(search_Col, search_Target);
}
var search_Target = tb_SearchBox.Text.Trim();
var search_col = cb_SearchFilter.Text.Trim();
public void Init(string search_col, string search_Target, string CD_LP)
{
SettingGrid_CDLP();
btn_ShowDeleteMarc.Visible = false;
btn_Delete.Visible = false;
if (search_Target == "") return;
string Area = "`idx`, `Code`, `user`, `date`, `Marc`";
string Table = "DVD_Marc";
string Query = string.Format("SELECT {0} FROM {1} WHERE `{2}` = \"{3}\"", Area, Table, search_col, search_Target);
string Result = db.DB_Send_CMD_Search(Query);
string[] GridData = Result.Split('|');
InputGrid_CDLP(GridData);
}
private void SettingGrid_CDLP()
{
DataGridView dgv = dataGridView1;
dgv.Columns.Add("idx", "idx");
dgv.Columns.Add("code", "CODE");
dgv.Columns.Add("user", "수정자");
dgv.Columns.Add("date", "수정시각");
dgv.Columns.Add("marc", "Marc");
dgv.Columns["idx"].Visible = false;
dgv.Columns["user"].Width = 120;
dgv.Columns["date"].Width = 120;
dgv.Columns["marc"].Width = 300;
}
private void InputGrid_CDLP(string[] Value)
{
progressBar1.Value = 0;
progressBar1.Maximum = Value.Length / 5;
string[] Grid = { "", "", "", "", "" };
for (int a = 0; a < Value.Length; a++)
{
if (a % 5 == 0) Grid[0] = Value[a]; // idx
if (a % 5 == 1) Grid[1] = Value[a]; // CODE
if (a % 5 == 2) Grid[2] = Value[a]; // user
if (a % 5 == 3) Grid[3] = Value[a]; // date
if (a % 5 == 4)
{
Grid[4] = Value[a]; // marc
dataGridView1.Rows.Add(Grid);
progressBar1.Value += 1;
}
}
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
string savedate = dataGridView1.Rows[a].Cells["date"].Value.ToString();
SaveDataCheck(savedate, a);
}
}
public void Init(string search_col, string search_Target)
{
SettingGrid_Book();
if (search_Target == "") return;
// 0 1 2 3 4
string Area = "`idx`, `compidx`, `ISBN`, `서명`, `저자`, " +
string Area = "`idx`, `compidx`, `ISBN`, `서명` AS Title, `저자` AS Author, " +
// 5 6 7 8 9
"`출판사`, `user`, `date`, `grade`, `008tag`, " +
"`출판사` AS Comp, `user`, `date`, `grade`, `008tag`, " +
// 10 11 12 13 14 15
"`marc`, `marc_chk`, `marc1`, `marc_chk1`, `marc2`, `marc_chk2`";
"`marc` AS marc_db, `marc_chk`, `marc1`, `marc_chk1`, `marc2`, `marc_chk2`, `비고1` as remark1, `비고2` as remark2";
string Table = "Marc";
string Query = string.Format("SELECT {0} FROM {1} WHERE `{2}` like \"%{3}%\";", Area, Table, search_col, search_Target);
string Result = db.DB_Send_CMD_Search(Query);
string[] GridData = Result.Split('|');
DataTable dt = db.DB_Send_CMD_Search_DataTable(Query);
InputGrid(GridData);
InputGrid(dt);
}
private void SettingGrid_Book()
{
DataGridView dgv = dataGridView1;
dgv.Columns.Add("idx", "idx");
dgv.Columns.Add("compidx", "compidx");
dgv.Columns.Add("isbn", "ISBN");
dgv.Columns.Add("Title", "서명");
dgv.Columns.Add("Author", "저자");
dgv.Columns.Add("Comp", "출판사");
dgv.Columns.Add("user", "수정자");
dgv.Columns.Add("date", "수정시각");
dgv.Columns.Add("grade", "등급");
dgv.Columns.Add("tag008", "008Tag");
dgv.Columns.Add("marc", "Marc");
dgv.AutoGenerateColumns = false;
dgv.Columns.Clear();
dgv.Columns["idx"].Visible = false;
dgv.Columns["compidx"].Visible = false;
dgv.Columns["user"].Width = 120;
dgv.Columns["date"].Width = 120;
dgv.Columns["grade"].Width = 60;
dgv.Columns["tag008"].Width = 150;
dgv.Columns["marc"].Width = 200;
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "idx", HeaderText = "idx", Name = "idx", Visible = false });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "compidx", HeaderText = "compidx", Name = "compidx", Visible = false });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "ISBN", HeaderText = "ISBN", Name = "isbn", Width = 100 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "Title", HeaderText = "서명", Name = "Title", Width = 200 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "Author", HeaderText = "저자", Name = "Author", Width = 150 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "Comp", HeaderText = "출판사", Name = "Comp", Width = 150 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "User", HeaderText = "수정자", Name = "user", Width = 120 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "Date", HeaderText = "수정시각", Name = "date", Width = 150 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "DisplayGrade", HeaderText = "등급", Name = "grade", Width = 60 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "Tag008", HeaderText = "008Tag", Name = "tag008", Width = 150 });
dgv.Columns.Add(new DataGridViewTextBoxColumn { DataPropertyName = "Marc", HeaderText = "Marc", Name = "marc", Width = 200 });
}
private void InputGrid(string[] Value)
private void InputGrid(DataTable dt)
{
_list.Clear();
if (dt == null || dt.Rows.Count == 0) return;
progressBar1.Value = 0;
progressBar1.Maximum = Value.Length / 16;
progressBar1.Maximum = dt.Rows.Count;
string[] Grid = {
"", "", "", "", "",
"", "", "", "", "",
"" };
string[] MarcData = { "", "", "", "", "", "" };
for (int a = 0; a < Value.Length; a++)
foreach (DataRow row in dt.Rows)
{
if (a % 16 == 0) Grid[0] = Value[a]; // idx
if (a % 16 == 1) Grid[1] = Value[a]; // compidx
if (a % 16 == 2) Grid[2] = Value[a]; // isbn
if (a % 16 == 3) Grid[3] = Value[a]; // 서명
if (a % 16 == 4) Grid[4] = Value[a]; // 저자
if (a % 16 == 5) Grid[5] = Value[a]; // 출판사
if (a % 16 == 6) Grid[6] = Value[a]; // user
if (a % 16 == 7) Grid[7] = Value[a]; // date
if (a % 16 == 8) Grid[8] = ChangeGrade(Value[a]); // grade
if (a % 16 == 9) Grid[9] = Value[a]; // 008tag
if (a % 16 == 10) MarcData[0] = Value[a]; // marc
if (a % 16 == 11) MarcData[1] = Value[a]; // marc_chk
if (a % 16 == 12) MarcData[2] = Value[a]; // marc1
if (a % 16 == 13) MarcData[3] = Value[a]; // marc_chk1
if (a % 16 == 14) MarcData[4] = Value[a]; // marc2
if (a % 16 == 15) { MarcData[5] = Value[a]; // marc_chk2
Grid[10] = RealMarc(MarcData);
dataGridView1.Rows.Add(Grid);
var item = new MarcCopyItem
{
idx = row["idx"].ToString(),
compidx = row["compidx"].ToString(),
ISBN = row["ISBN"].ToString(),
Title = row["Title"].ToString(),
Author = row["Author"].ToString(),
Comp = row["Comp"].ToString(),
User = row["user"].ToString(),
Date = row["date"].ToString(),
Grade = row["grade"].ToString(),
Tag008 = row["008tag"].ToString(),
marc_db = row["marc_db"].ToString(),
marc_chk = row["marc_chk"].ToString(),
marc1 = row["marc1"].ToString(),
marc_chk1 = row["marc_chk1"].ToString(),
marc2 = row["marc2"].ToString(),
marc_chk2 = row["marc_chk2"].ToString(),
remark1 = row["remark1"].ToString(),
remark2 = row["remark2"].ToString(),
};
// Calculate real Marc based on check flags
item.Marc = CalculateRealMarc(item);
// For other company data, replace User with company name
if (item.compidx != PUB.user.CompanyIdx)
{
string FindCompCmd = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", item.compidx);
item.User = db.DB_Send_CMD_Search(FindCompCmd).Replace("|", "");
}
_list.Add(item);
if (progressBar1.Value < progressBar1.Maximum)
progressBar1.Value += 1;
}
}
for (int a = 0; a < dataGridView1.Rows.Count; a++)
private string CalculateRealMarc(MarcCopyItem item)
{
string compidx = dataGridView1.Rows[a].Cells["compidx"].Value.ToString();
string grade = dataGridView1.Rows[a].Cells["grade"].Value.ToString();
string savedate = dataGridView1.Rows[a].Cells["date"].Value.ToString();
bool isMyData = true;
if (compidx != PUB.user.CompanyIdx) {
isMyData = false;
string FindCompCmd = string.Format("SELECT `comp_name` FROM `Comp` WHERE `idx` = {0}", compidx);
dataGridView1.Rows[a].Cells["user"].Value = db.DB_Send_CMD_Search(FindCompCmd).Replace("|", "");
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
if (item.marc_chk == "1") return item.marc_db;
if (item.marc_chk1 == "1") return item.marc1;
if (item.marc_chk2 == "1") return item.marc2;
return "";
}
dataGridView1.Rows[a].DefaultCellStyle.ForeColor = SetGradeColor(grade, isMyData);
SaveDataCheck(savedate, a);
}
}
private string ChangeGrade(string Grade)
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
switch (Grade)
if (e.RowIndex < 0 || e.RowIndex >= dataGridView1.Rows.Count) return;
var item = (MarcCopyItem)dataGridView1.Rows[e.RowIndex].DataBoundItem;
if (item == null) return;
bool isMyData = (item.compidx == PUB.user.CompanyIdx);
// Row background color
if (!isMyData)
{
case "0":
return "A";
case "1":
return "B";
case "2":
return "C";
case "3":
return "D";
dataGridView1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.LightGray;
}
else
{
// Date check for yellow highlight
if (!string.IsNullOrEmpty(item.Date))
{
try
{
DateTime saveDate = DateTime.ParseExact(item.Date, "yyyy-MM-dd HH:mm:ss",
System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None);
DateTime targetDate = DateTime.Today.AddDays(-14);
case "A":
return "0";
case "B":
return "1";
case "C":
return "2";
case "D":
return "3";
default:
return "D";
if (DateTime.Compare(saveDate, targetDate) >= 0)
dataGridView1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Yellow;
else
dataGridView1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White;
}
catch { dataGridView1.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White; }
}
}
// Grade color
dataGridView1.Rows[e.RowIndex].DefaultCellStyle.ForeColor = SetGradeColor(item.DisplayGrade, isMyData);
}
private Color SetGradeColor(string Grade, bool isMyData = true)
{
if (!isMyData)
@@ -277,36 +209,6 @@ namespace UniMarc
}
}
private void SaveDataCheck(string Date, int row)
{
DateTime SaveDate = DateTime.ParseExact(Date, "yyyy-MM-dd HH:mm:ss",
System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None);
DateTime TargetDate = DateTime.Today.AddDays(-14);
int result = DateTime.Compare(SaveDate, TargetDate);
if (result >= 0) // SaveDate가 같거나 큼
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.Yellow;
else // TargetDate가 큼
dataGridView1.Rows[row].DefaultCellStyle.BackColor = Color.White;
}
private string RealMarc(string[] MarcData)
{
string result = "";
if (MarcData[1] == "1")
result = MarcData[0];
if (MarcData[3] == "1")
result = MarcData[2];
if (MarcData[5] == "1")
result = MarcData[4];
return result;
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
String_Text st = new String_Text();
@@ -320,15 +222,18 @@ namespace UniMarc
st.Color_change("▲", richTextBox1);
}
/// <summary>
/// 마크데이터가 있는지 확인하고 메모장으로 출력
/// </summary>
/// <param name="row">해당 데이터의 row값</param>
/// <returns></returns>
void view_Marc(int row)
{
// 마크 데이터
string Marc_data = dataGridView1.Rows[row].Cells["marc"].Value.ToString();
this.rtEtc1.Text = string.Empty;
this.rtEtc2.Text = string.Empty;
var item = (MarcCopyItem)dataGridView1.Rows[row].DataBoundItem;
if (item == null || string.IsNullOrEmpty(item.Marc)) return;
rtEtc1.Text = item.remark1;
rtEtc2.Text = item.remark2;
string Marc_data = item.Marc;
if (Marc_data.Length < 3) return;
@@ -341,7 +246,6 @@ namespace UniMarc
Marc_data = Marc_data.Replace("", "▼");
Marc_data = Marc_data.Replace("", "▲");
Marc_data = Marc_data.Replace("₩", "\\");
// string leader = Marc_data.Substring(0, 24);
int startidx = 0;
string[] data = Marc_data.Substring(24).Split('▲'); // 리더부를 제외한 디렉터리, 가변길이필드 저장
@@ -381,29 +285,11 @@ namespace UniMarc
void SelectMarc(int row)
{
string[] GridData = {
dataGridView1.Rows[row].Cells["idx"].Value.ToString(),
dataGridView1.Rows[row].Cells["compidx"].Value.ToString(),
dataGridView1.Rows[row].Cells["user"].Value.ToString(),
ChangeGrade(dataGridView1.Rows[row].Cells["grade"].Value.ToString()),
dataGridView1.Rows[row].Cells["date"].Value.ToString(),
dataGridView1.Rows[row].Cells["tag008"].Value.ToString(),
dataGridView1.Rows[row].Cells["marc"].Value.ToString()
};
var item = (MarcCopyItem)dataGridView1.Rows[row].DataBoundItem;
if (item == null) return;
if(m2 != null)
{
m2.SelectMarc_Sub(this.item, GridData);
}
if (am2 != null)
{
string Marc = richTextBox1.Text;
string isbn = dataGridView1.Rows[row].Cells["isbn"].Value.ToString();
am2.SelectMarc_Sub(Marc, isbn, GridData);
}
this.Close();
SelectedItem = item;
this.DialogResult = DialogResult.OK;
}
private void btn_Close_Click(object sender, EventArgs e)
@@ -413,15 +299,26 @@ namespace UniMarc
private void btn_Delete_Click(object sender, EventArgs e)
{
if (dataGridView1.CurrentCell.RowIndex < -1)
if (dataGridView1.CurrentRow == null) return;
int row = dataGridView1.CurrentRow.Index;
if (row < 0) return;
var item = (MarcCopyItem)dataGridView1.Rows[row].DataBoundItem;
if (item == null) return;
string idx = item.idx;
string compidx = item.compidx;
if (compidx != PUB.user.CompanyIdx)
{
UTIL.MsgE("해당 마크를 삭제할 권한이 없습니다.");
return;
}
if (UTIL.MsgQ("삭제하시겠습니까?") == DialogResult.Cancel)
return;
int row = dataGridView1.CurrentCell.RowIndex;
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
string User = PUB.user.UserName;
string compidx = PUB.user.CompanyIdx;
string NowDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string SelectArea = "`compidx`, `grade`, `ISBN`, `서명`, `총서명`, " +
@@ -433,15 +330,6 @@ namespace UniMarc
string SelectRes = db.self_Made_Cmd(SelectCMD);
string[] SelectAry = SelectRes.Split('|');
if (SelectAry[0] != compidx)
{
MessageBox.Show("해당 마크를 삭제할 권한이 없습니다.", "삭제");
return;
}
if (MessageBox.Show("삭제하시겠습니까?", "삭제!", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
return;
string[] InsertCol = {
"compidx", "grade", "ISBN", "서명", "총서명",
"저자", "출판사", "출판년월", "가격", "008tag",
@@ -449,20 +337,11 @@ namespace UniMarc
"date", "user_Del", "marc"
};
string marc = "";
if (SelectAry[16] == "1")
marc = SelectAry[15];
else if (SelectAry[18] == "1")
marc = SelectAry[17];
else if (SelectAry[20] == "1")
marc = SelectAry[19];
string[] InsertData = {
SelectAry[0], SelectAry[1], SelectAry[2], SelectAry[3], SelectAry[4],
SelectAry[5], SelectAry[6], SelectAry[7], SelectAry[8], SelectAry[9],
SelectAry[10], SelectAry[11], SelectAry[12], SelectAry[13], SelectAry[14],
NowDate, User, marc
NowDate, User, item.Marc
};
string InsertCmd = db.DB_INSERT("Marc_Del", InsertCol, InsertData);
@@ -471,7 +350,7 @@ namespace UniMarc
string DeleteCmd = string.Format("DELETE FROM `Marc` WHERE `idx` = {0};", idx);
Helper_DB.ExcuteNonQuery(DeleteCmd);
dataGridView1.Rows.Remove(dataGridView1.Rows[row]);
_list.RemoveAt(_list.IndexOf(item));
}
private void btn_ShowDeleteMarc_Click(object sender, EventArgs e)
@@ -482,13 +361,12 @@ namespace UniMarc
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
if (dataGridView1.CurrentCell.RowIndex < 0)
return;
if (dataGridView1.CurrentRow == null) return;
int row = dataGridView1.CurrentRow.Index;
if (row < 0) return;
int row = dataGridView1.CurrentCell.RowIndex;
SelectMarc(row);
}
}

View File

@@ -117,4 +117,51 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="bindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>195, 22</value>
</metadata>
<metadata name="bs1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>22, 22</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
+8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
+4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
xpHLcBtgkXfnf2r/a6yKDJJO/JdN+/pfN3gehhwcGGbd/h/W8hKnIv3Uy/81fKdhlQMDnbQb//2qH+JV
pOIxAaccg1Pulf8gBXgVDUoAAPB2wKtYlLYeAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
</value>
</data>
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC
</value>
</data>
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6
3AZY5N35b1NwBUMzTC61/zXcS1iBYdZtrJpBACQX1vLyv27wPKzyYKCTdgOnJEjOr/rhfw3faTjV4AVO
uVf+q3hMAGN0uYEFAL7Rv7NmXVYYAAAAAElFTkSuQmCC
</value>
</data>
</root>

View File

@@ -28,14 +28,14 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle71 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle72 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle65 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle66 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle67 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle68 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle69 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle70 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
this.label31 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label();
this.label33 = new System.Windows.Forms.Label();
@@ -349,7 +349,7 @@
this.richTextBox1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.richTextBox1.Location = new System.Drawing.Point(3, 21);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(994, 780);
this.richTextBox1.Size = new System.Drawing.Size(994, 774);
this.richTextBox1.TabIndex = 32;
this.richTextBox1.Text = "";
this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
@@ -357,18 +357,22 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(462, 13);
this.label1.Cursor = System.Windows.Forms.Cursors.Hand;
this.label1.Font = new System.Drawing.Font("돋움", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label1.ForeColor = System.Drawing.Color.Blue;
this.label1.Location = new System.Drawing.Point(454, 11);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(63, 14);
this.label1.Size = new System.Drawing.Size(53, 12);
this.label1.TabIndex = 14;
this.label1.Text = "입력일자";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(641, 14);
this.label2.Location = new System.Drawing.Point(641, 11);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(49, 14);
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 206;
this.label2.Text = "이용자";
//
@@ -376,9 +380,9 @@
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(693, 11);
this.comboBox1.Location = new System.Drawing.Point(693, 7);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(93, 21);
this.comboBox1.Size = new System.Drawing.Size(93, 20);
this.comboBox1.TabIndex = 207;
this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -386,9 +390,9 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(468, 38);
this.label3.Location = new System.Drawing.Point(454, 33);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(63, 14);
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 206;
this.label3.Text = "자료형식";
//
@@ -396,9 +400,9 @@
//
this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Location = new System.Drawing.Point(532, 35);
this.comboBox2.Location = new System.Drawing.Point(510, 29);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(87, 21);
this.comboBox2.Size = new System.Drawing.Size(116, 20);
this.comboBox2.TabIndex = 207;
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -406,9 +410,9 @@
// label98
//
this.label98.AutoSize = true;
this.label98.Location = new System.Drawing.Point(466, 62);
this.label98.Location = new System.Drawing.Point(454, 55);
this.label98.Name = "label98";
this.label98.Size = new System.Drawing.Size(63, 14);
this.label98.Size = new System.Drawing.Size(53, 12);
this.label98.TabIndex = 14;
this.label98.Text = "내용형식";
//
@@ -416,9 +420,9 @@
//
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Location = new System.Drawing.Point(532, 59);
this.comboBox3.Location = new System.Drawing.Point(510, 51);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(118, 21);
this.comboBox3.Size = new System.Drawing.Size(139, 20);
this.comboBox3.TabIndex = 207;
this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox3.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -426,27 +430,27 @@
// label99
//
this.label99.AutoSize = true;
this.label99.Location = new System.Drawing.Point(781, 62);
this.label99.Location = new System.Drawing.Point(781, 55);
this.label99.Name = "label99";
this.label99.Size = new System.Drawing.Size(35, 14);
this.label99.Size = new System.Drawing.Size(29, 12);
this.label99.TabIndex = 206;
this.label99.Text = "대학";
//
// text008col
//
this.text008col.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.text008col.Location = new System.Drawing.Point(819, 58);
this.text008col.Location = new System.Drawing.Point(813, 51);
this.text008col.Name = "text008col";
this.text008col.Size = new System.Drawing.Size(26, 23);
this.text008col.Size = new System.Drawing.Size(26, 21);
this.text008col.TabIndex = 204;
this.text008col.KeyDown += new System.Windows.Forms.KeyEventHandler(this.text008col_KeyDown);
//
// label100
//
this.label100.AutoSize = true;
this.label100.Location = new System.Drawing.Point(627, 39);
this.label100.Location = new System.Drawing.Point(627, 33);
this.label100.Name = "label100";
this.label100.Size = new System.Drawing.Size(63, 14);
this.label100.Size = new System.Drawing.Size(53, 12);
this.label100.TabIndex = 206;
this.label100.Text = "문학형식";
//
@@ -454,9 +458,9 @@
//
this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox4.FormattingEnabled = true;
this.comboBox4.Location = new System.Drawing.Point(693, 36);
this.comboBox4.Location = new System.Drawing.Point(693, 29);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(93, 21);
this.comboBox4.Size = new System.Drawing.Size(93, 20);
this.comboBox4.TabIndex = 207;
this.comboBox4.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox4.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -464,9 +468,9 @@
// label101
//
this.label101.AutoSize = true;
this.label101.Location = new System.Drawing.Point(494, 86);
this.label101.Location = new System.Drawing.Point(478, 77);
this.label101.Name = "label101";
this.label101.Size = new System.Drawing.Size(35, 14);
this.label101.Size = new System.Drawing.Size(29, 12);
this.label101.TabIndex = 206;
this.label101.Text = "전기";
//
@@ -474,9 +478,9 @@
//
this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox5.FormattingEnabled = true;
this.comboBox5.Location = new System.Drawing.Point(532, 83);
this.comboBox5.Location = new System.Drawing.Point(510, 73);
this.comboBox5.Name = "comboBox5";
this.comboBox5.Size = new System.Drawing.Size(97, 21);
this.comboBox5.Size = new System.Drawing.Size(118, 20);
this.comboBox5.TabIndex = 207;
this.comboBox5.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox5.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -484,9 +488,9 @@
// label102
//
this.label102.AutoSize = true;
this.label102.Location = new System.Drawing.Point(636, 86);
this.label102.Location = new System.Drawing.Point(636, 77);
this.label102.Name = "label102";
this.label102.Size = new System.Drawing.Size(35, 14);
this.label102.Size = new System.Drawing.Size(29, 12);
this.label102.TabIndex = 206;
this.label102.Text = "언어";
//
@@ -494,9 +498,9 @@
//
this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox6.FormattingEnabled = true;
this.comboBox6.Location = new System.Drawing.Point(674, 83);
this.comboBox6.Location = new System.Drawing.Point(674, 73);
this.comboBox6.Name = "comboBox6";
this.comboBox6.Size = new System.Drawing.Size(97, 21);
this.comboBox6.Size = new System.Drawing.Size(97, 20);
this.comboBox6.TabIndex = 207;
this.comboBox6.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox6.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -504,18 +508,18 @@
// text008gov
//
this.text008gov.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.text008gov.Location = new System.Drawing.Point(819, 82);
this.text008gov.Location = new System.Drawing.Point(813, 73);
this.text008gov.Name = "text008gov";
this.text008gov.Size = new System.Drawing.Size(26, 23);
this.text008gov.Size = new System.Drawing.Size(26, 21);
this.text008gov.TabIndex = 204;
this.text008gov.KeyDown += new System.Windows.Forms.KeyEventHandler(this.text008col_KeyDown);
//
// label103
//
this.label103.AutoSize = true;
this.label103.Location = new System.Drawing.Point(781, 86);
this.label103.Location = new System.Drawing.Point(781, 77);
this.label103.Name = "label103";
this.label103.Size = new System.Drawing.Size(35, 14);
this.label103.Size = new System.Drawing.Size(29, 12);
this.label103.TabIndex = 206;
this.label103.Text = "기관";
//
@@ -524,9 +528,9 @@
this.col008res.AutoSize = true;
this.col008res.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.col008res.ForeColor = System.Drawing.Color.Blue;
this.col008res.Location = new System.Drawing.Point(850, 62);
this.col008res.Location = new System.Drawing.Point(844, 55);
this.col008res.Name = "col008res";
this.col008res.Size = new System.Drawing.Size(17, 14);
this.col008res.Size = new System.Drawing.Size(13, 12);
this.col008res.TabIndex = 206;
this.col008res.Text = " ";
this.col008res.TextChanged += new System.EventHandler(this.col008res_TextChanged);
@@ -536,9 +540,9 @@
this.gov008res.AutoSize = true;
this.gov008res.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.gov008res.ForeColor = System.Drawing.Color.Blue;
this.gov008res.Location = new System.Drawing.Point(850, 86);
this.gov008res.Location = new System.Drawing.Point(844, 77);
this.gov008res.Name = "gov008res";
this.gov008res.Size = new System.Drawing.Size(17, 14);
this.gov008res.Size = new System.Drawing.Size(13, 12);
this.gov008res.TabIndex = 206;
this.gov008res.Text = " ";
this.gov008res.TextChanged += new System.EventHandler(this.col008res_TextChanged);
@@ -546,9 +550,9 @@
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(366, 11);
this.checkBox1.Location = new System.Drawing.Point(366, 9);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(96, 18);
this.checkBox1.Size = new System.Drawing.Size(84, 16);
this.checkBox1.TabIndex = 213;
this.checkBox1.Text = "회의간행물";
this.checkBox1.UseVisualStyleBackColor = true;
@@ -557,9 +561,9 @@
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(366, 36);
this.checkBox2.Location = new System.Drawing.Point(366, 31);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(96, 18);
this.checkBox2.Size = new System.Drawing.Size(84, 16);
this.checkBox2.TabIndex = 213;
this.checkBox2.Text = "기념논문집";
this.checkBox2.UseVisualStyleBackColor = true;
@@ -569,9 +573,9 @@
//
this.comboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox7.FormattingEnabled = true;
this.comboBox7.Location = new System.Drawing.Point(651, 59);
this.comboBox7.Location = new System.Drawing.Point(651, 51);
this.comboBox7.Name = "comboBox7";
this.comboBox7.Size = new System.Drawing.Size(118, 21);
this.comboBox7.Size = new System.Drawing.Size(120, 20);
this.comboBox7.TabIndex = 207;
this.comboBox7.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
this.comboBox7.MouseClick += new System.Windows.Forms.MouseEventHandler(this.comboBox1_MouseClick);
@@ -580,7 +584,7 @@
//
this.Btn_Memo.Location = new System.Drawing.Point(790, 6);
this.Btn_Memo.Name = "Btn_Memo";
this.Btn_Memo.Size = new System.Drawing.Size(97, 27);
this.Btn_Memo.Size = new System.Drawing.Size(97, 22);
this.Btn_Memo.TabIndex = 215;
this.Btn_Memo.Text = "메모장";
this.Btn_Memo.UseVisualStyleBackColor = true;
@@ -589,10 +593,10 @@
// label4
//
this.label4.Dock = System.Windows.Forms.DockStyle.Left;
this.label4.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label4.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label4.Location = new System.Drawing.Point(0, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(40, 50);
this.label4.Size = new System.Drawing.Size(43, 50);
this.label4.TabIndex = 206;
this.label4.Text = "008";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -602,10 +606,10 @@
this.text008.BackColor = System.Drawing.Color.White;
this.text008.Dock = System.Windows.Forms.DockStyle.Fill;
this.text008.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.text008.Location = new System.Drawing.Point(40, 0);
this.text008.Location = new System.Drawing.Point(43, 0);
this.text008.Margin = new System.Windows.Forms.Padding(3);
this.text008.Name = "text008";
this.text008.Size = new System.Drawing.Size(289, 50);
this.text008.Size = new System.Drawing.Size(286, 50);
this.text008.TabIndex = 204;
this.text008.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
@@ -624,7 +628,6 @@
//
// btn_Reflesh008
//
this.btn_Reflesh008.BackColor = System.Drawing.SystemColors.WindowText;
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(329, 0);
@@ -632,6 +635,7 @@
this.btn_Reflesh008.Name = "btn_Reflesh008";
this.btn_Reflesh008.Size = new System.Drawing.Size(28, 50);
this.btn_Reflesh008.TabIndex = 207;
this.btn_Reflesh008.Text = "갱신";
this.btn_Reflesh008.UseVisualStyleBackColor = false;
this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click);
//
@@ -642,16 +646,15 @@
this.input_date.Checked = false;
this.input_date.CustomFormat = "yyyy-MM-dd";
this.input_date.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.input_date.Location = new System.Drawing.Point(532, 9);
this.input_date.Location = new System.Drawing.Point(510, 7);
this.input_date.Name = "input_date";
this.input_date.ShowCheckBox = true;
this.input_date.Size = new System.Drawing.Size(82, 23);
this.input_date.Size = new System.Drawing.Size(116, 21);
this.input_date.TabIndex = 220;
this.input_date.ValueChanged += new System.EventHandler(this.input_date_ValueChanged);
//
// btn_preview
//
this.btn_preview.Location = new System.Drawing.Point(790, 33);
this.btn_preview.Location = new System.Drawing.Point(790, 28);
this.btn_preview.Name = "btn_preview";
this.btn_preview.Size = new System.Drawing.Size(97, 22);
this.btn_preview.TabIndex = 215;
@@ -666,11 +669,11 @@
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.tabControl1.Location = new System.Drawing.Point(0, 110);
this.tabControl1.Location = new System.Drawing.Point(0, 98);
this.tabControl1.Multiline = true;
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1028, 794);
this.tabControl1.Size = new System.Drawing.Size(1028, 806);
this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
@@ -682,7 +685,7 @@
this.tabPage1.Location = new System.Drawing.Point(24, 4);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1000, 804);
this.tabPage1.Size = new System.Drawing.Size(1000, 798);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "마크 편집";
//
@@ -705,7 +708,7 @@
this.tabPage2.Location = new System.Drawing.Point(24, 4);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1000, 786);
this.tabPage2.Size = new System.Drawing.Size(1000, 798);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "마크 칸채우기";
//
@@ -758,7 +761,7 @@
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(3, 3);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(994, 780);
this.panel4.Size = new System.Drawing.Size(994, 792);
this.panel4.TabIndex = 0;
//
// Btn_interlock
@@ -800,8 +803,8 @@
this.GridView020.Name = "GridView020";
this.GridView020.RowHeadersVisible = false;
this.GridView020.RowHeadersWidth = 30;
dataGridViewCellStyle71.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle71;
dataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView020.RowsDefaultCellStyle = dataGridViewCellStyle17;
this.GridView020.RowTemplate.Height = 23;
this.GridView020.Size = new System.Drawing.Size(408, 80);
this.GridView020.TabIndex = 0;
@@ -875,8 +878,8 @@
this.GridView505.Name = "GridView505";
this.GridView505.RowHeadersVisible = false;
this.GridView505.RowHeadersWidth = 30;
dataGridViewCellStyle72.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle72;
dataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView505.RowsDefaultCellStyle = dataGridViewCellStyle18;
this.GridView505.RowTemplate.Height = 23;
this.GridView505.Size = new System.Drawing.Size(401, 71);
this.GridView505.TabIndex = 2;
@@ -1015,14 +1018,14 @@
this.GridView246.AllowDrop = true;
this.GridView246.AllowUserToAddRows = false;
this.GridView246.AllowUserToResizeRows = false;
dataGridViewCellStyle65.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle65.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle65.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle65.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle65.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle65.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle65.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle65;
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle19.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView246.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19;
this.GridView246.ColumnHeadersHeight = 29;
this.GridView246.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Text246Jisi,
@@ -1035,8 +1038,8 @@
this.GridView246.Name = "GridView246";
this.GridView246.RowHeadersVisible = false;
this.GridView246.RowHeadersWidth = 30;
dataGridViewCellStyle66.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle66;
dataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView246.RowsDefaultCellStyle = dataGridViewCellStyle20;
this.GridView246.RowTemplate.Height = 23;
this.GridView246.Size = new System.Drawing.Size(542, 138);
this.GridView246.TabIndex = 31;
@@ -1195,14 +1198,14 @@
this.GridView440.AllowDrop = true;
this.GridView440.AllowUserToAddRows = false;
this.GridView440.AllowUserToResizeRows = false;
dataGridViewCellStyle67.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle67.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle67.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle67.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle67.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle67.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle67.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle67;
dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle21.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle21.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle21.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle21.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle21.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView440.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle21;
this.GridView440.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.GridView440.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.text440a,
@@ -1215,8 +1218,8 @@
this.GridView440.Name = "GridView440";
this.GridView440.RowHeadersVisible = false;
this.GridView440.RowHeadersWidth = 30;
dataGridViewCellStyle68.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle68;
dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView440.RowsDefaultCellStyle = dataGridViewCellStyle22;
this.GridView440.RowTemplate.Height = 23;
this.GridView440.Size = new System.Drawing.Size(597, 71);
this.GridView440.TabIndex = 18;
@@ -1324,14 +1327,14 @@
this.GridView490.AllowDrop = true;
this.GridView490.AllowUserToAddRows = false;
this.GridView490.AllowUserToResizeRows = false;
dataGridViewCellStyle69.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle69.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle69.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle69.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle69.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle69.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle69.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle69;
dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle23.Font = new System.Drawing.Font("돋움", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.GridView490.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23;
this.GridView490.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.GridView490.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.text490a,
@@ -1340,8 +1343,8 @@
this.GridView490.Name = "GridView490";
this.GridView490.RowHeadersVisible = false;
this.GridView490.RowHeadersWidth = 30;
dataGridViewCellStyle70.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle70;
dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.GridView490.RowsDefaultCellStyle = dataGridViewCellStyle24;
this.GridView490.RowTemplate.Height = 23;
this.GridView490.Size = new System.Drawing.Size(370, 71);
this.GridView490.TabIndex = 19;
@@ -2140,9 +2143,9 @@
// checkBox4
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(366, 60);
this.checkBox4.Location = new System.Drawing.Point(366, 53);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(54, 18);
this.checkBox4.Size = new System.Drawing.Size(48, 16);
this.checkBox4.TabIndex = 213;
this.checkBox4.Text = "색인";
this.checkBox4.UseVisualStyleBackColor = true;
@@ -2181,9 +2184,10 @@
this.panel6.Controls.Add(this.comboBox5);
this.panel6.Controls.Add(this.label102);
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Font = new System.Drawing.Font("돋움", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.panel6.Location = new System.Drawing.Point(0, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(1028, 110);
this.panel6.Size = new System.Drawing.Size(1028, 98);
this.panel6.TabIndex = 321;
//
// panel7
@@ -2196,7 +2200,7 @@
this.panel7.Location = new System.Drawing.Point(0, 53);
this.panel7.Margin = new System.Windows.Forms.Padding(0);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(358, 52);
this.panel7.Size = new System.Drawing.Size(358, 41);
this.panel7.TabIndex = 221;
//
// lbl_ISBN
@@ -2205,9 +2209,10 @@
this.lbl_ISBN.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.lbl_ISBN.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbl_ISBN.Font = new System.Drawing.Font("굴림", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_ISBN.Location = new System.Drawing.Point(40, 0);
this.lbl_ISBN.Location = new System.Drawing.Point(43, 0);
this.lbl_ISBN.Name = "lbl_ISBN";
this.lbl_ISBN.Size = new System.Drawing.Size(288, 39);
this.lbl_ISBN.ReadOnly = true;
this.lbl_ISBN.Size = new System.Drawing.Size(285, 39);
this.lbl_ISBN.TabIndex = 204;
this.lbl_ISBN.Text = "0000000000000";
this.lbl_ISBN.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@@ -2221,7 +2226,7 @@
this.btChangeISBN.Location = new System.Drawing.Point(328, 0);
this.btChangeISBN.Margin = new System.Windows.Forms.Padding(0);
this.btChangeISBN.Name = "btChangeISBN";
this.btChangeISBN.Size = new System.Drawing.Size(28, 50);
this.btChangeISBN.Size = new System.Drawing.Size(28, 39);
this.btChangeISBN.TabIndex = 207;
this.btChangeISBN.Text = "변경";
this.btChangeISBN.UseVisualStyleBackColor = false;
@@ -2230,10 +2235,10 @@
// label56
//
this.label56.Dock = System.Windows.Forms.DockStyle.Left;
this.label56.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label56.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label56.Location = new System.Drawing.Point(0, 0);
this.label56.Name = "label56";
this.label56.Size = new System.Drawing.Size(40, 50);
this.label56.Size = new System.Drawing.Size(43, 39);
this.label56.TabIndex = 206;
this.label56.Text = "ISBN";
this.label56.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -2244,7 +2249,7 @@
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pictureBox1.Location = new System.Drawing.Point(890, 7);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(131, 98);
this.pictureBox1.Size = new System.Drawing.Size(131, 84);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 221;
this.pictureBox1.TabStop = false;

View File

@@ -122,14 +122,24 @@ namespace UniMarc
/// <param name="user"></param>
/// <param name="saveDate"></param>
/// <param name="listIdx"></param>
public void LoadBookData(string dbMarc,string isbn = "",string defaultMarc="")
public void LoadBookData(string dbMarc, string isbn = "", string defaultMarc = "")
{
mLoadCompleted = false;
richTextBox1.Text = "";
richTextBox1.Enabled = true;
LoadMarc(dbMarc); //여기에서도 008을 설정한다
if (dbMarc.isEmpty() == false)
{
dbMarc = dbMarc.Replace('▼', (char)0x1E); //1e -> ▼ (필드종단기호)
dbMarc = dbMarc.Replace('▲', (char)0x1F); //1f -> ▲ (식별자기호)
dbMarc = dbMarc.Replace('↔', (char)0x1D); //1d -> ↔ (레코드종단기호)
}
string extractedIsbn = isbn;
if (dbMarc.isEmpty() == false)
{
LoadMarc(dbMarc); //여기에서도 008을 설정한다
if (extractedIsbn.isEmpty())
{
//마크데이터에서 ISBN(020a)을 찾아서 설정한다.
@@ -139,6 +149,16 @@ namespace UniMarc
extractedIsbn = isbnTags[0].Trim();
}
}
}
else
{
string yyMMdd = DateTime.Now.ToString("yyMMdd");
string yyyy = DateTime.Now.ToString("yyyy");
string Empty_008 = yyMMdd + "s" + yyyy + " 000 kor ";
text008.Text = Empty_008;// "180507s2016 ulka c 000 f kor ";
data008 = text008.Text;
}
lbl_ISBN.Text = $"{extractedIsbn}";
if (!extractedIsbn.isEmpty())
@@ -159,8 +179,7 @@ namespace UniMarc
}
Create_008();
st.Color_change("▼", richTextBox1);
st.Color_change("▲", richTextBox1);
UpdateTextColor();
mLoadCompleted = true;
}
@@ -269,7 +288,11 @@ namespace UniMarc
/// <returns></returns>
public string MakeMarcString()
{
return st.made_Ori_marc(richTextBox1).Replace(@"\", "₩");
//008태그를 본문에 추가해야하낟.
var tag_056 = Tag056(out string with008TagOutput);
//008태그가 포함된 전체 문자를 사용해야한다
return st.made_Ori_marc(with008TagOutput).Replace(@"\", "₩");
}
private void etc_KeyDown(object sender, KeyEventArgs e)
@@ -283,6 +306,7 @@ namespace UniMarc
private void comboBox1_MouseClick(object sender, MouseEventArgs e)
{
((ComboBox)sender).DroppedDown = true;
UpdateTextColor();
}
private void text008col_KeyDown(object sender, KeyEventArgs e)
@@ -308,12 +332,16 @@ namespace UniMarc
memo.Location = new Point(1018, 8);
memo.Show();
}
/// <summary>
/// richTextBox1 에 값을 단순 설정합니다
/// 008등의 태그값은 적용되지 않습니다.
/// 완전한 데이터를 로드하기 위해서는 LoadBookData() 를 사용해야 함
/// </summary>
/// <param name="text"></param>
public void SetMarcString(string text)
{
richTextBox1.Text = text;
// Sync with internal data structures (008, etc)
//string orimarc = st.made_Ori_marc(richTextBox1).Replace(@"\", "₩");
//LoadMarc(orimarc);
}
private void Btn_preview_Click(object sender, EventArgs e)
@@ -390,7 +418,7 @@ namespace UniMarc
if (!isPass(BaseText))
{
UTIL.MsgE( "입력된 마크의 상태를 확인해주세요.");
UTIL.MsgE("입력된 마크의 상태를 확인해주세요.");
return false;
}
@@ -403,9 +431,15 @@ namespace UniMarc
// 3. ISBN 포함 여부 확인 (경고성)
var v_ISBN = this.lbl_ISBN.Text.Trim();
if (v_ISBN.isEmpty())
{
UTIL.MsgE("상단 ISBN값이 없습니다. 변경버튼으로 값을 입력하세요");
lbl_ISBN.Focus();
return false;
}
if (BaseText.IndexOf(v_ISBN) < 0)
{
var dlg = UTIL.MsgQ("저장된 ISBN이 마크데이터에 없습니다.\nISBN값이 변경되었습니다.\n그래도 저장 할까요?");
var dlg = UTIL.MsgQ($"저장된 ISBN 값({lbl_ISBN.Text})이 마크데이터에 없습니다.\n\nISBN값이 변경되었습니다.\n취소 후 ISBN 변경기능을 통해서 값을 변경 후 다시 시도하세요. \n\n혹은 그래도 저장 할까요?");
if (dlg != DialogResult.Yes) return false;
}
@@ -436,7 +470,7 @@ namespace UniMarc
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
if (UTIL.MsgQ(msg + "태그가 없습니다.\n\n진행 할까요?") != DialogResult.Yes)
return false;
}
@@ -452,7 +486,7 @@ namespace UniMarc
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
if (UTIL.MsgQ("기본표목(100a | 110a | 111a)이 존재하지않습니다.\n\n진행 할까요?") != DialogResult.Yes)
return false;
}
@@ -470,7 +504,7 @@ namespace UniMarc
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
if (UTIL.MsgQ("부출표목(700a | 710a | 711a)이 존재하지않습니다.\n\n진행 할까요?") != DialogResult.Yes)
return false;
}
@@ -481,8 +515,9 @@ namespace UniMarc
/// 분류기호(056)추출 & 008태그 마크에 삽입
/// </summary>
/// <returns></returns>
public string Tag056()
public string Tag056(out string with008TagOutput)
{
with008TagOutput = "";
string marc = richTextBox1.Text;
string[] temp = marc.Split('\n');
List<string> target = temp.ToList();
@@ -513,10 +548,11 @@ namespace UniMarc
tag056 = GetMiddelString(tmp[2], "▼a", "▼");
}
}
if (!isEight)
target.Insert(count, string.Format("{0}\t{1}\t{2}▲", "008", " ", text008.Text));
richTextBox1.Text = string.Join("\n", target.ToArray());
if (!isEight)
target.Insert(count, $"008\t \t{text008.Text}▲");
with008TagOutput = string.Join("\n", target.ToArray());
return tag056;
}
@@ -731,8 +767,16 @@ namespace UniMarc
private void btn_Reflesh008_Click(object sender, EventArgs e)
{
string data = text008.Text;
if (this.tabControl1.SelectedIndex == 1)
{
AR.UTIL.MsgE("[칸채우기]가 아닌 [마크 편집] 탭에서 저장해주세요!");
return;
}
//data =data.PadRight(40,' ');
string oriMarc = st.made_Ori_marc(richTextBox1).Replace("\\", "₩");
//if (data == "" || data == null) { return; }
@@ -740,25 +784,42 @@ namespace UniMarc
// 삽화표시 이용대상자수준 개별자료형태 내용형식1 내용형식2
// 한국대학부호 수정레코드 회의간행물 기념논문집 색인
// 목록전거 문학형식 전기 언어 한국정부기관부호
var parser = new UniMarc.MarcParser();
parser.ParseMnemonic(this.richTextBox1.Text);
var v_260c = parser.GetTag("260c").FirstOrDefault() ?? string.Empty;
var v_260a = parser.GetTag("260a").FirstOrDefault() ?? string.Empty;
var v_300b = parser.GetTag("300b").FirstOrDefault() ?? string.Empty;
#region string배열에 .
//string oriMarc = MakeMarcString();// st.made_Ori_marc(richTextBox1).Replace("\\", "₩");
// 참조할 태그 배열선언
string[] SearchTag = { "260c", "260a", "300b" };
string[] ContentTag = st.Take_Tag(oriMarc, SearchTag);
//string[] SearchTag = { "260c", "260a", "300b" };
string[] ContentTag = new string[] { v_260c, v_260a, v_300b };// st.Take_Tag(oriMarc, SearchTag);
// 입력일자 (00-05)
string day;
if (input_date.Checked)
day = string.Format("{0}{1}{2}",
DateTime.Now.ToString("yy"), DateTime.Now.ToString("MM"), DateTime.Now.ToString("dd"));
else
//if (input_date.Checked)
// day = string.Format("{0}{1}{2}",
// DateTime.Now.ToString("yy"), DateTime.Now.ToString("MM"), DateTime.Now.ToString("dd"));
//else
day = input_date.Value.ToString("yy") + input_date.Value.ToString("MM") + input_date.Value.ToString("dd");
// 발행년유형 (6), 발행년1 (07-10), 발행년2 (11-14)
string DateSet = pubDateSet(ContentTag[0]);
if (string.IsNullOrEmpty(DateSet))
{
return;
}
// 발행국 (15-17)
string Country = pubCountry(ContentTag[1]);
if (Country.isEmpty())
{
return;
}
// 삽화표시 (18-21)
string Picture = tag008.Picture_008(ContentTag[2]);
@@ -815,8 +876,8 @@ namespace UniMarc
if (pubDate.Length < 3)
{
MessageBox.Show("260c가 인식되지않습니다.");
return "false";
UTIL.MsgE($"260c 값이 없거나 올바르지 않습니다\n\n값:{pubDate}");
return null;
}
else if (pubDate.Length < 5)
Result = "s" + pubDate + " ";
@@ -844,8 +905,8 @@ namespace UniMarc
if (res == "")
{
MessageBox.Show("260a가 인식되지않습니다.");
return "false";
UTIL.MsgE($"260c 값이 없거나 올바르지 않습니다\n\n값:{ContentTag}");
return null;
}
else if (res.Length < 3)
Result = res + " ";
@@ -957,6 +1018,7 @@ namespace UniMarc
Publication_008(chk.Checked, 31);
break;
}
this.UpdateTextColor();
}
void Publication_008(bool check, int idx)
@@ -977,6 +1039,7 @@ namespace UniMarc
string text = text008.Text;
richTextBox1.Text = richTextBox1.Text.Replace(data008, text);
data008 = text;
UpdateTextColor();
}
//public void SetMarcString(string marcstr)
//{
@@ -1015,6 +1078,11 @@ namespace UniMarc
}
}
void UpdateTextColor()
{
st.Color_change("▼", richTextBox1);
st.Color_change("▲", richTextBox1);
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
@@ -1030,8 +1098,7 @@ namespace UniMarc
{
case 0: // 칸채우기 -> 메모장
InputMemo(SplitLine);
st.Color_change("▼", richTextBox1);
st.Color_change("▲", richTextBox1);
UpdateTextColor();
break;
case 1: // 메모장 -> 칸채우기
// 칸을 채우기 전에 텍스트박스와 그리드뷰를 비움.
@@ -2920,7 +2987,7 @@ namespace UniMarc
}
catch
{
MessageBox.Show("데이터가 올바르지않습니다.\n245d를 확인해주세요.");
UTIL.MsgE("데이터가 올바르지않습니다.\n245d를 확인해주세요.");
}
}
#region
@@ -2979,11 +3046,12 @@ namespace UniMarc
}
lbl_ISBN.Text = newisbn;
lbl_ISBN.Tag = newisbn;
// 1. RichTextBox (마크 편집) 동기화
if (!string.IsNullOrEmpty(oldIsbn))
{
richTextBox1.Text = richTextBox1.Text.Replace(oldIsbn, newisbn);
richTextBox1.Text = richTextBox1.Text.Replace("▼a" + oldIsbn, "▼a" + newisbn);
}
// 2. GridView020 (칸채우기) 동기화
@@ -2998,6 +3066,9 @@ namespace UniMarc
// 3. 이미지 업데이트
ShowImage(newisbn);
// 4. 텍스트 색상 업데이트
UpdateTextColor();
}
private void pictureBox1_Click(object sender, EventArgs e)
@@ -3009,8 +3080,15 @@ namespace UniMarc
return;
}
var zp = new Zoom_Picture(url,lbl_ISBN.Text.Trim());
var zp = new Zoom_Picture(url, lbl_ISBN.Text.Trim());
zp.Show();
}
private void label1_Click(object sender, EventArgs e)
{
var dlg = UTIL.MsgQ("입력일자를 오늘로 변경 할까요?");
if (dlg != DialogResult.Yes) return;
input_date.Value = DateTime.Now;
}
}
}

View File

@@ -16,12 +16,18 @@ namespace UniMarc
MarcEditorControl marcEditorControl1;
Helper_DB db = new Helper_DB();
String_Text st = new String_Text();
private ToolStrip toolStrip1;
private ToolStripButton btSave;
private StatusStrip statusStrip1;
private Panel panel5;
private TableLayoutPanel tableLayoutPanel1;
public RichTextBox etc1;
public RichTextBox etc2;
private Panel panel6;
private Button button3;
private Button btn_Save;
private UC_SelectGrade uC_SelectGrade1;
string base_midx = "";
public Marc_CopyForm(string marcstring,string m_idx = "0")
public Marc_CopyForm(string marcstring, string m_idx = "0")
{
InitializeComponent();
base_midx = m_idx;
@@ -34,6 +40,7 @@ namespace UniMarc
// Wire up events
this.Controls.Add(marcEditorControl1);
marcEditorControl1.BringToFront();
this.StartPosition = FormStartPosition.CenterScreen;
@@ -41,38 +48,28 @@ namespace UniMarc
var tags = st.Take_Tag(marcstring, new string[] { "245a" });
var BookName = tags.Length > 0 ? tags[0] : "";
this.Text = $"마크 복제 - {BookName}";
this.uC_SelectGrade1.GradeName = "C";
this.etc1.Text = string.Empty;
this.etc2.Text = string.Empty;
}
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_CopyForm));
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.btSave = new System.Windows.Forms.ToolStripButton();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStrip1.SuspendLayout();
this.panel5 = new System.Windows.Forms.Panel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.etc1 = new System.Windows.Forms.RichTextBox();
this.etc2 = new System.Windows.Forms.RichTextBox();
this.panel6 = new System.Windows.Forms.Panel();
this.button3 = new System.Windows.Forms.Button();
this.btn_Save = new System.Windows.Forms.Button();
this.uC_SelectGrade1 = new UniMarc.UC_SelectGrade();
this.panel5.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.panel6.SuspendLayout();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.btSave});
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(1316, 27);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
// btSave
//
this.btSave.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.btSave.Image = ((System.Drawing.Image)(resources.GetObject("btSave.Image")));
this.btSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.btSave.Name = "btSave";
this.btSave.Size = new System.Drawing.Size(55, 24);
this.btSave.Text = "저장";
this.btSave.Click += new System.EventHandler(this.btSave_Click);
//
// statusStrip1
//
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
@@ -82,16 +79,107 @@ namespace UniMarc
this.statusStrip1.TabIndex = 1;
this.statusStrip1.Text = "statusStrip1";
//
// panel5
//
this.panel5.Controls.Add(this.tableLayoutPanel1);
this.panel5.Controls.Add(this.panel6);
this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
this.panel5.Location = new System.Drawing.Point(1050, 0);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(266, 893);
this.panel5.TabIndex = 327;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Controls.Add(this.etc1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.etc2, 0, 1);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 86);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(266, 807);
this.tableLayoutPanel1.TabIndex = 0;
//
// etc1
//
this.etc1.BackColor = System.Drawing.SystemColors.ScrollBar;
this.etc1.Dock = System.Windows.Forms.DockStyle.Fill;
this.etc1.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.etc1.Location = new System.Drawing.Point(3, 3);
this.etc1.Name = "etc1";
this.etc1.Size = new System.Drawing.Size(260, 397);
this.etc1.TabIndex = 32;
this.etc1.Text = "Remark1";
this.etc1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc1_KeyDown);
//
// etc2
//
this.etc2.BackColor = System.Drawing.SystemColors.ScrollBar;
this.etc2.Dock = System.Windows.Forms.DockStyle.Fill;
this.etc2.Font = new System.Drawing.Font("굴림체", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.etc2.Location = new System.Drawing.Point(3, 406);
this.etc2.Name = "etc2";
this.etc2.Size = new System.Drawing.Size(260, 398);
this.etc2.TabIndex = 32;
this.etc2.Text = "Remark2";
this.etc2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc1_KeyDown);
//
// panel6
//
this.panel6.Controls.Add(this.uC_SelectGrade1);
this.panel6.Controls.Add(this.button3);
this.panel6.Controls.Add(this.btn_Save);
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Location = new System.Drawing.Point(0, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(266, 86);
this.panel6.TabIndex = 1;
//
// button3
//
this.button3.Location = new System.Drawing.Point(147, 6);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(107, 33);
this.button3.TabIndex = 405;
this.button3.Text = "닫기";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// btn_Save
//
this.btn_Save.Location = new System.Drawing.Point(11, 6);
this.btn_Save.Name = "btn_Save";
this.btn_Save.Size = new System.Drawing.Size(107, 33);
this.btn_Save.TabIndex = 215;
this.btn_Save.Text = "저장(F9)";
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// uC_SelectGrade1
//
this.uC_SelectGrade1.BackColor = System.Drawing.Color.White;
this.uC_SelectGrade1.Grade = -1;
this.uC_SelectGrade1.GradeName = "";
this.uC_SelectGrade1.Location = new System.Drawing.Point(11, 47);
this.uC_SelectGrade1.Name = "uC_SelectGrade1";
this.uC_SelectGrade1.Size = new System.Drawing.Size(243, 29);
this.uC_SelectGrade1.TabIndex = 406;
//
// Marc_CopyForm
//
this.ClientSize = new System.Drawing.Size(1316, 915);
this.Controls.Add(this.panel5);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.toolStrip1);
this.Name = "Marc_CopyForm";
this.Text = "마크 복제";
this.Load += new System.EventHandler(this.Marc_CopyForm_Load);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.panel5.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.panel6.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@@ -103,6 +191,11 @@ namespace UniMarc
}
private void btSave_Click(object sender, EventArgs e)
{
}
private void btn_Save_Click(object sender, EventArgs e)
{
string errMsg = string.Empty;
bool isbnWarning = false;
@@ -131,19 +224,77 @@ namespace UniMarc
}
}
//등급추가
string v_grade = uC_SelectGrade1.Grade == -1 ? "2" : uC_SelectGrade1.Grade.ToString();
//if (radA.Checked) v_grade = "0";
//else if (radB.Checked) v_grade = "1";
//else if (radC.Checked) v_grade = "2";
//else if (radD.Checked) v_grade = "3";
var v_remark1 = this.etc1.Text.Trim();
var v_remark2 = this.etc2.Text.Trim();
// 008 태그 최신화 및 056 추출
string tag056 = marcEditorControl1.Tag056();
string tag056 = marcEditorControl1.Tag056(out string with008fullstring);
var savedMarc = this.marcEditorControl1.MakeMarcString();
var date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
var v_008 = this.marcEditorControl1.text008.Text;
//도서정보추출
var v_isbn = "";
var v_price = "";
var v_author = "";
var v_title = "";
var v_publisher = "";
var v_date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
//파서를 사용해서 변경한다
var parser = new UniMarc.MarcParser();
parser.ParseFullMarc(savedMarc);
//ISBN와 가격 (처음나오는 020태그의 값을 적용)
var tag_020 = parser.GetTag<MarcField>("020").FirstOrDefault();
if (tag_020 != null)
{
v_isbn = tag_020.GetSubfieldValue('a');
v_price = tag_020.GetSubfieldValue('c');
}
//저자(100 -> 110 -> 111 순으로 적용)
var tag_100 = parser.GetTag<MarcField>("100").FirstOrDefault();
var tag_110 = parser.GetTag<MarcField>("110").FirstOrDefault();
var tag_111 = parser.GetTag<MarcField>("111").FirstOrDefault();
if (tag_111 != null)
v_author = tag_111.GetSubfieldValue('a');
else if (tag_110 != null)
v_author = tag_110.GetSubfieldValue('a');
else if (tag_100 != null)
v_author = tag_100.GetSubfieldValue('a');
//서명
var tag_245 = parser.GetTag<MarcSubfield>("245a").FirstOrDefault();
v_title = tag_245?.Value ?? string.Empty;
//출판사
var tag_264b = parser.GetTag<MarcSubfield>("264b").FirstOrDefault();
var tag_260b = parser.GetTag<MarcSubfield>("260b").FirstOrDefault();
if (tag_264b != null)
v_publisher = tag_264b?.Value ?? string.Empty;
else if (tag_260b != null)
v_publisher = tag_260b?.Value ?? string.Empty;
//056a
var v_056 = parser.GetTag("056a").FirstOrDefault() ?? string.Empty;
var v_008 = parser.GetTag("008").FirstOrDefault() ?? string.Empty;
string[] insert_col = {
"ISBN", "compidx", "marc", "marc_chk",
"grade", "008tag", "user", "date","비고1", "division"
"grade", "008tag", "user", "date","비고1", "비고2", "division","서명","저자","출판사","가격"
};
string[] insert_data = {
v_ISBN, PUB.user.CompanyIdx.ToString(), savedMarc, "1",
"3", v_008, PUB.user.UserName, date,$"복제(m_idx:{this.base_midx})", tag056
v_grade, v_008, PUB.user.UserName, date,v_remark1, v_remark2, tag056,v_title, v_author, v_publisher, v_price
};
string cmd = db.DB_INSERT("Marc", insert_col, insert_data);
@@ -159,5 +310,20 @@ namespace UniMarc
UTIL.MsgE(rlt.errorMessage);
}
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
private void etc1_KeyDown(object sender, KeyEventArgs e)
{
var rt = sender as RichTextBox;
if(rt == null) return;
if (e.KeyCode == Keys.F5)
{
rt.AppendText("[" + DateTime.Now.ToString("yy-MM-dd") + "]");
}
}
}
}

View File

@@ -117,25 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="btSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
cX79DFKrHHD5d9D26hvicx4pABt2lpg10zYzU0zr7+e3xXGcrkEB2O2TNec9nJFwB3alZn5jZorfeDZh
6Q3g8s06BeCoKF4MRURoH1+BY2oNCbeb0TIclIYxOhzf8frTOuo7FxCbbVIAzpni0iceEc8vhzEwGkJD
lx83ymxifejdKjRNk/8PWnyIyTQqAJek0jqHwfEVscu31baIu8+90sTE4nY025dQ2/5FIPpnXlzKuK8A
HBUzHot52djqQ6HZhfR7IwK4mKpHtvEDMqvfCiQ6zaAAXM8x94aIWTNrLLG4kVUzgaTSPlzLtyJOZxbb
1wtfyg4Q+AfA3aZlButjSfxGcUJBk4g5tuP3haQKRKXcUQDOmbvNTpPOJeFFjordZmbWTNvMTHFUcpUC
nOccAdABIDXXE1nzAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>124, 17</value>
</metadata>

View File

@@ -1,4 +1,5 @@
using Org.BouncyCastle.Pkcs;
using AR;
using Org.BouncyCastle.Pkcs;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -262,7 +263,7 @@ namespace UniMarc
if (!tb_URL.Text.Contains("searchResultMarc"))
{
MessageBox.Show("코리스 마크가 있는곳으로 이동해주세요!");
UTIL.MsgE("코리스 마크가 있는곳으로 이동해주세요!");
return;
}
SearchResultMarc();
@@ -319,7 +320,7 @@ namespace UniMarc
progressBar1.Value += 1;
}
MessageBox.Show("완료되었습니다!");
UTIL.MsgI("완료되었습니다!");
this.DialogResult = DialogResult.OK;
this.Close();
}

View File

@@ -147,7 +147,7 @@ namespace UniMarc
string[] Search_col = { "work_list", "date" };
string[] Search_data = { ListName, date };
string cmd = db.More_DB_Search(Table, Search_col, Search_data, Area);
var res = Helper_DB.ExecuteQueryData(cmd); // Assumed called above
var res = Helper_DB.ExecuteDataTable(cmd); // Assumed called above
var list = new List<MarcPlanItem>();
int tCnt = 1;
@@ -478,11 +478,11 @@ namespace UniMarc
string msg = string.Format("『{0}』 태그를 변경하시겠습니까?", tb_SearchTag.Text);
// 아니오 선택시 아래코드 실행되지않음.
if (MessageBox.Show(msg, "태그변경", MessageBoxButtons.YesNo) == DialogResult.No) return;
if (UTIL.MsgQ(msg) == DialogResult.No) return;
if (tb_SearchTag.Text.Length <= 3)
{
MessageBox.Show("변경할 태그 검색을 양식에 맞춰주세요. ex) 245a");
UTIL.MsgE("변경할 태그 검색을 양식에 맞춰주세요. ex) 245a");
return;
}
@@ -571,7 +571,7 @@ namespace UniMarc
*/
#endregion
MessageBox.Show("변경되었습니다!", "태그변경");
UTIL.MsgI("변경되었습니다!");
}
/// <summary>
@@ -653,7 +653,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(Ucmd);
}
MessageBox.Show("저장되었습니다.");
UTIL.MsgI("저장되었습니다.");
mk_Grid(btn_Select_List.Text, this.date);
}
@@ -771,7 +771,7 @@ namespace UniMarc
FileName = saveFileDialog.FileName;
System.IO.File.WriteAllText(FileName, Marc_data, Encoding.Unicode);
}
MessageBox.Show("반출되었습니다!");
UTIL.MsgI("반출되었습니다!");
}
}
@@ -821,7 +821,7 @@ namespace UniMarc
String_Text st = new String_Text();
dataGridView1.Rows[i].Cells["marc"].Value = st.made_Ori_marc(tChange);
}
MessageBox.Show("태그 일괄 적용 완료!");
UTIL.MsgI("태그 일괄 적용 완료!");
}
private List<int> GetSelectGridIDX()
{
@@ -884,7 +884,7 @@ namespace UniMarc
}
dataGridView1.Rows[i].Cells["marc"].Value = st.made_Ori_marc(tNewMarc);
}
MessageBox.Show("태그 일괄 적용 완료!");
UTIL.MsgI("태그 일괄 적용 완료!");
}
@@ -973,12 +973,12 @@ namespace UniMarc
}
if (dataGridView1.Rows[row].Cells["marc"].Value == null)
{
MessageBox.Show("저장된 마크가 없습니다!");
UTIL.MsgE("저장된 마크가 없습니다!");
return;
}
if (dataGridView1.Rows[row].Cells["marc"].Value.ToString() == "")
{
MessageBox.Show("저장된 마크가 없습니다!");
UTIL.MsgE("저장된 마크가 없습니다!");
return;
}
@@ -1176,7 +1176,7 @@ namespace UniMarc
{
if (cb_TextFont.SelectedIndex < 0)
{
MessageBox.Show("글자체를 선택해주세요!");
UTIL.MsgE("글자체를 선택해주세요!");
return;
}
Cnt = 0;
@@ -1614,7 +1614,7 @@ namespace UniMarc
string[] parts = input.Split('~', '-');
if (parts.Length != 2)
{
MessageBox.Show("올바른 형식으로 입력해주세요.\n예) 1~100", "입력 오류", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE("올바른 형식으로 입력해주세요.\n예) 1~100");
return;
}
@@ -1624,13 +1624,13 @@ namespace UniMarc
// 범위 검증
if (startRow < 1 || endRow < 1)
{
MessageBox.Show("행 번호는 1 이상이어야 합니다.", "입력 오류", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE("행 번호는 1 이상이어야 합니다.");
return;
}
if (startRow > endRow)
{
MessageBox.Show("시작 행 번호가 끝 행 번호보다 클 수 없습니다.", "입력 오류", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE("시작 행 번호가 끝 행 번호보다 클 수 없습니다.");
return;
}
@@ -1641,14 +1641,14 @@ namespace UniMarc
// 범위가 데이터 범위를 벗어나는지 확인
if (endIndex >= bs1.Count)
{
MessageBox.Show($"입력한 범위가 전체 데이터 수({bs1.Count})를 초과합니다.", "입력 오류", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE($"입력한 범위가 전체 데이터 수({bs1.Count})를 초과합니다.");
return;
}
// 삭제 확인
string confirmMsg = string.Format("{0}번부터 {1}번까지 총 {2}개의 행을 삭제하시겠습니까?",
startRow, endRow, endRow - startRow + 1);
if (MessageBox.Show(confirmMsg, "행 삭제 확인", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
if (UTIL.MsgQ(confirmMsg) == DialogResult.No)
return;
// 뒤에서부터 삭제 (인덱스가 꼬이지 않도록)
@@ -1660,15 +1660,15 @@ namespace UniMarc
}
}
MessageBox.Show("삭제가 완료되었습니다.", "완료", MessageBoxButtons.OK, MessageBoxIcon.Information);
UTIL.MsgI("삭제가 완료되었습니다.");
}
catch (FormatException)
{
MessageBox.Show("숫자 형식으로 입력해주세요.\n예) 1~100", "입력 오류", MessageBoxButtons.OK, MessageBoxIcon.Warning);
UTIL.MsgE("숫자 형식으로 입력해주세요.\n예) 1~100");
}
catch (Exception ex)
{
MessageBox.Show($"삭제 중 오류가 발생했습니다.\n{ex.Message}", "오류", MessageBoxButtons.OK, MessageBoxIcon.Error);
UTIL.MsgE($"삭제 중 오류가 발생했습니다.\n{ex.Message}");
}
}
@@ -1680,7 +1680,7 @@ namespace UniMarc
if (string.IsNullOrEmpty(ISBN))
{
MessageBox.Show("ISBN이 존재하지않습니다!");
UTIL.MsgE("ISBN이 존재하지않습니다!");
return;
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -120,7 +121,7 @@ namespace UniMarc
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
UTIL.MsgE(e.ToString());
}
}
#region MK_Excel_Sub

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -234,7 +235,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(U_cmd);
MessageBox.Show(tb_ListName.Text + "가 성공적으로 수정되었습니다!", "수정완료");
UTIL.MsgI(tb_ListName.Text + "가 성공적으로 수정되었습니다!");
}
else
{
@@ -257,7 +258,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(Incmd);
MessageBox.Show(tb_ListName.Text + "가 성공적으로 저장되었습니다!", "저장완료");
UTIL.MsgI(tb_ListName.Text + "가 성공적으로 저장되었습니다!");
}
}

View File

@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using AR;
namespace UniMarc
{
@@ -490,7 +491,7 @@ namespace UniMarc
Helper_DB.ExcuteNonQuery(cmd);
InputBookData(SearchBookTag);
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
mp.dataGridView1.Rows[row].Cells["book_name"].Value = BookName;
mp.dataGridView1.Rows[row].Cells["marc"].Value = oriMarc;
@@ -545,7 +546,7 @@ namespace UniMarc
string Ucmd = db.More_Update(Table, Update_Col, Update_data, Search_Col, Search_data);
Helper_DB.ExcuteNonQuery(Ucmd);
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
si.dataGridView1.Rows[row].Cells["Marc"].Value = oriMarc;
si.dataGridView1.Rows[row].Cells["User"].Value = user;
@@ -706,7 +707,7 @@ namespace UniMarc
string cmd = db.More_Update(Table, Update_col, Update_Data, Search_col, Search_Data);
Helper_DB.ExcuteNonQuery(cmd);
MessageBox.Show("적용되었습니다!");
UTIL.MsgI("적용되었습니다!");
}
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)

View File

@@ -54,10 +54,8 @@ namespace UniMarc
this.btn_OpenFile = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.bn1 = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs1 = new System.Windows.Forms.BindingSource(this.components);
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
@@ -212,7 +210,7 @@ namespace UniMarc
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(805, 299);
this.dataGridView1.Size = new System.Drawing.Size(902, 500);
this.dataGridView1.TabIndex = 2;
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
@@ -272,7 +270,7 @@ namespace UniMarc
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(805, 33);
this.panel2.Size = new System.Drawing.Size(902, 33);
this.panel2.TabIndex = 3;
//
// btn_Morge
@@ -301,15 +299,15 @@ namespace UniMarc
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 33);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(805, 299);
this.panel3.Size = new System.Drawing.Size(902, 500);
this.panel3.TabIndex = 4;
//
// bn1
//
this.bn1.AddNewItem = this.bindingNavigatorAddNewItem;
this.bn1.AddNewItem = null;
this.bn1.BindingSource = this.bs1;
this.bn1.CountItem = this.bindingNavigatorCountItem;
this.bn1.DeleteItem = this.bindingNavigatorDeleteItem;
this.bn1.DeleteItem = null;
this.bn1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.bn1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.bindingNavigatorMoveFirstItem,
@@ -320,29 +318,18 @@ namespace UniMarc
this.bindingNavigatorSeparator1,
this.bindingNavigatorMoveNextItem,
this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem});
this.bn1.Location = new System.Drawing.Point(0, 332);
this.bindingNavigatorSeparator2});
this.bn1.Location = new System.Drawing.Point(0, 533);
this.bn1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn1.MoveLastItem = this.bindingNavigatorMoveLastItem;
this.bn1.MoveNextItem = this.bindingNavigatorMoveNextItem;
this.bn1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
this.bn1.Name = "bn1";
this.bn1.PositionItem = this.bindingNavigatorPositionItem;
this.bn1.Size = new System.Drawing.Size(805, 25);
this.bn1.Size = new System.Drawing.Size(902, 25);
this.bn1.TabIndex = 327;
this.bn1.Text = "bindingNavigator1";
//
// bindingNavigatorAddNewItem
//
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorAddNewItem.Text = "새로 추가";
//
// bindingNavigatorCountItem
//
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
@@ -350,15 +337,6 @@ namespace UniMarc
this.bindingNavigatorCountItem.Text = "/{0}";
this.bindingNavigatorCountItem.ToolTipText = "전체 항목 수";
//
// bindingNavigatorDeleteItem
//
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorDeleteItem.Text = "삭제";
//
// bindingNavigatorMoveFirstItem
//
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
@@ -424,7 +402,7 @@ namespace UniMarc
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(805, 357);
this.ClientSize = new System.Drawing.Size(902, 558);
this.Controls.Add(this.panel3);
this.Controls.Add(this.bn1);
this.Controls.Add(this.panel2);
@@ -472,10 +450,8 @@ namespace UniMarc
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
private System.Windows.Forms.Button btn_OpenFile;
private System.Windows.Forms.BindingNavigator bn1;
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
private System.Windows.Forms.BindingSource bs1;
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -111,14 +112,14 @@ namespace UniMarc
if (CheckRow.Length != 1)
{
MessageBox.Show("처리할 목록 [1]개 선택하여 주세요.");
UTIL.MsgE("처리할 목록 [1]개 선택하여 주세요.");
return;
}
int row = CheckRow[0];
string msg = string.Format("【{0}】을(를) {1} 하시겠습니까?", dataGridView1.Rows[row].Cells["list_name"].Value.ToString(), name);
if (MessageBox.Show(msg, name, MessageBoxButtons.OKCancel) == DialogResult.Cancel)
if (UTIL.MsgQ(msg) == DialogResult.Cancel)
return;
string[] search_col = { "idx", "work_list", "date" };
@@ -146,7 +147,7 @@ namespace UniMarc
if (CheckRow.Length != 1)
{
MessageBox.Show("수정할 목록 [1]개 선택하여 주세요.");
UTIL.MsgE("수정할 목록 [1]개 선택하여 주세요.");
return;
}
@@ -165,7 +166,7 @@ namespace UniMarc
if (CheckRow.Length < 2)
{
MessageBox.Show("병합할 목록 [2]개이상 선택하여 주세요.");
UTIL.MsgE("병합할 목록 [2]개이상 선택하여 주세요.");
return;
}
@@ -194,14 +195,14 @@ namespace UniMarc
if (CheckRow.Length != 1)
{
MessageBox.Show("삭제할 목록 [1]개 선택하여 주세요.");
UTIL.MsgE("삭제할 목록 [1]개 선택하여 주세요.");
return;
}
int row = CheckRow[0];
string msg = string.Format("【{0}】을(를) 삭제하시겠습니까?", dataGridView1.Rows[row].Cells["list_name"].Value.ToString());
if (MessageBox.Show(msg, "삭제하시겠습니까?", MessageBoxButtons.YesNo) == DialogResult.No)
if (UTIL.MsgQ(msg) == DialogResult.No)
return;
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
@@ -217,7 +218,7 @@ namespace UniMarc
cmd = db.DB_Delete_No_Limit("Specs_Marc", "compidx", PUB.user.CompanyIdx, search_col, search_data);
Helper_DB.ExcuteNonQuery(cmd);
MessageBox.Show("삭제되었습니다.");
UTIL.MsgI("삭제되었습니다.");
btn_Search_Click(null, null);
}
@@ -257,7 +258,7 @@ namespace UniMarc
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
UTIL.MsgE(ex.ToString());
}
}
@@ -271,27 +272,62 @@ namespace UniMarc
{
String_Text st = new String_Text();
string[] grid = text.Split(' ');
string[] grid = text.Split(new char[] { (char)0x1D }, StringSplitOptions.RemoveEmptyEntries);
var fullparser = new MarcParser();
var warnmessage = new System.Text.StringBuilder();
for (int a = 0; a < grid.Length - 1; a++)
{
string[] Search = {
// 등록번호, 분류기호, 저자기호, 볼륨v, 복본c, 별치f
"049l", "090a", "090b", "049v", "049c", "049f",
// ISBN, 도서명, 총서명1, 총서번호1, 총서명2, 총서번호2, 출판사, 정가, 저자
"020a", "245a", "440a", "440v", "490a", "490v", "260b", "950b", "245d" };
//string[] Search = {
//// 등록번호, 분류기호, 저자기호, 볼륨v, 복본c, 별치f
// "049l", "090a", "090b", "049v", "049c", "049f",
//// ISBN, 도서명, 총서명1, 총서번호1, 총서명2, 총서번호2, 출판사, 정가, 저자
// "020a", "245a", "440a", "440v", "490a", "490v", "260b", "950b", "245d" };
string[] Search_Res = st.Take_Tag(grid[a], Search);
string[] Author_Search = { "100a", "110a", "111a" };
string[] Author_Res = st.Take_Tag(grid[a], Author_Search);
string author_Fin = Search_Res[14];
foreach (string author in Author_Res)
var fullmarc = grid[a] + (char)0x1D;
var rlt = fullparser.ParseFullMarc(fullmarc);
if (rlt.success == false)
{
if (author != "")
warnmessage.AppendLine($"[{a + 1}] 번 줄 마크 인식 실패 : {rlt.message}");
continue;
}
// string[] Search_Res = st.Take_Tag(grid[a], Search);
//저자기호목록 마지막것을 우선시한다 ("100a", "110a", "111a")
// string[] Author_Search = { "100a", "110a", "111a" };
//저자기호확인
var v_author = string.Empty;
var v_111a = fullparser.GetTag("111a").FirstOrDefault();
var v_110a = fullparser.GetTag("110a").FirstOrDefault();
var v_100a = fullparser.GetTag("100a").FirstOrDefault();
if (v_111a.isEmpty() == false) v_author = v_111a;
else if (v_110a.isEmpty() == false) v_author = v_110a;
else if (v_100a.isEmpty() == false) v_author = v_100a;
var item = new MarcPlanItem
{
author_Fin = author;
break;
}
}
RegNum = fullparser.GetTag("049l").FirstOrDefault(),// Search_Res[0], 등록번호
ClassCode = fullparser.GetTag("090a").FirstOrDefault(),//Search_Res[1], 분류기호
AuthorCode = fullparser.GetTag("090b").FirstOrDefault(),//Search_Res[2], 저자기호
Volume = fullparser.GetTag("049v").FirstOrDefault(),//Search_Res[3], 볼륨v
Copy = fullparser.GetTag("049c").FirstOrDefault(),//Search_Res[4], 복본c
Prefix = fullparser.GetTag("049f").FirstOrDefault(),//Search_Res[5], 별치f
Isbn = fullparser.GetTag("020a").FirstOrDefault(),//Search_Res[6], ISBN
BookName = fullparser.GetTag("245a").FirstOrDefault(),// Search_Res[7], 도서명
SBookName1 = fullparser.GetTag("440a").FirstOrDefault(),// Search_Res[8],총서명1
SBookNum1 = fullparser.GetTag("440v").FirstOrDefault(),//Search_Res[9],총서번호1
SBookName2 = fullparser.GetTag("490a").FirstOrDefault(),//Search_Res[10],총서명2
SBookNum2 = fullparser.GetTag("490v").FirstOrDefault(),//Search_Res[11],총서번호2
Author = v_author,
BookComp = fullparser.GetTag("260b").FirstOrDefault(),//Search_Res[12],출판사
Price = fullparser.GetTag("950b").FirstOrDefault(),//Search_Res[13],정가
Marc = fullmarc,
ColCheck = "T"
};
// idx, 연번, 등록번호, 분류, 저자기호
// "", "", Search_Res[0], Search_Res[1], Search_Res[2],
@@ -304,30 +340,12 @@ namespace UniMarc
// 검색태그
// "", "T"
var item = new MarcPlanItem
{
RegNum = Search_Res[0],
ClassCode = Search_Res[1],
AuthorCode = Search_Res[2],
Volume = Search_Res[3],
Copy = Search_Res[4],
Prefix = Search_Res[5],
Isbn = Search_Res[6],
BookName = Search_Res[7],
SBookName1 = Search_Res[8],
SBookNum1 = Search_Res[9],
SBookName2 = Search_Res[10],
SBookNum2 = Search_Res[11],
Author = author_Fin,
BookComp = Search_Res[12],
Price = Search_Res[13],
Marc = grid[a],
ColCheck = "T"
};
if (ResultItems == null) ResultItems = new List<MarcPlanItem>();
ResultItems.Add(item);
}
if (warnmessage.Length > 0)
UTIL.MsgI(warnmessage.ToString());
}
#endregion

View File

@@ -135,34 +135,10 @@
<metadata name="bn1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAVdJREFUOE/Nz0tLAmEUBmB3kWRoCUVEISFUJGb1OywiKrDsIpZdkJAkDUvDQkij
UKSbVIvatKhNi9oERRAGEQXhjJdp7Hd83/eGs2jhLGQ20QtndTgP71Gp/m0KZ1XInlTjM6XG+4EG5fuK
yaTUIN8bIMUQ0gmtcuBtX/MLPMT0yoHnuA6kuA4iruI20lAZ+DiswWuyFum4Dk+7dbiP6kHEFVDBg+tQ
My4DLbjwG3DqbcORxygHXxJakGIQRFwDEf0gwjKI4AYtzIHmHaA5Oxg/CsYPIb7YIQced+qluvTLCyIs
gRYWQPNO0NwkWNYGxg+DcYNgGSu2Z0xy4C7SiJtwE66kuq049xlAs2Ng/AiS7nbszXci6jIh4jQjPGWR
A+U59hiluowbQMzVVfmgPKU/GdcPxlmx5TArB6KzJunf0gTtPcqBzeluhCYsCIz3wm/rUw78WX4AJCPY
nlwVm9EAAAAASUVORK5CYII=
</value>
</data>
<metadata name="bs1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>92, 17</value>
</metadata>
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAWtJREFUOE+1kE0ow2Ecx/9X5a2UiwtKOSCTmJBMhuQlMo3IvCUHDouEXHZwIOVC
DrhIDiQl5USy07zNa2tKf2laaRf84/J8xBCetab4XL/f76fn+SnKX4DrGLqrwbHDzywkWJlHdJYjLEbY
Wg8q4eYKlma+d1hbgF4TotWIaC+FuYmAktcXCksx2HrknBOHX1KbiTDngrXhW0kMdSBM2TA5Io+/wuI0
oiz5TcRwB7hPYazfLx3rDz7+gCsXNBb4v1SdgajTQ19TaOMP2NtFmPSIilSo0v1y7FHBnAdZMWi6aO51
kVCTGZoEzzWYciA/Dl9bBZwfvh3XmxIJy7PBJdx5odnAQ2E87qJUfPbtzwGjVpxJEWjH+4ElPD/BYBsY
EjhKicW3sSoVb0vSUFsq0W6upUxhdxMtOxZnYhhqVz1oj3JJUZSdpCg0p0POmLKhJofjNqaDeikX3tFG
uuHsQM65cML4ABzY5fA/eQGKIwMcVjm2bAAAAABJRU5ErkJggg==
</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -93,7 +94,7 @@ namespace UniMarc
string[] search_data = { IDX };
string cmd = db.More_Update("Specs_List", update_col, update_data, search_col, search_data);
Helper_DB.ExcuteNonQuery(cmd);
MessageBox.Show("저장완료되었습니다.");
UTIL.MsgI("저장완료되었습니다.");
sub.btn_Search_Click(null, null);
this.Close();
}

View File

@@ -1,4 +1,5 @@
using System;
using AR;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -53,7 +54,7 @@ namespace UniMarc
private void btn_Morge_Click(object sender, EventArgs e)
{
if (tb_ListName.Text == "") {
MessageBox.Show("저장될 목록명이 비어있습니다.", "Error");
UTIL.MsgE("저장될 목록명이 비어있습니다.");
return;
}
string MorgeUser = PUB.user.UserName;
@@ -90,7 +91,7 @@ namespace UniMarc
}
}
MessageBox.Show("병합되었습니다.");
UTIL.MsgI("병합되었습니다.");
sub.btn_Search_Click(null, null);
}

View File

@@ -83,7 +83,7 @@ namespace UniMarc
if (int.TryParse(marc.lbCustIDX.Text, out int custidx) == true && custidx > 0)
{
//string mCompidx = PUB.user.CompanyIdx;
var dt = Helper_DB.GetDT("Client", "c_sangho,c_author_first,c_author_typeK,c_author_typeE,c_author_firstbook,c_author_divtype,c_author_divnum,c_author_four,c_pijunja,c_author_four_use", $"campanyidx = {PUB.user.CompanyIdx} AND idx = {custidx}");
var dt = Helper_DB.ExecuteQueryData("Client", "c_sangho,c_author_first,c_author_typeK,c_author_typeE,c_author_firstbook,c_author_divtype,c_author_divnum,c_author_four,c_pijunja,c_author_four_use", $"campanyidx = {PUB.user.CompanyIdx} AND idx = {custidx}");
if (dt != null && dt.Rows.Count > 0)
{
var row = dt.Rows[0];
@@ -327,7 +327,7 @@ namespace UniMarc
if (Author[0].Length < 1)
{
MessageBox.Show(row[a] + "번째의 저자를 확인해주세요. \n (100a, 110a, 111a 중 1개 필수)");
UTIL.MsgE("저장할 목록명이 비어있습니다." + row[a] + "번째의 저자를 확인해주세요. \n (100a, 110a, 111a 중 1개 필수)");
return;
}

View File

@@ -77,7 +77,7 @@ namespace UniMarc
if (int.TryParse(marc2.lbCustIDX.Text, out int custidx) == true && custidx > 0)
{
//string mCompidx = PUB.user.CompanyIdx;
var dt = Helper_DB.GetDT("Client", "c_sangho,c_author_first,c_author_typeK,c_author_typeE,c_author_firstbook,c_author_divtype,c_author_divnum,c_author_four,c_pijunja,c_author_four_use", $"campanyidx = {PUB.user.CompanyIdx} AND idx = {custidx}");
var dt = Helper_DB.ExecuteQueryData("Client", "c_sangho,c_author_first,c_author_typeK,c_author_typeE,c_author_firstbook,c_author_divtype,c_author_divnum,c_author_four,c_pijunja,c_author_four_use", $"campanyidx = {PUB.user.CompanyIdx} AND idx = {custidx}");
if (dt != null && dt.Rows.Count > 0)
{
var row = dt.Rows[0];
@@ -321,11 +321,7 @@ namespace UniMarc
tmp_ViewMarc = st.AddTagInMarc(string.Format("056\t \t▼a{0}▼2{1}▲", insert_marc_data[12], cb_divNum.Text), tmp_ViewMarc);
insert_marc_data[14] = st.made_Ori_marc(tmp_ViewMarc);
if (Author[0].Length < 1)
{
MessageBox.Show( $"{a}번 줄,인덱스({dr.ListIdx})의 저자를 확인해주세요(ISBN:{dr.ISBN13}). \n (100a, 110a, 111a 중 1개 필수)");
return;
}
UTIL.MsgE( $"{a}번 줄,인덱스({dr.ListIdx})의 저자를 확인해주세요(ISBN:{dr.ISBN13}). \n (100a, 110a, 111a 중 1개 필수)");
Author[0] = Regex.Replace(Author[0], @"[^a-zA-Z0-9가-힣_]", "", RegexOptions.Singleline);
Author[1] = st.RemoveWordInBracket(Author[1]);

View File

@@ -1,4 +1,5 @@
using Microsoft.Office.Interop.Excel;
using AR;
using Microsoft.Office.Interop.Excel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -506,7 +507,7 @@ namespace UniMarc
return;
if (dataGridView1.Rows[row].Cells["marc2"].Value.ToString() == "")
{
MessageBox.Show("이전에 저장된 MARC 데이터가 없습니다.");
UTIL.MsgE("이전에 저장된 MARC 데이터가 없습니다.");
return;
}
Marc_Plan_Sub_MarcEdit me = new Marc_Plan_Sub_MarcEdit(this);

View File

@@ -29,7 +29,7 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Search_Infor2));
this.label1 = new System.Windows.Forms.Label();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
@@ -118,14 +118,14 @@
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, 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.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
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.False;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,

View File

@@ -344,7 +344,12 @@ namespace UniMarc
if (item == null) return;
var v_grade = 2;
int.TryParse(item.grade, out v_grade);
if (item.grade == "A") v_grade = 0;
else if (item.grade == "B") v_grade = 1;
else if (item.grade == "C") v_grade = 2;
else if (item.grade == "D") v_grade = 3;
//int.TryParse(item.grade, out v_grade);
var me = new fMarc_Editor(item.ISBN, item.Marc, SaveTarget.MasterMarc, item.etc1, item.etc2, v_grade);
me.row = e.RowIndex;
@@ -434,7 +439,7 @@ namespace UniMarc
if (dataList.Any() == false)
{
// UTIL.MsgE("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다");
MessageBox.Show("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다");
UTIL.MsgE("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다");
}
else me.OpenFillBlank(dataList, currentBoundItem.ISBN);
};
@@ -579,7 +584,7 @@ namespace UniMarc
if (string.IsNullOrEmpty(item.marc2))
{
MessageBox.Show("이전에 저장된 MARC 데이터가 없습니다.");
UTIL.MsgE("이전에 저장된 MARC 데이터가 없습니다.");
return;
}
@@ -670,7 +675,7 @@ namespace UniMarc
if (dataList.Any() == false)
{
// UTIL.MsgE("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다");
MessageBox.Show("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다");
UTIL.MsgE("비마크 데이터가 존재하지 않아 기능을 사용할 수 없습니다");
}
else me.OpenFillBlank(dataList, currentBoundItem.ISBN);
};

View File

@@ -165,9 +165,6 @@
<metadata name="bindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="bindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="bs1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>171, 17</value>
</metadata>
@@ -175,7 +172,7 @@
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
vQAADr0BR/uQrQAAATFJREFUOE9jYBg0oHDW8/9NC57/z5z4+D+6HAyEtz/AKceQO/PZ/1VH3v/HpSi+
+8H/4IZrWOXAIGPK0/8L933Aqii+5+H/pfv///evvoAhBwcJPU/+T9vyHkNRRPt9sObMWf//e5WewG1A
ZNej/72rP6AoCm29B9bcuu7/f//Ov/9d8g/gNiCw+eH/uvnv4IqCW+7+X7T3//+Odf//Z8z5+d+u7ud/
+4ztuA3wqLr/P3/aGxRFdsW3/6fP+f3fv+vbf53Cd/8tEtbjNsC+9O7/7MmvMRTpp5z/b1L04r9K1qf/
@@ -186,7 +183,7 @@
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
vQAADr0BR/uQrQAAALtJREFUOE9jYBgyILz9wX90MaJBfPeD/8EN18gzIL7n4f+l+///96++QLoBEe33
wZozZ/3/71V6gjQDQlvvgTW3rvv/37/z73+X/APEGxDccvf/or3//3es+/8/Y87P/3Z1P//bZ2wn3gAQ
sCu+/T99zu///l3f/usUvvtvkbCeNANAQD/l/H+Tohf/VbI+/TeOXEa6ASBgkHTiv2za1/+6wfPIMwAE
9FMv/9fwnUa+ASCg4jGBMgMGLwAA0BRgmCws/7cAAAAASUVORK5CYII=
@@ -195,7 +192,7 @@
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
vQAADr0BR/uQrQAAAKRJREFUOE9jYBh0oHDW8//oYiSB3JnP/id03yPfkIwpT//P2//7f0LXHfIMSeh5
8n/2vl//O7f+/e9Wepl0QyK7Hv2fsu3X/5Klf/8nTP/73yb3LGmGBDY//N+69j1Ys3HJl//S0df+G0cu
I94Qj6r7/0vmvoNrVnTpIV4zCNiX3v0f2PKMPM0gYJF3579NwRXyNIOAYdZt8jWDgE7aDfI1D00AAKB+
X6Bjq5qXAAAAAElFTkSuQmCC
@@ -204,7 +201,7 @@
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
vQAADr0BR/uQrQAAAStJREFUOE9jYBhUoHDW8//oYjAAkmta8Px/5sTHONUw5M589j+h+x5WBSC5VUfe
/w9vf4BVHgwypjz9P2//7/8JXXcwFIHkFu778D+44RqGHBwk9Dz5P3vfr/+dW//+dyu9jKIQJDdty/v/
/tUXcBsQ2fXo/5Rtv/6XLP37P2H63/82uWfhikFyvas//PcqPYHbgMDmh/9b174HazYu+fJfOvraf+PI
ZWANILm6+e/+u+QfwG2AR9X9/yVz38E1K7r0wBWD5PKnvflvn7EdtwH2pXf/B7Y8w9AMk8ue/Pq/RcJ6

View File

@@ -12,6 +12,7 @@ using System.IO;
using System.Xml.Linq;
using System.Data.SqlTypes;
using Microsoft.VisualBasic.Devices;
using AR;
namespace UniMarc
{
@@ -172,7 +173,7 @@ namespace UniMarc
//TargetGrid.Rows[a].Cells["marc"].Value = macro.MacroMarc(ViewMarcArray[count], idxArray, TagArray, RunCode);
count++;
}
MessageBox.Show("적용되었습니다!");
UTIL.MsgI("적용되었습니다!");
}
private void btn_AddList_Click(object sender, EventArgs e)
@@ -195,7 +196,7 @@ namespace UniMarc
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("중복된 목록명이 있습니다!");
UTIL.MsgE("중복된 목록명이 있습니다!");
return;
}
string[] Insert_Tbl = { "compidx", "listname", "user", "Macroidx" };
@@ -212,7 +213,7 @@ namespace UniMarc
{
if (cb_SearchList.SelectedIndex < 0)
{
MessageBox.Show("선택된 목록이 없습니다!");
UTIL.MsgE("선택된 목록이 없습니다!");
return;
}
@@ -238,7 +239,7 @@ namespace UniMarc
if (db.DB_Send_CMD_Search(db.More_DB_Search(Table, Search_T, Search_C)).Length < 2)
{
MessageBox.Show("선택된 목록이 없습니다!");
UTIL.MsgE("선택된 목록이 없습니다!");
return;
}
@@ -246,12 +247,12 @@ namespace UniMarc
string[] Update_C = { MacroIndex };
Helper_DB.ExcuteNonQuery(db.More_Update(Table, Update_T, Update_C, Search_T, Search_C));
MessageBox.Show("저장되었습니다!");
UTIL.MsgI("저장되었습니다!");
}
private void btn_ListRemove_Click(object sender, EventArgs e)
{
if (DialogResult.Yes != MessageBox.Show("현재 목록을 삭제하시겠습니까?", "목록 삭제", MessageBoxButtons.YesNo))
if (DialogResult.Yes != UTIL.MsgQ("현재 목록을 삭제하시겠습니까?"))
return;
string compidx = PUB.user.CompanyIdx;
@@ -263,12 +264,12 @@ namespace UniMarc
if (db.DB_Send_CMD_Search(db.More_DB_Search(Table, Search_T, Search_C)).Length < 2)
{
MessageBox.Show("선택된 목록이 없습니다!");
UTIL.MsgE("선택된 목록이 없습니다!");
return;
}
Helper_DB.ExcuteNonQuery(db.DB_Delete_More_term(Table, "compidx", compidx, Search_T, Search_C));
MessageBox.Show("삭제되었습니다!");
UTIL.MsgI("삭제되었습니다!");
Refresh_Macro_List();
}

View File

@@ -8,6 +8,7 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using AR;
using AuthorSymbol;
namespace UniMarc
@@ -42,14 +43,14 @@ namespace UniMarc
if (tb_author.Text == "")
{
MessageBox.Show("대표 저자를 입력해주세요!");
UTIL.MsgE("대표 저자를 입력해주세요!");
return;
}
if (cb_symbolK.Text == "커터 샌본 저자기호표")
{
if (!CheckEng(res))
{
MessageBox.Show("영어만 입력해주세요!");
UTIL.MsgE("영어만 입력해주세요!");
return;
}
}
@@ -58,7 +59,7 @@ namespace UniMarc
{
if (!CheckKor(res))
{
MessageBox.Show("한글만 입력해주세요!");
UTIL.MsgE("한글만 입력해주세요!");
return;
}
}

View File

@@ -19,6 +19,7 @@ namespace UniMarc
InitializeComponent();
url = _url;
ISBN = _isbn;
this.Text = $"크기보기({_isbn})";
}
private void Zoom_Picture_Load(object sender, EventArgs e)

View File

@@ -34,16 +34,12 @@ namespace UniMarc
this.etc1 = new System.Windows.Forms.RichTextBox();
this.etc2 = new System.Windows.Forms.RichTextBox();
this.panel6 = new System.Windows.Forms.Panel();
this.radD = new System.Windows.Forms.RadioButton();
this.radC = new System.Windows.Forms.RadioButton();
this.radB = new System.Windows.Forms.RadioButton();
this.radA = new System.Windows.Forms.RadioButton();
this.label6 = new System.Windows.Forms.Label();
this.btn_FillBlank = new System.Windows.Forms.Button();
this.lbl_SaveData = new System.Windows.Forms.TextBox();
this.btNext = new System.Windows.Forms.Button();
this.btPrev = new System.Windows.Forms.Button();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_FillBlank = new System.Windows.Forms.Button();
this.uC_SelectGrade1 = new UniMarc.UC_SelectGrade();
this.panel5.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.panel6.SuspendLayout();
@@ -84,6 +80,7 @@ namespace UniMarc
this.etc1.Size = new System.Drawing.Size(260, 224);
this.etc1.TabIndex = 32;
this.etc1.Text = "Remark1";
this.etc1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc1_KeyDown);
//
// etc2
//
@@ -95,15 +92,12 @@ namespace UniMarc
this.etc2.Size = new System.Drawing.Size(260, 224);
this.etc2.TabIndex = 32;
this.etc2.Text = "Remark2";
this.etc2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc1_KeyDown);
//
// panel6
//
this.panel6.Controls.Add(this.uC_SelectGrade1);
this.panel6.Controls.Add(this.btn_FillBlank);
this.panel6.Controls.Add(this.radD);
this.panel6.Controls.Add(this.radC);
this.panel6.Controls.Add(this.radB);
this.panel6.Controls.Add(this.radA);
this.panel6.Controls.Add(this.label6);
this.panel6.Controls.Add(this.lbl_SaveData);
this.panel6.Controls.Add(this.btNext);
this.panel6.Controls.Add(this.btPrev);
@@ -114,68 +108,20 @@ namespace UniMarc
this.panel6.Size = new System.Drawing.Size(266, 308);
this.panel6.TabIndex = 1;
//
// radD
// btn_FillBlank
//
this.radD.AutoSize = true;
this.radD.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radD.Location = new System.Drawing.Point(210, 12);
this.radD.Name = "radD";
this.radD.Size = new System.Drawing.Size(42, 27);
this.radD.TabIndex = 328;
this.radD.TabStop = true;
this.radD.Text = "D";
this.radD.UseVisualStyleBackColor = true;
//
// radC
//
this.radC.AutoSize = true;
this.radC.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radC.Location = new System.Drawing.Point(163, 12);
this.radC.Name = "radC";
this.radC.Size = new System.Drawing.Size(41, 27);
this.radC.TabIndex = 327;
this.radC.TabStop = true;
this.radC.Text = "C";
this.radC.UseVisualStyleBackColor = true;
//
// radB
//
this.radB.AutoSize = true;
this.radB.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radB.Location = new System.Drawing.Point(116, 12);
this.radB.Name = "radB";
this.radB.Size = new System.Drawing.Size(41, 27);
this.radB.TabIndex = 326;
this.radB.TabStop = true;
this.radB.Text = "B";
this.radB.UseVisualStyleBackColor = true;
//
// radA
//
this.radA.AutoSize = true;
this.radA.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.radA.Location = new System.Drawing.Point(69, 12);
this.radA.Name = "radA";
this.radA.Size = new System.Drawing.Size(41, 27);
this.radA.TabIndex = 325;
this.radA.TabStop = true;
this.radA.Text = "A";
this.radA.UseVisualStyleBackColor = true;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.label6.Location = new System.Drawing.Point(28, 22);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(31, 12);
this.label6.TabIndex = 324;
this.label6.Text = "등급";
this.btn_FillBlank.Location = new System.Drawing.Point(11, 178);
this.btn_FillBlank.Name = "btn_FillBlank";
this.btn_FillBlank.Size = new System.Drawing.Size(243, 46);
this.btn_FillBlank.TabIndex = 329;
this.btn_FillBlank.Text = "미소장 마크 코리스\r\n칸채우기";
this.btn_FillBlank.UseVisualStyleBackColor = true;
this.btn_FillBlank.Click += new System.EventHandler(this.btn_FillBlank_Click);
//
// lbl_SaveData
//
this.lbl_SaveData.Font = new System.Drawing.Font("굴림체", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.lbl_SaveData.ForeColor = System.Drawing.Color.PaleTurquoise;
this.lbl_SaveData.ForeColor = System.Drawing.Color.Black;
this.lbl_SaveData.Location = new System.Drawing.Point(9, 45);
this.lbl_SaveData.Multiline = true;
this.lbl_SaveData.Name = "lbl_SaveData";
@@ -213,15 +159,15 @@ namespace UniMarc
this.btn_Save.UseVisualStyleBackColor = true;
this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
//
// btn_FillBlank
// uC_SelectGrade1
//
this.btn_FillBlank.Location = new System.Drawing.Point(11, 178);
this.btn_FillBlank.Name = "btn_FillBlank";
this.btn_FillBlank.Size = new System.Drawing.Size(243, 46);
this.btn_FillBlank.TabIndex = 329;
this.btn_FillBlank.Text = "미소장 마크 코리스\r\n칸채우기";
this.btn_FillBlank.UseVisualStyleBackColor = true;
this.btn_FillBlank.Click += new System.EventHandler(this.btn_FillBlank_Click);
this.uC_SelectGrade1.BackColor = System.Drawing.Color.White;
this.uC_SelectGrade1.Grade = -1;
this.uC_SelectGrade1.GradeName = "";
this.uC_SelectGrade1.Location = new System.Drawing.Point(11, 10);
this.uC_SelectGrade1.Name = "uC_SelectGrade1";
this.uC_SelectGrade1.Size = new System.Drawing.Size(243, 29);
this.uC_SelectGrade1.TabIndex = 330;
//
// fMarc_Editor
//
@@ -251,11 +197,7 @@ namespace UniMarc
private System.Windows.Forms.Button btNext;
private System.Windows.Forms.Button btPrev;
private System.Windows.Forms.Button btn_Save;
private System.Windows.Forms.RadioButton radD;
private System.Windows.Forms.RadioButton radC;
private System.Windows.Forms.RadioButton radB;
private System.Windows.Forms.RadioButton radA;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Button btn_FillBlank;
private UC_SelectGrade uC_SelectGrade1;
}
}

View File

@@ -32,18 +32,19 @@ namespace UniMarc
SaveTarget Target;
public fMarc_Editor(string isbn, string marcstring, SaveTarget _target,string etc1, string etc2,int grade)
public fMarc_Editor(string isbn, string marcstring, SaveTarget _target, string etc1, string etc2, int grade)
{
InitializeComponent();
db.DBcon();
this.etc1.Text = etc1;
this.etc2.Text = etc2;
//update grade radio button
if (grade == 0) radA.Checked = true;
else if(grade == 1) radB.Checked = true;
else if(grade == 2) radC.Checked = true;
else if(grade == 3) radD.Checked = true;
this.uC_SelectGrade1.Grade = grade;
//if (grade == 0) radA.Checked = true;
//else if (grade == 1) radB.Checked = true;
//else if (grade == 2) radC.Checked = true;
//else if (grade == 3) radD.Checked = true;
//else radC.Checked = true;
Target = _target;
marcEditorControl1 = new MarcEditorControl();
@@ -51,6 +52,7 @@ namespace UniMarc
marcEditorControl1.Dock = DockStyle.Fill;
this.StartPosition = FormStartPosition.CenterScreen;
this.Controls.Add(marcEditorControl1);
marcEditorControl1.BringToFront();
this.KeyPreview = true;
this.KeyDown += (s1, e1) =>
{
@@ -169,11 +171,11 @@ namespace UniMarc
string tag008Value = marcEditorControl1.text008.Text;
var v_grade = "";
if (radA.Checked) v_grade = "0";
else if (radB.Checked) v_grade = "1";
else if (radC.Checked) v_grade = "2";
else if (radD.Checked) v_grade = "3";
var v_grade = uC_SelectGrade1.Grade == -1 ? "2" : uC_SelectGrade1.Grade.ToString() ;
//if (radA.Checked) v_grade = "0";
//else if (radB.Checked) v_grade = "1";
//else if (radC.Checked) v_grade = "2";
//else if (radD.Checked) v_grade = "3";
// Extract tags for metadata
string[] Search_Tag = {
@@ -236,7 +238,7 @@ namespace UniMarc
string cmd = db.More_Update(Table, Update_Col, Update_data, Search_Col, Search_data);
var rlt = Helper_DB.ExcuteNonQuery(cmd);
if(rlt.applyCount == 1)
if (rlt.applyCount == 1)
{
// Notify Parent
BookUpdated?.Invoke(this, new BookUpdatedEventArgs
@@ -256,10 +258,11 @@ namespace UniMarc
UTIL.MsgI($"저장되었습니다!\nDatabase = {this.Target}");
}
else if(rlt.applyCount == 0){
else if (rlt.applyCount == 0)
{
UTIL.MsgE($"저장된 자료가 없습니다\nIDX:{Search_data[0]}\n\n개발자 문의 하세요");
}
else if(rlt.applyCount > 1)
else if (rlt.applyCount > 1)
{
UTIL.MsgE($"복수({rlt.applyCount})의 자료가 업데이트 되었습니다\nIDX:{Search_data[0]}\n\n개발자 문의 하세요");
}
@@ -269,5 +272,15 @@ namespace UniMarc
{
}
private void etc1_KeyDown(object sender, KeyEventArgs e)
{
var rt = sender as RichTextBox;
if (rt == null) return;
if (e.KeyCode == Keys.F5)
{
rt.AppendText("[" + DateTime.Now.ToString("yy-MM-dd") + "]");
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More