添加子功能逻辑
This commit is contained in:
commit
50485955cd
11 files changed
+155
-34
No files matched your search
@@ -880,7 +880,7 @@ namespace DyeingComputer.ViewModel
|
||||
updata_RUN.Clear();
|
||||
updata_RUN.Add("RUN", 1);
|
||||
SQLiteHelpers.Update("RUN", updata_RUN, "Step ='"+ RUN_STEPID + "'", null);//更新
|
||||
dt_TP = SQLiteHelpers.ExecuteDataSet("select * from RUN", null).Tables[0];
|
||||
dt_TP = SQLiteHelpers.ExecuteDataSet("select * from RUN WHERE Mode = 0", null).Tables[0];
|
||||
SQLiteHelpers.Close();//关闭数据库
|
||||
}
|
||||
|
||||
@@ -2279,6 +2279,9 @@ namespace DyeingComputer.ViewModel
|
||||
public static DataTable dt_a = new DataTable("AIO");
|
||||
public static DataTable dt_m = new DataTable("M");
|
||||
public static DataTable dt_TP = new DataTable();
|
||||
public static DataTable dt_TP_S1 = new DataTable();
|
||||
public static DataTable dt_TP_S2 = new DataTable();
|
||||
public static DataTable dt_TP_S3 = new DataTable();
|
||||
public static DataTable dt_ParameterSet = new DataTable();
|
||||
public static DataTable dt_SysSet = new DataTable();
|
||||
public static void SQL_data()//获得io表
|
||||
@@ -2290,7 +2293,7 @@ namespace DyeingComputer.ViewModel
|
||||
dt_m = SQLiteHelpers.ExecuteDataSet("select * from IOName where type='M' order by ID", null).Tables[0];
|
||||
dt_ParameterSet = SQLiteHelpers.ExecuteDataSet("select * from Parameters order by ParameterID asc", null).Tables[0];
|
||||
dt_SysSet = SQLiteHelpers.ExecuteDataSet("select * from System order by ParameterID asc", null).Tables[0];
|
||||
dt_TP = SQLiteHelpers.ExecuteDataSet("select * from RUN", null).Tables[0];
|
||||
dt_TP = SQLiteHelpers.ExecuteDataSet("select * from RUN WHERE Mode = 0", null).Tables[0];
|
||||
SQLiteHelpers.Close();
|
||||
|
||||
dt_d.RowChanged += new DataRowChangeEventHandler(ROW_changed_D);//添加行改变触发事件
|
||||
@@ -2664,6 +2667,12 @@ namespace DyeingComputer.ViewModel
|
||||
public double Step { get; set; }
|
||||
public string StepID { get; set; }
|
||||
public string StepName { get; set; }
|
||||
public string StepID_S1 { get; set; }
|
||||
public string StepName_S1 { get; set; }
|
||||
public string StepID_S2 { get; set; }
|
||||
public string StepName_S2 { get; set; }
|
||||
public string StepID_S3 { get; set; }
|
||||
public string StepName_S3 { get; set; }
|
||||
public string ParameterName { get; set; }
|
||||
public string Parameter1 { get; set; }
|
||||
public string Parameter2 { get; set; }
|
||||
|
||||
Reference in new issue
Block a user