/// <summary> /// method for CTM to submit initial budget /// </summary> /// <param name="budgetNextState"></param> private void SubmitInitialBudget(string budgetNextState) { FollowUpInitialBudget followUpInitBud = new FollowUpInitialBudget(SessionManager.GetSessionValueNoRedirect(this.Page, SessionStrings.CONNECTION_MANAGER)); followUpInitBud.IdProject = IdProject; followUpInitBud.IdAssociate = IdAssociate; followUpInitBud.StateCode = budgetNextState; followUpInitBud.SetModified(); int ret = followUpInitBud.Save(); SubmitVisible = false; btnSubmit.Visible = false; }
/// <summary> /// method for PM to Reject Initial Budget /// </summary> private void RejectInitialBudget() { FollowUpInitialBudget followUpInitBud = new FollowUpInitialBudget(SessionManager.GetSessionValueNoRedirect(this.Page, SessionStrings.CONNECTION_MANAGER)); followUpInitBud.IdProject = IdProject; followUpInitBud.IdAssociate = IdAssociate; followUpInitBud.StateCode = ApplicationConstants.BUDGET_STATE_OPEN; followUpInitBud.SetModified(); int ret = followUpInitBud.Save(); SubmitVisible = false; ApprovedVisible = false; RejectVisible = false; }