检查关联培训

This commit is contained in:
2026-11-19 16:31:11 +08:00
parent 461bca785b
commit 8490311e94
22 changed files with 442 additions and 132 deletions
@@ -1,9 +1,8 @@
using System;
using System.Linq;
using BLL;
using Model;
using BLL;
using System;
using System.Collections.Generic;
using Microsoft.Office.Interop.Excel;
using System.Linq;
namespace FineUIPro.Web.BaseInfo
{
@@ -46,6 +45,7 @@ namespace FineUIPro.Web.BaseInfo
{
if (!IsPostBack)
{
InitDropDownList();
this.GetButtonPower();
btnClose.OnClientClick = ActiveWindow.GetHideReference();
@@ -64,6 +64,10 @@ namespace FineUIPro.Web.BaseInfo
{
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", model.CompileDate);
}
if (!string.IsNullOrWhiteSpace(model.CompanyTrainingItemId))
{
dpCompanyTraining.SelectedValueArray = model.CompanyTrainingItemId.Split(',');
}
}
}
else
@@ -76,6 +80,21 @@ namespace FineUIPro.Web.BaseInfo
}
}
/// <summary>
/// 初始化下拉框
/// </summary>
private void InitDropDownList()
{
List<JQueryFeature> myList = new List<JQueryFeature>();
CompanyTrainingItemService.BoundTree(myList, "0", 0);
dpCompanyTraining.DataTextField = "Name";
dpCompanyTraining.DataValueField = "Id";
dpCompanyTraining.DataSimulateTreeLevelField = "Level";
dpCompanyTraining.DataEnableSelectField = "EnableSelect";
dpCompanyTraining.DataSource = myList;
dpCompanyTraining.DataBind();
}
#endregion
@@ -94,6 +113,10 @@ namespace FineUIPro.Web.BaseInfo
CompileManName = this.CurrUser.UserName,
};
if (dpCompanyTraining.SelectedValueArray != null && dpCompanyTraining.SelectedValueArray.Count() > 0)
{
newModel.CompanyTrainingItemId = string.Join(",", dpCompanyTraining.SelectedValueArray);
}
if (!string.IsNullOrEmpty(txtCompileDate.Text.Trim()))
{
newModel.CompileDate = Convert.ToDateTime(txtCompileDate.Text.Trim());