]> insang Git - wevape-lu1_pos.git/commitdiff
적립금 사용 로직 개선
authornewton-cn <insang@kakao.com>
Tue, 18 Jun 2024 08:44:56 +0000 (17:44 +0900)
committernewton-cn <insang@kakao.com>
Tue, 18 Jun 2024 08:44:56 +0000 (17:44 +0900)
17 files changed:
.vs/newton-cn/v16/.suo
newton-cn/DBConnector.cs
newton-cn/Form3.cs
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/bin/Release/newton-cn.zip
newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache
newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache [new file with mode: 0644]
newton-cn/obj/Debug/newton-cn.csproj.FileListAbsolute.txt
newton-cn/obj/Debug/newton-cn.exe
newton-cn/obj/Debug/newton-cn.pdb
newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache
newton-cn/obj/Release/newton-cn.exe
newton-cn/obj/Release/newton-cn.pdb

index be5f9091616143b390a2952eb5cc39d1f57c92e4..135d3de2a601cacf4108bf4b4fee7602802b4cf2 100644 (file)
Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ
index b19f08372f8f626b19a767add9eb45be96ffb1e9..b89ef73b0b7cf89a6426738c85d1d50117c7fc93 100644 (file)
@@ -57,7 +57,7 @@ namespace newton_cn
             int result = 0;
 
 #if DEBUG
-            SqlConnection conn = new SqlConnection("Data Source=125.133.161.13, 1818; Initial Catalog=food; User ID=newton; Password=newton123!;");
+            SqlConnection conn = new SqlConnection("Data Source=newton-cn1.duckdns.org, 1818; Initial Catalog=food; User ID=newton; Password=newton123!;");
 #else
             SqlConnection conn = new SqlConnection("Data Source=localhost; Initial Catalog=food; User ID=newton; Password=newton123!;");
 #endif
index c65094e912d9f5fbc8161aebcace385addb6a600..9c0621589fee82325d09a1b7990342012160d2a7 100644 (file)
@@ -148,6 +148,8 @@ namespace newton_cn
             decimal tthousand1 = 0;
             decimal thundred5 = 0;
             decimal thundred1 = 0;
+            int mInitCount = 0;
+            bool mInit = true;
 
             textBox1.Clear();
             closeForm();
@@ -192,7 +194,13 @@ namespace newton_cn
 
             if (tmillion5 > 0)
             {
-                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_5), Convert.ToInt32(kind), Convert.ToInt32(tmillion5));
+                if (mInitCount != 0)
+                {
+                    mInit = false;
+                }
+                mInitCount++;
+
+                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_5), Convert.ToInt32(kind), Convert.ToInt32(tmillion5), mInit);
                 ThreadStart ts = new ThreadStart(me.find);
                 Thread th = new Thread(ts);
                 th.Start();
@@ -200,7 +208,12 @@ namespace newton_cn
             }
             if (tmillion1 > 0)
             {
-                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_1), Convert.ToInt32(kind), Convert.ToInt32(tmillion1));
+                if (mInitCount != 0)
+                {
+                    mInit = false;
+                }
+                mInitCount++;
+                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(million_1), Convert.ToInt32(kind), Convert.ToInt32(tmillion1), mInit);
                 ThreadStart ts = new ThreadStart(me.find);
                 Thread th = new Thread(ts);
                 th.Start();
@@ -208,7 +221,12 @@ namespace newton_cn
             }
             if (tthousand5 > 0)
             {
-                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_5), Convert.ToInt32(kind), Convert.ToInt32(tthousand5));
+                if (mInitCount != 0)
+                {
+                    mInit = false;
+                }
+                mInitCount++;
+                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_5), Convert.ToInt32(kind), Convert.ToInt32(tthousand5), mInit);
                 ThreadStart ts = new ThreadStart(me.find);
                 Thread th = new Thread(ts);
                 th.Start();
@@ -216,7 +234,12 @@ namespace newton_cn
             }
             if (tthousand1 > 0)
             {
-                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_1), Convert.ToInt32(kind), Convert.ToInt32(tthousand1));
+                if (mInitCount != 0)
+                {
+                    mInit = false;
+                }
+                mInitCount++;
+                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(thousand_1), Convert.ToInt32(kind), Convert.ToInt32(tthousand1), mInit);
                 ThreadStart ts = new ThreadStart(me.find);
                 Thread th = new Thread(ts);
                 th.Start();
@@ -224,7 +247,12 @@ namespace newton_cn
             }
             if (thundred5 > 0)
             {
-                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_5), Convert.ToInt32(kind), Convert.ToInt32(thundred5));
+                if (mInitCount != 0)
+                {
+                    mInit = false;
+                }
+                mInitCount++;
+                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_5), Convert.ToInt32(kind), Convert.ToInt32(thundred5), mInit);
                 ThreadStart ts = new ThreadStart(me.find);
                 Thread th = new Thread(ts);
                 th.Start();
