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; /// /// 本次操作的标识 /// public string client = "cs"; /// /// 本次操作的唯一键 /// public String Id { get; private set; } /// /// 此次事件类型 /// public OperateEvent OperEvent { get; set; } /// /// 操作类型 /// 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(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; /// /// 模块编号 /// public string ModuleId { get { return _moduleId; } set { _moduleId = value; } } private int _contextMenuId; /// /// 右键菜单id /// 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; /// /// 主表数据,包括基础档案,单据的主表 /// public Hashtable MasterData { get { return _masterData; } set { _masterData = value; } } } }