日期:2014-05-17 浏览次数:20526 次
/// <summary>
/// 生成文章内容
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void CreatNews(string ClassId)
{
string id = this.ddlClass.SelectedValue;
string where = id == "0" ? "" : (" n.Classid in(" + ClassId + ")");
int k = 0;
int r = 0, p = 0;
DataTable dts = new TCms.DAL.News().BindPage2(where, 1, 10000, out r, out p);
k = p;
TCms.Common.HProgressBar.Start();
createVo = new TCms.Common.CreateHtmlVo();
createVo.Count = r;
dts.Dispose();
for (int i = 1; i <= k; i++)
{
dt_news = new TCms.DAL.News().BindPage2(where, i, 10000, out r, out p);
Thread thread1 = new Thread(new ThreadStart(create));
Thread thread2 = new Thread(new ThreadStart(create));
Thread thread3 = new Thread(new ThreadStart(create));
Thread thread4 = new Thread(new ThreadStart(create));
Thread thread5 = new Thread(new ThreadStart(create));
Thread thread6 = new Thread(new ThreadStart(create));
Thread thread7 = new Thread(new ThreadStart(create));
Thread thre