";
+ DataSet djgxds = DBHlper.Execute("select * from nr_z_ryda_gxqx where ryid='" + id.Value + "' and qxlx='登记权限'"); ;
+ string gxcode = "
登记工艺权限:
";
+ foreach (DataRow dr in djgxds.Tables[0].Rows)
+ {
+ gxcode += "
 " + dr["gyxx"] + "
";
+ }
+ gxcode += "
";
+ DataSet xfgxds = DBHlper.Execute("select * from nr_z_ryda_gxqx where ryid='" + id.Value + "' and qxlx='下发权限'"); ;
+ gxcode += "
下发工艺权限:
";
+ foreach (DataRow dr in xfgxds.Tables[0].Rows)
+ {
+ gxcode += "
 " + dr["gyxx"] + "
";
+ }
+ gxcode += "
";
+ DataSet jngxds = DBHlper.Execute("select * from nr_z_ryda_gxqx where ryid='" + id.Value + "' and qxlx='掌握技能'"); ;
+ gxcode += "
掌握技能权限:
";
+ foreach (DataRow dr in jngxds.Tables[0].Rows)
+ {
+ gxcode += "
 " + dr["gyxx"] + "
";
+ }
+ gxcode += "
";
+ gysq.InnerHtml = biao + gxcode + "
";
+ }*/
#endregion
#region 敏感权限查看
void pdquanxian(int juese)
@@ -113,15 +113,15 @@ public partial class Employee_browse : CommonPage
Response.Redirect("../Common/nopower.htm");
}
- if (DBHlper.GetPermission(juese, "人员档案", "nr_z_ryda", "编辑") )
+ if (DBHlper.GetPermission(juese, "人员档案", "nr_z_ryda", "编辑"))
{
bt_tj.Visible = true;
}
- if (DBHlper.GetPermission(juese, "人员档案", "nr_z_ryda", "删除") )
+ if (DBHlper.GetPermission(juese, "人员档案", "nr_z_ryda", "删除"))
{
shanchu.Visible = true;
}
-
+
}
@@ -152,7 +152,7 @@ public partial class Employee_browse : CommonPage
{
Response.Write("");
}
- }
-
+ }
+
}
\ No newline at end of file
diff --git a/newyt/Module_data/Wages_browse.aspx.cs b/newyt/Module_data/Wages_browse.aspx.cs
index ab2eb72..cd75d7d 100644
--- a/newyt/Module_data/Wages_browse.aspx.cs
+++ b/newyt/Module_data/Wages_browse.aspx.cs
@@ -11,7 +11,7 @@ using Ajax;
public partial class Wages_browse : CommonPage
{
-
+
//创建一个共用的编码bll层
Maticsoft.BLL.nr_sys_bianma bm = new Maticsoft.BLL.nr_sys_bianma();
//创建一个共用的类型BLL层
@@ -21,7 +21,7 @@ public partial class Wages_browse : CommonPage
//创建一个共用的工价档案
Maticsoft.Model.nr_z_cpkc_gj gjdamd = new Maticsoft.Model.nr_z_cpkc_gj();
//创建一个操作记录bll
- Maticsoft.BLL.nr_sys_rizhi rizhibll = new Maticsoft.BLL.nr_sys_rizhi();
+ Maticsoft.BLL.nr_sys_rizhi rizhibll = new Maticsoft.BLL.nr_sys_rizhi();
//创建一个操作记录模板
Maticsoft.Model.nr_sys_rizhi rizhi = new Maticsoft.Model.nr_sys_rizhi();
protected void Page_Load(object sender, EventArgs e)
@@ -34,28 +34,28 @@ public partial class Wages_browse : CommonPage
Response.Redirect("../index.aspx");
}
//获取角色权限
- Maticsoft.Model.nr_z_yhzh user = (Maticsoft.Model.nr_z_yhzh)(Session["user"]);
+ Maticsoft.Model.nr_z_yhzh user = (Maticsoft.Model.nr_z_yhzh)(Session["user"]);
if (Request.QueryString["uid"] != null && Request.QueryString["uid"].ToString().Length > 0)
{
pdquanxianbj(user.juese);
string uid = Request.QueryString["uid"].ToString();
id.Value = uid;
- initdata(uid);
+ initdata(uid);
}
else
{
- pdquanxian(user.juese);
-
+ pdquanxian(user.juese);
+
}
-
-
+
+
}
- }
+ }
#region 修改时获取真正数据值
private void initdata(string did)
{
- DataSet ds=DBHlper.Execute("select * from view_nr_z_cpkc_gj where id='"+did+"'");
+ DataSet ds = DBHlper.Execute("select * from view_nr_z_cpkc_gj where id='" + did + "'");
if (ds != null && ds.Tables[0].Rows.Count > 0)
{
cpbh.Value = ds.Tables[0].Rows[0]["cpbh"].ToString();
@@ -64,23 +64,23 @@ public partial class Wages_browse : CommonPage
guige.Value = ds.Tables[0].Rows[0]["gg"].ToString();
zhongliang.Value = ds.Tables[0].Rows[0]["zhongliang"].ToString();
tiji.Value = ds.Tables[0].Rows[0]["tiji"].ToString();
- DataSet gjds=DBHlper.Execute(" select * from view_bianma where zhonglei='前段工价' or zhonglei='中段工价' or zhonglei='后段工价'");
+ DataSet gjds = DBHlper.Execute(" select * from view_bianma where zhonglei='前段工价' or zhonglei='中段工价' or zhonglei='后段工价'");
if (gjds != null && gjds.Tables[0].Rows.Count > 0)
{
//修改页面时,首先吧项目明细的表头加载出来
string biao = "
";
- int x=0;
-
- foreach(DataRow r in gjds.Tables[0].Rows)
+ int x = 0;
+
+ foreach (DataRow r in gjds.Tables[0].Rows)
{
if (x == 0)
{
biao += "
";
}
x = x + 1;
- string cpgjzhi= DBHlper.getfirstcolmn("select isnull(gjjg,0) from nr_z_cpkc_gj where cpid='" + did + "' and gjmc='"+r["mingcheng"]+"'");
- biao += "
" + r["mingcheng"] + "
";
- if (x == 6)
+ string cpgjzhi = DBHlper.getfirstcolmn("select isnull(gjjg,0) from nr_z_cpkc_gj where cpid='" + did + "' and gjmc='" + r["mingcheng"] + "'");
+ biao += "
" + r["mingcheng"] + "
";
+ if (x == 6)
{
biao += "
 
";
x = 0;
@@ -105,13 +105,13 @@ public partial class Wages_browse : CommonPage
#region 获取页面参数赋值model对象
private void getmd()
- {
+ {
//给日志模板赋值
rizhi.riqi = DateTime.Now;
rizhi.leixing = "工价档案";
}
#endregion
-
+
#region 敏感权限查看
void pdquanxian(int juese)
{
@@ -157,18 +157,18 @@ public partial class Wages_browse : CommonPage
int rtx = 0;
//判断uid是否存在值,有值为修改,无值为添加
- DBHlper.excutecmd("delete nr_z_cpkc_gj where cpid='"+id.Value+"'");
+ DBHlper.excutecmd("delete nr_z_cpkc_gj where cpid='" + id.Value + "'");
List gjdads = new List();
gjdads = DBHlper.ConvertJsonToEntityListEntity(gjxxhd.Value);
foreach (Maticsoft.Model.nr_z_cpkc_gj gjx in gjdads)
- {
- gjx.cpid = Convert.ToInt32(id.Value);
- rtx= gjdabll.Add(gjx);
+ {
+ gjx.cpid = Convert.ToInt32(id.Value);
+ rtx = gjdabll.Add(gjx);
}
-
- caozuo = "修改";
-
+
+ caozuo = "修改";
+
if (rtx > 0)
{
//将session转换对象取值
diff --git a/newyt/Module_data/Wages_list.aspx.cs b/newyt/Module_data/Wages_list.aspx.cs
index c0c7b0c..b450c46 100644
--- a/newyt/Module_data/Wages_list.aspx.cs
+++ b/newyt/Module_data/Wages_list.aspx.cs
@@ -54,12 +54,12 @@ public partial class Wages_list : System.Web.UI.Page
wherecode += dtr["lieming"] + ",";
}
wherecode += "id";
- if (DBHlper.GetPermission(zhanghao.juese, "工价档案", "nr_z_cpkc_gj", "查看全部"))
+ if (DBHlper.GetPermission(zhanghao.juese, "工价档案", "view_nr_z_cpkc_gj", "查看全部"))
{
- wherecode += string.Format(" from view_nr_z_cpkc_gj where " + tiaojian + " id not in(select top ({0}*{1}) id from view_nr_z_cpkc_gj "+" where "+tiaojian+" 1=1 " + paixu + ")" + paixu, pg, pageitem);
+ wherecode += string.Format(" from view_nr_z_cpkc_gj where " + tiaojian + " id not in(select top ({0}*{1}) id from view_nr_z_cpkc_gj " + " where " + tiaojian + " 1=1 " + paixu + ")" + paixu, pg, pageitem);
}
-
+
DataTable dt_paixu = DBHlper.Execute(wherecode).Tables[0];
if (dt_paixu.Rows.Count == 0)
{
@@ -72,8 +72,8 @@ public partial class Wages_list : System.Web.UI.Page
htmlcode += "