]> insang Git - newton-cn_pos.git/commitdiff
ddd
authornewton-cn <insang@kakao.com>
Thu, 29 Jan 2026 05:33:59 +0000 (14:33 +0900)
committernewton-cn <insang@kakao.com>
Thu, 29 Jan 2026 05:33:59 +0000 (14:33 +0900)
26 files changed:
.vs/newton-cn/v16/.suo
newton-cn/DBConnector.cs
newton-cn/Form1.Designer.cs
newton-cn/Form1.cs
newton-cn/Form9.Designer.cs [new file with mode: 0644]
newton-cn/Form9.cs [new file with mode: 0644]
newton-cn/Form9.resx [new file with mode: 0644]
newton-cn/MouseEvent1.cs
newton-cn/bin/Debug/newton-cn.exe
newton-cn/bin/Debug/newton-cn.pdb
newton-cn/bin/Release/newton-cn.exe
newton-cn/bin/Release/newton-cn.pdb
newton-cn/newton-cn.csproj
newton-cn/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
newton-cn/obj/Debug/newton-cn.csproj.CoreCompileInputs.cache
newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt
newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache
newton-cn/obj/Debug/newton-cn.exe
newton-cn/obj/Debug/newton-cn.pdb
newton-cn/obj/Debug/newton_cn.Form9.resources [new file with mode: 0644]
newton-cn/obj/Release/newton-cn.csproj.CoreCompileInputs.cache
newton-cn/obj/Release/newton-cn.csproj.FileListAbsolute.txt
newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache
newton-cn/obj/Release/newton-cn.exe
newton-cn/obj/Release/newton-cn.pdb
newton-cn/obj/Release/newton_cn.Form9.resources [new file with mode: 0644]

index 110dd9ceaae69a2a9de587123175f3a93d14ba49..ed898a820f41b0d52a8aed7426816e239c0ab5cf 100644 (file)
Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ
index 1133ae8ebb74b528969787a4cb341306b1a016f4..3fef8b99b637a646642e87e624b9da0c9c8f41ea 100644 (file)
@@ -10,6 +10,34 @@ namespace newton_cn
 {
     class DBConnector
     {
+        public List<Dictionary<string, string>> getCt(string phone)
+        {
+            List<Dictionary<string, string>> result = new List<Dictionary<string, string>>();
+            string sql = "select ct_code, ct_name, ct_cphone, ct_phone from ct where ct_phone like '%" + phone + "' or ct_phone like '%" + phone + "'";
+            
+#if DEBUG
+            SqlConnection conn = new SqlConnection("Data Source=newton-cn1.iptime.org, 1818; Initial Catalog=food_2008; User ID=newton; Password=newton123!;");
+#else
+            SqlConnection conn = new SqlConnection("Data Source=localhost; Initial Catalog=food_2008; User ID=newton; Password=newton123!;");
+#endif
+            conn.Open();
+
+            SqlCommand cmd_select = new SqlCommand(sql, conn);
+
+            SqlDataReader rd = cmd_select.ExecuteReader();
+
+            while (rd.Read())
+            {
+                Dictionary<string, string> dict = new Dictionary<string, string>();
+                dict["ct_code"] = rd["ct_code"].ToString();
+                dict["ct_name"] = rd["ct_name"].ToString();
+                dict["ct_cphone"] = rd["ct_cphone"].ToString();
+                dict["ct_phone"] = rd["ct_phone"].ToString();
+                result.Add(dict);
+            }
+
+            return result;
+        }
         public DataTable getOtherShop_PS(string shop, string date, string code)
         {
             DataTable result = new DataTable();
index 2ac9a55481d889fdd46ab345c6e5c7810770aa8e..f05573432ae44a3f0cbfbad094b3c819cbf9a3d5 100644 (file)
@@ -33,8 +33,8 @@ namespace newton_cn
             this.button2 = new System.Windows.Forms.Button();
             this.button3 = new System.Windows.Forms.Button();
             this.button4 = new System.Windows.Forms.Button();
-            this.eclipseControl1 = new newton_cn.EclipseControl();
             this.button5 = new System.Windows.Forms.Button();
+            this.eclipseControl1 = new newton_cn.EclipseControl();
             this.SuspendLayout();
             // 
             // button1
@@ -77,15 +77,10 @@ namespace newton_cn
             this.button4.Name = "button4";
             this.button4.Size = new System.Drawing.Size(59, 35);
             this.button4.TabIndex = 3;
-            this.button4.Text = "사용X";
+            this.button4.Text = "회원 조회";
             this.button4.UseVisualStyleBackColor = true;
             this.button4.Click += new System.EventHandler(this.button4_Click);
             // 
-            // eclipseControl1
-            // 
-            this.eclipseControl1.CornerRadius = 20;
-            this.eclipseControl1.TargetControl = this;
-            // 
             // button5
             // 
             this.button5.Font = new System.Drawing.Font("굴림", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
@@ -97,6 +92,11 @@ namespace newton_cn
             this.button5.UseVisualStyleBackColor = true;
             this.button5.Click += new System.EventHandler(this.button5_Click);
             // 
+            // eclipseControl1
+            // 
+            this.eclipseControl1.CornerRadius = 20;
+            this.eclipseControl1.TargetControl = this;
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
index 6a60c211c2842a1c2fdd5bf83e9f0318eac2d4bd..400182d3648b4191f67032017efab43247cbc94f 100644 (file)
@@ -77,6 +77,9 @@ namespace newton_cn
             //Form5 dlg = new Form5();
 
             //dlg.ShowDialog();
+
+            Form9 dlg = new Form9();
+            dlg.ShowDialog();
         }
 
         private void button5_Click(object sender, EventArgs e)
diff --git a/newton-cn/Form9.Designer.cs b/newton-cn/Form9.Designer.cs
new file mode 100644 (file)
index 0000000..a746b4d
--- /dev/null
@@ -0,0 +1,291 @@
+
+namespace newton_cn
+{
+    partial class Form9
+    {
+        /// <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()
+        {
+            this.button3 = new System.Windows.Forms.Button();
+            this.textBox1 = new System.Windows.Forms.TextBox();
+            this.listView1 = new System.Windows.Forms.ListView();
+            this.button2 = new System.Windows.Forms.Button();
+            this.button1 = new System.Windows.Forms.Button();
+            this.button4 = new System.Windows.Forms.Button();
+            this.button5 = new System.Windows.Forms.Button();
+            this.button6 = new System.Windows.Forms.Button();
+            this.button7 = new System.Windows.Forms.Button();
+            this.button8 = new System.Windows.Forms.Button();
+            this.button9 = new System.Windows.Forms.Button();
+            this.button10 = new System.Windows.Forms.Button();
+            this.button11 = new System.Windows.Forms.Button();
+            this.button12 = new System.Windows.Forms.Button();
+            this.button14 = new System.Windows.Forms.Button();
+            this.button13 = new System.Windows.Forms.Button();
+            this.button15 = new System.Windows.Forms.Button();
+            this.SuspendLayout();
+            // 
+            // 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.Name = "button3";
+            this.button3.Size = new System.Drawing.Size(35, 31);
+            this.button3.TabIndex = 0;
+            this.button3.Text = "X";
+            this.button3.UseVisualStyleBackColor = true;
+            this.button3.Click += new System.EventHandler(this.button3_Click);
+            // 
+            // textBox1
+            // 
+            this.textBox1.BackColor = System.Drawing.SystemColors.HighlightText;
+            this.textBox1.Location = new System.Drawing.Point(12, 22);
+            this.textBox1.Name = "textBox1";
+            this.textBox1.Size = new System.Drawing.Size(96, 21);
+            this.textBox1.TabIndex = 1;
+            this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
+            // 
+            // listView1
+            // 
+            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.Name = "listView1";
+            this.listView1.Size = new System.Drawing.Size(348, 407);
+            this.listView1.TabIndex = 4;
+            this.listView1.UseCompatibleStateImageBehavior = false;
+            this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
+            // 
+            // 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.Name = "button2";
+            this.button2.Size = new System.Drawing.Size(135, 37);
+            this.button2.TabIndex = 0;
+            this.button2.Text = "회원선택";
+            this.button2.UseVisualStyleBackColor = true;
+            this.button2.Click += new System.EventHandler(this.button2_Click);
+            // 
+            // 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.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(41, 37);
+            this.button1.TabIndex = 5;
+            this.button1.Text = "7";
+            this.button1.UseVisualStyleBackColor = true;
+            this.button1.Click += new System.EventHandler(this.button1_Click_1);
+            // 
+            // 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.Name = "button4";
+            this.button4.Size = new System.Drawing.Size(41, 37);
+            this.button4.TabIndex = 6;
+            this.button4.Text = "8";
+            this.button4.UseVisualStyleBackColor = true;
+            this.button4.Click += new System.EventHandler(this.button4_Click);
+            // 
+            // 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.Name = "button5";
+            this.button5.Size = new System.Drawing.Size(41, 37);
+            this.button5.TabIndex = 7;
+            this.button5.Text = "9";
+            this.button5.UseVisualStyleBackColor = true;
+            this.button5.Click += new System.EventHandler(this.button5_Click);
+            // 
+            // 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.Name = "button6";
+            this.button6.Size = new System.Drawing.Size(41, 37);
+            this.button6.TabIndex = 8;
+            this.button6.Text = "4";
+            this.button6.UseVisualStyleBackColor = true;
+            this.button6.Click += new System.EventHandler(this.button6_Click);
+            // 
+            // 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.Name = "button7";
+            this.button7.Size = new System.Drawing.Size(41, 37);
+            this.button7.TabIndex = 9;
+            this.button7.Text = "5";
+            this.button7.UseVisualStyleBackColor = true;
+            this.button7.Click += new System.EventHandler(this.button7_Click);
+            // 
+            // 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.Name = "button8";
+            this.button8.Size = new System.Drawing.Size(41, 37);
+            this.button8.TabIndex = 10;
+            this.button8.Text = "6";
+            this.button8.UseVisualStyleBackColor = true;
+            this.button8.Click += new System.EventHandler(this.button8_Click);
+            // 
+            // 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.Name = "button9";
+            this.button9.Size = new System.Drawing.Size(41, 37);
+            this.button9.TabIndex = 11;
+            this.button9.Text = "1";
+            this.button9.UseVisualStyleBackColor = true;
+            this.button9.Click += new System.EventHandler(this.button9_Click);
+            // 
+            // 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.Name = "button10";
+            this.button10.Size = new System.Drawing.Size(41, 37);
+            this.button10.TabIndex = 12;
+            this.button10.Text = "2";
+            this.button10.UseVisualStyleBackColor = true;
+            this.button10.Click += new System.EventHandler(this.button10_Click);
+            // 
+            // 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.Name = "button11";
+            this.button11.Size = new System.Drawing.Size(41, 37);
+            this.button11.TabIndex = 13;
+            this.button11.Text = "3";
+            this.button11.UseVisualStyleBackColor = true;
+            this.button11.Click += new System.EventHandler(this.button11_Click);
+            // 
+            // 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.Name = "button12";
+            this.button12.Size = new System.Drawing.Size(88, 37);
+            this.button12.TabIndex = 14;
+            this.button12.Text = "0";
+            this.button12.UseVisualStyleBackColor = true;
+            this.button12.Click += new System.EventHandler(this.button12_Click);
+            // 
+            // 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.Name = "button14";
+            this.button14.Size = new System.Drawing.Size(41, 37);
+            this.button14.TabIndex = 16;
+            this.button14.Text = "CLS";
+            this.button14.UseVisualStyleBackColor = true;
+            this.button14.Click += new System.EventHandler(this.button14_Click);
+            // 
+            // 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.Name = "button13";
+            this.button13.Size = new System.Drawing.Size(135, 37);
+            this.button13.TabIndex = 17;
+            this.button13.Text = "▲";
+            this.button13.UseVisualStyleBackColor = true;
+            this.button13.Click += new System.EventHandler(this.button13_Click);
+            // 
+            // 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.Name = "button15";
+            this.button15.Size = new System.Drawing.Size(135, 37);
+            this.button15.TabIndex = 18;
+            this.button15.Text = "▼";
+            this.button15.UseVisualStyleBackColor = true;
+            this.button15.Click += new System.EventHandler(this.button15_Click);
+            // 
+            // Form9
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.SystemColors.HighlightText;
+            this.ClientSize = new System.Drawing.Size(372, 687);
+            this.Controls.Add(this.button15);
+            this.Controls.Add(this.button13);
+            this.Controls.Add(this.button14);
+            this.Controls.Add(this.button12);
+            this.Controls.Add(this.button11);
+            this.Controls.Add(this.button10);
+            this.Controls.Add(this.button9);
+            this.Controls.Add(this.button8);
+            this.Controls.Add(this.button7);
+            this.Controls.Add(this.button6);
+            this.Controls.Add(this.button5);
+            this.Controls.Add(this.button4);
+            this.Controls.Add(this.button1);
+            this.Controls.Add(this.listView1);
+            this.Controls.Add(this.textBox1);
+            this.Controls.Add(this.button3);
+            this.Controls.Add(this.button2);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Name = "Form9";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "Form2";
+            this.TopMost = true;
+            this.Load += new System.EventHandler(this.Form2_Load);
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+        private System.Windows.Forms.Button button3;
+        private EclipseControl eclipseControl1;
+        private System.Windows.Forms.TextBox textBox1;
+        private System.Windows.Forms.ListView listView1;
+        private System.Windows.Forms.Button button2;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.Button button4;
+        private System.Windows.Forms.Button button5;
+        private System.Windows.Forms.Button button6;
+        private System.Windows.Forms.Button button7;
+        private System.Windows.Forms.Button button8;
+        private System.Windows.Forms.Button button9;
+        private System.Windows.Forms.Button button10;
+        private System.Windows.Forms.Button button11;
+        private System.Windows.Forms.Button button12;
+        private System.Windows.Forms.Button button14;
+        private System.Windows.Forms.Button button13;
+        private System.Windows.Forms.Button button15;
+    }
+}
\ No newline at end of file
diff --git a/newton-cn/Form9.cs b/newton-cn/Form9.cs
new file mode 100644 (file)
index 0000000..dd99e49
--- /dev/null
@@ -0,0 +1,298 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Windows.Forms;
+using System.Runtime.InteropServices;
+
+
+namespace newton_cn
+{
+    public partial class Form9 : Form
+    {
+
+
+        [DllImport("user32.dll")]
+        public static extern int SendMessage(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);
+        public int MakeLong(short lowPart, short highPart)
+        {
+            return (int)(((ushort)lowPart) | (uint)(highPart << 16));
+        }
+
+        public void ListViewItem_SetSpacing(ListView listview, short leftPadding, short topPadding)
+        {
+            const int LVM_FIRST = 0x1000;
+            const int LVM_SETICONSPACING = LVM_FIRST + 53;
+            SendMessage(listview.Handle, LVM_SETICONSPACING, IntPtr.Zero, (IntPtr)MakeLong(leftPadding, topPadding));
+        }
+
+        protected override CreateParams CreateParams
+        {
+            get
+            {
+                // Turn on WS_EX_TOOLWINDOW style bit
+                CreateParams cp = base.CreateParams;
+                cp.ExStyle |= 0x80;
+                return cp;
+            }
+        }
+
+        public Form9()
+        {
+            this.ShowInTaskbar = false;
+            InitializeComponent();
+        }
+
+        private void Form2_Load(object sender, EventArgs e)
+        {
+            ListViewItem_SetSpacing(this.listView1, 500 + 100, 500 + 200);
+            listView1.View = View.Details;
+            listView1.GridLines = true;
+            listView1.FullRowSelect = true;
+
+            listView1.Columns.Add("", 90);
+            listView1.Columns.Add("", 90);
+            listView1.Columns.Add("", 180);
+            listView1.Columns.Add("", 370);
+
+            this.ActiveControl = textBox1;
+            listView1.FullRowSelect = true;
+            listView1.HideSelection = false; // 포커스 없어도 선택 보이게
+            listView1.MultiSelect = false;
+        }
+
+        private void button3_Click(object sender, EventArgs e)
+        {
+            Application.OpenForms["Form9"].Close();
+        }
+
+        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
+        {
+           
+        }
+
+        private void textBox1_TextChanged(object sender, EventArgs e)
+        {
+            listView1.Items.Clear();
+            string item_name = textBox1.Text;
+            DBConnector dbc = new DBConnector();
+            List<Dictionary<string, string>> list = dbc.getCt(textBox1.Text);
+
+            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);
+            }
+            listView1.Items[0].Selected = true;
+            listView1.Focus();
+
+        }
+
+        private void button2_Click(object sender, EventArgs e)
+        {
+            /*int pr= 0;
+            int kind= 0;
+            ListView.SelectedListViewItemCollection selected = listView1.SelectedItems;
+            foreach(ListViewItem item in selected)
+            {
+                
+                for (int i=0; i<listView1.Columns.Count; i++)
+                {
+                    if (i == 4)
+                    {
+                        pr = Int32.Parse(item.SubItems[i].Text);
+                    }
+                    else if (i == 5)
+                    {
+                        kind = Int32.Parse(item.SubItems[i].Text);
+                    }
+                    
+                }
+            }
+
+            if (pr == 0 && kind == 0)
+            {
+                MessageBox.Show("찾을 제품이 선택되지 않았습니다.");
+                textBox1.Focus();
+                return;
+            }
+            Application.OpenForms["Form2"].Close();
+            MouseEvent1 me = new MouseEvent1(pr, kind, 1);
+            ThreadStart ts = new ThreadStart(me.find);
+            Thread th = new Thread(ts);
+            th.Start();*/
+
+            if (listView1.SelectedItems.Count == 0)
+            {
+                return;
+            }
+            else
+            {
+                
+            }
+            string ctcode = listView1.SelectedItems[0].SubItems[3].Text;
+            MouseEvent1 me = new MouseEvent1();
+            me.ctclick();
+            // 키보드 입력처럼 전송
+            SendKeys.SendWait(ctcode);
+            SendKeys.SendWait("{ENTER}");
+            Application.OpenForms["Form9"].Close();
+        }
+
+        private void listView1_SelectedIndexChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        private void button1_Click(object sender, EventArgs e)
+        {
+            int pr = 0;
+            int kind = 0;
+            string prcode = "";
+            string location = "";
+            ListView.SelectedListViewItemCollection selected = listView1.SelectedItems;
+            foreach (ListViewItem item in selected)
+            {
+
+                for (int i = 0; i < listView1.Columns.Count; i++)
+                {
+                    if (i == 4)
+                    {
+                        pr = Int32.Parse(item.SubItems[i].Text);
+                    }
+                    else if (i == 5)
+                    {
+                        kind = Int32.Parse(item.SubItems[i].Text);
+                    }
+                    else if (i == 3)
+                    {
+                        location = item.SubItems[i].Text.ToString();
+                    }
+                    else if (i == 6)
+                    {
+                        prcode = item.SubItems[i].Text.ToString();
+                    }
+
+                }
+            }
+
+            if (pr == 0 && kind == 0)
+            {
+                MessageBox.Show("설정 할 제품이 선택되지 않았습니다.");
+                textBox1.Focus();
+                return;
+            }
+            Form4 dlg = new Form4();
+            dlg.setPr(prcode, location);
+
+            dlg.ShowDialog();
+
+        }
+
+        private void button9_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "1";
+        }
+
+        private void button10_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "2";
+        }
+
+        private void button11_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "3";
+        }
+
+        private void button6_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "4";
+        }
+
+        private void button7_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "5";
+        }
+
+        private void button8_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "6";
+        }
+
+        private void button1_Click_1(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "7";
+        }
+
+        private void button4_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "8";
+        }
+
+        private void button5_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "9";
+        }
+
+        private void button12_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = textBox1.Text + "0";
+        }
+
+        private void button14_Click(object sender, EventArgs e)
+        {
+            textBox1.Text = "";
+        }
+
+        private void button13_Click(object sender, EventArgs e)
+        {
+            if (listView1.Items.Count == 0) return;
+
+            int index = listView1.SelectedIndices.Count > 0
+                ? listView1.SelectedIndices[0]
+                : 0;
+
+            if (index > 0)
+            {
+                listView1.Items[index].Selected = false;
+                listView1.Items[index - 1].Selected = true;
+                listView1.Items[index - 1].Focused = true;
+                listView1.EnsureVisible(index - 1);
+            }
+            listView1.Focus();
+
+        }
+
+        private void button15_Click(object sender, EventArgs e)
+        {
+            if (listView1.Items.Count == 0) return;
+
+            int index = listView1.SelectedIndices.Count > 0
+                ? listView1.SelectedIndices[0]
+                : -1;
+
+            if (index < listView1.Items.Count - 1)
+            {
+                if (index >= 0)
+                    listView1.Items[index].Selected = false;
+
+                listView1.Items[index + 1].Selected = true;
+                listView1.Items[index + 1].Focused = true;
+                listView1.EnsureVisible(index + 1);
+            }
+            listView1.Focus();
+
+        }
+    }
+}
diff --git a/newton-cn/Form9.resx b/newton-cn/Form9.resx
new file mode 100644 (file)
index 0000000..7080a7d
--- /dev/null
@@ -0,0 +1,120 @@
+<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
\ No newline at end of file
index d005634425385530b07e08fb1a7199be1058a1c1..705db5cab9e2c4aa2c1087017799b906c300dc40 100644 (file)
@@ -29,6 +29,10 @@ namespace newton_cn
             this.aCount = aCount;
             this.mInit = mInit;
 
