From ed3b308b90d058859d0a464a2320d8a002d86cac Mon Sep 17 00:00:00 2001 From: Ling0925 <2449858657a@gmail.com> Date: Mon, 20 May 2024 16:42:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=80=89=E6=8B=A9=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- newyt/ddselect/Product_list.aspx.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/newyt/ddselect/Product_list.aspx.cs b/newyt/ddselect/Product_list.aspx.cs index b4443b2..df48f9d 100644 --- a/newyt/ddselect/Product_list.aspx.cs +++ b/newyt/ddselect/Product_list.aspx.cs @@ -57,12 +57,12 @@ public partial class Product_list : System.Web.UI.Page wherecode += "id"; if (DBHlper.getqx(zhanghao.juese, "产品档案", "nr_z_cpkc", "查看全部")) { - wherecode += string.Format(" from view_nr_z_cpkc where " + tiaojian + " id not in(select top ({0}*{1}) id from view_nr_z_cpkc "+" where "+tiaojian+" 1=1 " + paixu + ")" + paixu, pg, pageitem); + wherecode += string.Format(" from view_nr_z_cpkc where " + tiaojian + " id not in(select top ({0}*{1}) id from view_nr_z_cpkc " + " where " + tiaojian + " 1=1 " + paixu + ")" + paixu, pg, pageitem); } else if (DBHlper.getqx(zhanghao.juese, "产品档案", "nr_z_cpkc", "查看个人")) { - wherecode += string.Format(" from view_nr_z_cpkc where yewuyuan='" + zhanghao.zhanghao + "' and " + tiaojian + " id not in(select top ({0}*{1}) id from view_nr_z_cpkc "+" where "+tiaojian+" 1=1 " + paixu + ")" + paixu, pg, pageitem); + wherecode += string.Format(" from view_nr_z_cpkc where yewuyuan='" + zhanghao.zhanghao + "' and " + tiaojian + " id not in(select top ({0}*{1}) id from view_nr_z_cpkc " + " where " + tiaojian + " 1=1 " + paixu + ")" + paixu, pg, pageitem); } DataTable dt_paixu = DBHlper.Execute(wherecode).Tables[0]; @@ -226,7 +226,7 @@ public partial class Product_list : System.Web.UI.Page { Response.Redirect("../Common/nopower.htm"); } - + } @@ -236,11 +236,11 @@ public partial class Product_list : System.Web.UI.Page public string isquanxian(int uid) { - if (DBHlper.getqx(uid, "产品档案", "view_nr_z_cpkc", "查看全部")) + if (DBHlper.getqx(uid, "产品档案", "nr_z_cpkc", "查看全部")) { return "1"; } - else if (DBHlper.getqx(uid, "产品档案", "view_nr_z_cpkc", "查看个人")) + else if (DBHlper.getqx(uid, "产品档案", "nr_z_cpkc", "查看个人")) { return "0"; } @@ -253,10 +253,10 @@ public partial class Product_list : System.Web.UI.Page [Ajax.AjaxMethod()] public string cpxinxi(int uid) { - string xinxi = ""; - DataTable dt= DBHlper.Execute("select * from view_nr_z_cpkc where id="+uid).Tables[0]; - xinxi = dt.Rows[0]["cpbh"] + "//" + dt.Rows[0]["cpmc"] + "//" + dt.Rows[0]["sl"] + "//" + dt.Rows[0]["dj"] + "//" + dt.Rows[0]["dw"] + "//" + dt.Rows[0]["gg"] + "//" + dt.Rows[0]["zl"]; - return xinxi; + string xinxi = ""; + DataTable dt = DBHlper.Execute("select * from view_nr_z_cpkc where id=" + uid).Tables[0]; + xinxi = dt.Rows[0]["cpbh"] + "//" + dt.Rows[0]["cpmc"] + "//" + dt.Rows[0]["sl"] + "//" + dt.Rows[0]["dj"] + "//" + dt.Rows[0]["dw"] + "//" + dt.Rows[0]["gg"] + "//" + dt.Rows[0]["zl"]; + return xinxi; }