Example #1
0
    private void DataBindResource()
    {
        string text = base.Request["prjId"];

        if (!string.IsNullOrEmpty(text))
        {
            DataTable taskInfo = BudTask.GetTaskInfo(text, this.hfldIsWBSRelevance.Value, string.Empty, string.Empty, string.Empty);
            this.gvBudget.DataSource = taskInfo;
            this.gvBudget.DataBind();
        }
    }
Example #2
0
    public void BindData()
    {
        BudTaskChange model = BudTaskChange.GetModel(this.taskChangeId);

        if (model != null)
        {
            this.lblPrjName.Text     = model.PrjName;
            this.lblVersionCode.Text = model.VersionCode;
            this.lblUserCode.Text    = WebUtil.GetUserNames(model.InputUser);
            this.lblNote.Text        = model.Note;
            this.hfldPrjId.Value     = model.PrjId;
            DataTable taskInfo = BudTask.GetTaskInfo(model.PrjId, this.hfldIsWBSRelevance.Value, string.Empty, string.Empty, string.Empty);
            this.gvBudget.DataSource = taskInfo;
            this.gvBudget.DataBind();
        }
    }