检查关联培训
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user