/// <summary> /// 修改游轮系列信息,返回1成功,其它失败 /// </summary> /// <param name="info">实体</param> /// <returns></returns> public int UpdateXiLie(EyouSoft.Model.YlStructure.MXiLieInfo info) { if (info == null || string.IsNullOrEmpty(info.CompanyId) || string.IsNullOrEmpty(info.OperatorId) || string.IsNullOrEmpty(info.GongSiId) || string.IsNullOrEmpty(info.XiLieId)) { return(0); } int dalRetCode = dal.XiLie_CU(info); if (dalRetCode == 1) { SysStructure.BSysLogHandle.Insert("修改游轮系列信息,系列编号:" + info.XiLieId); } return(dalRetCode); }
/// <summary> /// 写入游轮系列信息,返回1成功,其它失败 /// </summary> /// <param name="info">实体</param> /// <returns></returns> public int InsertXiLie(EyouSoft.Model.YlStructure.MXiLieInfo info) { if (info == null || string.IsNullOrEmpty(info.CompanyId) || string.IsNullOrEmpty(info.OperatorId) || string.IsNullOrEmpty(info.GongSiId)) { return(0); } info.IssueTime = DateTime.Now; info.XiLieId = Guid.NewGuid().ToString(); int dalRetCode = dal.XiLie_CU(info); if (dalRetCode == 1) { SysStructure.BSysLogHandle.Insert("新增游轮系列信息,系列编号:" + info.XiLieId); } return(dalRetCode); }