+        }
+        public MouseEvent1()
+        {
+
         }
 
         [DllImport("user32.dll")]
@@ -178,5 +182,11 @@ namespace newton_cn
             }
             return DateTime.Now;
         }
+
+        public void ctclick()
+        {
+            move(new Point(1, 1));
+            click();
+        }
     }
 }
index a7a5d37823beb0bf317ac5a83108cd434acfc027..9c3adb5fb3a2e91d8b55e8980bf5709470231717 100644 (file)
Binary files a/newton-cn/bin/Debug/newton-cn.exe and b/newton-cn/bin/Debug/newton-cn.exe differ
index a21d8b641e489775d7378aea029a76b244b106e7..6f5d824383074f6cfef0be7968eb9f0a695dd39e 100644 (file)
Binary files a/newton-cn/bin/Debug/newton-cn.pdb and b/newton-cn/bin/Debug/newton-cn.pdb differ
index 9c1b80896b1a305048e8c11a1b200cd253349e09..d86d9a71218cd17b49bb993503218b7825a85f48 100644 (file)
Binary files a/newton-cn/bin/Release/newton-cn.exe and b/newton-cn/bin/Release/newton-cn.exe differ
index 9019f93138789adb9df939ece307ab2c294b846c..afd52cb8f2233b2bac0233d7082591e04e2398fb 100644 (file)
Binary files a/newton-cn/bin/Release/newton-cn.pdb and b/newton-cn/bin/Release/newton-cn.pdb differ
index 87599c40ea4a4be430eb77698a6f631607bf8b87..d28969a70669b7546d1acec9be80ab0b9635a835 100644 (file)
     <Reference Include="WindowsBase" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="Form9.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Form9.Designer.cs">
