private void GenToolRorrRetRecord(ToolsState stateOfTool, string strTime, string strEpc, string strToolType, string strToolName, string strToolID) { // 记录 和 事件显示 commonCls.NewToolBorrowRet(stateOfTool, strTime, strEpc, strToolType, strToolName, strToolID, strOpenUser); if (NewEventShowEvent != null) { string strContent = ""; if (stateOfTool == ToolsState.借出) { strContent = stateOfTool.ToString(); } else if (stateOfTool == ToolsState.在库) { strContent = EventContent.归还.ToString(); } NewEventShowEvent(new NewEventEventArgs(EventType.工具借还, strToolID, strContent, strOpenUser, "", DateTime.Now)); } }