本文整理汇总了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();");
}
示例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();");
}