/// <summary> /// 添加 /// </summary> /// <param name="model">交流询价实体</param> /// <returns>false:失败 true:成功</returns> public bool Add(EyouSoft.Model.SystemStructure.ExchangeAskPrice model) { if (model == null) { return(false); } return(dal.Add(model)); }
/// <summary> /// 添加 /// </summary> /// <param name="model">询价实体类</param> /// <returns>false:失败 true:成功</returns> public virtual bool Add(EyouSoft.Model.SystemStructure.ExchangeAskPrice model) { DbCommand dc = this._database.GetSqlStringCommand(SQL_ExchangeAskPrice_INSERT); this._database.AddInParameter(dc, "ID", DbType.String, Guid.NewGuid().ToString()); this._database.AddInParameter(dc, "AskCompanyId", DbType.String, model.AskCompanyId); this._database.AddInParameter(dc, "AskOperatorId", DbType.String, model.AskOperatorId); this._database.AddInParameter(dc, "ToCompanyId", DbType.String, model.ToCompanyId); this._database.AddInParameter(dc, "IssueTime", DbType.String, DateTime.Now); return(DbHelper.ExecuteSql(dc, this._database) > 0?true:false); }