@@ -53,12 +53,12 @@ public void Page_Load(object sender, EventArgs e)
53
53
{
54
54
var type = Request . QueryString [ "type" ] ;
55
55
var userKeyPrefix = Request [ "userKeyPrefix" ] ;
56
- var retval = new NameValueCollection ( ) ;
56
+ var retVal = new NameValueCollection ( ) ;
57
57
var request = new AuthenticatedRequest ( ) ;
58
58
59
59
if ( type == TypeGetCountArray )
60
60
{
61
- retval = GetCountArray ( userKeyPrefix ) ;
61
+ retVal = GetCountArray ( userKeyPrefix ) ;
62
62
}
63
63
64
64
if ( type == TypeCreateSite )
@@ -71,35 +71,35 @@ public void Page_Load(object sender, EventArgs e)
71
71
72
72
if ( ! string . IsNullOrEmpty ( siteTemplateDir ) )
73
73
{
74
- retval = CreateSiteBySiteTemplateDir ( siteId , isImportContents , isImportTableStyles , siteTemplateDir , userKeyPrefix , request . AdminName ) ;
74
+ retVal = CreateSiteBySiteTemplateDir ( siteId , isImportContents , isImportTableStyles , siteTemplateDir , userKeyPrefix , request . AdminName ) ;
75
75
}
76
76
else if ( ! string . IsNullOrEmpty ( onlineTemplateName ) )
77
77
{
78
- retval = CreateSiteByOnlineTemplateName ( siteId , isImportContents , isImportTableStyles , onlineTemplateName , userKeyPrefix , request . AdminName ) ;
78
+ retVal = CreateSiteByOnlineTemplateName ( siteId , isImportContents , isImportTableStyles , onlineTemplateName , userKeyPrefix , request . AdminName ) ;
79
79
}
80
80
else
81
81
{
82
- retval = CreateSite ( siteId , userKeyPrefix , request . AdminName ) ;
82
+ retVal = CreateSite ( siteId , userKeyPrefix , request . AdminName ) ;
83
83
}
84
84
}
85
85
86
- var jsonString = TranslateUtils . NameValueCollectionToJsonString ( retval ) ;
86
+ var jsonString = TranslateUtils . NameValueCollectionToJsonString ( retVal ) ;
87
87
Page . Response . Write ( jsonString ) ;
88
88
Page . Response . End ( ) ;
89
89
}
90
90
91
91
public NameValueCollection GetCountArray ( string userKeyPrefix ) //进度及显示
92
92
{
93
- var retval = new NameValueCollection ( ) ;
93
+ var retVal = new NameValueCollection ( ) ;
94
94
if ( CacheUtils . Get ( userKeyPrefix + CacheTotalCount ) != null && CacheUtils . Get ( userKeyPrefix + CacheCurrentCount ) != null && CacheUtils . Get ( userKeyPrefix + CacheMessage ) != null )
95
95
{
96
96
var totalCount = TranslateUtils . ToInt ( ( string ) CacheUtils . Get ( userKeyPrefix + CacheTotalCount ) ) ;
97
97
var currentCount = TranslateUtils . ToInt ( ( string ) CacheUtils . Get ( userKeyPrefix + CacheCurrentCount ) ) ;
98
98
var message = ( string ) CacheUtils . Get ( userKeyPrefix + CacheMessage ) ;
99
99
100
- retval = AjaxManager . GetCountArrayNameValueCollection ( totalCount , currentCount , message ) ;
100
+ retVal = AjaxManager . GetCountArrayNameValueCollection ( totalCount , currentCount , message ) ;
101
101
}
102
- return retval ;
102
+ return retVal ;
103
103
}
104
104
105
105
public NameValueCollection CreateSiteBySiteTemplateDir ( int siteId , bool isImportContents , bool isImportTableStyles , string siteTemplateDir , string userKeyPrefix , string administratorName )
@@ -113,7 +113,7 @@ public NameValueCollection CreateSiteBySiteTemplateDir(int siteId, bool isImport
113
113
CacheUtils . Insert ( cacheMessageKey , string . Empty ) ; //存储消息
114
114
115
115
//返回“运行结果”、“错误信息”及“执行JS脚本”的字符串数组
116
- NameValueCollection retval ;
116
+ NameValueCollection retVal ;
117
117
118
118
try
119
119
{
@@ -128,13 +128,13 @@ public NameValueCollection CreateSiteBySiteTemplateDir(int siteId, bool isImport
128
128
129
129
CacheUtils . Insert ( cacheCurrentCountKey , "3" ) ; //存储当前的页面总数
130
130
CacheUtils . Insert ( cacheMessageKey , "创建成功!" ) ; //存储消息
131
- retval = AjaxManager . GetWaitingTaskNameValueCollection (
131
+ retVal = AjaxManager . GetWaitingTaskNameValueCollection (
132
132
$ "站点 <strong>{ siteInfo . SiteName } <strong> 创建成功!", string . Empty ,
133
133
$ "top.location.href='{ PageUtils . GetMainUrl ( siteId ) } ';") ;
134
134
}
135
135
catch ( Exception ex )
136
136
{
137
- retval = AjaxManager . GetWaitingTaskNameValueCollection ( string . Empty , ex . Message , string . Empty ) ;
137
+ retVal = AjaxManager . GetWaitingTaskNameValueCollection ( string . Empty , ex . Message , string . Empty ) ;
138
138
LogUtils . AddErrorLog ( ex ) ;
139
139
}
140
140
@@ -143,7 +143,7 @@ public NameValueCollection CreateSiteBySiteTemplateDir(int siteId, bool isImport
143
143
CacheUtils . Remove ( cacheMessageKey ) ; //取消存储消息
144
144
CacheUtils . ClearAll ( ) ;
145
145
146
- return retval ;
146
+ return retVal ;
147
147
}
148
148
149
149
public NameValueCollection CreateSiteByOnlineTemplateName ( int siteId , bool isImportContents , bool isImportTableStyles , string onlineTemplateName , string userKeyPrefix , string administratorName )
@@ -157,7 +157,7 @@ public NameValueCollection CreateSiteByOnlineTemplateName(int siteId, bool isImp
157
157
CacheUtils . Insert ( cacheMessageKey , string . Empty ) ; //存储消息
158
158
159
159
//返回“运行结果”、“错误信息”及“执行JS脚本”的字符串数组
160
- NameValueCollection retval ;
160
+ NameValueCollection retVal ;
161
161
162
162
try
163
163
{
@@ -187,12 +187,12 @@ public NameValueCollection CreateSiteByOnlineTemplateName(int siteId, bool isImp
187
187
CacheUtils . Insert ( cacheMessageKey , "创建成功!" ) ; //存储消息
188
188
189
189
var siteInfo = SiteManager . GetSiteInfo ( siteId ) ;
190
- retval = AjaxManager . GetWaitingTaskNameValueCollection ( $ "站点 <strong>{ siteInfo . SiteName } <strong> 创建成功!", string . Empty ,
190
+ retVal = AjaxManager . GetWaitingTaskNameValueCollection ( $ "站点 <strong>{ siteInfo . SiteName } <strong> 创建成功!", string . Empty ,
191
191
$ "top.location.href='{ PageUtils . GetMainUrl ( siteId ) } ';") ;
192
192
}
193
193
catch ( Exception ex )
194
194
{
195
- retval = AjaxManager . GetWaitingTaskNameValueCollection ( string . Empty , ex . Message , string . Empty ) ;
195
+ retVal = AjaxManager . GetWaitingTaskNameValueCollection ( string . Empty , ex . Message , string . Empty ) ;
196
196
LogUtils . AddErrorLog ( ex ) ;
197
197
}
198
198
@@ -201,7 +201,7 @@ public NameValueCollection CreateSiteByOnlineTemplateName(int siteId, bool isImp
201
201
CacheUtils . Remove ( cacheMessageKey ) ; //取消存储消息
202
202
CacheUtils . ClearAll ( ) ;
203
203
204
- return retval ;
204
+ return retVal ;
205
205
}
206
206
207
207
public NameValueCollection CreateSite ( int siteId , string userKeyPrefix , string administratorName )
@@ -215,7 +215,7 @@ public NameValueCollection CreateSite(int siteId, string userKeyPrefix, string a
215
215
CacheUtils . Insert ( cacheMessageKey , string . Empty ) ; //存储消息
216
216
217
217
//返回“运行结果”、“错误信息”及“执行JS脚本”的字符串数组
218
- NameValueCollection retval ;
218
+ NameValueCollection retVal ;
219
219
220
220
try
221
221
{
@@ -225,13 +225,13 @@ public NameValueCollection CreateSite(int siteId, string userKeyPrefix, string a
225
225
226
226
CacheUtils . Insert ( cacheCurrentCountKey , "2" ) ; //存储当前的页面总数
227
227
CacheUtils . Insert ( cacheMessageKey , "创建成功!" ) ; //存储消息
228
- retval = AjaxManager . GetWaitingTaskNameValueCollection (
228
+ retVal = AjaxManager . GetWaitingTaskNameValueCollection (
229
229
$ "站点 <strong>{ siteInfo . SiteName } <strong> 创建成功!", string . Empty ,
230
230
$ "top.location.href='{ PageUtils . GetMainUrl ( siteId ) } ';") ;
231
231
}
232
232
catch ( Exception ex )
233
233
{
234
- retval = AjaxManager . GetWaitingTaskNameValueCollection ( string . Empty , ex . Message , string . Empty ) ;
234
+ retVal = AjaxManager . GetWaitingTaskNameValueCollection ( string . Empty , ex . Message , string . Empty ) ;
235
235
LogUtils . AddErrorLog ( ex ) ;
236
236
}
237
237
@@ -240,7 +240,7 @@ public NameValueCollection CreateSite(int siteId, string userKeyPrefix, string a
240
240
CacheUtils . Remove ( cacheMessageKey ) ; //取消存储消息
241
241
CacheUtils . ClearAll ( ) ;
242
242
243
- return retval ;
243
+ return retVal ;
244
244
}
245
245
}
246
246
}
0 commit comments