fix 选择产品列表权限问题

This commit is contained in:
Ling 2024-05-20 16:42:01 +08:00
parent d69cc898fb
commit ed3b308b90
1 changed files with 9 additions and 9 deletions

View File

@ -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;
}