This commit is contained in:
2023-09-04 19:38:45 +08:00
parent 6c19bf6a3e
commit dece3781ec
55 changed files with 2730 additions and 971 deletions
@@ -59,6 +59,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
txtCompanyTrainingItemName.Text = q.CompanyTrainingItemName;
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);
@@ -93,6 +97,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
CompanyTrainingItemName = this.txtCompanyTrainingItemName.Text.Trim(),
CompileMan = hdCompileMan.Text.Trim()
};
if (!string.IsNullOrEmpty(txtLearningTime.Text))
{
newCompanyTrainItem.LearningTime = int.Parse(txtLearningTime.Text);
}
if (!string.IsNullOrEmpty(txtCompileDate.Text.Trim()))
{
newCompanyTrainItem.CompileDate = Convert.ToDateTime(txtCompileDate.Text.Trim());