private void DataBindBudget() { string text = base.Request["prjId"]; if (!string.IsNullOrEmpty(text)) { DataTable taskInfo = BudContractTask.GetTaskInfo(text, string.Empty, string.Empty, string.Empty); this.gvBudget.DataSource = taskInfo; this.gvBudget.DataBind(); } }
public void BindGv() { BudContractTaskAudit modelById = BudContractTaskAudit.GetModelById(this.ContractTaskAuditId); if (modelById != null) { DataTable taskInfo = BudContractTask.GetTaskInfo(modelById.PrjId, string.Empty, string.Empty, string.Empty); this.gvBudget.DataSource = taskInfo; this.gvBudget.DataBind(); this.hfldPrjId.Value = modelById.PrjId; } }
public void BindGv() { if (this.month.Length == 1) { this.month = this.month.PadLeft(2, '0'); } BudContractTask.GetTaskInfo(this.prjId, this.type, this.year, this.month); DataTable allTask = BudContractTask.GetAllTask(this.prjId, this.type, this.year, this.month); this.gvBudget.DataSource = allTask; this.gvBudget.DataBind(); }