old commit < 250527-232400

This commit is contained in:
SeungHo Yang
2025-05-27 23:26:37 +09:00
parent 7b0aeb30e9
commit 9edbfab45a
129 changed files with 7512 additions and 300413 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
unimarc/dll/ArLog.Net4.dll Normal file

Binary file not shown.

View File

@@ -1,20 +0,0 @@
The MIT License (MIT)
Copyright (c) 2007 James Newton-King
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

125
unimarc/unimarc/CExt.cs Normal file
View File

@@ -0,0 +1,125 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ExcelTest
{
public static class CExt
{
public static void InvokeEnable(this Control pControl, bool pEnable)
{
//lock (pControl)
//{
if (pControl.Enabled == pEnable) return;
try
{
if (pControl.InvokeRequired)
{
pControl.Invoke(new Action(() =>
{
pControl.Enabled = pEnable;
}));
}
else
{
pControl.Enabled = pEnable;
}
}
catch { }
//}
}
public static void InvokeNumeric(this NumericUpDown pContorl,int pValue)
{
if (pContorl.Value == pValue) return;
try
{
if (pContorl.InvokeRequired)
{
pContorl.Invoke(new Action(() =>
{
pContorl.Value = pValue;
}));
}
else
{
pContorl.Value = pValue;
}
}
catch { }
}
public static void InvokeText(this Control pControl, string pText)
{
//lock (pControl)
//{
if (pControl.Text == pText) return;
try
{
if (pControl.InvokeRequired)
{
pControl.Invoke(new Action(() =>
{
pControl.Text = pText;
}));
}
else
{
pControl.Text = pText;
}
}
catch { }
//}
}
public static void InvokeADDText(this Control pControl, string pText)
{
//lock (pControl)
//{
//if (pControl.Text == pText) return;
try
{
if (pControl.InvokeRequired)
{
pControl.Invoke(new Action(() =>
{
pControl.Text += (pText);
}));
}
else
{
pControl.Text += (pText);
}
}
catch { }
//}
}
public static void InvokeInsertText(this TextBox pTextBox, string pText)
{
try
{
int tIdx = pTextBox.SelectionStart;
if (pTextBox.InvokeRequired)
{
pTextBox.Invoke(new Action(() =>
{
pTextBox.Text = pTextBox.Text.Insert(tIdx, pText);
pTextBox.SelectionStart = tIdx + 1;
}));
}
else
{
pTextBox.Text = pTextBox.Text.Insert(tIdx, pText);
pTextBox.SelectionStart = tIdx + 1;
}
}
catch { }
}
}
}

34
unimarc/unimarc/CUtill.cs Normal file
View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace UniMarc
{
public static class CUtill
{
public static arUtil.Log mLog;
public static void MsgI(string m)
{
//MessageWindow.VisibleAll(false);
MessageBox.Show(m, "CHECK", MessageBoxButtons.OK, MessageBoxIcon.Information);
//MessageWindow.VisibleAll(true);
}
public static void MsgE(string m)
{
//MessageWindow.VisibleAll(false);
MessageBox.Show(m, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
//MessageWindow.VisibleAll(true);
}
public static DialogResult MsgQ(string m)
{
//MessageWindow.VisibleAll(false);
DialogResult dlg = MessageBox.Show(m, "CHECK", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
//MessageWindow.VisibleAll(true);
return dlg;
}
}
}

View File

@@ -50,6 +50,10 @@ namespace WindowsFormsApp1
connectionInfo.Timeout = TimeSpan.FromSeconds(30);
using (var client = new SshClient(connectionInfo))
{
if (conn != null) {
conn.Close();
conn.Dispose();
}
client.Connect();
if (client.IsConnected)
{
@@ -72,6 +76,11 @@ namespace WindowsFormsApp1
connectionInfo.Timeout = TimeSpan.FromSeconds(30);
using (var client = new SshClient(connectionInfo))
{
if (conn != null)
{
conn.Close();
conn.Dispose();
}
client.Connect();
if (client.IsConnected)
{
@@ -145,6 +154,43 @@ namespace WindowsFormsApp1
}
conn.Close();
}
public void DB_Send_CMD_Search_GetGridData(string cmd,DataGridView pDgv)
{
// DB 연결
conn.Open();
// 쿼리 맵핑
sqlcmd.CommandText = cmd;
// 쿼리 날릴 곳은 conn
sqlcmd.Connection = conn;
// 쿼리 날리기, sqlDataReader에 결과값 저장
sd = sqlcmd.ExecuteReader();
MySqlDataReader tReturnSd = sd;
int colCount = pDgv.ColumnCount - 1;
string[] grid = new string[pDgv.ColumnCount];
int AddCol = 0;
// 한줄씩 불러와 한개의 값으로 변환
while (sd.Read())
{
for (int count = 0; count < sd.FieldCount; count++)
{
string change = sd[count].ToString().Replace("|", "");
grid[AddCol] = change;
if (colCount - 1 == AddCol)
{
AddCol = 0;
grid[colCount]="추가";
pDgv.Rows.Add(grid);
}
else
{
AddCol++;
}
}
}
conn.Close();
}
public void DB_Send_CMD_reVoid(string cmd)
{
using (conn)

View File

@@ -105,7 +105,7 @@ namespace WindowsFormsApp1
/// <returns></returns>
public bool CheckIP(string IP, string compName)
{
string cmd = String.Format("SELECT `{0}` FROM {1} WHERE `{2}` = \"{3}\"", "IP", "Comp_IP", "comp", compName);
string cmd = String.Format("SELECT `{0}` FROM {1} WHERE `{2}` = \"{3}\"", "IP", "Comp", "comp_name", compName);
string res = db.DB_Send_CMD_Search(cmd);
string[] ary = res.Split('|');

View File

@@ -105,7 +105,6 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -408,7 +407,7 @@
this.,
this.});
this..Name = "마크설정";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(156, 22);
this..Text = "설정";
//
// 단축키설정
@@ -452,48 +451,48 @@
this.1,
this.iSBN조회});
this..Name = "마크작업";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(156, 22);
this..Text = "마크 작업";
//
// 마크작성
//
this..Name = "마크작성";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(146, 22);
this..Text = "마크 작성";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 마크목록
//
this..Name = "마크목록";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(146, 22);
this..Text = "마크 목록";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 소장자료검색
//
this..Name = "소장자료검색";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(146, 22);
this..Text = "소장자료검색";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 마크정리
//
this..Name = "마크정리";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(146, 22);
this..Text = "마크 정리";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 복본조사1
//
this.1.Name = "복본조사1";
this.1.Size = new System.Drawing.Size(180, 22);
this.1.Size = new System.Drawing.Size(146, 22);
this.1.Text = "복본조사";
this.1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
//
// iSBN조회
//
this.iSBN조회.Name = "iSBN조회";
this.iSBN조회.Size = new System.Drawing.Size(180, 22);
this.iSBN조회.Size = new System.Drawing.Size(146, 22);
this.iSBN조회.Text = "ISBN 조회";
this.iSBN조회.Click += new System.EventHandler(this.iSBN조회ToolStripMenuItem_Click);
//
@@ -503,21 +502,21 @@
this.,
this.});
this.dVDCDLPToolStripMenuItem.Name = "dVDCDLPToolStripMenuItem";
this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.dVDCDLPToolStripMenuItem.Size = new System.Drawing.Size(156, 22);
this.dVDCDLPToolStripMenuItem.Text = "DVD / CD / LP";
//
// 목록
//
this..Enabled = false;
this..Name = "목록";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(98, 22);
this..Text = "목록";
this..Click += new System.EventHandler(this._Click);
//
// 편목
//
this..Name = "편목";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(98, 22);
this..Text = "편목";
this..Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
@@ -527,7 +526,7 @@
this.,
this.});
this..Name = "반입및반출";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(156, 22);
this..Text = "반입 및 반출";
//
// 마크반입
@@ -552,7 +551,7 @@
this.,
this.});
this..Name = "부가기능";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(156, 22);
this..Text = "부가기능";
//
// 마크수집
@@ -593,7 +592,7 @@
this.DLS조회,
this.dLS복본조사});
this.DLS.Name = "DLS";
this.DLS.Size = new System.Drawing.Size(180, 22);
this.DLS.Size = new System.Drawing.Size(156, 22);
this.DLS.Text = "DLS";
//
// DLS조회
@@ -617,7 +616,7 @@
this.,
this.});
this..Name = "마크기타";
this..Size = new System.Drawing.Size(180, 22);
this..Size = new System.Drawing.Size(156, 22);
this..Text = "기타";
//
// 서류작성
@@ -760,58 +759,50 @@
// 이용자관리ToolStripMenuItem
//
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "이용자관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "이용자 관리";
//
// 신규사업자등록ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "신규사업자등록ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
this.ToolStripMenuItem.Text = "신규 사업자 등록";
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "사업자 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 기존사업자관리ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "기존사업자관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
this.ToolStripMenuItem.Text = "기존 사업자 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 공지발송ToolStripMenuItem1
//
this.ToolStripMenuItem1.Name = "공지발송ToolStripMenuItem1";
this.ToolStripMenuItem1.Size = new System.Drawing.Size(178, 22);
this.ToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem1.Text = "공지 발송";
this.ToolStripMenuItem1.Click += new System.EventHandler(this.ToolStripMenuItem1_Click);
//
// 매출내역ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "매출내역ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "매출내역";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 이용자거래처조회ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "이용자거래처조회ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "이용자 거래처 조회";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 마크설정ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "마크설정ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "마크설정";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// 일괄처리관리ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "일괄처리관리ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(178, 22);
this.ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.ToolStripMenuItem.Text = "일괄처리 관리";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
@@ -1190,7 +1181,6 @@
public System.Windows.Forms.Button ShortCut12;
public System.Windows.Forms.Button ShortCut11;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ;
private System.Windows.Forms.ToolStripMenuItem dVDCDLPToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ;

View File

