207 lines
4.9 KiB
C#
207 lines
4.9 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Lskj.Interface.Api
|
|
{
|
|
public class ModuleEventPms : PropertyBase
|
|
{
|
|
public ModuleEventPms()
|
|
{
|
|
Id = Guid.NewGuid().ToString();
|
|
}
|
|
public ModuleEventPms(OperateEvent ev, ActionType aType)
|
|
: this()
|
|
{
|
|
this.OperEvent = ev;
|
|
this.AcType = aType;
|
|
}
|
|
|
|
public ModuleEventPms(OperateEvent ev, ActionType aType, ModuleBase module, BillStateEn stateEn = null, BaseResponse response = null)
|
|
: this(ev, aType)
|
|
{
|
|
this.module = module;
|
|
this.stateEn = stateEn;
|
|
this.response = response;
|
|
|
|
}
|
|
|
|
public ModuleBase module;
|
|
public BillStateEn stateEn;
|
|
public BaseResponse response;
|
|
|
|
/// <summary>
|
|
/// 本次操作的标识
|
|
/// </summary>
|
|
public string client = "cs";
|
|
/// <summary>
|
|
/// 本次操作的唯一键
|
|
/// </summary>
|
|
public String Id { get; private set; }
|
|
/// <summary>
|
|
/// 此次事件类型
|
|
/// </summary>
|
|
public OperateEvent OperEvent { get; set; }
|
|
/// <summary>
|
|
/// 操作类型
|
|
/// </summary>
|
|
public ActionType AcType { get; set; }
|
|
//{
|
|
// get
|
|
// {
|
|
// ActionType aType = ActionType.None;
|
|
// if (!string.IsNullOrEmpty(AuditDirection))
|
|
// {
|
|
// switch (AuditDirection.ToUpper())
|
|
// {
|
|
// case "Q": aType = ActionType.AuditClose; break;//关闭
|
|
// case "R": aType = ActionType.AuditBack; break;//回退
|
|
// case "F": aType = ActionType.Audit; break;//审核
|
|
// case "C": aType = ActionType.AuditPress; break;//催办
|
|
// case "P": aType = ActionType.AuditPause; break;//暂停待办
|
|
// case "Z": aType = ActionType.AuditForward; break;//转发
|
|
// case "J": aType = ActionType.AuditHand; break;//转交
|
|
// }
|
|
// }
|
|
// Enum.TryParse<ActionType>(AcType.ToString(), out aType);
|
|
// return aType;
|
|
// return AcType;
|
|
// }
|
|
// set
|
|
// {
|
|
// AcType = value;
|
|
// }
|
|
//}
|
|
|
|
public string AuditDirection
|
|
{
|
|
get
|
|
{
|
|
return stateEn == null ? null : (stateEn.Direction) as string;
|
|
}
|
|
set
|
|
{
|
|
AuditDirection = value;
|
|
}
|
|
}
|
|
|
|
|
|
private string _moduleId;
|
|
/// <summary>
|
|
/// 模块编号
|
|
/// </summary>
|
|
public string ModuleId
|
|
{
|
|
get
|
|
{
|
|
return _moduleId;
|
|
}
|
|
set
|
|
{
|
|
_moduleId = value;
|
|
}
|
|
}
|
|
|
|
|
|
private int _contextMenuId;
|
|
/// <summary>
|
|
/// 右键菜单id
|
|
/// </summary>
|
|
public int ContextMenuId
|
|
{
|
|
get
|
|
{
|
|
return _contextMenuId;
|
|
}
|
|
set
|
|
{
|
|
_contextMenuId = value;
|
|
}
|
|
}
|
|
|
|
private string _idValue;
|
|
public string IdValue
|
|
{
|
|
get
|
|
{
|
|
return _idValue;
|
|
}
|
|
set
|
|
{
|
|
_idValue = value;
|
|
}
|
|
}
|
|
private string _identityId;
|
|
public string IdentityId
|
|
{
|
|
get
|
|
{
|
|
return _identityId;
|
|
}
|
|
set
|
|
{
|
|
_identityId = value;
|
|
}
|
|
}
|
|
|
|
private string _loginid;
|
|
public string LoginId
|
|
{
|
|
get
|
|
{
|
|
return _loginid;
|
|
}
|
|
set
|
|
{
|
|
_loginid = value;
|
|
}
|
|
}
|
|
|
|
private string _loginName;
|
|
public string LoginName
|
|
{
|
|
get
|
|
{
|
|
return _loginName;
|
|
}
|
|
set
|
|
{
|
|
_loginName = value;
|
|
}
|
|
}
|
|
|
|
private string _password;
|
|
public string Password
|
|
{
|
|
get
|
|
{
|
|
return _password;
|
|
}
|
|
set
|
|
{
|
|
_password = value;
|
|
}
|
|
}
|
|
|
|
private Hashtable _masterData;
|
|
/// <summary>
|
|
/// 主表数据,包括基础档案,单据的主表
|
|
/// </summary>
|
|
public Hashtable MasterData
|
|
{
|
|
get
|
|
{
|
|
return _masterData;
|
|
}
|
|
set
|
|
{
|
|
_masterData = value;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|