Example #1
0
 public KyOperation(double tempValue, bool isHumidity)
 {
     this.tempValue  = tempValue;
     this.isHumidity = isHumidity;
     isOpened        = true;
     dateTime        = DateTime.Now;
 }
Example #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");
 }
Example #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");
        }
Example #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));
        }
Example #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);
     }
 }
Example #6
0
        public void BmobDateTest()
        {
            BmobDate d = DateTime.Now;

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