Пример #1
0
        public long AddNewTestParameter(TestParameter pNewParam)
        {
            DBTestParameter pDBParam = DBConversionHelper.ToDBParam(pNewParam);
            long            nNewID   = __pDB.InsertNewTestParameter(pDBParam);

            return(nNewID);
        }
Пример #2
0
        public TestParameter GetTestParameter(long nParamID)
        {
            DBTestParameter pParam = __pDB.GetTestParameter(nParamID);

            return(DBConversionHelper.FromDBParam(pParam));
        }
Пример #3
0
        public bool  UpdateTestParameter(TestParameter pUpdateParam)
        {
            DBTestParameter pDBParam = DBConversionHelper.ToDBParam(pUpdateParam);

            return(__pDB.UpdateTestParameter(pDBParam));
        }
 internal static TestParameter FromDBParam(DBTestParameter pFrom)
 {
     return(new TestParameter(pFrom.ID, pFrom.Name, pFrom.PreTestMS, pFrom.TestTimeMS, pFrom.HighLimitmV, pFrom.LowLimitmV));
 }