Пример #1
0
        /// <summary>
        /// 更新票状态
        /// </summary>
        /// <param name="pricesID">价格编号</param>
        ///  <param name="trafficId">交通编号</param>
        /// <param name="status">票状态</param>
        /// <returns>true 成功 false 失败</returns>
        public bool UpdatePricesStatus(string pricesID, int trafficId, EyouSoft.Model.EnumType.PlanStructure.TicketStatus status)
        {
            DbCommand cmd = this._db.GetSqlStringCommand(SQL_TRAFFIC_UPDATEPRICESSTATUS);

            this._db.AddInParameter(cmd, "PricesID", DbType.String, pricesID);
            this._db.AddInParameter(cmd, "Status", DbType.Byte, (int)status);
            this._db.AddInParameter(cmd, "TrafficId", DbType.Int32, trafficId);
            return(DbHelper.ExecuteSql(cmd, this._db) > 0 ? true : false);
        }
Пример #2
0
        /// <summary>
        /// 更新票状态
        /// </summary>
        /// <param name="pricesID">价格编号</param>
        ///  <param name="trafficId">交通编号</param>
        /// <param name="status">票状态</param>
        /// <returns>true 成功 false 失败</returns>
        public bool UpdatePricesStatus(string pricesID, int trafficId, EyouSoft.Model.EnumType.PlanStructure.TicketStatus status)
        {
            if (string.IsNullOrEmpty(pricesID))
            {
                return(false);
            }
            bool result = Idal.UpdatePricesStatus(pricesID, trafficId, status);

            if (result)
            {
                this.TongBuGengXinTuanDui(trafficId);
                HandleLogsBll.Add(
                    new EyouSoft.Model.CompanyStructure.SysHandleLogs()
                {
                    ModuleId     = EyouSoft.Model.EnumType.CompanyStructure.SysPermissionClass.机票管理_交通管理,
                    EventCode    = Model.CompanyStructure.SysHandleLogsNO.EventCode,
                    EventMessage = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "{0}在" + Model.EnumType.CompanyStructure.SysPermissionClass.机票管理_交通管理.ToString() + "更新价格状态!编号为:" + pricesID,
                    EventTitle   = "修改" + Model.EnumType.CompanyStructure.SysPermissionClass.机票管理_交通管理.ToString() + "数据"
                });
            }
            return(result);
        }