111
This commit is contained in:
@@ -58,6 +58,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
txtTrainingItemName.Text = q.TrainingItemName;
|
||||
txtCompileMan.Text = q.CompileMan;
|
||||
hdCompileMan.Text = q.CompileMan;
|
||||
if (q.LearningTime.HasValue)
|
||||
{
|
||||
txtLearningTime.Text = q.LearningTime.Value.ToString();
|
||||
}
|
||||
if (q.CompileDate != null)
|
||||
{
|
||||
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", q.CompileDate);
|
||||
@@ -95,7 +99,12 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
TrainingItemName = txtTrainingItemName.Text.Trim(),
|
||||
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