示例#1
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);
        }
示例#2
0
        // 1s 冉龙军
        private void btnReviewProcess_Click(object sender, RoutedEventArgs e)
        {
            var ent =from q in  AuditEntityList
                       orderby q.CREATEDATE
                       select q;
            if (ent.Count() > 0)
            {

                if (ent.FirstOrDefault().EDITUSERID == SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID
                    && ent.FirstOrDefault().FLAG == "0")
                {
                    MessageBox.Show("请先审核单据,单据审核完毕后方可进行评分");
                    return;
                }
            }
            Save();
            //关闭打分提醒消息
            SMT.Saas.Tools.EngineWS.EngineWcfGlobalFunctionClient FlowEngine = new SMT.Saas.Tools.EngineWS.EngineWcfGlobalFunctionClient();
            //if (this.RemindGuid == null || this.RemindGuid == "")  
            //{
            //    MessageBox.Show("RemindGuid");
            //}
            //if (this.MessgeID == null && this.MessgeID == "")
            //{
            //    MessageBox.Show("MessgeID");
            //}
            if ((this.RemindGuid != null && this.RemindGuid != "") || (this.MessgeID != null && this.MessgeID != ""))
            {
                //MessageBox.Show("RemindGuid" + RemindGuid + "******" + "MessgeID" + MessgeID);
                FlowEngine.MsgCloseAsync(this.MessgeID, this.RemindGuid);
            }
        }