Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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()");
 }