public void Update(decimal TestDetailId, decimal?TestId, decimal?PatientId, int?TestTypeId,
                           DateTime?TestDate, string TestSequence, int?DataSequence, string TestResult, string NormalLevelW,
                           string NormalLevel, string MeasureUnit, string ParaName, short ParaStatus, string Note, bool?PrintData,
                           string Barcode, int?UpdateNum, string TestDataId, decimal?DeviceId, short?IsNormal)
        {
            var item = new TResultDetail();

            item.MarkOld();
            item.IsLoaded = true;

            item.TestDetailId = TestDetailId;

            item.TestId = TestId;

            item.PatientId = PatientId;

            item.TestTypeId = TestTypeId;

            item.TestDate = TestDate;

            item.TestSequence = TestSequence;

            item.DataSequence = DataSequence;

            item.TestResult = TestResult;

            item.NormalLevelW = NormalLevelW;

            item.NormalLevel = NormalLevel;

            item.MeasureUnit = MeasureUnit;

            item.ParaName = ParaName;

            item.ParaStatus = ParaStatus;

            item.Note = Note;

            item.PrintData = PrintData;

            item.Barcode = Barcode;

            item.UpdateNum = UpdateNum;

            item.TestDataId = TestDataId;

            item.DeviceId = DeviceId;

            item.IsNormal = IsNormal;

            item.Save(UserName);
        }
 public bool Destroy(object TestDetailId)
 {
     return(TResultDetail.Destroy(TestDetailId) == 1);
 }
 public bool Delete(object TestDetailId)
 {
     return(TResultDetail.Delete(TestDetailId) == 1);
 }