@@ -25,6 +25,7 @@ using WindowsFormsApp1.납품관리;
using UniMarc.;
using UniMarc.;
using UniMarc.Properties;
using UniMarc;
namespace WindowsFormsApp1
{
@@ -46,9 +47,15 @@ namespace WindowsFormsApp1
private void Main_Load(object sender, EventArgs e)
{
this.Visible = false; // 메인폼을 먼저 숨김
#region "Log setting"
var logsubdir = "{yyyy|MM|dd}";
string tPath = string.Format("{0}\\LOG", AppDomain.CurrentDomain.BaseDirectory).Replace("\\\\", "\\"); ;
CUtill.mLog = new arUtil.Log(tPath);
CUtill.mLog.SubDirectory = logsubdir;
CUtill.mLog.FileNameFormat = "{yyMMdd}";
#endregion
login login = new login();
VersionText.Text = string.Format("UniMarc Ver.{0}", ip.VersionInfo());
if (DialogResult.OK == login.ShowDialog(this)) {
@@ -935,15 +942,23 @@ namespace WindowsFormsApp1
//}
//else
//{
// Mac_check_Copy = new Check_copy(this);
// Mac_check_Copy.MdiParent = this;
// Mac_check_Copy.WindowState = FormWindowState.Maximized;
// Mac_check_Copy.FormClosed += (o, ea) => Mac_check_Copy = null;
// Mac_check_Copy.Show();
Mac_check_Copy = new Check_copy(this);
Mac_check_Copy.MdiParent = this;
Mac_check_Copy.WindowState = FormWindowState.Normal;
Mac_check_Copy.FormClosed += (o, ea) => Mac_check_Copy = null;
Mac_check_Copy.Show();
//}
Mac_check_Copy = new Check_copy(this);
Mac_check_Copy.Show();
//foreach (Form frm in Application.OpenForms)
//{
// if (frm.Name == "Check_copy")
// {
// frm.Activate();
// return;
// }
//}
//Mac_check_Copy = new Check_copy(this);
//Mac_check_Copy.Show();
}
private void iSBN조회ToolStripMenuItem_Click(object sender, EventArgs e)
@@ -1096,18 +1111,21 @@ namespace WindowsFormsApp1
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (Mac_symbol_Add != null)
{
Mac_symbol_Add.Focus();
}
else
{
Mac_symbol_Add = new Symbol_Add(this);
Mac_symbol_Add.MdiParent = this;
Mac_symbol_Add.WindowState = FormWindowState.Maximized;
Mac_symbol_Add.FormClosed += (o, ea) => Mac_symbol_Add = null;
Mac_symbol_Add.Show();
}
// if (Mac_symbol_Add != null)
// {
// Mac_symbol_Add.Focus();
// }
// else
// {
// Mac_symbol_Add = new Symbol_Add(this);
// Mac_symbol_Add.MdiParent = this;
// Mac_symbol_Add.WindowState = FormWindowState.Maximized;
// Mac_symbol_Add.FormClosed += (o, ea) => Mac_symbol_Add = null;
// Mac_symbol_Add.Show();
// }
Mac_symbol_Add = new Symbol_Add(this);
Mac_symbol_Add.Show();
}
@@ -1388,18 +1406,21 @@ namespace WindowsFormsApp1
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (master_user_Manage != null)
{
master_user_Manage.Focus();
}
else
{
master_user_Manage = new User_manage(this);
master_user_Manage.FormClosed += (o, ea) => master_user_Manage = null;
master_user_Manage.Show();
}
//if (master_user_Manage != null)
//{
// master_user_Manage.Focus();
//}
//else
//{
// master_user_Manage = new User_manage(this);
// master_user_Manage.FormClosed += (o, ea) => master_user_Manage = null;
// master_user_Manage.Show();
//}
From_User_manage_List tUser_mamge = new From_User_manage_List();
tUser_mamge.ShowDialog();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{

View File

@@ -22,6 +22,7 @@ using System.ComponentModel;
using System.Drawing.Text;
using System.Globalization;
using System.Threading;
using System.Data.SqlTypes;
namespace WindowsFormsApp1
{
@@ -114,6 +115,7 @@ namespace WindowsFormsApp1
if ((e.Shift && e.KeyCode == Keys.Insert) || (e.Control && e.KeyCode == Keys.V))
{
char[] rowSplitter = { '\r', '\n' };
string[] rowSpliteter = { "\r\n" };
char[] columnSplitter = { '\t' };
//get the text from clipboard
@@ -121,17 +123,22 @@ namespace WindowsFormsApp1
string stringInClipboard = (string)dataInClipboard.GetData(DataFormats.Text);
//split it into lines
string[] rowsInClipboard = stringInClipboard.Split(rowSplitter, StringSplitOptions.RemoveEmptyEntries);
//20230209 \r텝 기능과 \n 줄넘김 기능을 같이 공백 제거 처리해버려 공백칸을 활용해야 함에도 제거하는 현상 발생.
//텝 공백 문자열 동시에 사용하여 분류
// stringInClipboard= stringInClipboard.Replace("\r", "");
if (stringInClipboard == null) return;
List<string>rowsInClipboard = stringInClipboard.Split(rowSpliteter, StringSplitOptions.None).ToList();
rowsInClipboard.RemoveAt(rowsInClipboard.Count-1);
//get the row and column of selected cell in dataGridView1
int r = ((DataGridView)sender).SelectedCells[0].RowIndex;
int c = ((DataGridView)sender).SelectedCells[0].ColumnIndex;
//add rows into dataGridView1 to fit clipboard lines
if (((DataGridView)sender).Rows.Count < (r + rowsInClipboard.Length))
if (((DataGridView)sender).Rows.Count < (r + rowsInClipboard.Count))
{
((DataGridView)sender).Rows.Add(r + rowsInClipboard.Length - ((DataGridView)sender).Rows.Count);
((DataGridView)sender).Rows.Add(r + rowsInClipboard.Count - ((DataGridView)sender).Rows.Count);
}
// loop through the lines, split them into cells and place the values in the corresponding cell.
for (int iRow = 0; iRow < rowsInClipboard.Length; iRow++)
for (int iRow = 0; iRow < rowsInClipboard.Count; iRow++)
{
//split row into cell values
string[] valuesInRow = rowsInClipboard[iRow].Split(columnSplitter);
@@ -141,6 +148,7 @@ namespace WindowsFormsApp1
//assign cell value, only if it within columns of the dataGridView1
if (((DataGridView)sender).ColumnCount - 1 >= c + iCol)
{
if (((DataGridView)sender).Rows.Count <= r + iRow) continue;
((DataGridView)sender).Rows[r + iRow].Cells[c + iCol].Value = valuesInRow[iCol];
}
}
@@ -611,7 +619,7 @@ namespace WindowsFormsApp1
ws.Columns.AutoFit();
app.Interactive = true;
app.Quit();
//app.Quit();
}
catch (Exception e)
{
@@ -1522,7 +1530,7 @@ namespace WindowsFormsApp1
/// </summary>
/// <param name="rich">데이터가 담긴 텍스트박스</param>
/// <returns>한줄짜리 마크데이터</returns>
private string madeOrimarc(string rich, string EncodingType = "ANSI", bool MarcType = true)
private string madeOrimarc(string rich, string EncodingType = "UniCode", bool MarcType = true)
{
string result = string.Empty;
@@ -1530,16 +1538,21 @@ namespace WindowsFormsApp1
string = string.Empty;
string text = rich.Replace("\t", "");
// text = text.Replace("\\", "₩");
string[] array_text = text.Split('\n');
List<string> array_text = text.Split('\n').ToList();
array_text.RemoveAll(x => x == "");
// num+count+total = 디렉토리
List<string> num = new List<string>();
List<string> count = new List<string>();
List<string> total = new List<string>();
//List<string> count = new List<string>();
//List<string> total = new List<string>();
for (int a = 0; a < array_text.Length; a++)
List<int> tCount = new List<int>();
List<int> tTotal = new List<int>();
int tLength = 0;
int tUp = 0;
int tDown = 0;
for (int a = 0; a < array_text.Count; a++)
{
if (array_text[a] == "") break;
// if (array_text[a] == "") continue;
num.Add(array_text[a].Substring(0, 3));
@@ -1568,43 +1581,52 @@ namespace WindowsFormsApp1
- WordCheck(array_text[a], "▼");
}
count.Add(insert_Zero(textLength, 4));
//count.Add(insert_Zero(textLength, 4));
tCount.Add(textLength);
}
for (int a = 0; a < array_text.Length; a++)
for (int a = 0; a < array_text.Count; a++)
{
if (a == 0) { total.Add("0"); }
else if (a == 1)
{
int b = Convert.ToInt32(total[total.Count - 1]);
total.Add(b.ToString());
if (a == 0) { //total.Add("0");
tTotal.Add(0);
}
else if (a > 1)
else
{
int b = Convert.ToInt32(total[total.Count - 1]);
int c = Convert.ToInt32(Encoding.Default.GetBytes(array_text[a - 2]).Length.ToString())
- WordCheck(array_text[a - 2], "▲")
- WordCheck(array_text[a - 2], "▼");
int res = b + c;
total.Add(res.ToString());
// total.Add(total[a - 1] + count[a - 1]);
tTotal.Add(tTotal[a - 1] + tCount[a - 1]);
}
//else if (a == 1)
//{
// int b = Convert.ToInt32(total[total.Count - 1]);
// total.Add(b.ToString());
//}
//else if (a > 1)
//{
// int b = Convert.ToInt32(total[total.Count - 1]);
// int c = 0;
// if (EncodingType == "UTF-8") c = Convert.ToInt32(Encoding.UTF8.GetBytes(array_text[a - 2]).Length.ToString()) - WordCheck(array_text[a - 2], "▲") - WordCheck(array_text[a - 2], "▼");
// else if (EncodingType == "UniCode") c = Convert.ToInt32(Encoding.Unicode.GetBytes(array_text[a - 2]).Length.ToString()) - WordCheck(array_text[a - 2], "▲") - WordCheck(array_text[a - 2], "▼");
// else c = Convert.ToInt32(Encoding.Default.GetBytes(array_text[a - 2]).Length.ToString()) - WordCheck(array_text[a - 2], "▲") - WordCheck(array_text[a - 2], "▼");
// int res = b + c;
// total.Add(res.ToString());
}
string[] str_num = num.ToArray();
for (int a = 0; a < str_num.Length; a++)
{
count[a] = count[a].PadLeft(4, '0');
//count[a] = count[a].PadLeft(4, '0');
// if (count[a].Length == 3) { count[a] = count[a].Insert(0, "0"); }
// else if (count[a].Length == 2) { count[a] = count[a].Insert(0, "00"); }
// else if (count[a].Length == 1) { count[a] = count[a].Insert(0, "000"); }
total[a] = total[a].PadLeft(5, '0');
//total[a] = total[a].PadLeft(5, '0');
// if (total[a].Length == 4) { total[a] = total[a].Insert(0, "0"); }
// else if (total[a].Length == 3) { total[a] = total[a].Insert(0, "00"); }
// else if (total[a].Length == 2) { total[a] = total[a].Insert(0, "000"); }
// else if (total[a].Length == 1) { total[a] = total[a].Insert(0, "0000"); }
// 디렉토리 += str_num[a] + count[a] + total[a] + "\n";
+= str_num[a] + count[a] + total[a];
+= str_num[a] + tCount[a].ToString().PadLeft(4, '0') + tTotal[a].ToString().PadLeft(5, '0');
}
string[] = { "00000","n", "a", "m", " ",
@@ -1619,8 +1641,12 @@ namespace WindowsFormsApp1
= .Replace("\n", "");
string dp = + ;
int recode = Encoding.Default.GetBytes(dp).Length
- WordCheck(dp, "▲") - WordCheck(dp, "▼") - WordCheck(dp, "↔");
int recode = 0;
if (EncodingType == "UTF-8") recode = Encoding.UTF8.GetBytes(dp).Length- WordCheck(dp, "▲") - WordCheck(dp, "▼") - WordCheck(dp, "↔");
else if (EncodingType == "UniCode") recode = Encoding.Unicode.GetBytes(dp).Length - WordCheck(dp, "▲") - WordCheck(dp, "▼") - WordCheck(dp, "↔");
else recode = Encoding.Default.GetBytes(dp).Length- WordCheck(dp, "▲") - WordCheck(dp, "▼") - WordCheck(dp, "↔");
[0] = insert_Zero(recode + 24, 5);
int data_addr = 24 + Encoding.Default.GetBytes().Length - WordCheck(, "▲");
@@ -1699,7 +1725,26 @@ namespace WindowsFormsApp1
}
return string.Join("\n", View);
}
/// <summary>
/// 추가하고 싶은 태그를 뷰형태의 마크에 추가하는 함수.
/// </summary>
/// <param name="pAddTag">추가할 태그 (태그명\t지시기호\t태그내용)</param>
/// <param name="pTargetData">뷰형태의 마크</param>
/// <returns></returns>
public string AddTagInMarc(int pTargetTagNum,string pAddTag, string pTargetData)//TagTarget Num 을 찾아서 있을경우는 해당 Tag 데이터를 전송, 없을경우는 신규로 해야함.
{
if (pAddTag.Length < 3) return "";
string tRet = pTargetData;
// ex ) 020 : ~~~ 에 XXXX 내용줄 뒤에 추가
return tRet;
}
public int SearchTarget()
{
int tRet = 0;
return tRet;
}
/// <summary>
/// 지정된 태그 변경
/// </summary>
@@ -1714,21 +1759,83 @@ namespace WindowsFormsApp1
string TargetTagNum = Tag.Substring(0, 3);
string TargetTag = Tag.Replace(TargetTagNum, "");
string[] SplitView = TypeView.Split('\n');
for (int a = 0; a < SplitView.Length; a++)
List<string> SplitView = TypeView.Split('\n').ToList();
for (int a = 0; a < SplitView.Count; a++)
{
if (SplitView[a].Length < 2) continue;
if (!SplitView[a].StartsWith(TargetTagNum)) continue;
int startIdx = SplitView[a].IndexOf("▼" + TargetTag);
if (startIdx < 0) break;
int endIdx = SplitView[a].IndexOf("▼", startIdx + 1);
if (endIdx < 0) endIdx = SplitView[a].IndexOf("▲", startIdx);
// if (startIdx < 0) break;
if (startIdx < 0)
{// 해당 태그 알파벳이 없어서 새로 추가해야하는 경우
if (TargetTagNum == "020")
{
int[] tFindAlpha = new int[] { Convert.ToInt32('c'), Convert.ToInt32('g'), Convert.ToInt32('a') };// c=> g => a 순서로 검색해서 붙여준다.
int tChar = Convert.ToInt32(TargetTag[0]);
for (int i = 0; i < tFindAlpha.Length; i++)
{
char tSearchChar = Convert.ToChar(tFindAlpha[i]);//020c의 경우 a g 다음에 붙어야한다.
startIdx = SplitView[a].IndexOf("▼" + tSearchChar.ToString());
if (startIdx != -1)
{
int tEndIDX = SplitView[a].IndexOf("▼", startIdx + 1);
List<string> tFindList = SplitView.FindAll(x => x.Contains(TargetTagNum)).FindAll(x => x.Contains(ChangeContent));
if (tFindList.Count == 0)
{
if (tEndIDX < 0)
{
tEndIDX = SplitView[a].IndexOf("▲", startIdx);
string Target = SplitView[a].Substring(startIdx, tEndIDX - startIdx);
SplitView[a] = SplitView[a].Replace(Target, Target + ChangeContent);
}
else
{
SplitView[a] = SplitView[a].Insert(tEndIDX, ChangeContent);
}
}
break;
}
}
}
else
{
int tChar = Convert.ToInt32(TargetTag[0]);
for (int i = tChar; i > 96; i--)
{
char tSearchChar = Convert.ToChar(i);//020c의 경우 a g 다음에 붙어야한다.
startIdx = SplitView[a].IndexOf("▼" + tSearchChar.ToString());
if (startIdx != -1)
{
int tEndIDX = SplitView[a].IndexOf("▼", startIdx + 1);
List<string> tFindList = SplitView.FindAll(x => x.Contains(TargetTagNum)).FindAll(x => x.Contains(ChangeContent));
if (tFindList.Count == 0)
{
if (tEndIDX < 0)
{
tEndIDX = SplitView[a].IndexOf("▲", startIdx);
string Target = SplitView[a].Substring(startIdx, tEndIDX - startIdx);
SplitView[a] = SplitView[a].Replace(Target, Target + ChangeContent);
}
else
{
SplitView[a] = SplitView[a].Insert(tEndIDX, ChangeContent);
}
}
break;
}
}
}
}
else
{// 기존 태그 변경
int endIdx = SplitView[a].IndexOf("▼", startIdx + 1);
if (endIdx < 0) endIdx = SplitView[a].IndexOf("▲", startIdx);
string Target = SplitView[a].Substring(startIdx, endIdx - startIdx);
SplitView[a] = SplitView[a].Replace(Target, ChangeContent);
string Target = SplitView[a].Substring(startIdx, endIdx - startIdx);
SplitView[a] = SplitView[a].Replace(Target, ChangeContent);
}
}
return String.Join("\n", SplitView);
}
@@ -1799,7 +1906,7 @@ namespace WindowsFormsApp1
/// <param name="marc">마크 데이터</param>
/// <param name="search">추출할 함수(배열)</param>
/// <returns></returns>
public string[] Take_Tag(string marc, string[] search)
public string[] Take_Tag(string marc, string[] search,bool pSearchTag = false)
{
string[] ary = marc.Split('');
string[] tag = res_dir(ary[0].Substring(24));
@@ -1839,13 +1946,31 @@ namespace WindowsFormsApp1
}
else
{
//start += 2;
//int end = tmp.IndexOf("", start);
//if (memo == result[b])
// break;
//if (end < 0)
// result[b] = tmp.Substring(start);
//else
// result[b] = tmp.Substring(start, end - start);
//memo = result[b];
start += 2;
int end = tmp.IndexOf("", start);
int end = -1;
if (tmp.Length > 1) end=tmp.IndexOf("", start);
if (memo == result[b])
break;
if (end < 0)
result[b] = tmp.Substring(start);
{
if (!pSearchTag) result[b] = tmp.Substring(start);
else
{
if (tmp.Length > 1) result[b] = tmp.Substring(start);
else result[b] = "태그 안에 데이터가 없습니다.";
}
}
else
result[b] = tmp.Substring(start, end - start);
memo = result[b];
@@ -2138,6 +2263,21 @@ namespace WindowsFormsApp1
}
public class API
{
public string CheckString(string pText,string pStr)
{
string tRet = pText;
Regex reg = new Regex(@"([\"+pStr+"]+)" + @"[가-힣]+");//+ @"([\>]+)");//new Regex(@"([\<]+)"+ @"[ㄱ-ㅎ가-힣]+"+@"([\>]+)");
MatchCollection tMatch = reg.Matches(tRet);
for (int i = 0; i < tMatch.Count; i++)
{
string tChangeText = String.Format("《{0}》", Regex.Replace(tMatch[i].Groups[0].ToString(), @"[^ㄱ-ㅎ가-힣]", ""));
tRet = tRet.Remove(tMatch[i].Groups[0].Index, tMatch[i].Groups[0].Length + 1);
tRet = tRet.Insert(tMatch[i].Groups[0].Index, tChangeText);
}
return tRet;
}
/// <summary>
/// https://blog.aladin.co.kr/openapi 참고
/// </summary>
@@ -2172,9 +2312,23 @@ namespace WindowsFormsApp1
XmlDocument doc = new XmlDocument();
try
{
//Regex reg = new Regex(@"([\<]+)" + @"[가-힣]+");//+ @"([\>]+)");//new Regex(@"([\<]+)"+ @"[ㄱ-ㅎ가-힣]+"+@"([\>]+)");
//MatchCollection tMatch = reg.Matches(xml);
//for (int i = 0; i < tMatch.Count; i++)
//{
// string tChangeText = String.Format("《{0}》", Regex.Replace(tMatch[i].Groups[0].ToString(), @"[^ㄱ-ㅎ가-힣]", ""));
// xml = xml.Remove(tMatch[i].Groups[0].Index, tMatch[i].Groups[0].Length + 1);
// xml = xml.Insert(tMatch[i].Groups[0].Index, tChangeText);
//}
//reg = new Regex(@"([\〈]+)" + @"[가-힣]+");// + @"([\>]+)");//new Regex(@"([\<]+)"+ @"[ㄱ-ㅎ가-힣]+"+@"([\>]+)");
xml = CheckString(xml, "<");
xml = CheckString(xml, "〈");
doc.LoadXml(xml);
}
catch { return ""; }
catch (Exception ex){
return "";
}
var json = JsonConvert.SerializeXmlNode(doc);
// json형식 분석을 위해 JavaScriptSerializer 개체 생성
@@ -2321,6 +2475,8 @@ namespace WindowsFormsApp1
XmlDocument doc = new XmlDocument();
try
{
xml = CheckString(xml, "<");
xml = CheckString(xml, "〈");
doc.LoadXml(xml);
}
catch { return ""; }

View File

@@ -75,6 +75,9 @@
<ManifestKeyFile>UniMarc_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="ArLog.Net4">
<HintPath>..\dll\ArLog.Net4.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="MySql.Data, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL" />
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
@@ -101,6 +104,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CExt.cs" />
<Compile Include="Connected Services\BaroService_API\Reference.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -111,6 +115,13 @@
<DesignTime>True</DesignTime>
<DependentUpon>Reference.svcmap</DependentUpon>
</Compile>
<Compile Include="CUtill.cs" />
<Compile Include="마스터\From_User_manage_List.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="마스터\From_User_manage_List.Designer.cs">
<DependentUpon>From_User_manage_List.cs</DependentUpon>
</Compile>
<Compile Include="마크\AddMarc.cs">
<SubType>Form</SubType>
</Compile>
@@ -823,6 +834,9 @@
<Compile Include="작업일지\Work_Log.Designer.cs">
<DependentUpon>Work_Log.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="마스터\From_User_manage_List.resx">
<DependentUpon>From_User_manage_List.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="마크\AddMarc.resx">
<DependentUpon>AddMarc.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -1 +1 @@
c6748d9872ca9cb179a9864ec8df9b90804c3462
7c3f3c7bd336cd4a22fbf71f45e129479c488ff9

View File

@@ -9,9 +9,7 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\Ubiety.Dns.Core
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Buffers.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\K4os.Compression.LZ4.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\K4os.Hash.xxHash.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Memory.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Runtime.CompilerServices.Unsafe.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Numerics.Vectors.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\MySql.Data.xml
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\Newtonsoft.Json.xml
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\Renci.SshNet.xml
@@ -147,3 +145,7 @@ C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_ClassSymbol.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.Marc_Plan_GearExcel.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.마크.CD_LP_AddList.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\ArLog.Net4.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\obj\Debug\UniMarc.From_User_manage_List.resources
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Memory.dll
C:\Users\Administrator\Desktop\unimarc\unimarc\UniMarc\bin\Debug\System.Numerics.Vectors.dll

View File

@@ -89,7 +89,7 @@ namespace WindowsFormsApp1.Delivery
db.DBcon();
string dbcmd;
if (dc != null || sl != null)
dbcmd = String.Format("SELECT {0} FROM `Client` WHERE campanyidx = {1} AND c_sangho LIKE \"%{2}%\" AND c_gu LIKE \"%학교%\" OR c_gu = \"유치원\";", Area, compidx, Clinet_name);
dbcmd = String.Format("SELECT {0} FROM `Client` WHERE campanyidx = {1} AND c_sangho LIKE \"%{2}%\" ;", Area, compidx, Clinet_name);//AND c_gu LIKE \"%학교%\" OR c_gu = \"유치원\"
else
dbcmd = db.DB_Contains("Client", compidx, "c_sangho", Clinet_name, Area);
string dbcon = db.DB_Send_CMD_Search(dbcmd);

View File

@@ -86,7 +86,9 @@ namespace WindowsFormsApp1.Delivery
private void Show_Image(string isbn)
{
string isbn3 = isbn.Substring(isbn.Length - 3, 3);
pictureBox1.ImageLocation = string.Format("http://image.kyobobook.co.kr/images/book/xlarge/{0}/x{1}.jpg", isbn3, isbn);
string tFilePath = string.Format("https://contents.kyobobook.co.kr/sih/fit-in/458x0/pdt/{0}.jpg", isbn);
pictureBox1.ImageLocation = tFilePath;
//pictureBox1.ImageLocation = string.Format("http://image.kyobobook.co.kr/images/book/xlarge/{0}/x{1}.jpg", isbn3, isbn);
}
private void btn_Save_Click(object sender, EventArgs e)

View File

@@ -961,7 +961,9 @@ namespace WindowsFormsApp1.Delivery
return;
}
string isbn3 = isbn.Substring(isbn.Length - 3, 3);
pictureBox1.ImageLocation = "http://image.kyobobook.co.kr/images/book/xlarge/" + isbn3 + "/x" + isbn + ".jpg";
string tFilePath = string.Format("https://contents.kyobobook.co.kr/sih/fit-in/458x0/pdt/{0}.jpg", isbn);
pictureBox1.ImageLocation = tFilePath;
//pictureBox1.ImageLocation = "http://image.kyobobook.co.kr/images/book/xlarge/" + isbn3 + "/x" + isbn + ".jpg";
}
}
}

