//页面加载事件 public virtual void Page_Load(object sender, EventArgs e) { this.action = DTRequest.GetQueryString("action"); this.project_id = DTRequest.GetQueryInt("id"); this.Loan = new BLL.loan(LqContext); if (!Page.IsPostBack) { CategoryDDLBind(this.channel_id); BindControls(); if (!string.IsNullOrEmpty(action) && (action == DTEnums.ActionEnum.Edit.ToString() || action == DTEnums.ActionEnum.Copy.ToString())) { if (this.project_id == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } LqContext = new Agp2pDataContext(); li_projects project = LqContext.li_projects.FirstOrDefault(q => q.id == this.project_id); if (project == null) { JscriptMsg("项目不存在或已被删除!", "back", "Error"); return; } ShowInfo(project); } SetLoanType(); } }
//页面加载事件 public virtual void Page_Load(object sender, EventArgs e) { this.ProjectId = DTRequest.GetQueryInt("id"); this.ProjectStatus = DTRequest.GetQueryInt("status"); if (!Page.IsPostBack) { if (this.ProjectId == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } li_projects project = LqContext.li_projects.FirstOrDefault(q => q.id == this.ProjectId); if (project == null) { JscriptMsg("项目不存在或已被删除!", "back", "Error"); return; } Loan = new BLL.loan(LqContext); ShowProjectInfo(project); if (project.IsHuoqiProject()) { ShowProfitingClaimInfo(project); } else { ShowClaimsInfo(project); } LoanType = project.type; ShowByStatus(); } }