fix 选择产品列表权限问题
This commit is contained in:
parent
d69cc898fb
commit
ed3b308b90
|
@ -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];
|
||||
|
@ -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";
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ public partial class Product_list : System.Web.UI.Page
|
|||
public string cpxinxi(int uid)
|
||||
{
|
||||
string xinxi = "";
|
||||
DataTable dt= DBHlper.Execute("select * from view_nr_z_cpkc where id="+uid).Tables[0];
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue