This commit is contained in:
夏菊 2025-05-16 18:18:05 +08:00
parent 2569d4d5fa
commit 1e608129cd
1 changed files with 7 additions and 6 deletions

View File

@ -32,7 +32,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
if (!IsPostBack) if (!IsPostBack)
{ {
Funs.DropDownPageSize(this.ddlPageSize); Funs.DropDownPageSize(this.ddlPageSize);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
if (!string.IsNullOrEmpty(Request.Params["personId"])) ///是否文件柜查看页面传项目值 if (!string.IsNullOrEmpty(Request.Params["personId"])) ///是否文件柜查看页面传项目值
{ {
@ -40,7 +40,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
} }
// 绑定表格 // 绑定表格
BindGrid(); BindGrid();
} }
} }
@ -74,7 +74,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
if (!string.IsNullOrEmpty(txtName.Text.Trim())) if (!string.IsNullOrEmpty(txtName.Text.Trim()))
{ {
strSql += " AND p.PersonName like '%"+ txtName.Text.Trim() + "%'"; strSql += " AND p.PersonName like '%" + txtName.Text.Trim() + "%'";
} }
if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim())) if (!string.IsNullOrEmpty(this.txtStartDate.Text.Trim()))
{ {
@ -200,7 +200,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
{ {
html = (row.FindControl("lblVideoProgress") as AspNet.Label).Text; html = (row.FindControl("lblVideoProgress") as AspNet.Label).Text;
} }
//sb.AppendFormat("<td>{0}</td>", html); //sb.AppendFormat("<td>{0}</td>", html);
sb.AppendFormat("<td style='vnd.ms-excel.numberformat:@;width:140px;'>{0}</td>", html); sb.AppendFormat("<td style='vnd.ms-excel.numberformat:@;width:140px;'>{0}</td>", html);
} }
@ -229,10 +229,11 @@ namespace FineUIPro.Web.HSSE.EduTrain
{ {
return (Convert.ToInt32(time) / 60).ToString(); return (Convert.ToInt32(time) / 60).ToString();
} }
else { else
{
return hours; return hours;
} }
} }
return hours; return hours;
} }