private void PopulateFundingInfo() { ProjectFundingSource biz = new ProjectFundingSource(); biz.Get(fundingId); CICHelper.SetFieldValues(EditFundingPanel.Controls, biz); }
protected void UpdateButton_Click(object sender, EventArgs e) { // // Save the Funding Info fields // ProjectFundingSource biz = new ProjectFundingSource(); if (fundingId != -1) { biz.Get(fundingId); } if (projectId != -1) { CICHelper.SetBOValues(EditFundingPanel.Controls, biz, projectId); } else { CICHelper.SetBOValues(EditFundingPanel.Controls, biz, 0); } biz.Save(); if (biz["FundingSourceId"].ToString() != "") { fundingId = Int32.Parse(biz["FundingSourceId"].ToString()); } ProjectInvoiceGridView.Save(fundingId); GoToMainList(); }
protected void BindFundingPanel() { ProjectFundingSource biz = new ProjectFundingSource(); biz.Get(fundingId); foreach (string colName in biz.FieldNames) { Label field = DisplayFundingPanel.FindControl(colName) as Label; if (field != null) { field.Text = biz[colName].ToString(); } } DetailsHeader.Text = biz["Source"].ToString(); }