示例#1
0
        /// <summary>
        /// 修改游轮视频信息,返回1成功,其它失败
        /// </summary>
        /// <param name="info">实体</param>
        /// <returns></returns>
        public int UpdateShiPin(EyouSoft.Model.YlStructure.MShiPinInfo info)
        {
            if (info == null ||
                string.IsNullOrEmpty(info.CompanyId) ||
                string.IsNullOrEmpty(info.OperatorId) ||
                string.IsNullOrEmpty(info.GongSiId) ||
                string.IsNullOrEmpty(info.XiLieId) ||
                string.IsNullOrEmpty(info.ChuanZhiId) ||
                string.IsNullOrEmpty(info.ShiPinId))
            {
                return(0);
            }

            int dalRetCode = dal.UpdateShiPin(info);

            if (dalRetCode == 1)
            {
                SysStructure.BSysLogHandle.Insert("修改游轮视频信息,视频编号:" + info.ShiPinId);
            }
            return(dalRetCode);
        }
示例#2
0
        /*/// <summary>
         * /// 写入游轮目的地信息,返回1成功,其它失败
         * /// </summary>
         * /// <param name="info">实体</param>
         * /// <returns></returns>
         * int InsertMuDiDi(EyouSoft.Model.YlStructure.MMuDiDiInfo info);
         *
         * /// <summary>
         * /// 修改游轮目的地信息,返回1成功,其它失败
         * /// </summary>
         * /// <param name="info">实体</param>
         * /// <returns></returns>
         * int UpdateMuDiDi(EyouSoft.Model.YlStructure.MMuDiDiInfo info);
         * /// <summary>
         * /// 获取游轮目的地信息
         * /// </summary>
         * /// <param name="muDiDiId">目的地编号</param>
         * /// <returns></returns>
         * EyouSoft.Model.YlStructure.MMuDiDiInfo GetMuDiDiInfo(string muDiDiId);
         * /// <summary>
         * /// 删除游轮目的地信息,返回1成功,其它失败
         * /// </summary>
         * /// <param name="companyId">公司编号</param>
         * /// <param name="muDiDiId">目的地编号</param>
         * /// <returns></returns>
         * int DeleteMuDiDi(string companyId, string muDiDiId);
         * /// <summary>
         * /// 获取游轮目的地信息集合
         * /// </summary>
         * /// <param name="companyId">公司编号</param>
         * /// <param name="pageSize">页记录数</param>
         * /// <param name="pageIndex">页序号</param>
         * /// <param name="recordCount">总记录数</param>
         * /// <param name="chaXun">查询</param>
         * /// <returns></returns>
         * IList<EyouSoft.Model.YlStructure.MMuDiDiInfo> GetMuDiDis(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.YlStructure.MMuDiDiChaXunInfo chaXun);*/


        /// <summary>
        /// 写入游轮视频信息,返回1成功,其它失败
        /// </summary>
        /// <param name="info">实体</param>
        /// <returns></returns>
        public int InsertShiPin(EyouSoft.Model.YlStructure.MShiPinInfo info)
        {
            if (info == null ||
                string.IsNullOrEmpty(info.CompanyId) ||
                string.IsNullOrEmpty(info.OperatorId) ||
                string.IsNullOrEmpty(info.GongSiId) ||
                string.IsNullOrEmpty(info.XiLieId) ||
                string.IsNullOrEmpty(info.ChuanZhiId))
            {
                return(0);
            }

            info.ShiPinId  = Guid.NewGuid().ToString();
            info.IssueTime = DateTime.Now;

            int dalRetCode = dal.InsertShiPin(info);

            if (dalRetCode == 1)
            {
                SysStructure.BSysLogHandle.Insert("新增游轮视频信息,视频编号:" + info.ShiPinId);
            }

            return(dalRetCode);
        }