/// <summary> /// 回退流消息 /// </summary> /// <param name="message">消息内容</param> /// <returns>操作是否成功的标志</returns> public bool RebackFlowMessage(string billNo, string message) { if (m_billType == null || m_billType == "") { m_billType = GetBillType(billNo); } Debug.Assert(!GlobalObject.GeneralFunction.IsNullOrEmpty(m_billType), "单据类别不能为空"); Debug.Assert(!GlobalObject.GeneralFunction.IsNullOrEmpty(billNo), "单据号不能为空"); Debug.Assert(!GlobalObject.GeneralFunction.IsNullOrEmpty(message), "消息不能为空"); try { Flow_BillFlowMessage msg = GetMessage(billNo); if (msg != null) { m_billFlowMsg.RebackMessage(BasicInfo.LoginID, msg.序号, message); SendFinishedFlagToMessagePromptForm(billNo); } return(true); } catch (Exception exce) { m_logManagement.WriteException(exce.Message + "\t\r" + exce.StackTrace, out m_error); return(false); } }
/// <summary> /// 回退流消息 /// </summary> /// <param name="msgContent">消息内容</param> void RebackFlowMessage(string msgContent) { try { Flow_BillFlowMessage msg = m_billFlowMsg.GetMessage(BasicInfo.LoginID, labelTitle.Text, txtBill_ID.Text); if (msg == null) { return; } m_billFlowMsg.RebackMessage(BasicInfo.LoginID, msg.序号, msgContent); SendFinishedFlagToMessagePromptForm(txtBill_ID.Text); } catch (Exception exce) { Console.WriteLine(exce.Message); } }