public static IEnumerable <QcStandardBorrow> GetStandardBorrowByStandard(QcStandard standard) { return(DbHelper.Query("select * from QC_PRO_STANDARDBORROW where 标准ID='" + standard.Code + "'").Select(t => new QcStandardBorrow(t))); }
public static QcStandard GetStandardByID(string id) { return(QcStandard.GetStandards(string.Format("标准ID='{0}'", id)).First()); }