This commit is contained in:
2025-02-25 16:41:06 +08:00
parent ca8be515a9
commit b7c8a426bf
87 changed files with 5778 additions and 1835 deletions
@@ -60,9 +60,13 @@ namespace FineUIPro.Web.HSSE.PostTraining
this.txtClassHour.Text = model.ClassHour.ToString();
this.txtCycle.Text = model.Cycle.ToString();
this.txtRemark.Text = model.Remark;
if (!string.IsNullOrWhiteSpace(model.RoleId))
//if (!string.IsNullOrWhiteSpace(model.RoleId))
//{
// this.drpRole.SelectedValue = model.RoleId;
//}
if (!string.IsNullOrWhiteSpace(model.WorkPostId))
{
this.drpRole.SelectedValue = model.RoleId;
this.drpWorkPost.SelectedValue = model.WorkPostId;
}
if (!string.IsNullOrWhiteSpace(model.CourseId))
{
@@ -100,8 +104,10 @@ namespace FineUIPro.Web.HSSE.PostTraining
/// </summary>
private void InitDropDownList()
{
//获取适用岗位下拉框
PostTrainingRoleService.InitPostTrainingRoleDropDownList(this.drpRole, false);
//所属岗位
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
////获取适用岗位下拉框
//PostTrainingRoleService.InitPostTrainingRoleDropDownList(this.drpRole, false);
//获取培训类别下拉框
PostTrainingCategoryService.InitPostTrainingCategoryDropDownList(this.drpCategory, false);
//获取培训方式下拉框
@@ -151,7 +157,8 @@ namespace FineUIPro.Web.HSSE.PostTraining
CompileDate = DateTime.Now,
CompileMan = this.CurrUser.UserId
};
newModel.RoleId = this.drpRole.SelectedValue;
newModel.WorkPostId = this.drpWorkPost.SelectedValue;
//newModel.RoleId = this.drpRole.SelectedValue;
newModel.CourseId = this.drpCourse.SelectedValue;
newModel.ClassHour = decimal.Parse(this.txtClassHour.Text.Trim());
newModel.Cycle = decimal.Parse(this.txtCycle.Text.Trim());