📄 shoucangpost.aspx.cs
字号:
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");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -