| | |
| | | { |
| | | try |
| | | { |
| | | return Utlis.UnixToDateTimeWithFormatMS(time, "yyyy-MM-dd HH:mm"); |
| | | return Utlis.UnixToDateTimeWithFormatMS(time, "yyyy.MM.dd HH:mm"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | BackgroundColor = 0x1F5C62FE, |
| | | BorderColor = CSS_Color.MainColor, |
| | | BorderWidth = 2, |
| | | Radius = 1, |
| | | }; |
| | | showDataTypeView.AddChidren(btnShowHistroyData_Day); |
| | | btnShowHistroyData_Day.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerBottomLeft); |
| | |
| | | IsSelected = false, |
| | | BorderWidth = 1, |
| | | BorderColor = CSS_Color.PromptingColor1, |
| | | Radius = 1, |
| | | }; |
| | | showDataTypeView.AddChidren(btnShowHistroyData_Month); |
| | | btnShowHistroyData_Month.BorderWidth = 1; |
| | | btnShowHistroyData_Month.BorderColor = CSS_Color.PromptingColor1; |
| | | |
| | | var btnShowHistroyData_Year = new Button() |
| | | { |
| | |
| | | IsSelected = false, |
| | | BorderWidth = 1, |
| | | BorderColor = CSS_Color.PromptingColor1, |
| | | Radius = 1, |
| | | }; |
| | | showDataTypeView.AddChidren(btnShowHistroyData_Year); |
| | | btnShowHistroyData_Year.BorderWidth = 1; |
| | | btnShowHistroyData_Year.BorderColor = CSS_Color.PromptingColor1; |
| | | |
| | | var btnShowHistroyData_Total = new Button() |
| | | { |
| | |
| | | IsSelected = false, |
| | | BorderWidth = 1, |
| | | BorderColor = CSS_Color.PromptingColor1, |
| | | Radius = 1, |
| | | }; |
| | | showDataTypeView.AddChidren(btnShowHistroyData_Total); |
| | | btnShowHistroyData_Total.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerBottomRight | HDLUtils.RectCornerTopRight); |
| | |
| | | { |
| | | return; |
| | | } |
| | | curQueryType = "total"; |
| | | |
| | | (sender as Button).SelectedBackgroundColor = 0x1F5C62FE; |
| | | (sender as Button).BackgroundColor = 0x1F5C62FE; |
| | | (sender as Button).BorderColor = CSS_Color.MainColor; |
| | |
| | | btnShowHistroyData_Day.BackgroundColor = 0x00000000; |
| | | btnShowHistroyData_Day.SelectedBackgroundColor = 0x00000000; |
| | | |
| | | |
| | | |
| | | #if __IOS__ |
| | | btnShowHistroyData_Day.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerBottomLeft); |
| | | btnShowHistroyData_Total.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerBottomRight | HDLUtils.RectCornerTopRight); |
| | | #endif |
| | | }; |
| | | |
| | | btnShowHistroyData_Day.MouseUpEventHandler = (sender, e) => |
| | |
| | | btnShowHistroyData_Total.BackgroundColor = 0x00000000; |
| | | btnShowHistroyData_Total.SelectedBackgroundColor = 0x00000000; |
| | | |
| | | #if __IOS__ |
| | | btnShowHistroyData_Day.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerBottomLeft); |
| | | btnShowHistroyData_Total.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerBottomRight | HDLUtils.RectCornerTopRight); |
| | | #endif |
| | | curQueryType = "hour"; |
| | | brokenLine.YvalueText = ""; |
| | | LoadMothed_GetHistoryData(); |
| | |
| | | btnShowHistroyData_Total.BackgroundColor = 0x00000000; |
| | | btnShowHistroyData_Total.SelectedBackgroundColor = 0x00000000; |
| | | |
| | | #if __IOS__ |
| | | btnShowHistroyData_Day.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerBottomLeft); |
| | | btnShowHistroyData_Total.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerBottomRight | HDLUtils.RectCornerTopRight); |
| | | #endif |
| | | curQueryType = "month"; |
| | | brokenLine.YvalueText = ""; |
| | | LoadMothed_GetHistoryData(); |
| | |
| | | { |
| | | return; |
| | | } |
| | | |
| | | (sender as Button).SelectedBackgroundColor = 0x1F5C62FE; |
| | | (sender as Button).BackgroundColor = 0x1F5C62FE; |
| | | (sender as Button).BorderColor = CSS_Color.MainColor; |
| | |
| | | btnShowHistroyData_Total.BackgroundColor = 0x00000000; |
| | | btnShowHistroyData_Total.SelectedBackgroundColor = 0x00000000; |
| | | |
| | | #if __IOS__ |
| | | btnShowHistroyData_Day.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerBottomLeft); |
| | | btnShowHistroyData_Total.SetCornerWithSameRadius((uint)Application.GetRealHeight(6), HDLUtils.RectCornerBottomRight | HDLUtils.RectCornerTopRight); |
| | | #endif |
| | | |
| | | curQueryType = "year_month"; |
| | | brokenLine.YvalueText = ""; |
| | |
| | | #if __IOS__ |
| | | public string optionString = @"{ |
| | | tooltip: { |
| | | trigger: 'axis' |
| | | trigger: 'axis', |
| | | textStyle: { |
| | | fontSize: 30 |
| | | }, |
| | | padding:40, |
| | | }, |
| | | grid: { |
| | | top: '10%', |
| | |
| | | }, |
| | | xAxis: { |
| | | name: '{10}', |
| | | nameTextStyle: { |
| | | fontSize: 30 |
| | | }, |
| | | type: 'category', |
| | | boundaryGap: false, |
| | | data: [{0}], |
| | |
| | | }, |
| | | yAxis: { |
| | | name: '{20}', |
| | | nameGap:30, |
| | | nameTextStyle: { |
| | | fontSize: 30 |
| | | }, |
| | | type: 'value', |
| | | axisLabel : { |
| | | fontSize:30, |
| | |
| | | #if __IOS__ |
| | | public string optionString2 = @"{ |
| | | tooltip: { |
| | | trigger: 'axis' |
| | | trigger: 'axis', |
| | | padding:40, |
| | | textStyle: { |
| | | fontSize: 30 |
| | | }, |
| | | }, |
| | | grid: { |
| | | top: '10%', |
| | |
| | | }, |
| | | xAxis: { |
| | | name: '{10}', |
| | | nameTextStyle: { |
| | | fontSize: 30 |
| | | }, |
| | | type: 'category', |
| | | boundaryGap: {11}, |
| | | data: [{0}], |
| | |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | name: '{20}', |
| | | name: '{20}', |
| | | nameGap:30, |
| | | nameTextStyle: { |
| | | fontSize: 30 |
| | | }, |
| | | type: 'value', |
| | | axisLabel : { |
| | | fontSize:30, |