From: newton-cn Date: Tue, 14 Jan 2025 08:10:30 +0000 (+0900) Subject: 쿼리오류수정 X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;h=47286701635fe8951d10b699c9a0156c2bb14cc0;p=wevape-lu1_pos.git 쿼리오류수정 --- diff --git a/.vs/newton-cn/v16/.suo b/.vs/newton-cn/v16/.suo index c3040eb..e8eeecf 100644 Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ diff --git a/newton-cn/DBConnector.cs b/newton-cn/DBConnector.cs index a567b48..a313725 100644 --- a/newton-cn/DBConnector.cs +++ b/newton-cn/DBConnector.cs @@ -64,7 +64,7 @@ namespace newton_cn string sql = ""; sql += @" select - CONVERT(CHAR(19), a1.ps_date, 20) as ps_date, a2.ct_code, a2.ct_name, a1.ps_prname, cast(a1.ps_qty as int) ps_qty, + CONVERT(CHAR(19), a1.ps_date, 20) as ps_date, a2.ct_code, a2.ct_name+'('+a5.ct_phone+')' as ct_name, a1.ps_prname, cast(a1.ps_qty as int) ps_qty, cast( a1.ps_up + @@ -109,20 +109,15 @@ namespace newton_cn on a3.pe_id= a1.pe_id and a3.ps_no= a1.ps_no join ac a4 on a4.pe_id= a1.pe_id and a4.ac_fncd2 not in ('01', '00') + join ct a5 + on a5.ct_code= a2.ct_code where a1.ps_prcode in ( select pr_code from pr where kind_code= '1099' ) and a1.ps_date between '" + selected + @"' and dateadd(day, 1, '" + selected + @"') order by - a1.pe_id desc; - - create table disposable_earn_point_status( - pe_id varchar, - ps_no varchar, - is_earn bit default 0, - udate datetime default getdate() - ); + a1.pe_id desc "; SqlCommand cmd_select = new SqlCommand(sql, conn); diff --git a/newton-cn/Form5.cs b/newton-cn/Form5.cs index a3edecc..11bb6d4 100644 --- a/newton-cn/Form5.cs +++ b/newton-cn/Form5.cs @@ -29,10 +29,10 @@ namespace newton_cn listView1.FullRowSelect = true; listView1.Columns.Add("구매일시", 160); - listView1.Columns.Add("회원명", 70); + listView1.Columns.Add("회원명", 105); listView1.Columns.Add("상품명", 170); listView1.Columns.Add("갯수", 50); - listView1.Columns.Add("적립대상금액", 100); + listView1.Columns.Add("대상금액", 70); listView1.Columns.Add("적립여부", 70); listView1.Columns.Add("pe_id", 70); listView1.Columns.Add("ps_no", 70); diff --git a/newton-cn/bin/Debug/newton-cn.exe b/newton-cn/bin/Debug/newton-cn.exe index 1bcf285..5aae992 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 9fe1ff6..7952fa6 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 e7dc73a..fda79b3 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 e3d53e9..39e9d37 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/DesignTimeResolveAssemblyReferences.cache b/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 9bedaeb..bcd5701 100644 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 index f098744..2261fee 100644 Binary files a/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache and b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache differ diff --git a/newton-cn/obj/Debug/newton-cn.exe b/newton-cn/obj/Debug/newton-cn.exe index 1bcf285..5aae992 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 9fe1ff6..7952fa6 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.GenerateResource.cache b/newton-cn/obj/Release/newton-cn.csproj.GenerateResource.cache index 1fabc86..3d4625f 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 e7dc73a..fda79b3 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 e3d53e9..39e9d37 100644 Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