protected void Bind(string id) { try { new System.Guid(id); this.gvBudget.DataSource = IndirectBudget.GetAll(id); } catch { this.gvBudget.DataSource = OrganizationBudget.GetAll(id); this.lblPrjOrgName.Text = "组织机构名称"; } this.gvBudget.DataBind(); }
public void BindGv() { this.setWF(); if (string.IsNullOrEmpty(this.prjId)) { this.btnSave.Enabled = false; } this.hfldPrjId.Value = this.prjId; this.hfldInputUser.Value = base.UserCode; if (this.year == "zzjg") { this.gvBudget.DataSource = OrganizationBudget.GetAll(this.prjId); } else { this.gvBudget.DataSource = IndirectBudget.GetAll(this.prjId); } this.gvBudget.DataBind(); base.RegisterScript("keyPress()"); }