diff --git a/unimarc/.vs/unimarc/FileContentIndex/27c84db3-3024-4e40-94fb-6ea1fda488d5.vsidx b/unimarc/.vs/unimarc/FileContentIndex/27c84db3-3024-4e40-94fb-6ea1fda488d5.vsidx
new file mode 100644
index 0000000..70b8916
Binary files /dev/null and b/unimarc/.vs/unimarc/FileContentIndex/27c84db3-3024-4e40-94fb-6ea1fda488d5.vsidx differ
diff --git a/unimarc/.vs/unimarc/FileContentIndex/336dff4a-a5dc-4e62-af8b-908f8abdf796.vsidx b/unimarc/.vs/unimarc/FileContentIndex/336dff4a-a5dc-4e62-af8b-908f8abdf796.vsidx
deleted file mode 100644
index 317b177..0000000
Binary files a/unimarc/.vs/unimarc/FileContentIndex/336dff4a-a5dc-4e62-af8b-908f8abdf796.vsidx and /dev/null differ
diff --git a/unimarc/.vs/unimarc/FileContentIndex/48e3c305-229a-4af0-85d5-6d0837295a3b.vsidx b/unimarc/.vs/unimarc/FileContentIndex/48e3c305-229a-4af0-85d5-6d0837295a3b.vsidx
new file mode 100644
index 0000000..d836622
Binary files /dev/null and b/unimarc/.vs/unimarc/FileContentIndex/48e3c305-229a-4af0-85d5-6d0837295a3b.vsidx differ
diff --git a/unimarc/.vs/unimarc/FileContentIndex/4c9cd9ca-407b-458a-ad49-31f17e749efe.vsidx b/unimarc/.vs/unimarc/FileContentIndex/4c9cd9ca-407b-458a-ad49-31f17e749efe.vsidx
new file mode 100644
index 0000000..d520b82
Binary files /dev/null and b/unimarc/.vs/unimarc/FileContentIndex/4c9cd9ca-407b-458a-ad49-31f17e749efe.vsidx differ
diff --git a/unimarc/.vs/unimarc/FileContentIndex/97e578d3-855e-4ecd-98f9-9fc61ddee57b.vsidx b/unimarc/.vs/unimarc/FileContentIndex/97e578d3-855e-4ecd-98f9-9fc61ddee57b.vsidx
deleted file mode 100644
index 3a85faf..0000000
Binary files a/unimarc/.vs/unimarc/FileContentIndex/97e578d3-855e-4ecd-98f9-9fc61ddee57b.vsidx and /dev/null differ
diff --git a/unimarc/.vs/unimarc/FileContentIndex/0ee88110-fda0-4351-a63c-a59ad95eebd0.vsidx b/unimarc/.vs/unimarc/FileContentIndex/d31c0a11-9cc3-43a6-a954-3b626a5d74d9.vsidx
similarity index 80%
rename from unimarc/.vs/unimarc/FileContentIndex/0ee88110-fda0-4351-a63c-a59ad95eebd0.vsidx
rename to unimarc/.vs/unimarc/FileContentIndex/d31c0a11-9cc3-43a6-a954-3b626a5d74d9.vsidx
index 4e0d423..8fe12b0 100644
Binary files a/unimarc/.vs/unimarc/FileContentIndex/0ee88110-fda0-4351-a63c-a59ad95eebd0.vsidx and b/unimarc/.vs/unimarc/FileContentIndex/d31c0a11-9cc3-43a6-a954-3b626a5d74d9.vsidx differ
diff --git a/unimarc/.vs/unimarc/FileContentIndex/e3185dd4-107c-45df-8481-4ea61fde1044.vsidx b/unimarc/.vs/unimarc/FileContentIndex/e3185dd4-107c-45df-8481-4ea61fde1044.vsidx
deleted file mode 100644
index 916739a..0000000
Binary files a/unimarc/.vs/unimarc/FileContentIndex/e3185dd4-107c-45df-8481-4ea61fde1044.vsidx and /dev/null differ
diff --git a/unimarc/.vs/unimarc/v17/.suo b/unimarc/.vs/unimarc/v17/.suo
index f79ea34..4191eaa 100644
Binary files a/unimarc/.vs/unimarc/v17/.suo and b/unimarc/.vs/unimarc/v17/.suo differ
diff --git a/unimarc/UniMarcSetup/Debug/UniMarcSetup.msi b/unimarc/UniMarcSetup/Debug/UniMarcSetup.msi
index c3d572f..50a24a0 100644
Binary files a/unimarc/UniMarcSetup/Debug/UniMarcSetup.msi and b/unimarc/UniMarcSetup/Debug/UniMarcSetup.msi differ
diff --git a/unimarc/UniMarcSetup/UniMarcSetup.vdproj b/unimarc/UniMarcSetup/UniMarcSetup.vdproj
index 034eda2..8a44f20 100644
--- a/unimarc/UniMarcSetup/UniMarcSetup.vdproj
+++ b/unimarc/UniMarcSetup/UniMarcSetup.vdproj
@@ -27,14 +27,14 @@
}
"Entry"
{
- "MsmKey" = "8:_DB613D3560F844F89E088F109623E80F"
+ "MsmKey" = "8:_F9161DD480D9480B9BA0326B45F68C44"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
- "OwnerKey" = "8:_DB613D3560F844F89E088F109623E80F"
+ "OwnerKey" = "8:_F9161DD480D9480B9BA0326B45F68C44"
"MsmSig" = "8:_UNDEFINED"
}
}
@@ -55,6 +55,14 @@
"PrivateKeyFile" = "8:"
"TimeStampServer" = "8:"
"InstallerBootstrapper" = "3:2"
+ "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}"
+ {
+ "Enabled" = "11:TRUE"
+ "PromptEnabled" = "11:TRUE"
+ "PrerequisitesLocation" = "2:1"
+ "Url" = "8:"
+ "ComponentsUrl" = "8:"
+ }
}
"Release"
{
@@ -71,6 +79,14 @@
"PrivateKeyFile" = "8:"
"TimeStampServer" = "8:"
"InstallerBootstrapper" = "3:2"
+ "BootstrapperCfg:{63ACBE69-63AA-4F98-B2B6-99F9E24495F2}"
+ {
+ "Enabled" = "11:TRUE"
+ "PromptEnabled" = "11:TRUE"
+ "PrerequisitesLocation" = "2:1"
+ "Url" = "8:"
+ "ComponentsUrl" = "8:"
+ }
}
}
"Deployable"
@@ -205,12 +221,12 @@
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.0.0"
- "Manufacturer" = "8:Microsoft Corporation"
+ "Manufacturer" = "8:GloriaBook"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
"Title" = "8:UniMarcSetup"
"Subject" = "8:"
- "ARPCONTACT" = "8:Microsoft Corporation"
+ "ARPCONTACT" = "8:GloriaBook"
"Keywords" = "8:"
"ARPCOMMENTS" = "8:"
"ARPURLINFOABOUT" = "8:"
@@ -317,7 +333,7 @@
}
"Shortcut"
{
- "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_241AF677901B496384371820B6FFF937"
+ "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_4DA41A228EA24F96A54F44E174D06DE7"
{
"Name" = "8:UniMarc"
"Arguments" = "8:"
@@ -325,13 +341,13 @@
"ShowCmd" = "3:1"
"IconIndex" = "3:0"
"Transitive" = "11:FALSE"
- "Target" = "8:_DB613D3560F844F89E088F109623E80F"
- "Folder" = "8:_7289ABD2FB4B45B68B477B86A524EE33"
+ "Target" = "8:_F9161DD480D9480B9BA0326B45F68C44"
+ "Folder" = "8:_3D727FC4A8BB41DABE294210589BB7CD"
"WorkingFolder" = "8:_A364675CFF7847C09ACEC7EAA54B96DD"
"Icon" = "8:_30910C6D846D44E6AE488D5CFB73A8E8"
"Feature" = "8:"
}
- "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_55E2D093148047B69FD538E883FBE888"
+ "{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_DA34256B50134030A88EDD7E7634D3D5"
{
"Name" = "8:UniMarc"
"Arguments" = "8:"
@@ -339,8 +355,8 @@
"ShowCmd" = "3:1"
"IconIndex" = "3:0"
"Transitive" = "11:FALSE"
- "Target" = "8:_DB613D3560F844F89E088F109623E80F"
- "Folder" = "8:_3D727FC4A8BB41DABE294210589BB7CD"
+ "Target" = "8:_F9161DD480D9480B9BA0326B45F68C44"
+ "Folder" = "8:_7289ABD2FB4B45B68B477B86A524EE33"
"WorkingFolder" = "8:_A364675CFF7847C09ACEC7EAA54B96DD"
"Icon" = "8:_30910C6D846D44E6AE488D5CFB73A8E8"
"Feature" = "8:"
@@ -744,7 +760,7 @@
}
"ProjectOutput"
{
- "{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_DB613D3560F844F89E088F109623E80F"
+ "{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_F9161DD480D9480B9BA0326B45F68C44"
{
"SourcePath" = "8:..\\Factory_Client\\obj\\Debug\\Factory_Client.exe"
"TargetName" = "8:"
diff --git a/unimarc/unimarc/App.config b/unimarc/unimarc/App.config
index 6f179f4..016f5e3 100644
--- a/unimarc/unimarc/App.config
+++ b/unimarc/unimarc/App.config
@@ -34,25 +34,25 @@
- 1.215.250.130
+ 1.11010111.11111010.10000010
- 815
+ 1100101111
- gloriabook
+ 103.108.111.114.105.97.98.111.111.107
- admin@!@#$
+ 97.100.109.105.110.64.33.64.35.36
- 3306
+ 110011101010
- root
+ 114.111.111.116
- Admin21234
+ 65.100.109.105.110.50.49.50.51.52
diff --git a/unimarc/unimarc/Helper_DB.cs b/unimarc/unimarc/Helper_DB.cs
index 233a62f..593a22a 100644
--- a/unimarc/unimarc/Helper_DB.cs
+++ b/unimarc/unimarc/Helper_DB.cs
@@ -406,9 +406,10 @@ namespace WindowsFormsApp1
///
/// 검색할 회사 명
///
- public bool chk_comp(string Search_Data)
+ public string chk_comp(string CompName)
{
- string cmd = "SELECT `comp_name` FROM `Comp`;";
+ string cmd = "SELECT `idx` FROM `Comp`;";
+ string result = "";
// DB연결
conn.Open();
// 쿼리 맵핑
@@ -422,11 +423,11 @@ namespace WindowsFormsApp1
{
for (int cout = 0; cout < sd.FieldCount; cout++)
{
- if(sd[cout].ToString() == Search_Data) { conn.Close(); return false; }
+ result = sd[cout].ToString();
}
}
conn.Close();
- return true;
+ return result;
}
///
/// SQL문을 직접 만들어서 작성하여 사용해야함. (단, DELETE문/UPDATE문은 사용하지말 것!)
diff --git a/unimarc/unimarc/Login.cs b/unimarc/unimarc/Login.cs
index 66cadf7..21a578f 100644
--- a/unimarc/unimarc/Login.cs
+++ b/unimarc/unimarc/Login.cs
@@ -10,13 +10,14 @@ using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Net.Sockets;
-using Microsoft.VisualBasic;
+using Application = System.Windows.Forms.Application;
namespace WindowsFormsApp1
{
public partial class login : Form
{
Helper_DB db = new Helper_DB();
+ IP ip = new IP();
public login()
{
InitializeComponent();
@@ -24,7 +25,7 @@ namespace WindowsFormsApp1
private void login_Load(object sender, EventArgs e)
{
- lbl_IP.Text = String.Format("{0}", GetIP);
+ lbl_IP.Text = String.Format("{0}", ip.GetIP);
this.ActiveControl = ID_text;
@@ -32,7 +33,6 @@ namespace WindowsFormsApp1
chk_Save.Checked = true;
ReadFile();
}
-
db.DBcon();
}
@@ -103,40 +103,6 @@ namespace WindowsFormsApp1
return false;
}
-
- ///
- /// 현 PC의 외부아이피를 가져옴
- /// 프로그램에서 가져올 방법이 딱히 없어 꼼수로 웹사이트 크롤링을 통해 가져옴
- ///
- public static string GetIP
- {
- get
- {
- string externalIp = new WebClient().DownloadString("http://ipinfo.io/ip").Trim(); // http://icanhazip.com
-
- if (string.IsNullOrWhiteSpace(externalIp))
- externalIp = GetIP;
- return externalIp;
-
- // string url = "http://checkip.dyndns.org/";
- // HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
- // request.Method = "GET";
- //
- // string resResult = string.Empty;
- // using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
- // {
- // StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8, true);
- // resResult = reader.ReadToEnd();
- // }
- // string realip = Parsing(Parsing(resResult, "Current IP Address:")[1], "