diff --git a/SGGL/BLL/Person/Person_PersonsService.cs b/SGGL/BLL/Person/Person_PersonsService.cs
index dda3cd6e..9bc12b41 100644
--- a/SGGL/BLL/Person/Person_PersonsService.cs
+++ b/SGGL/BLL/Person/Person_PersonsService.cs
@@ -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
diff --git a/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx b/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx
index 320ff697..1ea5e77c 100644
--- a/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx
+++ b/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx
@@ -48,8 +48,9 @@
-
-
+
+
+
diff --git a/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.cs b/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.cs
index 979ca525..9f4c007e 100644
--- a/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.cs
@@ -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)
{
diff --git a/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.designer.cs
index 6c8cf78f..08591cda 100644
--- a/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/PersonManage/Test/TestPlanEdit.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.PersonManage.Test {
-
-
- public partial class TestPlanEdit {
-
+namespace FineUIPro.Web.PersonManage.Test
+{
+
+
+ public partial class TestPlanEdit
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// SimpleForm2 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm2;
-
+
///
/// txtPlanCode 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtPlanCode;
-
+
///
/// txtPlanName 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtPlanName;
-
+
///
/// txtTestStartTime 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtTestStartTime;
-
+
///
/// txtTestEndTime 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtTestEndTime;
-
+
///
/// txtDuration 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtDuration;
-
+
///
/// txtTestPalce 控件。
///
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtTestPalce;
-
+
///
/// txtPlanDate 控件。
///
@@ -110,16 +112,25 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtPlanDate;
-
+
///
- /// drpPlanMan 控件。
+ /// PlanManName 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.DropDownList drpPlanMan;
-
+ protected global::FineUIPro.TextBox PlanManName;
+
+ ///
+ /// PlanManId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox PlanManId;
+
///
/// txtSValue 控件。
///
@@ -128,7 +139,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtSValue;
-
+
///
/// txtMValue 控件。
///
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtMValue;
-
+
///
/// txtJValue 控件。
///
@@ -146,7 +157,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtJValue;
-
+
///
/// lbm 控件。
///
@@ -155,7 +166,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label lbm;
-
+
///
/// SimpleForm1 控件。
///
@@ -164,7 +175,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// Toolbar2 控件。
///
@@ -173,7 +184,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// ToolbarFill1 控件。
///
@@ -182,7 +193,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// btnSave 控件。
///
@@ -191,7 +202,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSave;
-
+
///
/// btnSubmit 控件。
///
@@ -200,7 +211,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSubmit;
-
+
///
/// btnClose 控件。
///
@@ -209,7 +220,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnClose;
-
+
///
/// hdTestPlanTrainingId 控件。
///
@@ -218,7 +229,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.HiddenField hdTestPlanTrainingId;
-
+
///
/// drpUserType 控件。
///
@@ -227,7 +238,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpUserType;
-
+
///
/// drpTraining 控件。
///
@@ -236,7 +247,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpTraining;
-
+
///
/// txtTestType1Count 控件。
///
@@ -245,7 +256,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtTestType1Count;
-
+
///
/// txtTestType2Count 控件。
///
@@ -254,7 +265,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtTestType2Count;
-
+
///
/// txtTestType3Count 控件。
///
@@ -263,7 +274,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtTestType3Count;
-
+
///
/// Grid1 控件。
///
@@ -272,7 +283,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// Toolbar1 控件。
///
@@ -281,7 +292,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// btnSure 控件。
///
@@ -290,7 +301,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSure;
-
+
///
/// Menu1 控件。
///
@@ -299,7 +310,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu1;
-
+
///
/// btnMenuEdit 控件。
///
@@ -308,7 +319,7 @@ namespace FineUIPro.Web.PersonManage.Test {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuEdit;
-
+
///
/// btnMenuDelete 控件。
///