From: newton-cn Date: Thu, 29 Jan 2026 05:47:24 +0000 (+0900) Subject: ddd X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;h=9af2eda6f597a7066b693fbdabef07bd3edc76ac;p=newton-cn_pos.git ddd --- diff --git a/.vs/newton-cn/v16/.suo b/.vs/newton-cn/v16/.suo index ed898a8..b14aba7 100644 Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ diff --git a/newton-cn/Form9.Designer.cs b/newton-cn/Form9.Designer.cs index a746b4d..cf63219 100644 --- a/newton-cn/Form9.Designer.cs +++ b/newton-cn/Form9.Designer.cs @@ -51,9 +51,9 @@ namespace newton_cn // button3 // this.button3.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button3.Location = new System.Drawing.Point(325, 14); + this.button3.Location = new System.Drawing.Point(330, 14); this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(35, 31); + this.button3.Size = new System.Drawing.Size(30, 29); this.button3.TabIndex = 0; this.button3.Text = "X"; this.button3.UseVisualStyleBackColor = true; @@ -62,9 +62,9 @@ namespace newton_cn // textBox1 // this.textBox1.BackColor = System.Drawing.SystemColors.HighlightText; - this.textBox1.Location = new System.Drawing.Point(12, 22); + this.textBox1.Location = new System.Drawing.Point(225, 101); this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(96, 21); + this.textBox1.Size = new System.Drawing.Size(135, 21); this.textBox1.TabIndex = 1; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // @@ -73,7 +73,7 @@ namespace newton_cn this.listView1.BackColor = System.Drawing.SystemColors.HighlightText; this.listView1.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.listView1.HideSelection = false; - this.listView1.Location = new System.Drawing.Point(12, 51); + this.listView1.Location = new System.Drawing.Point(12, 253); this.listView1.Name = "listView1"; this.listView1.Size = new System.Drawing.Size(348, 407); this.listView1.TabIndex = 4; @@ -83,9 +83,10 @@ namespace newton_cn // button2 // this.button2.Font = new System.Drawing.Font("굴림", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button2.Location = new System.Drawing.Point(201, 611); + this.button2.ForeColor = System.Drawing.Color.Crimson; + this.button2.Location = new System.Drawing.Point(272, 149); this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(135, 37); + this.button2.Size = new System.Drawing.Size(88, 83); this.button2.TabIndex = 0; this.button2.Text = "회원선택"; this.button2.UseVisualStyleBackColor = true; @@ -94,9 +95,9 @@ namespace newton_cn // button1 // this.button1.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button1.Location = new System.Drawing.Point(20, 482); + this.button1.Location = new System.Drawing.Point(12, 14); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(41, 37); + this.button1.Size = new System.Drawing.Size(51, 52); this.button1.TabIndex = 5; this.button1.Text = "7"; this.button1.UseVisualStyleBackColor = true; @@ -105,9 +106,9 @@ namespace newton_cn // button4 // this.button4.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button4.Location = new System.Drawing.Point(67, 482); + this.button4.Location = new System.Drawing.Point(83, 14); this.button4.Name = "button4"; - this.button4.Size = new System.Drawing.Size(41, 37); + this.button4.Size = new System.Drawing.Size(51, 52); this.button4.TabIndex = 6; this.button4.Text = "8"; this.button4.UseVisualStyleBackColor = true; @@ -116,9 +117,9 @@ namespace newton_cn // button5 // this.button5.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button5.Location = new System.Drawing.Point(114, 482); + this.button5.Location = new System.Drawing.Point(153, 14); this.button5.Name = "button5"; - this.button5.Size = new System.Drawing.Size(41, 37); + this.button5.Size = new System.Drawing.Size(51, 52); this.button5.TabIndex = 7; this.button5.Text = "9"; this.button5.UseVisualStyleBackColor = true; @@ -127,9 +128,9 @@ namespace newton_cn // button6 // this.button6.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button6.Location = new System.Drawing.Point(20, 525); + this.button6.Location = new System.Drawing.Point(12, 72); this.button6.Name = "button6"; - this.button6.Size = new System.Drawing.Size(41, 37); + this.button6.Size = new System.Drawing.Size(51, 50); this.button6.TabIndex = 8; this.button6.Text = "4"; this.button6.UseVisualStyleBackColor = true; @@ -138,9 +139,9 @@ namespace newton_cn // button7 // this.button7.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button7.Location = new System.Drawing.Point(67, 525); + this.button7.Location = new System.Drawing.Point(83, 72); this.button7.Name = "button7"; - this.button7.Size = new System.Drawing.Size(41, 37); + this.button7.Size = new System.Drawing.Size(51, 50); this.button7.TabIndex = 9; this.button7.Text = "5"; this.button7.UseVisualStyleBackColor = true; @@ -149,9 +150,9 @@ namespace newton_cn // button8 // this.button8.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button8.Location = new System.Drawing.Point(114, 525); + this.button8.Location = new System.Drawing.Point(153, 72); this.button8.Name = "button8"; - this.button8.Size = new System.Drawing.Size(41, 37); + this.button8.Size = new System.Drawing.Size(51, 50); this.button8.TabIndex = 10; this.button8.Text = "6"; this.button8.UseVisualStyleBackColor = true; @@ -160,9 +161,9 @@ namespace newton_cn // button9 // this.button9.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button9.Location = new System.Drawing.Point(20, 568); + this.button9.Location = new System.Drawing.Point(12, 130); this.button9.Name = "button9"; - this.button9.Size = new System.Drawing.Size(41, 37); + this.button9.Size = new System.Drawing.Size(51, 51); this.button9.TabIndex = 11; this.button9.Text = "1"; this.button9.UseVisualStyleBackColor = true; @@ -171,9 +172,9 @@ namespace newton_cn // button10 // this.button10.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button10.Location = new System.Drawing.Point(67, 568); + this.button10.Location = new System.Drawing.Point(83, 130); this.button10.Name = "button10"; - this.button10.Size = new System.Drawing.Size(41, 37); + this.button10.Size = new System.Drawing.Size(51, 51); this.button10.TabIndex = 12; this.button10.Text = "2"; this.button10.UseVisualStyleBackColor = true; @@ -182,9 +183,9 @@ namespace newton_cn // button11 // this.button11.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button11.Location = new System.Drawing.Point(114, 568); + this.button11.Location = new System.Drawing.Point(153, 130); this.button11.Name = "button11"; - this.button11.Size = new System.Drawing.Size(41, 37); + this.button11.Size = new System.Drawing.Size(51, 53); this.button11.TabIndex = 13; this.button11.Text = "3"; this.button11.UseVisualStyleBackColor = true; @@ -193,9 +194,9 @@ namespace newton_cn // button12 // this.button12.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button12.Location = new System.Drawing.Point(20, 611); + this.button12.Location = new System.Drawing.Point(12, 187); this.button12.Name = "button12"; - this.button12.Size = new System.Drawing.Size(88, 37); + this.button12.Size = new System.Drawing.Size(122, 45); this.button12.TabIndex = 14; this.button12.Text = "0"; this.button12.UseVisualStyleBackColor = true; @@ -204,9 +205,9 @@ namespace newton_cn // button14 // this.button14.Font = new System.Drawing.Font("굴림", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button14.Location = new System.Drawing.Point(114, 611); + this.button14.Location = new System.Drawing.Point(153, 189); this.button14.Name = "button14"; - this.button14.Size = new System.Drawing.Size(41, 37); + this.button14.Size = new System.Drawing.Size(51, 43); this.button14.TabIndex = 16; this.button14.Text = "CLS"; this.button14.UseVisualStyleBackColor = true; @@ -215,9 +216,9 @@ namespace newton_cn // button13 // this.button13.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button13.Location = new System.Drawing.Point(201, 482); + this.button13.Location = new System.Drawing.Point(225, 149); this.button13.Name = "button13"; - this.button13.Size = new System.Drawing.Size(135, 37); + this.button13.Size = new System.Drawing.Size(41, 37); this.button13.TabIndex = 17; this.button13.Text = "▲"; this.button13.UseVisualStyleBackColor = true; @@ -226,9 +227,9 @@ namespace newton_cn // button15 // this.button15.Font = new System.Drawing.Font("굴림", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button15.Location = new System.Drawing.Point(201, 525); + this.button15.Location = new System.Drawing.Point(225, 195); this.button15.Name = "button15"; - this.button15.Size = new System.Drawing.Size(135, 37); + this.button15.Size = new System.Drawing.Size(41, 37); this.button15.TabIndex = 18; this.button15.Text = "▼"; this.button15.UseVisualStyleBackColor = true; diff --git a/newton-cn/Form9.cs b/newton-cn/Form9.cs index dd99e49..618c1ee 100644 --- a/newton-cn/Form9.cs +++ b/newton-cn/Form9.cs @@ -78,24 +78,30 @@ namespace newton_cn private void textBox1_TextChanged(object sender, EventArgs e) { listView1.Items.Clear(); - string item_name = textBox1.Text; + if (textBox1.Text == "" || textBox1.Text == null) + { + return; + } DBConnector dbc = new DBConnector(); List> list = dbc.getCt(textBox1.Text); - for (int i = 0; i < list.Count; i++) + if (list.Count != 0) { - String[] item = + for (int i = 0; i < list.Count; i++) { + String[] item = + { list[i]["ct_name"], list[i]["ct_phone"], list[i]["ct_cphone"], list[i]["ct_code"] }; - ListViewItem lvi = new ListViewItem(item); - listView1.Items.Add(lvi); + ListViewItem lvi = new ListViewItem(item); + listView1.Items.Add(lvi); + } + listView1.Items[0].Selected = true; + listView1.Focus(); } - listView1.Items[0].Selected = true; - listView1.Focus(); } diff --git a/newton-cn/bin/Debug/newton-cn.exe b/newton-cn/bin/Debug/newton-cn.exe index 9c3adb5..1fbf59f 100644 Binary files a/newton-cn/bin/Debug/newton-cn.exe and b/newton-cn/bin/Debug/newton-cn.exe differ diff --git a/newton-cn/bin/Debug/newton-cn.pdb b/newton-cn/bin/Debug/newton-cn.pdb index 6f5d824..7544e07 100644 Binary files a/newton-cn/bin/Debug/newton-cn.pdb and b/newton-cn/bin/Debug/newton-cn.pdb differ diff --git a/newton-cn/bin/Release/newton-cn.exe b/newton-cn/bin/Release/newton-cn.exe index d86d9a7..fd251e6 100644 Binary files a/newton-cn/bin/Release/newton-cn.exe and b/newton-cn/bin/Release/newton-cn.exe differ diff --git a/newton-cn/bin/Release/newton-cn.pdb b/newton-cn/bin/Release/newton-cn.pdb index afd52cb..5e078e4 100644 Binary files a/newton-cn/bin/Release/newton-cn.pdb and b/newton-cn/bin/Release/newton-cn.pdb differ diff --git a/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache differ diff --git a/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt b/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt index 55c4473..e9ac951 100644 --- a/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt +++ b/newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt @@ -37,3 +37,4 @@ z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.pd z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form7.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form8.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form9.resources +z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.csproj.AssemblyReference.cache diff --git a/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache b/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache index f620094..df8201b 100644 Binary files a/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache and b/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache differ diff --git a/newton-cn/obj/Debug/newton-cn.exe b/newton-cn/obj/Debug/newton-cn.exe index 9c3adb5..1fbf59f 100644 Binary files a/newton-cn/obj/Debug/newton-cn.exe and b/newton-cn/obj/Debug/newton-cn.exe differ diff --git a/newton-cn/obj/Debug/newton-cn.pdb b/newton-cn/obj/Debug/newton-cn.pdb index 6f5d824..7544e07 100644 Binary files a/newton-cn/obj/Debug/newton-cn.pdb and b/newton-cn/obj/Debug/newton-cn.pdb differ diff --git a/newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache b/newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache deleted file mode 100644 index 654fe63..0000000 Binary files a/newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache and /dev/null differ diff --git a/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt b/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt index 39a8f94..e9b1a2e 100644 --- a/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt +++ b/newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt @@ -36,5 +36,4 @@ z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn. z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form6.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form7.resources z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form8.resources -z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton-cn.csproj.AssemblyReference.cache z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Release\newton_cn.Form9.resources diff --git a/newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache b/newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache index f620094..1943ed7 100644 Binary files a/newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache and b/newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache differ diff --git a/newton-cn/obj/Release/newton-cn.exe b/newton-cn/obj/Release/newton-cn.exe index d86d9a7..fd251e6 100644 Binary files a/newton-cn/obj/Release/newton-cn.exe and b/newton-cn/obj/Release/newton-cn.exe differ diff --git a/newton-cn/obj/Release/newton-cn.pdb b/newton-cn/obj/Release/newton-cn.pdb index afd52cb..5e078e4 100644 Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