/// <summary> /// 关闭已打开的bll instances /// </summary> private void CloseBlls() { TrackerPositionInstance.Close(); StorageInstance.Close(); PositionInstance.Close(); EquipmentInstance.Close(); EposInstance.Close(); DataInstance.Close(); DailyInstance.Close(); CustomerInstance.Close(); AlarmInstance.Close(); }
/// <summary> /// 处理查询设备EPOS报警历史记录的请求 /// </summary> /// <returns></returns> private string HandleEquipmentEposFaultHistory() { var ret = "[]"; try { var id = ParseInt(Utility.Decrypt(data)); var start = DateTime.Parse(GetParamenter("start") + " 00:00:00"); var end = DateTime.Parse(GetParamenter("end") + " 23:59:59"); var eposList = EposInstance.FindList <TB_Data_EposFault>(f => f.Equipment == id && f.ReceiveTime >= start && f.ReceiveTime <= end, "ReceiveTime", true); ret = JsonConverter.ToJson(eposList); } catch { } return(ret); }