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

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 System.Collections.Generic;
  13. using COM.OA.BLL;
  14. using System.Data.SqlClient;
  15. public partial class gxxz_shoucangpost : System.Web.UI.Page
  16. {
  17.     protected void Page_Load(object sender, EventArgs e)
  18.     {
  19.         
  20.         int em_id =Int32.Parse(this.Request.Form["city"]);
  21.         int f_id = Int32.Parse(this.Request.Form["f_id"]);
  22.         files f = filesBLL.Select(f_id);
  23.         employee em = employeeBLL.Select(em_id);
  24.         IList<users> ulist = usersBLL.Select("u_em_id="+em_id);
  25.         users u = ulist[0];
  26.             
  27.                 files file = new files();
  28.                 //部门ID
  29.                 //取session的值
  30.                 file.f_dept_id = u.u_dept_id;
  31.                 //文件名
  32.                 file.f_filename = f.f_filename;
  33.                 //文件类型
  34.                 file.f_ftype_id = f.f_ftype_id;
  35.                 //读否
  36.                 file.f_isread = 0;
  37.                 //是否回执
  38.                 file.f_isreturn = 0;
  39.                 //是否共享
  40.                 file.f_isshare = 0;
  41.                 //阅读次数
  42.                 file.f_readdegree = 0;
  43.                 //转发时间
  44.                 file.f_releasetime = DateTime.Now.ToLocalTime();
  45.                 //文件状态
  46.                 file.f_state = 0;
  47.                 //发送人
  48.                 file.f_sendu_id = f.f_sendu_id;
  49.                 //接收人
  50.                 file.f_takeu_id = u.u_id;
  51.                //附言
  52.                 file.f_remark =this.Request.Form["fuyan"];
  53.                 COM.OA.BLL.filesBLL.Insert(file);
  54.                 Session.Add("filepost", file);
  55.                 this.Response.Redirect("scsecce.aspx");
  56.             
  57.         
  58.     }
  59. }