@@ -232,13 +260,20 @@ namespace newton_cn
             }
             if (thundred1 > 0)
             {
-                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_1), Convert.ToInt32(kind), Convert.ToInt32(thundred1));
+                if (mInitCount != 0)
+                {
+                    mInit = false;
+                }
+                mInitCount++;
+                MouseEvent1 me = new MouseEvent1(Convert.ToInt32(hundred_1), Convert.ToInt32(kind), Convert.ToInt32(thundred1), mInit);
                 ThreadStart ts = new ThreadStart(me.find);
                 Thread th = new Thread(ts);
                 th.Start();
                 th.Join();
             }
 
+            mInitCount = 0;
+
         }
         private void closeForm()
         {
index 3abc6171ea32be7f59add6a221fb7fe5398b894d..11d5861f6b7e0b4dda5f0be7250b546e3365c83e 100644 (file)
@@ -19,13 +19,16 @@ namespace newton_cn
         private int pr;
         private int kind;
         private int aCount;
+        private bool mInit;
 
-        public MouseEvent1(int pr, int kind, int aCount= 1)
+        public MouseEvent1(int pr, int kind, int aCount= 1, bool mInit= true)
 
         {
             this.pr = pr;
             this.kind = kind;
             this.aCount = aCount;
+            this.mInit = mInit;
+            
         }
 
         [DllImport("user32.dll")]
@@ -97,17 +100,19 @@ namespace newton_cn
             items.Add(new Point(755, 535));
             items.Add(new Point(860, 535));
 
-            this.menuinit(kind);
-
-            int tkind = kind;
-            while(tkind - 11 > 0)
+            if (mInit)
             {
-                move(arrowmenu["right"]);
+                this.menuinit(kind);
+                int tkind = kind;
+                while (tkind - 11 > 0)
+                {
+                    move(arrowmenu["right"]);
+                    click();
+                    tkind = tkind - 11;
+                }
+                move(menus[tkind]);
                 click();
-                tkind = tkind - 11;
-            }
-            move(menus[tkind]);
-            click();
+            }            
 
             int tpr = pr;
             //43
index 79dc13768b2342dab86d034c546db38270bb537f..f671054356eb2041c001e2a00e5d63c8b18c418f 100644 (file)
Binary files a/newton-cn/bin/Debug/newton-cn.exe and b/newton-cn/bin/Debug/newton-cn.exe differ
index 614577858b0a4617e232854e5cf60b5723273b5a..96d1f0d053d95cec1b4a5dd2f8a01c1bff20523c 100644 (file)
Binary files a/newton-cn/bin/Debug/newton-cn.pdb and b/newton-cn/bin/Debug/newton-cn.pdb differ
index 411dcbd1b0d6fd3db513fe0784671b90face512a..a065ce25ec3d8eb9fca1144bf896b5c5031b11ec 100644 (file)
Binary files a/newton-cn/bin/Release/newton-cn.exe and b/newton-cn/bin/Release/newton-cn.exe differ
index 4d4a3e51560268deca5d8d0a08886b5cf62f8ff5..b9a40bd5cb4375617f079a506a8ec21e30957724 100644 (file)
Binary files a/newton-cn/bin/Release/newton-cn.pdb and b/newton-cn/bin/Release/newton-cn.pdb differ
index 434be5f87f67aef441bbe650cc5f0096c3ca63bb..eefdfcd08f66b78ccc768a653be9ff405ec01b8c 100644 (file)
Binary files a/newton-cn/bin/Release/newton-cn.zip and b/newton-cn/bin/Release/newton-cn.zip differ
index 173a4255ca51887b6050051dab7c6dbc0e168401..616654bd5780e93fc9b8ab07765f223baef2b44c 100644 (file)
Binary files a/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache 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 (file)
index 0000000..f5e894a
Binary files /dev/null and b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache differ
index 10ac79c7a68169d77cc927a3ba356309db6fe0cf..0f05a54faf62eede46ef3bdc9ac8f64b9a8bc336 100644 (file)
@@ -23,6 +23,7 @@ C:\Users\NEWTON-Choengna\Desktop\insang\workspace\newton-cn\newton-cn\obj\Debug\
 z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.exe.config
 z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.exe
 z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\bin\Debug\newton-cn.pdb
+z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton-cn.csproj.AssemblyReference.cache
 z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form1.resources
 z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form2.resources
 z:\바탕 화면\insang\workspace\newton-cn_pos\newton-cn\obj\Debug\newton_cn.Form3.resources
index 79dc13768b2342dab86d034c546db38270bb537f..f671054356eb2041c001e2a00e5d63c8b18c418f 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.exe and b/newton-cn/obj/Debug/newton-cn.exe differ
index 614577858b0a4617e232854e5cf60b5723273b5a..96d1f0d053d95cec1b4a5dd2f8a01c1bff20523c 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.pdb and b/newton-cn/obj/Debug/newton-cn.pdb differ
index f5e894aea93a73e58fa9d4feab241bc197ee1a40..9e16c69e6a2b97dc490a35250364382939313077 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache and b/newton-cn/obj/Release/newton-cn.csproj.AssemblyReference.cache differ
index 411dcbd1b0d6fd3db513fe0784671b90face512a..a065ce25ec3d8eb9fca1144bf896b5c5031b11ec 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.exe and b/newton-cn/obj/Release/newton-cn.exe differ
index 4d4a3e51560268deca5d8d0a08886b5cf62f8ff5..b9a40bd5cb4375617f079a506a8ec21e30957724 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