SGGL_SHJ/SGGL/FineUIPro.Web/PHTGL/ContractCompile/ContractTrackProgressDetect...

50 lines
1.7 KiB
C#
Raw Normal View History

2023-10-24 14:23:46 +08:00
using BLL;
using System;
2023-10-19 10:12:45 +08:00
namespace FineUIPro.Web.PHTGL.ContractCompile
{
2023-10-24 14:23:46 +08:00
public partial class ContractTrackProgressDetection : PageBase
2023-10-19 10:12:45 +08:00
{
2023-10-24 14:23:46 +08:00
public string ContractId
{
get => (string)ViewState["ContractId"];
set => ViewState["ContractId"] = value;
}
2023-10-19 10:12:45 +08:00
protected void Page_Load(object sender, EventArgs e)
{
2023-10-24 14:23:46 +08:00
if (!IsPostBack)
{
2023-10-24 14:23:46 +08:00
//主合同编号
this.DropContractCode.DataTextField = "ContractNum";
this.DropContractCode.DataValueField = "ContractNum";
this.DropContractCode.DataSource = BLL.PHTGL_ContractReviewService.GetContractReview_CompleteData(this.CurrUser.LoginProjectId);
this.DropContractCode.DataBind();
Funs.FineUIPleaseSelect(this.DropContractCode);
DropMainContractCode_SelectedIndexChanged(null, null);
2023-10-24 14:23:46 +08:00
}
}
2023-10-24 14:23:46 +08:00
protected void DropMainContractCode_SelectedIndexChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(DropContractCode.SelectedValue))
{
var model = ContractService.GetContractByContractNum(DropContractCode.SelectedValue);
if (model != null)
{
ContractId = model.ContractId;
this.txtContractName.Text = model.ContractName;
}
else
{
ContractId = "";
this.txtContractName.Text = string.Empty;
}
2023-10-19 10:12:45 +08:00
panelCenterRegion.IFrameUrl = "./ContractTrackProgressDetectionGrid.aspx?ContractId=" + ContractId;
}
2023-10-19 10:12:45 +08:00
}
}
}