View File

@@ -0,0 +1,836 @@
namespace UniMarc
{
partial class From_User_manage_List
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.dgvList = new System.Windows.Forms.DataGridView();
this.dbIDX = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.compidx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ip = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.comp_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.boss = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bubin = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.cobin = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.uptae = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.jongmok = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.zip = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.addr = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tel = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.fax = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bank_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.bank_no = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.email = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.barea = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.grade = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tbIP = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.tb_barea = new System.Windows.Forms.TextBox();
this.tb_bank_no = new System.Windows.Forms.TextBox();
this.tb_boss = new System.Windows.Forms.TextBox();
this.tb_fax = new System.Windows.Forms.TextBox();
this.label22 = new System.Windows.Forms.Label();
this.tb_sangho = new System.Windows.Forms.TextBox();
this.tb_jongmok = new System.Windows.Forms.TextBox();
this.label23 = new System.Windows.Forms.Label();
this.tb_cobin = new System.Windows.Forms.TextBox();
this.tb_bank_comp = new System.Windows.Forms.TextBox();
this.tb_bubin = new System.Windows.Forms.TextBox();
this.tb_uptae = new System.Windows.Forms.TextBox();
this.tb_email = new System.Windows.Forms.TextBox();
this.panel7 = new System.Windows.Forms.Panel();
this.tb_addr = new System.Windows.Forms.TextBox();
this.tb_zip = new System.Windows.Forms.TextBox();
this.tb_tel = new System.Windows.Forms.TextBox();
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.label29 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.label32 = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.nudCompIDX = new System.Windows.Forms.NumericUpDown();
this.btnUpdate = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.btnDelete = new System.Windows.Forms.Button();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.btnInsert = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dgvList)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.panel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudCompIDX)).BeginInit();
this.tableLayoutPanel2.SuspendLayout();
this.SuspendLayout();
//
// dgvList
//
this.dgvList.AllowUserToAddRows = false;
this.dgvList.AllowUserToDeleteRows = false;
this.dgvList.BackgroundColor = System.Drawing.SystemColors.Control;
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.dgvList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dgvList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.dbIDX,
this.compidx,
this.ip,
this.comp_name,
this.boss,
this.bubin,
this.cobin,
this.uptae,
this.jongmok,
this.zip,
this.addr,
this.tel,
this.fax,
this.bank_comp,
this.bank_no,
this.email,
this.barea,
this.grade});
this.dgvList.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvList.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
this.dgvList.Location = new System.Drawing.Point(0, 268);
this.dgvList.MultiSelect = false;
this.dgvList.Name = "dgvList";
this.dgvList.ReadOnly = true;
this.dgvList.RowHeadersWidth = 20;
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dgvList.RowsDefaultCellStyle = dataGridViewCellStyle2;
this.dgvList.RowTemplate.Height = 23;
this.dgvList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvList.Size = new System.Drawing.Size(589, 569);
this.dgvList.TabIndex = 1;
this.dgvList.MouseClick += new System.Windows.Forms.MouseEventHandler(this.dgvList_MouseClick);
//
// dbIDX
//
this.dbIDX.HeaderText = "IDX";
this.dbIDX.Name = "dbIDX";
this.dbIDX.ReadOnly = true;
this.dbIDX.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.dbIDX.Visible = false;
this.dbIDX.Width = 70;
//
// compidx
//
this.compidx.HeaderText = "고유번호";
this.compidx.Name = "compidx";
this.compidx.ReadOnly = true;
//
// ip
//
this.ip.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.ip.HeaderText = "IP";
this.ip.Name = "ip";
this.ip.ReadOnly = true;
this.ip.Width = 120;
//
// comp_name
//
this.comp_name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.comp_name.HeaderText = "상호";
this.comp_name.Name = "comp_name";
this.comp_name.ReadOnly = true;
this.comp_name.Width = 150;
//
// boss
//
this.boss.HeaderText = "대표자명";
this.boss.Name = "boss";
this.boss.ReadOnly = true;
//
// bubin
//
this.bubin.HeaderText = "등록번호";
this.bubin.Name = "bubin";
this.bubin.ReadOnly = true;
//
// cobin
//
this.cobin.HeaderText = "법인번호";
this.cobin.Name = "cobin";
this.cobin.ReadOnly = true;
//
// uptae
//
this.uptae.HeaderText = "업태";
this.uptae.Name = "uptae";
this.uptae.ReadOnly = true;
//
// jongmok
//
this.jongmok.HeaderText = "종목";
this.jongmok.Name = "jongmok";
this.jongmok.ReadOnly = true;
//
// zip
//
this.zip.HeaderText = "우편번호";
this.zip.Name = "zip";
this.zip.ReadOnly = true;
//
// addr
//
this.addr.HeaderText = "주소";
this.addr.Name = "addr";
this.addr.ReadOnly = true;
//
// tel
//
this.tel.HeaderText = "전화번호";
this.tel.Name = "tel";
this.tel.ReadOnly = true;
//
// fax
//
this.fax.HeaderText = "팩스번호";
this.fax.Name = "fax";
this.fax.ReadOnly = true;
//
// bank_comp
//
this.bank_comp.HeaderText = "은행명";
this.bank_comp.Name = "bank_comp";
this.bank_comp.ReadOnly = true;
//
// bank_no
//
this.bank_no.HeaderText = "계좌번호";
this.bank_no.Name = "bank_no";
this.bank_no.ReadOnly = true;
//
// email
//
this.email.HeaderText = "이메일";
this.email.Name = "email";
this.email.ReadOnly = true;
//
// barea
//
this.barea.HeaderText = "발송처";
this.barea.Name = "barea";
this.barea.ReadOnly = true;
//
// grade
//
this.grade.HeaderText = "등급";
this.grade.Name = "grade";
this.grade.ReadOnly = true;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
this.tableLayoutPanel1.ColumnCount = 4;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35F));
this.tableLayoutPanel1.Controls.Add(this.tbIP, 1, 7);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.label12, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.label14, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.label20, 0, 4);
this.tableLayoutPanel1.Controls.Add(this.tb_barea, 3, 6);
this.tableLayoutPanel1.Controls.Add(this.tb_bank_no, 3, 5);
this.tableLayoutPanel1.Controls.Add(this.tb_boss, 3, 0);
this.tableLayoutPanel1.Controls.Add(this.tb_fax, 3, 4);
this.tableLayoutPanel1.Controls.Add(this.label22, 0, 5);
this.tableLayoutPanel1.Controls.Add(this.tb_sangho, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.tb_jongmok, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.label23, 0, 6);
this.tableLayoutPanel1.Controls.Add(this.tb_cobin, 3, 1);
this.tableLayoutPanel1.Controls.Add(this.tb_bank_comp, 1, 5);
this.tableLayoutPanel1.Controls.Add(this.tb_bubin, 1, 1);
this.tableLayoutPanel1.Controls.Add(this.tb_uptae, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.tb_email, 1, 6);
this.tableLayoutPanel1.Controls.Add(this.panel7, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.tb_tel, 1, 4);
this.tableLayoutPanel1.Controls.Add(this.label27, 2, 0);
this.tableLayoutPanel1.Controls.Add(this.label28, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.label29, 2, 2);
this.tableLayoutPanel1.Controls.Add(this.label30, 2, 4);
this.tableLayoutPanel1.Controls.Add(this.label31, 2, 5);
this.tableLayoutPanel1.Controls.Add(this.label32, 2, 6);
this.tableLayoutPanel1.Controls.Add(this.label25, 0, 7);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 8);
this.tableLayoutPanel1.Controls.Add(this.label4, 2, 8);
this.tableLayoutPanel1.Controls.Add(this.label9, 2, 7);
this.tableLayoutPanel1.Controls.Add(this.nudCompIDX, 1, 8);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 9;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(589, 230);
this.tableLayoutPanel1.TabIndex = 2;
//
// tbIP
//
this.tbIP.BackColor = System.Drawing.SystemColors.Info;
this.tbIP.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbIP.Location = new System.Drawing.Point(90, 177);
this.tbIP.Margin = new System.Windows.Forms.Padding(0);
this.tbIP.Name = "tbIP";
this.tbIP.Size = new System.Drawing.Size(202, 23);
this.tbIP.TabIndex = 7;
this.tbIP.Text = "ALL";
//
// label1
//
this.label1.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(2, 2);
this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(86, 23);
this.label1.TabIndex = 1;
this.label1.Text = "상 호";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Location = new System.Drawing.Point(2, 27);
this.label3.Margin = new System.Windows.Forms.Padding(0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(86, 23);
this.label3.TabIndex = 1;
this.label3.Text = "등록번호";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label12
//
this.label12.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label12.Dock = System.Windows.Forms.DockStyle.Fill;
this.label12.Location = new System.Drawing.Point(2, 52);
this.label12.Margin = new System.Windows.Forms.Padding(0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(86, 23);
this.label12.TabIndex = 1;
this.label12.Text = "업 태";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label14
//
this.label14.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label14.Dock = System.Windows.Forms.DockStyle.Fill;
this.label14.Location = new System.Drawing.Point(2, 77);
this.label14.Margin = new System.Windows.Forms.Padding(0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(86, 23);
this.label14.TabIndex = 1;
this.label14.Text = "회사주소";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label20
//
this.label20.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label20.Dock = System.Windows.Forms.DockStyle.Fill;
this.label20.Location = new System.Drawing.Point(2, 102);
this.label20.Margin = new System.Windows.Forms.Padding(0);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(86, 23);
this.label20.TabIndex = 1;
this.label20.Text = "전화번호";
this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tb_barea
//
this.tb_barea.Location = new System.Drawing.Point(382, 152);
this.tb_barea.Margin = new System.Windows.Forms.Padding(0);
this.tb_barea.Name = "tb_barea";
this.tb_barea.Size = new System.Drawing.Size(205, 23);
this.tb_barea.TabIndex = 0;
//
// tb_bank_no
//
this.tb_bank_no.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_bank_no.Location = new System.Drawing.Point(382, 127);
this.tb_bank_no.Margin = new System.Windows.Forms.Padding(0);
this.tb_bank_no.Name = "tb_bank_no";
this.tb_bank_no.Size = new System.Drawing.Size(205, 23);
this.tb_bank_no.TabIndex = 0;
//
// tb_boss
//
this.tb_boss.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_boss.Location = new System.Drawing.Point(382, 2);
this.tb_boss.Margin = new System.Windows.Forms.Padding(0);
this.tb_boss.Name = "tb_boss";
this.tb_boss.Size = new System.Drawing.Size(205, 23);
this.tb_boss.TabIndex = 0;
//
// tb_fax
//
this.tb_fax.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_fax.Location = new System.Drawing.Point(382, 102);
this.tb_fax.Margin = new System.Windows.Forms.Padding(0);
this.tb_fax.Name = "tb_fax";
this.tb_fax.Size = new System.Drawing.Size(205, 23);
this.tb_fax.TabIndex = 0;
//
// label22
//
this.label22.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label22.Dock = System.Windows.Forms.DockStyle.Fill;
this.label22.Location = new System.Drawing.Point(2, 127);
this.label22.Margin = new System.Windows.Forms.Padding(0);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(86, 23);
this.label22.TabIndex = 1;
this.label22.Text = "은 행 명";
this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tb_sangho
//
this.tb_sangho.BackColor = System.Drawing.SystemColors.Info;
this.tb_sangho.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_sangho.Location = new System.Drawing.Point(90, 2);
this.tb_sangho.Margin = new System.Windows.Forms.Padding(0);
this.tb_sangho.Name = "tb_sangho";
this.tb_sangho.Size = new System.Drawing.Size(202, 23);
this.tb_sangho.TabIndex = 0;
//
// tb_jongmok
//
this.tb_jongmok.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_jongmok.Location = new System.Drawing.Point(382, 52);
this.tb_jongmok.Margin = new System.Windows.Forms.Padding(0);
this.tb_jongmok.Name = "tb_jongmok";
this.tb_jongmok.Size = new System.Drawing.Size(205, 23);
this.tb_jongmok.TabIndex = 0;
//
// label23
//
this.label23.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label23.Dock = System.Windows.Forms.DockStyle.Fill;
this.label23.Location = new System.Drawing.Point(2, 152);
this.label23.Margin = new System.Windows.Forms.Padding(0);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(86, 23);
this.label23.TabIndex = 1;
this.label23.Text = "이 메 일";
this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tb_cobin
//
this.tb_cobin.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_cobin.Location = new System.Drawing.Point(382, 27);
this.tb_cobin.Margin = new System.Windows.Forms.Padding(0);
this.tb_cobin.Name = "tb_cobin";
this.tb_cobin.Size = new System.Drawing.Size(205, 23);
this.tb_cobin.TabIndex = 0;
//
// tb_bank_comp
//
this.tb_bank_comp.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_bank_comp.Location = new System.Drawing.Point(90, 127);
this.tb_bank_comp.Margin = new System.Windows.Forms.Padding(0);
this.tb_bank_comp.Name = "tb_bank_comp";
this.tb_bank_comp.Size = new System.Drawing.Size(202, 23);
this.tb_bank_comp.TabIndex = 0;
//
// tb_bubin
//
this.tb_bubin.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_bubin.Location = new System.Drawing.Point(90, 27);
this.tb_bubin.Margin = new System.Windows.Forms.Padding(0);
this.tb_bubin.Name = "tb_bubin";
this.tb_bubin.Size = new System.Drawing.Size(202, 23);
this.tb_bubin.TabIndex = 0;
//
// tb_uptae
//
this.tb_uptae.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_uptae.Location = new System.Drawing.Point(90, 52);
this.tb_uptae.Margin = new System.Windows.Forms.Padding(0);
this.tb_uptae.Name = "tb_uptae";
this.tb_uptae.Size = new System.Drawing.Size(202, 23);
this.tb_uptae.TabIndex = 0;
//
// tb_email
//
this.tb_email.BackColor = System.Drawing.SystemColors.Info;
this.tb_email.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_email.Location = new System.Drawing.Point(90, 152);
this.tb_email.Margin = new System.Windows.Forms.Padding(0);
this.tb_email.Name = "tb_email";
this.tb_email.Size = new System.Drawing.Size(202, 23);
this.tb_email.TabIndex = 0;
//
// panel7
//
this.tableLayoutPanel1.SetColumnSpan(this.panel7, 3);
this.panel7.Controls.Add(this.tb_addr);
this.panel7.Controls.Add(this.tb_zip);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(90, 77);
this.panel7.Margin = new System.Windows.Forms.Padding(0);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(497, 23);
this.panel7.TabIndex = 2;
//
// tb_addr
//
this.tb_addr.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_addr.Location = new System.Drawing.Point(95, 0);
this.tb_addr.Margin = new System.Windows.Forms.Padding(0);
this.tb_addr.Name = "tb_addr";
this.tb_addr.Size = new System.Drawing.Size(402, 23);
this.tb_addr.TabIndex = 0;
//
// tb_zip
//
this.tb_zip.Dock = System.Windows.Forms.DockStyle.Left;
this.tb_zip.Location = new System.Drawing.Point(0, 0);
this.tb_zip.Margin = new System.Windows.Forms.Padding(0);
this.tb_zip.Name = "tb_zip";
this.tb_zip.Size = new System.Drawing.Size(95, 23);
this.tb_zip.TabIndex = 0;
this.tb_zip.Text = " -";
//
// tb_tel
//
this.tb_tel.BackColor = System.Drawing.SystemColors.Info;
this.tb_tel.Dock = System.Windows.Forms.DockStyle.Fill;
this.tb_tel.Location = new System.Drawing.Point(90, 102);
this.tb_tel.Margin = new System.Windows.Forms.Padding(0);
this.tb_tel.Name = "tb_tel";
this.tb_tel.Size = new System.Drawing.Size(202, 23);
this.tb_tel.TabIndex = 0;
//
// label27
//
this.label27.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label27.Dock = System.Windows.Forms.DockStyle.Fill;
this.label27.Location = new System.Drawing.Point(294, 2);
this.label27.Margin = new System.Windows.Forms.Padding(0);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(86, 23);
this.label27.TabIndex = 1;
this.label27.Text = "대표자명";
this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label28
//
this.label28.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label28.Dock = System.Windows.Forms.DockStyle.Fill;
this.label28.Location = new System.Drawing.Point(294, 27);
this.label28.Margin = new System.Windows.Forms.Padding(0);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(86, 23);
this.label28.TabIndex = 1;
this.label28.Text = "법인번호";
this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label29
//
this.label29.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label29.Dock = System.Windows.Forms.DockStyle.Fill;
this.label29.Location = new System.Drawing.Point(294, 52);
this.label29.Margin = new System.Windows.Forms.Padding(0);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(86, 23);
this.label29.TabIndex = 1;
this.label29.Text = "종 목";
this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label30
//
this.label30.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label30.Dock = System.Windows.Forms.DockStyle.Fill;
this.label30.Location = new System.Drawing.Point(294, 102);
this.label30.Margin = new System.Windows.Forms.Padding(0);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(86, 23);
this.label30.TabIndex = 1;
this.label30.Text = "팩스번호";
this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label31
//
this.label31.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label31.Dock = System.Windows.Forms.DockStyle.Fill;
this.label31.Location = new System.Drawing.Point(294, 127);
this.label31.Margin = new System.Windows.Forms.Padding(0);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(86, 23);
this.label31.TabIndex = 1;
this.label31.Text = "계좌번호";
this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label32
//
this.label32.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label32.Dock = System.Windows.Forms.DockStyle.Fill;
this.label32.Location = new System.Drawing.Point(294, 152);
this.label32.Margin = new System.Windows.Forms.Padding(0);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(86, 23);
this.label32.TabIndex = 1;
this.label32.Text = "발 송 처";
this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label25
//
this.label25.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label25.Dock = System.Windows.Forms.DockStyle.Fill;
this.label25.Location = new System.Drawing.Point(2, 177);
this.label25.Margin = new System.Windows.Forms.Padding(0);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(86, 23);
this.label25.TabIndex = 1;
this.label25.Text = "IP";
this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.BackColor = System.Drawing.SystemColors.ActiveBorder;
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(2, 202);
this.label2.Margin = new System.Windows.Forms.Padding(0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(86, 26);
this.label2.TabIndex = 1;
this.label2.Text = "고유번호";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.tableLayoutPanel1.SetColumnSpan(this.label4, 2);
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
this.label4.Location = new System.Drawing.Point(297, 202);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(287, 26);
this.label4.TabIndex = 8;
this.label4.Text = "고유번호는 숫자만 입력 될 수 있습니다.";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label9
//
this.tableLayoutPanel1.SetColumnSpan(this.label9, 2);
this.label9.Dock = System.Windows.Forms.DockStyle.Fill;
this.label9.Location = new System.Drawing.Point(297, 177);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(287, 23);
this.label9.TabIndex = 8;
this.label9.Text = "IP 확인 : http://ipinfo.io/ip 예시(127.0.0.1)";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// nudCompIDX
//
this.nudCompIDX.Dock = System.Windows.Forms.DockStyle.Fill;
this.nudCompIDX.Location = new System.Drawing.Point(90, 202);
this.nudCompIDX.Margin = new System.Windows.Forms.Padding(0);
this.nudCompIDX.Name = "nudCompIDX";
this.nudCompIDX.Size = new System.Drawing.Size(202, 23);
this.nudCompIDX.TabIndex = 9;
this.nudCompIDX.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// btnUpdate
//
this.btnUpdate.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnUpdate.Location = new System.Drawing.Point(147, 0);
this.btnUpdate.Margin = new System.Windows.Forms.Padding(0);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(147, 38);
this.btnUpdate.TabIndex = 0;
this.btnUpdate.Text = "수정";
this.btnUpdate.UseVisualStyleBackColor = true;
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
//
// btnClose
//
this.btnClose.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnClose.Location = new System.Drawing.Point(441, 0);
this.btnClose.Margin = new System.Windows.Forms.Padding(0);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(148, 38);
this.btnClose.TabIndex = 0;
this.btnClose.Text = "닫기";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnDelete
//
this.btnDelete.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnDelete.Location = new System.Drawing.Point(294, 0);
this.btnDelete.Margin = new System.Windows.Forms.Padding(0);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(147, 38);
this.btnDelete.TabIndex = 0;
this.btnDelete.Text = "삭제";
this.btnDelete.UseVisualStyleBackColor = true;
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.ColumnCount = 4;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel2.Controls.Add(this.btnUpdate, 1, 0);
this.tableLayoutPanel2.Controls.Add(this.btnClose, 3, 0);
this.tableLayoutPanel2.Controls.Add(this.btnDelete, 2, 0);
this.tableLayoutPanel2.Controls.Add(this.btnInsert, 0, 0);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Top;
this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 230);
this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(0);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(589, 38);
this.tableLayoutPanel2.TabIndex = 3;
//
// btnInsert
//
this.btnInsert.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnInsert.Location = new System.Drawing.Point(0, 0);
this.btnInsert.Margin = new System.Windows.Forms.Padding(0);
this.btnInsert.Name = "btnInsert";
this.btnInsert.Size = new System.Drawing.Size(147, 38);
this.btnInsert.TabIndex = 0;
this.btnInsert.Text = "추가";
this.btnInsert.UseVisualStyleBackColor = true;
this.btnInsert.Click += new System.EventHandler(this.btnInsert_Click);
//
// From_User_manage_List
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(589, 837);
this.Controls.Add(this.dgvList);
this.Controls.Add(this.tableLayoutPanel2);
this.Controls.Add(this.tableLayoutPanel1);
this.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Name = "From_User_manage_List";
this.Text = "사업자 등록 관리";
this.Load += new System.EventHandler(this.From_User_manage_List_Load);
((System.ComponentModel.ISupportInitialize)(this.dgvList)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.panel7.ResumeLayout(false);
this.panel7.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudCompIDX)).EndInit();
this.tableLayoutPanel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dgvList;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Button btnUpdate;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.TextBox tb_sangho;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.TextBox tb_bank_comp;
private System.Windows.Forms.TextBox tb_bubin;
private System.Windows.Forms.TextBox tb_uptae;
private System.Windows.Forms.TextBox tb_email;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.TextBox tb_zip;
private System.Windows.Forms.TextBox tb_addr;
private System.Windows.Forms.TextBox tb_tel;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox tbIP;
private System.Windows.Forms.Button btnDelete;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.TextBox tb_barea;
private System.Windows.Forms.TextBox tb_bank_no;
private System.Windows.Forms.TextBox tb_boss;
private System.Windows.Forms.TextBox tb_fax;
private System.Windows.Forms.TextBox tb_jongmok;
private System.Windows.Forms.TextBox tb_cobin;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Label label32;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.Button btnInsert;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.NumericUpDown nudCompIDX;
private System.Windows.Forms.DataGridViewTextBoxColumn dbIDX;
private System.Windows.Forms.DataGridViewTextBoxColumn compidx;
private System.Windows.Forms.DataGridViewTextBoxColumn ip;
private System.Windows.Forms.DataGridViewTextBoxColumn comp_name;
private System.Windows.Forms.DataGridViewTextBoxColumn boss;
private System.Windows.Forms.DataGridViewTextBoxColumn bubin;
private System.Windows.Forms.DataGridViewTextBoxColumn cobin;
private System.Windows.Forms.DataGridViewTextBoxColumn uptae;
private System.Windows.Forms.DataGridViewTextBoxColumn jongmok;
private System.Windows.Forms.DataGridViewTextBoxColumn zip;
private System.Windows.Forms.DataGridViewTextBoxColumn addr;
private System.Windows.Forms.DataGridViewTextBoxColumn tel;
private System.Windows.Forms.DataGridViewTextBoxColumn fax;
private System.Windows.Forms.DataGridViewTextBoxColumn bank_comp;
private System.Windows.Forms.DataGridViewTextBoxColumn bank_no;
private System.Windows.Forms.DataGridViewTextBoxColumn email;
private System.Windows.Forms.DataGridViewTextBoxColumn barea;
private System.Windows.Forms.DataGridViewTextBoxColumn grade;
}
}

