Exemple #1
0
        public virtual bool IsObjective(Item item)
        {
            if (Obtain == null)
            {
                return(false);
            }

            if (Obtain.IsAssignableFrom(item.GetType()))
            {
                return(true);
            }

            return(false);
        }
Exemple #2
0
        public ActionResult Index()
        {
            string DTA1 = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
            string DT   = DateTime.Now.ToString("yyyy-MM-dd");

            Obtain ob = new Obtain();

            //ob.BusA1DataGet("Tainan", "橘9", "date(GPSTime) eq " + DT + " ");
            //ob.BusA2DataGet("Tainan", "橘9", "date(GPSTime) eq 2020-08-24");
            ob.BusN1DataGet("Tainan", "橘9", "date(GPSTime) eq " + DT + " ");


            ViewBag.Title = "Home Page";
            return(View());
        }
Exemple #3
0
 /// <inheritdoc/>
 public override bool DoesModelPassFilter(string filter) =>
 Price.Contains(filter, StringComparison.OrdinalIgnoreCase) ||
 Obtain.Contains(filter, StringComparison.OrdinalIgnoreCase);