From e7385e16297cc9659d0cc0eaf3cdf0786a3d35ce Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期三, 24 十一月 2021 15:49:53 +0800
Subject: [PATCH] 2021-11-24-01

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs |   85 +++++++++++++++++++++---------------------
 1 files changed, 42 insertions(+), 43 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
index 3d72d3f..a260eab 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/AddInputType.cs
@@ -11,7 +11,6 @@
     }
     public void Show()
     {
-
       LogicView.TopView topView = new LogicView.TopView();
       this.AddChidren(topView.FLayoutView());
       topView.clickBackBtn.MouseUpEventHandler += (e, sen) =>
@@ -106,12 +105,12 @@
       //瀹ゅ鍙樺寲
       shiwaiView.btnClick.MouseUpEventHandler += (sen, e) =>
       {
-              //if (string.IsNullOrEmpty(Entity.DB_ResidenceData.Instance.CurrentRegion.homeAddress))//.longitude == 0 && Entity.DB_ResidenceData.Instance.CurrentRegion.latitude == 0)
-              //{
-              //    new PublicAssmebly().TipMsg(StringId.tip, StringId.GatewayLocationInformationIsNotConfigured);
-              //    return;
-              //}
-              Weather weather = new Weather();
+        //if (string.IsNullOrEmpty(Entity.DB_ResidenceData.Instance.CurrentRegion.homeAddress))//.longitude == 0 && Entity.DB_ResidenceData.Instance.CurrentRegion.latitude == 0)
+        //{
+        //    new PublicAssmebly().TipMsg(StringId.tip, StringId.GatewayLocationInformationIsNotConfigured);
+        //    return;
+        //}
+        Weather weather = new Weather();
         MainPage.BasePageView.AddChidren(weather);
         weather.Show();
         MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
@@ -215,59 +214,59 @@
          string valueStr = "arrive";
          if (str == Language.StringByID(StringId.daoda))
          {
-                 //鍒拌揪鏌愬湴
-                 valueStr = "arrive";
+           //鍒拌揪鏌愬湴
+           valueStr = "arrive";
          }
          else
          {
-                 //绂诲紑
-                 valueStr = "leave";
+           //绂诲紑
+           valueStr = "leave";
          }
 
 #if __Android__
                  //鐢宠瀹氫綅鏉冮檺
                  ((BaseActivity)Application.Activity).SetGPSLocationPermission((result1) =>
                   {
-                      if (result1 == false) { return; }
+                    if (result1 == false) { return; }
 
                   //鐢宠鍏佽绋嬪簭鍐欏叆澶栭儴瀛樺偍锛屽SD鍗′笂鍐欐枃浠�
                   ((BaseActivity)Application.Activity).SetPermission((result2) =>
                   {
-                      if (result2 == false) { return; }
+                    if (result2 == false) { return; }
                        //璇诲彇鐢佃瘽鐘舵�佹潈闄�
                        ((BaseActivity)Application.Activity).SetPermission((result3) =>
                        {
-                           if (result3 == false) { return; }
+                         if (result3 == false) { return; }
 
-                           //璋冪敤鏂规硶锛岃烦杞〉闈�
-                           GDMapKit.Show((mLatitude, mLongitude, mRadius, name) =>
-                            {
-                               //楂樺痉鍧愭爣杞琖GS84鍧愭爣(楂樺痉鍦板浘璁剧疆GPS)
-                               double out_lng, out_lat;
-                                LogicMethod.CurrLogicMethod.GCJ02_to_WGS84(mLongitude, mLatitude, out out_lng, out out_lat);
-                                Input input = new Input();
-                                input.sid = LogicMethod.CurrLogicMethod.NewSid();
-                                input.condition_type = "8";
-                                Dictionary<string, string> dic = new Dictionary<string, string>();
-                                LogicMethod.CurrLogicMethod.dictionary(dic, "key", "direction");
-                                LogicMethod.CurrLogicMethod.dictionary(dic, "comparator", "=");
-                                LogicMethod.CurrLogicMethod.dictionary(dic, "data_type", "string");
-                                LogicMethod.CurrLogicMethod.dictionary(dic, "value", valueStr);
-                                input.condition.Add(dic);
-                               //绾害
-                               input.geo_fence.latitude = out_lat.ToString();
-                               //缁忓害
-                               input.geo_fence.longitude = out_lng.ToString();
-                               //鍗婂緞<鍗曚綅绫�>
-                               input.geo_fence.radius = mRadius.ToString();
-                                AddCondition(input);
-                                LogicMethod.CurrLogicMethod.RemoveAllView();
-                                AddLogic addLogic = new AddLogic();
-                                MainPage.BasePageView.AddChidren(addLogic);
-                                addLogic.Show();
-                                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                         //璋冪敤鏂规硶锛岃烦杞〉闈�
+                         GDMapKit.Show((mLatitude, mLongitude, mRadius, name) =>
+                          {
+                            //楂樺痉鍧愭爣杞琖GS84鍧愭爣(楂樺痉鍦板浘璁剧疆GPS)
+                            double out_lng, out_lat;
+                            LogicMethod.CurrLogicMethod.GCJ02_to_WGS84(mLongitude, mLatitude, out out_lng, out out_lat);
+                            Input input = new Input();
+                            input.sid = LogicMethod.CurrLogicMethod.NewSid();
+                            input.condition_type = "8";
+                            Dictionary<string, string> dic = new Dictionary<string, string>();
+                            LogicMethod.CurrLogicMethod.dictionary(dic, "key", "direction");
+                            LogicMethod.CurrLogicMethod.dictionary(dic, "comparator", "=");
+                            LogicMethod.CurrLogicMethod.dictionary(dic, "data_type", "string");
+                            LogicMethod.CurrLogicMethod.dictionary(dic, "value", valueStr);
+                            input.condition.Add(dic);
+                            //绾害
+                            input.geo_fence.latitude = out_lat.ToString();
+                            //缁忓害
+                            input.geo_fence.longitude = out_lng.ToString();
+                            //鍗婂緞<鍗曚綅绫�>
+                            input.geo_fence.radius = mRadius.ToString();
+                            AddCondition(input);
+                            LogicMethod.CurrLogicMethod.RemoveAllView();
+                            AddLogic addLogic = new AddLogic();
+                            MainPage.BasePageView.AddChidren(addLogic);
+                            addLogic.Show();
+                            MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
 
-                            }, strname, Language.StringByID(StringId.save), true, latitude, longitude, r);
+                          }, strname, Language.StringByID(StringId.save), true, latitude, longitude, r);
 
                        }, "android.permission.READ_PHONE_STATE");
 
@@ -305,7 +304,7 @@
             MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
           }, strname, Language.StringByID(StringId.save), true, latitude, longitude, r);
 #endif
-             });
+       });
 
 
     }

--
Gitblit v1.8.0