View File

@@ -0,0 +1,217 @@
using ExcelTest;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1;
namespace UniMarc
{
public partial class From_User_manage_List : Form
{
Helper_DB mDb = new Helper_DB();
public From_User_manage_List()
{
InitializeComponent();
}
private void CheckText()
{
string[] tNeedText = {
tb_sangho.Text, tb_tel.Text, tb_email.Text
};
foreach (string tCheckText in tNeedText)
{
if (tCheckText == "")
{
MessageBox.Show("전화번호, 상호, 이메일, IP, 고유번호는 필수 입력 사항입니다.");
return;
}
}
}
private void btnInsert_Click(object sender, EventArgs e)
{
CheckText();
string tCmd = string.Format("SELECT * FROM `Comp` WHERE `comp_name` = \"{0}\"", tb_sangho.Text);
string tResult = mDb.DB_Send_CMD_Search(tCmd);
if (tResult != "")
{
MessageBox.Show("상호명이 중복되었습니다.\n다시 확인해주세요.");
return;
}
tCmd = string.Format("SELECT * FROM `comp` WHERE `compidx` = \"{0}\"", nudCompIDX.Value.ToString());
tResult = mDb.DB_Send_CMD_Search(tCmd);
if (tResult != "")
{
MessageBox.Show("고유번호가 중복되었습니다.\n다시 확인해주세요.");
return;
}
string[] tInsertCol = {
"comp_name", "boss", "bubin", "cobin", "uptae",
"jongmok", "zip", "addr", "tel", "fax",
"bank_comp", "bank_no", "email", "barea", "grade"
,"compidx", "IP"
}; // 15
string[] tInsertData = {
tb_sangho.Text, tb_boss.Text, tb_bubin.Text, tb_cobin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_zip.Text, tb_addr.Text, tb_tel.Text, tb_fax.Text,
tb_bank_comp.Text, tb_bank_no.Text, tb_email.Text, tb_barea.Text, "외부업체"
,nudCompIDX.Value.ToString(),tbIP.Text
}; // 15
tCmd = mDb.DB_INSERT("Comp", tInsertCol, tInsertData);
mDb.DB_Send_CMD_reVoid(tCmd);
//// IP 적용
//string[] IP_Col = { "compidx", "comp", "IP" };
//string[] IP_Data = { mDb.chk_comp(tb_sangho.Text), tb_sangho.Text, tbIP.Text };//cb_IPList.Text
//tCmd = mDb.DB_INSERT("Comp_IP", IP_Col, IP_Data);
//mDb.DB_Send_CMD_reVoid(tCmd);
RefreshList();
}
private void btnUpdate_Click(object sender, EventArgs e)
{
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count == 0)
{
MessageBox.Show("수정할 행을 선택해 주세요.");
return;
}
string tText = string.Format("{0} 를 수정 하시겠습니까?", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
if (CUtill.MsgQ(tText) == DialogResult.Yes)
{
CheckText();
string[] tEdit_tbl = {
"comp_name", "boss", "bubin", "cobin", "uptae",
"jongmok", "zip", "addr", "tel", "fax",
"bank_comp", "bank_no", "email", "barea", "grade" };
string[] tEdit_col = {
tb_sangho.Text, tb_boss.Text, tb_bubin.Text, tb_cobin.Text, tb_uptae.Text,
tb_jongmok.Text, tb_zip.Text, tb_addr.Text, tb_tel.Text, tb_fax.Text,
tb_bank_comp.Text, tb_bank_no.Text, tb_email.Text, tb_barea.Text, "외부업체"
};
string[] tSearch_tbl = { "idx" };
string[] tSearch_col = { dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString() };
string U_cmd = mDb.More_Update("Comp", tEdit_tbl, tEdit_col, tSearch_tbl, tSearch_col);
mDb.DB_Send_CMD_reVoid(U_cmd);
}
RefreshList();
}
private void btnDelete_Click(object sender, EventArgs e)
{
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count == 0)
{
MessageBox.Show("삭제할 행을 선택해 주세요.");
return;
}
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
if (CUtill.MsgQ(tText) == DialogResult.Yes)
{
string tD_cmd = mDb.DB_Delete("Comp", "idx", dgvList.SelectedRows[0].Cells["dbIDX"].Value.ToString(), "comp_name", dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
mDb.DB_Send_CMD_reVoid(tD_cmd);
TextClear();
}
RefreshList();
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void RefreshList()
{
mDb.DBcon();
dgvList.Rows.Clear();
string tArea = string.Format("idx,compidx,ip,comp_name, boss, bubin, cobin, uptae,jongmok, zip, addr, tel, fax,bank_comp, bank_no, email, barea, grade");
string tCmd = string.Format("SELECT {0} FROM Comp", tArea);
List<string> tData = mDb.DB_Send_CMD_Search(tCmd).Split('|').ToList();
for (int i = 0; i < tData.Count; i = i + 18)
{
if (i + 18 > tData.Count) break;
string[] tDgvData = { tData[i], tData[i+1], tData[i+2], tData[i+3], tData[i+4]
,tData[i+5],tData[i+6],tData[i+7],tData[i+8],tData[i+9]
,tData[i+10],tData[i+11],tData[i+12],tData[i+13],tData[i+14],tData[i+15],tData[i+16],tData[i+17]};
dgvList.Rows.Add(tDgvData);
}
dgvList.ClearSelection();
}
private void From_User_manage_List_Load(object sender, EventArgs e)
{
RefreshList();
}
public class CompIpData
{
public string mIP = string.Empty;
public string mCompName = string.Empty;
public string mCompIDX = string.Empty;
public CompIpData(string pIP, string pCompName, string pCompIDX)
{
mIP = pIP;
mCompName = pCompName;
mCompIDX = pCompIDX;
}
}
private void dgvList_MouseClick(object sender, MouseEventArgs e)
{
if (dgvList.CurrentCell == null || dgvList.CurrentCell.RowIndex < 0 || dgvList.SelectedRows.Count==0) return;
tb_sangho.InvokeText(dgvList.SelectedRows[0].Cells["comp_name"].Value.ToString());
tb_boss.InvokeText(dgvList.SelectedRows[0].Cells["boss"].Value.ToString());
tb_bubin.InvokeText(dgvList.SelectedRows[0].Cells["bubin"].Value.ToString());
tb_cobin.InvokeText(dgvList.SelectedRows[0].Cells["cobin"].Value.ToString());
tb_uptae.InvokeText(dgvList.SelectedRows[0].Cells["uptae"].Value.ToString());
tb_jongmok.InvokeText(dgvList.SelectedRows[0].Cells["jongmok"].Value.ToString());
tb_zip.InvokeText(dgvList.SelectedRows[0].Cells["zip"].Value.ToString());
tb_addr.InvokeText(dgvList.SelectedRows[0].Cells["addr"].Value.ToString());
tb_tel.InvokeText(dgvList.SelectedRows[0].Cells["tel"].Value.ToString());
tb_fax.InvokeText(dgvList.SelectedRows[0].Cells["fax"].Value.ToString());
tb_bank_comp.InvokeText(dgvList.SelectedRows[0].Cells["bank_comp"].Value.ToString());
tb_bank_no.InvokeText(dgvList.SelectedRows[0].Cells["bank_no"].Value.ToString());
tb_email.InvokeText(dgvList.SelectedRows[0].Cells["email"].Value.ToString());
tb_barea.InvokeText(dgvList.SelectedRows[0].Cells["barea"].Value.ToString());
tbIP.InvokeText(dgvList.SelectedRows[0].Cells["ip"].Value.ToString());
int tValue = 0;
int.TryParse(dgvList.SelectedRows[0].Cells["compidx"].Value.ToString(), out tValue);
nudCompIDX.InvokeNumeric(tValue);
}
private void TextClear()
{
tb_sangho.InvokeText("");
tb_boss.InvokeText("");
tb_bubin.InvokeText("");
tb_cobin.InvokeText("");
tb_uptae.InvokeText("");
tb_jongmok.InvokeText("");
tb_zip.InvokeText("");
tb_addr.InvokeText("");
tb_tel.InvokeText("");
tb_fax.InvokeText("");
tb_bank_comp.InvokeText("");
tb_bank_no.InvokeText("");
tb_email.InvokeText("");
tb_barea.InvokeText("");
tbIP.InvokeText("");
}
}
}

View File

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

View File

@@ -32,6 +32,7 @@
this.btn_save = new System.Windows.Forms.Button();
this.label11 = new System.Windows.Forms.Label();
this.panel12 = new System.Windows.Forms.Panel();
this.cb_IPList = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.tb_pw = new System.Windows.Forms.TextBox();
this.tb_id = new System.Windows.Forms.TextBox();
@@ -81,7 +82,8 @@
this.label6 = new System.Windows.Forms.Label();
this.panel7 = new System.Windows.Forms.Panel();
this.label7 = new System.Windows.Forms.Label();
this.cb_IPList = new System.Windows.Forms.ComboBox();
this.tbIP = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.panel12.SuspendLayout();
this.panel16.SuspendLayout();
this.panel20.SuspendLayout();
@@ -134,6 +136,8 @@
// panel12
//
this.panel12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel12.Controls.Add(this.label9);
this.panel12.Controls.Add(this.tbIP);
this.panel12.Controls.Add(this.cb_IPList);
this.panel12.Controls.Add(this.button1);
this.panel12.Controls.Add(this.tb_pw);
@@ -172,6 +176,16 @@
this.panel12.Size = new System.Drawing.Size(475, 244);
this.panel12.TabIndex = 11;
//
// cb_IPList
//
this.cb_IPList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_IPList.FormattingEnabled = true;
this.cb_IPList.Location = new System.Drawing.Point(432, 218);
this.cb_IPList.Name = "cb_IPList";
this.cb_IPList.Size = new System.Drawing.Size(36, 20);
this.cb_IPList.TabIndex = 6;
this.cb_IPList.Visible = false;
//
// button1
//
this.button1.Location = new System.Drawing.Point(178, 190);
@@ -606,14 +620,22 @@
this.label7.TabIndex = 0;
this.label7.Text = "허가 IP";
//
// cb_IPList
// tbIP
//
this.cb_IPList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_IPList.FormattingEnabled = true;
this.cb_IPList.Location = new System.Drawing.Point(64, 218);
this.cb_IPList.Name = "cb_IPList";
this.cb_IPList.Size = new System.Drawing.Size(182, 20);
this.cb_IPList.TabIndex = 6;
this.tbIP.Location = new System.Drawing.Point(64, 218);
this.tbIP.Name = "tbIP";
this.tbIP.Size = new System.Drawing.Size(182, 21);
this.tbIP.TabIndex = 7;
this.tbIP.Text = "ALL";
//
// label9
//
this.label9.Location = new System.Drawing.Point(252, 218);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(174, 21);
this.label9.TabIndex = 8;
this.label9.Text = "IP 확인 : http://ipinfo.io/ip";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// User_manage
//
@@ -722,5 +744,7 @@
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.ComboBox cb_IPList;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox tbIP;
}
}

