| | |
| | | |
| | | Function function; |
| | | List<Function> showFunctions; |
| | | List<Function> sensorList; |
| | | /// <summary> |
| | | /// 当前查询类型 |
| | | /// </summary> |
| | |
| | | { |
| | | bodyView = this; |
| | | function = ss; |
| | | showFunctions = new List<Function>(); |
| | | showFunctions.Add(ss); |
| | | sensorList = FunctionList.List.GetEnvirSensorsList(); |
| | | } |
| | | |
| | | |
| | | public EnvironmentalSensorPage(Function ss,List<Function> functions) |
| | | { |
| | | bodyView = this; |
| | | function = ss; |
| | | sensorList = functions; |
| | | showFunctions = new List<Function>(); |
| | | showFunctions.Add(ss); |
| | | } |
| | |
| | | TextColor = CSS_Color.PromptingColor2, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Text = DateTime.Now.Month.ToString() + Language.StringByID(StringId.month), |
| | | Text = Language.StringByID(StringId.month),//DateTime.Now.Month.ToString() + |
| | | }; |
| | | showDataTypeView.AddChidren(btnShowHistroyData_Month); |
| | | #endregion |
| | |
| | | |
| | | bool initTitleButton = true; |
| | | |
| | | var tempList = FunctionList.List.GetEnvirSensorsList(); |
| | | |
| | | foreach (var tempSensor in tempList) |
| | | foreach (var tempSensor in sensorList) |
| | | { |
| | | if (tempSensor.sid == function.sid) |
| | | { |
| | |
| | | } |
| | | |
| | | var sensorType = sr.spk.Split(".")[1]; |
| | | var queryType = sr.GetAttrState("spk")==null? "value": sr.GetAttrState("spk"); |
| | | var queryType = sr.GetAttrState("spk").ToString(); |
| | | if(queryType == "0") |
| | | { |
| | | queryType = "value"; |
| | | } |
| | | |
| | | var revertObj = new HttpServerRequest().GetSensorHistory(curQueryType, sr.deviceId, queryType); |
| | | if (revertObj != null) |