Ejemplo n.º 1
0
        /// <summary>
        /// 清除信息
        /// </summary>
        /// <param name="empId"></param>
        public static void ClearMsgsByEmpID_(int empId)
        {
            System.Web.HttpContext.Current.Application.Lock();
            Msgs msgs = (Msgs)System.Web.HttpContext.Current.Application["WFMsgs"];

            msgs.ClearByEmpId_del(empId);
            System.Web.HttpContext.Current.Application.UnLock();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 清除工作人员信息
        /// </summary>
        /// <param name="empId"></param>
        public void ClearByEmpId_del(int empId)
        {
            return;

            Msgs ens = this.GetMsgsByEmpID_del(empId);

            foreach (Msg msg in ens)
            {
                this.Remove(msg);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// sss
        /// </summary>
        /// <param name="empId"></param>
        /// <returns></returns>
        public static Msgs GetMsgsByEmpID_del(int empId)
        {
            Msgs msgs = (Msgs)System.Web.HttpContext.Current.Application["WFMsgs"];

            if (msgs == null)
            {
                msgs = new Msgs();
                System.Web.HttpContext.Current.Application["WFMsgs"] = msgs;
            }
            return(msgs.GetMsgsByEmpID_del(empId));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 安工作ID 清除消息。
        /// </summary>
        /// <param name="workId"></param>
        public void ClearByWorkID(Int64 workId)
        {
            return;

            Msgs ens = this.GetMsgsByWorkID(workId);

            foreach (Msg msg in ens)
            {
                this.Remove(msg);
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// sss
        /// </summary>
        /// <param name="empId"></param>
        /// <returns></returns>
        public Msgs GetMsgsByEmpID_del(int empId)
        {
            //return ;
            Msgs ens = new Msgs();

            foreach (Msg msg in this)
            {
                if (msg.ToEmpId == empId)
                {
                    ens.AddMsg(msg);
                }
            }
            return(ens);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 删除工作by工作ID
        /// </summary>
        /// <param name="workId"></param>
        public static void DeleteByWorkID(Int64 workId)
        {
            System.Web.HttpContext.Current.Application.Lock();
            Msgs msgs = (Msgs)System.Web.HttpContext.Current.Application["WFMsgs"];

            if (msgs == null)
            {
                msgs = new Msgs();
                System.Web.HttpContext.Current.Application["WFMsgs"] = msgs;
            }
            // 清除全部的工作ID=workid 的消息。
            msgs.ClearByWorkID(workId);
            System.Web.HttpContext.Current.Application.UnLock();
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 清除工作人员信息
        /// </summary>
        /// <param name="workId"></param>
        /// <returns></returns>
        public Msgs GetMsgsByWorkID(Int64 workId)
        {
            return(null);

            Msgs ens = new Msgs();

            foreach (Msg msg in this)
            {
                if (msg.WorkID == workId)
                {
                    ens.AddMsg(msg);
                }
            }
            return(ens);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 增加信息
        /// </summary>
        /// <param name="wls">工作者集合</param>
        /// <param name="flowName">流程名称</param>
        /// <param name="nodeName">节点名称</param>
        /// <param name="title">标题</param>
        public static void AddMsgs(GenerWorkerLists wls, string flowName, string nodeName, string title)
        {
            return;

            System.Web.HttpContext.Current.Application.Lock();
            Msgs msgs = (Msgs)System.Web.HttpContext.Current.Application["WFMsgs"];

            if (msgs == null)
            {
                msgs = new Msgs();
                System.Web.HttpContext.Current.Application["WFMsgs"] = msgs;
            }
            // 清除全部的工作ID=workid 的消息。
            msgs.ClearByWorkID(wls[0].GetValIntByKey("WorkID"));
            foreach (GenerWorkerList wl in wls)
            {
                if (wl.FK_Emp == WebUser.No)
                {
                    continue;
                }
                //msgs.AddMsg(wl.WorkID,wl.FK_Node,wl.FK_Emp,"来自流程["+flowName+"]节点["+nodeName+"]工作节点标题为["+title+"]的消息。");
            }
            System.Web.HttpContext.Current.Application.UnLock();
        }