日期:2014-05-17 浏览次数:20460 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using O2S.Components.PDFRender4NET;
using Word = Microsoft.Office.Interop.Word;
using Excel = Microsoft.Office.Interop.Excel;
using PowerPoint = Microsoft.Office.Interop.PowerPoint;
using Microsoft.Office.Core;
using System.IO;
using System.Text;
/*using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;*/
using System.Data;
using DTcms.Common;
namespace DTcms.Web.admin.download
{
public partial class edit : Web.UI.ManagePage
{
private string action = DTEnums.ActionEnum.Add.ToString(); //操作类型
private int channel_id;
private int id = 0;
protected void Page_Load(object sender, EventArgs e)
{
string _action = DTRequest.GetQueryString("action");
this.channel_id = DTRequest.GetQueryInt("channel_id");
if (this.channel_id == 0)
{
JscriptMsg("频道参数不正确!", "back", "Error");
return;
}
if (!string.IsNullOrEmpty(_action) && _action == DTEnums.ActionEnum.Edit.ToString())
{
this.action = DTEnums.ActionEnum.Edit.ToString();//修改类型
this.id = DTRequest.GetQueryInt("id");
if (this.id == 0)
{
JscriptMsg("传输参数不正确!", "back", "Error");
return;
}
if (!new BLL.article().Exists(this.id))
{
&n