2022-09-05 16:36:31 +08:00
|
|
|
|
using BLL;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace FineUIPro.Web.ProjectData
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class UnitWorkView : PageBase
|
|
|
|
|
|
{
|
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
2023-09-22 14:09:58 +08:00
|
|
|
|
//合同编号
|
|
|
|
|
|
this.drpContract.DataTextField = "ContractNum";
|
|
|
|
|
|
this.drpContract.DataValueField = "ContractId";
|
|
|
|
|
|
this.drpContract.DataSource = BLL.PHTGL_ContractReviewService.GetContractReview_CompleteData(this.CurrUser.LoginProjectId);
|
|
|
|
|
|
this.drpContract.DataBind();
|
|
|
|
|
|
Funs.FineUIPleaseSelect(this.drpContract);
|
2022-09-05 16:36:31 +08:00
|
|
|
|
string UnitWorkId = Request.Params["UnitWorkId"];
|
|
|
|
|
|
if (!string.IsNullOrEmpty(UnitWorkId))
|
|
|
|
|
|
{
|
|
|
|
|
|
Model.WBS_UnitWork UnitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(UnitWorkId);
|
|
|
|
|
|
if (UnitWork != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtUnitWorkCode.Text = UnitWork.UnitWorkCode;
|
|
|
|
|
|
this.txtUnitWorkName.Text = UnitWork.UnitWorkName;
|
|
|
|
|
|
if (UnitWork.ProjectType == "1")
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtProjectType.Text = "建筑工程";
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtProjectType.Text = "安装工程";
|
|
|
|
|
|
}
|
|
|
|
|
|
if (UnitWork.Costs != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtCosts.Text = UnitWork.Costs.ToString();
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!string.IsNullOrEmpty(UnitWork.UnitId))
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtUnit.Text = UnitService.GetUnitNameByUnitId(UnitWork.UnitId);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!string.IsNullOrEmpty(UnitWork.SupervisorUnitId))
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtSupervisorUnit.Text = UnitService.GetUnitNameByUnitId(UnitWork.SupervisorUnitId);
|
|
|
|
|
|
}
|
|
|
|
|
|
if (!string.IsNullOrEmpty(UnitWork.SupervisorUnitId))
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtNDEUnit.Text = UnitService.GetUnitNameByUnitId(UnitWork.NDEUnit);
|
|
|
|
|
|
}
|
2023-09-22 14:09:58 +08:00
|
|
|
|
if (!string.IsNullOrEmpty(UnitWork.ContractId))
|
|
|
|
|
|
{
|
|
|
|
|
|
this.drpContract.SelectedValue = UnitWork.ContractId;
|
|
|
|
|
|
}
|
|
|
|
|
|
this.txtMainItemCode.Text = UnitWork.MainItemCode;
|
2022-09-05 16:36:31 +08:00
|
|
|
|
if (!string.IsNullOrEmpty(UnitWork.MainItemAndDesignProfessionalIds))
|
|
|
|
|
|
{
|
|
|
|
|
|
this.txtMainItemAndDesignProfessional.Text = UnitWorkService.GetMainItemAndDesignProfessionalName(UnitWork.MainItemAndDesignProfessionalIds, CurrUser.LoginProjectId);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|