﻿//实体类
function MessageBoardView()
{
this.Model_ClassName = 'Hqen.DMS.Model.InformationCenter.MessageBoardView';
this.SortMode = null; //排序方式
this.SortType = null; //排序类型
this.SearchStr = null; //模糊查询值
this.SenderRndCode = null; //
this.AccepterRndCode = null; //
this.MBId = null; //留言记录ID
this.SenderID = null; //发送者用户ID
this.SenderName = null; //发送者用户名
this.SenderCompanyName = null; //发送者公司名称
this.SenderIP = null; //发送者IP
this.SendTime = null; //留言时间
this.Subject = null; //主题
this.Body = null; //留言内容
this.AccepterUnRead = null; //接收者是否未读 1-未读 2-已读
this.AccepterID = null; //接收者用户ID
this.AccepterName = null; //接收者用户名
this.AccepterCompanyName = null; //接受者公司名称
this.AccepterIP = null; //回复者IP
this.AnswerTime = null; //回复时间
this.AnswerMsg = null; //回复信息
this.SenderUnRead = null; //发送者是否未读 1-未读 2-已读
this.MessageType = null; //留言类别
this.SenderDelete = null; //发送者已删除 1-已删除 2-未删除
this.AccepterDelete = null; //接收者已经删除 1-已删除 2-未删除
this.Status = null; //逻辑删除状态 1-未删除 2-已删除
this.Flag = null; //标记，备用
this.LastTime = null; //
this.PageIndex=1;
this.PageSize=20;
this.TotalPage=-1;
this.TotalCount=-1;
this.AllowPaging=true;
this.Keyword='';
}



function Info_MessageBoard()
{
    this.Model_ClassName = 'Hqen.DMS.Model.DBModel.Info_MessageBoard';
    this.MBId = null; //留言记录ID
    this.SenderID = null; //发送者用户ID
    this.SenderName = null; //发送者用户名
    this.SenderCompanyName = null; //发送者公司名    
    this.SenderIP = null; //发送者IP
    this.SendTime = null; //留言时间
    this.Subject = null; //主题
    this.Body = null; //留言内容
    this.AccepterUnRead = null; //是否未读
    this.AccepterID = null; //接收者用户ID
    this.AccepterName = null; //接收者用户名+
    this.AccepterCompanyName = null; //接收者公司名       
    this.AccepterIP = null; //回复者IP
    this.AnswerTime = null; //回复时间
    this.AnswerMsg = null; //回复信息
    this.SenderUnRead = null; //
    this.MessageType = null; //留言类别
    this.SenderDelete = null; //发送者已删除
    this.AccepterDelete = null; //接收者已经删除
    this.Status = null; //留言状态：0显示，1隐藏
    this.Flag = null; //标记，备用
    this.LastTime = null; //
    this.PageIndex=1;
    this.PageSize=5;
    this.TotalPage=-1;
    this.TotalCount=-1;
    this.AllowPaging=false;
}

function GetAccepterMessageCount()
{
    this.Model_ClassName = 'Hqen.DMS.Model.InformationCenter.GetAccepterMessageCount';
    this.TotalCount = null; 
    this.UnReadCount = null; //未读留言数量
    this.UnReplyCount = null; //未回复数量
    this.PageIndex=1;
    this.PageSize=20;
    this.TotalPage=-1;
    this.TotalCount=-1;
    this.AllowPaging=true;
    this.ViewTotalCount=0; //留言总数量
}

function GetSenderMessageCount()
{
    this.Model_ClassName = 'Hqen.DMS.Model.InformationCenter.GetSenderMessageCount';
    this.TotalCount = null; 
    this.UnReadCount = null; //未读留言数量
    this.ReplyCount = null; //已回复数量
    this.PageIndex=1;
    this.PageSize=20;
    this.TotalPage=-1;
    this.TotalCount=-1;
    this.AllowPaging=true;
    this.ViewTotalCount=0;//留言总数量
}

function BatchDelMessage()
{
    this.Model_ClassName = 'Hqen.DMS.Model.InformationCenter.BatchDelMessage';
    this.StrMessageIDList = null; //留言总数量
}
