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";
|
wherecode += "id";
|
||||||
if (DBHlper.getqx(zhanghao.juese, "产品档案", "nr_z_cpkc", "查看全部"))
|
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", "查看个人"))
|
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];
|
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");
|
Response.Redirect("../Common/nopower.htm");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -236,11 +236,11 @@ public partial class Product_list : System.Web.UI.Page
|
||||||
public string isquanxian(int uid)
|
public string isquanxian(int uid)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (DBHlper.getqx(uid, "产品档案", "view_nr_z_cpkc", "查看全部"))
|
if (DBHlper.getqx(uid, "产品档案", "nr_z_cpkc", "查看全部"))
|
||||||
{
|
{
|
||||||
return "1";
|
return "1";
|
||||||
}
|
}
|
||||||
else if (DBHlper.getqx(uid, "产品档案", "view_nr_z_cpkc", "查看个人"))
|
else if (DBHlper.getqx(uid, "产品档案", "nr_z_cpkc", "查看个人"))
|
||||||
{
|
{
|
||||||
return "0";
|
return "0";
|
||||||
}
|
}
|
||||||
|
@ -253,10 +253,10 @@ public partial class Product_list : System.Web.UI.Page
|
||||||
[Ajax.AjaxMethod()]
|
[Ajax.AjaxMethod()]
|
||||||
public string cpxinxi(int uid)
|
public string cpxinxi(int uid)
|
||||||
{
|
{
|
||||||
string xinxi = "";
|
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"];
|
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;
|
return xinxi;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue