/// <summary> /// 清除当前作业的检查数据,请谨慎使用该方法 /// </summary> /// <returns></returns> public static void ClearnAllCheckData(QcJob job) { DbHelper.Execute("delete from " + QcCheckData.TableName + " where 作业编号='" + job.Code + "'"); }
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))); }
/// <summary> /// 清除所有的检查数据,请谨慎使用该方法 /// </summary> /// <returns></returns> public static void ClearnAllCheckData() { DbHelper.Execute("delete from " + QcCheckData.TableName); }