Exemplo n.º 1
0
 public static IParkReserveBit GetFactory()
 {
     if (factory == null)
     {
         Type type = Type.GetType("Common." + SystemDefaultConfig.DatabaseProvider + "Repository.Park.ParkReserveBitDAL,Common." + SystemDefaultConfig.DatabaseProvider + "Repository", true);
         factory = (IParkReserveBit)Activator.CreateInstance(type);
     }
     return(factory);
 }
Exemplo n.º 2
0
        public static bool ModifyReserveBit(string ReserveBitID, int status, out string errorMsg)
        {
            if (ReserveBitID.IsEmpty())
            {
                throw new ArgumentNullException("ReserveBitID");
            }

            IParkReserveBit factory = ParkReserveBitFactory.GetFactory();

            return(factory.ModifyReserveBit(ReserveBitID, status, out errorMsg));
        }
Exemplo n.º 3
0
        public static ParkReserveBit GetCanUseParkReserveBit(string pkid, string platenumber, out string errorMsg)
        {
            if (pkid.IsEmpty())
            {
                throw new ArgumentNullException("pkid");
            }

            IParkReserveBit factory = ParkReserveBitFactory.GetFactory();

            return(factory.GetCanUseParkReserveBit(pkid, platenumber, out errorMsg));
        }