readwenjian.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 qs_wenjian_readwenjian : System.Web.UI.Page
  14. {
  15.     protected void Page_Load(object sender, EventArgs e)
  16.     {
  17.         string id = this.Request.QueryString["fid"];
  18.         int fid = Int32.Parse(id);
  19.         if (!fid.Equals(""))
  20.         {
  21.         files fs = filesBLL.Select(fid);
  22.         string filename=fs.f_filename;
  23.         string lujing = "../gxxz/upload/" + filename;
  24.         fs.f_isread = 1;
  25.         int cishu = fs.f_readdegree + 1;
  26.         fs.f_readdegree = cishu;
  27.         filesBLL.Update(fs);
  28.             
  29.             this.Response.Redirect(lujing);
  30.         }
  31.         
  32.     }
  33. }