shoucangpost.aspx.cs
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:2k
源码类别:
OA系统
开发平台:
C#
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using COM.OA.Entity;
- using System.Collections.Generic;
- using COM.OA.BLL;
- using System.Data.SqlClient;
- public partial class gxxz_shoucangpost : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- int em_id =Int32.Parse(this.Request.Form["city"]);
- int f_id = Int32.Parse(this.Request.Form["f_id"]);
- files f = filesBLL.Select(f_id);
- employee em = employeeBLL.Select(em_id);
- IList<users> ulist = usersBLL.Select("u_em_id="+em_id);
- users u = ulist[0];
- files file = new files();
- //部门ID
- //取session的值
- file.f_dept_id = u.u_dept_id;
- //文件名
- file.f_filename = f.f_filename;
- //文件类型
- file.f_ftype_id = f.f_ftype_id;
- //读否
- file.f_isread = 0;
- //是否回执
- file.f_isreturn = 0;
- //是否共享
- file.f_isshare = 0;
- //阅读次数
- file.f_readdegree = 0;
- //转发时间
- file.f_releasetime = DateTime.Now.ToLocalTime();
- //文件状态
- file.f_state = 0;
- //发送人
- file.f_sendu_id = f.f_sendu_id;
- //接收人
- file.f_takeu_id = u.u_id;
- //附言
- file.f_remark =this.Request.Form["fuyan"];
- COM.OA.BLL.filesBLL.Insert(file);
- Session.Add("filepost", file);
- this.Response.Redirect("scsecce.aspx");
- }
- }