예제 #1
0
 /// <summary>
 /// 清除当前作业的检查数据,请谨慎使用该方法
 /// </summary>
 /// <returns></returns>
 public static void ClearnAllCheckData(QcJob job)
 {
     DbHelper.Execute("delete from " + QcCheckData.TableName + " where 作业编号='" + job.Code + "'");
 }
예제 #2
0
        public static IEnumerable <QcCheckData> GetCheckData(QcJob job)
        {
            var rows = DbHelper.Query("select * from " + QcCheckData.TableName + " where 作业编号='" + job.Code + "'");

            return(rows.Select(t => new QcCheckData(t)));
        }
예제 #3
0
 /// <summary>
 /// 清除所有的检查数据,请谨慎使用该方法
 /// </summary>
 /// <returns></returns>
 public static void ClearnAllCheckData()
 {
     DbHelper.Execute("delete from " + QcCheckData.TableName);
 }