20231115优化制定计划编辑页面打开速度
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user