private void btnQuery_Click(object sender, EventArgs e)
        {
            var con = new DeviceReadLogSearchCondition();
            con.ReadDateRange = new DateTimeRange(ucDateTimeInterval1.StartDateTime, ucDateTimeInterval1.EndDateTime);
            var deivces = ucDivision1.GetSelectedDevices();
            if (deivces != null && deivces.Count > 0) con.Devices = deivces.Select(it => it.ID).ToList();
            if (!string.IsNullOrEmpty(cmbDeviceType.Text)) con.DeviceType = (DeviceType)cmbDeviceType.SelectedIndex;

            var items = new DeviceReadLogBLL(AppSettings.Current.ConnStr).GetItems(con).QueryObjects;
            ShowItemsOnGrid(items);
        }
        public void FreshData()
        {
            _Devices = new DeviceBLL(AppSettings.Current.ConnStr).GetItems(null).QueryObjects;

            var con = new DeviceReadLogSearchCondition();
            con.ReadDateRange = new DateTimeRange(DateTime.Today.AddMonths(-12), DateTime.Now);
            _ReadLogs = new DeviceReadLogBLL(AppSettings.Current.ConnStr).GetItems(con).QueryObjects;

            divisionTree1.Init();
            divisionTree1_NodeMouseClick(divisionTree1, null);
        }