View File

@@ -109,9 +109,9 @@ namespace WindowsFormsApp1
db.DB_Send_CMD_reVoid(db.DB_INSERT("Comp", InsertCol, InsertData));
// IP 적용
string[] IP_Col = { "compidx", "IP" };
string[] IP_Data = { db.chk_comp(tb_sangho.Text), cb_IPList.Text };
string[] IP_Col = { "compidx","comp", "IP" };
string[] IP_Data = { db.chk_comp(tb_sangho.Text), tb_sangho.Text,tbIP.Text };//cb_IPList.Text
db.DB_Send_CMD_reVoid(db.DB_INSERT("Comp_IP", IP_Col, IP_Data));
InsertAccount(tb_sangho.Text);

View File

@@ -29,6 +29,7 @@ namespace UniMarc.마크
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddMarc));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -39,7 +40,6 @@ namespace UniMarc.마크
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddMarc));
this.textKDC4 = new System.Windows.Forms.TextBox();
this.textKDC5 = new System.Windows.Forms.TextBox();
this.textKDC6 = new System.Windows.Forms.TextBox();
@@ -94,6 +94,7 @@ namespace UniMarc.마크
this.cb_grade = new System.Windows.Forms.ComboBox();
this.input_date = new System.Windows.Forms.DateTimePicker();
this.panel3 = new System.Windows.Forms.Panel();
this.btn_Reflesh008 = new System.Windows.Forms.Button();
this.text008 = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.btn_close = new System.Windows.Forms.Button();
@@ -222,11 +223,11 @@ namespace UniMarc.마크
this.cb_SearchCol = new System.Windows.Forms.ComboBox();
this.tb_Search = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.Btn_SearchKolis = new System.Windows.Forms.Button();
this.btn_Empty = new System.Windows.Forms.Button();
this.lbl_Midx = new System.Windows.Forms.Label();
this.Btn_SearchKolis = new System.Windows.Forms.Button();
this.btn_Reflesh008 = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.groupBox1.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
@@ -260,6 +261,7 @@ namespace UniMarc.마크
this.textKDC4.Name = "textKDC4";
this.textKDC4.Size = new System.Drawing.Size(93, 21);
this.textKDC4.TabIndex = 256;
this.textKDC4.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// textKDC5
//
@@ -269,6 +271,7 @@ namespace UniMarc.마크
this.textKDC5.Name = "textKDC5";
this.textKDC5.Size = new System.Drawing.Size(93, 21);
this.textKDC5.TabIndex = 257;
this.textKDC5.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// textKDC6
//
@@ -278,6 +281,7 @@ namespace UniMarc.마크
this.textKDC6.Name = "textKDC6";
this.textKDC6.Size = new System.Drawing.Size(93, 21);
this.textKDC6.TabIndex = 259;
this.textKDC6.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// label12
//
@@ -317,6 +321,7 @@ namespace UniMarc.마크
this.text520a.Name = "text520a";
this.text520a.Size = new System.Drawing.Size(372, 48);
this.text520a.TabIndex = 266;
this.text520a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// groupBox1
//
@@ -351,6 +356,7 @@ namespace UniMarc.마크
this.text245a.Name = "text245a";
this.text245a.Size = new System.Drawing.Size(389, 21);
this.text245a.TabIndex = 285;
this.text245a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text245b
//
@@ -370,6 +376,7 @@ namespace UniMarc.마크
this.text245x.Name = "text245x";
this.text245x.Size = new System.Drawing.Size(389, 21);
this.text245x.TabIndex = 290;
this.text245x.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text245n
//
@@ -379,6 +386,7 @@ namespace UniMarc.마크
this.text245n.Name = "text245n";
this.text245n.Size = new System.Drawing.Size(107, 21);
this.text245n.TabIndex = 289;
this.text245n.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text245d
//
@@ -388,6 +396,7 @@ namespace UniMarc.마크
this.text245d.Name = "text245d";
this.text245d.Size = new System.Drawing.Size(457, 21);
this.text245d.TabIndex = 288;
this.text245d.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text245e
//
@@ -407,6 +416,7 @@ namespace UniMarc.마크
this.text245p.Name = "text245p";
this.text245p.Size = new System.Drawing.Size(330, 21);
this.text245p.TabIndex = 282;
this.text245p.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// label48
//
@@ -535,6 +545,7 @@ namespace UniMarc.마크
this.basicHeadBox.Name = "basicHeadBox";
this.basicHeadBox.Size = new System.Drawing.Size(285, 21);
this.basicHeadBox.TabIndex = 211;
this.basicHeadBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// invertCheck
//
@@ -670,6 +681,7 @@ namespace UniMarc.마크
this.text041a.Name = "text041a";
this.text041a.Size = new System.Drawing.Size(94, 21);
this.text041a.TabIndex = 251;
this.text041a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text041b
//
@@ -679,6 +691,7 @@ namespace UniMarc.마크
this.text041b.Name = "text041b";
this.text041b.Size = new System.Drawing.Size(94, 21);
this.text041b.TabIndex = 252;
this.text041b.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text041h
//
@@ -698,6 +711,7 @@ namespace UniMarc.마크
this.text041k.Name = "text041k";
this.text041k.Size = new System.Drawing.Size(94, 21);
this.text041k.TabIndex = 254;
this.text041k.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text586a
//
@@ -771,6 +785,7 @@ namespace UniMarc.마크
this.textDDC21.Name = "textDDC21";
this.textDDC21.Size = new System.Drawing.Size(93, 21);
this.textDDC21.TabIndex = 262;
this.textDDC21.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// textDDC22
//
@@ -780,6 +795,7 @@ namespace UniMarc.마크
this.textDDC22.Name = "textDDC22";
this.textDDC22.Size = new System.Drawing.Size(93, 21);
this.textDDC22.TabIndex = 261;
this.textDDC22.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// textDDC23
//
@@ -789,6 +805,7 @@ namespace UniMarc.마크
this.textDDC23.Name = "textDDC23";
this.textDDC23.Size = new System.Drawing.Size(93, 21);
this.textDDC23.TabIndex = 260;
this.textDDC23.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// label6
//
@@ -839,6 +856,19 @@ namespace UniMarc.마크
this.panel3.Size = new System.Drawing.Size(364, 30);
this.panel3.TabIndex = 385;
//
// btn_Reflesh008
//
this.btn_Reflesh008.BackColor = System.Drawing.SystemColors.WindowText;
this.btn_Reflesh008.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_Reflesh008.BackgroundImage")));
this.btn_Reflesh008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btn_Reflesh008.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Reflesh008.Location = new System.Drawing.Point(334, 0);
this.btn_Reflesh008.Name = "btn_Reflesh008";
this.btn_Reflesh008.Size = new System.Drawing.Size(28, 28);
this.btn_Reflesh008.TabIndex = 207;
this.btn_Reflesh008.UseVisualStyleBackColor = false;
this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click);
//
// text008
//
this.text008.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
@@ -1089,6 +1119,7 @@ namespace UniMarc.마크
this.etc2.Size = new System.Drawing.Size(287, 184);
this.etc2.TabIndex = 359;
this.etc2.Text = "Remark2";
this.etc2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc_KeyDown);
//
// etc1
//
@@ -1099,6 +1130,7 @@ namespace UniMarc.마크
this.etc1.Size = new System.Drawing.Size(287, 187);
this.etc1.TabIndex = 358;
this.etc1.Text = "Remark1";
this.etc1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.etc_KeyDown);
//
// label1
//
@@ -1116,6 +1148,7 @@ namespace UniMarc.마크
this.text525a.Name = "text525a";
this.text525a.Size = new System.Drawing.Size(346, 21);
this.text525a.TabIndex = 286;
this.text525a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text940a
//
@@ -1141,6 +1174,7 @@ namespace UniMarc.마크
this.text507t.Name = "text507t";
this.text507t.Size = new System.Drawing.Size(435, 21);
this.text507t.TabIndex = 280;
this.text507t.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text500a
//
@@ -1159,6 +1193,7 @@ namespace UniMarc.마크
this.text507a.Name = "text507a";
this.text507a.Size = new System.Drawing.Size(435, 21);
this.text507a.TabIndex = 280;
this.text507a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text250a
//
@@ -1175,6 +1210,7 @@ namespace UniMarc.마크
this.text521a.Name = "text521a";
this.text521a.Size = new System.Drawing.Size(387, 21);
this.text521a.TabIndex = 265;
this.text521a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// label45
//
@@ -1914,6 +1950,7 @@ namespace UniMarc.마크
this.text300a.Name = "text300a";
this.text300a.Size = new System.Drawing.Size(178, 21);
this.text300a.TabIndex = 276;
this.text300a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text300c1
//
@@ -1941,6 +1978,7 @@ namespace UniMarc.마크
this.text300b.Name = "text300b";
this.text300b.Size = new System.Drawing.Size(178, 21);
this.text300b.TabIndex = 272;
this.text300b.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// label31
//
@@ -1970,6 +2008,7 @@ namespace UniMarc.마크
this.text300e.Name = "text300e";
this.text300e.Size = new System.Drawing.Size(178, 21);
this.text300e.TabIndex = 271;
this.text300e.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// label33
//
@@ -2021,6 +2060,7 @@ namespace UniMarc.마크
this.text546a.Name = "text546a";
this.text546a.Size = new System.Drawing.Size(282, 53);
this.text546a.TabIndex = 255;
this.text546a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// groupBox6
//
@@ -2049,6 +2089,7 @@ namespace UniMarc.마크
this.text260a.Name = "text260a";
this.text260a.Size = new System.Drawing.Size(178, 21);
this.text260a.TabIndex = 258;
this.text260a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text260b
//
@@ -2068,6 +2109,7 @@ namespace UniMarc.마크
this.text260c.Name = "text260c";
this.text260c.Size = new System.Drawing.Size(178, 21);
this.text260c.TabIndex = 264;
this.text260c.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text260g
//
@@ -2077,6 +2119,7 @@ namespace UniMarc.마크
this.text260g.Name = "text260g";
this.text260g.Size = new System.Drawing.Size(178, 21);
this.text260g.TabIndex = 263;
this.text260g.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// label24
//
@@ -2125,6 +2168,7 @@ namespace UniMarc.마크
this.text504a.Name = "text504a";
this.text504a.Size = new System.Drawing.Size(372, 21);
this.text504a.TabIndex = 273;
this.text504a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// text536a
//
@@ -2133,6 +2177,7 @@ namespace UniMarc.마크
this.text536a.Name = "text536a";
this.text536a.Size = new System.Drawing.Size(387, 21);
this.text536a.TabIndex = 269;
this.text536a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
//
// panel1
//
@@ -2194,6 +2239,7 @@ namespace UniMarc.마크
this.panel2.Controls.Add(this.label103);
this.panel2.Controls.Add(this.Btn_Memo);
this.panel2.Controls.Add(this.gov008res);
this.panel2.Controls.Add(this.checkBox4);
this.panel2.Controls.Add(this.checkBox2);
this.panel2.Controls.Add(this.label99);
this.panel2.Controls.Add(this.comboBox6);
@@ -2214,6 +2260,16 @@ namespace UniMarc.마크
this.panel2.Size = new System.Drawing.Size(1257, 907);
this.panel2.TabIndex = 394;
//
// Btn_SearchKolis
//
this.Btn_SearchKolis.Location = new System.Drawing.Point(959, 233);
this.Btn_SearchKolis.Name = "Btn_SearchKolis";
this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23);
this.Btn_SearchKolis.TabIndex = 397;
this.Btn_SearchKolis.Text = "코리스 검색";
this.Btn_SearchKolis.UseVisualStyleBackColor = true;
this.Btn_SearchKolis.Click += new System.EventHandler(this.Btn_SearchKolis_Click);
//
// btn_Empty
//
this.btn_Empty.Location = new System.Drawing.Point(959, 203);
@@ -2234,29 +2290,6 @@ namespace UniMarc.마크
this.lbl_Midx.TabIndex = 393;
this.lbl_Midx.Visible = false;
//
// Btn_SearchKolis
//
this.Btn_SearchKolis.Location = new System.Drawing.Point(959, 233);
this.Btn_SearchKolis.Name = "Btn_SearchKolis";
this.Btn_SearchKolis.Size = new System.Drawing.Size(77, 23);
this.Btn_SearchKolis.TabIndex = 397;
this.Btn_SearchKolis.Text = "코리스 검색";
this.Btn_SearchKolis.UseVisualStyleBackColor = true;
this.Btn_SearchKolis.Click += new System.EventHandler(this.Btn_SearchKolis_Click);
//
// btn_Reflesh008
//
this.btn_Reflesh008.BackColor = System.Drawing.SystemColors.WindowText;
this.btn_Reflesh008.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_Reflesh008.BackgroundImage")));
this.btn_Reflesh008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btn_Reflesh008.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Reflesh008.Location = new System.Drawing.Point(334, 0);
this.btn_Reflesh008.Name = "btn_Reflesh008";
this.btn_Reflesh008.Size = new System.Drawing.Size(28, 28);
this.btn_Reflesh008.TabIndex = 207;
this.btn_Reflesh008.UseVisualStyleBackColor = false;
this.btn_Reflesh008.Click += new System.EventHandler(this.btn_Reflesh008_Click);
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.SystemColors.ControlLight;
@@ -2268,6 +2301,17 @@ namespace UniMarc.마크
this.pictureBox1.TabIndex = 387;
this.pictureBox1.TabStop = false;
//
// checkBox4
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(616, 29);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(112, 16);
this.checkBox4.TabIndex = 379;
this.checkBox4.Text = "기념논문집 여부";
this.checkBox4.UseVisualStyleBackColor = true;
this.checkBox4.CheckedChanged += new System.EventHandler(this.CheckBox008_CheckedChanged);
//
// AddMarc
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -2508,5 +2552,6 @@ namespace UniMarc.마크
private System.Windows.Forms.ComboBox cb_SearchCol;
private System.Windows.Forms.Button btn_Empty;
private System.Windows.Forms.Button Btn_SearchKolis;
private System.Windows.Forms.CheckBox checkBox4;
}
}

