news.cs
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:4k
源码类别:
OA系统
开发平台:
C#
- // ===================================================================
- // 实体(COM.OA.Entity)项目
- //====================================================================
- // wangyp @Copy Right 2006-2008
- // 文件news.cs
- // 项目名称:工程项目管理
- // 创建时间:2008-9-23
- // 负责人:wangyp
- // ===================================================================
- using System;
- using System.Collections.Generic;
- namespace COM.OA.Entity
- {
- /// <summary>
- ///
- /// </summary>
- [Serializable]
- public class news
- {
- #region 变量定义
- ///<summary>
- ///新闻id
- ///</summary>
- private int _n_id;
- ///<summary>
- ///新闻标题
- ///</summary>
- private string _n_title = String.Empty;
- ///<summary>
- ///新闻内容
- ///</summary>
- private string _n_content = String.Empty;
- ///<summary>
- ///部门id(外键)
- ///</summary>
- private int _n_dept_id;
- ///<summary>
- ///发布人id(外键)
- ///</summary>
- private int _n_u_id;
- ///<summary>
- ///发布时间
- ///</summary>
- private DateTime _n_releasetime;
- ///<summary>
- ///状态
- ///</summary>
- private int _n_state;
- ///<summary>
- ///
- ///</summary>
- private users _users = null;
- ///<summary>
- ///
- ///</summary>
- private department _department = null;
- #endregion
- #region 构造函数
- ///<summary>
- ///
- ///</summary>
- public news()
- {
- }
- ///<summary>
- ///
- ///</summary>
- public news
- (
- int n_id,
- string n_title,
- string n_content,
- int n_dept_id,
- int n_u_id,
- DateTime n_releasetime,
- int n_state
- )
- {
- _n_id = n_id;
- _n_title = n_title;
- _n_content = n_content;
- _n_dept_id = n_dept_id;
- _n_u_id = n_u_id;
- _n_releasetime = n_releasetime;
- _n_state = n_state;
- }
- #endregion
- #region 公共属性
- ///<summary>
- ///新闻id
- ///</summary>
- public int n_id
- {
- get { return _n_id; }
- set { _n_id = value; }
- }
- ///<summary>
- ///新闻标题
- ///</summary>
- public string n_title
- {
- get { return _n_title; }
- set { _n_title = value; }
- }
- ///<summary>
- ///新闻内容
- ///</summary>
- public string n_content
- {
- get { return _n_content; }
- set { _n_content = value; }
- }
- ///<summary>
- ///部门id(外键)
- ///</summary>
- public int n_dept_id
- {
- get { return _n_dept_id; }
- set { _n_dept_id = value; }
- }
- ///<summary>
- ///发布人id(外键)
- ///</summary>
- public int n_u_id
- {
- get { return _n_u_id; }
- set { _n_u_id = value; }
- }
- ///<summary>
- ///发布时间
- ///</summary>
- public DateTime n_releasetime
- {
- get { return _n_releasetime; }
- set { _n_releasetime = value; }
- }
- ///<summary>
- ///状态
- ///</summary>
- public int n_state
- {
- get { return _n_state; }
- set { _n_state = value; }
- }
- ///<summary>
- ///
- ///</summary>
- public users users
- {
- get { return _users; }
- set { _users = value; }
- }
- ///<summary>
- ///
- ///</summary>
- public department department
- {
- get { return _department; }
- set { _department = value; }
- }
- #endregion
- }
- }