安全会议,教育培训接口
This commit is contained in:
@@ -111,7 +111,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
strSql += " AND PersonName LIKE @PersonName";
|
||||
listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonName.Text.Trim() + "%"));
|
||||
}
|
||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
if (this.drpUnitId.SelectedValue != null && this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " AND UnitId = @UnitId";
|
||||
listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
this.GetButtonPower();
|
||||
this.btnMenuDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!");
|
||||
this.btnMenuDelete.ConfirmText = String.Format("你确定要删除选中的 <b><script>{0}</script></b> 行数据吗?", Grid1.GetSelectedCountReference());
|
||||
|
||||
|
||||
//培训类型
|
||||
BLL.TrainTypeService.InitTrainTypeDropDownList(this.drpTrainType, true);
|
||||
trainType = Request.Params["trainType"];
|
||||
@@ -129,7 +129,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
{
|
||||
this.UnitId = "";
|
||||
}
|
||||
this.BindGrid();
|
||||
this.BindGrid();
|
||||
this.GetButtonPower();
|
||||
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
@@ -172,7 +172,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
strSql += " AND TrainRecord.TrainTitle LIKE @TrainTitle";
|
||||
listStr.Add(new SqlParameter("@TrainTitle", "%" + this.txtName.Text + "%"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
@@ -216,7 +216,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
strSql += " AND TrainRecord.UnitIds LIKE @UnitId1";
|
||||
listStr.Add(new SqlParameter("@UnitId1", "%" + this.CurrUser.UnitId + "%"));
|
||||
}
|
||||
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
if (this.drpUnitId.SelectedValue != null && this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
strSql += " AND TrainRecord.UnitIds LIKE @UnitIds";
|
||||
listStr.Add(new SqlParameter("@UnitIds", "%" + this.drpUnitId.SelectedValue.Trim() + "%"));
|
||||
|
||||
Reference in New Issue
Block a user