View File

@@ -1,4 +1,5 @@
using ExcelTest;
using SHDocVw;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -18,15 +19,16 @@ namespace UniMarc.마크
Helper_DB db = new Helper_DB();
String_Text st = new String_Text();
Help008Tag tag008 = new Help008Tag();
public string userName;
public string compidx;
public string mUserName;
public string mCompidx;
private string mOldMarc = string.Empty;
Main m;
public AddMarc(Main _m)
{
InitializeComponent();
m = _m;
userName = m.User;
compidx = m.com_idx;
mUserName = m.User;
mCompidx = m.com_idx;
}
public AddMarc()
{
@@ -75,6 +77,8 @@ namespace UniMarc.마크
// [이름 혹은 회사명] [yyyy-MM-dd HH:mm:ss]
lbl_SaveData.Text = string.Format("[{0}] [{1}]", GridData[2], GridData[3]);
SetGrade(GridData[4]);
//TODO: 이전데이터 저장할곳
mOldMarc = GridData[6];
lbl_Midx.Text = GridData[0];
}
@@ -255,11 +259,11 @@ namespace UniMarc.마크
// 마지막 수정일로부터 2일이 지났는지, 마지막 저장자가 사용자인지 확인
TimeSpan sp = CheckDate(SaveData[1], date);
IsCoverDate = IsCoverData(sp.Days, SaveData[0]);
if (IsCoverDate)
etc2.Text = etc2.Text.Replace(SaveData[0], date);
//if (IsCoverDate)
// etc2.Text = etc2.Text.Replace(SaveData[0], date);
}
else
etc2.Text += string.Format("{0}\t{1}\n", date, userName);
//else
// etc2.Text += string.Format("{0}\t{1}\n", date, mUserName);
if (lbl_Midx.Text != "")
isUpdate = true;
@@ -290,47 +294,48 @@ namespace UniMarc.마크
{
string[] EditTable =
{
"compidx", "marc", "marc_chk", "marc_chk1", "비고1",
"compidx", "marc", "marc_chk","marc1", "marc_chk1", "비고1",
"비고2", "division", "008tag", "date", "user",
"grade"
};
string[] EditColumn =
{
compidx, oriMarc, "1", "0", etc1.Text,
etc2.Text, tag056, text008.Text, date, userName,
mCompidx, oriMarc, "1",mOldMarc, "0", etc1.Text,
etc2.Text, tag056, text008.Text, date, mUserName,
grade.ToString()
};
string[] SearchTable = { "idx" };
string[] SearchColumn = { MarcIndex };
string[] SearchTable = { "idx","compidx" };
string[] SearchColumn = { MarcIndex, mCompidx };
int marcChk = subMarcChk(Table, MarcIndex);
if (IsCovertDate)
marcChk--;
//int marcChk = subMarcChk(Table, MarcIndex);
//if (IsCovertDate)
// marcChk--;
switch (marcChk)
{
case 0:
EditTable[1] = "marc1";
EditTable[2] = "marc_chk1";
EditTable[3] = "marc_chk";
break;
case 1:
EditTable[1] = "marc2";
EditTable[2] = "marc_chk2";
EditTable[3] = "marc_chk1";
break;
case 2:
EditTable[1] = "marc";
EditTable[2] = "marc_chk";
EditTable[3] = "marc_chk2";
break;
default:
EditTable[1] = "marc";
EditTable[2] = "marc_chk";
EditTable[3] = "marc_chk2";
break;
}
//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);
CUtill.mLog.Add("ADDMarcUPDATE", string.Format("{0}({1}) : {2}", mUserName, mCompidx, UpCMD.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(UpCMD);
}
#region UpdateSub
@@ -377,10 +382,11 @@ namespace UniMarc.마크
{
BookData[0], BookData[1], BookData[2], BookData[3], BookData[4],
oriMarc, etc1.Text, etc2.Text, grade.ToString(), "1",
userName, tag056, text008.Text, date, compidx
mUserName, tag056, text008.Text, date, mCompidx
};
string InCMD = db.DB_INSERT(Table, InsertTable, InsertColumn);
CUtill.mLog.Add("ADDMarcINSERT", string.Format("{0}({1}) : {2}", mUserName, mCompidx, InCMD.Replace("\r", " ").Replace("\n", " ")));
db.DB_Send_CMD_reVoid(InCMD);
}
@@ -394,7 +400,7 @@ namespace UniMarc.마크
{
if (TimeSpanDaysValue < -1)
return false;
if (user != userName)
if (user != mUserName)
return false;
return true;
}
@@ -645,10 +651,19 @@ namespace UniMarc.마크
string TrimEndGubun(string str, string TagNum)
{
if (TagNum == "300")
char[] gu = { '.', ',', ':', ';', '/', ' ' };
if (TagNum == "300" || TagNum == "300a")
{
str = str.Trim();
if (TagNum == "300a")
{
gu = new char[] { '.', ',', '=', ':', ';', '/', '+', ' ' };
for (int i = 0; i < gu.Length; i++)
{
str = str.TrimEnd(gu[i]);
}
}
if (str.Contains("ill."))
return str;
if (str.Contains("p."))
@@ -658,17 +673,22 @@ namespace UniMarc.마크
if (TagNum == "710" || TagNum == "910")
return str;
char[] gu = { '.', ',', ':', ';', '/' };
foreach (char gubun in gu)
if (TagNum == "245") gu = new char[] { '.', ':', ';', '/', ' ' };
if (TagNum == "245a") gu = new char[] { '.', ',', '=', ':', ';', '/', ' ' };
for (int i = 0; i < gu.Length; i++)
{
if (str.Length < 1) continue;
if (str[str.Length - 1] == gubun)
{
str = str.Remove(str.Length - 1);
str = str.Trim();
}
str = str.TrimEnd(gu[i]);
}
//foreach (char gubun in gu)
//{
// if (str.Length < 1) continue;
// if (str[str.Length - 1] == gubun)
// {
// str = str.Remove(str.Length - 1);
// str = str.Trim();
// }
//}
return str;
}
@@ -724,12 +744,39 @@ namespace UniMarc.마크
char[] textArray = data.ToCharArray();
Array.Resize(ref textArray, 22);
for (int a = 0; a < tmp.Length; a++)
{
textArray[a] = tmp[a];
}
string tTemp = tmp.ToString();
tTemp = tTemp.PadRight(40, ' ');
text008.Text = tTemp;
text008.Text = tag008.Combo_Change(text008.Text, comboBox1.Name, comboBox1.SelectedIndex);// 이용대상자수준 (22) v
text008.Text = tag008.Combo_Change(text008.Text, comboBox2.Name, comboBox2.SelectedIndex);// 개별자료형태 (23) v
text008.Text = tag008.Combo_Change(text008.Text, comboBox3.Name, comboBox3.SelectedIndex);// 내용형식1 (24) v
text008.Text = tag008.Combo_Change(text008.Text, comboBox7.Name, comboBox7.SelectedIndex);// 내용형식2 (25) v
text008.Text = tag008.Combo_Change(text008.Text, comboBox4.Name, comboBox4.SelectedIndex); // 문학형식 (33) v
text008.Text = tag008.Combo_Change(text008.Text, comboBox5.Name, comboBox5.SelectedIndex); // 전기 (34) v
text008.Text = tag008.Combo_Change(text008.Text, comboBox6.Name, comboBox6.SelectedIndex); // 언어 (35-37) v
Publication(checkBox1.Checked, 29);// 회의간행물 (29) c
Publication(checkBox2.Checked, 30);// 기념논문집 (30) c
Publication(checkBox4.Checked, 31);// 색인 (31)
textArray = text008.Text.ToCharArray();
textArray[26] = col008res.Text[0]; //대학코드
textArray[27] = col008res.Text[1];
textArray[38] = gov008res.Text[0];// 정부코드
textArray[39] = gov008res.Text[1];
textArray[28] = ' ';// 수정레코드 (28)
textArray[32] = ' ';// 목록전거 (32)
text008.Text = new string(textArray);
#endregion
}
@@ -798,10 +845,13 @@ namespace UniMarc.마크
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물o";
((CheckBox)sender).InvokeText("회의간행물o");
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집o";
((CheckBox)sender).InvokeText("기념논문집o");
break;
case "checkBox4":
((CheckBox)sender).InvokeText("색인o");
break;
}
}
@@ -810,10 +860,13 @@ namespace UniMarc.마크
switch (name)
{
case "checkBox1":
((CheckBox)sender).Text = "회의간행물x";
((CheckBox)sender).InvokeText("회의간행물x");
break;
case "checkBox2":
((CheckBox)sender).Text = "기념논문집x";
((CheckBox)sender).InvokeText("기념논문집x");
break;
case "checkBox4":
((CheckBox)sender).InvokeText("색인x");
break;
}
}
@@ -825,6 +878,9 @@ namespace UniMarc.마크
case "checkBox2":
Publication(checkBox2.Checked, 30);
break;
case "checkBox4":
Publication(checkBox4.Checked, 31);
break;
}
}
@@ -1235,13 +1291,13 @@ namespace UniMarc.마크
text245d, text245e
};
string a = GetMiddelString(SplitTag, "▼a", "▼");
string a = GetMiddelString(SplitTag, "▼a", "▼", "245a");
string b = GetMiddelString(SplitTag, "▼b", "▼");
string x = GetMiddelString(SplitTag, "▼x", "▼");
string n = GetMiddelString(SplitTag, "▼n", "▼");
string p = GetMiddelString(SplitTag, "▼p", "▼");
string d = GetMiddelString(SplitTag, "▼d", "▼");
string e = GetMiddelString(SplitTag, "▼e", "▼");
string d = GetMiddelString(SplitTag, "▼d", "▼", "245");
string e = GetMiddelString(SplitTag, "▼e", "▼", "245");
string[] Marc = {
a, b, x, n, p,
@@ -1273,7 +1329,7 @@ namespace UniMarc.마크
text300a, text300b, text300c1, text300c2, text300e
};
string a = GetMiddelString(SplitTag, "▼a", "▼", "300");
string a = GetMiddelString(SplitTag, "▼a", "▼", "300a");
string b = GetMiddelString(SplitTag, "▼b", "▼", "300");
string c = GetMiddelString(SplitTag, "▼c", "▼");
string e = GetMiddelString(SplitTag, "▼e", "▼");
@@ -1469,63 +1525,125 @@ namespace UniMarc.마크
List<string> AllTag = new List<string>(); // 칸채우기와 나머지 값들을 짱뽕시킨 짬통 리스트
AllTag.AddRange(BlankTag);
AllTag.AddRange(TextTag);
AllTag.Sort();
foreach (string Content in AllTag)
AllTag.RemoveAll(x => x.Length < 3 || x == "");
for (int i = 0; i < AllTag.Count; i++)
{
if (Content == "")
continue;
if (Content.Length < 3)
continue;
string tagNum = Content.Substring(0, 3);
string tTagNum = AllTag[i].Substring(0, 3);
bool isCopy = false;
foreach (string Num in Tag)
{
if (tagNum == Num)
{
isCopy = true;
break;
}
}
List<string> tTag = Tag.ToList();
List<string> tFindTag = tTag.FindAll(x => x == tTagNum);
if (tFindTag.Count > 0) isCopy = true;
if (isCopy)
{
string AddText = "";
foreach (string Blank in BlankTag)
BlankTag.RemoveAll(x => x.Length < 4 || x == "");
for (int j = 0; j < BlankTag.Count; j++)
{
if (Blank.Length < 4)
continue;
string StrNum = Blank.Substring(0, 3);
string StrNum = BlankTag[j].Substring(0, 3);
int Num = Convert.ToInt32(StrNum);
int tagNumInt = Convert.ToInt32(tagNum);
int tagNumInt = Convert.ToInt32(tTagNum);
if (Num == tagNumInt)
{
AddText = Blank.Replace("\n", "");
AddText = BlankTag[j].Replace("\n", "");
AddText = AddText.Replace("▲", "▲\n");
break;
}
}
if (AddText == "")
continue;
if (AddText.Substring(AddText.Length - 1, 1) == "\n")
AddText = AddText.Substring(0, AddText.Length - 1);
RemainTag.Add(AddText);
}
else
{
Content.TrimEnd('\n');
RemainTag.Add(Content + "▲");
if (tTagNum == "950")
{
List<string> tFindTag020 = RemainTag.FindAll(x => x.Substring(0, 3) == "020").FindAll(x => x.Contains("▼c")).Distinct().ToList();
if (tFindTag020.Count == 0) continue;
int tStartIDX = tFindTag020[0].IndexOf("▼c") + 2;
int tEndIDX = tFindTag020[0].IndexOf("▼", tStartIDX + 1);
if (tEndIDX == -1) tEndIDX = tFindTag020[0].IndexOf("▲", tStartIDX - 1);
else continue;
string tTagText020 = tFindTag020[0].Substring(tStartIDX, tEndIDX - tStartIDX);
tStartIDX = AllTag[i].IndexOf("▼b") + 2;
tEndIDX = AllTag[i].IndexOf("▼", tStartIDX + 1);
if (tEndIDX == -1) tEndIDX = AllTag[i].IndexOf("▲", tStartIDX - 1);
if (tEndIDX == -1) tEndIDX = AllTag[i].Length;
AllTag[i] = AllTag[i].Remove(tStartIDX, tEndIDX - tStartIDX);
string tNewText = string.Format("{0}{1}", AllTag[i], tTagText020);
tNewText.TrimEnd('\n');
RemainTag.Add(tNewText + "▲");
}
else
{
AllTag[i].TrimEnd('\n');
RemainTag.Add(AllTag[i] + "▲");
}
}
}
//AllTag.Sort();
//foreach (string Content in AllTag)
//{
// if (Content == "")
// continue;
// if (Content.Length < 3)
// continue;
// string tagNum = Content.Substring(0, 3);
// bool isCopy = false;
// foreach (string Num in Tag)
// {
// if (tagNum == Num)
// {
// isCopy = true;
// break;
// }
// }
// if (isCopy)
// {
// string AddText = "";
// foreach (string Blank in BlankTag)
// {
// if (Blank.Length < 4)
// continue;
// string StrNum = Blank.Substring(0, 3);
// int Num = Convert.ToInt32(StrNum);
// int tagNumInt = Convert.ToInt32(tagNum);
// if (Num == tagNumInt)
// {
// AddText = Blank.Replace("\n", "");
// AddText = AddText.Replace("▲", "▲\n");
// break;
// }
// }
// if (AddText == "")
// continue;
// if (AddText.Substring(AddText.Length - 1, 1) == "\n")
// AddText = AddText.Substring(0, AddText.Length - 1);
// RemainTag.Add(AddText);
// }
// else
// {
// Content.TrimEnd('\n');
// RemainTag.Add(Content + "▲");
// }
//}
RemainTag = RemainTag.Distinct().ToList();
@@ -2090,7 +2208,7 @@ namespace UniMarc.마크
string result = "300\t \t";
if (boxText[0] != "") result += "▼a" + boxText[0];
if (boxText[0] != "") result += "▼a" + Tag300a_Sub(boxText[0]);
if (boxText[1] != "") result += "▼b" + boxText[1];
if (boxText[2] != "")
{
@@ -2104,7 +2222,29 @@ namespace UniMarc.마크
return result;
}
string Tag300a_Sub(string Text)
{
string result = Text;
if (result.IndexOf(", ") > -1)
return result + " p.";
if (result.IndexOf("p.p.") > -1 || result.IndexOf("p. p.") > -1)
return result.Replace("p.p.", "p.").Replace("p. p.", "p.");
if (Regex.IsMatch(result, @"^[0-9]+$"))
return result + " p.";
if (!result.StartsWith("[") && !result.EndsWith("]"))
return result;
else if (Regex.IsMatch(GetMiddelString(result, "[", "]"), @"^[0-9]+$"))
{
string tTest = GetMiddelString(result, "[", "]");
return result.Replace("p", "").Trim() + " p."; ;
}
return result;
}
private string Text500Insert()
{
string boxText = text500a.Text;
@@ -2648,7 +2788,27 @@ namespace UniMarc.마크
TextBox tb = sender as TextBox;
if (e.KeyCode == Keys.F3)
tb.Text += "▽";
{
tb.InvokeInsertText("▽");
//tb.Select(tb.Text.Length, 0);
}
else if (e.KeyCode == Keys.F4)
{
tb.InvokeInsertText("△");
//tb.Select(tb.Text.Length, 0);
}
//tb.SelectionStart = tb.Text.Length;
//tb.Select(tb.Text.Length, 0);
}
private void etc_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F5)
{
((RichTextBox)sender).Text += DateTime.Now.ToString("yyyy-MM-dd HH:mm");
}
}
private void Btn_SearchKolis_Click(object sender, EventArgs e)
@@ -2656,5 +2816,7 @@ namespace UniMarc.마크
AddMarc_FillBlank af = new AddMarc_FillBlank(this);
af.Show();
}
}
}

