You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

444 lines
11 KiB
C#

using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.CommMng.Models
{
/*
[JsonObject]
public class WorkFlow_Usingmb : ModelObjectBillBody
{//使用中的工作流状态
private string _BSNO = string.Empty;
private string _WORKFLOWID = string.Empty;
private string _STEPNO = string.Empty;
private string _REJECTOR_ID = string.Empty;
private string _REJECT_TIME = string.Empty;
private string _FINISHED = string.Empty;
private string _ISDELETE = string.Empty;
private string _DELETEUSER = string.Empty;
private string _DELETETIME = string.Empty;
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string WORKFLOWID
{
get { return _WORKFLOWID; }
set { _WORKFLOWID = value; }
}
[ModelDB]
public string STEPNO
{
get { return _STEPNO; }
set { _STEPNO = value; }
}
[ModelDB]
public string REJECTOR_ID
{
get { return _REJECTOR_ID; }
set { _REJECTOR_ID = value; }
}
[ModelDB]
public string REJECT_TIME
{
get { return _REJECT_TIME; }
set { _REJECT_TIME = value; }
}
[ModelDB]
public string FINISHED
{
get { return _FINISHED; }
set { _FINISHED = value; }
}
[ModelDB]
public string ISDELETE
{
get { return _ISDELETE; }
set { _ISDELETE = value; }
}
[ModelDB]
public string DELETEUSER
{
get { return _DELETEUSER; }
set { _DELETEUSER = value; }
}
[ModelDB]
public string DELETETIME
{
get { return _DELETETIME; }
set { _DELETETIME = value; }
}
public WorkFlow_Usingmb()
{
TableName = "workflow_using";
}
public override string GetBillNoFieldName()
{
return "WORKFLOWID";
}
}
* */
/*
[JsonObject]
public class WorkFlowmb : ModelObjectBillBody
{//通过名字获取GID
private string _GID = string.Empty;
private string _NAME = string.Empty;
private string _TYPENO = string.Empty;
public string GID
{
get { return _GID; }
set { _GID = value; }
}
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
public string TYPENO
{
get { return _TYPENO; }
set { _TYPENO = value; }
}
}
*/
[JsonObject]
public class WorkFlowStepmb : ModelObjectBillBody
{//通过名字获取GID
private string _GID = string.Empty;
private string _NAME = string.Empty;
private string _STEPNO = string.Empty;
private string _NEEDALLPASS = string.Empty;
private string _ISMUST = string.Empty;
private string _ISLAST = string.Empty;
private string _GROUPID = string.Empty;
[ModelDB]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
[ModelDB]
public string STEPNO
{
get { return _STEPNO; }
set { _STEPNO = value; }
}
[ModelDB]
public string GROUPID
{
get { return _GROUPID; }
set { _GROUPID = value; }
}
[ModelDB]
public string NEEDALLPASS
{
get { return _NEEDALLPASS; }
set { _NEEDALLPASS = value; }
}
[ModelDB]
public string ISMUST
{
get { return _ISMUST; }
set { _ISMUST = value; }
}
[ModelDB]
public string ISLAST
{
get { return _ISLAST; }
set { _ISLAST = value; }
}
}
[JsonObject]
public class BSNOWorkFlowStatemb : ModelObjectBillBody
{//通过名字获取GID
private string _NAME = string.Empty;
private string _GROUPID = string.Empty;
private string _STEPNO = string.Empty;
private string _AUDITOR = string.Empty;
private string _SHOWNAME = string.Empty;
private string _BILLNO = string.Empty;
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
public string GROUPID
{
get { return _GROUPID; }
set { _GROUPID = value; }
}
public string STEPNO
{
get { return _STEPNO; }
set { _STEPNO = value; }
}
public string AUDITOR
{
get { return _AUDITOR; }
set { _AUDITOR = value; }
}
public string SHOWNAME
{
get { return _SHOWNAME; }
set { _SHOWNAME = value; }
}
public string BILLNO
{
get { return _BILLNO; }
set { _BILLNO = value; }
}
}
[JsonObject]//可以操作的步骤号
public class WorkFlowStepNOmb : ModelObjectBillBody
{
private string _STEPNO = string.Empty;
public string STEPNO
{
get { return _STEPNO; }
set { _STEPNO = value; }
}
}
[JsonObject]//向消息表中插入的消息
public class SYSMessagemb : ModelObjectBillHead
{
/*" INSERT INTO sys_message(GID,[NAME],DESCRIPTION,CREATETIME,ISREAD,READCOUNT,MESSAGECONTENT,RECEIVER,[TYPE],TASKURL,TASKID,RECVTYPE) "
" VALUES(@gid,@name,@description,GETDATE(),@is_read,@read_count,@message_content,@receiver,@type,@task_url,@task_id,@recv_type) ";*/
private string _GID = string.Empty;
private string _NAME = string.Empty;
private string _DESCRIPTION = string.Empty;
private string _CREATETIME = string.Empty;
private string _ISREAD = string.Empty;
private string _READCOUNT = string.Empty;
private string _MESSAGECONTENT = string.Empty;
private string _LASTREADTIME = string.Empty;
private string _RECEIVER = string.Empty;
private string _TYPE = string.Empty;
private string _TASKURL = string.Empty;
private string _TASKID = string.Empty;
private string _ISDELETE = string.Empty;
private string _DELETEUSER = string.Empty;
private string _DELETETIME = string.Empty;
private string _NUMBER = string.Empty;
private string _RECVTYPE = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
[ModelDB]
public string DESCRIPTION
{
get { return _DESCRIPTION; }
set { _DESCRIPTION = value; }
}
[ModelDB]
public string CREATETIME
{
get { return _CREATETIME; }
set { _CREATETIME = value; }
}
[ModelDB]
public string ISREAD
{
get { return _ISREAD; }
set { _ISREAD = value; }
}
[ModelDB]
public string READCOUNT
{
get { return _READCOUNT; }
set { _READCOUNT = value; }
}
[ModelDB]
public string MESSAGECONTENT
{
get { return _MESSAGECONTENT; }
set { _MESSAGECONTENT = value; }
}
[ModelDB]
public string LASTREADTIME
{
get { return _LASTREADTIME; }
set { _LASTREADTIME = value; }
}
[ModelDB]
public string RECEIVER
{
get { return _RECEIVER; }
set { _RECEIVER = value; }
}
[ModelDB]
public string TYPE
{
get { return _TYPE; }
set { _TYPE = value; }
}
[ModelDB]
public string TASKURL
{
get { return _TASKURL; }
set { _TASKURL = value; }
}
[ModelDB]
public string TASKID
{
get { return _TASKID; }
set { _TASKID = value; }
}
[ModelDB]
public string ISDELETE
{
get { return _ISDELETE; }
set { _ISDELETE = value; }
}
[ModelDB]
public string DELETEUSER
{
get { return _DELETEUSER; }
set { _DELETEUSER = value; }
}
[ModelDB]
public string DELETETIME
{
get { return _DELETETIME; }
set { _DELETETIME = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Edit)]
public string NUMBER
{
get { return _NUMBER; }
set { _NUMBER = value; }
}
[ModelDB]
public string RECVTYPE
{
get { return _RECVTYPE; }
set { _RECVTYPE = value; }
}
public SYSMessagemb()
{
TableName = "sys_message";
}
public override string GetBillNoFieldName()
{
return "GID";
}
virtual public string GetTimeMarkFieldName()
{
return "";
}
}
[JsonObject]
public class Auditormb : ModelObjectBillBody
{
private string _AUDITORID = string.Empty;
private string _NAME = string.Empty;
public string GID
{
get { return _AUDITORID; }
set { _AUDITORID = value; }
}
public string NAME
{
get { return _NAME; }
set { _NAME = value; }
}
public Auditormb()
{
TableName = "";
}
override public string GetBillNoFieldName()
{
return "";
}
}
[JsonObject]
public class Resultmb : ModelObjectBillBody
{//{ Success = true, Message = "查询成功", totalCount = dataList.Count, data = list.ToList() }
private Boolean _success = true;
private string _message = string.Empty;
private int _count = 0;
private Boolean _islast = false;
public Boolean Success
{
get { return _success; }
set { _success = value; }
}
public string Message
{
get { return _message; }
set { _message = value; }
}
public int totalCount
{
get { return _count; }
set { _count = value; }
}
public Boolean islast
{
get { return _islast; }
set { _islast = value; }
}
}
[JsonObject]
public class CanChangemb : Object
{//{ Success = true, Message = "查询成功", totalCount = dataList.Count, data = list.ToList() }
private Boolean _changeusing = false;
private Boolean _changeStep = false;
public Boolean ChangeUsing
{
get { return _changeusing; }
set { _changeusing = value; }
}
public Boolean ChangeStep
{
get { return _changeStep; }
set { _changeStep = value; }
}
}
}