Esempio n. 1
0
 public KyOperation(double tempValue, bool isHumidity)
 {
     this.tempValue  = tempValue;
     this.isHumidity = isHumidity;
     isOpened        = true;
     dateTime        = DateTime.Now;
 }
Esempio n. 2
0
 //读字段信息
 public override void readFields(BmobInput input)
 {
     base.readFields(input);
     tempValue  = input.getDouble("tempValue");
     isHumidity = input.getBoolean("isHumidity");
     isOpened   = input.getBoolean("isOpened");
     isAuto     = input.getBoolean("isAuto");
     dateTime   = input.getDate("dateTime");
 }
Esempio n. 3
0
        public override void readFields(BmobInput input)
        {
            base.readFields(input);

            TechniqueID = input.getString("TechniqueID");
            Name        = input.getString("Name");
            Description = input.getString("Description");
            CreateDate  = input.getDate("CreateDate");
            FinishDate  = input.getDate("FinishDate");
        }
Esempio n. 4
0
        public IList <TB_TechniqueLog> FindLogBetweenDate(DateTime start, DateTime end)
        {
            BmobDate st = start;
            BmobDate ed = end;

            BmobQuery query = new BmobQuery();

            query.WhereGreaterThanOrEqualTo("Date", st);
            query.WhereLessThanOrEqualTo("Date", ed);
            return(FindByQuery(query));
        }
Esempio n. 5
0
 public static bool IsInvailDate(BmobDate date)
 {
     if (date == null)
     {
         return(true);
     }
     else
     {
         DateTime now  = DateTime.Parse(date.iso);
         DateTime rule = DateTime.Parse(InvailDate.iso);
         return(now.CompareTo(rule) >= 0);
     }
 }
Esempio n. 6
0
        public void BmobDateTest()
        {
            BmobDate d = DateTime.Now;

            Console.WriteLine(d);
        }
Esempio n. 7
0
 public static string FormatBombDateTime(BmobDate date)
 {
     return(DateTime.Parse(date.iso).ToString("yyyy-MM-dd hh:mm:ss"));
 }