Beispiel #1
0
        public static bool AddByGateid(ParkCarlineInfo model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("model");
            }

            IParkCarlineInfo factory = ParkCarlineInfoFactory.GetFactory();
            var  tempmode            = factory.QueryByGate(model.Gateid);
            bool result = false;

            if (tempmode == null)
            {
                result = factory.Add(model);
                if (result)
                {
                    OperateLogServices.AddOperateLog <ParkCarlineInfo>(model, OperateType.Add);
                }
            }
            else
            {
                result = factory.Update(model);
                if (result)
                {
                    OperateLogServices.AddOperateLog <ParkCarlineInfo>(model, OperateType.Update);
                }
            }
            return(result);
        }
Beispiel #2
0
        public static ParkCarlineInfo QueryMinTargetTimeInfo(string pkid)
        {
            if (pkid.IsEmpty())
            {
                throw new ArgumentNullException("pkid");
            }

            IParkCarlineInfo factory = ParkCarlineInfoFactory.GetFactory();

            return(factory.QueryMinTargetTimeInfo(pkid));
        }
Beispiel #3
0
        public static bool Delete(string gateid)
        {
            if (gateid.IsEmpty())
            {
                throw new ArgumentNullException("gateid");
            }

            IParkCarlineInfo factory = ParkCarlineInfoFactory.GetFactory();

            return(factory.Delete(gateid));
        }
Beispiel #4
0
        public static bool Update(ParkCarlineInfo mode)
        {
            if (mode == null)
            {
                throw new ArgumentNullException("mode");
            }

            IParkCarlineInfo factory = ParkCarlineInfoFactory.GetFactory();

            return(factory.Update(mode));
        }