From 5eeafe3af80bfd88306bd8ad9e76c8f4b51ca35f Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期四, 17 十二月 2020 14:16:20 +0800 Subject: [PATCH] 增加本地发送的重发机制 --- 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