Ejemplo n.º 1
0
        /// <summary>
        /// 生成待办任务
        /// </summary>
        /// <param name="notifyfeedback"></param>
        private void CreateNotifyTask(T_OA_REQUIREDISTRIBUTE distribute)
        {
            EngineWcfGlobalFunctionClient engClient = new EngineWcfGlobalFunctionClient();

            CustomUserMsg[] cust = new CustomUserMsg[1];
            cust[0] = new CustomUserMsg()
            {
                FormID = distribute.REQUIREDISTRIBUTEID, UserID = distribute.OWNERID
            };
            string strXmlObjectSource = string.Empty;

            strXmlObjectSource = ObjListToXml <T_OA_REQUIREDISTRIBUTE>(distribute, "OA");
            engClient.ApplicationMsgTrigger(cust, "OA", "T_OA_REQUIREDISTRIBUTE", strXmlObjectSource, MsgType.Task);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 生成待办任务
        /// </summary>
        private void CreateNotifyTask(T_OA_DISTRIBUTEUSER notifyfeedback)
        {
            EngineWcfGlobalFunctionClient engClient = new EngineWcfGlobalFunctionClient();

            CustomUserMsg[] cust = new CustomUserMsg[1];
            cust[0] = new CustomUserMsg()
            {
                FormID = notifyfeedback.DISTRIBUTEUSERID,
                UserID = notifyfeedback.OWNERID
            };
            string strXmlObjectSource = string.Empty;

            strXmlObjectSource = ObjListToXml <T_OA_DISTRIBUTEUSER>(notifyfeedback, "OA");
            engClient.ApplicationMsgTrigger(cust, "OA", "T_OA_DISTRIBUTEUSER", strXmlObjectSource, MsgType.Task);
        }
Ejemplo n.º 3
0
        // 1e

        /// <summary>
        /// 设置抽查信息
        /// </summary>
        private void SetRandomScore()
        {
            if (groupPersonList == null || groupPersonList.Count == 0)
                return;

            Random r = new Random();
            //获取随机数
            int i = r.Next(0, groupPersonList.Count);
            //获取抽查人员
            T_HR_RAMDONGROUPPERSON person = groupPersonList[i];

            SMT.Saas.Tools.EngineWS.EngineWcfGlobalFunctionClient engineClient = new SMT.Saas.Tools.EngineWS.EngineWcfGlobalFunctionClient();
            CustomUserMsg userMsg = new CustomUserMsg();
            //KPI记录ID
            userMsg.FormID = KPIRecord.KPIRECORDID;
            userMsg.UserID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
            //用户列表
            ObservableCollection<CustomUserMsg> List = new ObservableCollection<CustomUserMsg>();
            List.Add(userMsg);
            //调用引擎,发起代办任务
            engineClient.ApplicationMsgTriggerAsync(List, "HR", "T_HR_KPIRECORD", Utility.ObjListToXml<T_HR_KPIRECORD>(KPIRecord, "HR"), MsgType.Task);
        }