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

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