修改总包合同

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
@@ -68,7 +68,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)
@@ -79,11 +78,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;
@@ -100,7 +94,7 @@ namespace FineUIPro.Web.ZHGL.Plan
{
txtEdition.Text = MainContract.Edition.ToString();
}
this.drpProject.SelectedValue = MainContract.ProjectId;
this.txtProjectId.Text = MainContract.ProjectId;
///读取编号
this.txtMainContractCode.Text = MainContract.MainContractCode;
this.txtMainContractName.Text = MainContract.MainContractName;
@@ -113,10 +107,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);
@@ -137,8 +128,8 @@ namespace FineUIPro.Web.ZHGL.Plan
txtMainContractName.Readonly = true;
txtVersionNo.Readonly = true;
drpProjectType.Readonly = true;
drpProject.Readonly = true;
drpCompileMan.Readonly = true;
txtProjectId.Readonly = true;
txtCompileMan.Readonly = true;
txtCompileDate.Readonly = true;
drpPerson.Readonly = true;
ContactImg = -1;
@@ -148,7 +139,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";
@@ -181,11 +172,6 @@ namespace FineUIPro.Web.ZHGL.Plan
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.drpCompileMan.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择编制人!", MessageBoxIcon.Warning);
return;
}
this.SaveData(BLL.Const.BtnSave);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
@@ -197,16 +183,6 @@ namespace FineUIPro.Web.ZHGL.Plan
/// <param name="e"></param>
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (this.drpProject.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
return;
}
if (this.drpCompileMan.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择编制人!", MessageBoxIcon.Warning);
return;
}
if (string.IsNullOrEmpty(HFMainContractId.Text))
{
Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning);
@@ -234,14 +210,8 @@ namespace FineUIPro.Web.ZHGL.Plan
VersionNo = this.txtVersionNo.Text.Trim(),
ProjectType = this.drpProjectType.SelectedValue,
};
if (this.drpProject.SelectedValue != BLL.Const._Null)
{
MainContract.ProjectId = this.drpProject.SelectedValue;
}
if (this.drpCompileMan.SelectedValue != BLL.Const._Null)
{
MainContract.CompileMan = this.drpCompileMan.SelectedValue;
}
MainContract.ProjectId = this.txtProjectId.Text;
MainContract.CompileMan = this.txtCompileMan.Text;
if (!string.IsNullOrEmpty(this.txtCompileDate.Text.Trim()))
{
MainContract.CompileDate = Convert.ToDateTime(this.txtCompileDate.Text.Trim());