public JsonResult GetActualsAssociateById(int Id) { ActualsAssociate actualsAssociate = actualsAssociateBLL.Get("Id", Id); JsonResult json = new JsonResult(actualsAssociate); return(json); }
public string UpdateActualsAssociate(ActualsAssociate actualsAssociate) { actualsAssociate.CreatedUser = UserCookies.AdminName; actualsAssociate.CreatedTime = DateTime.Now; string result = actualsAssociateBLL.UpdateActualsAssociate(actualsAssociate); return(result); }
public string InsertActualsAssociate(ActualsAssociate actualsAssociate) { string result = ""; actualsAssociate.CreatedUser = UserCookies.AdminName; actualsAssociate.CreatedTime = DateTime.Now; result = actualsAssociateBLL.InsertActualsAssociate(actualsAssociate); return(result); }
public int DeleteActualsAssociate(int Id) { ActualsAssociate actualsAssociate = new ActualsAssociate(); actualsAssociate.Id = Id; int result = actualsAssociateBLL.Delete(actualsAssociate); //return new RedirectResult("/actualsAssociate/actualsAssociatelist.aspx"); return(result); }
public string InsertActualsAssociate(ActualsAssociate actualsAssociate) { SqlParameter[] commandParameters = SqlHelperParameterCache.GetSpParameterSet(SqlConnectFactory.CMS, up_ActualsAssociateInsert); commandParameters[0].Value = actualsAssociate.ActualsCode; commandParameters[1].Value = actualsAssociate.ActualsName; commandParameters[2].Value = actualsAssociate.StockCode; commandParameters[3].Value = actualsAssociate.StockName; commandParameters[4].Value = actualsAssociate.TypeId; commandParameters[5].Value = actualsAssociate.Exchange; commandParameters[6].Value = actualsAssociate.CreatedUser; commandParameters[7].Value = DateTime.Now; int result = SqlHelper.ExecuteNonQuery(SqlConnectFactory.CMS, CommandType.StoredProcedure, up_ActualsAssociateInsert, commandParameters); return(commandParameters[8].Value.ToString()); }
/// <summary> /// 删除单条数据 /// </summary> /// <param name="obj"></param> /// <returns></returns> public int Delete(ActualsAssociate obj) { return(dal.Delete(obj)); }
/// <summary> /// 更新单条数据 /// </summary> /// <param name="obj"></param> /// <returns></returns> public int Update(ActualsAssociate obj) { return(dal.Update(obj)); }
/// <summary> /// 添加单条数据 /// </summary> /// <param name="obj"></param> /// <returns></returns> public int Add(ActualsAssociate obj) { return(dal.Add(obj)); }
public string UpdateActualsAssociate(ActualsAssociate actualsAssociate) { return(dal.UpdateActualsAssociate(actualsAssociate)); }
public string InsertActualsAssociate(ActualsAssociate actualsAssociate) { return(dal.InsertActualsAssociate(actualsAssociate)); }