修改总包合同

This commit is contained in:
2023-09-05 15:17:21 +08:00
parent 390865d563
commit b53e552cfa
10 changed files with 48 additions and 213 deletions
@@ -56,7 +56,6 @@ namespace FineUIPro.Web.ZHGL.Plan
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.ProjectId = this.CurrUser.LoginProjectId;
this.MainContractId = Request.Params["MainContractId"];
ProjectService.InitAllProjectDropDownList(this.drpProject, true);
var q = (from x in Funs.DB.Person_Persons where x.UnitId == Const.UnitId_SEDIN && x.DepartId == Const.Depart_constructionId && x.RoleIds != null && x.RoleIds != Const.NoOfficeRole && x.RoleIds != string.Empty && (!x.IsPost.HasValue || x.IsPost == true) orderby x.PersonName select x).ToList();
Model.ActionPlan_MainContract MainContract = BLL.MainContractService.GetMainContractById(this.MainContractId);
if (MainContract != null)
@@ -67,11 +66,6 @@ namespace FineUIPro.Web.ZHGL.Plan
q.Add(compileMan);
}
}
this.drpCompileMan.DataTextField = "PersonName";
this.drpCompileMan.DataValueField = "PersonId";
this.drpCompileMan.DataSource = q;
this.drpCompileMan.DataBind();
Funs.FineUIPleaseSelect(this.drpCompileMan);
this.drpPerson.DataTextField = "PersonName";
this.drpPerson.DataValueField = "PersonId";
this.drpPerson.DataSource = q;
@@ -90,7 +84,7 @@ namespace FineUIPro.Web.ZHGL.Plan
///读取编号
this.txtMainContractCode.Text = MainContract.MainContractCode;
this.txtMainContractName.Text = MainContract.MainContractName;
this.drpProject.SelectedValue = MainContract.ProjectId;
this.txtProjectId.Text = MainContract.ProjectId;
this.txtVersionNo.Text = MainContract.VersionNo;
if (!string.IsNullOrEmpty(MainContract.ProjectType))
{
@@ -100,10 +94,7 @@ namespace FineUIPro.Web.ZHGL.Plan
{
this.drpProjectType.Hidden = true;
}
if (!string.IsNullOrEmpty(MainContract.CompileMan))
{
this.drpCompileMan.SelectedValue = MainContract.CompileMan;
}
this.txtCompileMan.Text = MainContract.CompileMan;
if (MainContract.CompileDate != null)
{
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", MainContract.CompileDate);
@@ -119,7 +110,7 @@ namespace FineUIPro.Web.ZHGL.Plan
}
else
{
this.drpCompileMan.SelectedValue = this.CurrUser.PersonId;
this.txtCompileMan.Text = this.CurrUser.PersonName;
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.trAtt.Hidden = true;
txtEdition.Text = "0";