+      <DependentUpon>Form9.cs</DependentUpon>
+    </Compile>
     <Compile Include="Form6.cs">
       <SubType>Form</SubType>
     </Compile>
     <EmbeddedResource Include="Form1.resx">
       <DependentUpon>Form1.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Form9.resx">
+      <DependentUpon>Form9.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Form2.resx">
       <DependentUpon>Form2.cs</DependentUpon>
     </EmbeddedResource>
index 35bdfd36400599f1dff6125f799d89be50156a69..b427b6c5d58066127498525b2ab1d1002d3ab65c 100644 (file)
Binary files a/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ
index 5e31e4a44c88fdeb084f965b7c76f4ebd83296ea..79ea635c37371932dcb888221f4e01cc1ab28c70 100644 (file)
@@ -1 +1 @@
-abb06ad62a4ea174c92fc3a2aa27263fcc5d39a6
+b3c5a0ab1137c7faeb3f4cb2d23adc1709851011
index d6bbf9d819d6447eaab7aa2ad3940dab5f3a53ad..55c4473642b130cbedd28d3cda2e764624e18fd4 100644 (file)
@@ -36,3 +36,4 @@ z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.ex
 z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.pdb
 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
index f9d37c73364868b0ee38ec8265065886f9797bae..f6200941b94c325b675f824c6964ad8e997d0334 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache and b/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache differ
index a7a5d37823beb0bf317ac5a83108cd434acfc027..9c3adb5fb3a2e91d8b55e8980bf5709470231717 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.exe and b/newton-cn/obj/Debug/newton-cn.exe differ
index a21d8b641e489775d7378aea029a76b244b106e7..6f5d824383074f6cfef0be7968eb9f0a695dd39e 100644 (file)
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/Debug/newton_cn.Form9.resources b/newton-cn/obj/Debug/newton_cn.Form9.resources
new file mode 100644 (file)
index 0000000..06c24d0
Binary files /dev/null and b/newton-cn/obj/Debug/newton_cn.Form9.resources differ
index 14f088689883e1d15a3d1a865aca665215618094..ba503dca18e0fbe45d2f0278e083e7b26f6eee6b 100644 (file)
@@ -1 +1 @@
-71e3afe50e3733dda1165bf01bfd1ce29653eb0a
+26848fabe8df897de189ea43bb1c119ce032f64e
index 004122203a8217e06f6066fdaad4c49c2aceaee8..39a8f947760e941e3653d6bd3b42de7aa6bb837b 100644 (file)
@@ -37,3 +37,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.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
index aa7a6b9d62a5f149856d83ef51635bf63be0aa79..f6200941b94c325b675f824c6964ad8e997d0334 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache and b/newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache differ
index 9c1b80896b1a305048e8c11a1b200cd253349e09..d86d9a71218cd17b49bb993503218b7825a85f48 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.exe and b/newton-cn/obj/Release/newton-cn.exe differ
index 9019f93138789adb9df939ece307ab2c294b846c..afd52cb8f2233b2bac0233d7082591e04e2398fb 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ
diff --git a/newton-cn/obj/Release/newton_cn.Form9.resources b/newton-cn/obj/Release/newton_cn.Form9.resources
new file mode 100644 (file)
index 0000000..06c24d0
Binary files /dev/null and b/newton-cn/obj/Release/newton_cn.Form9.resources differ