protected void Page_Load(object sender, EventArgs e) { #region 获取Select Pipeline Point Fields // 未分配的和已分配到当前Group中的User BLL.CompanyLoanPointFields CompanyLoanPointFields = new BLL.CompanyLoanPointFields(); DataTable dtCompanyLoanPointFieldsInfo = CompanyLoanPointFields.GetCompanyLoanPointFieldsInfo(); this.gridPipelinePointFieldsList.DataSource = dtCompanyLoanPointFieldsInfo; this.gridPipelinePointFieldsList.DataBind(); #endregion if (!IsPostBack) { userHomePref = UserHomePrefManager.GetModel(CurrUser.iUserID); if (userHomePref == null) { userHomePref = new Model.UserHomePref(); } Model.UserPipelineColumns userPipelineCols = UserPipelineColsManager.GetModel(CurrUser.iUserID); BindView(); if (null != userPipelineCols) { SetUserPipelineColumnsInfo(userPipelineCols); } BindList(); } }
private void BindData() { if (strCurrViewType == "Loans") { BLL.CompanyLoanPointFields CompanyLoanPointFields = new BLL.CompanyLoanPointFields(); DataTable dtCompanyLoanPointFieldsInfo = CompanyLoanPointFields.GetCompanyLoanPointFieldsInfo(); this.gridPointFields.DataSource = dtCompanyLoanPointFieldsInfo; this.gridPointFields.DataBind(); } }