/// <summary> /// 增、改K_ReviewFlowLog表 /// </summary> /// <param Name="tranType">操作类型,NEW=增,EDIT=改</param> /// <param Name="paramsModel"></param> /// <returns>返回大于0的数字操作正常,返回非数字表示操作错误,返回的是系统错误说明</returns> public string Save(string tranType, KingTop.Model.Content.ReviewFlowLog paramsModel) { string isOk = ""; try { SqlParameter returnValue = new SqlParameter("@ReturnValue", SqlDbType.Int, 4); returnValue.Direction = ParameterDirection.Output; string cmdText = "proc_K_ReviewFlowLogSave"; SqlParameter[] paras = new SqlParameter[] { new SqlParameter("tranType", tranType), new SqlParameter("ID", paramsModel.ID), new SqlParameter("Orders", paramsModel.Orders), new SqlParameter("AddMan", paramsModel.AddMan), new SqlParameter("Desc", paramsModel.Desc), new SqlParameter("Notation", paramsModel.Notation), new SqlParameter("IP", paramsModel.IP), new SqlParameter("NodeId", paramsModel.NodeId), new SqlParameter("SiteId", paramsModel.SiteId), new SqlParameter("NewsId", paramsModel.NewsId), new SqlParameter("ModeId", paramsModel.ModeId), new SqlParameter("isSuccess", paramsModel.IsSuccess), returnValue }; SQLHelper.ExecuteNonQuery(SQLHelper.ConnectionStringLocalTransaction, CommandType.StoredProcedure, cmdText, paras); isOk = returnValue.Value.ToString(); } catch (Exception ex) { isOk = ex.Message; } return(isOk); }
/// <summary> /// 增、改K_ReviewFlowLog表 /// </summary> /// <param name="tranType">操作类型,NEW=增,EDIT=改</param> /// <param name="RevModel"></param> /// <returns>返回大于0的数字操作正常,返回非数字表示操作错误,返回的是系统错误说明</returns> public string Save(string trantype, KingTop.Model.Content.ReviewFlowLog revModel) { return(dal.Save(trantype, revModel)); }