// /////////////////////////////////////////////////////////////////////////////////////////////////////
        // STEP2 - FINISH OPTIONS
        //
        // ////////////////////////////////////////////////////////////////////////
        // STEP2 - FINISH OPTIONS - METHODS
        //
        private void StepFinishOptionsIn()
        {
            // Set instruction
            mWizard2 master2 = (mWizard2)this.Master;
            master2.WizardInstruction = "What would you like to do?";

            ProjectGateway projectGateway = new ProjectGateway(projectTDS);

            string url = "";
            int projectId = projectGateway.GetLastProjectId();

            url = "./project_summary.aspx?source_page=project_add.aspx&project_id=" + projectId.ToString() + "&active_tab=0&" + GetNavigatorState();
            lkbtnOpenProject.Attributes.Add("onclick", string.Format("return lkbtnOpenProjectClick('{0}');", url));

            url = "./project_edit.aspx?source_page=project_add.aspx&project_id=" + projectId.ToString() + "&active_tab=0&" + GetNavigatorState() + "&origin=navigator";
            lkbtnEditProject.Attributes.Add("onclick", string.Format("return lkbtnEditProjectClick('{0}');", url));

            lkbtnClose.Attributes.Add("onclick", "return lkbtnCloseClick();");
        }
예제 #2
0
        // /////////////////////////////////////////////////////////////////////////////////////////////////////
        // STEP7 - FINISH OPTIONS
        //
        // ////////////////////////////////////////////////////////////////////////
        // STEP7 - FINISH OPTIONS - METHODS
        //
        private void StepFinishOptionsIn()
        {
            // Set instruction
            mWizard2 master2 = (mWizard2)this.Master;
            master2.WizardInstruction = "What would you like to do?";

            Session.Remove("lfsLibraryTDS");
            Session.Remove("fromAttachment");

            // Set instruction for new ballpark
            if (rbtnBallpark.Checked)
            {
                master2.WizardTitle = "Add New Ballpark";
                lkbtnOpenProject.Text = "Open the ballpark you just created";
                lkbtnEditProject.Text = "Edit the ballpark you just created";
                lkbtnClose.Text = "Close this window";
            }

            // Set instruction for new proposal
            if (rbtnProposal.Checked)
            {
                master2.WizardTitle = "Add New Proposal";
                lkbtnOpenProject.Text = "Open the proposal you just created";
                lkbtnEditProject.Text = "Edit the proposal you just created";
                lkbtnClose.Text = "Close this window";
            }

            // Set instruction for new internal project
            if (rbtnInternalProject.Checked)
            {
                master2.WizardTitle = "Add New Internal Project";
                lkbtnOpenProject.Text = "Open the internal project you just created";
                lkbtnEditProject.Text = "Edit the internal project you just created";
                lkbtnClose.Text = "Close this window";
            }

            ProjectGateway projectGateway = new ProjectGateway(projectTDS);

            string url = "";
            int projectId = projectGateway.GetLastProjectId();

            url = "./project_summary.aspx?source_page=project_add.aspx&project_id=" + projectId.ToString() + "&active_tab=0&" + GetNavigatorState();
            lkbtnOpenProject.Attributes.Add("onclick", string.Format("return lkbtnOpenProjectClick('{0}');", url));

            url = "./project_edit.aspx?source_page=project_add.aspx&project_id=" + projectId.ToString() + "&active_tab=0&" + GetNavigatorState() + "&origin=navigator";
            lkbtnEditProject.Attributes.Add("onclick", string.Format("return lkbtnEditProjectClick('{0}');", url));

            lkbtnClose.Attributes.Add("onclick", "return lkbtnCloseClick();");
        }