private void LoadGrid_Revised() { DataSet dsRevisedBudget = null; FollowUpRevisedBudget flpRevisedBudget = new FollowUpRevisedBudget(SessionManager.GetSessionValueNoRedirect(this, SessionStrings.CONNECTION_MANAGER)); string budgetVersion = ReturnBudgetVersionFromCombo(); flpRevisedBudget.BudVersion = budgetVersion; flpRevisedBudget.IdProject = currentProject.Id; dsRevisedBudget = flpRevisedBudget.GetAll(true); if (dsRevisedBudget != null) { if (dsRevisedBudget.Tables[0].Rows.Count > 0) { grdFollowUpBudget.DataSource = dsRevisedBudget.Tables[0]; grdFollowUpBudget.DataBind(); //Set Validation enable state only for PM if (IsBATAOrPM(currentUser)) { ButtonValid = IsBudgetValidateable(dsRevisedBudget); } } else { LoadGridNull(); ButtonValid = false; throw (new IndException(string.Format(ApplicationMessages.EXCEPTION_BUDGET_REVISED_MISSING_FOR_VERSION, cmbVersions.SelectedItem.Text, cmbType.SelectedItem.Text))); } } }
private bool ExistsInProgressRevisedBudget() { DataSet dsRevisedBudget = null; FollowUpRevisedBudget flpRevisedBudget = new FollowUpRevisedBudget(SessionManager.GetSessionValueNoRedirect(this, SessionStrings.CONNECTION_MANAGER)); flpRevisedBudget.BudVersion = ApplicationConstants.BUDGET_VERSION_IN_PROGRESS_CODE; flpRevisedBudget.IdProject = currentProject.Id; dsRevisedBudget = flpRevisedBudget.GetAll(true); if (dsRevisedBudget != null) { if (dsRevisedBudget.Tables[0] != null && dsRevisedBudget.Tables[0].Rows.Count > 0) { return(true); } } return(false); }