using BLL; using System; namespace FineUIPro.Web.PHTGL.ContractCompile { public partial class ContractTrackProgressDetection : PageBase { public string ContractId { get => (string)ViewState["ContractId"]; set => ViewState["ContractId"] = value; } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //主合同编号 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); } } 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; } panelCenterRegion.IFrameUrl = "./ContractTrackProgressDetectionGrid.aspx?ContractId=" + ContractId; } } } }