Compare commits
6 Commits
c2c9122c55
...
c813ffe9e6
| Author | SHA1 | Date | |
|---|---|---|---|
| c813ffe9e6 | |||
| c5571a98ab | |||
| 3cfd7ff12c | |||
| 1b77fd02b0 | |||
| 5271f9f1c3 | |||
| 6add9a00bc |
@@ -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)
|
||||
{
|
||||
return true;
|
||||
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;
|
||||
}
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
378
unimarc/unimarc/Helper/MarcParser.cs
Normal file
378
unimarc/unimarc/Helper/MarcParser.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
1
unimarc/unimarc/Helper/sample_fullmarc.txt
Normal file
1
unimarc/unimarc/Helper/sample_fullmarc.txt
Normal 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
|
||||
15
unimarc/unimarc/Helper/sample_richtext.txt
Normal file
15
unimarc/unimarc/Helper/sample_richtext.txt
Normal 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▲
|
||||
@@ -55,7 +55,7 @@ namespace UniMarc
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.ToString(), "ExecuteQueryData Error");
|
||||
UTIL.MsgE(ex.ToString());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -101,6 +101,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 +748,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;
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace UniMarc.ListOfValue
|
||||
{
|
||||
if (this.bs.Current == null)
|
||||
{
|
||||
MessageBox.Show("선택된 데이터가 없습니다.", "알림", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
UTIL.MsgE("선택된 데이터가 없습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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" +
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -286,7 +286,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 +304,7 @@ namespace UniMarc
|
||||
|
||||
if (db_res1.Length < 3)
|
||||
{
|
||||
MessageBox.Show("DB호출 에러!", "Error");
|
||||
UTIL.MsgE("DB호출 에러!");
|
||||
return "False";
|
||||
}
|
||||
string tel = string.Empty;
|
||||
@@ -377,7 +377,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 +602,7 @@ namespace UniMarc
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageBox.Show(e.ToString());
|
||||
UTIL.MsgE(e.ToString());
|
||||
return "False";
|
||||
}
|
||||
}
|
||||
@@ -640,7 +640,7 @@ namespace UniMarc
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageBox.Show(e.ToString());
|
||||
UTIL.MsgE(e.ToString());
|
||||
}
|
||||
}
|
||||
#region MK_Excel_Sub
|
||||
@@ -824,9 +824,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 +1307,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 +1326,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 +1363,7 @@ namespace UniMarc
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.ToString());
|
||||
UTIL.MsgE(ex.ToString());
|
||||
this.LastException = ex;
|
||||
|
||||
if (serverFullPathFile.Contains(@"\ZOOM\"))
|
||||
@@ -1933,7 +1931,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);
|
||||
|
||||
@@ -2459,7 +2457,7 @@ namespace UniMarc
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(status, "Error");
|
||||
UTIL.MsgE(status);
|
||||
return "Error";
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -419,6 +420,7 @@
|
||||
<DependentUpon>Mac_List_Edit.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="마크\MarcBookItem.cs" />
|
||||
<Compile Include="마크\MarcCopyItem.cs" />
|
||||
<Compile Include="마크\MarcCopySelect2.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -2045,6 +2047,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 +2190,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">
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -206,12 +212,12 @@ namespace UniMarc
|
||||
private void input_TextBox(string[] Text)
|
||||
{
|
||||
tb_book_name.Text = Text[0];
|
||||
tb_isbn.Text = Text[1];
|
||||
tb_isbn.Text = Text[1];
|
||||
tb_book_comp.Text = Text[2];
|
||||
tb_author.Text = Text[3];
|
||||
tb_pay.Text = Text[4];
|
||||
tb_order.Text = Text[5];
|
||||
tb_count.Text = Text[6];
|
||||
tb_author.Text = Text[3];
|
||||
tb_pay.Text = Text[4];
|
||||
tb_order.Text = Text[5];
|
||||
tb_count.Text = Text[6];
|
||||
}
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
// 여백 설정
|
||||
|
||||
@@ -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에 출고율을 추가하여 집어넣는다.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 기본표목 생성 서브 함수
|
||||
|
||||
326
unimarc/unimarc/마크/AddMarc2.Designer.cs
generated
326
unimarc/unimarc/마크/AddMarc2.Designer.cs
generated
@@ -29,53 +29,57 @@ 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.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.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.lbl_SaveData = new System.Windows.Forms.TextBox();
|
||||
this.marcEditorControl1 = new UniMarc.MarcEditorControl();
|
||||
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 +94,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 +112,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 +168,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 +183,240 @@ 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.lbl_SaveData);
|
||||
this.panel6.Controls.Add(this.cb_grade);
|
||||
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.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.btn_Empty);
|
||||
this.panel6.Controls.Add(this.btn_close);
|
||||
this.panel6.Controls.Add(this.btSaveNew);
|
||||
this.panel6.Controls.Add(this.lbl_SaveData);
|
||||
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;
|
||||
//
|
||||
// lbl_SaveData
|
||||
// btSave
|
||||
//
|
||||
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.Name = "lbl_SaveData";
|
||||
this.lbl_SaveData.Size = new System.Drawing.Size(64, 19);
|
||||
this.lbl_SaveData.TabIndex = 319;
|
||||
this.lbl_SaveData.Text = "[] []";
|
||||
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);
|
||||
//
|
||||
// cb_grade
|
||||
// panel1
|
||||
//
|
||||
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.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);
|
||||
//
|
||||
// radD
|
||||
//
|
||||
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(211, 121);
|
||||
this.radD.Name = "radD";
|
||||
this.radD.Size = new System.Drawing.Size(42, 27);
|
||||
this.radD.TabIndex = 403;
|
||||
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(164, 121);
|
||||
this.radC.Name = "radC";
|
||||
this.radC.Size = new System.Drawing.Size(41, 27);
|
||||
this.radC.TabIndex = 402;
|
||||
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(117, 121);
|
||||
this.radB.Name = "radB";
|
||||
this.radB.Size = new System.Drawing.Size(41, 27);
|
||||
this.radB.TabIndex = 401;
|
||||
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(70, 121);
|
||||
this.radA.Name = "radA";
|
||||
this.radA.Size = new System.Drawing.Size(41, 27);
|
||||
this.radA.TabIndex = 400;
|
||||
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(16, 78);
|
||||
this.label6.Location = new System.Drawing.Point(29, 131);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(62, 12);
|
||||
this.label6.TabIndex = 223;
|
||||
this.label6.Text = "마크 등급";
|
||||
this.label6.Size = new System.Drawing.Size(31, 12);
|
||||
this.label6.TabIndex = 399;
|
||||
this.label6.Text = "등급";
|
||||
//
|
||||
// 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.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(255, 244);
|
||||
this.lbl_SaveData.TabIndex = 319;
|
||||
this.lbl_SaveData.Text = "[] []";
|
||||
//
|
||||
// marcEditorControl1
|
||||
//
|
||||
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;
|
||||
//
|
||||
// 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.TextBox lbl_SaveData;
|
||||
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 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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
this.radD.Checked = true; //등급기본
|
||||
|
||||
}
|
||||
|
||||
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
|
||||
@@ -49,104 +54,64 @@ 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();
|
||||
}
|
||||
using (var mcs = new MarcCopySelect2(SearchCol, SearchText))
|
||||
if (mcs.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
/// 0:idx <br></br>
|
||||
/// 1:compidx <br></br>
|
||||
/// 2:user <br></br>
|
||||
/// 3:date <br></br>
|
||||
/// 4:grade <br></br>
|
||||
/// 5:tag008 <br></br>
|
||||
/// 6:LineMarc</param>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// ISBN 검색후 특정 마크 선택시 현재폼에 적용시키는 폼
|
||||
/// </summary>
|
||||
/// <param name="Marc">뷰형태 마크데이터</param>
|
||||
/// <param name="ISBN">ISBN</param>
|
||||
/// <param name="GridData">
|
||||
/// 0:idx <br></br>
|
||||
/// 1:compidx <br></br>
|
||||
/// 2:user <br></br>
|
||||
/// 3:date <br></br>
|
||||
/// 4:grade <br></br>
|
||||
/// 5:tag008 <br></br>
|
||||
/// 6:LineMarc</param>
|
||||
public void SelectMarc_Sub(string Marc, string ISBN, string[] GridData)
|
||||
{
|
||||
_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];
|
||||
}
|
||||
string lbl_Midx = "";
|
||||
if (selected.compidx != PUB.user.CompanyIdx)
|
||||
{
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
|
||||
rtEtc1.Text = selected.remark1;
|
||||
rtEtc2.Text = selected.remark2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void btn_Empty_Click(object sender, EventArgs e)
|
||||
{
|
||||
TextReset();
|
||||
@@ -161,17 +126,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,360 +185,150 @@ 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();
|
||||
string[] EditTable =
|
||||
{
|
||||
"compidx", "marc", "marc_chk","marc1", "marc_chk1", "비고1",
|
||||
"비고2", "division", "008tag", "date", "user",
|
||||
"grade"
|
||||
};
|
||||
string[] EditColumn =
|
||||
{
|
||||
PUB.user.CompanyIdx, oriMarc, "1",mOldMarc, "0", etc1,
|
||||
etc2, tag056, param.text008, date, PUB.user.UserName,
|
||||
grade.ToString()
|
||||
};
|
||||
string[] SearchTable = { "idx", "compidx" };
|
||||
string[] SearchColumn = { MarcIndex, PUB.user.CompanyIdx };
|
||||
|
||||
//int marcChk = subMarcChk(Table, MarcIndex);
|
||||
//if (IsCovertDate)
|
||||
// marcChk--;
|
||||
if (grade.isEmpty()) grade = "2";
|
||||
|
||||
//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);
|
||||
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 =
|
||||
if (MarcIndex.isEmpty())
|
||||
{
|
||||
//insert
|
||||
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 == "")
|
||||
//데이터중복검사필요
|
||||
//동일 isbnd있다면 그래도 저장할건지 한번 더 물어봐야 함
|
||||
if (DB_Utils.ExistISBN(v_isbn))
|
||||
{
|
||||
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", "▼");
|
||||
if (UTIL.MsgQ("동일한 ISBN이 이미 존재합니다. 그래도 저장하시겠습니까?") == DialogResult.No)
|
||||
return;
|
||||
}
|
||||
|
||||
// 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)
|
||||
string[] InsertColumn =
|
||||
{
|
||||
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));
|
||||
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
|
||||
};
|
||||
|
||||
//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));
|
||||
else
|
||||
result += str;
|
||||
|
||||
result = TrimEndGubun(result, TagNum);
|
||||
}
|
||||
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
|
||||
break;
|
||||
|
||||
loop = true;
|
||||
}
|
||||
|
||||
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]);
|
||||
}
|
||||
lbl_Midx.Tag = rlt.value.ToString();
|
||||
lbl_Midx.Text = rlt.value.ToString();
|
||||
UTIL.MsgI($"저장 완료\n\nIDX:{rlt.value}");
|
||||
}
|
||||
|
||||
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++)
|
||||
else
|
||||
{
|
||||
str = str.TrimEnd(gu[i]);
|
||||
//update
|
||||
|
||||
string[] EditTable =
|
||||
{
|
||||
"compidx", "marc", "marc_chk","marc1", "marc_chk1", "비고1",
|
||||
"비고2", "division", "008tag", "date", "user",
|
||||
"grade"
|
||||
};
|
||||
string[] EditColumn =
|
||||
{
|
||||
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 };
|
||||
|
||||
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", " ")));
|
||||
var rlt = Helper_DB.ExcuteNonQuery(UpCMD);
|
||||
if (rlt.applyCount != 1)
|
||||
UTIL.MsgE(rlt.errorMessage);
|
||||
else
|
||||
UTIL.MsgI("변경 완료");
|
||||
}
|
||||
//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)
|
||||
{
|
||||
@@ -580,6 +336,86 @@ namespace UniMarc
|
||||
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 = "";
|
||||
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")+"]");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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("삭제되었습니다");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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("삭제되었습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.CodeDom;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -171,8 +172,8 @@ 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 (cb_api.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
|
||||
if (cb_filter.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
|
||||
|
||||
clear_api();
|
||||
|
||||
@@ -199,7 +200,7 @@ namespace UniMarc
|
||||
}
|
||||
|
||||
// 총 검색 횟수, 일치, 중복
|
||||
MessageBox.Show("검색이 완료되었습니다!");
|
||||
UTIL.MsgI("검색이 완료되었습니다!");
|
||||
|
||||
progressBar1.Value = dataGridView1.Rows.Count;
|
||||
dataGridView1.CurrentCell = dataGridView1.Rows[0].Cells["num"];
|
||||
@@ -503,7 +504,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 +736,7 @@ namespace UniMarc
|
||||
Helper_DB.ExcuteNonQuery(CMcmd);
|
||||
}
|
||||
}
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
UTIL.MsgI("저장되었습니다!");
|
||||
save = true;
|
||||
}
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
@@ -836,7 +837,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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.CodeDom;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -194,8 +195,8 @@ 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 (cb_api.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
|
||||
if (cb_filter.SelectedIndex == -1) { UTIL.MsgE("조건이 선택되지 않았습니다."); return; }
|
||||
|
||||
clear_api();
|
||||
|
||||
@@ -222,7 +223,7 @@ namespace UniMarc
|
||||
}
|
||||
|
||||
// 총 검색 횟수, 일치, 중복
|
||||
MessageBox.Show("검색이 완료되었습니다!");
|
||||
UTIL.MsgI("검색이 완료되었습니다!");
|
||||
|
||||
progressBar1.Value = bookList.Count;
|
||||
bs1.Position = 0;
|
||||
@@ -530,7 +531,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++)
|
||||
{
|
||||
@@ -768,7 +769,7 @@ namespace UniMarc
|
||||
Helper_DB.ExcuteNonQuery(CMcmd);
|
||||
}
|
||||
}
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
UTIL.MsgI("저장되었습니다!");
|
||||
save = true;
|
||||
}
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
@@ -876,7 +877,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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -169,12 +166,12 @@ namespace UniMarc
|
||||
{
|
||||
if (lbl_Client.Text == "Client")
|
||||
{
|
||||
MessageBox.Show("납품처명을 선택해주세요");
|
||||
UTIL.MsgE("납품처명을 선택해주세요");
|
||||
return;
|
||||
}
|
||||
if (lbl_Area.Text == "")
|
||||
{
|
||||
MessageBox.Show("설정된 지역이 없습니다. 납품처 관리에서 확인해주세요.");
|
||||
UTIL.MsgE("설정된 지역이 없습니다. 납품처 관리에서 확인해주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -196,12 +193,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 +237,7 @@ namespace UniMarc
|
||||
}
|
||||
|
||||
|
||||
MessageBox.Show("완료되었습니다.");
|
||||
UTIL.MsgI("완료되었습니다.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace UniMarc
|
||||
{
|
||||
if (string.IsNullOrEmpty(tb_ListName.Text))
|
||||
{
|
||||
MessageBox.Show("목록명을 입력하세요.");
|
||||
UTIL.MsgI("목록명을 입력하세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 기본표목 생성 서브 함수
|
||||
|
||||
@@ -413,11 +413,11 @@ namespace UniMarc
|
||||
gradeNo = 2;
|
||||
}
|
||||
|
||||
if (gradeNo == 0 )
|
||||
if (gradeNo == 0)
|
||||
radA.Checked = true;
|
||||
else if(gradeNo == 1)
|
||||
else if (gradeNo == 1)
|
||||
radB.Checked = true;
|
||||
else if(gradeNo == 3)
|
||||
else if (gradeNo == 3)
|
||||
radD.Checked = true;
|
||||
else
|
||||
radC.Checked = true;
|
||||
@@ -531,37 +531,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)
|
||||
{
|
||||
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];
|
||||
|
||||
// row.ForeColor = SetGradeColor(row.Grade); // Handled by MarcBookItem automatically
|
||||
row.BackColor = Color.Yellow;
|
||||
|
||||
var currentitem = this.bs1.Current as MarcBookItem;
|
||||
if (currentitem != null && currentitem == row)
|
||||
using (var copySelect = new MarcCopySelect2("isbn", dr.ISBN13))
|
||||
{
|
||||
List_Book_SelectionChanged(null, null);
|
||||
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
|
||||
dr.BackColor = Color.Yellow;
|
||||
|
||||
var currentitem = this.bs1.Current as MarcBookItem;
|
||||
if (currentitem != null && currentitem == dr)
|
||||
{
|
||||
List_Book_SelectionChanged(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#region Save_Click_Sub
|
||||
|
||||
/// <summary>
|
||||
@@ -841,29 +840,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)
|
||||
@@ -943,17 +920,16 @@ 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);
|
||||
fb.ShowDialog();
|
||||
var fullmarc = marcEditorControl1.MakeMarcString();
|
||||
using (var fb = new Marc_CopyForm(fullmarc))
|
||||
fb.ShowDialog();
|
||||
}
|
||||
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Param.NewMake == false && string.IsNullOrEmpty(Param.ISBN13))
|
||||
{
|
||||
MessageBox.Show("마크가 선택되지않았습니다.");
|
||||
UTIL.MsgE("마크가 선택되지않았습니다.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -965,24 +941,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();
|
||||
|
||||
|
||||
//아래는 실제 폼에서의 저장코드
|
||||
@@ -993,10 +966,10 @@ 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";
|
||||
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 +996,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", " ")));
|
||||
@@ -1041,7 +1014,7 @@ namespace UniMarc
|
||||
|
||||
// 4. BindingSource 갱신으로 UI 자동 업데이트
|
||||
bs1.ResetCurrentItem();
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
UTIL.MsgI("저장되었습니다!");
|
||||
}
|
||||
|
||||
private void btn_FillBlank_Click(object sender, EventArgs e)
|
||||
@@ -1052,7 +1025,7 @@ namespace UniMarc
|
||||
|
||||
if (string.IsNullOrEmpty(ISBN))
|
||||
{
|
||||
MessageBox.Show("ISBN이 존재하지않습니다!");
|
||||
UTIL.MsgE("ISBN이 존재하지않습니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1108,5 +1081,20 @@ 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") + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
161
unimarc/unimarc/마크/Marc2.designer.cs
generated
161
unimarc/unimarc/마크/Marc2.designer.cs
generated
@@ -96,16 +96,18 @@
|
||||
this.etc1 = new System.Windows.Forms.RichTextBox();
|
||||
this.etc2 = new System.Windows.Forms.RichTextBox();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btCopy = new System.Windows.Forms.Button();
|
||||
this.btn_FillBlank = new System.Windows.Forms.Button();
|
||||
this.btPrev = new System.Windows.Forms.Button();
|
||||
this.btNext = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
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.btn_FillBlank = new System.Windows.Forms.Button();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.marcEditorControl1 = new UniMarc.MarcEditorControl();
|
||||
label31 = new System.Windows.Forms.Label();
|
||||
@@ -128,6 +130,7 @@
|
||||
this.panel5.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.tableLayoutPanel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label31
|
||||
@@ -680,6 +683,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";
|
||||
@@ -731,7 +735,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 +765,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,19 +777,18 @@
|
||||
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.tableLayoutPanel2);
|
||||
this.panel6.Controls.Add(this.button3);
|
||||
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.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);
|
||||
@@ -793,11 +797,83 @@
|
||||
this.panel6.TabIndex = 1;
|
||||
this.panel6.Paint += new System.Windows.Forms.PaintEventHandler(this.panel6_Paint);
|
||||
//
|
||||
// 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.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;
|
||||
//
|
||||
// btCopy
|
||||
//
|
||||
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);
|
||||
//
|
||||
// btn_FillBlank
|
||||
//
|
||||
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.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(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);
|
||||
//
|
||||
// radD
|
||||
//
|
||||
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.Location = new System.Drawing.Point(196, 46);
|
||||
this.radD.Name = "radD";
|
||||
this.radD.Size = new System.Drawing.Size(42, 27);
|
||||
this.radD.TabIndex = 323;
|
||||
@@ -809,7 +885,7 @@
|
||||
//
|
||||
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.Location = new System.Drawing.Point(149, 46);
|
||||
this.radC.Name = "radC";
|
||||
this.radC.Size = new System.Drawing.Size(41, 27);
|
||||
this.radC.TabIndex = 322;
|
||||
@@ -821,7 +897,7 @@
|
||||
//
|
||||
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.Location = new System.Drawing.Point(102, 46);
|
||||
this.radB.Name = "radB";
|
||||
this.radB.Size = new System.Drawing.Size(41, 27);
|
||||
this.radB.TabIndex = 321;
|
||||
@@ -833,7 +909,7 @@
|
||||
//
|
||||
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.Location = new System.Drawing.Point(55, 46);
|
||||
this.radA.Name = "radA";
|
||||
this.radA.Size = new System.Drawing.Size(41, 27);
|
||||
this.radA.TabIndex = 320;
|
||||
@@ -845,47 +921,17 @@
|
||||
//
|
||||
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.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, 123);
|
||||
this.lbl_SaveData.Size = new System.Drawing.Size(241, 131);
|
||||
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);
|
||||
//
|
||||
// btPrev
|
||||
//
|
||||
this.btPrev.Location = new System.Drawing.Point(11, 269);
|
||||
this.btPrev.Name = "btPrev";
|
||||
this.btPrev.Size = new System.Drawing.Size(110, 33);
|
||||
this.btPrev.TabIndex = 229;
|
||||
this.btPrev.Text = "이 전(F7)";
|
||||
this.btPrev.UseVisualStyleBackColor = true;
|
||||
this.btPrev.Click += new System.EventHandler(this.btPrev_Click);
|
||||
//
|
||||
// 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,21 +939,11 @@
|
||||
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.Location = new System.Drawing.Point(14, 56);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(31, 12);
|
||||
this.label6.TabIndex = 223;
|
||||
@@ -920,7 +956,7 @@
|
||||
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;
|
||||
//
|
||||
// Marc2
|
||||
@@ -928,7 +964,7 @@
|
||||
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);
|
||||
@@ -951,6 +987,7 @@
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.panel6.PerformLayout();
|
||||
this.tableLayoutPanel2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -1013,7 +1050,7 @@
|
||||
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;
|
||||
@@ -1024,5 +1061,7 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
44
unimarc/unimarc/마크/MarcCopyItem.cs
Normal file
44
unimarc/unimarc/마크/MarcCopyItem.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
215
unimarc/unimarc/마크/MarcCopySelect2.Designer.cs
generated
215
unimarc/unimarc/마크/MarcCopySelect2.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
public void Init(string search_col, string search_Target, string CD_LP)
|
||||
{
|
||||
SettingGrid_CDLP();
|
||||
|
||||
btn_ShowDeleteMarc.Visible = false;
|
||||
btn_Delete.Visible = false;
|
||||
var search_Target = tb_SearchBox.Text.Trim();
|
||||
var search_col = cb_SearchFilter.Text.Trim();
|
||||
|
||||
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`, `서명`, `저자`, " +
|
||||
// 0 1 2 3 4
|
||||
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++)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
dataGridView1.Rows[a].DefaultCellStyle.ForeColor = SetGradeColor(grade, isMyData);
|
||||
SaveDataCheck(savedate, a);
|
||||
}
|
||||
}
|
||||
|
||||
private string ChangeGrade(string Grade)
|
||||
private string CalculateRealMarc(MarcCopyItem item)
|
||||
{
|
||||
switch (Grade)
|
||||
{
|
||||
case "0":
|
||||
return "A";
|
||||
case "1":
|
||||
return "B";
|
||||
case "2":
|
||||
return "C";
|
||||
case "3":
|
||||
return "D";
|
||||
|
||||
case "A":
|
||||
return "0";
|
||||
case "B":
|
||||
return "1";
|
||||
case "C":
|
||||
return "2";
|
||||
case "D":
|
||||
return "3";
|
||||
|
||||
default:
|
||||
return "D";
|
||||
}
|
||||
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 "";
|
||||
}
|
||||
|
||||
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
229
unimarc/unimarc/마크/MarcEditorControl.Designer.cs
generated
229
unimarc/unimarc/마크/MarcEditorControl.Designer.cs
generated
@@ -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;
|
||||
|
||||
@@ -122,23 +122,43 @@ 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 (extractedIsbn.isEmpty())
|
||||
if (dbMarc.isEmpty() == false)
|
||||
{
|
||||
//마크데이터에서 ISBN(020a)을 찾아서 설정한다.
|
||||
string[] isbnTags = st.Take_Tag(dbMarc, new string[] { "020a" });
|
||||
if (isbnTags.Length > 0 && !isbnTags[0].isEmpty())
|
||||
LoadMarc(dbMarc); //여기에서도 008을 설정한다
|
||||
if (extractedIsbn.isEmpty())
|
||||
{
|
||||
extractedIsbn = isbnTags[0].Trim();
|
||||
//마크데이터에서 ISBN(020a)을 찾아서 설정한다.
|
||||
string[] isbnTags = st.Take_Tag(dbMarc, new string[] { "020a" });
|
||||
if (isbnTags.Length > 0 && !isbnTags[0].isEmpty())
|
||||
{
|
||||
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;
|
||||
}
|
||||
@@ -215,13 +234,13 @@ namespace UniMarc
|
||||
|
||||
|
||||
//if (e.KeyCode == Keys.F9)
|
||||
// SaveGrade(Keys.F9);
|
||||
// SaveGrade(Keys.F9);
|
||||
//else if (e.KeyCode == Keys.F10)
|
||||
// SaveGrade(Keys.F10);
|
||||
// SaveGrade(Keys.F10);
|
||||
//else if (e.KeyCode == Keys.F11)
|
||||
// SaveGrade(Keys.F11);
|
||||
// SaveGrade(Keys.F11);
|
||||
//else if (e.KeyCode == Keys.F12)
|
||||
// SaveGrade(Keys.F12);
|
||||
// SaveGrade(Keys.F12);
|
||||
if (e.KeyCode == Keys.F3)
|
||||
{
|
||||
rt.SelectionColor = Color.Blue;
|
||||
@@ -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,8 +470,8 @@ namespace UniMarc
|
||||
|
||||
if (!isTag)
|
||||
{
|
||||
MessageBox.Show(msg + "태그가 없습니다.");
|
||||
return false;
|
||||
if (UTIL.MsgQ(msg + "태그가 없습니다.\n\n진행 할까요?") != DialogResult.Yes)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool is1XX = false;
|
||||
@@ -452,8 +486,8 @@ namespace UniMarc
|
||||
|
||||
if (!is1XX)
|
||||
{
|
||||
MessageBox.Show("기본표목이 존재하지않습니다.");
|
||||
return false;
|
||||
if (UTIL.MsgQ("기본표목(100a | 110a | 111a)이 존재하지않습니다.\n\n진행 할까요?") != DialogResult.Yes)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool is7XX = false;
|
||||
@@ -470,8 +504,8 @@ namespace UniMarc
|
||||
|
||||
if (!is7XX)
|
||||
{
|
||||
MessageBox.Show("부출표목이 존재하지않습니다.");
|
||||
return false;
|
||||
if (UTIL.MsgQ("부출표목(700a | 710a | 711a)이 존재하지않습니다.\n\n진행 할까요?") != DialogResult.Yes)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -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
|
||||
day = input_date.Value.ToString("yy") + input_date.Value.ToString("MM") + input_date.Value.ToString("dd");
|
||||
//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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,12 +16,22 @@ 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 RadioButton radD;
|
||||
private RadioButton radC;
|
||||
private RadioButton radB;
|
||||
private RadioButton radA;
|
||||
private Button btn_Save;
|
||||
private Label label6;
|
||||
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 +44,7 @@ namespace UniMarc
|
||||
// Wire up events
|
||||
|
||||
this.Controls.Add(marcEditorControl1);
|
||||
marcEditorControl1.BringToFront();
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
|
||||
|
||||
@@ -41,38 +52,32 @@ namespace UniMarc
|
||||
var tags = st.Take_Tag(marcstring, new string[] { "245a" });
|
||||
var BookName = tags.Length > 0 ? tags[0] : "";
|
||||
this.Text = $"마크 복제 - {BookName}";
|
||||
|
||||
this.radC.Checked = true;
|
||||
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.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.btn_Save = new System.Windows.Forms.Button();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
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 +87,160 @@ 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.button3);
|
||||
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.btn_Save);
|
||||
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";
|
||||
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);
|
||||
//
|
||||
// radD
|
||||
//
|
||||
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(196, 46);
|
||||
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;
|
||||
//
|
||||
// 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(149, 46);
|
||||
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;
|
||||
//
|
||||
// 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(102, 46);
|
||||
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(55, 46);
|
||||
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;
|
||||
//
|
||||
// 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);
|
||||
//
|
||||
// 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(14, 56);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(31, 12);
|
||||
this.label6.TabIndex = 223;
|
||||
this.label6.Text = "등급";
|
||||
//
|
||||
// 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.panel6.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -103,6 +252,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 +285,77 @@ namespace UniMarc
|
||||
}
|
||||
}
|
||||
|
||||
//등급추가
|
||||
string v_grade = "2";
|
||||
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 +371,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") + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 + "가 성공적으로 저장되었습니다!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace UniMarc
|
||||
InitializeComponent();
|
||||
url = _url;
|
||||
ISBN = _isbn;
|
||||
this.Text = $"크기보기({_isbn})";
|
||||
}
|
||||
|
||||
private void Zoom_Picture_Load(object sender, EventArgs e)
|
||||
|
||||
26
unimarc/unimarc/마크/fMarc_Editor.Designer.cs
generated
26
unimarc/unimarc/마크/fMarc_Editor.Designer.cs
generated
@@ -34,6 +34,7 @@ namespace UniMarc
|
||||
this.etc1 = new System.Windows.Forms.RichTextBox();
|
||||
this.etc2 = new System.Windows.Forms.RichTextBox();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.btn_FillBlank = new System.Windows.Forms.Button();
|
||||
this.radD = new System.Windows.Forms.RadioButton();
|
||||
this.radC = new System.Windows.Forms.RadioButton();
|
||||
this.radB = new System.Windows.Forms.RadioButton();
|
||||
@@ -43,7 +44,6 @@ namespace UniMarc
|
||||
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.panel5.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
@@ -84,6 +84,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,6 +96,7 @@ 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
|
||||
//
|
||||
@@ -114,6 +116,16 @@ namespace UniMarc
|
||||
this.panel6.Size = new System.Drawing.Size(266, 308);
|
||||
this.panel6.TabIndex = 1;
|
||||
//
|
||||
// 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 = 329;
|
||||
this.btn_FillBlank.Text = "미소장 마크 코리스\r\n칸채우기";
|
||||
this.btn_FillBlank.UseVisualStyleBackColor = true;
|
||||
this.btn_FillBlank.Click += new System.EventHandler(this.btn_FillBlank_Click);
|
||||
//
|
||||
// radD
|
||||
//
|
||||
this.radD.AutoSize = true;
|
||||
@@ -175,7 +187,7 @@ namespace UniMarc
|
||||
// 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,16 +225,6 @@ namespace UniMarc
|
||||
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 = 329;
|
||||
this.btn_FillBlank.Text = "미소장 마크 코리스\r\n칸채우기";
|
||||
this.btn_FillBlank.UseVisualStyleBackColor = true;
|
||||
this.btn_FillBlank.Click += new System.EventHandler(this.btn_FillBlank_Click);
|
||||
//
|
||||
// fMarc_Editor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
|
||||
@@ -32,7 +32,7 @@ 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();
|
||||
@@ -41,9 +41,10 @@ namespace UniMarc
|
||||
|
||||
//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;
|
||||
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,7 +171,7 @@ namespace UniMarc
|
||||
|
||||
string tag008Value = marcEditorControl1.text008.Text;
|
||||
|
||||
var v_grade = "";
|
||||
var v_grade = "2";
|
||||
if (radA.Checked) v_grade = "0";
|
||||
else if (radB.Checked) v_grade = "1";
|
||||
else if (radC.Checked) v_grade = "2";
|
||||
@@ -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") + "]");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Text.RegularExpressions;
|
||||
using AR;
|
||||
|
||||
namespace UniMarc
|
||||
{
|
||||
@@ -187,7 +188,7 @@ namespace UniMarc
|
||||
string cmd = InCmd + UpCmd;
|
||||
Helper_DB.ExcuteNonQuery(cmd);
|
||||
|
||||
MessageBox.Show("저장완료!");
|
||||
UTIL.MsgI("저장완료!");
|
||||
|
||||
main.SetBtnName();
|
||||
}
|
||||
|
||||
@@ -215,21 +215,21 @@ namespace UniMarc
|
||||
{
|
||||
if (!System.Text.RegularExpressions.Regex.IsMatch(tb_ID.Text, @"^[a-zA-Z0-9]"))
|
||||
{
|
||||
MessageBox.Show("영어와 숫자 조합으로 작성해주세요!");
|
||||
UTIL.MsgE("영어와 숫자 조합으로 작성해주세요!");
|
||||
mOverlap = false;
|
||||
return;
|
||||
}
|
||||
|
||||
string cmd = mDB.DB_Search(Table_User, "id", tb_ID.Text);
|
||||
string db_res = mDB.DB_Send_CMD_Search(cmd);
|
||||
if (db_res == "") { MessageBox.Show("사용가능한 아이디입니다. [" + tb_ID.Text + "]"); mOverlap = true; }
|
||||
else { MessageBox.Show("중복된 아이디입니다. [" + tb_ID.Text + "]"); mOverlap = false; }
|
||||
if (db_res == "") { UTIL.MsgI("사용가능한 아이디입니다. [" + tb_ID.Text + "]"); mOverlap = true; }
|
||||
else { UTIL.MsgE("중복된 아이디입니다. [" + tb_ID.Text + "]"); mOverlap = false; }
|
||||
}
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tb_ID.Text == "" || tb_PW.Text == "" || tb_Name.Text == "")
|
||||
{
|
||||
MessageBox.Show("성명 / 아이디 / 비밀번호 를 채워주세요.");
|
||||
UTIL.MsgE("성명 / 아이디 / 비밀번호 를 채워주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace UniMarc
|
||||
{
|
||||
if (!mOverlap)
|
||||
{
|
||||
MessageBox.Show("아이디 중복확인을 해주세요.");
|
||||
UTIL.MsgE("아이디 중복확인을 해주세요.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -264,7 +264,7 @@ namespace UniMarc
|
||||
tCmd = string.Format("INSERT INTO `User_ShortCut` (`id`) VALUES ('{0}')", tb_ID.Text);
|
||||
Helper_DB.ExcuteNonQuery(tCmd);
|
||||
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
UTIL.MsgI("저장되었습니다!");
|
||||
main.isAccess();
|
||||
RefreshList();
|
||||
}
|
||||
@@ -272,7 +272,7 @@ namespace UniMarc
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null || dataGridView1.CurrentCell.RowIndex < 0 || dataGridView1.SelectedRows.Count == 0)
|
||||
{
|
||||
MessageBox.Show("삭제할 행을 선택해 주세요.");
|
||||
UTIL.MsgE("삭제할 행을 선택해 주세요.");
|
||||
return;
|
||||
}
|
||||
string tText = string.Format("{0} 를 수정 하시겠습니까?", dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString());
|
||||
@@ -280,7 +280,7 @@ namespace UniMarc
|
||||
{
|
||||
if (tb_ID.Text == "" || tb_PW.Text == "" || tb_Name.Text == "")
|
||||
{
|
||||
MessageBox.Show("성명 / 아이디 / 비밀번호 를 채워주세요.");
|
||||
UTIL.MsgE("성명 / 아이디 / 비밀번호 를 채워주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ namespace UniMarc
|
||||
{
|
||||
if (!mOverlap)
|
||||
{
|
||||
MessageBox.Show("아이디 중복확인을 해주세요.");
|
||||
UTIL.MsgE("아이디 중복확인을 해주세요.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -318,7 +318,7 @@ namespace UniMarc
|
||||
Helper_DB.ExcuteNonQuery(cmd);
|
||||
cmd = mDB.More_Update("User_Data", tAccess_Col, tAccess_Data, tSearch_Col, tSearch_Data);
|
||||
Helper_DB.ExcuteNonQuery(cmd);
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
UTIL.MsgI("저장되었습니다!");
|
||||
RefreshList();
|
||||
}
|
||||
}
|
||||
@@ -360,7 +360,7 @@ namespace UniMarc
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null || dataGridView1.CurrentCell.RowIndex < 0 || dataGridView1.SelectedRows.Count == 0)
|
||||
{
|
||||
MessageBox.Show("삭제할 행을 선택해 주세요.");
|
||||
UTIL.MsgE("삭제할 행을 선택해 주세요.");
|
||||
return;
|
||||
}
|
||||
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString());
|
||||
@@ -375,7 +375,7 @@ namespace UniMarc
|
||||
Helper_DB.ExcuteNonQuery(D_cmd);
|
||||
D_cmd = mDB.DB_Delete("User_Data", "ID", tID, "PW", tPW);
|
||||
Helper_DB.ExcuteNonQuery(D_cmd);
|
||||
MessageBox.Show("삭제 완료되었습니다!");
|
||||
UTIL.MsgI("삭제 완료되었습니다!");
|
||||
RefreshList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -244,13 +245,13 @@ namespace UniMarc
|
||||
{
|
||||
string Incmd = db.DB_INSERT("Purchase", Insert_Table, Insert_Data);
|
||||
Helper_DB.ExcuteNonQuery(Incmd);
|
||||
MessageBox.Show(tb_sangho.Text + " 저장 완료");
|
||||
UTIL.MsgI(tb_sangho.Text + " 저장 완료");
|
||||
}
|
||||
else
|
||||
{
|
||||
string U_cmd = db.More_Update(Table, Insert_Table, Insert_Data, Search_Table, Search_Data);
|
||||
Helper_DB.ExcuteNonQuery(U_cmd);
|
||||
MessageBox.Show(tb_sangho.Text + " 수정 완료");
|
||||
UTIL.MsgI(tb_sangho.Text + " 수정 완료");
|
||||
}
|
||||
}
|
||||
private void btn_Delete_Click(object sender, EventArgs e) // 삭제
|
||||
@@ -261,7 +262,7 @@ namespace UniMarc
|
||||
string sangho = dataGridView1.Rows[row].Cells["sangho"].Value.ToString();
|
||||
string D_cmd = db.DB_Delete("Purchase", "idx", idx, "sangho", sangho);
|
||||
Helper_DB.ExcuteNonQuery(D_cmd);
|
||||
MessageBox.Show(sangho + " 삭제 완료");
|
||||
UTIL.MsgI(sangho + " 삭제 완료");
|
||||
}
|
||||
private void tb_memo_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -284,7 +285,7 @@ namespace UniMarc
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
UTIL.MsgE(ex.Message);
|
||||
}
|
||||
}
|
||||
private void btn_close_Click(object sender, EventArgs e)
|
||||
@@ -380,7 +381,9 @@ namespace UniMarc
|
||||
"word", word,
|
||||
"persent", persent);
|
||||
|
||||
MessageBox.Show(cmd);
|
||||
// MessageBox.Show(cmd); // Debugging code, commenting out or replacing
|
||||
// UTIL.MsgI(cmd);
|
||||
|
||||
|
||||
Helper_DB.ExcuteNonQuery(cmd);
|
||||
dgv_IndexWord.Rows.RemoveAt(row);
|
||||
|
||||
@@ -164,22 +164,22 @@ namespace UniMarc
|
||||
|
||||
if (tb_sangho.Text == "")
|
||||
{
|
||||
MessageBox.Show("업체명이 비어있습니다.");
|
||||
UTIL.MsgE("업체명이 비어있습니다.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun1.SelectedIndex == 0)
|
||||
{
|
||||
MessageBox.Show("구분을 선택해주세요.");
|
||||
UTIL.MsgE("구분을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun2.SelectedIndex == 0)
|
||||
{
|
||||
MessageBox.Show("구분을 선택해주세요.");
|
||||
UTIL.MsgE("구분을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun2.SelectedItem.ToString() == "학교" && cb_dlsArea.SelectedIndex < 0 && tb_id.Text != "")
|
||||
{
|
||||
MessageBox.Show("DLS 지역을 선택해주세요.");
|
||||
UTIL.MsgE("DLS 지역을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
//string CopyCheckCMD = string.Format("SELECT {0} FROM {1} WHERE {0} = \"{2}\";", "`c_sangho`", "`Client`", tb_sangho.Text);
|
||||
@@ -188,7 +188,7 @@ namespace UniMarc
|
||||
bool isCopy = Check_Data(tb_sangho.Text);
|
||||
if (isCopy)
|
||||
{
|
||||
MessageBox.Show("중복된 상호명이 존재합니다!");
|
||||
UTIL.MsgE("중복된 상호명이 존재합니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -213,13 +213,13 @@ namespace UniMarc
|
||||
|
||||
Helper_DB.ExcuteNonQuery(Incmd);
|
||||
SearchList();
|
||||
MessageBox.Show(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
UTIL.MsgI(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
}
|
||||
private void btn_save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dv1.SelectedRows.Count == 0)
|
||||
{
|
||||
MessageBox.Show("수정 할 업체를 선택해 주세요.");
|
||||
UTIL.MsgE("수정 할 업체를 선택해 주세요.");
|
||||
return;
|
||||
}
|
||||
int tRowIndex = dv1.SelectedRows[0].Index;
|
||||
@@ -229,22 +229,22 @@ namespace UniMarc
|
||||
if (UTIL.MsgQ(tText) != DialogResult.Yes) return;
|
||||
if (tb_sangho.Text == "")
|
||||
{
|
||||
MessageBox.Show("업체명이 비어있습니다.");
|
||||
UTIL.MsgE("업체명이 비어있습니다.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun1.SelectedIndex == 0)
|
||||
{
|
||||
MessageBox.Show("구분을 선택해주세요.");
|
||||
UTIL.MsgE("구분을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun2.SelectedIndex == 0)
|
||||
{
|
||||
MessageBox.Show("구분을 선택해주세요.");
|
||||
UTIL.MsgE("구분을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun2.SelectedItem.ToString() == "학교" && cb_dlsArea.SelectedIndex < 0 && tb_id.Text != "")
|
||||
{
|
||||
MessageBox.Show("DLS 지역을 선택해주세요.");
|
||||
UTIL.MsgE("DLS 지역을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
//string CopyCheckCMD = string.Format("SELECT {0} FROM {1} WHERE {0} = \"{2}\";", "`c_sangho`", "`Client`", tb_sangho.Text);
|
||||
@@ -277,7 +277,7 @@ namespace UniMarc
|
||||
string U_cmd = db.More_Update("Client", editcol, editname, searchcol, searchname);
|
||||
|
||||
Helper_DB.ExcuteNonQuery(U_cmd);
|
||||
MessageBox.Show(tb_sangho.Text + "가 성공적으로 수정되었습니다.");
|
||||
UTIL.MsgI(tb_sangho.Text + "가 성공적으로 수정되었습니다.");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
@@ -297,7 +297,7 @@ namespace UniMarc
|
||||
|
||||
// Helper_DB.ExcuteNonQuery(Incmd);
|
||||
|
||||
// MessageBox.Show(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
// UTIL.MsgI(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
//}
|
||||
SearchList();
|
||||
dv1.Rows[RowIndex].Selected = true;
|
||||
@@ -315,7 +315,7 @@ namespace UniMarc
|
||||
Helper_DB.ExcuteNonQuery(D_cmd);
|
||||
Made_Grid();
|
||||
SearchList();
|
||||
MessageBox.Show("삭제되었습니다.");
|
||||
UTIL.MsgI("삭제되었습니다.");
|
||||
}
|
||||
|
||||
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -91,7 +92,7 @@ namespace UniMarc
|
||||
string[] search_name = { PUB.user.CompanyIdx, tb_sangho.Text };
|
||||
string U_cmd = db.More_Update("Comp", Area, temp, search_col, search_name);
|
||||
Helper_DB.ExcuteNonQuery(U_cmd);
|
||||
MessageBox.Show("저장되었습니다.");
|
||||
UTIL.MsgI("저장되었습니다.");
|
||||
}
|
||||
private void tb_port_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -113,12 +114,12 @@ namespace UniMarc
|
||||
cb_end_hour.SelectedIndex = tmp;
|
||||
}
|
||||
string start_time = Regex.Replace(cb_start_hour.Text, @"\D", "");
|
||||
if (cb_start_hour.SelectedIndex < 0) { MessageBox.Show("시간이 선택되지 않았습니다!"); return; }
|
||||
if (cb_start_hour.SelectedIndex < 0) { UTIL.MsgE("시간이 선택되지 않았습니다!"); return; }
|
||||
else if (start_30min.Checked) { start_time += ":30"; }
|
||||
else { start_time += ":00"; }
|
||||
|
||||
string end_time = Regex.Replace(cb_end_hour.Text, @"\D", "");
|
||||
if (cb_end_hour.SelectedIndex < 0) { MessageBox.Show("시간이 선택되지 않았습니다!"); return; }
|
||||
if (cb_end_hour.SelectedIndex < 0) { UTIL.MsgE("시간이 선택되지 않았습니다!"); return; }
|
||||
else if (end_30min.Checked) { end_time += ":30"; }
|
||||
else { end_time += ":00"; }
|
||||
#endregion
|
||||
@@ -164,7 +165,7 @@ namespace UniMarc
|
||||
string Incmd = db.DB_INSERT("Part_Time", input_area, input_data);
|
||||
Helper_DB.ExcuteNonQuery(Incmd);
|
||||
}
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
UTIL.MsgI("저장되었습니다!");
|
||||
}
|
||||
#region Save_Sub
|
||||
/// <summary>
|
||||
@@ -177,7 +178,7 @@ namespace UniMarc
|
||||
{
|
||||
if (dataGridView1.Rows[a].Cells["per_name"].Value.ToString() == "")
|
||||
{
|
||||
MessageBox.Show("이름이 빈칸입니다!");
|
||||
UTIL.MsgE("이름이 빈칸입니다!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -193,7 +194,7 @@ namespace UniMarc
|
||||
dataGridView1.Rows.RemoveAt(a);
|
||||
}
|
||||
}
|
||||
MessageBox.Show("삭제되었습니다!");
|
||||
UTIL.MsgI("삭제되었습니다!");
|
||||
}
|
||||
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -88,7 +89,7 @@ namespace UniMarc
|
||||
string where_col = dataGridView1.Rows[row_count[a]].Cells[0].Value.ToString();
|
||||
string U_cmd = db.DB_Update("Remit_reg", update_tbl, update_col, where_tbl, where_col);
|
||||
Helper_DB.ExcuteNonQuery(U_cmd);
|
||||
MessageBox.Show(where_col);
|
||||
UTIL.MsgI(where_col);
|
||||
}
|
||||
}
|
||||
int[] grid_chk()
|
||||
|
||||
@@ -8,6 +8,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Text.RegularExpressions;
|
||||
using AR;
|
||||
|
||||
namespace UniMarc
|
||||
{
|
||||
@@ -93,7 +94,7 @@ namespace UniMarc
|
||||
string Incmd = db.DB_INSERT("Remit_reg", input_table, input_data);
|
||||
Helper_DB.ExcuteNonQuery(Incmd);
|
||||
|
||||
MessageBox.Show("성공적으로 저장되었습니다.");
|
||||
UTIL.MsgI("성공적으로 저장되었습니다.");
|
||||
Add_Grid();
|
||||
}
|
||||
void Add_Grid()
|
||||
@@ -112,11 +113,11 @@ namespace UniMarc
|
||||
string[] target_data = { date, tb_purchase.Text, tb_bank.Text, tb_bank_code.Text,
|
||||
tb_bank_num.Text, tb_bank_boss.Text, tb_send_money.Text, tb_etc.Text };
|
||||
|
||||
if (MessageBox.Show("정말 삭제하시겠습니까?", "경고", MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
if (UTIL.MsgQ("정말 삭제하시겠습니까?") == DialogResult.Yes)
|
||||
{
|
||||
string cmd = db.DB_Delete_More_term("Remit_reg", target_idx, compidx, target_table, target_data);
|
||||
Helper_DB.ExcuteNonQuery(cmd);
|
||||
MessageBox.Show("삭제되었습니다.");
|
||||
UTIL.MsgI("삭제되었습니다.");
|
||||
}
|
||||
}
|
||||
private void btn_lookup_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -99,7 +100,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;
|
||||
}
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
@@ -113,11 +114,11 @@ namespace UniMarc
|
||||
string U_cmd = db.More_Update("Sales", edit_col, edit_data, search_col, search_data);
|
||||
Helper_DB.ExcuteNonQuery(U_cmd);
|
||||
}
|
||||
MessageBox.Show("저장되었습니다.", "저장", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
UTIL.MsgI("저장되었습니다.");
|
||||
}
|
||||
private void btn_delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo) == DialogResult.No) {
|
||||
if (UTIL.MsgQ("삭제하시겠습니까?") == DialogResult.No) {
|
||||
return;
|
||||
}
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
@@ -125,7 +126,7 @@ namespace UniMarc
|
||||
string D_cmd = db.DB_Delete("Sales", "compidx", compidx, "idx", dataGridView1.Rows[a].Cells["idx"].Value.ToString());
|
||||
Helper_DB.ExcuteNonQuery(D_cmd);
|
||||
}
|
||||
MessageBox.Show("삭제되었습니다.", "삭제", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
UTIL.MsgI("삭제되었습니다.");
|
||||
}
|
||||
private void btn_close_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -42,9 +43,9 @@ namespace UniMarc
|
||||
}
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tb_clt.Text == "") { MessageBox.Show("거래처를 입력해주세요."); return; }
|
||||
if (tb_price.Text == "") { MessageBox.Show("금액을 입력해주세요."); return; }
|
||||
if (cb_gubun.SelectedIndex < 0) { MessageBox.Show("구분을 선택해주세요."); return; }
|
||||
if (tb_clt.Text == "") { UTIL.MsgE("거래처를 입력해주세요."); return; }
|
||||
if (tb_price.Text == "") { UTIL.MsgE("금액을 입력해주세요."); return; }
|
||||
if (cb_gubun.SelectedIndex < 0) { UTIL.MsgE("구분을 선택해주세요."); return; }
|
||||
|
||||
string date = Pay_In_Date.Text.Substring(0, 10);
|
||||
if (row < 0 || !add_chk) {
|
||||
@@ -85,7 +86,7 @@ namespace UniMarc
|
||||
#endregion
|
||||
private void btn_Delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(MessageBox.Show("삭제하시겠습니까?", "삭제", MessageBoxButtons.YesNo) == DialogResult.No) { return; }
|
||||
if(UTIL.MsgQ("삭제하시겠습니까?") == DialogResult.No) { return; }
|
||||
|
||||
string D_cmd = db.DB_Delete("Sales", "compidx", compidx, "idx", dataGridView1.Rows[row].Cells["idx"].Value.ToString());
|
||||
Helper_DB.ExcuteNonQuery(D_cmd);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -61,7 +62,7 @@ namespace UniMarc
|
||||
{
|
||||
btn_Total_Click(null, null);
|
||||
|
||||
if (tb_book_name.Text == "") { MessageBox.Show("도서명이 입력해주세요."); return; }
|
||||
if (tb_book_name.Text == "") { UTIL.MsgE("도서명이 입력해주세요."); return; }
|
||||
// 도서명/저자/출판사/정가/출고율/부수/합계금액/ISBN
|
||||
string[] grid = {
|
||||
tb_book_name.Text,
|
||||
@@ -80,8 +81,8 @@ namespace UniMarc
|
||||
}
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tb_clt.Text == "") { MessageBox.Show("거래처를 입력해주세요."); return; }
|
||||
if (dataGridView1.Rows.Count <= 0) { MessageBox.Show("저장할 내용이 없습니다."); return; }
|
||||
if (tb_clt.Text == "") { UTIL.MsgE("거래처를 입력해주세요."); return; }
|
||||
if (dataGridView1.Rows.Count <= 0) { UTIL.MsgE("저장할 내용이 없습니다."); return; }
|
||||
|
||||
string date = out_date.Text.Substring(0, 10);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user