/// <summary>
 /// 新增未提交的代办
 /// </summary>
 /// <param name="dask"></param>
 /// <returns></returns>
 public string AddTask(T_WF_DOTASK dask)
 {
     try
     {
         Tracer.Debug("AddTask()开始调用");
         EngineServicesBLL bll = new EngineServicesBLL();
         bll.AddTask(dask);
         return "1";
     }
     catch (Exception ex)
     {
         Tracer.Debug("AddTask()" + ex.Message);
         return ex.Message;
     }
 }
Пример #2
0
        taskResult AjaxGetTaskList(string UserID, string Status, int PageIndex, string MessageBody, string IsAutofresh)
        {
            taskResult result = new taskResult();
            result.IsSuccess = "1";
            EngineServicesBLL bll = new EngineServicesBLL();
            MsgParms msgParams = new MsgParms();
            msgParams.BeginDate = DateTime.MinValue;
            msgParams.EndDate = DateTime.MinValue;
            msgParams.MessageBody = MessageBody;
            msgParams.PageIndex = PageIndex;
            msgParams.Status = Status;
            msgParams.UserID = UserID;
            msgParams.PageSize = 20;//写死显示20条
            msgParams.Top = 20;//写死显示20条
            msgParams.LastDay = 30;//参数最近30天,然而并没有什么卵用
            if (!string.IsNullOrEmpty(IsAutofresh))//是否自动刷新
            {
                if (IsAutofresh == "0")
                {
                    result.IsAutofresh = false;
                }
                else
                {
                    result.IsAutofresh = true;
                }
            }
            else
            {
                result.IsAutofresh = true;
            }

            result.ObjData = bll.PendingTasksParmsPageIndex(msgParams, ref result.IsAutofresh, ref result.HaveNewTask, ref result.rowCount, ref result.pageCount);
            if(result.ObjData==null)
            {
                result.IsSuccess = "0";
            }
            return result;
        }
