20231115优化制定计划编辑页面打开速度
This commit is contained in:
parent
352f8bff23
commit
46752f3351
|
|
@ -560,7 +560,7 @@ namespace BLL
|
|||
select x;
|
||||
if (listUnitIds.Count() > 0)
|
||||
{
|
||||
getProjectPersons = getProjectPersons.Where(x => listUnitIds.Contains(x.UnitId));
|
||||
getProjectPersons = getProjectPersons.Where(x => listUnitIds.Contains(x.UnitId)).OrderBy(x => x.PersonName);
|
||||
}
|
||||
if (listRoles.Count() > 0)
|
||||
{
|
||||
|
|
@ -579,6 +579,7 @@ namespace BLL
|
|||
{
|
||||
list = (from x in getProjectPersons
|
||||
join y in db.Person_Persons on x.PersonId equals y.PersonId
|
||||
orderby x.PersonName
|
||||
select y).ToList();
|
||||
}
|
||||
}
|
||||
|
|
@ -586,11 +587,11 @@ namespace BLL
|
|||
{
|
||||
var getPersons = from x in db.Person_Persons
|
||||
where x.PersonId != Const.hfnbdId && x.PersonId != Const.sedinId
|
||||
&& (x.IsPost == true || !x.IsPost.HasValue) && x.Account != null
|
||||
&& (x.IsPost == true || !x.IsPost.HasValue) && x.Account != null
|
||||
select x;
|
||||
if (listUnitIds.Count() > 0)
|
||||
{
|
||||
getPersons = getPersons.Where(x => listUnitIds.Contains(x.UnitId));
|
||||
getPersons = getPersons.Where(x => listUnitIds.Contains(x.UnitId)).OrderBy(x=>x.PersonName);
|
||||
}
|
||||
if (listRoles.Count() > 0)
|
||||
{
|
||||
|
|
@ -605,11 +606,11 @@ namespace BLL
|
|||
}
|
||||
else
|
||||
{
|
||||
list = getPersons.ToList();
|
||||
list = getPersons.OrderBy(x => x.PersonName).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
return list.OrderBy(x => x.PersonName).ToList();
|
||||
return list;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -48,8 +48,9 @@
|
|||
<f:DatePicker ID="txtPlanDate" runat="server" Label="制定日期" LabelWidth="90px"
|
||||
EnableEdit="true">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpPlanMan" runat="server" Label="制定人" EnableEdit="true" LabelWidth="90px">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="PlanManName" runat="server" Label="制定人" LabelWidth="90px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="PlanManId" runat="server" Hidden="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
|
|
|||
|
|
@ -40,14 +40,16 @@ namespace FineUIPro.Web.PersonManage.Test
|
|||
this.TestPlanId = Request.Params["TestPlanId"];
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
Funs.FineUIPleaseSelect(this.drpUserType);
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpPlanMan, this.CurrUser.LoginProjectId, null, null, true);
|
||||
// Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpPlanMan, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, null, true);
|
||||
TestTrainingService.InitTestTrainingDropDownList(this.drpTraining, true);
|
||||
var getTestPlan = ServerTestPlanService.GetTestPlanById(this.TestPlanId);
|
||||
if (getTestPlan != null)
|
||||
{
|
||||
this.txtPlanCode.Text = getTestPlan.PlanCode;
|
||||
this.txtPlanName.Text = getTestPlan.PlanName;
|
||||
this.drpPlanMan.SelectedValue = getTestPlan.PlanManId;
|
||||
this.PlanManName.Text =Person_PersonsService.GetPersonsNameById( getTestPlan.PlanManId);
|
||||
this.PlanManId.Text = getTestPlan.PlanManId;
|
||||
|
||||
this.txtPlanDate.Text = string.Format("{0:yyyy-MM-dd}", getTestPlan.PlanDate);
|
||||
this.txtTestStartTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", getTestPlan.TestStartTime);
|
||||
this.txtTestEndTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", getTestPlan.TestEndTime);
|
||||
|
|
@ -68,7 +70,8 @@ namespace FineUIPro.Web.PersonManage.Test
|
|||
{
|
||||
this.txtPlanName.Text = DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString("00") + "知识竞赛考试";
|
||||
this.txtPlanDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||
this.drpPlanMan.SelectedValue = this.CurrUser.PersonId;
|
||||
this.PlanManName.Text = this.CurrUser.PersonName;
|
||||
this.PlanManId.Text = this.CurrUser.PersonId;
|
||||
this.txtTestStartTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now.AddDays(1));
|
||||
this.txtTestEndTime.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now.AddDays(2));
|
||||
this.txtSValue.Text = "2";
|
||||
|
|
@ -286,11 +289,9 @@ namespace FineUIPro.Web.PersonManage.Test
|
|||
SValue = Funs.GetNewInt(this.txtSValue.Text),
|
||||
MValue = Funs.GetNewInt(this.txtMValue.Text),
|
||||
JValue = Funs.GetNewInt(this.txtJValue.Text),
|
||||
PlanManId=this.PlanManId.Text,
|
||||
};
|
||||
if (this.drpPlanMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newTestPlan.PlanManId = this.drpPlanMan.SelectedValue;
|
||||
}
|
||||
|
||||
newTestPlan.States = Const.State_0;
|
||||
if (type == Const.BtnSubmit)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.PersonManage.Test {
|
||||
|
||||
|
||||
public partial class TestPlanEdit {
|
||||
|
||||
namespace FineUIPro.Web.PersonManage.Test
|
||||
{
|
||||
|
||||
|
||||
public partial class TestPlanEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm2 控件。
|
||||
/// </summary>
|
||||
|
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPlanCode 控件。
|
||||
/// </summary>
|
||||
|
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPlanCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPlanName 控件。
|
||||
/// </summary>
|
||||
|
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPlanName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestStartTime 控件。
|
||||
/// </summary>
|
||||
|
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtTestStartTime;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestEndTime 控件。
|
||||
/// </summary>
|
||||
|
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtTestEndTime;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDuration 控件。
|
||||
/// </summary>
|
||||
|
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDuration;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestPalce 控件。
|
||||
/// </summary>
|
||||
|
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestPalce;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPlanDate 控件。
|
||||
/// </summary>
|
||||
|
|
@ -110,16 +112,25 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtPlanDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPlanMan 控件。
|
||||
/// PlanManName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPlanMan;
|
||||
|
||||
protected global::FineUIPro.TextBox PlanManName;
|
||||
|
||||
/// <summary>
|
||||
/// PlanManId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox PlanManId;
|
||||
|
||||
/// <summary>
|
||||
/// txtSValue 控件。
|
||||
/// </summary>
|
||||
|
|
@ -128,7 +139,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtSValue;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMValue 控件。
|
||||
/// </summary>
|
||||
|
|
@ -137,7 +148,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtMValue;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtJValue 控件。
|
||||
/// </summary>
|
||||
|
|
@ -146,7 +157,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtJValue;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbm 控件。
|
||||
/// </summary>
|
||||
|
|
@ -155,7 +166,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbm;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -164,7 +175,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
|
@ -173,7 +184,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -182,7 +193,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
|
@ -191,7 +202,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
|
|
@ -200,7 +211,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
|
|
@ -209,7 +220,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdTestPlanTrainingId 控件。
|
||||
/// </summary>
|
||||
|
|
@ -218,7 +229,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdTestPlanTrainingId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUserType 控件。
|
||||
/// </summary>
|
||||
|
|
@ -227,7 +238,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUserType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpTraining 控件。
|
||||
/// </summary>
|
||||
|
|
@ -236,7 +247,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpTraining;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestType1Count 控件。
|
||||
/// </summary>
|
||||
|
|
@ -245,7 +256,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTestType1Count;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestType2Count 控件。
|
||||
/// </summary>
|
||||
|
|
@ -254,7 +265,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTestType2Count;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestType3Count 控件。
|
||||
/// </summary>
|
||||
|
|
@ -263,7 +274,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTestType3Count;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -272,7 +283,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -281,7 +292,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSure 控件。
|
||||
/// </summary>
|
||||
|
|
@ -290,7 +301,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSure;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -299,7 +310,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
|
|
@ -308,7 +319,7 @@ namespace FineUIPro.Web.PersonManage.Test {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue