Permalink
Browse files

修改html生成的命令提示窗口

  • Loading branch information...
1 parent 44d22a7 commit 92e4133eb92a4e112840277c89b0c78a065947b8 @shenyuyang shenyuyang committed Apr 30, 2012
@@ -101,7 +101,6 @@ public class HtmlController : ControllerBase {
private int htmlCount = 0;
- [HttpPost]
public void MakeAll() {
view( "MakeDone" );
@@ -110,24 +109,22 @@ public class HtmlController : ControllerBase {
MakeHomePage();
MakeSidebar();
- set( "htmlCount", htmlCount );
+ echo( "生成所有静态页面成功,共 " + htmlCount + "" );
}
public void MakeSidebar() {
view( "MakeDone" );
HtmlHelper.MakeSidebarHtml( ctx );
- set( "htmlCount", 1 );
+ echo( "生成侧栏页成功" );
+
htmlCount += 1;
}
public void MakeHomePage() {
- view( "MakeDone" );
HtmlHelper.MakeAppHtml( ctx );
- set( "htmlCount", 1 );
- htmlCount += 1;
+ echo( "生成首页成功" );
}
- [HttpPost]
public void MakeSectionAll() {
view( "MakeDone" );
@@ -145,10 +142,9 @@ public class HtmlController : ControllerBase {
}
htmlCount += count;
- set( "htmlCount", htmlCount );
+ echo( "生成所有列表页成功,共 " + htmlCount + "" );
}
- [HttpPost]
public void MakeDetailAll() {
view( "MakeDone" );
@@ -161,7 +157,6 @@ public class HtmlController : ControllerBase {
}
- [HttpPost]
public void MakeSection( int sectionId ) {
view( "MakeDone" );
@@ -170,16 +165,16 @@ public class HtmlController : ControllerBase {
int recordCount = postService.GetCountBySection( sectionId );
int listCount = HtmlHelper.MakeListHtml( ctx, app, sectionId, recordCount );
- set( "htmlCount", listCount );
+ echo( "生成列表页成功,共 " + listCount + "" );
+
}
- [HttpPost]
public void MakeDetailBySection( int sectionId ) {
view( "MakeDone" );
List<ContentPost> list = postService.GetBySection( sectionId );
- makeDetail( list );
+ echo( "生成详细页成功,共 " + list.Count + "" );
}
@@ -192,7 +187,8 @@ public class HtmlController : ControllerBase {
logger.Info( "make detail html, postId=" + post.Id );
}
- set( "htmlCount", list.Count );
+ echo( "生成所有详细页成功,共 " + list.Count + "" );
+
}
@@ -19,19 +19,19 @@
<table style="margin:10px 0px 0px 20px;">
<tr>
<td style=" vertical-align:top;"><div style="margin-top:0px;">
- <a href="#{lnkMakeHome}" class="postCmd btnBig" style="font-size:14px; font-weight:bold;">生成首页</a>
+ <a href="#{lnkMakeHome}" class="frmBox btnBig" style="font-size:14px; font-weight:bold;" title="生成首页">生成首页</a>
</div></td>
<td style=" vertical-align:top;"><div style="margin:0px 10px 10px 20px;">
<div>
- <a href="#{lnkMakeSectionAll}" class="postCmd btnBig btnGreen" style="font-size:14px; font-weight:bold;">生成所有列表页</a>
+ <a href="#{lnkMakeSectionAll}" class="frmBox btnBig btnGreen" style="font-size:14px; font-weight:bold;" title="生成所有列表页">生成所有列表页</a>
</div>
<div style="margin-top:15px;">
- <a href="#{lnkMakeDetailAll}" class="postCmd btnBig btnGreen" style="font-size:14px; font-weight:bold;">生成所有详细页</a>
+ <a href="#{lnkMakeDetailAll}" class="frmBox btnBig btnGreen" style="font-size:14px; font-weight:bold;" title="生成所有详细页">生成所有详细页</a>
</div> <div style="margin-top:15px;">
- <a href="#{lnkMakeSidebar}" class="postCmd btnBig btnGreen" style="font-size:14px; font-weight:bold;">生成侧栏页</a>
+ <a href="#{lnkMakeSidebar}" class="frmBox btnBig btnGreen" style="font-size:14px; font-weight:bold;" title="生成侧栏页">生成侧栏页</a>
</div></td>
<td style=" vertical-align:top;"> <div style="margin:0px 20px;">
- <a href="#{lnkMakeAll}" class="postCmd btnBig" style="font-size:14px; font-weight:bold;">生成所有页面</a>
+ <a href="#{lnkMakeAll}" class="frmBox btnBig" style="font-size:14px; font-weight:bold;" title="生成所有页面">生成所有页面</a>
</div>
</td>
@@ -48,8 +48,8 @@
<table border="1" cellpadding="3" id="makeHtmlSections">
<!-- BEGIN sections -->
<tr><td style="font-weight:bold;">#{section.Name} </td>
- <td style="width:150px; text-align:center;"><a href="#{lnkMakeSection}" class="postCmd btnBig">生成列表页</a></td>
- <td style="width:150px; text-align:center;"><a href="#{lnkMakeDetail}" class="postCmd btnBig btnGreen">生成详细页</a></td></tr>
+ <td style="width:150px; text-align:center;"><a href="#{lnkMakeSection}" class="frmBox btnBig" title="生成列表页">生成列表页</a></td>
+ <td style="width:150px; text-align:center;"><a href="#{lnkMakeDetail}" class="frmBox btnBig btnGreen" title="生成详细页">生成详细页</a></td></tr>
<!-- END sections -->
</table>
@@ -1055,7 +1055,7 @@
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
- <UseIIS>True</UseIIS>
+ <UseIIS>false</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>5111</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>

0 comments on commit 92e4133

Please sign in to comment.