| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- using GalaSoft.MvvmLight;
- using Muchinfo.MTPClient.Data.Enums;
- using Muchinfo.MTPClient.Data.Helper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows;
- using System.Windows.Media;
- //----------------------------------------------------------------
- //Module Name: $safeprojectname$
- //Purpose:
- //CopyRight: Muchinfo
- //History:
- //----------------------------------------------------------------
- //DateTime 2016/6/27 16:42:21
- //Author DK.Huang
- //Description Create
- //----------------------------------------------------------------
- namespace Muchinfo.MTPClient.Data.Model.Message
- {
- /// <summary>
- /// 公告消息
- /// </summary>
- public class NoticeMsg:ViewModelBase
- {
- private long _MSG_ID;
- /// <summary>
- /// 消息ID NUMBER(20) not null,
- /// </summary>
- [PropertyDisc("MSG_ID")]
- public long MSG_ID
- {
- get { return _MSG_ID; }
- set { _MSG_ID = value; }
- }
- private string _TITLE;
- /// <summary>
- /// 标题 VARCHAR2(255) null
- /// </summary>
- [PropertyDisc("TITLE")]
- public string TITLE
- {
- get { return _TITLE; }
- set { _TITLE = value; }
- }
- private string _CONTENT;
- /// <summary>
- /// 内容 VARCHAR2(4000) null
- /// </summary>
- [PropertyDisc("CONTENT")]
- public string CONTENT
- {
- get { return _CONTENT; }
- set { _CONTENT = value; }
- }
- private uint _NoticeType = uint.MaxValue;
- public uint NoticeType
- {
- get { return _NoticeType; }
- set { _NoticeType = value; }
- }
- private eAccountType _SENDER_ROLES;
- /// <summary>
- /// 发送者角色 VARCHAR2(1000) null
- /// </summary>
- [PropertyDisc("SENDER_ROLES")]
- public eAccountType SENDER_ROLES
- {
- get { return _SENDER_ROLES; }
- set { _SENDER_ROLES = value; }
- }
- private string _SENDER_INVESTORS;
- /// <summary>
- /// 发送投资者VARCHAR2(1000) null
- /// </summary>
- [PropertyDisc("SENDER_INVESTORS")]
- public string SENDER_INVESTORS
- {
- get { return _SENDER_INVESTORS; }
- set { _SENDER_INVESTORS = value; }
- }
- private DateTime _END_DATE;
- /// <summary>
- /// 结束时间DATE null
- /// </summary>
- [PropertyDisc("END_DATE")]
- public DateTime END_DATE
- {
- get { return _END_DATE; }
- set { _END_DATE = value; }
- }
- private int _IS_TOP;
- /// <summary>
- /// 是否顶置 CHAR(1) null
- /// </summary>
- [PropertyDisc("IS_TOP")]
- public int IS_TOP
- {
- get { return _IS_TOP; }
- set { _IS_TOP = value; }
- }
- private DateTime _SCHEDULE_TIME;
- /// <summary>
- /// 计划时间DATE null
- /// </summary>
- [PropertyDisc("SCHEDULE_TIME")]
- public DateTime SCHEDULE_TIME
- {
- get { return _SCHEDULE_TIME; }
- set { _SCHEDULE_TIME = value; }
- }
- /// <summary>
- /// 发布时间
- /// </summary>
- [PropertyDisc("sending_time")]
- public DateTime Sending_Time { get; set; }
- private int _HANDLE_TYPE;
- /// <summary>
- /// 处理类型CHAR(1) null
- /// </summary>
- [PropertyDisc("HANDLE_TYPE")]
- public int HANDLE_TYPE
- {
- get { return _HANDLE_TYPE; }
- set { _HANDLE_TYPE = value; }
- }
- private int _ACCOUNTID;
- /// <summary>
- /// 用户ID
- /// </summary>
- [PropertyDisc("ACCOUNTID")]
- public int ACCOUNTID
- {
- get { return _ACCOUNTID; }
- set { _ACCOUNTID = value; }
- }
- private NoticeReadStatus _STATUS;
- /// <summary>
- /// 阅读状态
- /// </summary>
- [PropertyDisc("STATUS")]
- public NoticeReadStatus STATUS
- {
- get { return _STATUS; }
-
- set { Set(() => STATUS, ref _STATUS, value); }
- }
- /// <summary>
- /// 机构名称
- /// </summary>
- [PropertyDisc("AreaName")]
- public string AreaName { get; set; }
- #region 风险率-自定义
- private int _RiskLevel = -1;
- /// <summary>
- /// 风险率-自定义
- /// </summary>
- public int RiskLevel
- {
- get { return _RiskLevel; }
- set { _RiskLevel = value; }
- }
- #endregion
-
- /// <summary>
- /// 是否置顶
- /// </summary>
- public bool IsShowTop
- {
- get
- {
- return IS_TOP == 1;
- }
- }
- public string SENDER_ROLESDisplay
- {
- get
- {
- return SENDER_ROLES.Discription();
- }
- }
- public string TITLEDisplay
- {
- get
- {
- if (IsShowTop)
- {
- return Muchinfo.MTPClient.Resources.Client_Resource.Notice_IsTop+TITLE;
- }
- return TITLE;
- }
- }
- /// <summary>
- /// 是否可点展开(true: 不可点,false :可点)
- /// </summary>
- public bool IsClicked { get; set; }
- /// <summary>
- /// 提示小窗口标题
- /// </summary>
- public string SmallWinTitle { get; set; }
-
- }
- public class NoticeCount
- {
- /// <summary>
- /// 未读消息数量
- /// </summary>
- [PropertyDisc("MsgCount")]
- public int MsgCount { get; set; }
- /// <summary>
- /// 未读消息类型
- /// </summary>
- [PropertyDisc("MsgType")]
- public MsgTypeEnum MsgType { get; set; }
- }
- }
|