View File

@@ -103,6 +103,7 @@ namespace UniMarc.마크
continue;
string[] ary = t.Split('\t');
if (ary[0] == "035" || ary[0] == "040") continue;
if (ary[1] == "") ary[1] = " ";
if (ary[1].Length != 2) ary[1].PadRight(2);
tmp += String.Join("\t", ary) + "\n";

View File

@@ -29,7 +29,7 @@ namespace UniMarc.마크
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel3 = new System.Windows.Forms.Panel();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.panel2 = new System.Windows.Forms.Panel();
@@ -61,6 +61,7 @@ namespace UniMarc.마크
this.m_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel6 = new System.Windows.Forms.Panel();
this.btn_CopySelect = new System.Windows.Forms.Button();
this.btn_AddRow = new System.Windows.Forms.Button();
this.btn_mk_marcList = new System.Windows.Forms.Button();
this.btn_SaveList = new System.Windows.Forms.Button();
@@ -70,11 +71,10 @@ namespace UniMarc.마크
this.lbl_date = new System.Windows.Forms.Label();
this.Btn_SelectList = new System.Windows.Forms.Button();
this.panel5 = new System.Windows.Forms.Panel();
this.btn_CopySelect = new System.Windows.Forms.Button();
this.panel8 = 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.etc1 = new System.Windows.Forms.RichTextBox();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
@@ -128,7 +128,7 @@ namespace UniMarc.마크
//
// Btn_New
//
this.Btn_New.Location = new System.Drawing.Point(617, 4);
this.Btn_New.Location = new System.Drawing.Point(596, 4);
this.Btn_New.Name = "Btn_New";
this.Btn_New.Size = new System.Drawing.Size(97, 23);
this.Btn_New.TabIndex = 4;
@@ -140,7 +140,7 @@ namespace UniMarc.마크
//
this.cb_Type.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_Type.FormattingEnabled = true;
this.cb_Type.Location = new System.Drawing.Point(545, 5);
this.cb_Type.Location = new System.Drawing.Point(523, 5);
this.cb_Type.Name = "cb_Type";
this.cb_Type.Size = new System.Drawing.Size(69, 20);
this.cb_Type.TabIndex = 3;
@@ -157,11 +157,11 @@ namespace UniMarc.마크
//
// Btn_SaveMarc
//
this.Btn_SaveMarc.Location = new System.Drawing.Point(717, 4);
this.Btn_SaveMarc.Location = new System.Drawing.Point(697, 4);
this.Btn_SaveMarc.Name = "Btn_SaveMarc";
this.Btn_SaveMarc.Size = new System.Drawing.Size(97, 23);
this.Btn_SaveMarc.Size = new System.Drawing.Size(116, 23);
this.Btn_SaveMarc.TabIndex = 2;
this.Btn_SaveMarc.Text = "마크 저장(F9)";
this.Btn_SaveMarc.Text = "원본 마크 수정(F9)";
this.Btn_SaveMarc.UseVisualStyleBackColor = true;
this.Btn_SaveMarc.Click += new System.EventHandler(this.Btn_SaveMarc_Click);
//
@@ -292,14 +292,14 @@ namespace UniMarc.마크
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeRows = false;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
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;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
@@ -388,6 +388,18 @@ namespace UniMarc.마크
this.panel6.Size = new System.Drawing.Size(332, 89);
this.panel6.TabIndex = 0;
//
// btn_CopySelect
//
this.btn_CopySelect.BackColor = System.Drawing.Color.Khaki;
this.btn_CopySelect.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_CopySelect.Location = new System.Drawing.Point(207, 61);
this.btn_CopySelect.Name = "btn_CopySelect";
this.btn_CopySelect.Size = new System.Drawing.Size(30, 23);
this.btn_CopySelect.TabIndex = 320;
this.btn_CopySelect.Text = "0";
this.btn_CopySelect.UseVisualStyleBackColor = false;
this.btn_CopySelect.Click += new System.EventHandler(this.btn_CopySelect_Click);
//
// btn_AddRow
//
this.btn_AddRow.Location = new System.Drawing.Point(167, 33);
@@ -479,18 +491,6 @@ namespace UniMarc.마크
this.panel5.Size = new System.Drawing.Size(959, 734);
this.panel5.TabIndex = 8;
//
// btn_CopySelect
//
this.btn_CopySelect.BackColor = System.Drawing.Color.Khaki;
this.btn_CopySelect.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
this.btn_CopySelect.Location = new System.Drawing.Point(207, 61);
this.btn_CopySelect.Name = "btn_CopySelect";
this.btn_CopySelect.Size = new System.Drawing.Size(30, 23);
this.btn_CopySelect.TabIndex = 320;
this.btn_CopySelect.Text = "0";
this.btn_CopySelect.UseVisualStyleBackColor = false;
this.btn_CopySelect.Click += new System.EventHandler(this.btn_CopySelect_Click);
//
// panel8
//
this.panel8.Controls.Add(this.tableLayoutPanel1);
@@ -516,17 +516,6 @@ namespace UniMarc.마크
this.tableLayoutPanel1.Size = new System.Drawing.Size(225, 666);
this.tableLayoutPanel1.TabIndex = 0;
//
// etc1
//
this.etc1.BackColor = System.Drawing.SystemColors.Window;
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(219, 327);
this.etc1.TabIndex = 33;
this.etc1.Text = "Remark1";
//
// etc2
//
this.etc2.BackColor = System.Drawing.SystemColors.Window;
@@ -538,6 +527,17 @@ namespace UniMarc.마크
this.etc2.TabIndex = 34;
this.etc2.Text = "Remark2";
//
// etc1
//
this.etc1.BackColor = System.Drawing.SystemColors.Window;
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(219, 327);
this.etc1.TabIndex = 33;
this.etc1.Text = "Remark1";
//
// CD_LP
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -304,6 +304,7 @@ namespace UniMarc.마크
string user = Properties.Settings.Default.User;
string date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
string etcData1 = etc1.Text;
string etcData2 = etc2.Text;
@@ -317,11 +318,24 @@ namespace UniMarc.마크
string marc = string.Format("005\t \t{0}▲\n007\t \t{1}▲\n008\t \t{2}▲\n", t005, t007, t008) + richTextBox1.Text;
string orimarc = st.made_Ori_marc(marc, false);
// 상품코드 체크
if (!isSaveOK(orimarc, code)) {
MessageBox.Show("상품코드를 확인해주세요.");
return;
}
// 필수태그 확인
if (!isMustTag(orimarc)) {
MessageBox.Show("입력된 마크의 상태를 확인해주세요.");
return;
}
// 마크 형식 체크
if (!isPass(marc)) {
MessageBox.Show("입력된 마크의 상태를 확인해주세요.");
return;
}
string[] InsertCol = { "Code", "user", "date", "Marc", "etc1", "etc2" };
string[] InsertData = { code, user, date, orimarc, etcData1, etcData2 };
db.DB_Send_CMD_reVoid(db.DB_INSERT("DVD_Marc", InsertCol, InsertData));
@@ -343,6 +357,105 @@ namespace UniMarc.마크
return TagList[0].Contains(code);
}
/// <summary>
/// 마크 오류체크 (형식체크)
/// </summary>
/// <param name="BaseData">richTextBox에 들어가있는 텍스트</param>
/// <returns>True / False</returns>
private bool isPass(string BaseData)
{
string[] EnterSplit = BaseData.Split('\n');
foreach (string Data in EnterSplit)
{
if (Data == "")
continue;
string[] DataSplit = Data.Split('\t');
if (DataSplit.Length == 3)
{
if (DataSplit[1].Length == 2)
{
continue;
}
else
{
return false;
}
}
else
{
return false;
}
}
return true;
}
private bool isMustTag(string orimarc)
{
String_Text st = new String_Text();
string[] SearchTag = {
"056a", "0562", "245a", "245d", "260a", "260b", "260c", "300a", "300c", "653a"
};
string[] Tag = st.Take_Tag(orimarc, SearchTag);
int count = 0;
string msg = "";
bool isTag = true;
foreach (string tag in Tag)
{
if (tag == "")
{
msg += SearchTag[count] + " ";
isTag = false;
}
count++;
}
if (!isTag)
{
MessageBox.Show(msg + "태그가 없습니다.");
return false;
}
bool is1XX = false;
string[] AuthorTag = { "100a", "110a", "111a" };
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is1XX = true;
}
if (!is1XX)
{
MessageBox.Show("기본표목이 존재하지않습니다.");
return false;
}
bool is7XX = false;
AuthorTag[0] = "700a";
AuthorTag[1] = "710a";
AuthorTag[2] = "711a";
Tag = st.Take_Tag(orimarc, AuthorTag);
foreach (string author in Tag)
{
if (author != "")
is7XX = true;
}
if (!is7XX)
{
MessageBox.Show("부출표목이 존재하지않습니다.");
return false;
}
return true;
}
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.F3)

View File

@@ -28,10 +28,27 @@
/// </summary>
private void InitializeComponent()
{
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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_ComparePrice = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.isbn = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -53,23 +70,6 @@
this.sold_out = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.image = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.api_data = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btn_lookup = new System.Windows.Forms.Button();
this.cb_filter = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.tb_list_name = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.btn_Save = new System.Windows.Forms.Button();
this.btn_Close = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.cb_api = new System.Windows.Forms.ComboBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.btn_yes24 = new System.Windows.Forms.Button();
this.Check_Marc = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.btn_ComparePrice = new System.Windows.Forms.Button();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@@ -82,13 +82,13 @@
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle19.Font = new System.Drawing.Font("굴림", 9F, 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;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19;
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;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.idx,
@@ -116,17 +116,17 @@
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnF2;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle20.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle20;
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.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.dataGridView1.RowHeadersWidth = 20;
dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle21;
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1630, 591);
this.dataGridView1.TabIndex = 0;
@@ -134,125 +134,6 @@
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
this.idx.Width = 50;
//
// num
//
this.num.HeaderText = "번호";
this.num.Name = "num";
this.num.Width = 50;
//
// isbn
//
this.isbn.HeaderText = "ISBN13";
this.isbn.Name = "isbn";
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 130;
//
// search_book_name
//
this.search_book_name.HeaderText = "검색 도서명";
this.search_book_name.Name = "search_book_name";
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
//
// search_author
//
this.search_author.HeaderText = "검색 저자";
this.search_author.Name = "search_author";
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
//
// search_book_comp
//
this.search_book_comp.HeaderText = "검색 출판사";
this.search_book_comp.Name = "search_book_comp";
//
// count
//
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Visible = false;
this.count.Width = 50;
//
// unit
//
this.unit.HeaderText = "단가";
this.unit.Name = "unit";
this.unit.Width = 70;
//
// total
//
this.total.HeaderText = "합계";
this.total.Name = "total";
this.total.Visible = false;
this.total.Width = 70;
//
// condition
//
this.condition.HeaderText = "상태";
this.condition.Name = "condition";
this.condition.Visible = false;
//
// price
//
this.price.HeaderText = "정가";
this.price.Name = "price";
this.price.Width = 50;
//
// etc
//
this.etc.HeaderText = "비고";
this.etc.Name = "etc";
//
// pubDate
//
this.pubDate.HeaderText = "발행일";
this.pubDate.Name = "pubDate";
//
// persent
//
this.persent.HeaderText = "%";
this.persent.Name = "persent";
this.persent.Width = 50;
//
// category
//
this.category.HeaderText = "도서분류";
this.category.Name = "category";
//
// sold_out
//
this.sold_out.HeaderText = "품절/절판";
this.sold_out.Name = "sold_out";
//
// image
//
this.image.HeaderText = "이미지";
this.image.Name = "image";
this.image.Visible = false;
//
// api_data
//
this.api_data.HeaderText = "api_data";
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// btn_lookup
//
this.btn_lookup.Location = new System.Drawing.Point(693, 4);
@@ -428,6 +309,125 @@
this.panel3.Size = new System.Drawing.Size(1632, 593);
this.panel3.TabIndex = 12;
//
// idx
//
this.idx.HeaderText = "idx";
this.idx.Name = "idx";
this.idx.Visible = false;
this.idx.Width = 50;
//
// num
//
this.num.HeaderText = "번호";
this.num.Name = "num";
this.num.Width = 50;
//
// isbn
//
this.isbn.HeaderText = "ISBN13";
this.isbn.Name = "isbn";
//
// book_name
//
this.book_name.HeaderText = "도서명";
this.book_name.Name = "book_name";
this.book_name.Width = 130;
//
// search_book_name
//
this.search_book_name.HeaderText = "검색 도서명";
this.search_book_name.Name = "search_book_name";
//
// author
//
this.author.HeaderText = "저자";
this.author.Name = "author";
//
// search_author
//
this.search_author.HeaderText = "검색 저자";
this.search_author.Name = "search_author";
//
// book_comp
//
this.book_comp.HeaderText = "출판사";
this.book_comp.Name = "book_comp";
//
// search_book_comp
//
this.search_book_comp.HeaderText = "검색 출판사";
this.search_book_comp.Name = "search_book_comp";
//
// count
//
this.count.HeaderText = "수량";
this.count.Name = "count";
this.count.Visible = false;
this.count.Width = 50;
//
// unit
//
this.unit.HeaderText = "단가";
this.unit.Name = "unit";
this.unit.Width = 70;
//
// total
//
this.total.HeaderText = "합계";
this.total.Name = "total";
this.total.Visible = false;
this.total.Width = 70;
//
// condition
//
this.condition.HeaderText = "상태";
this.condition.Name = "condition";
this.condition.Visible = false;
//
// price
//
this.price.HeaderText = "정가";
this.price.Name = "price";
this.price.Width = 50;
//
// etc
//
this.etc.HeaderText = "비고";
this.etc.Name = "etc";
//
// pubDate
//
this.pubDate.HeaderText = "발행일";
this.pubDate.Name = "pubDate";
//
// persent
//
this.persent.HeaderText = "%";
this.persent.Name = "persent";
this.persent.Width = 50;
//
// category
//
this.category.HeaderText = "도서분류";
this.category.Name = "category";
//
// sold_out
//
this.sold_out.HeaderText = "품절/절판";
this.sold_out.Name = "sold_out";
//
// image
//
this.image.HeaderText = "이미지";
this.image.Name = "image";
this.image.Visible = false;
//
// api_data
//
this.api_data.HeaderText = "api_data";
this.api_data.Name = "api_data";
this.api_data.Visible = false;
//
// Check_ISBN
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -465,6 +465,9 @@
public System.Windows.Forms.TextBox tb_list_name;
private System.Windows.Forms.CheckBox Check_Marc;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_ComparePrice;
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
private System.Windows.Forms.DataGridViewTextBoxColumn num;
private System.Windows.Forms.DataGridViewTextBoxColumn isbn;
@@ -486,8 +489,5 @@
private System.Windows.Forms.DataGridViewTextBoxColumn sold_out;
private System.Windows.Forms.DataGridViewTextBoxColumn image;
private System.Windows.Forms.DataGridViewTextBoxColumn api_data;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Button btn_ComparePrice;
}
}

