/// <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)); }
/// <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); }
/// <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); }
/// <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); }
/// <summary> /// 事件定时触发 /// </summary> /// <param name="strEventXml"></param> public void SaveEventData(string strEventXml) { Record.WriteLogFunction("SaveEventData()strEventXml:" + strEventXml + ""); EngineServicesBLL bll = new EngineServicesBLL(); bll.SaveEventData(strEventXml); }
/// <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); }
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)); }
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); }
/// <summary> /// 获取消息接口(老接口) /// </summary> /// <param name="strUserID">接收用户</param> /// <param name="strStatus">状态(Open,Close)</param> /// <param name="iTop">条目</param> /// <returns></returns> public List <T_FLOW_ENGINENOTES> EngineNotes(string strUserID, string strStatus, int iTop) { Record.WriteLogFunction("EngineNotes()strUserID:" + strUserID + "strStatus:" + strStatus + "iTop:" + iTop + ""); EngineServicesBLL bll = new EngineServicesBLL(); return(bll.EngineNotes(strUserID, strStatus, iTop)); }
/// <summary> /// 取消事件定时 /// </summary> /// <param name="strApplicationOrderCode">业务系统Guid</param> /// <returns></returns> public bool CancelEventTriggerData(string strApplicationOrderCode) { Record.WriteLogFunction("CancelEventTriggerData()strApplicationOrderCode:" + strApplicationOrderCode + ""); EngineServicesBLL bll = new EngineServicesBLL(); return(bll.CancelEventTriggerData(strApplicationOrderCode)); }
/// <summary> /// /// </summary> /// <param name="orderNodeCode">OA_d967d709-405c-4aa6-8654-ce16ad729365</param> /// <returns></returns> public T_FLOW_ENGINEMSGLIST PendingDetailTasksByOrderNodeCodeForMobile(string orderNodeCode) { Record.WriteLogFunction("PendingDetailTasksByOrderNodeCodeForMobile()orderNodeCode:" + orderNodeCode + ""); EngineServicesBLL bll = new EngineServicesBLL(); return(bll.PendingDetailTasksByPhone(orderNodeCode)); }
/// <summary> /// 待办任务细数据(带业务数据字段) /// </summary> /// <param name="msgParams"></param> /// <returns></returns> public T_FLOW_ENGINEMSGLIST PendingDetailByID(string strMsgID) { Record.WriteLogFunction("PendingDetailByID()strMsgID:" + strMsgID + ""); EngineServicesBLL bll = new EngineServicesBLL(); return(bll.PendingDetailByID(strMsgID)); }
/// <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)); }
/// <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); }
/// <summary> /// 手机版待办任务主数据(分页)kangxf /// </summary> /// <param name="msgParams"></param> /// <param name="rowCount"></param> /// <param name="pageCount"></param> /// <returns></returns> public List <T_FLOW_ENGINEMSGLIST> PendingTasksParmsPageIndexForMobile(MsgParms msgParams, ref int rowCount, ref int pageCount) { //Record.WriteLogFunction("PendingTasksParmsPageIndexForMobile()msgParams:" + ss + "rowCount:" + rowCount + "pageCount:" + pageCount + ""); //日志内容:PendingTasksParmsPageIndexForMobile()msgParams:BeginDate:0001-1-1 0:00:00EndDate:0001-1-1 0:00:00LastDay:0MessageBody:MessageId:PageIndex:1PageSize:10000Status:close //Top:0UserID:1bc4b78a-d178-4499-b948-16e18a9d73d3rowCount:0pageCount:0 EngineServicesBLL bll = new EngineServicesBLL(); return(bll.PendingTasksParmsPageIndexForMobile(msgParams, ref rowCount, ref pageCount)); }
/// <summary> /// 平台待办任务分页数据 kangxf /// </summary> /// <param name="msgParams"></param> /// :BeginDate:0001-1-1 0:00:00||EndDate:0001-1-1 0:00:00||LastDay:0||MessageBody:||MessageId:|| /// PageIndex:1||PageSize:14||Status:open||Top:0||UserID:f1a472dc-d1be-4a06-a52e-a2b296397704||IsAutofresh:True||HaveNewTask:False /// <param name="IsAutofresh"></param> /// <param name="HaveNewTask"></param> /// <param name="rowCount"></param> /// <param name="pageCount"></param> /// <returns></returns> public List <T_FLOW_ENGINEMSGLIST> PendingTasksParmsPageIndex(MsgParms msgParams, ref bool IsAutofresh, ref bool HaveNewTask, 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 + "||IsAutofresh:" + IsAutofresh + "||HaveNewTask:" + HaveNewTask + ""); EngineServicesBLL bll = new EngineServicesBLL(); return(bll.PendingTasksParmsPageIndex(msgParams, ref IsAutofresh, ref HaveNewTask, ref rowCount, ref pageCount)); }
/// <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)); }
/// <summary> /// 根据MessageId获取上一条、下一条记录 /// </summary> /// <param name="msgParms"></param> /// <returns></returns> public Dictionary <string, T_FLOW_ENGINEMSGLIST> GetPendingTaskPrevNext(MsgParms msgParams) { 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("GetPendingTaskPrevNext()msgParams:" + ss + ""); EngineServicesBLL bll = new EngineServicesBLL(); return(bll.GetPendingTaskPrevNext(msgParams)); }
/// <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); }
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); } }
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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
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); } }
/// <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); }
/// <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)); }
/// <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); } }
/// <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); } }