1代码合并
This commit is contained in:
@@ -62,14 +62,6 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
{
|
||||
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", q.CompileDate);
|
||||
}
|
||||
if (q.LearningTime.HasValue)
|
||||
{
|
||||
txtLearningTime.Text = q.LearningTime.Value.ToString();
|
||||
}
|
||||
if (q.CompileDate != null)
|
||||
{
|
||||
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", q.CompileDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -104,10 +96,6 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
CompileMan = hdCompileMan.Text.Trim(),
|
||||
UnitId = this.CurrUser.UnitId
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.txtLearningTime.Text))
|
||||
{
|
||||
trainingItem.LearningTime = int.Parse(this.txtLearningTime.Text);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtCompileDate.Text.Trim()))
|
||||
{
|
||||
trainingItem.CompileDate = Convert.ToDateTime(txtCompileDate.Text.Trim());
|
||||
|
||||
Reference in New Issue
Block a user