修改培训任务时长,观看教材修改培训状态
This commit is contained in:
@@ -151,5 +151,30 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TaskRecordView.aspx?TrainingEduItemId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 格式化字符串
|
||||
/// <summary>
|
||||
/// 获取单位名称
|
||||
/// </summary>
|
||||
/// <param name="unitIds"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertTime(object time)
|
||||
{
|
||||
string hours = "0";
|
||||
if (time != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(time.ToString()))
|
||||
{
|
||||
return (Convert.ToInt32(time) / 60).ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return hours;
|
||||
}
|
||||
|
||||
}
|
||||
return hours;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user