培训
This commit is contained in:
@@ -65,7 +65,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
this.btnMenuDelete.ConfirmText = String.Format("你确定要删除选中的 <b><script>{0}</script></b> 行数据吗?", Grid1.GetSelectedCountReference());
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
BLL.WorkPostService.InitWorkPostDropDownList(this.drpPost, true);
|
||||
PostTrainingRoleService.InitPostTrainingRoleDropDownList(this.drpRole, true);
|
||||
//PostTrainingRoleService.InitPostTrainingRoleDropDownList(this.drpRole, true);
|
||||
this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
@@ -294,21 +294,21 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
|
||||
strSql += ")";
|
||||
}
|
||||
if (this.drpRole.SelectedItemArray.Count() > 1 || (this.drpRole.SelectedValue != BLL.Const._Null && this.drpRole.SelectedItemArray.Count() == 1))
|
||||
{
|
||||
strSql += " AND (1=2 ";
|
||||
int i = 0;
|
||||
foreach (var item in this.drpRole.SelectedValueArray)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item) && item != BLL.Const._Null)
|
||||
{
|
||||
strSql += " OR PostTrainingRoleId = @PostTrainingRoleId" + i.ToString();
|
||||
listStr.Add(new SqlParameter("@PostTrainingRoleId" + i.ToString(), item));
|
||||
}
|
||||
i++;
|
||||
}
|
||||
strSql += ")";
|
||||
}
|
||||
//if (this.drpRole.SelectedItemArray.Count() > 1 || (this.drpRole.SelectedValue != BLL.Const._Null && this.drpRole.SelectedItemArray.Count() == 1))
|
||||
//{
|
||||
// strSql += " AND (1=2 ";
|
||||
// int i = 0;
|
||||
// foreach (var item in this.drpRole.SelectedValueArray)
|
||||
// {
|
||||
// if (!string.IsNullOrEmpty(item) && item != BLL.Const._Null)
|
||||
// {
|
||||
// strSql += " OR PostTrainingRoleId = @PostTrainingRoleId" + i.ToString();
|
||||
// listStr.Add(new SqlParameter("@PostTrainingRoleId" + i.ToString(), item));
|
||||
// }
|
||||
// i++;
|
||||
// }
|
||||
// strSql += ")";
|
||||
//}
|
||||
|
||||
if (this.ckTrain.Checked)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user