openfile.aspx.cs
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:1k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using COM.OA.Entity;
  12. using COM.OA.BLL;
  13. public partial class gxxz_openfile : System.Web.UI.Page
  14. {
  15.     protected void Page_Load(object sender, EventArgs e)
  16.     {
  17.         if (this.Request.Params["fid"] != null)
  18.         {
  19.             //打开的文件ID
  20.             int id = Int32.Parse(this.Request.Params["fid"].ToString());
  21.             
  22.             //更改打开文件的次数
  23.             files f = filesBLL.Select(id);
  24.             f.f_readdegree += 1;
  25.             filesBLL.Update(f);
  26.             
  27.             this.Response.Write(string.Format(GetRedirect.REDIRECT,"upload/"+f.f_filename));
  28.         }
  29.         else
  30.         {
  31.             return;
  32.         }
  33.     }
  34. }