old commit < 250527-232400
This commit is contained in:
125
unimarc/unimarc/CExt.cs
Normal file
125
unimarc/unimarc/CExt.cs
Normal 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
34
unimarc/unimarc/CUtill.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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('|');
|
||||
|
||||
|
||||
58
unimarc/unimarc/Main.Designer.cs
generated
58
unimarc/unimarc/Main.Designer.cs
generated
@@ -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 목록;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
@@ -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 ""; }
|
||||
|
||||
@@ -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>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
c6748d9872ca9cb179a9864ec8df9b90804c3462
|
||||
7c3f3c7bd336cd4a22fbf71f45e129479c488ff9
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
836
unimarc/unimarc/마스터/From_User_manage_List.Designer.cs
generated
Normal file
836
unimarc/unimarc/마스터/From_User_manage_List.Designer.cs
generated
Normal 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;
|
||||
}
|
||||
}
|
||||
217
unimarc/unimarc/마스터/From_User_manage_List.cs
Normal file
217
unimarc/unimarc/마스터/From_User_manage_List.cs
Normal 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("");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
174
unimarc/unimarc/마스터/From_User_manage_List.resx
Normal file
174
unimarc/unimarc/마스터/From_User_manage_List.resx
Normal 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>
|
||||
40
unimarc/unimarc/마스터/User_manage.Designer.cs
generated
40
unimarc/unimarc/마스터/User_manage.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
97
unimarc/unimarc/마크/AddMarc.Designer.cs
generated
97
unimarc/unimarc/마크/AddMarc.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
78
unimarc/unimarc/마크/CD_LP.Designer.cs
generated
78
unimarc/unimarc/마크/CD_LP.Designer.cs
generated
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
318
unimarc/unimarc/마크/Check_ISBN.Designer.cs
generated
318
unimarc/unimarc/마크/Check_ISBN.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
101
unimarc/unimarc/마크/DLS_Copy.Designer.cs
generated
101
unimarc/unimarc/마크/DLS_Copy.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace ExcelTest
|
||||
"학위논문", "법률논문", "법령집", "판례집 및 판례요약집", "판결보도 및 판결 평석",
|
||||
"별쇄본", "역서(전체)", "음반목록", "영화작품목록", "초록",
|
||||
"서지", "목록", "편람", "색인", "조사보고",
|
||||
"기술보고서", "프로그램화된 텍스트", "표준/표준해설자료"
|
||||
"기술보고서", "프로그램화된 텍스트", "표준/표준해설자료", "만화"
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
@@ -43,7 +43,7 @@ namespace ExcelTest
|
||||
"해당무", "소설", "추리소설", "단편소설", "시",
|
||||
"수필", "희곡/시나리오", "문집", "기행문/일기문/수기", "평론",
|
||||
"논픽션", "연설문", "논설문", "향가/시조", "풍자문학",
|
||||
"서간문학"
|
||||
"서간문학", "만화"
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
@@ -98,7 +98,7 @@ namespace ExcelTest
|
||||
" ", "f", "k", "j", "p",
|
||||
"e", "d", "v", "m", "u",
|
||||
"l", "s", "t", "w", "h",
|
||||
"i"
|
||||
"i", "c"
|
||||
};
|
||||
|
||||
// comboBox5 = 전기
|
||||
@@ -119,7 +119,7 @@ namespace ExcelTest
|
||||
};
|
||||
|
||||
char[] inputArray;
|
||||
|
||||
char[] tTestArray = Text.ToCharArray();
|
||||
switch (Name)
|
||||
{
|
||||
case "comboBox1": // 이용대상자수준
|
||||
@@ -166,12 +166,19 @@ namespace ExcelTest
|
||||
{
|
||||
string[] combo1_res = { " ", "a", "j", "b", "c",
|
||||
"d", "e", "f", "z" };
|
||||
int result;
|
||||
for(result = 0; result < combo1_res.Length; result++)
|
||||
int result = combo1_res.ToList().FindIndex(x => x == value);
|
||||
if (result == -1)
|
||||
{
|
||||
if (value == combo1_res[result]) { break; }
|
||||
MessageBox.Show(String.Format("이용대상자수준을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo1[0], combo1_res[0]), "경고");
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
//int result;
|
||||
//for(result = 0; result < combo1_res.Length; result++)
|
||||
//{
|
||||
// if (value == combo1_res[result]) { break; }
|
||||
//}
|
||||
//return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 008 개별자료형태 (23)
|
||||
@@ -181,12 +188,18 @@ namespace ExcelTest
|
||||
public int DataType_008(string value)
|
||||
{
|
||||
string[] combo2_res = { " ", "d", "f" };
|
||||
int result;
|
||||
for (result = 0; result < combo2_res.Length; result++)
|
||||
int result = combo2_res.ToList().FindIndex(x=>x==value);
|
||||
if (result == -1)
|
||||
{
|
||||
if (value == combo2_res[result]) { break; }
|
||||
MessageBox.Show(String.Format("개별자료형태를 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo2[0], combo2_res[0]), "경고");
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
//for (result = 0; result < combo2_res.Length; result++)
|
||||
//{
|
||||
// if (value == combo2_res[result]) { break; }
|
||||
//}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 008 내용형식 (24 / 25) 두번 불러야함.
|
||||
@@ -201,12 +214,19 @@ namespace ExcelTest
|
||||
"2", "5", "k", "q", "a",
|
||||
"b", "c", "f", "i", "n",
|
||||
"t", "p", "u" };
|
||||
int result;
|
||||
for (result = 0; result < combo3_res.Length; result++)
|
||||
int result = combo3_res.ToList().FindIndex(x => x == value);
|
||||
if (result == -1)
|
||||
{
|
||||
if (value == combo3_res[result]) { break; }
|
||||
MessageBox.Show(String.Format("내용형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo3[0], combo3_res[0]), "경고");
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
//int result;
|
||||
//for (result = 0; result < combo3_res.Length; result++)
|
||||
//{
|
||||
// if (value == combo3_res[result]) { break; }
|
||||
//}
|
||||
//return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 008 문학형식 (33)
|
||||
@@ -219,12 +239,19 @@ namespace ExcelTest
|
||||
"e", "d", "v", "m", "u",
|
||||
"l", "s", "t", "w", "h",
|
||||
"i" };
|
||||
int result;
|
||||
for (result = 0; result < combo4_res.Length; result++)
|
||||
int result = combo4_res.ToList().FindIndex(x => x == value);
|
||||
if (result == -1)
|
||||
{
|
||||
if (value == combo4_res[result]) { break; }
|
||||
MessageBox.Show(String.Format("문학형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo4[0], combo4_res[0]), "경고");
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
//int result;
|
||||
//for (result = 0; result < combo4_res.Length; result++)
|
||||
//{
|
||||
// if (value == combo4_res[result]) { break; }
|
||||
//}
|
||||
//return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 008 전기 (34)
|
||||
@@ -234,12 +261,19 @@ namespace ExcelTest
|
||||
public int Biography_008(string value)
|
||||
{
|
||||
string[] combo5_res = { " ", "a", "b", "c", "d" };
|
||||
int result;
|
||||
for (result = 0; result < combo5_res.Length; result++)
|
||||
int result = combo5_res.ToList().FindIndex(x => x == value);
|
||||
if (result == -1)
|
||||
{
|
||||
if (value == combo5_res[result]) { break; }
|
||||
MessageBox.Show(String.Format("전기형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo5[0], combo5_res[0]), "경고");
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
//int result;
|
||||
//for (result = 0; result < combo5_res.Length; result++)
|
||||
//{
|
||||
// if (value == combo5_res[result]) { break; }
|
||||
//}
|
||||
//return result;기본값 ={0}({1}) 으로 설정됩니다.
|
||||
}
|
||||
/// <summary>
|
||||
/// 008 언어 (35-37)
|
||||
@@ -256,12 +290,19 @@ namespace ExcelTest
|
||||
"est", "uzb", "ukr", "mar", "cam",
|
||||
"tha", "tur", "tuk", "tib", "tag",
|
||||
"hun" };
|
||||
int result;
|
||||
for (result = 0; result < combo6_res.Length; result++)
|
||||
int result = combo6_res.ToList().FindIndex(x => x == value);
|
||||
if (result == -1)
|
||||
{
|
||||
if (value == combo6_res[result]) { break; }
|
||||
MessageBox.Show(String.Format("언어형식을 찾지 못했습니다.\r\n기본값 ={0}({1}) 으로 설정됩니다.\r\n올바른 데이터로 선택하시길 바랍니다.", combo6[0], combo6_res[0]), "경고");
|
||||
result = 0;
|
||||
}
|
||||
return result;
|
||||
//int result;
|
||||
//for (result = 0; result < combo6_res.Length; result++)
|
||||
//{
|
||||
// if (value == combo6_res[result]) { break; }
|
||||
//}
|
||||
//return result;
|
||||
}
|
||||
public bool CheckBox_008(string value)
|
||||
{
|
||||
|
||||
255
unimarc/unimarc/마크/Mac_List.Designer.cs
generated
255
unimarc/unimarc/마크/Mac_List.Designer.cs
generated
@@ -28,23 +28,11 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = 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();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.tb_Search = new System.Windows.Forms.TextBox();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.start_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.end_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.work_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.stock = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.unstock = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.state = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.check = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.cb_state = new System.Windows.Forms.ComboBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.btn_Lookup = new System.Windows.Forms.Button();
|
||||
@@ -59,6 +47,19 @@
|
||||
this.btn_AddList = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.btnSearchISBN = new System.Windows.Forms.Button();
|
||||
this.check = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.charge = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.etc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.state = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.unstock = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.stock = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.count = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.work_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.list_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.end_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.start_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
@@ -88,14 +89,14 @@
|
||||
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
|
||||
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
@@ -110,101 +111,32 @@
|
||||
this.etc,
|
||||
this.charge,
|
||||
this.check});
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.MultiSelect = false;
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 40;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1124, 623);
|
||||
this.dataGridView1.TabIndex = 48;
|
||||
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
//
|
||||
// idx
|
||||
//
|
||||
this.idx.HeaderText = "idx";
|
||||
this.idx.Name = "idx";
|
||||
this.idx.Visible = false;
|
||||
//
|
||||
// start_date
|
||||
//
|
||||
this.start_date.HeaderText = "목록일자";
|
||||
this.start_date.Name = "start_date";
|
||||
//
|
||||
// end_date
|
||||
//
|
||||
this.end_date.HeaderText = "완료일자";
|
||||
this.end_date.Name = "end_date";
|
||||
//
|
||||
// list_name
|
||||
//
|
||||
this.list_name.HeaderText = "목록명";
|
||||
this.list_name.Name = "list_name";
|
||||
this.list_name.Width = 200;
|
||||
//
|
||||
// work_name
|
||||
//
|
||||
this.work_name.HeaderText = "작업명";
|
||||
this.work_name.Name = "work_name";
|
||||
//
|
||||
// count
|
||||
//
|
||||
this.count.HeaderText = "수량";
|
||||
this.count.Name = "count";
|
||||
this.count.Width = 80;
|
||||
//
|
||||
// stock
|
||||
//
|
||||
this.stock.HeaderText = "입고";
|
||||
this.stock.Name = "stock";
|
||||
this.stock.Visible = false;
|
||||
this.stock.Width = 70;
|
||||
//
|
||||
// unstock
|
||||
//
|
||||
this.unstock.HeaderText = "미입고";
|
||||
this.unstock.Name = "unstock";
|
||||
this.unstock.Visible = false;
|
||||
this.unstock.Width = 70;
|
||||
//
|
||||
// state
|
||||
//
|
||||
this.state.HeaderText = "상태";
|
||||
this.state.Name = "state";
|
||||
this.state.Width = 70;
|
||||
//
|
||||
// etc
|
||||
//
|
||||
this.etc.HeaderText = "비고";
|
||||
this.etc.Name = "etc";
|
||||
this.etc.Width = 280;
|
||||
//
|
||||
// charge
|
||||
//
|
||||
this.charge.HeaderText = "담당자";
|
||||
this.charge.Name = "charge";
|
||||
this.charge.Width = 70;
|
||||
//
|
||||
// check
|
||||
//
|
||||
this.check.HeaderText = "V";
|
||||
this.check.Name = "check";
|
||||
this.check.Width = 35;
|
||||
//
|
||||
// cb_state
|
||||
//
|
||||
this.cb_state.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_state.FormattingEnabled = true;
|
||||
this.cb_state.Location = new System.Drawing.Point(365, 9);
|
||||
this.cb_state.Location = new System.Drawing.Point(354, 9);
|
||||
this.cb_state.Name = "cb_state";
|
||||
this.cb_state.Size = new System.Drawing.Size(74, 20);
|
||||
this.cb_state.TabIndex = 49;
|
||||
@@ -212,7 +144,7 @@
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(334, 13);
|
||||
this.label2.Location = new System.Drawing.Point(323, 13);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(29, 12);
|
||||
this.label2.TabIndex = 5;
|
||||
@@ -220,7 +152,8 @@
|
||||
//
|
||||
// btn_Lookup
|
||||
//
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(489, 3);
|
||||
this.btn_Lookup.Location = new System.Drawing.Point(484, 2);
|
||||
this.btn_Lookup.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Lookup.Name = "btn_Lookup";
|
||||
this.btn_Lookup.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Lookup.TabIndex = 50;
|
||||
@@ -230,7 +163,8 @@
|
||||
//
|
||||
// btn_Excel
|
||||
//
|
||||
this.btn_Excel.Location = new System.Drawing.Point(958, 3);
|
||||
this.btn_Excel.Location = new System.Drawing.Point(990, 2);
|
||||
this.btn_Excel.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Excel.Name = "btn_Excel";
|
||||
this.btn_Excel.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Excel.TabIndex = 50;
|
||||
@@ -240,7 +174,8 @@
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(1025, 3);
|
||||
this.btn_Close.Location = new System.Drawing.Point(1053, 2);
|
||||
this.btn_Close.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Close.TabIndex = 50;
|
||||
@@ -250,7 +185,8 @@
|
||||
//
|
||||
// btn_Save
|
||||
//
|
||||
this.btn_Save.Location = new System.Drawing.Point(891, 3);
|
||||
this.btn_Save.Location = new System.Drawing.Point(927, 2);
|
||||
this.btn_Save.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Save.Name = "btn_Save";
|
||||
this.btn_Save.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Save.TabIndex = 50;
|
||||
@@ -260,7 +196,8 @@
|
||||
//
|
||||
// btn_Merge
|
||||
//
|
||||
this.btn_Merge.Location = new System.Drawing.Point(623, 3);
|
||||
this.btn_Merge.Location = new System.Drawing.Point(673, 2);
|
||||
this.btn_Merge.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Merge.Name = "btn_Merge";
|
||||
this.btn_Merge.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Merge.TabIndex = 51;
|
||||
@@ -270,7 +207,8 @@
|
||||
//
|
||||
// btn_Progress
|
||||
//
|
||||
this.btn_Progress.Location = new System.Drawing.Point(690, 3);
|
||||
this.btn_Progress.Location = new System.Drawing.Point(738, 2);
|
||||
this.btn_Progress.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Progress.Name = "btn_Progress";
|
||||
this.btn_Progress.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Progress.TabIndex = 51;
|
||||
@@ -280,7 +218,8 @@
|
||||
//
|
||||
// btn_Completion
|
||||
//
|
||||
this.btn_Completion.Location = new System.Drawing.Point(757, 3);
|
||||
this.btn_Completion.Location = new System.Drawing.Point(801, 2);
|
||||
this.btn_Completion.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Completion.Name = "btn_Completion";
|
||||
this.btn_Completion.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Completion.TabIndex = 51;
|
||||
@@ -290,7 +229,8 @@
|
||||
//
|
||||
// btn_Delete
|
||||
//
|
||||
this.btn_Delete.Location = new System.Drawing.Point(824, 3);
|
||||
this.btn_Delete.Location = new System.Drawing.Point(864, 2);
|
||||
this.btn_Delete.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_Delete.Name = "btn_Delete";
|
||||
this.btn_Delete.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_Delete.TabIndex = 51;
|
||||
@@ -300,7 +240,8 @@
|
||||
//
|
||||
// btn_AddList
|
||||
//
|
||||
this.btn_AddList.Location = new System.Drawing.Point(556, 3);
|
||||
this.btn_AddList.Location = new System.Drawing.Point(610, 2);
|
||||
this.btn_AddList.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btn_AddList.Name = "btn_AddList";
|
||||
this.btn_AddList.Size = new System.Drawing.Size(61, 32);
|
||||
this.btn_AddList.TabIndex = 50;
|
||||
@@ -318,6 +259,7 @@
|
||||
this.panel1.Controls.Add(this.btn_Progress);
|
||||
this.panel1.Controls.Add(this.cb_state);
|
||||
this.panel1.Controls.Add(this.btn_Merge);
|
||||
this.panel1.Controls.Add(this.btnSearchISBN);
|
||||
this.panel1.Controls.Add(this.btn_Lookup);
|
||||
this.panel1.Controls.Add(this.btn_Close);
|
||||
this.panel1.Controls.Add(this.btn_AddList);
|
||||
@@ -338,6 +280,88 @@
|
||||
this.panel2.Size = new System.Drawing.Size(1124, 623);
|
||||
this.panel2.TabIndex = 53;
|
||||
//
|
||||
// btnSearchISBN
|
||||
//
|
||||
this.btnSearchISBN.Location = new System.Drawing.Point(547, 2);
|
||||
this.btnSearchISBN.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.btnSearchISBN.Name = "btnSearchISBN";
|
||||
this.btnSearchISBN.Size = new System.Drawing.Size(61, 32);
|
||||
this.btnSearchISBN.TabIndex = 50;
|
||||
this.btnSearchISBN.Text = "ISBN 조회";
|
||||
this.btnSearchISBN.UseVisualStyleBackColor = true;
|
||||
this.btnSearchISBN.Click += new System.EventHandler(this.btnSearchISBN_Click);
|
||||
//
|
||||
// check
|
||||
//
|
||||
this.check.HeaderText = "V";
|
||||
this.check.Name = "check";
|
||||
this.check.Width = 35;
|
||||
//
|
||||
// charge
|
||||
//
|
||||
this.charge.HeaderText = "담당자";
|
||||
this.charge.Name = "charge";
|
||||
this.charge.Width = 70;
|
||||
//
|
||||
// etc
|
||||
//
|
||||
this.etc.HeaderText = "비고";
|
||||
this.etc.Name = "etc";
|
||||
this.etc.Width = 280;
|
||||
//
|
||||
// state
|
||||
//
|
||||
this.state.HeaderText = "상태";
|
||||
this.state.Name = "state";
|
||||
this.state.Width = 70;
|
||||
//
|
||||
// unstock
|
||||
//
|
||||
this.unstock.HeaderText = "미입고";
|
||||
this.unstock.Name = "unstock";
|
||||
this.unstock.Visible = false;
|
||||
this.unstock.Width = 70;
|
||||
//
|
||||
// stock
|
||||
//
|
||||
this.stock.HeaderText = "입고";
|
||||
this.stock.Name = "stock";
|
||||
this.stock.Visible = false;
|
||||
this.stock.Width = 70;
|
||||
//
|
||||
// count
|
||||
//
|
||||
this.count.HeaderText = "수량";
|
||||
this.count.Name = "count";
|
||||
this.count.Width = 80;
|
||||
//
|
||||
// work_name
|
||||
//
|
||||
this.work_name.HeaderText = "작업명";
|
||||
this.work_name.Name = "work_name";
|
||||
//
|
||||
// list_name
|
||||
//
|
||||
this.list_name.HeaderText = "목록명";
|
||||
this.list_name.Name = "list_name";
|
||||
this.list_name.Width = 200;
|
||||
//
|
||||
// end_date
|
||||
//
|
||||
this.end_date.HeaderText = "완료일자";
|
||||
this.end_date.Name = "end_date";
|
||||
//
|
||||
// start_date
|
||||
//
|
||||
this.start_date.HeaderText = "목록일자";
|
||||
this.start_date.Name = "start_date";
|
||||
//
|
||||
// idx
|
||||
//
|
||||
this.idx.HeaderText = "idx";
|
||||
this.idx.Name = "idx";
|
||||
this.idx.Visible = false;
|
||||
//
|
||||
// Mac_List
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -373,6 +397,10 @@
|
||||
private System.Windows.Forms.Button btn_Completion;
|
||||
private System.Windows.Forms.Button btn_Delete;
|
||||
private System.Windows.Forms.Button btn_AddList;
|
||||
public System.Windows.Forms.Button btn_Lookup;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
public System.Windows.Forms.Button btnSearchISBN;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn start_date;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn end_date;
|
||||
@@ -385,8 +413,5 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn charge;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn check;
|
||||
public System.Windows.Forms.Button btn_Lookup;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
}
|
||||
}
|
||||
@@ -340,5 +340,25 @@ namespace WindowsFormsApp1.Mac
|
||||
Skill_Grid sg = new Skill_Grid();
|
||||
sg.Print_Grid_Num(sender, e);
|
||||
}
|
||||
private Check_ISBN mMac_check_ISBN;
|
||||
private void btnSearchISBN_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.SelectedRows[0].Index < 0) return;
|
||||
string tSearchText = dataGridView1.SelectedRows[0].Cells["list_name"].Value.ToString();
|
||||
string tSearchIDX = dataGridView1.SelectedRows[0].Cells["idx"].Value.ToString();
|
||||
if (mMac_check_ISBN != null)
|
||||
{
|
||||
mMac_check_ISBN.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
mMac_check_ISBN = new Check_ISBN(main, tSearchText, tSearchIDX);
|
||||
mMac_check_ISBN.MdiParent = main;
|
||||
mMac_check_ISBN.WindowState = FormWindowState.Maximized;
|
||||
mMac_check_ISBN.FormClosed += (o, ea) => mMac_check_ISBN = null;
|
||||
mMac_check_ISBN.tb_list_name.Enabled = true;
|
||||
mMac_check_ISBN.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
61
unimarc/unimarc/마크/Marc.designer.cs
generated
61
unimarc/unimarc/마크/Marc.designer.cs
generated
@@ -249,6 +249,7 @@
|
||||
this.lbl_SaveData = new System.Windows.Forms.Label();
|
||||
this.lbl_ISBN = new System.Windows.Forms.Label();
|
||||
this.lbl_BookList = new System.Windows.Forms.Label();
|
||||
this.checkBox4 = new System.Windows.Forms.CheckBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.List_Book)).BeginInit();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
@@ -591,8 +592,8 @@
|
||||
this.List_Book.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.List_Book.Size = new System.Drawing.Size(543, 822);
|
||||
this.List_Book.TabIndex = 217;
|
||||
this.List_Book.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.List_Book_CellClick);
|
||||
this.List_Book.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.List_Book_RowPostPaint);
|
||||
this.List_Book.SelectionChanged += new System.EventHandler(this.List_Book_SelectionChanged);
|
||||
this.List_Book.DragDrop += new System.Windows.Forms.DragEventHandler(this.List_Book_DragDrop);
|
||||
this.List_Book.DragOver += new System.Windows.Forms.DragEventHandler(this.List_Book_DragOver);
|
||||
this.List_Book.KeyDown += new System.Windows.Forms.KeyEventHandler(this.List_Book_KeyDown);
|
||||
@@ -1143,6 +1144,7 @@
|
||||
this.text505a.Name = "text505a";
|
||||
this.text505a.Size = new System.Drawing.Size(389, 33);
|
||||
this.text505a.TabIndex = 270;
|
||||
this.text505a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// GridView505
|
||||
//
|
||||
@@ -1648,6 +1650,7 @@
|
||||
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
|
||||
//
|
||||
@@ -1657,6 +1660,7 @@
|
||||
this.text300c1.Name = "text300c1";
|
||||
this.text300c1.Size = new System.Drawing.Size(59, 21);
|
||||
this.text300c1.TabIndex = 275;
|
||||
this.text300c1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text300c2
|
||||
//
|
||||
@@ -1666,6 +1670,7 @@
|
||||
this.text300c2.Name = "text300c2";
|
||||
this.text300c2.Size = new System.Drawing.Size(59, 21);
|
||||
this.text300c2.TabIndex = 274;
|
||||
this.text300c2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text300b
|
||||
//
|
||||
@@ -1675,6 +1680,7 @@
|
||||
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
|
||||
//
|
||||
@@ -1704,6 +1710,7 @@
|
||||
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
|
||||
//
|
||||
@@ -1783,6 +1790,7 @@
|
||||
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
|
||||
//
|
||||
@@ -1802,6 +1810,7 @@
|
||||
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
|
||||
//
|
||||
@@ -1811,6 +1820,7 @@
|
||||
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
|
||||
//
|
||||
@@ -1859,6 +1869,7 @@
|
||||
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
|
||||
//
|
||||
@@ -1867,6 +1878,7 @@
|
||||
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);
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
@@ -1905,6 +1917,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2031,6 +2044,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2040,6 +2054,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2059,6 +2074,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2102,6 +2118,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2111,6 +2128,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2120,6 +2138,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2209,6 +2228,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2218,6 +2238,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2227,6 +2248,7 @@
|
||||
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);
|
||||
//
|
||||
// text520a
|
||||
//
|
||||
@@ -2236,6 +2258,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2269,7 +2292,8 @@
|
||||
this.text245a.Location = new System.Drawing.Point(18, 13);
|
||||
this.text245a.Name = "text245a";
|
||||
this.text245a.Size = new System.Drawing.Size(389, 21);
|
||||
this.text245a.TabIndex = 285;
|
||||
this.text245a.TabIndex = 0;
|
||||
this.text245a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245b
|
||||
//
|
||||
@@ -2278,7 +2302,7 @@
|
||||
this.text245b.Location = new System.Drawing.Point(18, 35);
|
||||
this.text245b.Name = "text245b";
|
||||
this.text245b.Size = new System.Drawing.Size(389, 21);
|
||||
this.text245b.TabIndex = 291;
|
||||
this.text245b.TabIndex = 1;
|
||||
this.text245b.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245x
|
||||
@@ -2288,7 +2312,8 @@
|
||||
this.text245x.Location = new System.Drawing.Point(18, 58);
|
||||
this.text245x.Name = "text245x";
|
||||
this.text245x.Size = new System.Drawing.Size(389, 21);
|
||||
this.text245x.TabIndex = 290;
|
||||
this.text245x.TabIndex = 2;
|
||||
this.text245x.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245n
|
||||
//
|
||||
@@ -2297,7 +2322,8 @@
|
||||
this.text245n.Location = new System.Drawing.Point(455, 13);
|
||||
this.text245n.Name = "text245n";
|
||||
this.text245n.Size = new System.Drawing.Size(107, 21);
|
||||
this.text245n.TabIndex = 289;
|
||||
this.text245n.TabIndex = 3;
|
||||
this.text245n.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245d
|
||||
//
|
||||
@@ -2306,7 +2332,8 @@
|
||||
this.text245d.Location = new System.Drawing.Point(455, 35);
|
||||
this.text245d.Name = "text245d";
|
||||
this.text245d.Size = new System.Drawing.Size(457, 21);
|
||||
this.text245d.TabIndex = 288;
|
||||
this.text245d.TabIndex = 5;
|
||||
this.text245d.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245e
|
||||
//
|
||||
@@ -2315,7 +2342,7 @@
|
||||
this.text245e.Location = new System.Drawing.Point(455, 58);
|
||||
this.text245e.Name = "text245e";
|
||||
this.text245e.Size = new System.Drawing.Size(457, 21);
|
||||
this.text245e.TabIndex = 283;
|
||||
this.text245e.TabIndex = 6;
|
||||
this.text245e.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text245p
|
||||
@@ -2325,7 +2352,8 @@
|
||||
this.text245p.Location = new System.Drawing.Point(582, 13);
|
||||
this.text245p.Name = "text245p";
|
||||
this.text245p.Size = new System.Drawing.Size(330, 21);
|
||||
this.text245p.TabIndex = 282;
|
||||
this.text245p.TabIndex = 4;
|
||||
this.text245p.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// label48
|
||||
//
|
||||
@@ -2404,6 +2432,7 @@
|
||||
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);
|
||||
//
|
||||
// text525a
|
||||
//
|
||||
@@ -2412,6 +2441,7 @@
|
||||
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
|
||||
//
|
||||
@@ -2420,6 +2450,7 @@
|
||||
this.text940a.Name = "text940a";
|
||||
this.text940a.Size = new System.Drawing.Size(346, 21);
|
||||
this.text940a.TabIndex = 279;
|
||||
this.text940a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// text653a
|
||||
//
|
||||
@@ -2463,6 +2494,7 @@
|
||||
this.text250a.Name = "text250a";
|
||||
this.text250a.Size = new System.Drawing.Size(346, 21);
|
||||
this.text250a.TabIndex = 281;
|
||||
this.text250a.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FillTextBox_KeyDown);
|
||||
//
|
||||
// lbl_SaveData
|
||||
//
|
||||
@@ -2497,6 +2529,17 @@
|
||||
this.lbl_BookList.TabIndex = 33;
|
||||
this.lbl_BookList.Text = " ";
|
||||
//
|
||||
// checkBox4
|
||||
//
|
||||
this.checkBox4.AutoSize = true;
|
||||
this.checkBox4.Location = new System.Drawing.Point(1174, 30);
|
||||
this.checkBox4.Name = "checkBox4";
|
||||
this.checkBox4.Size = new System.Drawing.Size(48, 16);
|
||||
this.checkBox4.TabIndex = 213;
|
||||
this.checkBox4.Text = "색인";
|
||||
this.checkBox4.UseVisualStyleBackColor = true;
|
||||
this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
|
||||
//
|
||||
// Marc
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -2521,6 +2564,7 @@
|
||||
this.Controls.Add(this.btn_Save);
|
||||
this.Controls.Add(this.btn_preview);
|
||||
this.Controls.Add(this.Btn_Memo);
|
||||
this.Controls.Add(this.checkBox4);
|
||||
this.Controls.Add(this.checkBox2);
|
||||
this.Controls.Add(this.comboBox6);
|
||||
this.Controls.Add(this.comboBox5);
|
||||
@@ -2801,5 +2845,6 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn text505t;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn text505d;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn text505e;
|
||||
private System.Windows.Forms.CheckBox checkBox4;
|
||||
}
|
||||
}
|
||||
@@ -307,6 +307,7 @@ namespace UniMarc
|
||||
string[] SplitTag = line.Split('\t');
|
||||
SplitTag[2] = SplitTag[2].Replace("↔", "");
|
||||
SplitTag[1] = SplitTag[1].PadRight(2, ' ');
|
||||
if (SplitTag[0] == "035" || SplitTag[0] == "040") continue;
|
||||
result += string.Format("{0}\t{1}\t{2}\n", SplitTag[0], SplitTag[1], SplitTag[2]);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,11 +10,24 @@ using WindowsFormsApp1;
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
public class Macro
|
||||
{
|
||||
public string mIDX;
|
||||
public string mTagArr;
|
||||
public string mRuncode;
|
||||
|
||||
public Macro(string pIDX, string pTagArr, string pRuncode)
|
||||
{
|
||||
mIDX= pIDX;
|
||||
mTagArr= pTagArr;
|
||||
mRuncode= pRuncode;
|
||||
}
|
||||
}
|
||||
internal class Macro_Gudu
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
Helper_DB db;
|
||||
|
||||
|
||||
public Macro_Gudu(Helper_DB db)
|
||||
{
|
||||
this.db = db;
|
||||
@@ -35,16 +48,58 @@ namespace UniMarc.마크
|
||||
return RunningMacro(ViewMarc, idx, TagArray, RunCode);
|
||||
}
|
||||
|
||||
public string MacroMarc(string ViewMarc, List<Macro> pMacroList)
|
||||
{
|
||||
return NewRunningMacro(ViewMarc, pMacroList);
|
||||
}
|
||||
private string NewRunningMacro(string ViewMarc, List<Macro> pMacroList)
|
||||
{
|
||||
List<string> tSplitMarc;//= new List<string>(ViewMarc.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries));
|
||||
List<Macro> tMacroList = pMacroList;
|
||||
string tMacroData = string.Empty;
|
||||
string tContentTag = string.Empty;
|
||||
for (int i = 0; i < tMacroList.Count; i++)
|
||||
{
|
||||
if (tMacroList[i].mRuncode == "etc" || tMacroList[i].mRuncode.Contains("jisi") || (tMacroList[i].mRuncode.Contains("del")&& !tMacroList[i].mRuncode.Contains("/")))
|
||||
{
|
||||
if ((tMacroList[i].mIDX == "110" || tMacroList[i].mIDX == "111" || tMacroList[i].mIDX == "112")
|
||||
&& (tMacroList[i].mTagArr == "256" || tMacroList[i].mTagArr == "500")
|
||||
&& tMacroList[i].mRuncode == "etc")
|
||||
{
|
||||
ViewMarc = AddMarcMacro(tMacroList[i].mIDX, ViewMarc);//etc 추가처리 110,111,112
|
||||
}
|
||||
else
|
||||
{
|
||||
tSplitMarc = new List<string>(ViewMarc.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries));
|
||||
for (int j = 0; j < tSplitMarc.Count; j++)
|
||||
{
|
||||
if (tSplitMarc[j].Length < 2) continue;
|
||||
tContentTag = tSplitMarc[j].Substring(0, 3);
|
||||
tMacroData = Macro_Index(tMacroList[i].mIDX, tMacroList[i].mTagArr, tMacroList[i].mRuncode, tContentTag, tSplitMarc[j]);//etc 처리 부분 및 지시 코드 변경
|
||||
tSplitMarc[j] = tMacroData;
|
||||
}
|
||||
tSplitMarc.RemoveAll(x => x == "");
|
||||
ViewMarc = String.Join("\n", tSplitMarc);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ViewMarc = ChangeTagByIndex(tMacroList[i].mIDX, tMacroList[i].mTagArr, tMacroList[i].mRuncode, ViewMarc);
|
||||
}
|
||||
}
|
||||
// 반출용 마크로 변환
|
||||
return st.made_Ori_marc(ViewMarc);
|
||||
}
|
||||
private string RunningMacro(string ViewMarc, string[] idx, string[] TagArray, string[] RunCode)
|
||||
{
|
||||
|
||||
List<string> SplitMarc = new List<string>(ViewMarc.Split('\n'));
|
||||
|
||||
|
||||
for (int a = 0; a < SplitMarc.Count; a++)
|
||||
{
|
||||
if (SplitMarc[a].Length < 2) continue;
|
||||
string ContentTag = SplitMarc[a].Substring(0, 3);
|
||||
|
||||
string MacroData = Macro_Index(idx, TagArray, RunCode, ContentTag, SplitMarc[a]);
|
||||
string MacroData = Macro_Index(idx, TagArray, RunCode, ContentTag, SplitMarc[a]);//etc 처리 부분 및 지시 코드 변경
|
||||
SplitMarc[a] = MacroData;
|
||||
}
|
||||
|
||||
@@ -60,12 +115,31 @@ namespace UniMarc.마크
|
||||
for (int a = 0; a < idx.Length; a++)
|
||||
{
|
||||
ViewMarc = ChangeTagByIndex(idx[a], TagArray[a], RunCode[a], ViewMarc);
|
||||
ViewMarc = AddMarcMacro(idx[a], ViewMarc);//etc 추가처리 110,111,112
|
||||
}
|
||||
|
||||
// 반출용 마크로 변환
|
||||
return st.made_Ori_marc(ViewMarc);
|
||||
}
|
||||
|
||||
private string AddMarcMacro(string idx, string ViewMarc)
|
||||
{
|
||||
// 500a "이 도서는 창비 '더책' 오디오 기능이 포함되어 있음" 추가
|
||||
if (idx == "110")
|
||||
ViewMarc = st.AddTagInMarc("500\t \t▼a이 도서는 창비 '더책' 오디오 기능이 포함되어 있음.▲", ViewMarc);
|
||||
|
||||
// 256a "e-Book" 추가
|
||||
if (idx == "111")
|
||||
ViewMarc = st.AddTagInMarc("256\t \t▼ae-Book", ViewMarc);
|
||||
|
||||
// 500a "URL 링크 클릭한 후 전자도서 홈페이지에서 로그인하여 이용하시기 바랍니다" 추가
|
||||
if (idx == "112")
|
||||
ViewMarc = st.AddTagInMarc("500\t \t▼aURL 링크 클릭한 후 전자도서 홈페이지에서 로그인하여 이용하시기 바랍니다.▲", ViewMarc);
|
||||
|
||||
return ViewMarc;
|
||||
}
|
||||
|
||||
|
||||
private string ChangeTagByIndex(string idx, string TagNum, string RunCode, string ViewMarc)
|
||||
{
|
||||
#region 방식이 달라 특별관리
|
||||
@@ -147,6 +221,10 @@ namespace UniMarc.마크
|
||||
|
||||
if (TakeTag[0] != "")
|
||||
Tag += "▼a" + TakeTag[0];
|
||||
if (TakeTag[1] == "" && TakeTag[2] == "" && TakeTag[3] == "") {
|
||||
Tag += "▲";
|
||||
return st.AddTagInMarc(Tag, ViewMarc);
|
||||
}
|
||||
Tag += "▼v";
|
||||
if (TakeTag[2] != "")
|
||||
Content += TakeTag[2] + "-";
|
||||
@@ -199,18 +277,22 @@ namespace UniMarc.마크
|
||||
if (ContentTag == "020" && Jisi == "1 " && idx == "75") {
|
||||
Target = "";
|
||||
}
|
||||
|
||||
switch (ContentTag)
|
||||
{
|
||||
case "020": Target = Index_020(idx, Target.Split('▼')); break;
|
||||
case "100": Target = Index_100(idx, Target.Split('▼')); isAuthorTag = true; break;
|
||||
case "110": Target = Index_110(idx, Target.Split('▼')); isAuthorTag = true; break;
|
||||
case "111": Target = Index_111(idx, Target.Split('▼')); break;
|
||||
case "245": Target = Index_245(idx, Target.Split('▼')); break;
|
||||
case "020": Target = Index_020(idx, Target.Split('▼')); break;//63,71,0
|
||||
case "049": Target = Index_049(idx, Target.Split('▼')); break;//79
|
||||
case "056": Target = Index_056(idx, Target.Split('▼')); break;//86,87,88
|
||||
case "100": Target = Index_100(idx, Target.Split('▼')); isAuthorTag = true; break;//67
|
||||
case "110": Target = Index_110(idx, Target.Split('▼')); isAuthorTag = true; break;//68,1
|
||||
case "111": Target = Index_111(idx, Target.Split('▼')); break;//작업없음
|
||||
case "245": Target = Index_245(idx, Target.Split('▼')); break;//
|
||||
case "246": Target = Index_246(idx, Target.Split('▼')); break;
|
||||
case "250": Target = Index_250(idx, Target.Split('▼')); break;
|
||||
case "256": Target = Index_256(idx, Target.Split('▼')); break;//작업없음
|
||||
case "260": Target = Index_260(idx, Target.Split('▼')); break;
|
||||
case "300": Target = Index_300(idx, Target.Split('▼')); break;
|
||||
case "440": Target = Index_440(idx, Target.Split('▼')); break;
|
||||
case "500": Target = Index_500(idx, Target.Split('▼')); break;
|
||||
case "700": Target = Index_700(idx, Target.Split('▼')); break;
|
||||
case "710": Target = Index_710(idx, Target.Split('▼')); break;
|
||||
case "830": Target = Index_830(idx, Target.Split('▼')); break;
|
||||
@@ -223,7 +305,56 @@ namespace UniMarc.마크
|
||||
|
||||
return string.Format("{0}\t{1}\t{2}", ContentTag, Jisi, Target);
|
||||
}
|
||||
private string Macro_Index(string pIdx, string TagArray, string RunCode, string ContentTag, string Content)
|
||||
{
|
||||
string[] SplitContent = Content.Split('\t');
|
||||
string Jisi = SplitContent[1];
|
||||
string Target = SplitContent[2];
|
||||
|
||||
int cout = 0;
|
||||
|
||||
Jisi = ChangeJisi(pIdx, RunCode, TagArray, ContentTag, Jisi, Target);
|
||||
|
||||
if (RunCode == "del")
|
||||
{
|
||||
if (TagArray == ContentTag)
|
||||
{
|
||||
Target = "";
|
||||
}
|
||||
}
|
||||
if (ContentTag == "020" && Jisi == "1 " && pIdx == "75")
|
||||
{
|
||||
Target = "";
|
||||
}
|
||||
//string[] tData = Target.Split(new string[] { "▼" }, StringSplitOptions.RemoveEmptyEntries);
|
||||
switch (ContentTag)
|
||||
{
|
||||
case "020": Target = Index_020(pIdx, Target.Split('▼')); break;//63,71,0
|
||||
case "049": Target = Index_049(pIdx, Target.Split('▼')); break;//79
|
||||
case "056": Target = Index_056(pIdx, Target.Split('▼')); break;//86,87,88
|
||||
case "100": Target = Index_100(pIdx, Target.Split('▼')); isAuthorTag = true; break;//67
|
||||
case "110": Target = Index_110(pIdx, Target.Split('▼')); isAuthorTag = true; break;//68,1
|
||||
case "111": Target = Index_111(pIdx, Target.Split('▼')); break;//작업없음
|
||||
case "245": Target = Index_245(pIdx, Target.Split('▼')); break;//
|
||||
case "246": Target = Index_246(pIdx, Target.Split('▼')); break;
|
||||
case "250": Target = Index_250(pIdx, Target.Split('▼')); break;
|
||||
case "256": Target = Index_256(pIdx, Target.Split('▼')); break;//작업없음
|
||||
case "260": Target = Index_260(pIdx, Target.Split('▼')); break;
|
||||
case "300": Target = Index_300(pIdx, Target.Split('▼')); break;
|
||||
case "440": Target = Index_440(pIdx, Target.Split('▼')); break;
|
||||
case "500": Target = Index_500(pIdx, Target.Split('▼')); break;
|
||||
case "700": Target = Index_700(pIdx, Target.Split('▼')); break;
|
||||
case "710": Target = Index_710(pIdx, Target.Split('▼')); break;
|
||||
case "830": Target = Index_830(pIdx, Target.Split('▼')); break;
|
||||
case "950": Target = Index_950(pIdx, Target.Split('▼')); break;
|
||||
}
|
||||
|
||||
|
||||
if (Target == "" || !Target.Contains("▲"))
|
||||
return "";
|
||||
|
||||
return string.Format("{0}\t{1}\t{2}", ContentTag, Jisi, Target);
|
||||
}
|
||||
|
||||
string ChangeJisi(string idx, string RunCode, string TargetTagNum, string RoofTagNum, string Jisi, string Content)
|
||||
{
|
||||
@@ -327,6 +458,58 @@ namespace UniMarc.마크
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 049 매크로
|
||||
/// </summary>
|
||||
/// <param name="Content">태그 내용</param>
|
||||
/// <returns>태그 매크로 적용된 내용</returns>
|
||||
private string Index_049(string idx, string[] SplitContent)
|
||||
{
|
||||
List<string> TMP = new List<string>(SplitContent);
|
||||
for (int a = 0; a < TMP.Count; a++)
|
||||
{
|
||||
if (a <= 1) continue;
|
||||
|
||||
// 049f 삭제
|
||||
if (TMP[a].StartsWith("f") && idx == "79")
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
TMP[a - 1] += "▲";
|
||||
|
||||
TMP.RemoveAt(a);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
SplitContent = TMP.ToArray();
|
||||
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 056 매크로
|
||||
/// </summary>
|
||||
/// <param name="Content">태그 내용</param>
|
||||
/// <returns>태그 매크로 적용된 내용</returns>
|
||||
private string Index_056(string idx, string[] SplitContent)
|
||||
{
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
{
|
||||
// 056 2 4적용
|
||||
if (SplitContent[a].StartsWith("2") && idx == "86")
|
||||
SplitContent[a] = "24▲";
|
||||
// 056 2 5적용
|
||||
if (SplitContent[a].StartsWith("2") && idx == "87")
|
||||
SplitContent[a] = "25▲";
|
||||
// 056 2 6적용
|
||||
if (SplitContent[a].StartsWith("2") && idx == "88")
|
||||
SplitContent[a] = "26▲";
|
||||
|
||||
if (a <= 1) continue;
|
||||
|
||||
}
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 100 매크로
|
||||
/// </summary>
|
||||
@@ -377,7 +560,7 @@ namespace UniMarc.마크
|
||||
/// <param name="Content">태그 내용</param>
|
||||
/// <returns>태그 매크로 적용된 내용</returns>
|
||||
private string Index_111(string idx, string[] SplitContent)
|
||||
{
|
||||
{//없음
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
{
|
||||
if (a <= 1) continue;
|
||||
@@ -392,62 +575,182 @@ namespace UniMarc.마크
|
||||
/// <returns>245태그 매크로 적용된 내용</returns>
|
||||
private string Index_245(string idx, string[] SplitContent)
|
||||
{
|
||||
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
List<string> TMP = new List<string>(SplitContent);
|
||||
for (int a = 0; a < TMP.Count; a++)
|
||||
{
|
||||
if (a <= 1) continue;
|
||||
|
||||
#region 구두점 적용
|
||||
|
||||
// 두번째 $a 앞에 ":"
|
||||
if (SplitContent[a - 1].StartsWith("a") && idx == "2")
|
||||
if (SplitContent[a].StartsWith("a"))
|
||||
if (!SplitContent[a - 1].EndsWith(":"))
|
||||
SplitContent[a - 1] += ":";
|
||||
if (TMP[a - 1].StartsWith("a") && idx == "2")
|
||||
if (TMP[a].StartsWith("a"))
|
||||
if (!TMP[a - 1].EndsWith(":"))
|
||||
TMP[a - 1] += ":";
|
||||
|
||||
// $b 앞에 ":"적용
|
||||
if (SplitContent[a].StartsWith("b") && idx == "3")
|
||||
if (!SplitContent[a - 1].EndsWith(":"))
|
||||
SplitContent[a - 1] += ":";
|
||||
if (TMP[a].StartsWith("b") && idx == "3")
|
||||
if (!TMP[a - 1].EndsWith(":"))
|
||||
TMP[a - 1] += ":";
|
||||
|
||||
// $n 앞에 "," 적용
|
||||
if (SplitContent[a].StartsWith("n") && idx == "4")
|
||||
if (!SplitContent[a - 1].EndsWith(","))
|
||||
SplitContent[a - 1] += ",";
|
||||
// $n 앞에 "." 적용
|
||||
if (TMP[a].StartsWith("n") && idx == "4")
|
||||
if (!TMP[a - 1].EndsWith("."))
|
||||
TMP[a - 1] += ".";
|
||||
|
||||
// $d 앞에 "/" 적용
|
||||
if (SplitContent[a].StartsWith("d") && idx == "6")
|
||||
if (!SplitContent[a - 1].EndsWith("/"))
|
||||
SplitContent[a - 1] += "/";
|
||||
if (TMP[a].StartsWith("d") && idx == "6")
|
||||
if (!TMP[a - 1].EndsWith("/"))
|
||||
TMP[a - 1] += "/";
|
||||
|
||||
// $d앞에 ,, 를 ,로 변경
|
||||
if (SplitContent[a].StartsWith("d") && idx == "7")
|
||||
SplitContent[a] = SplitContent[a].Replace(",,", ",");
|
||||
if (TMP[a].StartsWith("d") && idx == "7")
|
||||
TMP[a] = TMP[a].Replace(",,", ",");
|
||||
|
||||
|
||||
// $p 앞에 $n이 나온 경우 "," 적용, $p앞에 $n이 없는 경우 "." 적용
|
||||
if (SplitContent[a].StartsWith("p") && idx == "8")
|
||||
if (TMP[a].StartsWith("p") && idx == "8")
|
||||
{
|
||||
if (SplitContent[a - 1].StartsWith("n"))
|
||||
if (TMP[a - 1].StartsWith("n"))
|
||||
{
|
||||
if (!SplitContent[a - 1].EndsWith(","))
|
||||
SplitContent[a - 1] += ",";
|
||||
if (!TMP[a - 1].EndsWith(","))
|
||||
TMP[a - 1] += ",";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!SplitContent[a - 1].EndsWith("."))
|
||||
SplitContent[a - 1] += ".";
|
||||
if (!TMP[a - 1].EndsWith("."))
|
||||
TMP[a - 1] += ".";
|
||||
}
|
||||
}
|
||||
|
||||
// $x 앞에 "=" 적용
|
||||
if (SplitContent[a].StartsWith("x") && idx == "5")
|
||||
if (!SplitContent[a - 1].EndsWith("="))
|
||||
SplitContent[a - 1] += "=";
|
||||
if (TMP[a].StartsWith("x") && idx == "5")
|
||||
if (!TMP[a - 1].EndsWith("="))
|
||||
TMP[a - 1] += "=";
|
||||
|
||||
// $e 앞에 "," 적용
|
||||
if (SplitContent[a].StartsWith("e") && idx == "9")
|
||||
if (!SplitContent[a - 1].EndsWith(","))
|
||||
SplitContent[a - 1] += ",";
|
||||
if (TMP[a].StartsWith("e") && idx == "9")
|
||||
if (!TMP[a - 1].EndsWith(","))
|
||||
TMP[a - 1] += ",";
|
||||
|
||||
#endregion
|
||||
|
||||
#region 문구적용
|
||||
|
||||
// 245h [큰글자] 문구적용
|
||||
if (TMP[a].StartsWith("h") && idx == "89")
|
||||
TMP[a] = "h[큰글자]" + TMP[a].Substring(1);
|
||||
|
||||
// 245h [DVD] 문구적용
|
||||
if (TMP[a].StartsWith("h") && idx == "90")
|
||||
TMP[a] = "h[DVD]" + TMP[a].Substring(1);
|
||||
|
||||
// 245h [대활자본] 문구적용
|
||||
if (TMP[a].StartsWith("h") && idx == "91")
|
||||
TMP[a] = "h[대활자본]" + TMP[a].Substring(1);
|
||||
|
||||
// 245h [음악자료] 문구적용
|
||||
if (TMP[a].StartsWith("h") && idx == "92")
|
||||
TMP[a] = "h[음악자료]" + TMP[a].Substring(1);
|
||||
|
||||
// 245d [공] 뒤에 빈칸 1칸 적용
|
||||
if (TMP[a].StartsWith("d") && idx == "93")
|
||||
TMP[a] = TMP[a].Replace("[공] ", "[공]").Replace("[공]", "[공] ");
|
||||
|
||||
// 245e [공] 뒤에 빈칸 1칸 적용
|
||||
if (TMP[a].StartsWith("e") && idx == "94")
|
||||
TMP[a] = TMP[a].Replace("[공] ", "[공]").Replace("[공]", "[공] ");
|
||||
|
||||
// 245d 각괄호[] 삭제
|
||||
if (TMP[a].StartsWith("d") && idx == "95")
|
||||
TMP[a] = TMP[a].Replace("[", "").Replace("]", "");
|
||||
|
||||
// 245e 각괄호[] 삭제
|
||||
if (TMP[a].StartsWith("e") && idx == "96")
|
||||
TMP[a] = TMP[a].Replace("[", "").Replace("]", "");
|
||||
|
||||
// 245 d 맨 뒤값이 "글" 일때 "지음"으로 수정
|
||||
if (TMP[a].StartsWith("d") && idx == "97")
|
||||
{
|
||||
bool end = false;
|
||||
if (TMP[a].EndsWith("글"))
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
end = true;
|
||||
TMP[a] = TMP[a].Substring(0, TMP[a].IndexOf("글")) + "지음";
|
||||
if (end)
|
||||
TMP[a] += "▲";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 식별기호 삭제
|
||||
|
||||
// 245e 삭제
|
||||
if (TMP[a].StartsWith("e") && idx == "80")
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
TMP[a - 1] += "▲";
|
||||
|
||||
TMP.RemoveAt(a);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 245b 삭제
|
||||
if (TMP[a].StartsWith("b") && idx == "81")
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
TMP[a - 1] += "▲";
|
||||
|
||||
TMP.RemoveAt(a);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 245x 삭제
|
||||
if (TMP[a].StartsWith("x") && idx == "82")
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
TMP[a - 1] += "▲";
|
||||
|
||||
TMP.RemoveAt(a);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 245n 삭제
|
||||
if (TMP[a].StartsWith("n") && idx == "83")
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
TMP[a - 1] += "▲";
|
||||
|
||||
TMP.RemoveAt(a);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 245p 삭제
|
||||
if (TMP[a].StartsWith("p") && idx == "84")
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
TMP[a - 1] += "▲";
|
||||
|
||||
TMP.RemoveAt(a);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 245h 삭제
|
||||
if (TMP[a].StartsWith("h") && idx == "85")
|
||||
{
|
||||
if (TMP[a].Contains("▲"))
|
||||
TMP[a - 1] += "▲";
|
||||
|
||||
TMP.RemoveAt(a);
|
||||
continue;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
SplitContent = TMP.ToArray();
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
@@ -506,6 +809,34 @@ namespace UniMarc.마크
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
private string Index_250(string idx, string[] SplitContent)
|
||||
{
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
{
|
||||
if (a <= 1) continue;
|
||||
|
||||
// 250a 앞에 "큰글자책"삽입
|
||||
if (SplitContent[a].StartsWith("a") && idx == "98")
|
||||
SplitContent[a] = "a큰글자책" + SplitContent[a].Substring(1);
|
||||
}
|
||||
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
private string Index_256(string idx, string[] SplitContent)
|
||||
{
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
{
|
||||
//if (idx == "111")
|
||||
//{
|
||||
// SplitContent[a] = SplitContent[a].Insert(1, "e-Book");
|
||||
//}
|
||||
if (a <= -1) continue;
|
||||
|
||||
}
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
private string Index_260(string idx, string[] SplitContent)
|
||||
{
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
@@ -537,10 +868,63 @@ namespace UniMarc.마크
|
||||
{
|
||||
if (a <= 1) continue;
|
||||
|
||||
// $b 앞에는 ":" 적용
|
||||
if (SplitContent[a].StartsWith("b") && idx == "18")
|
||||
if (!SplitContent[a - 1].EndsWith(":"))
|
||||
SplitContent[a - 1] += ":";
|
||||
if (SplitContent[a].StartsWith("a"))
|
||||
{
|
||||
// 300 a 숫자 p. 숫자 사이 한칸 띄우기
|
||||
if (idx == "99")
|
||||
SplitContent[a] = SplitContent[a].Replace(" p.", "p.").Replace("p.", " p.");
|
||||
// 300 a 숫자 p. 숫자 사이 빈칸 지우기
|
||||
if (idx == "100")
|
||||
SplitContent[a] = SplitContent[a].Replace(" p.", "p.");
|
||||
// 300 a "p." 삭제
|
||||
if (idx == "101")
|
||||
SplitContent[a] = SplitContent[a].Replace("p.", "");
|
||||
// 300 a 맨 앞이 [ 로 시작 될 경우 300a를 [1책] 으로 수정
|
||||
if (idx == "105") {
|
||||
string tmp = SplitContent[a].Substring(1);
|
||||
if (tmp.StartsWith("["))
|
||||
SplitContent[a] = "a[1책]";
|
||||
}
|
||||
// 300a "비디오디스크" -> "DVD" 문구수정
|
||||
if (idx == "106")
|
||||
SplitContent[a] = SplitContent[a].Replace("비디오디스크", "DVD");
|
||||
// 300 a "매" -> "장" 문구수정
|
||||
if (idx == "107")
|
||||
SplitContent[a] = SplitContent[a].Replace("매", "장");
|
||||
}
|
||||
|
||||
if (SplitContent[a].StartsWith("c"))
|
||||
{
|
||||
// 300 c 숫자 cm 단위와 숫자 사이 한칸 띄우기
|
||||
if (idx == "102")
|
||||
SplitContent[a] = SplitContent[a].Replace(" cm", "cm").Replace("cm", " cm");
|
||||
// 300 c 숫자 cm 단위와 숫자 사이 빈칸 지우기
|
||||
if (idx == "103")
|
||||
SplitContent[a] = SplitContent[a].Replace(" cm", "cm");
|
||||
// 300 c "cm"삭제
|
||||
if (idx == "104")
|
||||
SplitContent[a] = SplitContent[a].Replace("cm", "");
|
||||
}
|
||||
|
||||
if (SplitContent[a].StartsWith("b"))
|
||||
{
|
||||
|
||||
// $b 앞에는 ":" 적용
|
||||
if (idx == "18")
|
||||
if (!SplitContent[a - 1].EndsWith(":"))
|
||||
SplitContent[a - 1] += ":";
|
||||
|
||||
// 300 b "천연색삽화"-> "채색삽화" 문구수정
|
||||
if (idx == "108")
|
||||
SplitContent[a] = SplitContent[a].Replace("천연색삽화", "채색삽화");
|
||||
|
||||
// 300b "천연색, 유성" 으로 덮어 씌움
|
||||
if (idx == "109") {
|
||||
SplitContent[a] = "b천연색, 유성";
|
||||
if (SplitContent[a].Contains("▲"))
|
||||
SplitContent[a] += "▲";
|
||||
}
|
||||
}
|
||||
|
||||
if (SplitContent[a].StartsWith("c"))
|
||||
{
|
||||
@@ -558,9 +942,13 @@ namespace UniMarc.마크
|
||||
}
|
||||
|
||||
// $e 앞에는 "+" 적용
|
||||
if (SplitContent[a].StartsWith("e") && idx == "20")
|
||||
if (!SplitContent[a - 1].EndsWith("+"))
|
||||
SplitContent[a - 1] += "+";
|
||||
if (SplitContent[a].StartsWith("e") )
|
||||
{
|
||||
if (idx == "20") {
|
||||
if (!SplitContent[a - 1].EndsWith("+"))
|
||||
SplitContent[a - 1] += "+";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return string.Join("▼", SplitContent);
|
||||
@@ -605,6 +993,28 @@ namespace UniMarc.마크
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
private string Index_500(string idx, string[] SplitContent)
|
||||
{
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
{
|
||||
// "이 도서는 창비 '더책' 오디오 기능이 포함되어 있음" 추가
|
||||
//if (idx == "110")
|
||||
//{
|
||||
// SplitContent[a] = SplitContent[a].Insert(1, "이 도서는 창비 '더책' 오디오 기능이 포함되어 있음");
|
||||
//}
|
||||
//if (idx == "112")
|
||||
//{
|
||||
// SplitContent[a] = SplitContent[a].Insert(1, "URL 링크 클릭한 후 전자도서 홈페이지에서 로그인하여 이용하시기 바랍니다");
|
||||
//}
|
||||
//// 500a "URL 링크 클릭한 후 전자도서 홈페이지에서 로그인하여 이용하시기 바랍니다" 추가
|
||||
//if (idx == "112")
|
||||
// ViewMarc = st.AddTagInMarc("500\t \t▼aURL 링크 클릭한 후 전자도서 홈페이지에서 로그인하여 이용하시기 바랍니다", ViewMarc);
|
||||
if (a <= 1) continue;
|
||||
}
|
||||
|
||||
return string.Join("▼", SplitContent);
|
||||
}
|
||||
|
||||
private string Index_700(string idx, string[] SplitContent)
|
||||
{
|
||||
for (int a = 0; a < SplitContent.Length; a++)
|
||||
@@ -673,11 +1083,10 @@ namespace UniMarc.마크
|
||||
{
|
||||
if (SplitContent[a].StartsWith("b"))
|
||||
{
|
||||
|
||||
if (idx == "63") // $b 원표시 제거
|
||||
SplitContent[a] = SplitContent[a].Replace("\\", "");
|
||||
SplitContent[a] = SplitContent[a].Replace("₩", "");
|
||||
if (idx == "71") // $b 원표시 추가
|
||||
SplitContent[a] = SplitContent[a].Insert(1, "\\");
|
||||
SplitContent[a] = SplitContent[a].Insert(1, "₩");
|
||||
}
|
||||
|
||||
if (a <= 1) continue;
|
||||
@@ -769,7 +1178,9 @@ namespace UniMarc.마크
|
||||
}
|
||||
}
|
||||
string Item = string.Format("{0}\t{1}\t▼{2}{3}▲", TagNum, Jisi, TagAccount, TagContent);
|
||||
Marc.Insert(AddIndex, Item);
|
||||
//230210 번호가 마지막 번호일 경우 인덱스를 넘어가는 경우발생.. 인덱스를 넘어갈때는 마지막 열에 추가로 변경
|
||||
if (AddIndex == -1) Marc.Add(Item);
|
||||
else Marc.Insert(AddIndex, Item);
|
||||
|
||||
return Marc;
|
||||
}
|
||||
|
||||
769
unimarc/unimarc/마크/Marc_Plan.Designer.cs
generated
769
unimarc/unimarc/마크/Marc_Plan.Designer.cs
generated
@@ -28,15 +28,18 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Marc_Plan));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.btn_ClassSymbol = new System.Windows.Forms.Button();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.btn_GearExcel = new System.Windows.Forms.Button();
|
||||
this.btn_ApplyMacro = new System.Windows.Forms.Button();
|
||||
@@ -44,8 +47,11 @@
|
||||
this.btn_Excel = new System.Windows.Forms.Button();
|
||||
this.cb_EncodingType = new System.Windows.Forms.ComboBox();
|
||||
this.btn_Output = new System.Windows.Forms.Button();
|
||||
this.btn_InputColorFix = new System.Windows.Forms.Button();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.btn_InputAutoCopy = new System.Windows.Forms.Button();
|
||||
this.btn_Select_List = new System.Windows.Forms.Button();
|
||||
this.chkBox_AllowDrop = new System.Windows.Forms.CheckBox();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.cb_authorType = new System.Windows.Forms.ComboBox();
|
||||
this.cb_divType = new System.Windows.Forms.ComboBox();
|
||||
@@ -59,38 +65,17 @@
|
||||
this.tb_ISBN = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.reg_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.class_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.author_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.volume = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.copy = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.prefix = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.gu = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_name1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_num1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_num2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.midx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.search_tag = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.WorkCopy = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.WorkFix = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.btn_ChangeColor = new System.Windows.Forms.Button();
|
||||
this.tb_SearchChangeColor = new System.Windows.Forms.TextBox();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.btn_ClassSymbol = new System.Windows.Forms.Button();
|
||||
this.btn_InputColorFix = new System.Windows.Forms.Button();
|
||||
this.btn_InputAutoCopy = new System.Windows.Forms.Button();
|
||||
this.chkBox_AllowDrop = new System.Windows.Forms.CheckBox();
|
||||
this.cbTag008_32 = new System.Windows.Forms.ComboBox();
|
||||
this.btnTag008 = new System.Windows.Forms.Button();
|
||||
this.btnTag040 = new System.Windows.Forms.Button();
|
||||
this.tbTag040 = new System.Windows.Forms.TextBox();
|
||||
this.label26 = new System.Windows.Forms.Label();
|
||||
this.label25 = new System.Windows.Forms.Label();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.chk_Alignment = new System.Windows.Forms.CheckBox();
|
||||
this.tb_Left = new System.Windows.Forms.TextBox();
|
||||
@@ -132,22 +117,44 @@
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.tb_Garo = new System.Windows.Forms.TextBox();
|
||||
this.panel7 = new System.Windows.Forms.Panel();
|
||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
|
||||
this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
|
||||
this.tb_SearchChangeColor = new System.Windows.Forms.TextBox();
|
||||
this.btn_ChangeColor = new System.Windows.Forms.Button();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.reg_num = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.class_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.author_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.volume = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.copy = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.prefix = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.gu = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ISBN = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.book_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_name1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_num1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_name2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.s_book_num2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.author = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.book_comp = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.midx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.search_tag2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.panel7.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Controls.Add(this.btn_ClassSymbol);
|
||||
this.panel1.Controls.Add(this.panel4);
|
||||
this.panel1.Controls.Add(this.btn_InputColorFix);
|
||||
@@ -158,9 +165,29 @@
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1661, 35);
|
||||
this.panel1.Size = new System.Drawing.Size(1730, 35);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(1382, 6);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(86, 23);
|
||||
this.button1.TabIndex = 14;
|
||||
this.button1.Text = "차트 초기화";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.btnInit_Click);
|
||||
//
|
||||
// btn_ClassSymbol
|
||||
//
|
||||
this.btn_ClassSymbol.Location = new System.Drawing.Point(1289, 6);
|
||||
this.btn_ClassSymbol.Name = "btn_ClassSymbol";
|
||||
this.btn_ClassSymbol.Size = new System.Drawing.Size(89, 23);
|
||||
this.btn_ClassSymbol.TabIndex = 13;
|
||||
this.btn_ClassSymbol.Text = "등록번호 확인";
|
||||
this.btn_ClassSymbol.UseVisualStyleBackColor = true;
|
||||
this.btn_ClassSymbol.Click += new System.EventHandler(this.btn_ClassSymbol_Click);
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
@@ -234,9 +261,19 @@
|
||||
this.btn_Output.UseVisualStyleBackColor = true;
|
||||
this.btn_Output.Click += new System.EventHandler(this.btn_Output_Click);
|
||||
//
|
||||
// btn_InputColorFix
|
||||
//
|
||||
this.btn_InputColorFix.Location = new System.Drawing.Point(1194, 6);
|
||||
this.btn_InputColorFix.Name = "btn_InputColorFix";
|
||||
this.btn_InputColorFix.Size = new System.Drawing.Size(89, 23);
|
||||
this.btn_InputColorFix.TabIndex = 12;
|
||||
this.btn_InputColorFix.Text = "별치 색부여";
|
||||
this.btn_InputColorFix.UseVisualStyleBackColor = true;
|
||||
this.btn_InputColorFix.Click += new System.EventHandler(this.btn_InputColorFix_Click);
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(1384, 6);
|
||||
this.btn_Close.Location = new System.Drawing.Point(1472, 6);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(86, 23);
|
||||
this.btn_Close.TabIndex = 5;
|
||||
@@ -244,6 +281,16 @@
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
|
||||
//
|
||||
// btn_InputAutoCopy
|
||||
//
|
||||
this.btn_InputAutoCopy.Location = new System.Drawing.Point(1099, 6);
|
||||
this.btn_InputAutoCopy.Name = "btn_InputAutoCopy";
|
||||
this.btn_InputAutoCopy.Size = new System.Drawing.Size(89, 23);
|
||||
this.btn_InputAutoCopy.TabIndex = 11;
|
||||
this.btn_InputAutoCopy.Text = "복본 자동부여";
|
||||
this.btn_InputAutoCopy.UseVisualStyleBackColor = true;
|
||||
this.btn_InputAutoCopy.Click += new System.EventHandler(this.btn_InputAutoCopy_Click);
|
||||
//
|
||||
// btn_Select_List
|
||||
//
|
||||
this.btn_Select_List.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
@@ -255,6 +302,17 @@
|
||||
this.btn_Select_List.UseVisualStyleBackColor = true;
|
||||
this.btn_Select_List.Click += new System.EventHandler(this.btn_Select_List_Click);
|
||||
//
|
||||
// chkBox_AllowDrop
|
||||
//
|
||||
this.chkBox_AllowDrop.AutoSize = true;
|
||||
this.chkBox_AllowDrop.Location = new System.Drawing.Point(947, 10);
|
||||
this.chkBox_AllowDrop.Name = "chkBox_AllowDrop";
|
||||
this.chkBox_AllowDrop.Size = new System.Drawing.Size(147, 16);
|
||||
this.chkBox_AllowDrop.TabIndex = 10;
|
||||
this.chkBox_AllowDrop.Text = "표 드래그 앤 드롭 OFF";
|
||||
this.chkBox_AllowDrop.UseVisualStyleBackColor = true;
|
||||
this.chkBox_AllowDrop.CheckedChanged += new System.EventHandler(this.chkBox_AllowDrop_CheckedChanged);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
@@ -383,245 +441,6 @@
|
||||
this.label1.TabIndex = 3;
|
||||
this.label1.Text = "ISBN";
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
|
||||
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||
dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
dataGridViewCellStyle29.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle29;
|
||||
this.dataGridView1.ColumnHeadersHeight = 25;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
this.num,
|
||||
this.reg_num,
|
||||
this.class_code,
|
||||
this.author_code,
|
||||
this.volume,
|
||||
this.copy,
|
||||
this.prefix,
|
||||
this.gu,
|
||||
this.ISBN,
|
||||
this.book_name,
|
||||
this.s_book_name1,
|
||||
this.s_book_num1,
|
||||
this.s_book_name2,
|
||||
this.s_book_num2,
|
||||
this.author,
|
||||
this.book_comp,
|
||||
this.price,
|
||||
this.midx,
|
||||
this.marc,
|
||||
this.search_tag,
|
||||
this.colCheck,
|
||||
this.WorkCopy,
|
||||
this.WorkFix});
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.GridColor = System.Drawing.SystemColors.ActiveCaptionText;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1661, 549);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
|
||||
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
this.dataGridView1.SortCompare += new System.Windows.Forms.DataGridViewSortCompareEventHandler(this.dataGridView1_SortCompare);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
//
|
||||
// idx
|
||||
//
|
||||
this.idx.HeaderText = "idx";
|
||||
this.idx.Name = "idx";
|
||||
this.idx.ReadOnly = true;
|
||||
this.idx.Visible = false;
|
||||
//
|
||||
// num
|
||||
//
|
||||
this.num.FillWeight = 64.46414F;
|
||||
this.num.HeaderText = "연번";
|
||||
this.num.Name = "num";
|
||||
this.num.ReadOnly = true;
|
||||
this.num.Width = 50;
|
||||
//
|
||||
// reg_num
|
||||
//
|
||||
dataGridViewCellStyle30.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.reg_num.DefaultCellStyle = dataGridViewCellStyle30;
|
||||
this.reg_num.FillWeight = 130.9363F;
|
||||
this.reg_num.HeaderText = "등록번호";
|
||||
this.reg_num.Name = "reg_num";
|
||||
this.reg_num.Width = 102;
|
||||
//
|
||||
// class_code
|
||||
//
|
||||
dataGridViewCellStyle31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.class_code.DefaultCellStyle = dataGridViewCellStyle31;
|
||||
this.class_code.FillWeight = 76.41504F;
|
||||
this.class_code.HeaderText = "분류";
|
||||
this.class_code.Name = "class_code";
|
||||
this.class_code.Width = 59;
|
||||
//
|
||||
// author_code
|
||||
//
|
||||
dataGridViewCellStyle32.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.author_code.DefaultCellStyle = dataGridViewCellStyle32;
|
||||
this.author_code.FillWeight = 77.02635F;
|
||||
this.author_code.HeaderText = "저자기호";
|
||||
this.author_code.Name = "author_code";
|
||||
this.author_code.Width = 60;
|
||||
//
|
||||
// volume
|
||||
//
|
||||
dataGridViewCellStyle33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.volume.DefaultCellStyle = dataGridViewCellStyle33;
|
||||
this.volume.FillWeight = 38.80909F;
|
||||
this.volume.HeaderText = "V";
|
||||
this.volume.Name = "volume";
|
||||
this.volume.ToolTipText = "049v";
|
||||
this.volume.Width = 30;
|
||||
//
|
||||
// copy
|
||||
//
|
||||
dataGridViewCellStyle34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.copy.DefaultCellStyle = dataGridViewCellStyle34;
|
||||
this.copy.FillWeight = 40.14827F;
|
||||
this.copy.HeaderText = "C";
|
||||
this.copy.Name = "copy";
|
||||
this.copy.ToolTipText = "049c";
|
||||
this.copy.Width = 31;
|
||||
//
|
||||
// prefix
|
||||
//
|
||||
dataGridViewCellStyle35.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.prefix.DefaultCellStyle = dataGridViewCellStyle35;
|
||||
this.prefix.FillWeight = 41.51828F;
|
||||
this.prefix.HeaderText = "F";
|
||||
this.prefix.Name = "prefix";
|
||||
this.prefix.ToolTipText = "049f";
|
||||
this.prefix.Width = 32;
|
||||
//
|
||||
// gu
|
||||
//
|
||||
this.gu.FillWeight = 71.64279F;
|
||||
this.gu.HeaderText = "구분";
|
||||
this.gu.Name = "gu";
|
||||
this.gu.ReadOnly = true;
|
||||
this.gu.Width = 56;
|
||||
//
|
||||
// ISBN
|
||||
//
|
||||
this.ISBN.HeaderText = "ISBN";
|
||||
this.ISBN.Name = "ISBN";
|
||||
this.ISBN.Visible = false;
|
||||
//
|
||||
// book_name
|
||||
//
|
||||
this.book_name.FillWeight = 291.9296F;
|
||||
this.book_name.HeaderText = "도서명";
|
||||
this.book_name.Name = "book_name";
|
||||
this.book_name.ReadOnly = true;
|
||||
this.book_name.Width = 226;
|
||||
//
|
||||
// s_book_name1
|
||||
//
|
||||
this.s_book_name1.FillWeight = 129.9903F;
|
||||
this.s_book_name1.HeaderText = "총서명";
|
||||
this.s_book_name1.Name = "s_book_name1";
|
||||
this.s_book_name1.ReadOnly = true;
|
||||
this.s_book_name1.Width = 101;
|
||||
//
|
||||
// s_book_num1
|
||||
//
|
||||
this.s_book_num1.FillWeight = 76.24091F;
|
||||
this.s_book_num1.HeaderText = "총서번호";
|
||||
this.s_book_num1.Name = "s_book_num1";
|
||||
this.s_book_num1.ReadOnly = true;
|
||||
this.s_book_num1.Width = 59;
|
||||
//
|
||||
// s_book_name2
|
||||
//
|
||||
this.s_book_name2.HeaderText = "총서명";
|
||||
this.s_book_name2.Name = "s_book_name2";
|
||||
//
|
||||
// s_book_num2
|
||||
//
|
||||
this.s_book_num2.HeaderText = "총서번호";
|
||||
this.s_book_num2.Name = "s_book_num2";
|
||||
this.s_book_num2.Width = 59;
|
||||
//
|
||||
// author
|
||||
//
|
||||
this.author.FillWeight = 128.5217F;
|
||||
this.author.HeaderText = "저자";
|
||||
this.author.Name = "author";
|
||||
this.author.ReadOnly = true;
|
||||
//
|
||||
// book_comp
|
||||
//
|
||||
this.book_comp.FillWeight = 125.7765F;
|
||||
this.book_comp.HeaderText = "출판사";
|
||||
this.book_comp.Name = "book_comp";
|
||||
this.book_comp.ReadOnly = true;
|
||||
this.book_comp.Width = 97;
|
||||
//
|
||||
// price
|
||||
//
|
||||
this.price.FillWeight = 86.15041F;
|
||||
this.price.HeaderText = "정가";
|
||||
this.price.Name = "price";
|
||||
this.price.ReadOnly = true;
|
||||
this.price.Width = 67;
|
||||
//
|
||||
// midx
|
||||
//
|
||||
this.midx.HeaderText = "midx";
|
||||
this.midx.Name = "midx";
|
||||
this.midx.Visible = false;
|
||||
//
|
||||
// marc
|
||||
//
|
||||
this.marc.HeaderText = "마크";
|
||||
this.marc.Name = "marc";
|
||||
//
|
||||
// search_tag
|
||||
//
|
||||
this.search_tag.FillWeight = 185.6383F;
|
||||
this.search_tag.HeaderText = "검색태그";
|
||||
this.search_tag.Name = "search_tag";
|
||||
this.search_tag.Width = 144;
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.FalseValue = "F";
|
||||
this.colCheck.FillWeight = 34.79187F;
|
||||
this.colCheck.HeaderText = "□";
|
||||
this.colCheck.IndeterminateValue = "F";
|
||||
this.colCheck.Name = "colCheck";
|
||||
this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colCheck.TrueValue = "T";
|
||||
this.colCheck.Width = 27;
|
||||
//
|
||||
// WorkCopy
|
||||
//
|
||||
this.WorkCopy.HeaderText = "복본 작업용 열";
|
||||
this.WorkCopy.Name = "WorkCopy";
|
||||
//
|
||||
// WorkFix
|
||||
//
|
||||
this.WorkFix.HeaderText = "별치 작업용 열";
|
||||
this.WorkFix.Name = "WorkFix";
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
@@ -648,59 +467,105 @@
|
||||
this.panel2.Controls.Add(this.tb_SearchTag);
|
||||
this.panel2.Location = new System.Drawing.Point(596, 3);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(761, 29);
|
||||
this.panel2.Size = new System.Drawing.Size(675, 29);
|
||||
this.panel2.TabIndex = 8;
|
||||
//
|
||||
// btn_ChangeColor
|
||||
//
|
||||
this.btn_ChangeColor.Location = new System.Drawing.Point(573, 2);
|
||||
this.btn_ChangeColor.Name = "btn_ChangeColor";
|
||||
this.btn_ChangeColor.Size = new System.Drawing.Size(93, 23);
|
||||
this.btn_ChangeColor.TabIndex = 7;
|
||||
this.btn_ChangeColor.Text = "검색값 색 변경";
|
||||
this.btn_ChangeColor.UseVisualStyleBackColor = true;
|
||||
this.btn_ChangeColor.Click += new System.EventHandler(this.btn_ChangeColor_Click);
|
||||
//
|
||||
// tb_SearchChangeColor
|
||||
//
|
||||
this.tb_SearchChangeColor.Location = new System.Drawing.Point(420, 3);
|
||||
this.tb_SearchChangeColor.Name = "tb_SearchChangeColor";
|
||||
this.tb_SearchChangeColor.Size = new System.Drawing.Size(147, 21);
|
||||
this.tb_SearchChangeColor.TabIndex = 6;
|
||||
this.tb_SearchChangeColor.Text = "여러 개 입력시 , 로 구분";
|
||||
this.tb_SearchChangeColor.Click += new System.EventHandler(this.tb_SearchChangeColor_Click);
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.Controls.Add(this.cbTag008_32);
|
||||
this.panel5.Controls.Add(this.btnTag008);
|
||||
this.panel5.Controls.Add(this.btnTag040);
|
||||
this.panel5.Controls.Add(this.tbTag040);
|
||||
this.panel5.Controls.Add(this.panel3);
|
||||
this.panel5.Controls.Add(this.label26);
|
||||
this.panel5.Controls.Add(this.label25);
|
||||
this.panel5.Controls.Add(this.panel2);
|
||||
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel5.Location = new System.Drawing.Point(0, 35);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(1661, 35);
|
||||
this.panel5.Size = new System.Drawing.Size(1730, 35);
|
||||
this.panel5.TabIndex = 9;
|
||||
//
|
||||
// btn_ClassSymbol
|
||||
// cbTag008_32
|
||||
//
|
||||
this.btn_ClassSymbol.Location = new System.Drawing.Point(1289, 6);
|
||||
this.btn_ClassSymbol.Name = "btn_ClassSymbol";
|
||||
this.btn_ClassSymbol.Size = new System.Drawing.Size(89, 23);
|
||||
this.btn_ClassSymbol.TabIndex = 13;
|
||||
this.btn_ClassSymbol.Text = "등록번호 확인";
|
||||
this.btn_ClassSymbol.UseVisualStyleBackColor = true;
|
||||
this.btn_ClassSymbol.Click += new System.EventHandler(this.btn_ClassSymbol_Click);
|
||||
this.cbTag008_32.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbTag008_32.FormattingEnabled = true;
|
||||
this.cbTag008_32.Items.AddRange(new object[] {
|
||||
" ",
|
||||
"a",
|
||||
"c",
|
||||
"d",
|
||||
"u",
|
||||
"l"});
|
||||
this.cbTag008_32.Location = new System.Drawing.Point(1557, 7);
|
||||
this.cbTag008_32.Name = "cbTag008_32";
|
||||
this.cbTag008_32.Size = new System.Drawing.Size(58, 20);
|
||||
this.cbTag008_32.TabIndex = 9;
|
||||
//
|
||||
// btn_InputColorFix
|
||||
// btnTag008
|
||||
//
|
||||
this.btn_InputColorFix.Location = new System.Drawing.Point(1194, 6);
|
||||
this.btn_InputColorFix.Name = "btn_InputColorFix";
|
||||
this.btn_InputColorFix.Size = new System.Drawing.Size(89, 23);
|
||||
this.btn_InputColorFix.TabIndex = 12;
|
||||
this.btn_InputColorFix.Text = "별치 색부여";
|
||||
this.btn_InputColorFix.UseVisualStyleBackColor = true;
|
||||
this.btn_InputColorFix.Click += new System.EventHandler(this.btn_InputColorFix_Click);
|
||||
this.btnTag008.Location = new System.Drawing.Point(1620, 6);
|
||||
this.btnTag008.Name = "btnTag008";
|
||||
this.btnTag008.Size = new System.Drawing.Size(50, 23);
|
||||
this.btnTag008.TabIndex = 7;
|
||||
this.btnTag008.Text = "수정";
|
||||
this.btnTag008.UseVisualStyleBackColor = true;
|
||||
this.btnTag008.Click += new System.EventHandler(this.btnTag008_Click);
|
||||
//
|
||||
// btn_InputAutoCopy
|
||||
// btnTag040
|
||||
//
|
||||
this.btn_InputAutoCopy.Location = new System.Drawing.Point(1099, 6);
|
||||
this.btn_InputAutoCopy.Name = "btn_InputAutoCopy";
|
||||
this.btn_InputAutoCopy.Size = new System.Drawing.Size(89, 23);
|
||||
this.btn_InputAutoCopy.TabIndex = 11;
|
||||
this.btn_InputAutoCopy.Text = "복본 자동부여";
|
||||
this.btn_InputAutoCopy.UseVisualStyleBackColor = true;
|
||||
this.btn_InputAutoCopy.Click += new System.EventHandler(this.btn_InputAutoCopy_Click);
|
||||
this.btnTag040.Location = new System.Drawing.Point(1418, 6);
|
||||
this.btnTag040.Name = "btnTag040";
|
||||
this.btnTag040.Size = new System.Drawing.Size(70, 23);
|
||||
this.btnTag040.TabIndex = 7;
|
||||
this.btnTag040.Text = "일괄 적용";
|
||||
this.btnTag040.UseVisualStyleBackColor = true;
|
||||
this.btnTag040.Click += new System.EventHandler(this.btnTag040_Click);
|
||||
//
|
||||
// chkBox_AllowDrop
|
||||
// tbTag040
|
||||
//
|
||||
this.chkBox_AllowDrop.AutoSize = true;
|
||||
this.chkBox_AllowDrop.Location = new System.Drawing.Point(947, 10);
|
||||
this.chkBox_AllowDrop.Name = "chkBox_AllowDrop";
|
||||
this.chkBox_AllowDrop.Size = new System.Drawing.Size(147, 16);
|
||||
this.chkBox_AllowDrop.TabIndex = 10;
|
||||
this.chkBox_AllowDrop.Text = "표 드래그 앤 드롭 OFF";
|
||||
this.chkBox_AllowDrop.UseVisualStyleBackColor = true;
|
||||
this.chkBox_AllowDrop.CheckedChanged += new System.EventHandler(this.chkBox_AllowDrop_CheckedChanged);
|
||||
this.tbTag040.Location = new System.Drawing.Point(1332, 8);
|
||||
this.tbTag040.Name = "tbTag040";
|
||||
this.tbTag040.Size = new System.Drawing.Size(80, 21);
|
||||
this.tbTag040.TabIndex = 6;
|
||||
this.tbTag040.Click += new System.EventHandler(this.tb_SearchChangeColor_Click);
|
||||
//
|
||||
// label26
|
||||
//
|
||||
this.label26.AutoSize = true;
|
||||
this.label26.Location = new System.Drawing.Point(1494, 12);
|
||||
this.label26.Name = "label26";
|
||||
this.label26.Size = new System.Drawing.Size(63, 12);
|
||||
this.label26.TabIndex = 3;
|
||||
this.label26.Text = "008 32번값";
|
||||
//
|
||||
// label25
|
||||
//
|
||||
this.label25.AutoSize = true;
|
||||
this.label25.Location = new System.Drawing.Point(1277, 12);
|
||||
this.label25.Name = "label25";
|
||||
this.label25.Size = new System.Drawing.Size(49, 12);
|
||||
this.label25.TabIndex = 3;
|
||||
this.label25.Text = "Tag 040";
|
||||
//
|
||||
// panel6
|
||||
//
|
||||
@@ -745,9 +610,9 @@
|
||||
this.panel6.Controls.Add(this.label5);
|
||||
this.panel6.Controls.Add(this.tb_Garo);
|
||||
this.panel6.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel6.Location = new System.Drawing.Point(0, 619);
|
||||
this.panel6.Location = new System.Drawing.Point(0, 853);
|
||||
this.panel6.Name = "panel6";
|
||||
this.panel6.Size = new System.Drawing.Size(1661, 59);
|
||||
this.panel6.Size = new System.Drawing.Size(1730, 59);
|
||||
this.panel6.TabIndex = 10;
|
||||
//
|
||||
// chk_Alignment
|
||||
@@ -1134,9 +999,62 @@
|
||||
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel7.Location = new System.Drawing.Point(0, 70);
|
||||
this.panel7.Name = "panel7";
|
||||
this.panel7.Size = new System.Drawing.Size(1661, 549);
|
||||
this.panel7.Size = new System.Drawing.Size(1730, 783);
|
||||
this.panel7.TabIndex = 11;
|
||||
//
|
||||
// dataGridView1
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Control;
|
||||
this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridView1.ColumnHeadersHeight = 25;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
this.num,
|
||||
this.reg_num,
|
||||
this.class_code,
|
||||
this.author_code,
|
||||
this.volume,
|
||||
this.copy,
|
||||
this.prefix,
|
||||
this.gu,
|
||||
this.ISBN,
|
||||
this.book_name,
|
||||
this.s_book_name1,
|
||||
this.s_book_num1,
|
||||
this.s_book_name2,
|
||||
this.s_book_num2,
|
||||
this.author,
|
||||
this.book_comp,
|
||||
this.price,
|
||||
this.midx,
|
||||
this.marc,
|
||||
this.search_tag2,
|
||||
this.colCheck});
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.GridColor = System.Drawing.SystemColors.ActiveCaptionText;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1730, 783);
|
||||
this.dataGridView1.TabIndex = 1;
|
||||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
|
||||
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
|
||||
this.dataGridView1.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dataGridView1_RowPostPaint);
|
||||
this.dataGridView1.SortCompare += new System.Windows.Forms.DataGridViewSortCompareEventHandler(this.dataGridView1_SortCompare);
|
||||
this.dataGridView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView1_KeyDown);
|
||||
//
|
||||
// printDocument1
|
||||
//
|
||||
this.printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument1_BeginPrint);
|
||||
@@ -1152,30 +1070,185 @@
|
||||
this.printPreviewDialog1.Name = "printPreviewDialog1";
|
||||
this.printPreviewDialog1.Visible = false;
|
||||
//
|
||||
// tb_SearchChangeColor
|
||||
// idx
|
||||
//
|
||||
this.tb_SearchChangeColor.Location = new System.Drawing.Point(420, 3);
|
||||
this.tb_SearchChangeColor.Name = "tb_SearchChangeColor";
|
||||
this.tb_SearchChangeColor.Size = new System.Drawing.Size(147, 21);
|
||||
this.tb_SearchChangeColor.TabIndex = 6;
|
||||
this.tb_SearchChangeColor.Text = "여러 개 입력시 , 로 구분";
|
||||
this.tb_SearchChangeColor.Click += new System.EventHandler(this.tb_SearchChangeColor_Click);
|
||||
this.idx.HeaderText = "idx";
|
||||
this.idx.Name = "idx";
|
||||
this.idx.ReadOnly = true;
|
||||
this.idx.Visible = false;
|
||||
//
|
||||
// btn_ChangeColor
|
||||
// num
|
||||
//
|
||||
this.btn_ChangeColor.Location = new System.Drawing.Point(573, 2);
|
||||
this.btn_ChangeColor.Name = "btn_ChangeColor";
|
||||
this.btn_ChangeColor.Size = new System.Drawing.Size(93, 23);
|
||||
this.btn_ChangeColor.TabIndex = 7;
|
||||
this.btn_ChangeColor.Text = "검색값 색 변경";
|
||||
this.btn_ChangeColor.UseVisualStyleBackColor = true;
|
||||
this.btn_ChangeColor.Click += new System.EventHandler(this.btn_ChangeColor_Click);
|
||||
this.num.FillWeight = 64.46414F;
|
||||
this.num.HeaderText = "연번";
|
||||
this.num.Name = "num";
|
||||
this.num.ReadOnly = true;
|
||||
this.num.Width = 50;
|
||||
//
|
||||
// reg_num
|
||||
//
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.reg_num.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.reg_num.FillWeight = 130.9363F;
|
||||
this.reg_num.HeaderText = "등록번호";
|
||||
this.reg_num.Name = "reg_num";
|
||||
this.reg_num.Width = 102;
|
||||
//
|
||||
// class_code
|
||||
//
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.class_code.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.class_code.FillWeight = 76.41504F;
|
||||
this.class_code.HeaderText = "분류";
|
||||
this.class_code.Name = "class_code";
|
||||
this.class_code.Width = 59;
|
||||
//
|
||||
// author_code
|
||||
//
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.author_code.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.author_code.FillWeight = 77.02635F;
|
||||
this.author_code.HeaderText = "저자기호";
|
||||
this.author_code.Name = "author_code";
|
||||
this.author_code.Width = 60;
|
||||
//
|
||||
// volume
|
||||
//
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.volume.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.volume.FillWeight = 38.80909F;
|
||||
this.volume.HeaderText = "V";
|
||||
this.volume.Name = "volume";
|
||||
this.volume.ToolTipText = "049v";
|
||||
this.volume.Width = 30;
|
||||
//
|
||||
// copy
|
||||
//
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.copy.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.copy.FillWeight = 40.14827F;
|
||||
this.copy.HeaderText = "C";
|
||||
this.copy.Name = "copy";
|
||||
this.copy.ToolTipText = "049c";
|
||||
this.copy.Width = 31;
|
||||
//
|
||||
// prefix
|
||||
//
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.prefix.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.prefix.FillWeight = 41.51828F;
|
||||
this.prefix.HeaderText = "F";
|
||||
this.prefix.Name = "prefix";
|
||||
this.prefix.ToolTipText = "049f";
|
||||
this.prefix.Width = 32;
|
||||
//
|
||||
// gu
|
||||
//
|
||||
this.gu.FillWeight = 71.64279F;
|
||||
this.gu.HeaderText = "구분";
|
||||
this.gu.Name = "gu";
|
||||
this.gu.ReadOnly = true;
|
||||
this.gu.Width = 56;
|
||||
//
|
||||
// ISBN
|
||||
//
|
||||
this.ISBN.HeaderText = "ISBN";
|
||||
this.ISBN.Name = "ISBN";
|
||||
this.ISBN.Visible = false;
|
||||
//
|
||||
// book_name
|
||||
//
|
||||
this.book_name.FillWeight = 291.9296F;
|
||||
this.book_name.HeaderText = "도서명";
|
||||
this.book_name.Name = "book_name";
|
||||
this.book_name.ReadOnly = true;
|
||||
this.book_name.Width = 226;
|
||||
//
|
||||
// s_book_name1
|
||||
//
|
||||
this.s_book_name1.FillWeight = 129.9903F;
|
||||
this.s_book_name1.HeaderText = "총서명";
|
||||
this.s_book_name1.Name = "s_book_name1";
|
||||
this.s_book_name1.ReadOnly = true;
|
||||
this.s_book_name1.Width = 101;
|
||||
//
|
||||
// s_book_num1
|
||||
//
|
||||
this.s_book_num1.FillWeight = 76.24091F;
|
||||
this.s_book_num1.HeaderText = "총서번호";
|
||||
this.s_book_num1.Name = "s_book_num1";
|
||||
this.s_book_num1.Width = 59;
|
||||
//
|
||||
// s_book_name2
|
||||
//
|
||||
this.s_book_name2.HeaderText = "총서명";
|
||||
this.s_book_name2.Name = "s_book_name2";
|
||||
//
|
||||
// s_book_num2
|
||||
//
|
||||
this.s_book_num2.HeaderText = "총서번호";
|
||||
this.s_book_num2.Name = "s_book_num2";
|
||||
this.s_book_num2.Width = 59;
|
||||
//
|
||||
// author
|
||||
//
|
||||
this.author.FillWeight = 128.5217F;
|
||||
this.author.HeaderText = "저자";
|
||||
this.author.Name = "author";
|
||||
this.author.ReadOnly = true;
|
||||
//
|
||||
// book_comp
|
||||
//
|
||||
this.book_comp.FillWeight = 125.7765F;
|
||||
this.book_comp.HeaderText = "출판사";
|
||||
this.book_comp.Name = "book_comp";
|
||||
this.book_comp.ReadOnly = true;
|
||||
this.book_comp.Width = 97;
|
||||
//
|
||||
// price
|
||||
//
|
||||
dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.price.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.price.FillWeight = 86.15041F;
|
||||
this.price.HeaderText = "정가";
|
||||
this.price.Name = "price";
|
||||
this.price.Width = 67;
|
||||
//
|
||||
// midx
|
||||
//
|
||||
this.midx.HeaderText = "midx";
|
||||
this.midx.Name = "midx";
|
||||
this.midx.Visible = false;
|
||||
//
|
||||
// marc
|
||||
//
|
||||
this.marc.HeaderText = "마크";
|
||||
this.marc.Name = "marc";
|
||||
//
|
||||
// search_tag2
|
||||
//
|
||||
this.search_tag2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
this.search_tag2.HeaderText = "검색태그";
|
||||
this.search_tag2.Name = "search_tag2";
|
||||
this.search_tag2.Width = 144;
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.FalseValue = "F";
|
||||
this.colCheck.FillWeight = 34.79187F;
|
||||
this.colCheck.HeaderText = "□";
|
||||
this.colCheck.IndeterminateValue = "F";
|
||||
this.colCheck.Name = "colCheck";
|
||||
this.colCheck.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colCheck.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colCheck.TrueValue = "T";
|
||||
this.colCheck.Width = 27;
|
||||
//
|
||||
// Marc_Plan
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1661, 678);
|
||||
this.ClientSize = new System.Drawing.Size(1730, 912);
|
||||
this.Controls.Add(this.panel7);
|
||||
this.Controls.Add(this.panel6);
|
||||
this.Controls.Add(this.panel5);
|
||||
@@ -1188,14 +1261,15 @@
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel3.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.panel5.PerformLayout();
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.panel6.PerformLayout();
|
||||
this.panel7.ResumeLayout(false);
|
||||
this.panel7.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -1205,7 +1279,6 @@
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Button btn_Select_List;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
public System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.Button btn_Close;
|
||||
private System.Windows.Forms.TextBox tb_SearchTag;
|
||||
private System.Windows.Forms.TextBox tb_ISBN;
|
||||
@@ -1273,6 +1346,21 @@
|
||||
private System.Windows.Forms.Label label24;
|
||||
private System.Windows.Forms.Button btn_ApplyMacro;
|
||||
private System.Windows.Forms.Button btn_InputAutoCopy;
|
||||
private System.Windows.Forms.Button btn_InputColorFix;
|
||||
private System.Windows.Forms.Button btn_ClassSymbol;
|
||||
private System.Windows.Forms.Button btn_GearExcel;
|
||||
private System.Windows.Forms.Button btn_ChangeColor;
|
||||
private System.Windows.Forms.TextBox tb_SearchChangeColor;
|
||||
private System.Windows.Forms.Button btnTag040;
|
||||
private System.Windows.Forms.TextBox tbTag040;
|
||||
private System.Windows.Forms.Label label25;
|
||||
private System.Windows.Forms.Button btnTag008;
|
||||
private System.Windows.Forms.Label label26;
|
||||
private System.Windows.Forms.ComboBox cbTag008_32;
|
||||
public System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn serach_tag;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn num;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn reg_num;
|
||||
@@ -1293,14 +1381,7 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn midx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn marc;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn search_tag;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn search_tag2;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn WorkCopy;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn WorkFix;
|
||||
private System.Windows.Forms.Button btn_InputColorFix;
|
||||
private System.Windows.Forms.Button btn_ClassSymbol;
|
||||
private System.Windows.Forms.Button btn_GearExcel;
|
||||
private System.Windows.Forms.Button btn_ChangeColor;
|
||||
private System.Windows.Forms.TextBox tb_SearchChangeColor;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using ExcelTest;
|
||||
using MySqlX.XDevAPI.Relational;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -11,7 +12,10 @@ using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml.Linq;
|
||||
using UniMarc.마크;
|
||||
using static System.Net.WebRequestMethods;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
|
||||
namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
@@ -20,7 +24,7 @@ namespace WindowsFormsApp1.Mac
|
||||
Main main;
|
||||
Helper_DB db = new Helper_DB();
|
||||
string date = "";
|
||||
|
||||
|
||||
public Marc_Plan(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -96,14 +100,17 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
string cmd = db.More_DB_Search(Table, Search_col, Search_data, Area);
|
||||
string res = db.DB_Send_CMD_Search(cmd);
|
||||
|
||||
string[] ary = res.Split('|');
|
||||
|
||||
string[] ary = res.Split('|');
|
||||
int tCnt = 1;
|
||||
for (int a = 0; a < ary.Length; a++)
|
||||
{
|
||||
if (a % 16 == 00) { Grid[00] = ary[a]; } // idx
|
||||
if (a % 16 == 01) { Grid[01] = ary[a]; } // num
|
||||
if (a % 16 == 02) { Grid[02] = ary[a]; } // r_num
|
||||
if (a % 16 == 01) { Grid[01] = ary[a];
|
||||
if (ary[a] == "") Grid[02] = tCnt.ToString();
|
||||
tCnt++;
|
||||
} // num
|
||||
if (a % 16 == 02) { Grid[02] = ary[a];} // r_num
|
||||
if (a % 16 == 03) { Grid[03] = ary[a]; } // class_symbol
|
||||
if (a % 16 == 04) { Grid[04] = ary[a]; } // author_symbol
|
||||
if (a % 16 == 05) { Grid[09] = ary[a]; } // ISBN
|
||||
@@ -262,8 +269,8 @@ namespace WindowsFormsApp1.Mac
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
string marc = dataGridView1.Rows[a].Cells["marc"].Value.ToString();
|
||||
string[] tag = st.Take_Tag(marc, SearchTag);
|
||||
dataGridView1.Rows[a].Cells["search_tag"].Value = tag[0];
|
||||
string[] tag = st.Take_Tag(marc, SearchTag,true);
|
||||
dataGridView1.Rows[a].Cells["search_tag2"].Value = tag[0];
|
||||
BackUpTag.Add(tag[0]);
|
||||
}
|
||||
}
|
||||
@@ -288,7 +295,11 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
string Content = dataGridView1.Rows[a].Cells["search_tag"].Value.ToString();
|
||||
string Content = string.Empty;
|
||||
if(dataGridView1.Rows[a].Cells["search_tag2"].Value!=null)
|
||||
Content = dataGridView1.Rows[a].Cells["search_tag2"].Value.ToString();
|
||||
else if(dataGridView1.Rows[a].Cells["search_tag2"].Value == null)
|
||||
Content = "delete";
|
||||
if (Content == "") continue;
|
||||
string marc = dataGridView1.Rows[a].Cells["marc"].Value.ToString();
|
||||
string viewMarc = split_Marc(marc);
|
||||
@@ -306,14 +317,25 @@ namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
string oldTag = string.Format("▼{0}{1}", TagName, BackUpTag[a]);
|
||||
string newTag = string.Format("▼{0}{1}", TagName, Content);
|
||||
|
||||
if (ConvertTag == 8)
|
||||
{
|
||||
oldTag = BackUpTag[a];
|
||||
newTag = Content;
|
||||
}
|
||||
// 해당 식별기호가 존재할 경우
|
||||
if (LineMarc.Contains(oldTag))
|
||||
{
|
||||
AryMarc[index] = LineMarc.Replace(oldTag, newTag);
|
||||
if (Content == "delete")
|
||||
{
|
||||
AryMarc[index] = AryMarc[index].Replace(oldTag, "");
|
||||
int tLength = AryMarc[index].Length;
|
||||
if (tLength <= 8) AryMarc[index] = "";
|
||||
}
|
||||
else
|
||||
AryMarc[index] = LineMarc.Replace(oldTag, newTag);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
// 해당 식별기호가 존재하지 않을 경우
|
||||
else
|
||||
{
|
||||
@@ -331,6 +353,7 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
index++;
|
||||
}
|
||||
AryMarc.RemoveAll(x => x == "");
|
||||
String_Text st = new String_Text();
|
||||
dataGridView1.Rows[a].Cells["marc"].Value = st.made_Ori_marc(string.Join("\n", AryMarc));
|
||||
}
|
||||
@@ -340,7 +363,7 @@ namespace WindowsFormsApp1.Mac
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
string marc = dataGridView1.Rows[a].Cells["marc"].Value.ToString();
|
||||
string changeTag = dataGridView1.Rows[a].Cells["search_tag"].Value.ToString();
|
||||
string changeTag = dataGridView1.Rows[a].Cells["search_tag2"].Value.ToString();
|
||||
|
||||
if (changeTag == "")
|
||||
continue;
|
||||
@@ -389,12 +412,12 @@ namespace WindowsFormsApp1.Mac
|
||||
for (int a = 0; a < TagNum.Count; a++)
|
||||
{
|
||||
string res = TagNum[a];
|
||||
if (TagNum[a] == "008")
|
||||
{
|
||||
//text008.Text = field[a].Replace("▲", "");
|
||||
continue;
|
||||
}
|
||||
else { }
|
||||
//if (TagNum[a] == "008")
|
||||
//{
|
||||
// //text008.Text = field[a].Replace("▲", "");
|
||||
// continue;
|
||||
//}
|
||||
//else { }
|
||||
if (field[a].IndexOf("▼") == -1)
|
||||
{
|
||||
res += "\t \t" + field[a];
|
||||
@@ -412,7 +435,7 @@ namespace WindowsFormsApp1.Mac
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
string table = "Specs_Marc";
|
||||
string[] Edit_Col = { "marc", "r_num", "class_symbol", "author_symbol", "prefix", "user", "editDate" };
|
||||
string[] Edit_Col = { "marc", "r_num", "class_symbol", "author_symbol", "prefix","price", "user", "editDate" };
|
||||
string[] Where_Col = { "idx" };
|
||||
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
@@ -423,6 +446,7 @@ namespace WindowsFormsApp1.Mac
|
||||
dataGridView1.Rows[a].Cells["class_code"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["author_code"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["prefix"].Value.ToString(),
|
||||
dataGridView1.Rows[a].Cells["price"].Value.ToString(),
|
||||
main.botUserLabel.Text,
|
||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") };
|
||||
string[] Where_Data = {
|
||||
@@ -449,9 +473,9 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
String_Text st = new String_Text();
|
||||
Excel_text et = new Excel_text();
|
||||
string[] Title = {
|
||||
string[] Title = {
|
||||
"연번", "등록번호", "분류기호", "저자기호", "볼륨",
|
||||
"복본", "별치", "도서명", "원서명", "권차명",
|
||||
"복본", "별치", "도서명", "원서명", "권차명",
|
||||
"권차서명", "총서명", "총서번호", "총서명", "총서번호",
|
||||
"저자", "출판사", "출판년", "정가", "ISBN"
|
||||
};
|
||||
@@ -532,26 +556,131 @@ namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
if (FileEncodingType == "ANSI") {
|
||||
FileName = saveFileDialog.FileName;
|
||||
File.WriteAllText(FileName, Marc_data, Encoding.Default);
|
||||
System.IO.File.WriteAllText(FileName, Marc_data, Encoding.Default);
|
||||
}
|
||||
else if (FileEncodingType == "UTF-8") {
|
||||
FileName = saveFileDialog.FileName;
|
||||
File.WriteAllText(FileName, Marc_data, Encoding.UTF8);
|
||||
System.IO.File.WriteAllText(FileName, Marc_data, Encoding.UTF8);
|
||||
}
|
||||
else if (FileEncodingType == "UniCode") {
|
||||
FileName = saveFileDialog.FileName;
|
||||
File.WriteAllText(FileName, Marc_data, Encoding.Unicode);
|
||||
System.IO.File.WriteAllText(FileName, Marc_data, Encoding.Unicode);
|
||||
}
|
||||
MessageBox.Show("반출되었습니다!");
|
||||
}
|
||||
MessageBox.Show("반출되었습니다!");
|
||||
|
||||
}
|
||||
|
||||
private void btn_ApplyMacro_Click(object sender, EventArgs e)
|
||||
{
|
||||
Set_Macro sm = new Set_Macro(this, dataGridView1);
|
||||
String_Text st = new String_Text();
|
||||
sm.ViewMarcArray = Make_MarcArray();
|
||||
sm.Show();
|
||||
}
|
||||
private void btnTag040_Click(object sender, EventArgs e)
|
||||
{
|
||||
string[] tData = Make_MarcArray();
|
||||
string tNewTagData = tbTag040.Text;
|
||||
List<string> tSplitMarc;
|
||||
for (int i = 0; i < tData.Length; i++)
|
||||
{
|
||||
tSplitMarc = new List<string>(tData[i].Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries));
|
||||
|
||||
int tIDX = tSplitMarc.FindIndex(x => x.Substring(0, 3) == "040");
|
||||
int tInsertIDX = tIDX;
|
||||
if (dataGridView1.Rows[i].Cells["marc"].Value.ToString() == "" &&
|
||||
dataGridView1.Rows[i].Cells["marc"].Value == null)
|
||||
continue;
|
||||
|
||||
//기존의 040 테그 삭제 부분
|
||||
if (tIDX != -1) tSplitMarc.RemoveAt(tIDX);
|
||||
else
|
||||
{
|
||||
tInsertIDX = tSplitMarc.FindLastIndex(x =>
|
||||
{
|
||||
int tReturn = 1;
|
||||
int.TryParse(x.Substring(0, 3), out tReturn);
|
||||
return tReturn < 40;
|
||||
});
|
||||
}
|
||||
// 신규 040 테그 삽입
|
||||
string tInsertTag = string.Format("040\t \t▼a{0}▲", tNewTagData);
|
||||
tSplitMarc.Insert(tInsertIDX + 1, tInsertTag);
|
||||
//ViewMarc = st.AddTagInMarc("500\t \t▼aURL 링크 클릭한 후 전자도서 홈페이지에서 로그인하여 이용하시기 바랍니다.▲", ViewMarc);
|
||||
string tChange = string.Join("\n", tSplitMarc);
|
||||
String_Text st = new String_Text();
|
||||
dataGridView1.Rows[i].Cells["marc"].Value = st.made_Ori_marc(tChange);
|
||||
}
|
||||
MessageBox.Show("태그 일괄 적용 완료!");
|
||||
}
|
||||
private List<int> GetSelectGridIDX()
|
||||
{
|
||||
List<int> tSelectIDX = new List<int>();
|
||||
if (dataGridView1.CurrentCell == null || dataGridView1.SelectedCells.Count < 1) return tSelectIDX;
|
||||
List<DataGridViewCell> tSelectedCells = new List<DataGridViewCell>();
|
||||
foreach (DataGridViewCell cell in this.dataGridView1.SelectedCells)
|
||||
{
|
||||
tSelectedCells.Add(cell);
|
||||
}
|
||||
tSelectIDX = tSelectedCells.Select(x => x.RowIndex).Distinct().ToList();
|
||||
tSelectIDX.Sort();
|
||||
return tSelectIDX;
|
||||
}
|
||||
private void btnTag008_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<int> tSelectIDX = GetSelectGridIDX();
|
||||
if (tSelectIDX.Count == 0) return;
|
||||
for (int i = 0; i < dataGridView1.Rows.Count; i++)
|
||||
{
|
||||
|
||||
bool tCheck = dataGridView1.Rows[i].Cells["colCheck"].Value.ToString() == "T" ? true : false;
|
||||
if (!tCheck) continue;
|
||||
String_Text st = new String_Text();
|
||||
string tMarc = dataGridView1.Rows[i].Cells["marc"].Value.ToString();//= st.made_Ori_marc(tChange);
|
||||
int tTag008IDX = 0;
|
||||
|
||||
if (tMarc.Length < 3) return;
|
||||
|
||||
string result = string.Empty;
|
||||
|
||||
List<string> tTagNum = new List<string>(); // 태그번호
|
||||
List<string> tField = new List<string>(); // 가변길이필드 저장
|
||||
|
||||
// 특수기호 육안으로 확인하기 쉽게 변환
|
||||
tMarc = tMarc.Replace("", "▼");
|
||||
tMarc = tMarc.Replace("", "▲");
|
||||
tMarc = tMarc.Replace("₩", "\\");
|
||||
|
||||
int startidx = 0;
|
||||
string[] data = tMarc.Substring(24).Split('▲'); // 리더부를 제외한 디렉터리, 가변길이필드 저장
|
||||
|
||||
for (int a = 1; a < data.Length - 1; a++)
|
||||
{
|
||||
tTagNum.Add(data[0].Substring(startidx, 3));
|
||||
startidx += 12;
|
||||
tField.Add(data[a] + "▲");
|
||||
}
|
||||
tTag008IDX = tTagNum.FindIndex(x => x == "008");
|
||||
if (tTag008IDX == -1 ) continue;
|
||||
string tData = tField[tTag008IDX];
|
||||
List<string> tListData = tData.ToCharArray().ToList().ConvertAll(x => x.ToString());
|
||||
if (tListData.Count < 40) continue;
|
||||
tListData[32] = cbTag008_32.Text;
|
||||
tField[tTag008IDX] = string.Join("", tListData);
|
||||
string tNewMarc = string.Empty;
|
||||
for (int j = 0; j < tTagNum.Count; j++)
|
||||
{
|
||||
tNewMarc += string.Format("{0}\t{1}\t{2}\n", tTagNum[j], " ", tField[j]);
|
||||
}
|
||||
dataGridView1.Rows[i].Cells["marc"].Value = st.made_Ori_marc(tNewMarc);
|
||||
}
|
||||
MessageBox.Show("태그 일괄 적용 완료!");
|
||||
|
||||
}
|
||||
|
||||
private string[] Make_MarcArray()
|
||||
{
|
||||
String_Text st = new String_Text();
|
||||
string[] MarcArray = new string[dataGridView1.RowCount];
|
||||
for (int a = 0; a < dataGridView1.Rows.Count; a++)
|
||||
{
|
||||
@@ -567,9 +696,7 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
MarcArray[a] = marc;
|
||||
}
|
||||
|
||||
sm.ViewMarcArray = MarcArray;
|
||||
sm.Show();
|
||||
return MarcArray;
|
||||
}
|
||||
|
||||
#region Grid 드래그 앤 드랍 함수 (사용하려면 dataGridView1의 AllowDrop 활성화해야함)
|
||||
@@ -626,10 +753,19 @@ namespace WindowsFormsApp1.Mac
|
||||
int row = e.RowIndex;
|
||||
int col = dataGridView1.CurrentCell.ColumnIndex;
|
||||
|
||||
if (col == 2 || col == 3 || col == 4 || col == 5 || col == 6 || col == 7)
|
||||
if (col == 2 || col == 3 || col == 4 || col == 5 || col == 6 || col == 7|| col==17)
|
||||
{
|
||||
if (dataGridView1.Rows[row].Cells["marc"].Value.ToString() == "" &&
|
||||
dataGridView1.Rows[row].Cells["marc"].Value == null)
|
||||
if (dataGridView1.Rows[row].Cells["num"].Value == null)
|
||||
{
|
||||
dataGridView1.Rows.RemoveAt(row);
|
||||
return;
|
||||
}
|
||||
if (dataGridView1.Rows[row].Cells["marc"].Value == null)
|
||||
{
|
||||
MessageBox.Show("저장된 마크가 없습니다!");
|
||||
return;
|
||||
}
|
||||
if (dataGridView1.Rows[row].Cells["marc"].Value.ToString() == "")
|
||||
{
|
||||
MessageBox.Show("저장된 마크가 없습니다!");
|
||||
return;
|
||||
@@ -702,6 +838,28 @@ namespace WindowsFormsApp1.Mac
|
||||
TypeView = AddTagInMarc(AddTag, TypeView);
|
||||
}
|
||||
}
|
||||
if (col == 17)
|
||||
{
|
||||
if (dataGridView1.Rows[row].Cells[3].Value == null) dataGridView1.Rows[row].Cells["price"].Value = "";
|
||||
string tChangeValue = dataGridView1.Rows[row].Cells["price"].Value.ToString();
|
||||
|
||||
string tAddTag020 = string.Format("▼c{0}", tChangeValue);
|
||||
string tAddTag950 = string.Format("▼b{0}", tChangeValue);
|
||||
|
||||
//TypeView = st.ChangeTagInMarc("950b", tAddTag950, TypeView);
|
||||
//if (tChangeValue == "")
|
||||
//{
|
||||
// TypeView = st.RemoveTagNumber(TypeView, "020c");
|
||||
// TypeView = st.RemoveTagNumber(TypeView, "950b");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
if (tChangeValue != "")
|
||||
{
|
||||
TypeView = st.ChangeTagInMarc("020c", tAddTag020, TypeView);
|
||||
TypeView = st.ChangeTagInMarc("950b", tAddTag950, TypeView);
|
||||
}
|
||||
}
|
||||
dataGridView1.Rows[row].Cells["marc"].Value = st.made_Ori_marc(TypeView);
|
||||
}
|
||||
}
|
||||
@@ -773,7 +931,9 @@ namespace WindowsFormsApp1.Mac
|
||||
foreach (string LineMarc in View)
|
||||
{
|
||||
string LineTag = LineMarc.Substring(0, 3);
|
||||
int TagNum = Convert.ToInt32(LineTag);
|
||||
int TagNum = 0;
|
||||
//Convert.ToInt32(LineTag);
|
||||
int.TryParse(LineTag, out TagNum);
|
||||
|
||||
if (TargetTagNum == TagNum)
|
||||
{
|
||||
@@ -970,15 +1130,15 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
#region Bring_Sub
|
||||
|
||||
public void BringPringLabel(TextBox[] Box, string Font, bool[] ChkByC_V)
|
||||
public void BringPringLabel(System.Windows.Forms.TextBox[] Box, string Font, bool[] ChkByC_V)
|
||||
{
|
||||
TextBox[] MyBox = { tb_Left, tb_Top, tb_Width, tb_Height, tb_GaroGap, tb_SeroGap, tb_Garo, tb_Sero, tb_TextSize };
|
||||
System.Windows.Forms.TextBox[] MyBox = { tb_Left, tb_Top, tb_Width, tb_Height, tb_GaroGap, tb_SeroGap, tb_Garo, tb_Sero, tb_TextSize };
|
||||
|
||||
if (MyBox.Length != Box.Length)
|
||||
return;
|
||||
|
||||
int count = 0;
|
||||
foreach (TextBox tb in MyBox)
|
||||
foreach (System.Windows.Forms.TextBox tb in MyBox)
|
||||
{
|
||||
tb.Text = Box[count].Text;
|
||||
count++;
|
||||
@@ -1000,8 +1160,15 @@ namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
if (e.Column.Name.Equals("num"))
|
||||
{
|
||||
int a = int.Parse(e.CellValue1.ToString()), b = int.Parse(e.CellValue2.ToString());
|
||||
e.SortResult = a.CompareTo(b);
|
||||
//int a = int.Parse(e.CellValue1.ToString()), b = int.Parse(e.CellValue2.ToString());
|
||||
string tA = e.CellValue1.ToString();
|
||||
string tB = e.CellValue2.ToString();
|
||||
|
||||
int tAValue = int.Parse(Regex.Replace(tA, @"[^0-9]", ""));
|
||||
int tBValue = int.Parse(Regex.Replace(tB, @"[^0-9]", ""));
|
||||
|
||||
e.SortResult = tAValue.CompareTo(tBValue);
|
||||
//e.SortResult = a.CompareTo(b);
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
@@ -1180,25 +1347,29 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
for (int a = 0; a < dataGridView1.RowCount; a++)
|
||||
{
|
||||
dataGridView1.Rows[a].Cells["Search_Tag"].Style.BackColor = Color.White;
|
||||
dataGridView1.Rows[a].Cells["search_tag2"].Style.BackColor = Color.White;
|
||||
}
|
||||
|
||||
string[] SearchArray = tb_SearchChangeColor.Text.Split(',');
|
||||
|
||||
for (int a = 0; a < dataGridView1.RowCount; a++)
|
||||
{
|
||||
string Target = dataGridView1.Rows[a].Cells["Search_Tag"].Value.ToString();
|
||||
string Target = dataGridView1.Rows[a].Cells["search_tag2"].Value.ToString();
|
||||
foreach (string t in SearchArray)
|
||||
{
|
||||
if (t == "") continue;
|
||||
|
||||
if (Target.IndexOf(t.TrimStart().TrimEnd()) > -1) {
|
||||
dataGridView1.Rows[a].Cells["Search_Tag"].Style.BackColor = Color.Yellow;
|
||||
dataGridView1.Rows[a].Cells["search_tag2"].Style.BackColor = Color.Yellow;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void btnInit_Click(object sender, EventArgs e)
|
||||
{
|
||||
mk_Grid(btn_Select_List.Text, this.date);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,10 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="WorkCopy.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="WorkFix.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<metadata name="search_tag2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="printDocument1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace UniMarc.마크
|
||||
ws.Columns.AutoFit();
|
||||
|
||||
app.Interactive = true;
|
||||
app.Quit();
|
||||
//app.Quit();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
@@ -634,8 +634,7 @@ namespace UniMarc.마크
|
||||
this.richTextBox1.Name = "richTextBox1";
|
||||
this.richTextBox1.Size = new System.Drawing.Size(838, 456);
|
||||
this.richTextBox1.TabIndex = 0;
|
||||
this.richTextBox1.Text = "ㅇㅁㄴ먄륨\'ㄴ륨\nㅔㄴ륨레ㅏㅠㅁㄴ\n;라ㅠㅁㄴ;라뮨라;뮨리ㅏㅓ뮨라ㅣ뮨라ㅣㅁ뉾ㄴㄻㄴㄹ\nㅁㄴ ㄹ\nㅁ\nㄴㄻㄴㄻㄴㄻㄴㄻㄴㄻㄴㄻㄴㄻ\nㄴㄻㄴㄻㄴㅅㅎ 무에ㅐㅎ ㅜ" +
|
||||
"네후 ㅈㄷ\\ㅈㄷ\nㅅㅎㅈㅇㅎㄴㅇㅎ모로\n";
|
||||
this.richTextBox1.Text = "초기값";
|
||||
this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
|
||||
//
|
||||
// panel2
|
||||
|
||||
@@ -10,6 +10,7 @@ using System.Windows.Forms;
|
||||
using WindowsFormsApp1;
|
||||
using WindowsFormsApp1.Mac;
|
||||
using ExcelTest;
|
||||
using System.Drawing.Drawing2D;
|
||||
|
||||
namespace UniMarc.마크
|
||||
{
|
||||
@@ -35,13 +36,19 @@ namespace UniMarc.마크
|
||||
si = _si;
|
||||
db.DBcon();
|
||||
}
|
||||
|
||||
private string mOldMarc = string.Empty;
|
||||
private bool mOpenOldMarc = false;
|
||||
/// <summary>
|
||||
/// 시작전 세팅작업. 필요한 데이터들을 각각의 박스들에 집어넣음.
|
||||
/// </summary>
|
||||
/// <param name="Marc">0:Marc 1:MarcIdx 2:연번 3:idx 4:ISBN</param>
|
||||
public void Init(string[] Marc)
|
||||
public void Init(string[] Marc,bool pOldMarc= false)
|
||||
{
|
||||
mOpenOldMarc = pOldMarc;
|
||||
btn_Back.InvokeEnable(!pOldMarc);
|
||||
btn_Front.InvokeEnable(!pOldMarc);
|
||||
btn_Save.InvokeEnable(!pOldMarc);
|
||||
mOldMarc = Marc[0];
|
||||
// 이용자 9
|
||||
comboBox1.Items.AddRange(tag008.combo1);
|
||||
|
||||
@@ -62,7 +69,7 @@ namespace UniMarc.마크
|
||||
comboBox6.Items.AddRange(tag008.combo6);
|
||||
|
||||
richTextBox1.Text = split_Marc(Marc[0]);
|
||||
Create_008();
|
||||
Create_008(Marc[0]);
|
||||
st.Color_change("▼", richTextBox1);
|
||||
st.Color_change("▲", richTextBox1);
|
||||
|
||||
@@ -72,7 +79,7 @@ namespace UniMarc.마크
|
||||
|
||||
richTextBox1.Select(0, richTextBox1.Text.Length);
|
||||
richTextBox1.SelectionBackColor = Color.Transparent;
|
||||
|
||||
richTextBox1.ScrollToCaret();
|
||||
input_picture(Marc[4]);
|
||||
|
||||
SetHistory();
|
||||
@@ -148,7 +155,9 @@ namespace UniMarc.마크
|
||||
try
|
||||
{
|
||||
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";
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
@@ -157,12 +166,13 @@ namespace UniMarc.마크
|
||||
/// 008 각각의 박스에 대입하는 함수
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public void Create_008()
|
||||
public void Create_008(string pMarc)
|
||||
{
|
||||
string data = text008.Text;
|
||||
|
||||
|
||||
//string data = pMarc;
|
||||
if (data == "" || data == null) { return; }
|
||||
|
||||
if (data.Length <40) data=data.PadRight(40,' ');
|
||||
string[] Tag008 = {
|
||||
"", "", "", "", "",
|
||||
"", "", "", "", "",
|
||||
@@ -205,8 +215,9 @@ namespace UniMarc.마크
|
||||
Tag008[16] = data.Substring(33, 1); // 문학형식 (33) v
|
||||
Tag008[17] = data.Substring(34, 1); // 전기 (34) v
|
||||
Tag008[18] = data.Substring(35, 3); // 언어 (35-37) v
|
||||
|
||||
Tag008[19] = data.Substring(38, 2); // 한국정부기관부호 (38-39)
|
||||
|
||||
int tLength = data.Length;
|
||||
// 배열에 들어간 데이터로 콤보박스를 꾸미는 작업.
|
||||
int year = Convert.ToInt32(Tag008[0].Substring(0, 4));
|
||||
int month = Convert.ToInt32(Tag008[0].Substring(4, 2));
|
||||
@@ -390,13 +401,51 @@ namespace UniMarc.마크
|
||||
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
string oriMarc = st.made_Ori_marc(richTextBox1);
|
||||
string tData = richTextBox1.Text;
|
||||
tData = tData.Insert(0, string.Format("{0}\t{1}\t{2}▲\n", "008", " ", text008.Text));
|
||||
string oriMarc = st.made_Ori_marc(tData);
|
||||
|
||||
if (mp != null)
|
||||
{
|
||||
Save_mp(oriMarc);
|
||||
Refresh_mp_Marc();
|
||||
}
|
||||
|
||||
if (si != null)
|
||||
{
|
||||
Save_si(oriMarc);
|
||||
Refresh_si_Marc();
|
||||
}
|
||||
}
|
||||
private void Refresh_mp_Marc()
|
||||
{
|
||||
string[] marc = {
|
||||
mp.dataGridView1.Rows[row].Cells["marc"].Value.ToString(),
|
||||
mp.dataGridView1.Rows[row].Cells["midx"].Value.ToString(),
|
||||
mp.dataGridView1.Rows[row].Cells["num"].Value.ToString(),
|
||||
mp.dataGridView1.Rows[row].Cells["idx"].Value.ToString(),
|
||||
mp.dataGridView1.Rows[row].Cells["ISBN"].Value.ToString()
|
||||
};
|
||||
string[] Symbol_Type = {
|
||||
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
|
||||
};
|
||||
|
||||
Init(marc);
|
||||
}
|
||||
private void Refresh_si_Marc()
|
||||
{
|
||||
string[] marc = {
|
||||
si.dataGridView1.Rows[row].Cells["Marc"].Value.ToString(),
|
||||
si.dataGridView1.Rows[row].Cells["idx"].Value.ToString(),
|
||||
"",
|
||||
"",
|
||||
si.dataGridView1.Rows[row].Cells["ISBN"].Value.ToString()
|
||||
};
|
||||
string[] Symbol_Type = {
|
||||
cb_FirstAuthor.Text, cb_authorType.Text, cb_FirstBook.Text, cb_divType.Text, cb_divNum.Text
|
||||
};
|
||||
|
||||
Init(marc);
|
||||
}
|
||||
#region Save_Sub
|
||||
|
||||
@@ -414,6 +463,7 @@ namespace UniMarc.마크
|
||||
|
||||
string etc1 = etcBox1.Text;
|
||||
string etc2 = etcBox2.Text;
|
||||
string tag008 = text008.Text;
|
||||
|
||||
// 도서명 (본서명 = 대등서명 : 부서명)
|
||||
string[] BookTag = { "245a", "245x", "245b" };
|
||||
@@ -428,12 +478,12 @@ namespace UniMarc.마크
|
||||
string[] Update_Col = {
|
||||
"marc", "book_name", "etc1", "etc2",
|
||||
"r_num", "class_symbol", "author_symbol", "prefix", "s_book_name1",
|
||||
"s_book_num1", "author", "book_comp", "price", "ISBN"
|
||||
"s_book_num1", "author", "book_comp", "price", "ISBN", "tag008"
|
||||
};
|
||||
string[] Update_data = {
|
||||
oriMarc, BookName, etc1, etc2,
|
||||
SearchBookTag[0], SearchBookTag[1], SearchBookTag[2], SearchBookTag[5], SearchBookTag[6],
|
||||
SearchBookTag[7], SearchBookTag[8], SearchBookTag[9], SearchBookTag[10], SearchBookTag[11]
|
||||
SearchBookTag[7], SearchBookTag[8], SearchBookTag[9], SearchBookTag[10], SearchBookTag[11], tag008
|
||||
};
|
||||
|
||||
string cmd = db.More_Update(Table, Update_Col, Update_data, Search_Col, Search_data);
|
||||
@@ -463,35 +513,35 @@ namespace UniMarc.마크
|
||||
string[] Search_data = { MarcIndex };
|
||||
|
||||
string[] Update_Col = {
|
||||
"marc", "marc_chk", "marc_chk2", "date", "user",
|
||||
"marc", "marc_chk","marc1", "marc_chk2", "date", "user",
|
||||
"비고1", "비고2", "grade"
|
||||
};
|
||||
string[] Update_data = {
|
||||
oriMarc, "1", "0", today, user,
|
||||
oriMarc, "1",mOldMarc, "0", today, user,
|
||||
etc1, etc2, grade
|
||||
};
|
||||
|
||||
string res = Sub_marc_chk(MarcIndex);
|
||||
switch (res)
|
||||
{
|
||||
case "0":
|
||||
Update_Col[0] = "marc1";
|
||||
Update_Col[1] = "marc_chk1";
|
||||
Update_Col[2] = "marc_chk";
|
||||
break;
|
||||
case "1":
|
||||
Update_Col[0] = "marc2";
|
||||
Update_Col[1] = "marc_chk2";
|
||||
Update_Col[2] = "marc_chk1";
|
||||
break;
|
||||
case "2":
|
||||
Update_Col[0] = "marc";
|
||||
Update_Col[1] = "marc_chk";
|
||||
Update_Col[2] = "marc_chk2";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
//string res = Sub_marc_chk(MarcIndex);
|
||||
//switch (res)
|
||||
//{
|
||||
// case "0":
|
||||
// Update_Col[0] = "marc1";
|
||||
// Update_Col[1] = "marc_chk1";
|
||||
// Update_Col[2] = "marc_chk";
|
||||
// break;
|
||||
// case "1":
|
||||
// Update_Col[0] = "marc2";
|
||||
// Update_Col[1] = "marc_chk2";
|
||||
// Update_Col[2] = "marc_chk1";
|
||||
// break;
|
||||
// case "2":
|
||||
// Update_Col[0] = "marc";
|
||||
// Update_Col[1] = "marc_chk";
|
||||
// Update_Col[2] = "marc_chk2";
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
//}
|
||||
|
||||
string Ucmd = db.More_Update(Table, Update_Col, Update_data, Search_Col, Search_data);
|
||||
db.DB_Send_CMD_reVoid(Ucmd);
|
||||
@@ -662,19 +712,19 @@ namespace UniMarc.마크
|
||||
|
||||
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.F9)
|
||||
if (e.KeyCode == Keys.F9 && !mOpenOldMarc)
|
||||
btn_Save_Click(null, null);
|
||||
|
||||
if (e.KeyCode == Keys.F11)
|
||||
if (e.KeyCode == Keys.F11 && !mOpenOldMarc)
|
||||
btn_Back_Click(null, null);
|
||||
|
||||
if (e.KeyCode == Keys.F12)
|
||||
if (e.KeyCode == Keys.F12 && !mOpenOldMarc)
|
||||
btn_Front_Click(null, null);
|
||||
|
||||
if (e.KeyCode == Keys.Escape)
|
||||
btn_Close_Click(null, null);
|
||||
|
||||
if (e.KeyCode == Keys.F7) {
|
||||
if (e.KeyCode == Keys.F7 && !mOpenOldMarc) {
|
||||
string Tag090 = Sample_090();
|
||||
Tag_Create("090", Tag090);
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ namespace UniMarc.마크
|
||||
{
|
||||
int col = e.ColumnIndex;
|
||||
int row = e.RowIndex;
|
||||
|
||||
if (col < 0 || row < 0) return;
|
||||
if (dataGridView1.Columns[col].Name == "colCheck")
|
||||
return;
|
||||
|
||||
|
||||
25
unimarc/unimarc/마크/Marc_mkList.Designer.cs
generated
25
unimarc/unimarc/마크/Marc_mkList.Designer.cs
generated
@@ -53,6 +53,7 @@ namespace UniMarc.마크
|
||||
this.rtb_etc = new System.Windows.Forms.RichTextBox();
|
||||
this.tb_outnum = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.chk_CompSymbol = new System.Windows.Forms.CheckBox();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
@@ -144,6 +145,7 @@ namespace UniMarc.마크
|
||||
// panel3
|
||||
//
|
||||
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel3.Controls.Add(this.chk_CompSymbol);
|
||||
this.panel3.Controls.Add(this.cb_authorType);
|
||||
this.panel3.Controls.Add(this.cb_divType);
|
||||
this.panel3.Controls.Add(this.cb_divNum);
|
||||
@@ -152,7 +154,7 @@ namespace UniMarc.마크
|
||||
this.panel3.Controls.Add(this.label1);
|
||||
this.panel3.Location = new System.Drawing.Point(12, 42);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(569, 30);
|
||||
this.panel3.Size = new System.Drawing.Size(569, 60);
|
||||
this.panel3.TabIndex = 2;
|
||||
//
|
||||
// cb_authorType
|
||||
@@ -215,7 +217,7 @@ namespace UniMarc.마크
|
||||
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel4.Controls.Add(this.tb_listName);
|
||||
this.panel4.Controls.Add(this.label3);
|
||||
this.panel4.Location = new System.Drawing.Point(12, 78);
|
||||
this.panel4.Location = new System.Drawing.Point(12, 108);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(569, 30);
|
||||
this.panel4.TabIndex = 2;
|
||||
@@ -240,7 +242,7 @@ namespace UniMarc.마크
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label2.Location = new System.Drawing.Point(124, 118);
|
||||
this.label2.Location = new System.Drawing.Point(124, 148);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(345, 13);
|
||||
this.label2.TabIndex = 1;
|
||||
@@ -248,7 +250,7 @@ namespace UniMarc.마크
|
||||
//
|
||||
// progressBar1
|
||||
//
|
||||
this.progressBar1.Location = new System.Drawing.Point(12, 293);
|
||||
this.progressBar1.Location = new System.Drawing.Point(12, 323);
|
||||
this.progressBar1.Name = "progressBar1";
|
||||
this.progressBar1.Size = new System.Drawing.Size(569, 23);
|
||||
this.progressBar1.Step = 1;
|
||||
@@ -258,7 +260,7 @@ namespace UniMarc.마크
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.rtb_etc);
|
||||
this.groupBox1.Location = new System.Drawing.Point(15, 134);
|
||||
this.groupBox1.Location = new System.Drawing.Point(15, 164);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(566, 153);
|
||||
this.groupBox1.TabIndex = 4;
|
||||
@@ -293,11 +295,21 @@ namespace UniMarc.마크
|
||||
this.label4.TabIndex = 3;
|
||||
this.label4.Text = "차";
|
||||
//
|
||||
// chk_CompSymbol
|
||||
//
|
||||
this.chk_CompSymbol.AutoSize = true;
|
||||
this.chk_CompSymbol.Location = new System.Drawing.Point(11, 34);
|
||||
this.chk_CompSymbol.Name = "chk_CompSymbol";
|
||||
this.chk_CompSymbol.Size = new System.Drawing.Size(242, 16);
|
||||
this.chk_CompSymbol.TabIndex = 2;
|
||||
this.chk_CompSymbol.Text = "4인 이상 저자시 출판사로 저자기호 생성";
|
||||
this.chk_CompSymbol.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Marc_mkList
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(592, 328);
|
||||
this.ClientSize = new System.Drawing.Size(592, 357);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.tb_outnum);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
@@ -352,5 +364,6 @@ namespace UniMarc.마크
|
||||
private System.Windows.Forms.RichTextBox rtb_etc;
|
||||
private System.Windows.Forms.TextBox tb_outnum;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.CheckBox chk_CompSymbol;
|
||||
}
|
||||
}
|
||||
@@ -185,8 +185,9 @@ namespace UniMarc.마크
|
||||
if (Author_res[1].Length > 1) Author[0] = Author_res[1];
|
||||
if (Author_res[2].Length > 1) Author[0] = Author_res[2];
|
||||
|
||||
//UPDATE: [22.09.20 추가] 245d에 [외]가 있는 경우 저자가 아닌 출판사로 저자기호 생성
|
||||
if (Author_res[3].IndexOf("[외]") > -1) Author[0] = Marc[5];
|
||||
if(chk_CompSymbol.Checked)
|
||||
if (Author_res[3].IndexOf("[외]") > -1)
|
||||
Author[0] = Marc[5];
|
||||
|
||||
string tmp_ViewMarc = st.ConvertMarcType(insert_marc_data[14]);
|
||||
|
||||
|
||||
407
unimarc/unimarc/마크/Search_Infor.Designer.cs
generated
407
unimarc/unimarc/마크/Search_Infor.Designer.cs
generated
@@ -43,6 +43,7 @@
|
||||
this.price = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.pub_date = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Marc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.marc2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.etc1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.etc2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
@@ -55,16 +56,35 @@
|
||||
this.cb_filterDetail = new System.Windows.Forms.ComboBox();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.dtp_End = new System.Windows.Forms.DateTimePicker();
|
||||
this.dtp_Start = new System.Windows.Forms.DateTimePicker();
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.CkDateTime = new System.Windows.Forms.CheckBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.tbTitle = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.cbGrade = new System.Windows.Forms.ComboBox();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.tbWriter = new System.Windows.Forms.TextBox();
|
||||
this.tbPublisher = new System.Windows.Forms.TextBox();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.cbUser = new System.Windows.Forms.ComboBox();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.tbISBN = new System.Windows.Forms.TextBox();
|
||||
this.DtpStartTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.DtpEndTime = new System.Windows.Forms.DateTimePicker();
|
||||
this.btnViewOldData = new System.Windows.Forms.Button();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.panel4.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
@@ -72,7 +92,7 @@
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(14, 11);
|
||||
this.label1.Location = new System.Drawing.Point(10, 35);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 5;
|
||||
@@ -104,14 +124,17 @@
|
||||
this.price,
|
||||
this.pub_date,
|
||||
this.Marc,
|
||||
this.marc2,
|
||||
this.etc1,
|
||||
this.etc2});
|
||||
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dataGridView1.MultiSelect = false;
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.RowHeadersWidth = 20;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1530, 630);
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1530, 576);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
this.dataGridView1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellDoubleClick);
|
||||
//
|
||||
@@ -182,6 +205,12 @@
|
||||
this.Marc.Name = "Marc";
|
||||
this.Marc.Visible = false;
|
||||
//
|
||||
// marc2
|
||||
//
|
||||
this.marc2.HeaderText = "marc2";
|
||||
this.marc2.Name = "marc2";
|
||||
this.marc2.Visible = false;
|
||||
//
|
||||
// etc1
|
||||
//
|
||||
this.etc1.HeaderText = "비고1";
|
||||
@@ -196,26 +225,31 @@
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 11);
|
||||
this.label2.Location = new System.Drawing.Point(341, -3);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(41, 12);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "검색어";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.label2.Visible = false;
|
||||
//
|
||||
// tb_search
|
||||
//
|
||||
this.tb_search.Location = new System.Drawing.Point(55, 7);
|
||||
this.tb_search.Location = new System.Drawing.Point(182, 26);
|
||||
this.tb_search.Name = "tb_search";
|
||||
this.tb_search.Size = new System.Drawing.Size(222, 21);
|
||||
this.tb_search.TabIndex = 6;
|
||||
this.tb_search.Visible = false;
|
||||
this.tb_search.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
|
||||
//
|
||||
// btn_search
|
||||
//
|
||||
this.btn_search.Location = new System.Drawing.Point(288, 6);
|
||||
this.btn_search.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_search.Location = new System.Drawing.Point(485, 1);
|
||||
this.btn_search.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btn_search.Name = "btn_search";
|
||||
this.btn_search.Size = new System.Drawing.Size(75, 23);
|
||||
this.tableLayoutPanel1.SetRowSpan(this.btn_search, 2);
|
||||
this.btn_search.Size = new System.Drawing.Size(120, 40);
|
||||
this.btn_search.TabIndex = 7;
|
||||
this.btn_search.Text = "검 색";
|
||||
this.btn_search.UseVisualStyleBackColor = true;
|
||||
@@ -225,17 +259,21 @@
|
||||
//
|
||||
this.cb_filter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_filter.FormattingEnabled = true;
|
||||
this.cb_filter.Location = new System.Drawing.Point(11, 7);
|
||||
this.cb_filter.Location = new System.Drawing.Point(176, 53);
|
||||
this.cb_filter.Name = "cb_filter";
|
||||
this.cb_filter.Size = new System.Drawing.Size(111, 20);
|
||||
this.cb_filter.TabIndex = 50;
|
||||
this.cb_filter.Visible = false;
|
||||
this.cb_filter.SelectedIndexChanged += new System.EventHandler(this.cb_filter_SelectedIndexChanged);
|
||||
//
|
||||
// btn_close
|
||||
//
|
||||
this.btn_close.Location = new System.Drawing.Point(371, 6);
|
||||
this.btn_close.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_close.Location = new System.Drawing.Point(606, 1);
|
||||
this.btn_close.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btn_close.Name = "btn_close";
|
||||
this.btn_close.Size = new System.Drawing.Size(75, 23);
|
||||
this.tableLayoutPanel1.SetRowSpan(this.btn_close, 2);
|
||||
this.btn_close.Size = new System.Drawing.Size(122, 40);
|
||||
this.btn_close.TabIndex = 51;
|
||||
this.btn_close.Text = "닫 기";
|
||||
this.btn_close.UseVisualStyleBackColor = true;
|
||||
@@ -245,7 +283,7 @@
|
||||
//
|
||||
this.cb_data_area.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_data_area.FormattingEnabled = true;
|
||||
this.cb_data_area.Location = new System.Drawing.Point(69, 7);
|
||||
this.cb_data_area.Location = new System.Drawing.Point(65, 31);
|
||||
this.cb_data_area.Name = "cb_data_area";
|
||||
this.cb_data_area.Size = new System.Drawing.Size(145, 20);
|
||||
this.cb_data_area.TabIndex = 52;
|
||||
@@ -253,21 +291,25 @@
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(458, 11);
|
||||
this.tableLayoutPanel1.SetColumnSpan(this.label3, 2);
|
||||
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label3.Location = new System.Drawing.Point(485, 42);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(53, 12);
|
||||
this.label3.Size = new System.Drawing.Size(243, 23);
|
||||
this.label3.TabIndex = 53;
|
||||
this.label3.Text = "검색결과";
|
||||
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// cb_filterDetail
|
||||
//
|
||||
this.cb_filterDetail.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_filterDetail.FormattingEnabled = true;
|
||||
this.cb_filterDetail.Location = new System.Drawing.Point(128, 7);
|
||||
this.cb_filterDetail.Location = new System.Drawing.Point(293, 53);
|
||||
this.cb_filterDetail.Name = "cb_filterDetail";
|
||||
this.cb_filterDetail.Size = new System.Drawing.Size(111, 20);
|
||||
this.cb_filterDetail.TabIndex = 50;
|
||||
this.cb_filterDetail.Visible = false;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
@@ -277,66 +319,307 @@
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1530, 36);
|
||||
this.panel1.Size = new System.Drawing.Size(1530, 90);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// panel5
|
||||
//
|
||||
this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel5.Controls.Add(this.label2);
|
||||
this.panel5.Controls.Add(this.btn_search);
|
||||
this.panel5.Controls.Add(this.btn_close);
|
||||
this.panel5.Controls.Add(this.label3);
|
||||
this.panel5.Controls.Add(this.cb_filterDetail);
|
||||
this.panel5.Controls.Add(this.cb_filter);
|
||||
this.panel5.Controls.Add(this.tb_search);
|
||||
this.panel5.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel5.Location = new System.Drawing.Point(676, 0);
|
||||
this.panel5.Controls.Add(this.dtp_End);
|
||||
this.panel5.Controls.Add(this.dtp_Start);
|
||||
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel5.Location = new System.Drawing.Point(960, 0);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(653, 36);
|
||||
this.panel5.Size = new System.Drawing.Size(570, 90);
|
||||
this.panel5.TabIndex = 56;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel4.Controls.Add(this.dtp_End);
|
||||
this.panel4.Controls.Add(this.dtp_Start);
|
||||
this.panel4.Controls.Add(this.cb_filterDetail);
|
||||
this.panel4.Controls.Add(this.label4);
|
||||
this.panel4.Controls.Add(this.cb_filter);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel4.Location = new System.Drawing.Point(229, 0);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(447, 36);
|
||||
this.panel4.TabIndex = 55;
|
||||
//
|
||||
// dtp_End
|
||||
//
|
||||
this.dtp_End.CustomFormat = "yyyy-MM-dd";
|
||||
this.dtp_End.Enabled = false;
|
||||
this.dtp_End.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dtp_End.Location = new System.Drawing.Point(354, 7);
|
||||
this.dtp_End.Location = new System.Drawing.Point(406, 46);
|
||||
this.dtp_End.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.dtp_End.Name = "dtp_End";
|
||||
this.dtp_End.Size = new System.Drawing.Size(82, 21);
|
||||
this.dtp_End.Size = new System.Drawing.Size(112, 21);
|
||||
this.dtp_End.TabIndex = 51;
|
||||
this.dtp_End.Visible = false;
|
||||
//
|
||||
// dtp_Start
|
||||
//
|
||||
this.dtp_Start.CustomFormat = "yyyy-MM-01";
|
||||
this.dtp_Start.Enabled = false;
|
||||
this.dtp_Start.CustomFormat = "yyyy-MM-dd";
|
||||
this.dtp_Start.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.dtp_Start.Location = new System.Drawing.Point(254, 7);
|
||||
this.dtp_Start.Location = new System.Drawing.Point(407, 14);
|
||||
this.dtp_Start.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.dtp_Start.Name = "dtp_Start";
|
||||
this.dtp_Start.Size = new System.Drawing.Size(82, 21);
|
||||
this.dtp_Start.Size = new System.Drawing.Size(111, 21);
|
||||
this.dtp_Start.TabIndex = 51;
|
||||
this.dtp_Start.Visible = false;
|
||||
//
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.panel4.Controls.Add(this.tableLayoutPanel1);
|
||||
this.panel4.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel4.Location = new System.Drawing.Point(229, 0);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(731, 90);
|
||||
this.panel4.TabIndex = 55;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||
this.tableLayoutPanel1.ColumnCount = 6;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.CkDateTime, 4, 3);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label5, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_close, 5, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_search, 4, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbTitle, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label4, 2, 3);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label6, 0, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cbGrade, 3, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label7, 0, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbWriter, 1, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbPublisher, 1, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label8, 2, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label9, 2, 1);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label10, 2, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cbUser, 3, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label11, 0, 3);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbISBN, 3, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.DtpStartTime, 1, 3);
|
||||
this.tableLayoutPanel1.Controls.Add(this.DtpEndTime, 3, 3);
|
||||
this.tableLayoutPanel1.Controls.Add(this.label3, 4, 2);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnViewOldData, 5, 3);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
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 = 4;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 31.37255F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 32.02614F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 36.60131F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(729, 88);
|
||||
this.tableLayoutPanel1.TabIndex = 54;
|
||||
//
|
||||
// CkDateTime
|
||||
//
|
||||
this.CkDateTime.AutoSize = true;
|
||||
this.CkDateTime.Checked = true;
|
||||
this.CkDateTime.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.CkDateTime.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.CkDateTime.Location = new System.Drawing.Point(488, 69);
|
||||
this.CkDateTime.Name = "CkDateTime";
|
||||
this.CkDateTime.Size = new System.Drawing.Size(114, 15);
|
||||
this.CkDateTime.TabIndex = 53;
|
||||
this.CkDateTime.Text = "날짜 검색 사용";
|
||||
this.CkDateTime.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label5.Location = new System.Drawing.Point(1, 1);
|
||||
this.label5.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(120, 19);
|
||||
this.label5.TabIndex = 5;
|
||||
this.label5.Text = "도서명";
|
||||
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// tbTitle
|
||||
//
|
||||
this.tbTitle.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbTitle.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbTitle.Location = new System.Drawing.Point(122, 1);
|
||||
this.tbTitle.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tbTitle.Name = "tbTitle";
|
||||
this.tbTitle.Size = new System.Drawing.Size(120, 20);
|
||||
this.tbTitle.TabIndex = 6;
|
||||
this.tbTitle.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label4.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.label4.Location = new System.Drawing.Point(338, 12);
|
||||
this.label4.Location = new System.Drawing.Point(243, 66);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(14, 12);
|
||||
this.label4.Size = new System.Drawing.Size(120, 21);
|
||||
this.label4.TabIndex = 53;
|
||||
this.label4.Text = "~";
|
||||
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label6.Location = new System.Drawing.Point(1, 21);
|
||||
this.label6.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(120, 20);
|
||||
this.label6.TabIndex = 5;
|
||||
this.label6.Text = "저자";
|
||||
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// cbGrade
|
||||
//
|
||||
this.cbGrade.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cbGrade.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbGrade.FormattingEnabled = true;
|
||||
this.cbGrade.Items.AddRange(new object[] {
|
||||
"전체",
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
"D"});
|
||||
this.cbGrade.Location = new System.Drawing.Point(364, 21);
|
||||
this.cbGrade.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cbGrade.Name = "cbGrade";
|
||||
this.cbGrade.Size = new System.Drawing.Size(120, 20);
|
||||
this.cbGrade.TabIndex = 50;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label7.Location = new System.Drawing.Point(1, 42);
|
||||
this.label7.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(120, 23);
|
||||
this.label7.TabIndex = 5;
|
||||
this.label7.Text = "출판사";
|
||||
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// tbWriter
|
||||
//
|
||||
this.tbWriter.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbWriter.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbWriter.Location = new System.Drawing.Point(122, 21);
|
||||
this.tbWriter.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tbWriter.Name = "tbWriter";
|
||||
this.tbWriter.Size = new System.Drawing.Size(120, 20);
|
||||
this.tbWriter.TabIndex = 6;
|
||||
this.tbWriter.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
|
||||
//
|
||||
// tbPublisher
|
||||
//
|
||||
this.tbPublisher.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbPublisher.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbPublisher.Location = new System.Drawing.Point(122, 42);
|
||||
this.tbPublisher.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tbPublisher.Name = "tbPublisher";
|
||||
this.tbPublisher.Size = new System.Drawing.Size(120, 20);
|
||||
this.tbPublisher.TabIndex = 6;
|
||||
this.tbPublisher.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label8.Location = new System.Drawing.Point(243, 1);
|
||||
this.label8.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(120, 19);
|
||||
this.label8.TabIndex = 5;
|
||||
this.label8.Text = "ISBN";
|
||||
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label9.Location = new System.Drawing.Point(243, 21);
|
||||
this.label9.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(120, 20);
|
||||
this.label9.TabIndex = 5;
|
||||
this.label9.Text = "등급";
|
||||
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label10.Location = new System.Drawing.Point(243, 42);
|
||||
this.label10.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(120, 23);
|
||||
this.label10.TabIndex = 5;
|
||||
this.label10.Text = "작성자";
|
||||
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// cbUser
|
||||
//
|
||||
this.cbUser.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cbUser.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbUser.FormattingEnabled = true;
|
||||
this.cbUser.Location = new System.Drawing.Point(364, 42);
|
||||
this.cbUser.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cbUser.Name = "cbUser";
|
||||
this.cbUser.Size = new System.Drawing.Size(120, 20);
|
||||
this.cbUser.TabIndex = 50;
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label11.Location = new System.Drawing.Point(1, 66);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(120, 21);
|
||||
this.label11.TabIndex = 5;
|
||||
this.label11.Text = "날짜";
|
||||
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// tbISBN
|
||||
//
|
||||
this.tbISBN.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbISBN.Font = new System.Drawing.Font("굴림", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbISBN.Location = new System.Drawing.Point(364, 1);
|
||||
this.tbISBN.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tbISBN.Name = "tbISBN";
|
||||
this.tbISBN.Size = new System.Drawing.Size(120, 20);
|
||||
this.tbISBN.TabIndex = 6;
|
||||
this.tbISBN.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_search_KeyDown);
|
||||
//
|
||||
// DtpStartTime
|
||||
//
|
||||
this.DtpStartTime.CustomFormat = "yyyy-MM-dd";
|
||||
this.DtpStartTime.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.DtpStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.DtpStartTime.Location = new System.Drawing.Point(122, 66);
|
||||
this.DtpStartTime.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.DtpStartTime.Name = "DtpStartTime";
|
||||
this.DtpStartTime.Size = new System.Drawing.Size(120, 21);
|
||||
this.DtpStartTime.TabIndex = 54;
|
||||
//
|
||||
// DtpEndTime
|
||||
//
|
||||
this.DtpEndTime.CustomFormat = "yyyy-MM-dd";
|
||||
this.DtpEndTime.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.DtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||
this.DtpEndTime.Location = new System.Drawing.Point(364, 66);
|
||||
this.DtpEndTime.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.DtpEndTime.Name = "DtpEndTime";
|
||||
this.DtpEndTime.Size = new System.Drawing.Size(120, 21);
|
||||
this.DtpEndTime.TabIndex = 54;
|
||||
//
|
||||
// btnViewOldData
|
||||
//
|
||||
this.btnViewOldData.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnViewOldData.Location = new System.Drawing.Point(606, 66);
|
||||
this.btnViewOldData.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnViewOldData.Name = "btnViewOldData";
|
||||
this.btnViewOldData.Size = new System.Drawing.Size(122, 21);
|
||||
this.btnViewOldData.TabIndex = 52;
|
||||
this.btnViewOldData.Text = "이전 데이터 보기";
|
||||
this.btnViewOldData.UseVisualStyleBackColor = true;
|
||||
this.btnViewOldData.Click += new System.EventHandler(this.btnViewOldData_Click);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
@@ -346,16 +629,16 @@
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(229, 36);
|
||||
this.panel3.Size = new System.Drawing.Size(229, 90);
|
||||
this.panel3.TabIndex = 54;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.dataGridView1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(0, 36);
|
||||
this.panel2.Location = new System.Drawing.Point(0, 90);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1530, 630);
|
||||
this.panel2.Size = new System.Drawing.Size(1530, 576);
|
||||
this.panel2.TabIndex = 55;
|
||||
//
|
||||
// Search_Infor
|
||||
@@ -373,7 +656,8 @@
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.panel5.PerformLayout();
|
||||
this.panel4.ResumeLayout(false);
|
||||
this.panel4.PerformLayout();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel3.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
@@ -400,6 +684,25 @@
|
||||
private System.Windows.Forms.DateTimePicker dtp_Start;
|
||||
private System.Windows.Forms.DateTimePicker dtp_End;
|
||||
private System.Windows.Forms.Label label4;
|
||||
public System.Windows.Forms.DataGridView dataGridView1;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.TextBox tbTitle;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox tbWriter;
|
||||
private System.Windows.Forms.TextBox tbPublisher;
|
||||
private System.Windows.Forms.ComboBox cbGrade;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.ComboBox cbUser;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.TextBox tbISBN;
|
||||
private System.Windows.Forms.DateTimePicker DtpStartTime;
|
||||
private System.Windows.Forms.DateTimePicker DtpEndTime;
|
||||
private System.Windows.Forms.CheckBox CkDateTime;
|
||||
private System.Windows.Forms.Button btnViewOldData;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn grade;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn User;
|
||||
@@ -412,8 +715,8 @@
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn price;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn pub_date;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Marc;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn marc2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn etc2;
|
||||
public System.Windows.Forms.DataGridView dataGridView1;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -39,19 +40,19 @@ namespace WindowsFormsApp1.Mac
|
||||
dataGridView1.Rows.Clear();
|
||||
|
||||
string Table = "Marc";
|
||||
string tQuery = MakeWHEREQurey();
|
||||
if (cb_data_area.SelectedIndex == 0)
|
||||
{
|
||||
db.DBcon();
|
||||
|
||||
(string target, string searchText) = setting_target(true);
|
||||
string WhereQuery = MakeWHEREQurey(target, searchText);
|
||||
|
||||
//(string target, string searchText) = setting_target(true);
|
||||
//string WhereQuery = MakeWHEREQurey(target, searchText);
|
||||
|
||||
string Area =
|
||||
"`idx`, `grade`, `user`, `date`, `isbn`, `서명`, "
|
||||
+ "`총서명`, `저자`, `출판사`, `가격`, `출판년월`, "
|
||||
+ "`marc`, `비고1`, `비고2`";
|
||||
|
||||
string cmd = string.Format("SELECT {0} FROM `{1}` WHERE `compidx` = \"{3}\" {2};", Area, Table, WhereQuery, compidx);
|
||||
+ "`marc`,`marc1`, `비고1`, `비고2`";
|
||||
string cmd = string.Format("SELECT {0} FROM `{1}` WHERE `compidx` = \"{3}\" {2};", Area, Table, tQuery, compidx);
|
||||
db.DB_Send_CMD_Search_ApplyGrid(cmd, dataGridView1);
|
||||
// string db_res = db.DB_Send_CMD_Search(cmd);
|
||||
// string[] tmp_arr = db_res.Split('|');
|
||||
@@ -65,10 +66,10 @@ namespace WindowsFormsApp1.Mac
|
||||
string Area = "`idx`, `grade`, `isbn`, `book_name`, `series`, `author`, "
|
||||
+ "`book_comp`, `price`, `years`, `marc`, `etc`";
|
||||
|
||||
(string target, string searchText) = setting_target(false);
|
||||
string WhereQuery = MakeWHEREQurey(target, searchText);
|
||||
//(string target, string searchText) = setting_target(false);
|
||||
//string WhereQuery = MakeWHEREQurey(target, searchText);
|
||||
|
||||
string cmd = string.Format("SELECT {0} FROM `{1}` {2};", Area, Table, WhereQuery);
|
||||
string cmd = string.Format("SELECT {0} FROM `{1}` WHERE {2};", Area, Table, tQuery);
|
||||
string db_res = db.DB_Send_CMD_Search(cmd);
|
||||
string[] tmp_arr = db_res.Split('|');
|
||||
inputGrid_ClDB(tmp_arr);
|
||||
@@ -105,7 +106,70 @@ namespace WindowsFormsApp1.Mac
|
||||
}
|
||||
return Where;
|
||||
}
|
||||
string MakeWHEREQurey()
|
||||
{
|
||||
string tWhere = string.Empty;
|
||||
string tText = string.Empty;
|
||||
string[] tTextBox = new string[] { tbTitle.Text, tbWriter.Text, tbPublisher.Text, tbISBN.Text, Change_Grade(cbGrade.Text), cbUser.Text };
|
||||
string[] tTitle_IDX_0 = new string[] { "서명", "저자", "출판사", "isbn", "grade", "user", "date" };
|
||||
string[] tTitle_IDX_1 = new string[] { "book_name", "author", "book_comp", "isbn", "grade"};
|
||||
if (cb_data_area.SelectedIndex == 0)
|
||||
{
|
||||
for (int i = 0; i < tTitle_IDX_0.Length; i++)
|
||||
{
|
||||
if (tTextBox.Length > i && tTextBox[i] != "")
|
||||
{
|
||||
if (i < 4)
|
||||
{
|
||||
tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_0[i], tTextBox[i]);
|
||||
tWhere += tText;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tTextBox[i] != "전체")
|
||||
{
|
||||
tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_0[i], tTextBox[i]);
|
||||
tWhere += tText;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (i == tTitle_IDX_0.Length - 1 && CkDateTime.Checked && DtpStartTime.Value <= DtpEndTime.Value)
|
||||
{
|
||||
string start = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpStartTime.Value);
|
||||
|
||||
string end = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DtpEndTime.Value);
|
||||
tWhere += string.Format("AND `date` BETWEEN \"{0}\" AND \"{1}\"", start, end);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < tTitle_IDX_1.Length; i++)
|
||||
{
|
||||
if (tTextBox.Length > i && tTextBox[i] != "")
|
||||
{
|
||||
|
||||
if (i < 4)
|
||||
{
|
||||
tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]);
|
||||
if (tWhere == "") tText = string.Format("`{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]);
|
||||
tWhere += tText;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tTextBox[i] != "전체")
|
||||
{
|
||||
tText = string.Format("AND `{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]);
|
||||
if (tWhere == "") tText = string.Format("`{0}` LIKE \"%{1}%\"", tTitle_IDX_1[i], tTextBox[i]);
|
||||
tWhere += tText;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return tWhere;
|
||||
}
|
||||
/// <summary>
|
||||
/// 검색결과에 따라 Grid를 새로 그림
|
||||
/// </summary>
|
||||
@@ -295,7 +359,7 @@ namespace WindowsFormsApp1.Mac
|
||||
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int row = e.RowIndex;
|
||||
|
||||
if (row < 0) return;
|
||||
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
|
||||
|
||||
if (row < 0)
|
||||
@@ -332,19 +396,53 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
private void cb_data_area_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
cb_filter.Items.Clear();
|
||||
List<string> filter = new List<string>
|
||||
{
|
||||
"전체", "도서명", "저자", "출판사", "ISBN", "등급"
|
||||
};
|
||||
|
||||
if (cb_data_area.SelectedIndex == 0) {
|
||||
if (cb_data_area.SelectedIndex == 0)
|
||||
{
|
||||
db.DBcon();
|
||||
filter.Add("작성자");
|
||||
filter.Add("날짜");
|
||||
|
||||
cbUser.Items.Clear();
|
||||
cbUser.Items.Add("전체");
|
||||
string compName = main.toolStripLabel2.Text;
|
||||
string cmd = string.Format("SELECT `name` FROM `User_Data` WHERE `affil` = \"{0}\"", compName);
|
||||
string res = db.self_Made_Cmd(cmd);
|
||||
List<string> Aryres = res.Split('|').ToList();
|
||||
Aryres.RemoveAll(x => x == "");
|
||||
cbUser.Items.AddRange(Aryres.ToArray());
|
||||
//foreach (string PName in Aryres)
|
||||
//{
|
||||
// if (PName == "")
|
||||
// continue;
|
||||
// cbUser.Items.Add(PName);
|
||||
//}
|
||||
cbUser.SelectedIndex = 0;
|
||||
DtpStartTime.Enabled = true;
|
||||
DtpEndTime.Enabled = true;
|
||||
cbUser.Enabled = true;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
db.DBcon_cl();
|
||||
cbUser.Items.Clear();
|
||||
cbUser.Items.Add("전체");
|
||||
cbUser.SelectedIndex = 0;
|
||||
DtpStartTime.Enabled = false;
|
||||
DtpEndTime.Enabled = false;
|
||||
cbUser.Enabled = false;
|
||||
}
|
||||
cbGrade.SelectedIndex = 0;
|
||||
|
||||
|
||||
string[] filterAry = filter.ToArray();
|
||||
|
||||
cb_filter.Items.AddRange(filterAry);
|
||||
cb_filter.SelectedIndex = 0;
|
||||
}
|
||||
@@ -388,5 +486,35 @@ namespace WindowsFormsApp1.Mac
|
||||
cb_filterDetail.Enabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnViewOldData_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null) return;
|
||||
int row = dataGridView1.CurrentCell.RowIndex;
|
||||
if (row < 0) return;
|
||||
string idx = dataGridView1.Rows[row].Cells["idx"].Value.ToString();
|
||||
|
||||
if (row < 0)
|
||||
return;
|
||||
if (dataGridView1.Rows[row].Cells["marc2"].Value.ToString() == "")
|
||||
{
|
||||
MessageBox.Show("이전에 저장된 MARC 데이터가 없습니다.");
|
||||
return;
|
||||
}
|
||||
Marc_Plan_Sub_MarcEdit me = new Marc_Plan_Sub_MarcEdit(this);
|
||||
string[] Marc = {
|
||||
dataGridView1.Rows[row].Cells["marc2"].Value.ToString(),
|
||||
idx,
|
||||
"",
|
||||
"",
|
||||
dataGridView1.Rows[row].Cells["ISBN"].Value.ToString()
|
||||
};
|
||||
|
||||
me.row = row;
|
||||
me.UserName = main.botUserLabel.Text;
|
||||
me.Init(Marc,true);
|
||||
me.btn_EditNum.Enabled = false;
|
||||
me.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,6 +153,9 @@
|
||||
<metadata name="Marc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="marc2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="etc1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
347
unimarc/unimarc/마크/Set_Macro.Designer.cs
generated
347
unimarc/unimarc/마크/Set_Macro.Designer.cs
generated
@@ -30,61 +30,144 @@
|
||||
{
|
||||
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();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.cb_EncodingType = new System.Windows.Forms.ComboBox();
|
||||
this.btnClear = new System.Windows.Forms.Button();
|
||||
this.btn_ApplyMacro = new System.Windows.Forms.Button();
|
||||
this.cb_SearchList = new System.Windows.Forms.ComboBox();
|
||||
this.btn_ListRemove = new System.Windows.Forms.Button();
|
||||
this.btn_ListSave = new System.Windows.Forms.Button();
|
||||
this.btnUp = new System.Windows.Forms.Button();
|
||||
this.btnDown = new System.Windows.Forms.Button();
|
||||
this.btnDelete = new System.Windows.Forms.Button();
|
||||
this.btn_ListRemove = new System.Windows.Forms.Button();
|
||||
this.btnSearch = new System.Windows.Forms.Button();
|
||||
this.tbSearch = new System.Windows.Forms.TextBox();
|
||||
this.btn_AddList = new System.Windows.Forms.Button();
|
||||
this.btn_Close = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.MacroGrid = new System.Windows.Forms.DataGridView();
|
||||
this.idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.TagNum = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Macro = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Check = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.TagRun = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Check = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.dgvSetting = new System.Windows.Forms.DataGridView();
|
||||
this.SetIDX = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.SetTag = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.SetMacro = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.SetRuncode = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.panel1.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.MacroGrid)).BeginInit();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvSetting)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.panel1.Controls.Add(this.cb_EncodingType);
|
||||
this.panel1.Controls.Add(this.btn_ApplyMacro);
|
||||
this.panel1.Controls.Add(this.cb_SearchList);
|
||||
this.panel1.Controls.Add(this.btn_ListRemove);
|
||||
this.panel1.Controls.Add(this.btn_ListSave);
|
||||
this.panel1.Controls.Add(this.btn_AddList);
|
||||
this.panel1.Controls.Add(this.btn_Close);
|
||||
this.panel1.Controls.Add(this.label1);
|
||||
this.panel1.Controls.Add(this.tableLayoutPanel1);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(900, 35);
|
||||
this.panel1.Size = new System.Drawing.Size(1584, 32);
|
||||
this.panel1.TabIndex = 1;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.ColumnCount = 16;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 150F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 100F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 82F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cb_EncodingType, 9, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnClear, 4, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_ApplyMacro, 10, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.cb_SearchList, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_ListSave, 11, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnUp, 12, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnDown, 13, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnDelete, 14, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_ListRemove, 6, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnSearch, 3, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbSearch, 2, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_AddList, 5, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_Close, 15, 0);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tableLayoutPanel1.RowCount = 1;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1584, 32);
|
||||
this.tableLayoutPanel1.TabIndex = 13;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label1.Location = new System.Drawing.Point(6, 3);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(74, 26);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "목록 검색";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// cb_EncodingType
|
||||
//
|
||||
this.cb_EncodingType.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cb_EncodingType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_EncodingType.FormattingEnabled = true;
|
||||
this.cb_EncodingType.Items.AddRange(new object[] {
|
||||
"ANSI",
|
||||
"UTF-8",
|
||||
"UniCode"});
|
||||
this.cb_EncodingType.Location = new System.Drawing.Point(581, 7);
|
||||
this.cb_EncodingType.Location = new System.Drawing.Point(897, 5);
|
||||
this.cb_EncodingType.Margin = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
||||
this.cb_EncodingType.Name = "cb_EncodingType";
|
||||
this.cb_EncodingType.Size = new System.Drawing.Size(81, 20);
|
||||
this.cb_EncodingType.Size = new System.Drawing.Size(122, 20);
|
||||
this.cb_EncodingType.TabIndex = 10;
|
||||
this.cb_EncodingType.Visible = false;
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnClear.Location = new System.Drawing.Point(413, 3);
|
||||
this.btnClear.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(80, 26);
|
||||
this.btnClear.TabIndex = 12;
|
||||
this.btnClear.Text = "검색 초기화";
|
||||
this.btnClear.UseVisualStyleBackColor = true;
|
||||
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
|
||||
//
|
||||
// btn_ApplyMacro
|
||||
//
|
||||
this.btn_ApplyMacro.Location = new System.Drawing.Point(668, 6);
|
||||
this.btn_ApplyMacro.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_ApplyMacro.Location = new System.Drawing.Point(1019, 3);
|
||||
this.btn_ApplyMacro.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btn_ApplyMacro.Name = "btn_ApplyMacro";
|
||||
this.btn_ApplyMacro.Size = new System.Drawing.Size(78, 23);
|
||||
this.btn_ApplyMacro.Size = new System.Drawing.Size(120, 26);
|
||||
this.btn_ApplyMacro.TabIndex = 5;
|
||||
this.btn_ApplyMacro.Text = "매크로 적용";
|
||||
this.btn_ApplyMacro.UseVisualStyleBackColor = true;
|
||||
@@ -92,63 +175,121 @@
|
||||
//
|
||||
// cb_SearchList
|
||||
//
|
||||
this.cb_SearchList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.cb_SearchList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_SearchList.FormattingEnabled = true;
|
||||
this.cb_SearchList.Location = new System.Drawing.Point(72, 7);
|
||||
this.cb_SearchList.Location = new System.Drawing.Point(83, 5);
|
||||
this.cb_SearchList.Margin = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
||||
this.cb_SearchList.Name = "cb_SearchList";
|
||||
this.cb_SearchList.Size = new System.Drawing.Size(238, 20);
|
||||
this.cb_SearchList.Size = new System.Drawing.Size(150, 20);
|
||||
this.cb_SearchList.TabIndex = 4;
|
||||
this.cb_SearchList.SelectedIndexChanged += new System.EventHandler(this.cb_SearchList_SelectedIndexChanged);
|
||||
//
|
||||
// btn_ListRemove
|
||||
//
|
||||
this.btn_ListRemove.Location = new System.Drawing.Point(466, 6);
|
||||
this.btn_ListRemove.Name = "btn_ListRemove";
|
||||
this.btn_ListRemove.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_ListRemove.TabIndex = 3;
|
||||
this.btn_ListRemove.Text = "목록 제거";
|
||||
this.btn_ListRemove.UseVisualStyleBackColor = true;
|
||||
this.btn_ListRemove.Click += new System.EventHandler(this.btn_ListRemove_Click);
|
||||
//
|
||||
// btn_ListSave
|
||||
//
|
||||
this.btn_ListSave.Location = new System.Drawing.Point(391, 6);
|
||||
this.btn_ListSave.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_ListSave.Location = new System.Drawing.Point(1139, 3);
|
||||
this.btn_ListSave.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btn_ListSave.Name = "btn_ListSave";
|
||||
this.btn_ListSave.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_ListSave.Size = new System.Drawing.Size(120, 26);
|
||||
this.btn_ListSave.TabIndex = 3;
|
||||
this.btn_ListSave.Text = "목록 저장";
|
||||
this.btn_ListSave.UseVisualStyleBackColor = true;
|
||||
this.btn_ListSave.Click += new System.EventHandler(this.btn_ListSave_Click);
|
||||
//
|
||||
// btnUp
|
||||
//
|
||||
this.btnUp.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnUp.Location = new System.Drawing.Point(1259, 3);
|
||||
this.btnUp.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnUp.Name = "btnUp";
|
||||
this.btnUp.Size = new System.Drawing.Size(80, 26);
|
||||
this.btnUp.TabIndex = 3;
|
||||
this.btnUp.Text = "위로";
|
||||
this.btnUp.UseVisualStyleBackColor = true;
|
||||
this.btnUp.Click += new System.EventHandler(this.btnUp_Click);
|
||||
//
|
||||
// btnDown
|
||||
//
|
||||
this.btnDown.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnDown.Location = new System.Drawing.Point(1339, 3);
|
||||
this.btnDown.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnDown.Name = "btnDown";
|
||||
this.btnDown.Size = new System.Drawing.Size(80, 26);
|
||||
this.btnDown.TabIndex = 3;
|
||||
this.btnDown.Text = "아래로";
|
||||
this.btnDown.UseVisualStyleBackColor = true;
|
||||
this.btnDown.Click += new System.EventHandler(this.btnDown_Click);
|
||||
//
|
||||
// btnDelete
|
||||
//
|
||||
this.btnDelete.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnDelete.Location = new System.Drawing.Point(1419, 3);
|
||||
this.btnDelete.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnDelete.Name = "btnDelete";
|
||||
this.btnDelete.Size = new System.Drawing.Size(80, 26);
|
||||
this.btnDelete.TabIndex = 3;
|
||||
this.btnDelete.Text = "삭제";
|
||||
this.btnDelete.UseVisualStyleBackColor = true;
|
||||
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
|
||||
//
|
||||
// btn_ListRemove
|
||||
//
|
||||
this.btn_ListRemove.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_ListRemove.Location = new System.Drawing.Point(573, 3);
|
||||
this.btn_ListRemove.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btn_ListRemove.Name = "btn_ListRemove";
|
||||
this.btn_ListRemove.Size = new System.Drawing.Size(80, 26);
|
||||
this.btn_ListRemove.TabIndex = 3;
|
||||
this.btn_ListRemove.Text = "목록 제거";
|
||||
this.btn_ListRemove.UseVisualStyleBackColor = true;
|
||||
this.btn_ListRemove.Click += new System.EventHandler(this.btn_ListRemove_Click);
|
||||
//
|
||||
// btnSearch
|
||||
//
|
||||
this.btnSearch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnSearch.Location = new System.Drawing.Point(333, 3);
|
||||
this.btnSearch.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(80, 26);
|
||||
this.btnSearch.TabIndex = 12;
|
||||
this.btnSearch.Text = "검색";
|
||||
this.btnSearch.UseVisualStyleBackColor = true;
|
||||
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||
//
|
||||
// tbSearch
|
||||
//
|
||||
this.tbSearch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbSearch.Location = new System.Drawing.Point(233, 5);
|
||||
this.tbSearch.Margin = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
||||
this.tbSearch.Name = "tbSearch";
|
||||
this.tbSearch.Size = new System.Drawing.Size(100, 21);
|
||||
this.tbSearch.TabIndex = 11;
|
||||
//
|
||||
// btn_AddList
|
||||
//
|
||||
this.btn_AddList.Location = new System.Drawing.Point(316, 6);
|
||||
this.btn_AddList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_AddList.Location = new System.Drawing.Point(493, 3);
|
||||
this.btn_AddList.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btn_AddList.Name = "btn_AddList";
|
||||
this.btn_AddList.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_AddList.Size = new System.Drawing.Size(80, 26);
|
||||
this.btn_AddList.TabIndex = 3;
|
||||
this.btn_AddList.Text = "목록 생성";
|
||||
this.btn_AddList.Text = "신규 생성";
|
||||
this.btn_AddList.UseVisualStyleBackColor = true;
|
||||
this.btn_AddList.Click += new System.EventHandler(this.btn_AddList_Click);
|
||||
//
|
||||
// btn_Close
|
||||
//
|
||||
this.btn_Close.Location = new System.Drawing.Point(813, 6);
|
||||
this.btn_Close.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_Close.Location = new System.Drawing.Point(1499, 3);
|
||||
this.btn_Close.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.btn_Close.Name = "btn_Close";
|
||||
this.btn_Close.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_Close.Size = new System.Drawing.Size(82, 26);
|
||||
this.btn_Close.TabIndex = 2;
|
||||
this.btn_Close.Text = "닫 기";
|
||||
this.btn_Close.UseVisualStyleBackColor = true;
|
||||
this.btn_Close.Click += new System.EventHandler(this.btn_Close_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(13, 11);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(57, 12);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "목록 검색";
|
||||
//
|
||||
// MacroGrid
|
||||
//
|
||||
this.MacroGrid.AllowUserToAddRows = false;
|
||||
@@ -166,15 +307,17 @@
|
||||
this.idx,
|
||||
this.TagNum,
|
||||
this.Macro,
|
||||
this.TagRun,
|
||||
this.Check});
|
||||
this.MacroGrid.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.MacroGrid.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.MacroGrid.Location = new System.Drawing.Point(0, 0);
|
||||
this.MacroGrid.Name = "MacroGrid";
|
||||
this.MacroGrid.ReadOnly = true;
|
||||
this.MacroGrid.RowTemplate.Height = 23;
|
||||
this.MacroGrid.Size = new System.Drawing.Size(900, 572);
|
||||
this.MacroGrid.Size = new System.Drawing.Size(976, 575);
|
||||
this.MacroGrid.TabIndex = 0;
|
||||
this.MacroGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.MacroGrid_CellClick);
|
||||
this.MacroGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.MacroGrid_CellContentClick);
|
||||
this.MacroGrid.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.MacroGrid_RowPrePaint);
|
||||
//
|
||||
// idx
|
||||
//
|
||||
@@ -199,38 +342,117 @@
|
||||
this.Macro.ReadOnly = true;
|
||||
this.Macro.Width = 700;
|
||||
//
|
||||
// TagRun
|
||||
//
|
||||
this.TagRun.HeaderText = "Runcode";
|
||||
this.TagRun.Name = "TagRun";
|
||||
this.TagRun.ReadOnly = true;
|
||||
this.TagRun.Visible = false;
|
||||
//
|
||||
// Check
|
||||
//
|
||||
this.Check.FalseValue = "F";
|
||||
this.Check.HeaderText = "V";
|
||||
this.Check.HeaderText = "추가";
|
||||
this.Check.Name = "Check";
|
||||
this.Check.ReadOnly = true;
|
||||
this.Check.TrueValue = "T";
|
||||
this.Check.Width = 40;
|
||||
this.Check.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.Controls.Add(this.dgvSetting);
|
||||
this.panel3.Controls.Add(this.MacroGrid);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 35);
|
||||
this.panel3.Location = new System.Drawing.Point(0, 32);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(900, 572);
|
||||
this.panel3.Size = new System.Drawing.Size(1584, 575);
|
||||
this.panel3.TabIndex = 3;
|
||||
//
|
||||
// dgvSetting
|
||||
//
|
||||
this.dgvSetting.AllowUserToAddRows = false;
|
||||
this.dgvSetting.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle3.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dgvSetting.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dgvSetting.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvSetting.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.SetIDX,
|
||||
this.SetTag,
|
||||
this.SetMacro,
|
||||
this.SetRuncode});
|
||||
this.dgvSetting.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.dgvSetting.Location = new System.Drawing.Point(976, 0);
|
||||
this.dgvSetting.Name = "dgvSetting";
|
||||
this.dgvSetting.ReadOnly = true;
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
this.dgvSetting.RowHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgvSetting.RowHeadersWidth = 60;
|
||||
dataGridViewCellStyle7.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.dgvSetting.RowsDefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.dgvSetting.RowTemplate.Height = 23;
|
||||
this.dgvSetting.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dgvSetting.Size = new System.Drawing.Size(608, 575);
|
||||
this.dgvSetting.TabIndex = 0;
|
||||
this.dgvSetting.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.dgvSetting_RowPrePaint);
|
||||
//
|
||||
// SetIDX
|
||||
//
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.SetIDX.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.SetIDX.HeaderText = "IDX";
|
||||
this.SetIDX.Name = "SetIDX";
|
||||
this.SetIDX.ReadOnly = true;
|
||||
this.SetIDX.Visible = false;
|
||||
//
|
||||
// SetTag
|
||||
//
|
||||
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.SetTag.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.SetTag.HeaderText = "태그번호";
|
||||
this.SetTag.Name = "SetTag";
|
||||
this.SetTag.ReadOnly = true;
|
||||
//
|
||||
// SetMacro
|
||||
//
|
||||
this.SetMacro.HeaderText = "매크로";
|
||||
this.SetMacro.Name = "SetMacro";
|
||||
this.SetMacro.ReadOnly = true;
|
||||
this.SetMacro.Width = 600;
|
||||
//
|
||||
// SetRuncode
|
||||
//
|
||||
this.SetRuncode.HeaderText = "Runcode";
|
||||
this.SetRuncode.Name = "SetRuncode";
|
||||
this.SetRuncode.ReadOnly = true;
|
||||
this.SetRuncode.Visible = false;
|
||||
//
|
||||
// Set_Macro
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(900, 607);
|
||||
this.ClientSize = new System.Drawing.Size(1584, 607);
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Name = "Set_Macro";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.WindowsDefaultBounds;
|
||||
this.Text = "반출 옵션 선택";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Set_Macro_FormClosing);
|
||||
this.Load += new System.EventHandler(this.Set_Macro_Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.MacroGrid)).EndInit();
|
||||
this.panel3.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dgvSetting)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -249,9 +471,22 @@
|
||||
private System.Windows.Forms.ComboBox cb_SearchList;
|
||||
private System.Windows.Forms.Button btn_ApplyMacro;
|
||||
private System.Windows.Forms.ComboBox cb_EncodingType;
|
||||
private System.Windows.Forms.DataGridView dgvSetting;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn TagNum;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Macro;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn Check;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn TagRun;
|
||||
private System.Windows.Forms.DataGridViewButtonColumn Check;
|
||||
private System.Windows.Forms.Button btnDown;
|
||||
private System.Windows.Forms.Button btnUp;
|
||||
private System.Windows.Forms.Button btnDelete;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn SetIDX;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn SetTag;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn SetMacro;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn SetRuncode;
|
||||
private System.Windows.Forms.Button btnSearch;
|
||||
private System.Windows.Forms.TextBox tbSearch;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.Button btnClear;
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,9 @@ using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
using UniMarc.마크;
|
||||
using System.Xml.Linq;
|
||||
using System.Data.SqlTypes;
|
||||
using Microsoft.VisualBasic.Devices;
|
||||
|
||||
namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
@@ -40,30 +43,42 @@ namespace WindowsFormsApp1.Mac
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void Set_Macro_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
this.Dispose();
|
||||
}
|
||||
|
||||
private void Set_Macro_Load(object sender, EventArgs e)
|
||||
{
|
||||
db.DBcon();
|
||||
|
||||
Refresh_Macro_List();
|
||||
|
||||
string cmd = String.Format("SELECT `idx`, `Tag`, `Macro`, `RunCode` FROM `SetMacro` ORDER BY tag ASC, macro ASC;");
|
||||
//db.DB_Send_CMD_Search_ApplyGrid(cmd, MacroGrid);
|
||||
db.DB_Send_CMD_Search_GetGridData(cmd, MacroGrid);
|
||||
RunCode = new string[MacroGrid.RowCount];
|
||||
//for (int a = 0; a < MacroGrid.RowCount; a++)
|
||||
//{
|
||||
// //RunCode[a] = MacroGrid.Rows[a].Cells["Check"].Value.ToString();
|
||||
//}
|
||||
|
||||
//MakeGridCheckReload();
|
||||
}
|
||||
private List<string> mSearchItem = new List<string>();
|
||||
private void Refresh_Macro_List()
|
||||
{
|
||||
string cmd = string.Format("SELECT `listname` FROM `Comp_SaveMacro` WHERE `compidx` = \"{0}\";", compidx);
|
||||
string res = db.DB_Send_CMD_Search(cmd);
|
||||
foreach (string l in res.Split('|'))
|
||||
cb_SearchList.Items.Clear();
|
||||
mSearchItem = new List<string>();
|
||||
foreach (string tItems in res.Split('|'))
|
||||
{
|
||||
if (l == "")
|
||||
if (tItems == "")
|
||||
continue;
|
||||
cb_SearchList.Items.Add(l);
|
||||
cb_SearchList.Items.Add(tItems);
|
||||
mSearchItem.Add(tItems);
|
||||
}
|
||||
|
||||
cmd = String.Format("SELECT `idx`, `Tag`, `Macro`, `RunCode` FROM `SetMacro`;");
|
||||
db.DB_Send_CMD_Search_ApplyGrid(cmd, MacroGrid);
|
||||
MacroGrid.Sort(TagNum, ListSortDirection.Ascending);
|
||||
RunCode = new string[MacroGrid.RowCount];
|
||||
for (int a = 0; a < MacroGrid.RowCount; a++)
|
||||
{
|
||||
RunCode[a] = MacroGrid.Rows[a].Cells["Check"].Value.ToString();
|
||||
}
|
||||
|
||||
MakeGridCheckReload();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -71,10 +86,10 @@ namespace WindowsFormsApp1.Mac
|
||||
/// </summary>
|
||||
void MakeGridCheckReload()
|
||||
{
|
||||
for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
{
|
||||
MacroGrid.Rows[a].Cells["Check"].Value = "F";
|
||||
}
|
||||
//for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
//{
|
||||
// //MacroGrid.Rows[a].Cells["Check"].Value = "F";
|
||||
//}
|
||||
}
|
||||
|
||||
private void cb_SearchList_SelectedIndexChanged(object sender, EventArgs e)
|
||||
@@ -82,19 +97,41 @@ namespace WindowsFormsApp1.Mac
|
||||
string listname = cb_SearchList.SelectedItem.ToString();
|
||||
string cmd = string.Format("SELECT `Macroidx` FROM `Comp_SaveMacro` WHERE `compidx` = \"{0}\" AND `listname` = \"{1}\";", compidx, listname);
|
||||
string res = db.DB_Send_CMD_Search(cmd).Replace("|", "");
|
||||
string[] tData = res.Split(new string[] { "^" }, StringSplitOptions.RemoveEmptyEntries);
|
||||
List<int> tIDX = tData.ToList().ConvertAll(x => {
|
||||
int tReturn = 1;
|
||||
int.TryParse(x, out tReturn);
|
||||
return tReturn;
|
||||
});
|
||||
dgvSetting.Rows.Clear();
|
||||
|
||||
MakeGridCheckReload();
|
||||
|
||||
foreach (string l in res.Split('^'))
|
||||
for (int i = 0; i < tData.Length; i++)
|
||||
{
|
||||
for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
{
|
||||
if (MacroGrid.Rows[a].Cells["idx"].Value.ToString() == l)
|
||||
{
|
||||
MacroGrid.Rows[a].Cells["Check"].Value = "T";
|
||||
}
|
||||
}
|
||||
List<string> tRows = new List<string>();
|
||||
|
||||
tRows.Add(tData[i]);
|
||||
DataGridViewRow tFindRow = MacroGrid.Rows.Cast<DataGridViewRow>().Where(x => x.Cells["idx"].Value.ToString().Equals(tData[i])).First();
|
||||
tRows.Add(MacroGrid.Rows[tFindRow.Index].Cells["TagNum"].Value.ToString());
|
||||
tRows.Add(MacroGrid.Rows[tFindRow.Index].Cells["Macro"].Value.ToString());
|
||||
tRows.Add(MacroGrid.Rows[tFindRow.Index].Cells["TagRun"].Value.ToString());
|
||||
dgvSetting.Rows.Add(tRows.ToArray());
|
||||
}
|
||||
|
||||
//foreach (string l in res.Split('^'))
|
||||
//{
|
||||
// for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
// {
|
||||
// if (MacroGrid.Rows[a].Cells["idx"].Value.ToString() == l)
|
||||
// {
|
||||
// //MacroGrid.Rows[a].Cells["Check"].Value = "T";
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
//MakeGridCheckReload();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void btn_ApplyMacro_Click(object sender, EventArgs e)
|
||||
@@ -103,17 +140,25 @@ namespace WindowsFormsApp1.Mac
|
||||
List<string> idxArray = new List<string>();
|
||||
List<string> TagArray = new List<string>();
|
||||
List<string> RunCode = new List<string>();
|
||||
if (TargetGrid == null) return;
|
||||
|
||||
for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
//for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
//{
|
||||
// //if (MacroGrid.Rows[a].Cells["Check"].Value.ToString().Contains("T"))
|
||||
// {
|
||||
// //idxArray.Add(MacroGrid.Rows[a].Cells["idx"].Value.ToString());
|
||||
// //TagArray.Add(MacroGrid.Rows[a].Cells["TagNum"].Value.ToString());
|
||||
// //RunCode.Add(this.RunCode[a]);
|
||||
// }
|
||||
//}
|
||||
List<Macro> tMacroList = new List<Macro>();
|
||||
for (int i = 0; i < dgvSetting.Rows.Count; i++)
|
||||
{
|
||||
if (MacroGrid.Rows[a].Cells["Check"].Value.ToString().Contains("T"))
|
||||
{
|
||||
idxArray.Add(MacroGrid.Rows[a].Cells["idx"].Value.ToString());
|
||||
TagArray.Add(MacroGrid.Rows[a].Cells["TagNum"].Value.ToString());
|
||||
RunCode.Add(this.RunCode[a]);
|
||||
}
|
||||
idxArray.Add(dgvSetting.Rows[i].Cells["SetIDX"].Value.ToString());
|
||||
TagArray.Add(dgvSetting.Rows[i].Cells["SetTag"].Value.ToString());
|
||||
RunCode.Add(dgvSetting.Rows[i].Cells["SetRuncode"].Value.ToString());
|
||||
tMacroList.Add(new Macro(dgvSetting.Rows[i].Cells["SetIDX"].Value.ToString(), dgvSetting.Rows[i].Cells["SetTag"].Value.ToString(), dgvSetting.Rows[i].Cells["SetRuncode"].Value.ToString()));
|
||||
}
|
||||
|
||||
int count = 0;
|
||||
for (int a = 0; a < TargetGrid.Rows.Count; a++)
|
||||
{
|
||||
@@ -124,7 +169,8 @@ namespace WindowsFormsApp1.Mac
|
||||
if (TargetGrid.Rows[a].Cells["colCheck"].Value.ToString() != "T")
|
||||
continue;
|
||||
|
||||
TargetGrid.Rows[a].Cells["marc"].Value = macro.MacroMarc(ViewMarcArray[count], idxArray, TagArray, RunCode);
|
||||
TargetGrid.Rows[a].Cells["marc"].Value = macro.MacroMarc(ViewMarcArray[count], tMacroList);
|
||||
//TargetGrid.Rows[a].Cells["marc"].Value = macro.MacroMarc(ViewMarcArray[count], idxArray, TagArray, RunCode);
|
||||
count++;
|
||||
}
|
||||
MessageBox.Show("적용되었습니다!");
|
||||
@@ -142,8 +188,8 @@ namespace WindowsFormsApp1.Mac
|
||||
string MacroIndex = "";
|
||||
for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
{
|
||||
if (MacroGrid.Rows[a].Cells["Check"].Value.ToString() == "T")
|
||||
MacroIndex += MacroGrid.Rows[a].Cells["idx"].Value.ToString() + "^";
|
||||
//if (MacroGrid.Rows[a].Cells["Check"].Value.ToString() == "T")
|
||||
//MacroIndex += MacroGrid.Rows[a].Cells["idx"].Value.ToString() + "^";
|
||||
}
|
||||
MacroIndex.TrimEnd('^');
|
||||
|
||||
@@ -158,21 +204,34 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
string cmd = db.DB_INSERT(Table, Insert_Tbl, Insert_Col);
|
||||
db.DB_Send_CMD_reVoid(cmd);
|
||||
cb_SearchList.Items.Add(value);
|
||||
//cb_SearchList.Items.Add(value);
|
||||
Refresh_Macro_List();
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_ListSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (cb_SearchList.SelectedIndex < 0)
|
||||
{
|
||||
MessageBox.Show("선택된 목록이 없습니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
string MacroIndex = "";
|
||||
List<string> tIDXList = new List<string>();
|
||||
string compidx = UniMarc.Properties.Settings.Default.compidx;
|
||||
string listname = cb_SearchList.Text;
|
||||
for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
//for (int a = 0; a < MacroGrid.Rows.Count; a++)
|
||||
//{
|
||||
// //if (MacroGrid.Rows[a].Cells["Check"].Value.ToString() == "T")
|
||||
// MacroIndex += MacroGrid.Rows[a].Cells["idx"].Value.ToString() + "^";// 위에서부터 아래로 순서대로 합치는 부분
|
||||
//}
|
||||
//MacroIndex.TrimEnd('^');
|
||||
for (int i = 0; i < dgvSetting.Rows.Count; i++)
|
||||
{
|
||||
if (MacroGrid.Rows[a].Cells["Check"].Value.ToString() == "T")
|
||||
MacroIndex += MacroGrid.Rows[a].Cells["idx"].Value.ToString() + "^";
|
||||
tIDXList.Add(dgvSetting.Rows[i].Cells["SetIDX"].Value.ToString());
|
||||
}
|
||||
MacroIndex.TrimEnd('^');
|
||||
MacroIndex=string.Join("^", tIDXList);
|
||||
|
||||
string Table = "Comp_SaveMacro";
|
||||
string[] Search_T = { "compidx", "listname" };
|
||||
@@ -211,6 +270,7 @@ namespace WindowsFormsApp1.Mac
|
||||
|
||||
db.DB_Send_CMD_reVoid(db.DB_Delete_More_term(Table, "compidx", compidx, Search_T, Search_C));
|
||||
MessageBox.Show("삭제되었습니다!");
|
||||
Refresh_Macro_List();
|
||||
}
|
||||
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
@@ -218,22 +278,117 @@ namespace WindowsFormsApp1.Mac
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void MacroGrid_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
//private void MacroGrid_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
//{
|
||||
// if (e.RowIndex < 0)
|
||||
// return;
|
||||
|
||||
// if (e.ColumnIndex == 3)
|
||||
// {
|
||||
|
||||
// }
|
||||
// //if (MacroGrid.Rows[e.RowIndex].Cells["Check"].Value.ToString().Contains("T"))
|
||||
// //{
|
||||
// // MacroGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "F";
|
||||
// // MacroGrid.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White;
|
||||
// //}
|
||||
// //else
|
||||
// //{
|
||||
// // MacroGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "T";
|
||||
// // MacroGrid.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Yellow;
|
||||
// //}
|
||||
//}
|
||||
|
||||
private void dgvSetting_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
|
||||
{
|
||||
if (e.RowIndex < 0)
|
||||
e.PaintCells(e.ClipBounds, DataGridViewPaintParts.All);
|
||||
|
||||
e.PaintHeader(DataGridViewPaintParts.Background
|
||||
| DataGridViewPaintParts.Border
|
||||
| DataGridViewPaintParts.Focus
|
||||
| DataGridViewPaintParts.SelectionBackground
|
||||
| DataGridViewPaintParts.ContentForeground);
|
||||
|
||||
e.Graphics.DrawString((e.RowIndex + 1).ToString(), this.Font, Brushes.Black, e.RowBounds.Location.X + 20, e.RowBounds.Location.Y + 5);
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void MacroGrid_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
|
||||
{
|
||||
e.PaintCells(e.ClipBounds, DataGridViewPaintParts.All);
|
||||
|
||||
e.PaintHeader(DataGridViewPaintParts.Background
|
||||
| DataGridViewPaintParts.Border
|
||||
| DataGridViewPaintParts.Focus
|
||||
| DataGridViewPaintParts.SelectionBackground
|
||||
| DataGridViewPaintParts.ContentForeground);
|
||||
|
||||
e.Graphics.DrawString((e.RowIndex + 1).ToString(), this.Font, Brushes.Black, e.RowBounds.Location.X + 20, e.RowBounds.Location.Y + 5);
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void MacroGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (e.RowIndex < 0 || cb_SearchList.SelectedIndex == -1)
|
||||
return;
|
||||
|
||||
if (e.ColumnIndex == 3)
|
||||
if (MacroGrid.Rows[e.RowIndex].Cells["Check"].Value.ToString().Contains("T"))
|
||||
{
|
||||
MacroGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "F";
|
||||
MacroGrid.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.White;
|
||||
}
|
||||
else
|
||||
{
|
||||
MacroGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "T";
|
||||
MacroGrid.Rows[e.RowIndex].DefaultCellStyle.BackColor = Color.Yellow;
|
||||
}
|
||||
if (e.ColumnIndex == 4) //버튼 이벤트일 경우만 추가 기능 실행
|
||||
{
|
||||
List<string> tRows = new List<string>();
|
||||
tRows.Add(MacroGrid.Rows[e.RowIndex].Cells["idx"].Value.ToString());
|
||||
tRows.Add(MacroGrid.Rows[e.RowIndex].Cells["TagNum"].Value.ToString());
|
||||
tRows.Add(MacroGrid.Rows[e.RowIndex].Cells["Macro"].Value.ToString());
|
||||
tRows.Add(MacroGrid.Rows[e.RowIndex].Cells["TagRun"].Value.ToString());
|
||||
dgvSetting.Rows.Add(tRows.ToArray());
|
||||
}
|
||||
}
|
||||
|
||||
private void btnUp_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dgvSetting.RowCount <= 0) return;
|
||||
if (dgvSetting.CurrentRow.Index <= 0) return;
|
||||
//
|
||||
int tTempCurrentRow = dgvSetting.CurrentRow.Index;
|
||||
DataGridViewRow _dgvRow = dgvSetting.Rows[tTempCurrentRow];
|
||||
dgvSetting.Rows.RemoveAt(tTempCurrentRow);
|
||||
dgvSetting.Rows.Insert(tTempCurrentRow - 1, _dgvRow);
|
||||
dgvSetting.Rows[tTempCurrentRow - 1].Selected = true;
|
||||
dgvSetting.CurrentCell = dgvSetting[dgvSetting.CurrentCell.ColumnIndex, tTempCurrentRow - 1];
|
||||
}
|
||||
|
||||
private void btnDown_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dgvSetting.RowCount <= 0) return;
|
||||
if (dgvSetting.CurrentRow.Index < 0 || dgvSetting.CurrentRow.Index + 1 == dgvSetting.Rows.Count) return;
|
||||
|
||||
int _iCurrentRow = dgvSetting.CurrentRow.Index;
|
||||
DataGridViewRow _dgvRow = dgvSetting.Rows[_iCurrentRow];
|
||||
dgvSetting.Rows.RemoveAt(_iCurrentRow);
|
||||
dgvSetting.Rows.Insert(_iCurrentRow + 1, _dgvRow);
|
||||
dgvSetting.Rows[_iCurrentRow + 1].Selected = true;
|
||||
dgvSetting.CurrentCell = dgvSetting[dgvSetting.CurrentCell.ColumnIndex, _iCurrentRow + 1];
|
||||
}
|
||||
|
||||
private void btnDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dgvSetting.RowCount <= 0) return;
|
||||
if (dgvSetting.CurrentRow.Index < 0 || dgvSetting.CurrentRow.Index <0 ) return;
|
||||
dgvSetting.Rows.Remove(dgvSetting.SelectedRows[0]) ;
|
||||
}
|
||||
|
||||
private void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<string> tSearch = mSearchItem.FindAll(x => x.Contains(tbSearch.Text));
|
||||
cb_SearchList.Items.Clear();
|
||||
cb_SearchList.Items.AddRange(tSearch.ToArray());
|
||||
}
|
||||
|
||||
private void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
cb_SearchList.Items.Clear();
|
||||
cb_SearchList.Items.AddRange(mSearchItem.ToArray());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,7 +126,22 @@
|
||||
<metadata name="Macro.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="TagRun.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Check.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="SetIDX.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="SetTag.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="SetMacro.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="SetRuncode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -1688,6 +1688,8 @@ namespace AuthorSymbol
|
||||
nUniCode = nUniCode % 28;
|
||||
|
||||
JongSung = nUniCode;
|
||||
//230207 종성의 경우 ㅎ이 주소상 0~26 의 26번지인데 27이 들어가고있음... 아래조건 추가
|
||||
if (JongSung > 0) JongSung=JongSung - 1;
|
||||
|
||||
hi.isHangul = "H";
|
||||
hi.oriChar = hanChar;
|
||||
|
||||
63
unimarc/unimarc/홈/Home_User_manage.Designer.cs
generated
63
unimarc/unimarc/홈/Home_User_manage.Designer.cs
generated
@@ -40,7 +40,6 @@
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.btn_Del = new System.Windows.Forms.Button();
|
||||
this.btn_Empty = new System.Windows.Forms.Button();
|
||||
this.tb_Affil = new System.Windows.Forms.TextBox();
|
||||
this.tb_Phone = new System.Windows.Forms.TextBox();
|
||||
this.tb_PW = new System.Windows.Forms.TextBox();
|
||||
this.tb_ID = new System.Windows.Forms.TextBox();
|
||||
@@ -52,7 +51,7 @@
|
||||
this.Phone = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.PW = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.btn_lookup = new System.Windows.Forms.Button();
|
||||
this.affil = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.btn_close = new System.Windows.Forms.Button();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
@@ -117,6 +116,9 @@
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.chk_Div = new System.Windows.Forms.CheckBox();
|
||||
this.label30 = new System.Windows.Forms.Label();
|
||||
this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnUpdate = new System.Windows.Forms.Button();
|
||||
this.cbCompany = new System.Windows.Forms.ComboBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
@@ -127,6 +129,7 @@
|
||||
this.tableLayoutPanel3.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.tableLayoutPanel2.SuspendLayout();
|
||||
this.tableLayoutPanel6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btn_Save
|
||||
@@ -187,11 +190,6 @@
|
||||
this.btn_Empty.UseVisualStyleBackColor = true;
|
||||
this.btn_Empty.Click += new System.EventHandler(this.btn_Empty_Click);
|
||||
//
|
||||
// tb_Affil
|
||||
//
|
||||
resources.ApplyResources(this.tb_Affil, "tb_Affil");
|
||||
this.tb_Affil.Name = "tb_Affil";
|
||||
//
|
||||
// tb_Phone
|
||||
//
|
||||
resources.ApplyResources(this.tb_Phone, "tb_Phone");
|
||||
@@ -206,6 +204,7 @@
|
||||
//
|
||||
resources.ApplyResources(this.tb_ID, "tb_ID");
|
||||
this.tb_ID.Name = "tb_ID";
|
||||
this.tb_ID.TextChanged += new System.EventHandler(this.tb_ID_TextChanged);
|
||||
//
|
||||
// tb_position
|
||||
//
|
||||
@@ -235,7 +234,8 @@
|
||||
this.Rank,
|
||||
this.Phone,
|
||||
this.ID,
|
||||
this.PW});
|
||||
this.PW,
|
||||
this.affil});
|
||||
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
||||
resources.ApplyResources(this.dataGridView1, "dataGridView1");
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
@@ -272,12 +272,10 @@
|
||||
resources.ApplyResources(this.PW, "PW");
|
||||
this.PW.Name = "PW";
|
||||
//
|
||||
// btn_lookup
|
||||
// affil
|
||||
//
|
||||
resources.ApplyResources(this.btn_lookup, "btn_lookup");
|
||||
this.btn_lookup.Name = "btn_lookup";
|
||||
this.btn_lookup.UseVisualStyleBackColor = true;
|
||||
this.btn_lookup.Click += new System.EventHandler(this.btn_lookup_Click);
|
||||
resources.ApplyResources(this.affil, "affil");
|
||||
this.affil.Name = "affil";
|
||||
//
|
||||
// btn_close
|
||||
//
|
||||
@@ -725,13 +723,37 @@
|
||||
this.label30.ForeColor = System.Drawing.SystemColors.Highlight;
|
||||
this.label30.Name = "label30";
|
||||
//
|
||||
// tableLayoutPanel6
|
||||
//
|
||||
resources.ApplyResources(this.tableLayoutPanel6, "tableLayoutPanel6");
|
||||
this.tableLayoutPanel6.Controls.Add(this.btn_close, 4, 0);
|
||||
this.tableLayoutPanel6.Controls.Add(this.btn_Del, 3, 0);
|
||||
this.tableLayoutPanel6.Controls.Add(this.btn_Save, 0, 0);
|
||||
this.tableLayoutPanel6.Controls.Add(this.btn_Empty, 2, 0);
|
||||
this.tableLayoutPanel6.Controls.Add(this.btnUpdate, 1, 0);
|
||||
this.tableLayoutPanel6.Name = "tableLayoutPanel6";
|
||||
//
|
||||
// btnUpdate
|
||||
//
|
||||
resources.ApplyResources(this.btnUpdate, "btnUpdate");
|
||||
this.btnUpdate.Name = "btnUpdate";
|
||||
this.btnUpdate.UseVisualStyleBackColor = true;
|
||||
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
|
||||
//
|
||||
// cbCompany
|
||||
//
|
||||
this.cbCompany.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cbCompany.FormattingEnabled = true;
|
||||
resources.ApplyResources(this.cbCompany, "cbCompany");
|
||||
this.cbCompany.Name = "cbCompany";
|
||||
//
|
||||
// Home_User_manage
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.cbCompany);
|
||||
this.Controls.Add(this.tableLayoutPanel6);
|
||||
this.Controls.Add(this.tableLayoutPanel1);
|
||||
this.Controls.Add(this.btn_close);
|
||||
this.Controls.Add(this.btn_lookup);
|
||||
this.Controls.Add(this.btn_IDOverlap);
|
||||
this.Controls.Add(this.dataGridView1);
|
||||
this.Controls.Add(this.label11);
|
||||
@@ -741,14 +763,10 @@
|
||||
this.Controls.Add(this.label9);
|
||||
this.Controls.Add(this.tb_ID);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.btn_Save);
|
||||
this.Controls.Add(this.tb_PW);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.tb_Phone);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.tb_Affil);
|
||||
this.Controls.Add(this.btn_Del);
|
||||
this.Controls.Add(this.btn_Empty);
|
||||
this.Name = "Home_User_manage";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||
@@ -765,6 +783,7 @@
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.tableLayoutPanel2.ResumeLayout(false);
|
||||
this.tableLayoutPanel2.PerformLayout();
|
||||
this.tableLayoutPanel6.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -787,8 +806,6 @@
|
||||
private System.Windows.Forms.TextBox tb_ID;
|
||||
private System.Windows.Forms.TextBox tb_position;
|
||||
private System.Windows.Forms.Label label11;
|
||||
private System.Windows.Forms.TextBox tb_Affil;
|
||||
private System.Windows.Forms.Button btn_lookup;
|
||||
private System.Windows.Forms.Button btn_close;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
@@ -853,11 +870,15 @@
|
||||
private System.Windows.Forms.Label label31;
|
||||
private System.Windows.Forms.CheckBox chk_Div;
|
||||
private System.Windows.Forms.Label label30;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel6;
|
||||
private System.Windows.Forms.Button btnUpdate;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Per_name;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Rank;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Phone;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ID;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn PW;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn affil;
|
||||
private System.Windows.Forms.ComboBox cbCompany;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using ExcelTest;
|
||||
using MySqlX.XDevAPI.Relational;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -9,30 +11,57 @@ using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using UniMarc;
|
||||
|
||||
namespace WindowsFormsApp1.Home
|
||||
{
|
||||
public partial class Home_User_manage : Form
|
||||
{
|
||||
public string User_Name { get; internal set; }
|
||||
bool overlap = false;
|
||||
Helper_DB _DB = new Helper_DB();
|
||||
bool mOverlap = false;
|
||||
Helper_DB mDB = new Helper_DB();
|
||||
Main main;
|
||||
string comp_name = string.Empty;
|
||||
string Table_User = "User_Data";
|
||||
|
||||
CheckBox[] tUserAccesschkBox;
|
||||
string[] tUserAcess_Col;
|
||||
public Home_User_manage(Main _main)
|
||||
{
|
||||
InitializeComponent();
|
||||
main = _main;
|
||||
comp_name = main.toolStripLabel2.Text;
|
||||
|
||||
tUserAccesschkBox =new CheckBox[] {
|
||||
chk_Div_ListInput, chk_Div_ListLookup, chk_Div_ListTotal, chk_Div_OrderInput, chk_Div_Inven,
|
||||
chk_Div_Stock, chk_Div_Return,
|
||||
|
||||
chk_Acc_SendMoneyList, chk_Acc_SendMoneyInput, chk_Acc_Buy, chk_Acc_Sales, chk_Acc_PartTime,
|
||||
|
||||
chk_Marc_Setup, chk_Marc_Work, chk_Marc_Input, chk_Marc_CopyCheck, chk_Marc_Option,
|
||||
chk_Marc_DLS, chk_Marc_ETC,
|
||||
|
||||
chk_Manage_User, chk_Manage_Client, chk_Manage_Purchase, chk_Manage_Book
|
||||
};
|
||||
|
||||
tUserAcess_Col =new string[] {
|
||||
"id", "Div_ListInput", "Div_ListLookup", "Div_ListTotal", "Div_OrderInput", "Div_Inven",
|
||||
"Div_Stock", "Div_Return",
|
||||
|
||||
"Acc_SendMoneyList", "Acc_SendMoneyInput", "Acc_Buy", "Acc_Sales", "Acc_PartTime",
|
||||
|
||||
"Marc_Setup", "Marc_Work", "Marc_Input", "Marc_CopyCheck", "Marc_Option",
|
||||
"Marc_DLS", "Marc_ETC",
|
||||
|
||||
"Manage_User", "Manage_Client", "Manage_Purchase", "Manage_Book"
|
||||
};
|
||||
}
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
_DB.DBcon();
|
||||
tb_Affil.Text = comp_name;
|
||||
tb_Affil.Enabled = false;
|
||||
btn_lookup_Click(null, null);
|
||||
mDB.DBcon();
|
||||
//tb_Affil.Text = comp_name;
|
||||
//tb_Affil.Enabled = false;
|
||||
Load_CompanyList();
|
||||
RefreshList();
|
||||
}
|
||||
/// <summary>
|
||||
/// DB에 저장된 사용자 데이터를 dataGridView1로 입력하는 함수.
|
||||
@@ -40,23 +69,41 @@ namespace WindowsFormsApp1.Home
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btn_lookup_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshList();
|
||||
}
|
||||
private void RefreshList()
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
string Area = "`name`, `position`, `Phone`, `ID`, `PW`";
|
||||
string cmd = _DB.DB_Select_Search(Area, "User_Data", "affil", comp_name);
|
||||
string db_res = _DB.DB_Send_CMD_Search(cmd);
|
||||
string Area = "`name`, `position`, `Phone`, `ID`, `PW`,`affil`";
|
||||
string cmd = mDB.DB_Select_Search(Area, "User_Data");//, "affil", comp_name);
|
||||
string db_res = mDB.DB_Send_CMD_Search(cmd);
|
||||
string[] data = db_res.Split('|');
|
||||
string[] grid = { "", "", "", "", "", "" };
|
||||
string[] grid = { "", "", "", "", "", "", "" };
|
||||
for (int a = 0; a < data.Length; a++)
|
||||
{
|
||||
if (a % 5 == 0) { grid[0] = data[a]; }
|
||||
if (a % 5 == 1) { grid[1] = data[a]; }
|
||||
if (a % 5 == 2) { grid[2] = data[a]; }
|
||||
if (a % 5 == 3) { grid[3] = data[a]; }
|
||||
if (a % 5 == 4) { grid[4] = data[a];
|
||||
if (a % 6 == 0) { grid[0] = data[a]; }
|
||||
if (a % 6 == 1) { grid[1] = data[a]; }
|
||||
if (a % 6 == 2) { grid[2] = data[a]; }
|
||||
if (a % 6 == 3) { grid[3] = data[a]; }
|
||||
if (a % 6 == 4) { grid[4] = data[a]; }
|
||||
if (a % 6 == 5)
|
||||
{
|
||||
grid[5] = data[a];
|
||||
dataGridView1.Rows.Add(grid);
|
||||
}
|
||||
}
|
||||
dataGridView1.ClearSelection();
|
||||
}
|
||||
private void Load_CompanyList()
|
||||
{
|
||||
cbCompany.Items.Clear();
|
||||
string compName = main.toolStripLabel2.Text;
|
||||
string cmd = string.Format("SELECT `comp_name` FROM Comp");
|
||||
string res = mDB.self_Made_Cmd(cmd);
|
||||
List<string> Aryres = res.Split('|').ToList();
|
||||
Aryres.RemoveAll(x => x == "");
|
||||
cbCompany.Items.AddRange(Aryres.ToArray());
|
||||
}
|
||||
|
||||
private void chk_Div_ListInput_Click(object sender, EventArgs e)
|
||||
@@ -115,13 +162,12 @@ namespace WindowsFormsApp1.Home
|
||||
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int row = e.RowIndex;
|
||||
|
||||
if (row < 0) return;
|
||||
|
||||
if (dataGridView1.CurrentCell == null || dataGridView1.CurrentCell.RowIndex < 0 || dataGridView1.SelectedRows.Count == 0) return;
|
||||
cbCompany.Text = dataGridView1.Rows[row].Cells["affil"].Value.ToString(); ;
|
||||
tb_ID.Text = dataGridView1.Rows[row].Cells["ID"].Value.ToString();
|
||||
tb_PW.Text = dataGridView1.Rows[row].Cells["PW"].Value.ToString();
|
||||
tb_Name.Text = dataGridView1.Rows[row].Cells["Per_Name"].Value.ToString();
|
||||
tb_Affil.Text = comp_name;
|
||||
//tb_Affil.Text = dataGridView1.Rows[row].Cells["affil"].Value.ToString(); ;
|
||||
tb_position.Text = dataGridView1.Rows[row].Cells["Rank"].Value.ToString();
|
||||
tb_Phone.Text = dataGridView1.Rows[row].Cells["Phone"].Value.ToString();
|
||||
|
||||
@@ -153,8 +199,8 @@ namespace WindowsFormsApp1.Home
|
||||
"`Marc_DLS`, `Marc_ETC`," +
|
||||
|
||||
"`Manage_User`, `Manage_Client`, `Manage_Purchase`, `Manage_Book`";
|
||||
string cmd = _DB.DB_Select_Search(Area, "User_Access", "id", tb_ID.Text);
|
||||
string res = _DB.DB_Send_CMD_Search(cmd);
|
||||
string cmd = mDB.DB_Select_Search(Area, "User_Access", "id", tb_ID.Text);
|
||||
string res = mDB.DB_Send_CMD_Search(cmd);
|
||||
string[] IsCheck = res.Split('|');
|
||||
|
||||
for (int a = 0; a < chkBox.Length; a++)
|
||||
@@ -172,102 +218,112 @@ namespace WindowsFormsApp1.Home
|
||||
if (!System.Text.RegularExpressions.Regex.IsMatch(tb_ID.Text, @"^[a-zA-Z0-9]"))
|
||||
{
|
||||
MessageBox.Show("영어와 숫자 조합으로 작성해주세요!");
|
||||
overlap = false;
|
||||
mOverlap = false;
|
||||
return;
|
||||
}
|
||||
|
||||
string cmd = _DB.DB_Search(Table_User, "id", tb_ID.Text);
|
||||
string db_res = _DB.DB_Send_CMD_Search(cmd);
|
||||
if (db_res == "") { MessageBox.Show("사용가능한 아이디입니다. [" + tb_ID.Text + "]"); overlap = true; }
|
||||
else { MessageBox.Show("중복된 아이디입니다. [" + tb_ID.Text + "]"); overlap = false; }
|
||||
string cmd = mDB.DB_Search(Table_User, "id", tb_ID.Text);
|
||||
string db_res = mDB.DB_Send_CMD_Search(cmd);
|
||||
if (db_res == "") { MessageBox.Show("사용가능한 아이디입니다. [" + tb_ID.Text + "]"); mOverlap = true; }
|
||||
else { MessageBox.Show("중복된 아이디입니다. [" + tb_ID.Text + "]"); mOverlap = false; }
|
||||
}
|
||||
private void btn_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tb_ID.Text == "" || tb_PW.Text == "" || tb_Name.Text == "") {
|
||||
if (tb_ID.Text == "" || tb_PW.Text == "" || tb_Name.Text == "")
|
||||
{
|
||||
MessageBox.Show("성명 / 아이디 / 비밀번호 를 채워주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!CheckSelect()) {
|
||||
if (!overlap) {
|
||||
if (!CheckSelect())
|
||||
{
|
||||
if (!mOverlap)
|
||||
{
|
||||
MessageBox.Show("아이디 중복확인을 해주세요.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
string tCmd = mDB.DB_Search(Table_User, "id", tb_ID.Text);
|
||||
|
||||
bool IsUpdate = true;
|
||||
string cmd = _DB.DB_Search(Table_User, "id", tb_ID.Text);
|
||||
string db_res = _DB.DB_Send_CMD_Search(cmd);
|
||||
if (db_res == "") IsUpdate = false;
|
||||
List<string> tAuthData = new List<string>();
|
||||
tAuthData.Add(tb_ID.Text);
|
||||
List<string> tCheckBoxData = tUserAccesschkBox.ToList().ConvertAll(x => {
|
||||
string tRet = "0";
|
||||
if (x.Checked) tRet = "1";
|
||||
return tRet;
|
||||
});
|
||||
tAuthData.AddRange(tCheckBoxData);
|
||||
string[] Update_Data = tAuthData.ToArray();
|
||||
|
||||
CheckBox[] chkBox = {
|
||||
chk_Div_ListInput, chk_Div_ListLookup, chk_Div_ListTotal, chk_Div_OrderInput, chk_Div_Inven,
|
||||
chk_Div_Stock, chk_Div_Return,
|
||||
|
||||
chk_Acc_SendMoneyList, chk_Acc_SendMoneyInput, chk_Acc_Buy, chk_Acc_Sales, chk_Acc_PartTime,
|
||||
string[] Insert_Col = { "ID", "PW", "name", "affil", "position", "Phone" };
|
||||
string[] Insert_Data = { tb_ID.Text, tb_PW.Text, tb_Name.Text, cbCompany.Text, tb_position.Text, tb_Phone.Text };
|
||||
|
||||
chk_Marc_Setup, chk_Marc_Work, chk_Marc_Input, chk_Marc_CopyCheck, chk_Marc_Option,
|
||||
chk_Marc_DLS, chk_Marc_ETC,
|
||||
|
||||
chk_Manage_User, chk_Manage_Client, chk_Manage_Purchase, chk_Manage_Book
|
||||
};
|
||||
|
||||
string[] Update_Col = {
|
||||
"id", "Div_ListInput", "Div_ListLookup", "Div_ListTotal", "Div_OrderInput", "Div_Inven",
|
||||
"Div_Stock", "Div_Return",
|
||||
|
||||
"Acc_SendMoneyList", "Acc_SendMoneyInput", "Acc_Buy", "Acc_Sales", "Acc_PartTime",
|
||||
|
||||
"Marc_Setup", "Marc_Work", "Marc_Input", "Marc_CopyCheck", "Marc_Option",
|
||||
"Marc_DLS", "Marc_ETC",
|
||||
|
||||
"Manage_User", "Manage_Client", "Manage_Purchase", "Manage_Book"
|
||||
};
|
||||
|
||||
List<string> tmp_Update_data = new List<string>();
|
||||
tmp_Update_data.Add(tb_ID.Text);
|
||||
for (int a = 0; a < chkBox.Length; a++)
|
||||
{
|
||||
bool IsCheck = chkBox[a].Checked;
|
||||
string tmp_data = "0";
|
||||
if (IsCheck)
|
||||
tmp_data = "1";
|
||||
|
||||
tmp_Update_data.Add(tmp_data);
|
||||
}
|
||||
|
||||
string[] Update_Data = tmp_Update_data.ToArray();
|
||||
|
||||
if (!IsUpdate)
|
||||
{
|
||||
string[] Insert_Col = { "ID", "PW", "name", "affil", "position", "Phone" };
|
||||
string[] Insert_Data = { tb_ID.Text, tb_PW.Text, tb_Name.Text, tb_Affil.Text, tb_position.Text, tb_Phone.Text };
|
||||
|
||||
cmd = _DB.DB_INSERT("User_Data", Insert_Col, Insert_Data);
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
cmd = _DB.DB_INSERT("User_Access", Update_Col, Update_Data);
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
cmd = string.Format("INSERT INTO `User_ShortCut` (`id`) VALUES ('{0}')", tb_ID.Text);
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] Search_Col = { "ID" };
|
||||
string[] Search_Data = { tb_ID.Text };
|
||||
string[] Update1_Col = { "ID", "PW", "name", "affil", "position", "Phone" };
|
||||
string[] Update1_Data = { tb_ID.Text, tb_PW.Text, tb_Name.Text, tb_Affil.Text, tb_position.Text, tb_Phone.Text };
|
||||
|
||||
cmd = _DB.More_Update("User_Data", Update1_Col, Update1_Data, Search_Col, Search_Data);
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
cmd = _DB.More_Update("User_Access", Update_Col, Update_Data, Search_Col, Search_Data);
|
||||
_DB.DB_Send_CMD_reVoid(cmd);
|
||||
}
|
||||
tCmd = mDB.DB_INSERT("User_Data", Insert_Col, Insert_Data);
|
||||
mDB.DB_Send_CMD_reVoid(tCmd);
|
||||
tCmd = mDB.DB_INSERT("User_Access", tUserAcess_Col, Update_Data);
|
||||
mDB.DB_Send_CMD_reVoid(tCmd);
|
||||
tCmd = string.Format("INSERT INTO `User_ShortCut` (`id`) VALUES ('{0}')", tb_ID.Text);
|
||||
mDB.DB_Send_CMD_reVoid(tCmd);
|
||||
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
main.isAccess();
|
||||
btn_lookup_Click(null, null);
|
||||
RefreshList();
|
||||
}
|
||||
private void btnUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null || dataGridView1.CurrentCell.RowIndex < 0 || dataGridView1.SelectedRows.Count == 0)
|
||||
{
|
||||
MessageBox.Show("삭제할 행을 선택해 주세요.");
|
||||
return;
|
||||
}
|
||||
string tText = string.Format("{0} 를 수정 하시겠습니까?", dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString());
|
||||
if (CUtill.MsgQ(tText) == DialogResult.Yes)
|
||||
{
|
||||
if (tb_ID.Text == "" || tb_PW.Text == "" || tb_Name.Text == "")
|
||||
{
|
||||
MessageBox.Show("성명 / 아이디 / 비밀번호 를 채워주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString() != tb_ID.Text )
|
||||
{
|
||||
if (!CheckSelect())
|
||||
{
|
||||
if (!mOverlap)
|
||||
{
|
||||
MessageBox.Show("아이디 중복확인을 해주세요.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
string cmd = String.Empty;
|
||||
string[] tSearch_Col = { "ID" };
|
||||
string[] tSearch_Data = { dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString() };
|
||||
string[] Update1_Col = { "ID", "PW", "name", "affil", "position", "Phone" };
|
||||
string[] Update1_Data = { tb_ID.Text, tb_PW.Text, tb_Name.Text, cbCompany.Text, tb_position.Text, tb_Phone.Text };
|
||||
string[] tAccess_Col = { "ID" };
|
||||
string[] tAccess_Data = { tb_ID.Text };
|
||||
List<string> tAuthData = new List<string>();
|
||||
tAuthData.Add(tb_ID.Text);
|
||||
List<string> tCheckBoxData = tUserAccesschkBox.ToList().ConvertAll(x =>
|
||||
{
|
||||
string tRet = "0";
|
||||
if (x.Checked) tRet = "1";
|
||||
return tRet;
|
||||
});
|
||||
tAuthData.AddRange(tCheckBoxData);
|
||||
string[] tCheckBox = tAuthData.ToArray();
|
||||
cmd = mDB.More_Update("User_ShortCut", tAccess_Col, tAccess_Data, tSearch_Col, tSearch_Data);
|
||||
mDB.DB_Send_CMD_reVoid(cmd);
|
||||
cmd = mDB.More_Update("User_Access", tUserAcess_Col, tCheckBox, tSearch_Col, tSearch_Data);
|
||||
mDB.DB_Send_CMD_reVoid(cmd);
|
||||
cmd = mDB.More_Update("User_Data", tAccess_Col, tAccess_Data, tSearch_Col, tSearch_Data);
|
||||
mDB.DB_Send_CMD_reVoid(cmd);
|
||||
MessageBox.Show("저장되었습니다!");
|
||||
RefreshList();
|
||||
}
|
||||
}
|
||||
private bool CheckSelect()
|
||||
{
|
||||
int row = dataGridView1.CurrentCell.RowIndex;
|
||||
@@ -297,22 +353,43 @@ namespace WindowsFormsApp1.Home
|
||||
tb_ID.Text = "";
|
||||
tb_PW.Text = "";
|
||||
tb_Name.Text = "";
|
||||
tb_Affil.Text = comp_name;
|
||||
cbCompany.Text = comp_name;
|
||||
tb_position.Text = "";
|
||||
tb_Phone.Text = "";
|
||||
}
|
||||
|
||||
private void btn_Del_Click(object sender, EventArgs e)
|
||||
{
|
||||
int row = dataGridView1.CurrentRow.Index;
|
||||
string D_cmd = _DB.DB_Delete(Table_User, "ID", tb_ID.Text, "PW", tb_PW.Text);
|
||||
_DB.DB_Send_CMD_reVoid(D_cmd);
|
||||
dataGridView1.Rows.Remove(dataGridView1.Rows[row]);
|
||||
if (dataGridView1.CurrentCell == null || dataGridView1.CurrentCell.RowIndex < 0 || dataGridView1.SelectedRows.Count == 0)
|
||||
{
|
||||
MessageBox.Show("삭제할 행을 선택해 주세요.");
|
||||
return;
|
||||
}
|
||||
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString());
|
||||
if (CUtill.MsgQ(tText) == DialogResult.Yes)
|
||||
{
|
||||
int row = dataGridView1.CurrentRow.Index;
|
||||
string tID = dataGridView1.SelectedRows[0].Cells["id"].Value.ToString();
|
||||
string tPW = dataGridView1.SelectedRows[0].Cells["pw"].Value.ToString();
|
||||
string D_cmd = string.Format("DELETE FROM User_ShortCut WHERE `ID`=\"{0}\" LIMIT 1;", tID);
|
||||
mDB.DB_Send_CMD_reVoid(D_cmd);
|
||||
D_cmd = string.Format("DELETE FROM User_Access WHERE `ID`=\"{0}\" LIMIT 1;", tID);
|
||||
mDB.DB_Send_CMD_reVoid(D_cmd);
|
||||
D_cmd = mDB.DB_Delete("User_Data", "ID", tID, "PW", tPW);
|
||||
mDB.DB_Send_CMD_reVoid(D_cmd);
|
||||
MessageBox.Show("삭제 완료되었습니다!");
|
||||
RefreshList();
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void tb_ID_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
mOverlap = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
299
unimarc/unimarc/홈/Transaction_manage.Designer.cs
generated
299
unimarc/unimarc/홈/Transaction_manage.Designer.cs
generated
@@ -28,14 +28,14 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = 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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.NameLabel = new System.Windows.Forms.Label();
|
||||
this.tb_sangho = new System.Windows.Forms.TextBox();
|
||||
this.tb_addr = new System.Windows.Forms.TextBox();
|
||||
@@ -128,6 +128,10 @@
|
||||
this.panel7 = new System.Windows.Forms.Panel();
|
||||
this.panel6 = new System.Windows.Forms.Panel();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.tbSearch = new System.Windows.Forms.TextBox();
|
||||
this.label19 = new System.Windows.Forms.Label();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnInit = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
@@ -139,13 +143,14 @@
|
||||
this.panel7.SuspendLayout();
|
||||
this.panel6.SuspendLayout();
|
||||
this.panel5.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// NameLabel
|
||||
//
|
||||
this.NameLabel.AutoSize = true;
|
||||
this.NameLabel.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.NameLabel.Location = new System.Drawing.Point(21, 10);
|
||||
this.NameLabel.Location = new System.Drawing.Point(21, 55);
|
||||
this.NameLabel.Name = "NameLabel";
|
||||
this.NameLabel.Size = new System.Drawing.Size(49, 12);
|
||||
this.NameLabel.TabIndex = 0;
|
||||
@@ -153,7 +158,7 @@
|
||||
//
|
||||
// tb_sangho
|
||||
//
|
||||
this.tb_sangho.Location = new System.Drawing.Point(74, 6);
|
||||
this.tb_sangho.Location = new System.Drawing.Point(74, 51);
|
||||
this.tb_sangho.Name = "tb_sangho";
|
||||
this.tb_sangho.Size = new System.Drawing.Size(138, 21);
|
||||
this.tb_sangho.TabIndex = 1;
|
||||
@@ -161,7 +166,7 @@
|
||||
//
|
||||
// tb_addr
|
||||
//
|
||||
this.tb_addr.Location = new System.Drawing.Point(164, 102);
|
||||
this.tb_addr.Location = new System.Drawing.Point(164, 147);
|
||||
this.tb_addr.Name = "tb_addr";
|
||||
this.tb_addr.Size = new System.Drawing.Size(388, 21);
|
||||
this.tb_addr.TabIndex = 26;
|
||||
@@ -170,7 +175,7 @@
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label3.Location = new System.Drawing.Point(19, 106);
|
||||
this.label3.Location = new System.Drawing.Point(19, 151);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(53, 12);
|
||||
this.label3.TabIndex = 24;
|
||||
@@ -178,7 +183,7 @@
|
||||
//
|
||||
// tb_man
|
||||
//
|
||||
this.tb_man.Location = new System.Drawing.Point(74, 78);
|
||||
this.tb_man.Location = new System.Drawing.Point(74, 123);
|
||||
this.tb_man.Name = "tb_man";
|
||||
this.tb_man.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_man.TabIndex = 20;
|
||||
@@ -187,7 +192,7 @@
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label4.Location = new System.Drawing.Point(3, 82);
|
||||
this.label4.Location = new System.Drawing.Point(3, 127);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(69, 12);
|
||||
this.label4.TabIndex = 19;
|
||||
@@ -195,7 +200,7 @@
|
||||
//
|
||||
// tb_fax
|
||||
//
|
||||
this.tb_fax.Location = new System.Drawing.Point(358, 54);
|
||||
this.tb_fax.Location = new System.Drawing.Point(358, 99);
|
||||
this.tb_fax.Name = "tb_fax";
|
||||
this.tb_fax.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_fax.TabIndex = 16;
|
||||
@@ -204,7 +209,7 @@
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label6.Location = new System.Drawing.Point(303, 58);
|
||||
this.label6.Location = new System.Drawing.Point(303, 103);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(53, 12);
|
||||
this.label6.TabIndex = 15;
|
||||
@@ -214,7 +219,7 @@
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label7.Location = new System.Drawing.Point(21, 130);
|
||||
this.label7.Location = new System.Drawing.Point(21, 175);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(49, 12);
|
||||
this.label7.TabIndex = 27;
|
||||
@@ -223,10 +228,11 @@
|
||||
// btn_delete
|
||||
//
|
||||
this.btn_delete.DialogResult = System.Windows.Forms.DialogResult.Abort;
|
||||
this.btn_delete.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_delete.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.btn_delete.Location = new System.Drawing.Point(852, 129);
|
||||
this.btn_delete.Location = new System.Drawing.Point(753, 4);
|
||||
this.btn_delete.Name = "btn_delete";
|
||||
this.btn_delete.Size = new System.Drawing.Size(75, 34);
|
||||
this.btn_delete.Size = new System.Drawing.Size(100, 36);
|
||||
this.btn_delete.TabIndex = 42;
|
||||
this.btn_delete.Text = "삭 제";
|
||||
this.btn_delete.UseVisualStyleBackColor = true;
|
||||
@@ -235,22 +241,24 @@
|
||||
// btn_save
|
||||
//
|
||||
this.btn_save.DialogResult = System.Windows.Forms.DialogResult.Abort;
|
||||
this.btn_save.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_save.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.btn_save.Location = new System.Drawing.Point(852, 67);
|
||||
this.btn_save.Location = new System.Drawing.Point(646, 4);
|
||||
this.btn_save.Name = "btn_save";
|
||||
this.btn_save.Size = new System.Drawing.Size(75, 34);
|
||||
this.btn_save.Size = new System.Drawing.Size(100, 36);
|
||||
this.btn_save.TabIndex = 40;
|
||||
this.btn_save.Text = "저 장";
|
||||
this.btn_save.Text = "수 정";
|
||||
this.btn_save.UseVisualStyleBackColor = true;
|
||||
this.btn_save.Click += new System.EventHandler(this.btn_save_Click);
|
||||
//
|
||||
// btn_add
|
||||
//
|
||||
this.btn_add.DialogResult = System.Windows.Forms.DialogResult.Abort;
|
||||
this.btn_add.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_add.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.btn_add.Location = new System.Drawing.Point(852, 5);
|
||||
this.btn_add.Location = new System.Drawing.Point(539, 4);
|
||||
this.btn_add.Name = "btn_add";
|
||||
this.btn_add.Size = new System.Drawing.Size(75, 34);
|
||||
this.btn_add.Size = new System.Drawing.Size(100, 36);
|
||||
this.btn_add.TabIndex = 39;
|
||||
this.btn_add.Text = "추 가";
|
||||
this.btn_add.UseVisualStyleBackColor = true;
|
||||
@@ -260,7 +268,7 @@
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label1.Location = new System.Drawing.Point(303, 10);
|
||||
this.label1.Location = new System.Drawing.Point(303, 55);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 12);
|
||||
this.label1.TabIndex = 3;
|
||||
@@ -270,7 +278,7 @@
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label2.Location = new System.Drawing.Point(19, 58);
|
||||
this.label2.Location = new System.Drawing.Point(19, 103);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(53, 12);
|
||||
this.label2.TabIndex = 13;
|
||||
@@ -278,7 +286,7 @@
|
||||
//
|
||||
// tb_tel
|
||||
//
|
||||
this.tb_tel.Location = new System.Drawing.Point(74, 54);
|
||||
this.tb_tel.Location = new System.Drawing.Point(74, 99);
|
||||
this.tb_tel.Name = "tb_tel";
|
||||
this.tb_tel.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_tel.TabIndex = 14;
|
||||
@@ -287,7 +295,7 @@
|
||||
//
|
||||
this.cb_gubun2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_gubun2.FormattingEnabled = true;
|
||||
this.cb_gubun2.Location = new System.Drawing.Point(457, 6);
|
||||
this.cb_gubun2.Location = new System.Drawing.Point(457, 51);
|
||||
this.cb_gubun2.Name = "cb_gubun2";
|
||||
this.cb_gubun2.Size = new System.Drawing.Size(95, 20);
|
||||
this.cb_gubun2.TabIndex = 4;
|
||||
@@ -295,7 +303,7 @@
|
||||
// rtb_etc
|
||||
//
|
||||
this.rtb_etc.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.rtb_etc.Location = new System.Drawing.Point(74, 174);
|
||||
this.rtb_etc.Location = new System.Drawing.Point(74, 219);
|
||||
this.rtb_etc.Name = "rtb_etc";
|
||||
this.rtb_etc.Size = new System.Drawing.Size(762, 186);
|
||||
this.rtb_etc.TabIndex = 38;
|
||||
@@ -305,14 +313,14 @@
|
||||
//
|
||||
this.dataGridView1.AllowUserToAddRows = false;
|
||||
this.dataGridView1.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle25.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle25.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle25.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle25.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle25;
|
||||
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle9.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idx,
|
||||
@@ -343,18 +351,18 @@
|
||||
this.dataGridView1.MultiSelect = false;
|
||||
this.dataGridView1.Name = "dataGridView1";
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.ControlDark;
|
||||
dataGridViewCellStyle26.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle26;
|
||||
dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.ControlDark;
|
||||
dataGridViewCellStyle10.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.dataGridView1.RowHeadersWidth = 21;
|
||||
this.dataGridView1.RowTemplate.Height = 23;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(967, 475);
|
||||
this.dataGridView1.Size = new System.Drawing.Size(967, 425);
|
||||
this.dataGridView1.TabIndex = 44;
|
||||
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
|
||||
//
|
||||
@@ -499,16 +507,17 @@
|
||||
//
|
||||
// tb_man1
|
||||
//
|
||||
this.tb_man1.Location = new System.Drawing.Point(271, 78);
|
||||
this.tb_man1.Location = new System.Drawing.Point(271, 123);
|
||||
this.tb_man1.Name = "tb_man1";
|
||||
this.tb_man1.Size = new System.Drawing.Size(281, 21);
|
||||
this.tb_man1.TabIndex = 21;
|
||||
//
|
||||
// btn_search
|
||||
//
|
||||
this.btn_search.Location = new System.Drawing.Point(214, 5);
|
||||
this.btn_search.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_search.Location = new System.Drawing.Point(325, 4);
|
||||
this.btn_search.Name = "btn_search";
|
||||
this.btn_search.Size = new System.Drawing.Size(75, 23);
|
||||
this.btn_search.Size = new System.Drawing.Size(100, 36);
|
||||
this.btn_search.TabIndex = 2;
|
||||
this.btn_search.Text = "검 색";
|
||||
this.btn_search.UseVisualStyleBackColor = true;
|
||||
@@ -516,7 +525,7 @@
|
||||
//
|
||||
// tb_id
|
||||
//
|
||||
this.tb_id.Location = new System.Drawing.Point(74, 126);
|
||||
this.tb_id.Location = new System.Drawing.Point(74, 171);
|
||||
this.tb_id.Name = "tb_id";
|
||||
this.tb_id.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_id.TabIndex = 28;
|
||||
@@ -525,7 +534,7 @@
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label5.Location = new System.Drawing.Point(19, 177);
|
||||
this.label5.Location = new System.Drawing.Point(19, 222);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(53, 12);
|
||||
this.label5.TabIndex = 37;
|
||||
@@ -534,7 +543,7 @@
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Location = new System.Drawing.Point(303, 130);
|
||||
this.label8.Location = new System.Drawing.Point(303, 175);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(53, 12);
|
||||
this.label8.TabIndex = 29;
|
||||
@@ -542,21 +551,21 @@
|
||||
//
|
||||
// tb_pw
|
||||
//
|
||||
this.tb_pw.Location = new System.Drawing.Point(358, 126);
|
||||
this.tb_pw.Location = new System.Drawing.Point(358, 171);
|
||||
this.tb_pw.Name = "tb_pw";
|
||||
this.tb_pw.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_pw.TabIndex = 30;
|
||||
//
|
||||
// tb_zip
|
||||
//
|
||||
this.tb_zip.Location = new System.Drawing.Point(74, 102);
|
||||
this.tb_zip.Location = new System.Drawing.Point(74, 147);
|
||||
this.tb_zip.Name = "tb_zip";
|
||||
this.tb_zip.Size = new System.Drawing.Size(87, 21);
|
||||
this.tb_zip.TabIndex = 25;
|
||||
//
|
||||
// tb_boss
|
||||
//
|
||||
this.tb_boss.Location = new System.Drawing.Point(642, 6);
|
||||
this.tb_boss.Location = new System.Drawing.Point(642, 51);
|
||||
this.tb_boss.Name = "tb_boss";
|
||||
this.tb_boss.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_boss.TabIndex = 6;
|
||||
@@ -564,7 +573,7 @@
|
||||
// label9
|
||||
//
|
||||
this.label9.AutoSize = true;
|
||||
this.label9.Location = new System.Drawing.Point(587, 10);
|
||||
this.label9.Location = new System.Drawing.Point(587, 55);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(53, 12);
|
||||
this.label9.TabIndex = 5;
|
||||
@@ -574,7 +583,7 @@
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label10.Location = new System.Drawing.Point(19, 34);
|
||||
this.label10.Location = new System.Drawing.Point(19, 79);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(53, 12);
|
||||
this.label10.TabIndex = 7;
|
||||
@@ -582,7 +591,7 @@
|
||||
//
|
||||
// tb_bubin
|
||||
//
|
||||
this.tb_bubin.Location = new System.Drawing.Point(74, 30);
|
||||
this.tb_bubin.Location = new System.Drawing.Point(74, 75);
|
||||
this.tb_bubin.Name = "tb_bubin";
|
||||
this.tb_bubin.Size = new System.Drawing.Size(138, 21);
|
||||
this.tb_bubin.TabIndex = 8;
|
||||
@@ -590,7 +599,7 @@
|
||||
// label11
|
||||
//
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(303, 34);
|
||||
this.label11.Location = new System.Drawing.Point(303, 79);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(53, 12);
|
||||
this.label11.TabIndex = 9;
|
||||
@@ -598,7 +607,7 @@
|
||||
//
|
||||
// tb_uptae
|
||||
//
|
||||
this.tb_uptae.Location = new System.Drawing.Point(358, 30);
|
||||
this.tb_uptae.Location = new System.Drawing.Point(358, 75);
|
||||
this.tb_uptae.Name = "tb_uptae";
|
||||
this.tb_uptae.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_uptae.TabIndex = 10;
|
||||
@@ -606,7 +615,7 @@
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(587, 34);
|
||||
this.label12.Location = new System.Drawing.Point(587, 79);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(53, 12);
|
||||
this.label12.TabIndex = 11;
|
||||
@@ -614,14 +623,14 @@
|
||||
//
|
||||
// tb_jongmok
|
||||
//
|
||||
this.tb_jongmok.Location = new System.Drawing.Point(642, 30);
|
||||
this.tb_jongmok.Location = new System.Drawing.Point(642, 75);
|
||||
this.tb_jongmok.Name = "tb_jongmok";
|
||||
this.tb_jongmok.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_jongmok.TabIndex = 12;
|
||||
//
|
||||
// tb_mail
|
||||
//
|
||||
this.tb_mail.Location = new System.Drawing.Point(642, 54);
|
||||
this.tb_mail.Location = new System.Drawing.Point(642, 99);
|
||||
this.tb_mail.Name = "tb_mail";
|
||||
this.tb_mail.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_mail.TabIndex = 18;
|
||||
@@ -629,7 +638,7 @@
|
||||
// label13
|
||||
//
|
||||
this.label13.AutoSize = true;
|
||||
this.label13.Location = new System.Drawing.Point(587, 58);
|
||||
this.label13.Location = new System.Drawing.Point(587, 103);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(53, 12);
|
||||
this.label13.TabIndex = 17;
|
||||
@@ -638,7 +647,7 @@
|
||||
// label14
|
||||
//
|
||||
this.label14.AutoSize = true;
|
||||
this.label14.Location = new System.Drawing.Point(587, 82);
|
||||
this.label14.Location = new System.Drawing.Point(587, 127);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(53, 12);
|
||||
this.label14.TabIndex = 22;
|
||||
@@ -646,7 +655,7 @@
|
||||
//
|
||||
// tb_user
|
||||
//
|
||||
this.tb_user.Location = new System.Drawing.Point(642, 78);
|
||||
this.tb_user.Location = new System.Drawing.Point(642, 123);
|
||||
this.tb_user.Name = "tb_user";
|
||||
this.tb_user.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_user.TabIndex = 23;
|
||||
@@ -655,7 +664,7 @@
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label15.Location = new System.Drawing.Point(19, 154);
|
||||
this.label15.Location = new System.Drawing.Point(19, 199);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(53, 12);
|
||||
this.label15.TabIndex = 31;
|
||||
@@ -664,7 +673,7 @@
|
||||
// label16
|
||||
//
|
||||
this.label16.AutoSize = true;
|
||||
this.label16.Location = new System.Drawing.Point(305, 154);
|
||||
this.label16.Location = new System.Drawing.Point(305, 199);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(49, 12);
|
||||
this.label16.TabIndex = 33;
|
||||
@@ -672,14 +681,14 @@
|
||||
//
|
||||
// tb_division
|
||||
//
|
||||
this.tb_division.Location = new System.Drawing.Point(74, 150);
|
||||
this.tb_division.Location = new System.Drawing.Point(74, 195);
|
||||
this.tb_division.Name = "tb_division";
|
||||
this.tb_division.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_division.TabIndex = 32;
|
||||
//
|
||||
// tb_label
|
||||
//
|
||||
this.tb_label.Location = new System.Drawing.Point(358, 150);
|
||||
this.tb_label.Location = new System.Drawing.Point(358, 195);
|
||||
this.tb_label.Name = "tb_label";
|
||||
this.tb_label.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_label.TabIndex = 34;
|
||||
@@ -687,7 +696,7 @@
|
||||
// label17
|
||||
//
|
||||
this.label17.AutoSize = true;
|
||||
this.label17.Location = new System.Drawing.Point(563, 154);
|
||||
this.label17.Location = new System.Drawing.Point(563, 199);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(77, 12);
|
||||
this.label17.TabIndex = 35;
|
||||
@@ -695,16 +704,17 @@
|
||||
//
|
||||
// tb_program
|
||||
//
|
||||
this.tb_program.Location = new System.Drawing.Point(642, 150);
|
||||
this.tb_program.Location = new System.Drawing.Point(642, 195);
|
||||
this.tb_program.Name = "tb_program";
|
||||
this.tb_program.Size = new System.Drawing.Size(194, 21);
|
||||
this.tb_program.TabIndex = 36;
|
||||
//
|
||||
// btn_close
|
||||
//
|
||||
this.btn_close.Location = new System.Drawing.Point(852, 191);
|
||||
this.btn_close.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btn_close.Location = new System.Drawing.Point(860, 4);
|
||||
this.btn_close.Name = "btn_close";
|
||||
this.btn_close.Size = new System.Drawing.Size(75, 34);
|
||||
this.btn_close.Size = new System.Drawing.Size(103, 36);
|
||||
this.btn_close.TabIndex = 43;
|
||||
this.btn_close.Text = "닫 기";
|
||||
this.btn_close.UseVisualStyleBackColor = true;
|
||||
@@ -714,7 +724,7 @@
|
||||
//
|
||||
this.cb_gubun1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_gubun1.FormattingEnabled = true;
|
||||
this.cb_gubun1.Location = new System.Drawing.Point(358, 6);
|
||||
this.cb_gubun1.Location = new System.Drawing.Point(358, 51);
|
||||
this.cb_gubun1.Name = "cb_gubun1";
|
||||
this.cb_gubun1.Size = new System.Drawing.Size(95, 20);
|
||||
this.cb_gubun1.TabIndex = 45;
|
||||
@@ -722,9 +732,9 @@
|
||||
//
|
||||
// btn_marc_expand
|
||||
//
|
||||
this.btn_marc_expand.Location = new System.Drawing.Point(852, 253);
|
||||
this.btn_marc_expand.Location = new System.Drawing.Point(852, 50);
|
||||
this.btn_marc_expand.Name = "btn_marc_expand";
|
||||
this.btn_marc_expand.Size = new System.Drawing.Size(75, 74);
|
||||
this.btn_marc_expand.Size = new System.Drawing.Size(75, 355);
|
||||
this.btn_marc_expand.TabIndex = 46;
|
||||
this.btn_marc_expand.Text = "마크 비고 >>";
|
||||
this.btn_marc_expand.UseVisualStyleBackColor = true;
|
||||
@@ -745,28 +755,25 @@
|
||||
//
|
||||
this.panel3.Controls.Add(this.dataGridView1);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new System.Drawing.Point(0, 367);
|
||||
this.panel3.Location = new System.Drawing.Point(0, 417);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(967, 475);
|
||||
this.panel3.Size = new System.Drawing.Size(967, 425);
|
||||
this.panel3.TabIndex = 49;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.Controls.Add(this.tableLayoutPanel1);
|
||||
this.panel2.Controls.Add(this.lbl_idx);
|
||||
this.panel2.Controls.Add(this.NameLabel);
|
||||
this.panel2.Controls.Add(this.cb_dlsArea);
|
||||
this.panel2.Controls.Add(this.btn_add);
|
||||
this.panel2.Controls.Add(this.label14);
|
||||
this.panel2.Controls.Add(this.tb_sangho);
|
||||
this.panel2.Controls.Add(this.btn_save);
|
||||
this.panel2.Controls.Add(this.btn_marc_expand);
|
||||
this.panel2.Controls.Add(this.label5);
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Controls.Add(this.cb_gubun1);
|
||||
this.panel2.Controls.Add(this.label13);
|
||||
this.panel2.Controls.Add(this.label2);
|
||||
this.panel2.Controls.Add(this.btn_delete);
|
||||
this.panel2.Controls.Add(this.btn_close);
|
||||
this.panel2.Controls.Add(this.label12);
|
||||
this.panel2.Controls.Add(this.cb_gubun2);
|
||||
this.panel2.Controls.Add(this.tb_tel);
|
||||
@@ -778,7 +785,6 @@
|
||||
this.panel2.Controls.Add(this.label3);
|
||||
this.panel2.Controls.Add(this.label16);
|
||||
this.panel2.Controls.Add(this.tb_jongmok);
|
||||
this.panel2.Controls.Add(this.btn_search);
|
||||
this.panel2.Controls.Add(this.tb_addr);
|
||||
this.panel2.Controls.Add(this.label11);
|
||||
this.panel2.Controls.Add(this.tb_uptae);
|
||||
@@ -803,7 +809,7 @@
|
||||
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(967, 367);
|
||||
this.panel2.Size = new System.Drawing.Size(967, 417);
|
||||
this.panel2.TabIndex = 48;
|
||||
//
|
||||
// lbl_idx
|
||||
@@ -818,7 +824,7 @@
|
||||
//
|
||||
this.cb_dlsArea.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cb_dlsArea.FormattingEnabled = true;
|
||||
this.cb_dlsArea.Location = new System.Drawing.Point(642, 126);
|
||||
this.cb_dlsArea.Location = new System.Drawing.Point(642, 171);
|
||||
this.cb_dlsArea.Name = "cb_dlsArea";
|
||||
this.cb_dlsArea.Size = new System.Drawing.Size(194, 20);
|
||||
this.cb_dlsArea.TabIndex = 47;
|
||||
@@ -827,7 +833,7 @@
|
||||
//
|
||||
this.label18.AutoSize = true;
|
||||
this.label18.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label18.Location = new System.Drawing.Point(587, 130);
|
||||
this.label18.Location = new System.Drawing.Point(587, 175);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new System.Drawing.Size(52, 12);
|
||||
this.label18.TabIndex = 24;
|
||||
@@ -837,14 +843,14 @@
|
||||
//
|
||||
this.marcGrid.AllowUserToAddRows = false;
|
||||
this.marcGrid.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle27.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle27;
|
||||
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle11.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.marcGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.marcGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.marcGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.Column1,
|
||||
@@ -862,8 +868,8 @@
|
||||
//
|
||||
// Column1
|
||||
//
|
||||
dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column1.DefaultCellStyle = dataGridViewCellStyle28;
|
||||
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column1.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.Column1.HeaderText = "내용";
|
||||
this.Column1.Name = "Column1";
|
||||
this.Column1.Width = 150;
|
||||
@@ -876,8 +882,8 @@
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column3.DefaultCellStyle = dataGridViewCellStyle29;
|
||||
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.Column3.DefaultCellStyle = dataGridViewCellStyle13;
|
||||
this.Column3.HeaderText = "내용";
|
||||
this.Column3.Name = "Column3";
|
||||
this.Column3.Width = 150;
|
||||
@@ -908,14 +914,14 @@
|
||||
//
|
||||
this.gearGrid.AllowUserToAddRows = false;
|
||||
this.gearGrid.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle30.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle30.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle30;
|
||||
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle14.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.gearGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
|
||||
this.gearGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.gearGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewTextBoxColumn1,
|
||||
@@ -933,8 +939,8 @@
|
||||
//
|
||||
// dataGridViewTextBoxColumn1
|
||||
//
|
||||
dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle31;
|
||||
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle15;
|
||||
this.dataGridViewTextBoxColumn1.HeaderText = "내용";
|
||||
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
|
||||
this.dataGridViewTextBoxColumn1.Width = 150;
|
||||
@@ -947,8 +953,8 @@
|
||||
//
|
||||
// dataGridViewTextBoxColumn3
|
||||
//
|
||||
dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle32;
|
||||
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle16;
|
||||
this.dataGridViewTextBoxColumn3.HeaderText = "내용";
|
||||
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
|
||||
this.dataGridViewTextBoxColumn3.Width = 150;
|
||||
@@ -1036,6 +1042,71 @@
|
||||
this.panel5.Size = new System.Drawing.Size(830, 35);
|
||||
this.panel5.TabIndex = 51;
|
||||
//
|
||||
// tbSearch
|
||||
//
|
||||
this.tableLayoutPanel1.SetColumnSpan(this.tbSearch, 2);
|
||||
this.tbSearch.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tbSearch.Font = new System.Drawing.Font("굴림", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tbSearch.Location = new System.Drawing.Point(108, 6);
|
||||
this.tbSearch.Margin = new System.Windows.Forms.Padding(0, 5, 0, 5);
|
||||
this.tbSearch.Name = "tbSearch";
|
||||
this.tbSearch.Size = new System.Drawing.Size(213, 32);
|
||||
this.tbSearch.TabIndex = 1;
|
||||
this.tbSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tb_sangho_KeyDown);
|
||||
//
|
||||
// label19
|
||||
//
|
||||
this.label19.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.label19.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
this.label19.Location = new System.Drawing.Point(4, 1);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new System.Drawing.Size(100, 42);
|
||||
this.label19.TabIndex = 0;
|
||||
this.label19.Text = "업 체 명";
|
||||
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
|
||||
this.tableLayoutPanel1.ColumnCount = 9;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11111F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.label19, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tbSearch, 1, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_search, 3, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_close, 8, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_delete, 7, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_save, 6, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btn_add, 5, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.btnInit, 4, 0);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 1;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(967, 44);
|
||||
this.tableLayoutPanel1.TabIndex = 49;
|
||||
//
|
||||
// btnInit
|
||||
//
|
||||
this.btnInit.DialogResult = System.Windows.Forms.DialogResult.Abort;
|
||||
this.btnInit.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnInit.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
||||
this.btnInit.Location = new System.Drawing.Point(432, 4);
|
||||
this.btnInit.Name = "btnInit";
|
||||
this.btnInit.Size = new System.Drawing.Size(100, 36);
|
||||
this.btnInit.TabIndex = 39;
|
||||
this.btnInit.Text = "초기화";
|
||||
this.btnInit.UseVisualStyleBackColor = true;
|
||||
this.btnInit.Click += new System.EventHandler(this.btnInit_Click);
|
||||
//
|
||||
// Transaction_manage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
@@ -1060,6 +1131,8 @@
|
||||
this.panel6.ResumeLayout(false);
|
||||
this.panel5.ResumeLayout(false);
|
||||
this.panel5.PerformLayout();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@@ -1158,5 +1231,9 @@
|
||||
private System.Windows.Forms.Panel panel6;
|
||||
private System.Windows.Forms.Panel panel5;
|
||||
private System.Windows.Forms.Panel panel8;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.Label label19;
|
||||
public System.Windows.Forms.TextBox tbSearch;
|
||||
private System.Windows.Forms.Button btnInit;
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using UniMarc;
|
||||
using WindowsFormsApp1.Delivery;
|
||||
|
||||
namespace WindowsFormsApp1.Home
|
||||
@@ -76,7 +77,7 @@ namespace WindowsFormsApp1.Home
|
||||
ea++;
|
||||
}
|
||||
}
|
||||
public void btn_add_Click(object sender, EventArgs e)
|
||||
public void TextInit()
|
||||
{
|
||||
lbl_idx.Text = "";
|
||||
tb_sangho.Text = "";
|
||||
@@ -100,8 +101,27 @@ namespace WindowsFormsApp1.Home
|
||||
rtb_etc.Text = "";
|
||||
cb_gubun1.SelectedIndex = 0;
|
||||
}
|
||||
private void btn_save_Click(object sender, EventArgs e)
|
||||
private bool Check_Data(string pText)
|
||||
{
|
||||
string CopyCheckCMD = string.Format("SELECT {0} FROM {1} WHERE {0} = \"{2}\";", "`c_sangho`", "`Client`", tb_sangho.Text);
|
||||
string CopyCheck = db.DB_Send_CMD_Search(CopyCheckCMD).Replace("|", "");
|
||||
bool isCopy = CopyCheck == pText;
|
||||
return isCopy;
|
||||
}
|
||||
private void btnInit_Click(object sender, EventArgs e)
|
||||
{
|
||||
TextInit();
|
||||
}
|
||||
|
||||
public void btn_add_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null) return;
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
string tText = string.Format("{0} 를 추가 하시겠습니까?", tb_sangho.Text);
|
||||
if (CUtill.MsgQ(tText) != DialogResult.Yes) return;
|
||||
|
||||
if (tb_sangho.Text == "")
|
||||
{
|
||||
MessageBox.Show("업체명이 비어있습니다.");
|
||||
@@ -122,24 +142,75 @@ namespace WindowsFormsApp1.Home
|
||||
MessageBox.Show("DLS 지역을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
string CopyCheckCMD = string.Format("SELECT {0} FROM {1} WHERE {0} = \"{2}\";", "`c_sangho`", "`Client`", tb_sangho.Text);
|
||||
string CopyCheck = db.DB_Send_CMD_Search(CopyCheckCMD);
|
||||
|
||||
bool isCopy = false;
|
||||
|
||||
if (CopyCheck.Length > 0)
|
||||
isCopy = true;
|
||||
|
||||
if (isCopy) // 중복 데이터가 있을 경우
|
||||
//string CopyCheckCMD = string.Format("SELECT {0} FROM {1} WHERE {0} = \"{2}\";", "`c_sangho`", "`Client`", tb_sangho.Text);
|
||||
//string CopyCheck = db.DB_Send_CMD_Search(CopyCheckCMD).Replace("|","");
|
||||
//bool isCopy = CopyCheck == tb_sangho.Text;
|
||||
bool isCopy = Check_Data(tb_sangho.Text);
|
||||
if (isCopy)
|
||||
{
|
||||
MessageBox.Show("중복된 상호명이 존재합니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
string[] tmpdb = { "c_sangho", "c_gu", "c_boss", "c_bubin", "c_uptae",
|
||||
"c_jongmok", "c_tel", "c_fax", "c_email", "c_man",
|
||||
"c_mantel", "c_user", "c_zip", "c_addr", "c_dlsID",
|
||||
"c_dlsPW", "c_division", "c_label", "c_program", "c_etc",
|
||||
"campanyidx", "c_dlsArea" };
|
||||
|
||||
string[] tmpdb1 = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
|
||||
tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
|
||||
tb_man1.Text, tb_user.Text, tb_zip.Text, tb_addr.Text, tb_id.Text,
|
||||
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
|
||||
compidx, cb_dlsArea.Text };
|
||||
string[] tOldData = {
|
||||
};
|
||||
string Incmd = db.DB_INSERT("Client", tmpdb, tmpdb1);
|
||||
|
||||
db.DB_Send_CMD_reVoid(Incmd);
|
||||
SearchList();
|
||||
MessageBox.Show(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
}
|
||||
private void btn_save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView1.SelectedRows.Count == 0)
|
||||
{
|
||||
MessageBox.Show("수정 할 업체를 선택해 주세요.");
|
||||
return;
|
||||
}
|
||||
int tRowIndex = dataGridView1.SelectedRows[0].Index;
|
||||
if (tRowIndex < 0)
|
||||
return;
|
||||
string tText = string.Format("{0} 를 수정 하시겠습니까?", dataGridView1.Rows[tRowIndex].Cells["sangho"].Value.ToString());
|
||||
if (CUtill.MsgQ(tText) != DialogResult.Yes) return;
|
||||
if (tb_sangho.Text == "")
|
||||
{
|
||||
MessageBox.Show("업체명이 비어있습니다.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun1.SelectedIndex == 0)
|
||||
{
|
||||
MessageBox.Show("구분을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun2.SelectedIndex == 0)
|
||||
{
|
||||
MessageBox.Show("구분을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
if (cb_gubun2.SelectedItem.ToString() == "학교" && cb_dlsArea.SelectedIndex < 0 && tb_id.Text != "")
|
||||
{
|
||||
MessageBox.Show("DLS 지역을 선택해주세요.");
|
||||
return;
|
||||
}
|
||||
//string CopyCheckCMD = string.Format("SELECT {0} FROM {1} WHERE {0} = \"{2}\";", "`c_sangho`", "`Client`", tb_sangho.Text);
|
||||
//string CopyCheck = db.DB_Send_CMD_Search(CopyCheckCMD).Replace("|","");
|
||||
//bool isCopy = CopyCheck == tb_sangho.Text;
|
||||
//bool isCopy = Check_Data(tb_sangho.Text);
|
||||
|
||||
//if (isCopy) // 중복 데이터가 있을 경우
|
||||
//{
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
|
||||
if (RowIndex < 0) {
|
||||
MessageBox.Show("중복된 상호명이 존재합니다!");
|
||||
return;
|
||||
}
|
||||
|
||||
string[] editcol = { "c_sangho", "c_gu", "c_boss", "c_bubin", "c_uptae",
|
||||
"c_jongmok", "c_tel", "c_fax", "c_email", "c_man",
|
||||
"c_mantel", "c_user", "c_zip", "c_addr", "c_dlsID",
|
||||
@@ -158,41 +229,45 @@ namespace WindowsFormsApp1.Home
|
||||
string U_cmd = db.More_Update("Client", editcol, editname, searchcol, searchname);
|
||||
|
||||
db.DB_Send_CMD_reVoid(U_cmd);
|
||||
|
||||
MessageBox.Show(tb_sangho.Text + "가 성공적으로 수정되었습니다.");
|
||||
}
|
||||
else
|
||||
{
|
||||
string[] tmpdb = { "c_sangho", "c_gu", "c_boss", "c_bubin", "c_uptae",
|
||||
"c_jongmok", "c_tel", "c_fax", "c_email", "c_man",
|
||||
"c_mantel", "c_user", "c_zip", "c_addr", "c_dlsID",
|
||||
"c_dlsPW", "c_division", "c_label", "c_program", "c_etc",
|
||||
"campanyidx", "c_dlsArea" };
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// string[] tmpdb = { "c_sangho", "c_gu", "c_boss", "c_bubin", "c_uptae",
|
||||
// "c_jongmok", "c_tel", "c_fax", "c_email", "c_man",
|
||||
// "c_mantel", "c_user", "c_zip", "c_addr", "c_dlsID",
|
||||
// "c_dlsPW", "c_division", "c_label", "c_program", "c_etc",
|
||||
// "campanyidx", "c_dlsArea" };
|
||||
// string[] tmpdb1 = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
|
||||
// tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
|
||||
// tb_man1.Text, tb_user.Text, tb_zip.Text, tb_addr.Text, tb_id.Text,
|
||||
// tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
|
||||
// compidx, cb_dlsArea.Text };
|
||||
// string[] tOldData = {
|
||||
// };
|
||||
// string Incmd = db.DB_INSERT("Client", tmpdb, tmpdb1);
|
||||
|
||||
string[] tmpdb1 = { tb_sangho.Text, cb_gubun2.Text, tb_boss.Text, tb_bubin.Text, tb_uptae.Text,
|
||||
tb_jongmok.Text, tb_tel.Text, tb_fax.Text, tb_mail.Text, tb_man.Text,
|
||||
tb_man1.Text, tb_user.Text, tb_zip.Text, tb_addr.Text, tb_id.Text,
|
||||
tb_pw.Text, tb_division.Text, tb_label.Text, tb_program.Text, rtb_etc.Text,
|
||||
compidx, cb_dlsArea.Text };
|
||||
// db.DB_Send_CMD_reVoid(Incmd);
|
||||
|
||||
string Incmd = db.DB_INSERT("Client", tmpdb, tmpdb1);
|
||||
// MessageBox.Show(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
//}
|
||||
SearchList();
|
||||
dataGridView1.Rows[RowIndex].Selected = true;
|
||||
|
||||
db.DB_Send_CMD_reVoid(Incmd);
|
||||
|
||||
MessageBox.Show(string.Format("[{0}]가 성공적으로 저장되었습니다.", tb_sangho.Text));
|
||||
}
|
||||
}
|
||||
|
||||
private void btn_delete_Click(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
if (dataGridView1.CurrentCell == null) return;
|
||||
int RowIndex = dataGridView1.CurrentCell.RowIndex;
|
||||
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
|
||||
string tText = string.Format("{0} 를 삭제 하시겠습니까?", dataGridView1.Rows[RowIndex].Cells["sangho"].Value.ToString());
|
||||
if (CUtill.MsgQ(tText) != DialogResult.Yes) return;
|
||||
string D_cmd = db.DB_Delete("Client", "idx", dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString(), "c_sangho", tb_sangho.Text);
|
||||
db.DB_Send_CMD_reVoid(D_cmd);
|
||||
Made_Grid();
|
||||
SearchList();
|
||||
MessageBox.Show("삭제되었습니다.");
|
||||
}
|
||||
|
||||
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
@@ -202,7 +277,7 @@ namespace WindowsFormsApp1.Home
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
|
||||
btn_add_Click(null, null);
|
||||
TextInit();
|
||||
|
||||
Infor_Client(RowIndex);
|
||||
|
||||
@@ -211,6 +286,9 @@ namespace WindowsFormsApp1.Home
|
||||
|
||||
void Infor_Client(int RowIndex)
|
||||
{
|
||||
if (RowIndex < 0)
|
||||
return;
|
||||
|
||||
lbl_idx.Text = dataGridView1.Rows[RowIndex].Cells["idx"].Value.ToString();
|
||||
|
||||
tb_sangho.Text = dataGridView1.Rows[RowIndex].Cells["sangho"].Value.ToString();
|
||||
@@ -234,14 +312,16 @@ namespace WindowsFormsApp1.Home
|
||||
|
||||
rtb_etc.Text = dataGridView1.Rows[RowIndex].Cells["bigo"].Value.ToString();
|
||||
cb_dlsArea.Text = dataGridView1.Rows[RowIndex].Cells["dlsArea"].Value.ToString();
|
||||
|
||||
string gubun = dataGridView1.Rows[RowIndex].Cells["gubun"].Value.ToString();
|
||||
|
||||
Select_Gubun(RowIndex);
|
||||
}
|
||||
private void Select_Gubun(int pRowIndex)
|
||||
{
|
||||
string gubun = dataGridView1.Rows[pRowIndex].Cells["gubun"].Value.ToString();
|
||||
if (gubun.Contains("학교") || gubun == "도서관" || gubun == "유치원")
|
||||
{
|
||||
cb_gubun1.SelectedIndex = 1;
|
||||
|
||||
switch(gubun)
|
||||
switch (gubun)
|
||||
{
|
||||
case "유치원":
|
||||
cb_gubun2.SelectedIndex = 1;
|
||||
@@ -265,7 +345,6 @@ namespace WindowsFormsApp1.Home
|
||||
cb_gubun2.SelectedIndex = 7;
|
||||
break;
|
||||
};
|
||||
|
||||
}
|
||||
if (gubun == "서점" || gubun == "기타")
|
||||
{
|
||||
@@ -282,7 +361,6 @@ namespace WindowsFormsApp1.Home
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private void tb_sangho_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
@@ -292,7 +370,10 @@ namespace WindowsFormsApp1.Home
|
||||
{
|
||||
/// _Sub_Search_Form sub_search = new _Sub_Search_Form(this);
|
||||
/// sub_search.Show();
|
||||
|
||||
SearchList();
|
||||
}
|
||||
private void SearchList()
|
||||
{
|
||||
dataGridView1.Rows.Clear();
|
||||
|
||||
string search = "`idx`, `c_sangho`, `c_gu`, `c_boss`, `c_bubin`, " +
|
||||
@@ -300,10 +381,11 @@ namespace WindowsFormsApp1.Home
|
||||
"`c_man`, `c_mantel`, `c_user`, `c_zip`, `c_addr`, " +
|
||||
"`c_dlsArea`, `c_dlsID`, `c_dlsPW`, `c_division`, `c_label`," +
|
||||
" `c_program`, `c_etc`";
|
||||
string cmd = db.DB_Contains("Client", compidx, "c_sangho", tb_sangho.Text, search);
|
||||
string cmd = db.DB_Contains("Client", compidx, "c_sangho", tbSearch.Text, search);
|
||||
db.DB_Send_CMD_Search_ApplyGrid(cmd, dataGridView1);
|
||||
|
||||
dataGridView1.Focus();
|
||||
dataGridView1.ClearSelection();
|
||||
}
|
||||
private void cb_gubun1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
@@ -464,5 +546,7 @@ namespace WindowsFormsApp1.Home
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace WindowsFormsApp1.Home
|
||||
}
|
||||
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
tran.btn_add_Click(null, null);
|
||||
tran.TextInit();
|
||||
if (grididx < 0) { grididx = e.RowIndex; }
|
||||
tran.tb_sangho.Text = dataGridView1.Rows[grididx].Cells["sangho"].Value.ToString();
|
||||
if(dataGridView1.Rows[grididx].Cells["gubun"].Value.ToString() == "서점") {
|
||||
|
||||
Reference in New Issue
Block a user