当前位置: 首页>>代码示例>>C#>>正文


C# ProjectGateway.GetLastProjectId方法代码示例

本文整理汇总了C#中LiquiForce.LFSLive.DA.Projects.Projects.ProjectGateway.GetLastProjectId方法的典型用法代码示例。如果您正苦于以下问题:C# ProjectGateway.GetLastProjectId方法的具体用法?C# ProjectGateway.GetLastProjectId怎么用?C# ProjectGateway.GetLastProjectId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LiquiForce.LFSLive.DA.Projects.Projects.ProjectGateway的用法示例。


在下文中一共展示了ProjectGateway.GetLastProjectId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: StepFinishOptionsIn

        // /////////////////////////////////////////////////////////////////////////////////////////////////////
        // 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();");
        }
开发者ID:NosDeployer,项目名称:TestBranching,代码行数:25,代码来源:project_duplicate.aspx.cs

示例2: StepFinishOptionsIn

        // /////////////////////////////////////////////////////////////////////////////////////////////////////
        // 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();");
        }
开发者ID:NosDeployer,项目名称:TestBranching,代码行数:55,代码来源:Project_add.aspx.cs


注:本文中的LiquiForce.LFSLive.DA.Projects.Projects.ProjectGateway.GetLastProjectId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。