View File

@@ -25,15 +25,19 @@ namespace WindowsFormsApp1.Mac
Helper_DB db = new Helper_DB();
public string compidx;
public string list_name = string.Empty;
private string mListIDX = string.Empty;
private string mSearchText = string.Empty;
public int rowidx;
private bool save = true;
string[] list_combo = { "알라딘", "국립중앙도서관", "다음", "네이버" };
public Check_ISBN(Main _main)
public Check_ISBN(Main _main,string pSearchText = "",string pListIDX = "")
{
InitializeComponent();
main = _main;
compidx = main.com_idx;
mSearchText = pSearchText;
mListIDX = pListIDX;
}
public Check_ISBN(List_aggregation _list_agg)
{
@@ -50,6 +54,11 @@ namespace WindowsFormsApp1.Mac
private void Check_ISBN_Load(object sender, EventArgs e)
{
if (mSearchText != "")
{
tb_list_name.Text = mSearchText;
DataLoad(mSearchText, mListIDX);
}
}
public void DataLoad()
@@ -153,6 +162,8 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Columns[a].Name == "book_name" ||
dataGridView1.Columns[a].Name == "author" ||
dataGridView1.Columns[a].Name == "book_comp" ||
dataGridView1.Columns[a].Name == "price" ||
dataGridView1.Columns[a].Name == "category" ||
dataGridView1.Columns[a].Name == "etc")
{
dataGridView1.Columns[a].ReadOnly = false;
@@ -736,10 +747,23 @@ namespace WindowsFormsApp1.Mac
this.Close();
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
//if (rowidx >= dataGridView1.Rows.Count) return;
//if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null ||
// dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString() == "") {
// return;
//}
//Check_ISBN_Sub sub = new Check_ISBN_Sub(this);
//sub.row = rowidx;
//sub.Call_API = cb_api.Text;
//sub.Show();
}
private void SHOW_ISBN()
{
if (rowidx >= dataGridView1.Rows.Count) return;
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null ||
dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString() == "") {
if (dataGridView1.Rows[rowidx].Cells["api_data"].Value == null ||
dataGridView1.Rows[rowidx].Cells["api_data"].Value.ToString() == "")
{
return;
}
Check_ISBN_Sub sub = new Check_ISBN_Sub(this);
@@ -751,7 +775,8 @@ namespace WindowsFormsApp1.Mac
{
Skill_Grid sg = new Skill_Grid();
sg.Excel_to_DataGridView(sender, e);
if (e.KeyCode == Keys.Enter) { dataGridView1_CellDoubleClick(null, null); rowidx++; }
//if (e.KeyCode == Keys.Enter) { dataGridView1_CellDoubleClick(null, null); rowidx++; }
if (e.KeyCode == Keys.Enter) { SHOW_ISBN(); rowidx++; }
if (e.KeyCode == Keys.Insert)
{
// Check_ISBN_Split split = new Check_ISBN_Split(this);

View File

@@ -180,7 +180,14 @@ namespace WindowsFormsApp1.Mac
(text);
}
//광주 서구
//else if (URL.IndexOf("library.seogu.gwangju.kr") > -1)
//{
// //if (URL.IndexOf("word") > -1)
// // BookCount = 광주서구결과();
// BookCount = 광주서구입력(text);
//}
// 광주 북구 (일곡, 운암, 양산)
else if (URL.IndexOf("lib.bukgu.gwangju.kr") > -1)
{
@@ -449,7 +456,61 @@ namespace WindowsFormsApp1.Mac
return result;
}
#endregion
#region
bool isKJSeoClick = false;
string (string text)
{
string result = "";
foreach (HtmlElement he in webBrowser1.Document.GetElementsByTagName("input"))
{
if (he.Name.IndexOf("libcodes") > -1)
{
if (!he.Id.Contains("libcode129004") && !isKJSeoClick)
{
he.InvokeMember("click");
}
}
}
isKJSeoClick = true;
webBrowser1.Document.GetElementById("searchword").SetAttribute("value", text);
foreach (HtmlElement Btn in webBrowser1.Document.GetElementsByTagName("button"))
{
if (Btn.GetAttribute("className").IndexOf("seachBbsBt") > -1)
Btn.InvokeMember("click");
}
Delay(3000);
HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("p");
foreach (HtmlElement heTd in hecTd)
{
if (heTd.GetAttribute("className").IndexOf("board_list") > -1)
{
if (heTd.TagName == "P")
{
result = Regex.Replace(heTd.InnerText, @"\D", "");
}
}
}
return result;
}
string ()
{
string result = "";
HtmlElementCollection hecTd = webBrowser1.Document.GetElementsByTagName("strong");
foreach (HtmlElement heTd in hecTd)
{
if (heTd.GetAttribute("className").IndexOf("cyan") > -1)
{
result = Regex.Replace(heTd.InnerText, @"\D", "");
}
}
return result;
}
#endregion
#region
bool isKJKClick = false;
string (string text)
@@ -1487,6 +1548,7 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[a].DefaultCellStyle.ForeColor = Color.Black;
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.White;
dataGridView1.Rows[a].Cells["Count"].Value = "";
RowCount = 0;
}
}
@@ -1509,7 +1571,16 @@ namespace WindowsFormsApp1.Mac
private void btn_SiteDenote_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start(URL);
if (URL == null) return;
try
{
System.Diagnostics.Process.Start(URL);
}
catch
{
}
}
}
}

View File

@@ -33,9 +33,6 @@
this.panel1 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.Book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Check = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel5 = new System.Windows.Forms.Panel();
this.chk_RemoveBrit = new System.Windows.Forms.CheckBox();
this.chk_spChar = new System.Windows.Forms.CheckBox();
@@ -61,6 +58,10 @@
this.btn_Back = new System.Windows.Forms.Button();
this.btn_Forward = new System.Windows.Forms.Button();
this.tb_URL = new System.Windows.Forms.TextBox();
this.btnStop = new System.Windows.Forms.Button();
this.Book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Check = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.panel8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
@@ -91,7 +92,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(364, 734);
this.panel1.Size = new System.Drawing.Size(397, 734);
this.panel1.TabIndex = 1;
//
// panel8
@@ -100,7 +101,7 @@
this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel8.Location = new System.Drawing.Point(0, 103);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(362, 629);
this.panel8.Size = new System.Drawing.Size(395, 629);
this.panel8.TabIndex = 5;
//
// dataGridView1
@@ -117,28 +118,11 @@
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersWidth = 31;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(362, 629);
this.dataGridView1.Size = new System.Drawing.Size(395, 629);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
//
// Book_name
//
this.Book_name.HeaderText = "도서명";
this.Book_name.Name = "Book_name";
this.Book_name.Width = 140;
//
// ISBN
//
this.ISBN.HeaderText = "ISBN";
this.ISBN.Name = "ISBN";
//
// Check
//
this.Check.HeaderText = "Y/N";
this.Check.Name = "Check";
this.Check.Width = 70;
//
// panel5
//
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -148,13 +132,13 @@
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 68);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(362, 35);
this.panel5.Size = new System.Drawing.Size(395, 35);
this.panel5.TabIndex = 4;
//
// chk_RemoveBrit
//
this.chk_RemoveBrit.AutoSize = true;
this.chk_RemoveBrit.Location = new System.Drawing.Point(122, 9);
this.chk_RemoveBrit.Location = new System.Drawing.Point(169, 8);
this.chk_RemoveBrit.Name = "chk_RemoveBrit";
this.chk_RemoveBrit.Size = new System.Drawing.Size(128, 16);
this.chk_RemoveBrit.TabIndex = 3;
@@ -173,7 +157,7 @@
//
// btn_ApplyFilter
//
this.btn_ApplyFilter.Location = new System.Drawing.Point(278, 5);
this.btn_ApplyFilter.Location = new System.Drawing.Point(314, 3);
this.btn_ApplyFilter.Name = "btn_ApplyFilter";
this.btn_ApplyFilter.Size = new System.Drawing.Size(75, 24);
this.btn_ApplyFilter.TabIndex = 5;
@@ -186,12 +170,13 @@
this.panel3.Controls.Add(this.btn_Reflesh008);
this.panel3.Controls.Add(this.label2);
this.panel3.Controls.Add(this.rBtn_ISBN);
this.panel3.Controls.Add(this.btnStop);
this.panel3.Controls.Add(this.btn_Search);
this.panel3.Controls.Add(this.rBtn_BookName);
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 33);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(362, 35);
this.panel3.Size = new System.Drawing.Size(395, 35);
this.panel3.TabIndex = 4;
//
// btn_Reflesh008
@@ -200,7 +185,7 @@
this.btn_Reflesh008.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_Reflesh008.BackgroundImage")));
this.btn_Reflesh008.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.btn_Reflesh008.Dock = System.Windows.Forms.DockStyle.Right;
this.btn_Reflesh008.Location = new System.Drawing.Point(327, 0);
this.btn_Reflesh008.Location = new System.Drawing.Point(360, 0);
this.btn_Reflesh008.Name = "btn_Reflesh008";
this.btn_Reflesh008.Size = new System.Drawing.Size(33, 33);
this.btn_Reflesh008.TabIndex = 208;
@@ -220,7 +205,7 @@
//
this.rBtn_ISBN.AutoSize = true;
this.rBtn_ISBN.Checked = true;
this.rBtn_ISBN.Location = new System.Drawing.Point(184, 9);
this.rBtn_ISBN.Location = new System.Drawing.Point(153, 9);
this.rBtn_ISBN.Name = "rBtn_ISBN";
this.rBtn_ISBN.Size = new System.Drawing.Size(51, 16);
this.rBtn_ISBN.TabIndex = 4;
@@ -230,18 +215,18 @@
//
// btn_Search
//
this.btn_Search.Location = new System.Drawing.Point(241, 6);
this.btn_Search.Location = new System.Drawing.Point(217, 5);
this.btn_Search.Name = "btn_Search";
this.btn_Search.Size = new System.Drawing.Size(75, 23);
this.btn_Search.Size = new System.Drawing.Size(65, 23);
this.btn_Search.TabIndex = 2;
this.btn_Search.Text = "검 색";
this.btn_Search.Text = "검 색";
this.btn_Search.UseVisualStyleBackColor = true;
this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
//
// rBtn_BookName
//
this.rBtn_BookName.AutoSize = true;
this.rBtn_BookName.Location = new System.Drawing.Point(97, 9);
this.rBtn_BookName.Location = new System.Drawing.Point(68, 9);
this.rBtn_BookName.Name = "rBtn_BookName";
this.rBtn_BookName.Size = new System.Drawing.Size(59, 16);
this.rBtn_BookName.TabIndex = 4;
@@ -261,14 +246,14 @@
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(362, 33);
this.panel2.Size = new System.Drawing.Size(395, 33);
this.panel2.TabIndex = 3;
//
// btn_Connect
//
this.btn_Connect.Location = new System.Drawing.Point(278, 5);
this.btn_Connect.Name = "btn_Connect";
this.btn_Connect.Size = new System.Drawing.Size(75, 23);
this.btn_Connect.Size = new System.Drawing.Size(110, 23);
this.btn_Connect.TabIndex = 5;
this.btn_Connect.Text = "접 속";
this.btn_Connect.UseVisualStyleBackColor = true;
@@ -334,9 +319,9 @@
this.panel4.Controls.Add(this.panel7);
this.panel4.Controls.Add(this.panel6);
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(364, 0);
this.panel4.Location = new System.Drawing.Point(397, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(964, 734);
this.panel4.Size = new System.Drawing.Size(931, 734);
this.panel4.TabIndex = 2;
//
// panel7
@@ -345,7 +330,7 @@
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(0, 35);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(962, 697);
this.panel7.Size = new System.Drawing.Size(929, 697);
this.panel7.TabIndex = 7;
//
// webBrowser1
@@ -355,7 +340,7 @@
this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20);
this.webBrowser1.Name = "webBrowser1";
this.webBrowser1.ScriptErrorsSuppressed = true;
this.webBrowser1.Size = new System.Drawing.Size(962, 697);
this.webBrowser1.Size = new System.Drawing.Size(929, 697);
this.webBrowser1.TabIndex = 5;
this.webBrowser1.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser1_DocumentCompleted);
//
@@ -369,7 +354,7 @@
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(962, 35);
this.panel6.Size = new System.Drawing.Size(929, 35);
this.panel6.TabIndex = 6;
//
// btn_Back
@@ -402,6 +387,35 @@
this.tb_URL.TabIndex = 0;
this.tb_URL.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_URL_KeyDown);
//
// btnStop
//
this.btnStop.Location = new System.Drawing.Point(283, 5);
this.btnStop.Name = "btnStop";
this.btnStop.Size = new System.Drawing.Size(65, 23);
this.btnStop.TabIndex = 2;
this.btnStop.Text = "중 지";
this.btnStop.UseVisualStyleBackColor = true;
this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
//
// Book_name
//
this.Book_name.HeaderText = "도서명";
this.Book_name.Name = "Book_name";
this.Book_name.Width = 140;
//
// ISBN
//
this.ISBN.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
this.ISBN.HeaderText = "ISBN";
this.ISBN.Name = "ISBN";
this.ISBN.Width = 140;
//
// Check
//
this.Check.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.Check.HeaderText = "Y/N";
this.Check.Name = "Check";
//
// DLS_Copy
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
@@ -446,9 +460,6 @@
private System.Windows.Forms.RadioButton rBtn_BookName;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button btn_Search;
private System.Windows.Forms.DataGridViewTextBoxColumn Book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
private System.Windows.Forms.DataGridViewTextBoxColumn Check;
public System.Windows.Forms.Label lbl_Area;
private System.Windows.Forms.WebBrowser webBrowser1;
private System.Windows.Forms.Panel panel4;
@@ -463,5 +474,9 @@
private System.Windows.Forms.Button btn_ApplyFilter;
private System.Windows.Forms.CheckBox chk_spChar;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.DataGridViewTextBoxColumn Book_name;
private System.Windows.Forms.DataGridViewTextBoxColumn ISBN;
private System.Windows.Forms.DataGridViewTextBoxColumn Check;
private System.Windows.Forms.Button btnStop;
}
}

View File

@@ -97,10 +97,11 @@ namespace WindowsFormsApp1.Mac
webBrowser1.Navigate(url + "/r/dls_new/bookInfo/collectionFormMA.jsp");
}
#endregion
private bool tStop = false;
private int tSearchIDX = 0;
private void btn_Search_Click(object sender, EventArgs e)
{
tStop = false;
if (dataGridView1.Rows[0].Cells["ISBN"].Value == null && rBtn_ISBN.Checked) {
MessageBox.Show("ISBN이 입력되지않았습니다!");
return;
@@ -127,6 +128,7 @@ namespace WindowsFormsApp1.Mac
for(int a = 0; a < count; a++)
{
if (tSearchIDX != 0) a = tSearchIDX;
string Check;
if (isISBN) {
string Target = dataGridView1.Rows[a].Cells["ISBN"].Value.ToString();
@@ -143,7 +145,14 @@ namespace WindowsFormsApp1.Mac
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.LightGray;
else
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.Yellow;
if (tStop)
{
tSearchIDX = a+1;
break;
}
}
if (tStop) MessageBox.Show("검색이 중지 되었습니다.");
return true;
}
/// <summary>
@@ -309,10 +318,19 @@ namespace WindowsFormsApp1.Mac
private void btn_Reflesh008_Click(object sender, EventArgs e)
{
tSearchIDX = 0;
for (int a = 0; a < dataGridView1.Rows.Count; a++)
{
dataGridView1.Rows[a].Cells["Check"].Value = "";
dataGridView1.Rows[a].DefaultCellStyle.BackColor = Color.White;
}
}
private void btnStop_Click(object sender, EventArgs e)
{
tStop = true;
}
}
}

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