From 23ee4f8c373f9abecf079ef9d4297d8b6cd8d5e6 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 16 十二月 2020 15:16:00 +0800 Subject: [PATCH] Merge branch 'NewFilePath' --- HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs index 56cdcc9..9727a29 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/TimeTpye.cs @@ -230,11 +230,11 @@ Button btnStartTimeText = new Button { TextSize = LogicView.TextSize.text12, - Width = Application.GetRealWidth(32 + 3), + Width = Application.GetRealWidth(32 + 3+20), Height = Application.GetRealHeight(17), TextColor = CSS.CSS_Color.textCancelColor, Y = Application.GetRealHeight(17), - X = Application.GetRealWidth(260), + X = Application.GetRealWidth(260-20), Tag = "0", }; startTimeView.frameLayout.AddChidren(btnStartTimeText); @@ -253,11 +253,11 @@ Button btnEndTimeText = new Button { TextSize = LogicView.TextSize.text12, - Width = Application.GetRealWidth(32 + 3), + Width = Application.GetRealWidth(32 + 3+20), Height = Application.GetRealHeight(17), TextColor = CSS.CSS_Color.textCancelColor, Y = Application.GetRealHeight(17), - X = Application.GetRealWidth(260), + X = Application.GetRealWidth(260-20), Tag = "0", }; endTimeView.frameLayout.AddChidren(btnEndTimeText); @@ -310,7 +310,7 @@ LogicMethod.dictionary(dic, "key", "timesection"); LogicMethod.dictionary(dic, "comparator", "="); LogicMethod.dictionary(dic, "data_type", "string"); - LogicMethod.dictionary(dic, "value", btnStartTimeText.Text + "~" + btnEndTimeText.Text); + LogicMethod.dictionary(dic, "value", btnStartTimeText.Text + "-" + btnEndTimeText.Text); inputTime.condition.Add(dic); if (edit) { @@ -344,8 +344,8 @@ foreach (var dic in dicList) { string value = dic["value"]; - string startTime = value.Split('~')[0]; - string endtTime = value.Split('~')[1]; + string startTime = value.Split('-')[0]; + string endtTime = value.Split('-')[1]; btnStartTimeText.Text = startTime; btnStartTimeText.Tag = int.Parse(startTime.Split(':')[0]) * 60 + int.Parse(startTime.Split(':')[1]); btnEndTimeText.Text = endtTime; -- Gitblit v1.8.0