Пример #3
0
 /// <summary>
 /// 删除待办(删除该系统中指定的单据)
 /// </summary>
 /// <param name="strSystemCode"></param>
 /// <param name="strFormID"></param>        
 public void TaskDelete(string strSystemCode, string strFormID, string strReceiveID)
 {
     Record.WriteLogFunction("TaskDelete()strSystemCode:" + strSystemCode + "strFormID:" + strFormID + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.TaskDelete(strSystemCode, strFormID, strReceiveID);
 }
Пример #4
0
        /// <summary>
        /// 待办任务主数据(分页)
        /// </summary>
        /// <param name="msgParams"></param>
        /// <returns></returns>      
        public List<T_FLOW_ENGINEMSGLIST> PendingTasksParmsPageIndex(MsgParms msgParams, ref int rowCount, ref int pageCount)
        {

            string ss = "测试一:BeginDate:" + msgParams.BeginDate + "||EndDate:" + msgParams.EndDate + "||LastDay:" + msgParams.LastDay;
            ss += "||MessageBody:" + msgParams.MessageBody + "||MessageId:" + msgParams.MessageId + "||PageIndex:" + msgParams.PageIndex;
            ss += "||PageSize:" + msgParams.PageSize + "||Status:" + msgParams.Status + "||Top:" + msgParams.Top;
            ss += "||UserID:" + msgParams.UserID + "";
            Record.WriteLogFunction("PendingTasksParmsPageIndex()msgParams:" + ss + "||rowCount:" + rowCount + "||pageCount:" + pageCount + "");
            EngineServicesBLL bll = new EngineServicesBLL();
            return bll.PendingTasksParmsPageIndex(msgParams, ref rowCount, ref pageCount);
        }
Пример #5
0
 /// <summary>
 /// 待办任务关闭
 /// </summary>
 /// <param name="strSystemCode">系统代号</param>
 /// <param name="List"></param>       
 public void MsgListClose(string strSystemCode, List<ReceiveUserForm> List)
 {
     string ss = "";
     foreach (ReceiveUserForm list in List)
     {
         ss += "FormID:" + list.FormID + "ReceiveUser:"******"MsgListClose()strSystemCode:" + strSystemCode + "List:" + ss + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.MsgListClose(strSystemCode, List);
 }
Пример #6
0
 public T_WF_DOTASK GetDoTaskEntity(string orderID, string receiveUserID)
 {
     try
     {
         EngineServicesBLL bll = new EngineServicesBLL();
         return bll.GetDoTaskEntity(orderID, receiveUserID);
     }
     catch (Exception ex)
     {
         Record.WriteLogFunction("GetDoTaskEntity()orderID:" + orderID + "receiveUserID:" + receiveUserID + "||Message:" + ex.Message + "||StackTrace:" + ex.StackTrace);
         return null;
     }
 }
Пример #7
0
 public List<UserInfo> ReturnUserInfoDask(string companyID, string orderID, string systemCode, string modelCode, string modelName, string strXML, MsgType msgType)
 {
     Record.WriteLogFunction("ReturnUserInfoDask()modelCode||" + modelCode);
     EngineServicesBLL bll = new EngineServicesBLL();
     return bll.ReturnUserInfoDask(companyID, orderID, systemCode, modelCode, modelName, strXML, msgType);
 }
Пример #8
0
 /// <summary>
 /// 新增定时触发
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public string WFAddTimingTrigger(T_WF_TIMINGTRIGGERACTIVITY entity)
 {
     try
     {
         Record.WriteLogFunction("WFAddTimingTrigger()开始调用");
         EngineServicesBLL bll = new EngineServicesBLL();
         bll.AddTimingTrigger(entity);
         return "1";
     }
     catch (Exception ex)
     {
         Record.WriteLogFunction("WFAddTimingTrigger()" + ex.Message);
         return ex.Message;
     }
 }
Пример #9
0
 /// <summary>
 /// 删除定时触发
 /// </summary>
 /// <param name="orderID"></param>
 public void DeleteTrigger(string orderID)
 {
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.DeleteTrigger(orderID);
 }
Пример #10
0
 /// <summary>
 /// 流程触发接口(流程操作完成后调用,触发待办事项)
 /// </summary>
 /// <param name="strFlowMessage">流程信息数据</param>
 /// <param name="strBOObject">业务元数据</param>
 /// <returns></returns>
 public bool SaveFlowTriggerData(string strFlowMessage, string strBOObject)
 {
     Record.WriteLogFunction("SaveFlowTriggerData():strFlowMessage:" + strFlowMessage + "strBOObject:" + strBOObject + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     return bll.SaveFlowTriggerData(strFlowMessage, strBOObject);
 }
Пример #11
0
 /// <summary>
 /// 发送待办
 /// </summary>
 /// <param name="ReceiveUserID"></param>
 /// <param name="strFormID"></param>
 /// <param name="MsgContent"></param>
 /// <param name="ModelCode"></param>
 /// <param name="strXml"></param>
 /// <param name="strNewGuid"></param>       
 public void AppMsgTrigger(string ReceiveUserID, string strFormID, string MsgContent, string ModelCode, string strXml, string strNewGuid)
 {
     Record.WriteLogFunction("AppMsgTrigger()ReceiveUserID:" + ReceiveUserID + "strFormID:" + strFormID + "MsgContent:" + MsgContent + "strXml:" + strXml + "strNewGuid:" + strNewGuid + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.AppMsgTrigger(ReceiveUserID, strFormID, MsgContent, ModelCode, strXml, strNewGuid);
 }
Пример #12
0
 /// <summary>
 /// 消息直接关闭
 /// </summary>
 /// <param name="strMessageID"></param>
 /// <param name="strEventID"></param>       
 public void MsgClose(string strMessageID, string strEventID)
 {
     Record.WriteLogFunction("MsgClose()strMessageID:" + strMessageID + "strEventID:" + strEventID + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.MsgClose(strMessageID, strEventID);
 }
Пример #13
0
 /// <summary>
 /// 发送待办(默认消息需要公司ID)
 /// </summary>
 /// <param name="UserAndForm">接收用户与FormID</param>
 /// <param name="SystemCode">系统代号</param>
 /// <param name="ModelCode">模块代号</param>
 /// <param name="strCompanyID">公司ID</param>
 /// <param name="strXml">业务数据XML</param>
 /// <param name="msgType">消息类型</param>
 public void ApplicationEngineTrigger(List<CustomUserMsg> UserAndForm, string SystemCode, string ModelCode, string strCompanyID, string strXml, MsgType msgType)
 {
     string ss = "";
     foreach (CustomUserMsg list in UserAndForm)
     {
         ss += "FormID:" + list.FormID + "UserID:" + list.UserID;
     }
     Record.WriteLogFunction("ApplicationEngineTrigger()UserAndForm:" + ss + "SystemCode:" + SystemCode + "ModelCode:" + ModelCode + "strCompanyID:" + strCompanyID + "strXml:" + strXml + "msgType:" + msgType.ToString() + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.ApplicationEngineTrigger(UserAndForm, SystemCode, ModelCode, strCompanyID, strXml, msgType);
 }
Пример #14
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="strModelCode"></param>
 /// <param name="fromID"></param>
 public void ClosedDoTaskFromID(string strModelCode, string fromID)
 {
     Record.WriteLogFunction("ClosedDoTaskFromID()strModelCode:" + strModelCode + "fromID:" + fromID + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.ClosedDoTaskFromID(strModelCode, fromID);
 }
Пример #15
0
 /// <summary>
 /// 代办任务关闭
 /// </summary>
 /// <param name="listOrderID"></param>
 /// <param name="strModelCode"></param>
 /// <param name="strReceiveUser"></param>
 public void CloseDoTask(List<string> listOrderID, string strModelCode, string strReceiveUser)
 {
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.ClosedDoTaskOrderID(listOrderID, strModelCode, strReceiveUser);
 }
Пример #16
0
 /// <summary>
 /// 待办任务模块关闭
 /// </summary>
 /// <param name="strModelCode">模块代号</param>
 /// <param name="strReceiveUser">接收用户</param>       
 public void ModelMsgClose(string strModelCode, string strReceiveUser)
 {
     Record.WriteLogFunction("ModelMsgClose()strModelCode:" + strModelCode + "strReceiveUser:"******"");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.ModelMsgClose(strModelCode, strReceiveUser);
 }
Пример #17
0
 /// <summary>
 /// 流程撤消
 /// </summary>
 /// <param name="strSystemCode"></param>
 /// <param name="strModelCode"></param>
 /// <param name="strFormID"></param>
 /// <param name="strAppXml"></param>
 /// <param name="msgType"></param>    
 public bool FlowCancel(string strFlowXML, string strAppXml)
 {
     Record.WriteLogFunction("FlowCancel():strFlowXML:" + strFlowXML + "strAppXml:" + strAppXml + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     return bll.FlowCancel(strFlowXML, strAppXml);
 }
Пример #18
0
 /// <summary>
 /// 发送待办
 /// </summary>
 /// <param name="UserAndForm">接收用户与FormID</param>
 /// <param name="SystemCode">系统代号</param>
 /// <param name="Content">消息内容</param>        
 public void ApplicationNotesTrigger(List<CustomUserMsg> UserAndForm, string SystemCode, string Content)
 {
     string ss = "";
     foreach (CustomUserMsg list in UserAndForm)
     {
         ss += "FormID:" + list.FormID + "UserID:" + list.UserID;
     }
     Record.WriteLogFunction("ApplicationNotesTrigger()UserAndForm:" + ss + "SystemCode:" + SystemCode + "Content:" + Content + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.ApplicationNotesTrigger(UserAndForm, SystemCode, Content);
 }
Пример #19
0
        //public Dictionary<string, TaskCacheEntity> ListCache()
        //{
        //    Record.WriteLogFunction("ListCache()");
        //    //Dictionary<string, CacheObject<TaskCacheEntity>> dic = TaskCache.ListCacheInfo();
        //    Dictionary<string, TaskCacheEntity> list = new Dictionary<string, TaskCacheEntity>();
        //    //foreach (var v in dic)
        //    //{
        //    //    list.Add(v.Key, v.Value.Object);
        //    //}
        //    return list;
        //}
        //public void RemoveCache()
        //{
        //    Record.WriteLogFunction("RemoveCache()");
        //    //TaskCache.RemoveAllCache();
        //}
        #endregion

        #region 定时触发的接口

        /// <summary>
        /// 新增消息(2013-05-06加入新的方法)
        /// </summary>
        /// <param name="list">UserID|FromID XML</param>
        /// <param name="SystemCode">系统代码</param>
        /// <param name="ModelCode">模块代码</param>
        public string SendTaskMessage(List<CustomUserMsg> list, string SystemCode, string ModelCode)
        {
            try
            {
                Record.WriteLogFunction("开始调用SendTaskMessage()ModelCode:" + ModelCode + "");
                EngineServicesBLL bll = new EngineServicesBLL();
                bll.SendTaskMessage(list, SystemCode, ModelCode);
                return "1";
            }
            catch (Exception ex)
            {
                Record.WriteLogFunction("新增方法SendTaskMessage():" + ex.Message + "");
                return ex.Message;
            }
        }
Пример #20
0
 /// <summary>
 /// 自定义流程列表
 /// </summary>
 /// <param name="pageIndex"></param>
 /// <param name="pageSize"></param>
 /// <param name="sort"></param>
 /// <param name="filterString"></param>
 /// <param name="paras"></param>
 /// <param name="pageCount"></param>
 /// <param name="strCompanyID"></param>
 /// <returns></returns>       
 public List<T_FLOW_CUSTOMFLOWDEFINE> CustomFlowDefineList(int pageIndex, int pageSize, string sort, string filterString, IList<object> paras, ref int pageCount, string strCompanyID)
 {
     string ww = "";
     foreach (object s in paras)
     {
         ww += s.ToString();
     }
     Record.WriteLogFunction("CustomFlowDefineList()pageIndex:" + pageIndex + "pageSize:" + pageSize + "sort:" + sort + "filterString:" + filterString + "strCompanyID:" + strCompanyID + "paras:" + ww + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     return bll.CustomFlowDefineList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, strCompanyID);
 }
Пример #21
0
 /// <summary>
 /// 新增未提交的代办
 /// </summary>
 /// <param name="dask"></param>
 /// <returns></returns>
 public string AddTask(T_WF_DOTASK dask)
 {
     try
     {
         Record.WriteLogFunction("AddTask()开始调用");
         EngineServicesBLL bll = new EngineServicesBLL();
         bll.AddTask(dask);
         return "1";
     }
     catch (Exception ex)
     {
         Record.WriteLogFunction("AddTask()" + ex.Message);
         return ex.Message;
     }
 }
Пример #22
0
 /// <summary>
 /// 发起自定义流程(任务系统)
 /// </summary>
 /// <param name="define"></param>       
 public void CallCustomFlowTrigger(T_FLOW_CUSTOMFLOWDEFINE define)
 {
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.CallCustomFlowTrigger(define);
 }
Пример #23
0
 /// <summary>
 /// 事件定时触发
 /// </summary>
 /// <param name="strEventXml"></param>       
 public void SaveEventData(string strEventXml)
 {
     Record.WriteLogFunction("SaveEventData()strEventXml:" + strEventXml + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.SaveEventData(strEventXml);
 }
Пример #24
0
 /// <summary>
 /// 发送邮件
 /// </summary>
 /// <param name="mailParams"></param>       
 public void SendMail(List<MailParams> mailParams)
 {
     string ss = "";
     foreach (MailParams list in mailParams)
     {
         ss += "MailContent:" + list.MailContent + "MailTitle:" + list.MailTitle + "ReceiveUserMail:" + list.ReceiveUserMail;
     }
     Record.WriteLogFunction("SendMail()mailParams:" + ss + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.SendMail(mailParams);
 }
Пример #25
0
 public void AddDoDask(string companyID, string orderID, string systemCode, string modelCode, string modelName, string strXML, MsgType msgType)
 {
     Record.WriteLogFunction("AddDoDask()modelCode||" + modelCode);
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.AddDoDask(companyID, orderID, systemCode, modelCode, modelName, strXML, msgType);
 }
Пример #26
0
 /// <summary>
 /// 消息触发(任务,任务汇报)
 /// </summary>      
 public void MsgTrigger(string[] recevieUser, string SystemCode, string MsgKey, string ID, string strXml)
 {
     string ss = "";
     for (int i = 0; i < recevieUser.Length - 1; i++)
     {
         ss += "recevieUser:"******"";
     }
     Record.WriteLogFunction("MsgTrigger()SystemCode:" + SystemCode + "MsgKey:" + MsgKey + "ID" + ID + "strXml" + strXml + "recevieUser" + recevieUser + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.MsgTrigger(recevieUser, SystemCode, MsgKey, ID, strXml);
 }
Пример #27
0
 /// <summary>
 /// 发送待办(李国艺要求可以同一张单可以发送给多个人)
 /// </summary>
 /// <param name="UserAndForm">接收用户与FormID</param>
 /// <param name="SystemCode">系统代号</param>
 /// <param name="ModelCode">模块代号</param>
 /// <param name="strXml">业务数据XML<</param>
 /// <param name="msgType">消息类型</param>     
 public void ApplicationMsgTriggerNew(List<CustomUserMsg> UserAndForm, string companyID, string SystemCode, string ModelCode, string strXml, MsgType msgType)
 {
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.ApplicationMsgTriggerNew(UserAndForm, companyID, SystemCode, ModelCode, strXml, msgType);
 }
Пример #28
0
 /// <summary>
 /// 删除待办(删除该系统指定的接收用户单据)
 /// </summary>
 /// <param name="UserAndForm"></param>
 /// <param name="strSystemCode"></param>       
 public void TaskDelete(List<CustomUserMsg> UserAndForm, string strSystemCode)
 {
     string ss = "";
     foreach (CustomUserMsg list in UserAndForm)
     {
         ss += "FormID:" + list.FormID + "UserID:" + list.UserID;
     }
     Record.WriteLogFunction("TaskDelete()UserAndForm:" + ss + "strSystemCode:" + strSystemCode + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.TaskDelete(UserAndForm, strSystemCode);
 }
Пример #29
0
 public bool SendMailParam(List<MailParams> mailParams, string mailType, string mailParameter)
 {
     try
     {
         EngineServicesBLL bll = new EngineServicesBLL();
         return bll.SendMailParam(mailParams, mailType, mailParameter);
     }
     catch (Exception ex)
     {
         Record.WriteLogFunction("SendMailParam()Exception:" + ex.Message + "");
         return false;
     }
 }
Пример #30
0
 public void NotesSend(List<ReceiveUserAndContent> List, string SystemCode, string strFormID)
 {
     string ss = "";
     foreach (ReceiveUserAndContent list in List)
     {
         ss += "Content:" + list.Content + "ReceiveUser:"******"NotesSend()SystemCode:" + SystemCode + "List:" + ss + "strFormID" + strFormID + "");
     EngineServicesBLL bll = new EngineServicesBLL();
     bll.NotesSend(List, SystemCode, strFormID);
 }