From a1b0ab7044100daaa7e0f1da2d2ca45e38098963 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 29 三月 2021 09:13:25 +0800
Subject: [PATCH] 2021-3-29-2
---
HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 110 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs
new file mode 100644
index 0000000..6d95d0e
--- /dev/null
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/Logic.cs
@@ -0,0 +1,110 @@
+锘縰sing System;
+using System.Collections.Generic;
+namespace HDL_ON.UI.UI2.Intelligence.Automation
+{
+ /// <summary>
+ /// 閫昏緫瀛樺偍鏁版嵁瀵硅薄
+ /// </summary>
+ public class Logic
+ {
+
+ /// <summary>
+ /// 閫昏緫鍒楄〃
+ /// </summary>
+ public static List<Logic> LogicList = new List<Logic>();
+ /// <summary>
+ /// 褰撳墠閫昏緫
+ /// </summary>
+ public static Logic currlogic;
+ /// <summary>
+ /// 浜戠鍞竴id
+ /// </summary>
+ public string userLogicId = "";
+ /// <summary>
+ /// 閫昏緫鍞竴鏍囪瘑
+ /// </summary>
+ public string sid = "";
+ /// <summary>
+ /// 閫昏緫鍚嶇О
+ /// </summary>
+ public string name = "鑷姩鍖�";
+ /// <summary>
+ /// 閫昏緫鏉′欢鍏崇郴锛堜笌and:锛屾垨:or锛�
+ /// </summary>
+ public string relation = "and";
+ /// <summary>
+ /// 閫昏緫鐘舵�侊紙true锛宖alse锛�
+ /// </summary>
+ public string enable = "true";
+ /// <summary>
+ /// 閫昏緫鎵ц寰幆鍛ㄦ湡锛堟墽琛屼竴娆★紝姣忓ぉ锛屾瘡鏈堬紝鏄熸湡锛�
+ /// </summary>
+ public Cycle cycle = new Cycle();
+ /// <summary>
+ /// 閫昏緫杈撳叆鏉′欢鏁扮粍
+ /// </summary>
+ public List<Input> input = new List<Input>();
+ /// <summary>
+ /// 閫昏緫杈撳嚭鐩爣鏁扮粍
+ /// </summary>
+ public List<Output> output = new List<Output>();
+
+
+ }
+ /// <summary>
+ /// 鎵ц鍛ㄦ湡瀵硅薄
+ /// </summary>
+ public class Cycle
+ {
+ /// <summary>
+ /// 鏃堕棿绫诲瀷
+ /// (鎵ц涓�娆�:once锛屾瘡澶�:day锛屾瘡鏈�:mon锛屾槦鏈�:week锛屾棩鏈熸:date_to_date)
+ /// </summary>
+ public string type = "day";
+ public List<string> value = new List<string>();
+ }
+ /// <summary>
+ /// 杈撳叆鏉′欢瀵硅薄
+ /// </summary>
+ public class Input
+ {
+ /// <summary>
+ /// 閫昏緫杈撳叆鏉′欢鍞竴鏍囪瘑
+ /// </summary>
+ public string sid = "";
+ /// <summary>
+ /// 閫昏緫杈撳叆鏉′欢绫诲瀷
+ /// 鏃堕棿鐐规潯浠�=1;
+ /// 鏃堕棿娈垫潯浠�=2;
+ /// 璁惧鐘舵�佸彉鍖栨潯浠�=3;
+ /// 鐜淇℃伅鏉′欢=4;
+ /// 瀹夐槻鏉′欢=5;
+ /// 浜戠澶╂皵鏉′欢=6;
+ /// 鏌愪釜閫昏緫/鍦烘櫙鐨勮緭鍑烘潯浠�=7;
+ /// 鍦扮悊鍥存爮=8;
+ /// </summary>
+ public string condition_type = "";
+ public List<Dictionary<string, string>> condition = new List<Dictionary<string, string>>();
+ }
+ /// <summary>
+ /// 杈撳嚭鐩爣瀵硅薄
+ /// </summary>
+ public class Output
+ {
+ /// <summary>
+ /// 閫昏緫杈撳嚭鐩爣鍞竴鏍囪瘑
+ /// </summary>
+ public string sid = "";
+ /// <summary>
+ /// 閫昏緫杈撳嚭鐩爣绫诲瀷
+ /// 璁惧=1;
+ /// 鍦烘櫙=2;
+ /// 寤舵椂=3;
+ /// </summary>
+ public string target_type = "";
+ public List<Dictionary<string, string>> status = new List<Dictionary<string, string>>();
+ }
+
+
+}
+
--
Gitblit v1.8.0