集团三库
This commit is contained in:
@@ -223,23 +223,23 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
return "";
|
||||
}
|
||||
|
||||
protected string ConvertRewardAndPunishType(object Type,object RewardAndPunishType)
|
||||
protected string ConvertRewardAndPunishType(object Type, object RewardAndPunishType)
|
||||
{
|
||||
Model.Sys_Const model;
|
||||
if (Type != null && Type.ToString() == "1")
|
||||
{
|
||||
model = Funs.DB.Sys_Const.FirstOrDefault(x => x.GroupId == "RewardType" && x.ConstValue == RewardAndPunishType.ToString());
|
||||
model = Funs.DB.Sys_Const.FirstOrDefault(x => x.GroupId == BLL.ConstValue.Group_RewardType && x.ConstValue == RewardAndPunishType.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
model = Funs.DB.Sys_Const.FirstOrDefault(x => x.GroupId == "PunishType" && x.ConstValue == RewardAndPunishType.ToString());
|
||||
model = Funs.DB.Sys_Const.FirstOrDefault(x => x.GroupId == BLL.ConstValue.Group_PunishType && x.ConstValue == RewardAndPunishType.ToString());
|
||||
}
|
||||
|
||||
if (model == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
return model.ConstText;
|
||||
}
|
||||
|
||||
@@ -337,7 +337,7 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(
|
||||
String.Format("RewardAndPunishEdit.aspx?RewardAndPunishID={0}", codes, "编辑 - ")));
|
||||
String.Format("RewardAndPunishEdit.aspx?RewardAndPunishID={0}&sysTemType={1}", codes, this.SysTemType, "编辑 - ")));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -348,6 +348,7 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
@@ -427,16 +428,17 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected void drpType_OnSelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpType.SelectedText == "奖励")
|
||||
{
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, "RewardType", true);
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, BLL.ConstValue.Group_RewardType, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, "PunishType", true);
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, BLL.ConstValue.Group_PunishType, true);
|
||||
}
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user