public void Insert(decimal TestId, string AliasName, string Barcode, string ParaName, short Status, int DeviceId, string TestDataId, byte?HasResult, string HisIdXn) { var item = new TRegList(); item.TestId = TestId; item.AliasName = AliasName; item.Barcode = Barcode; item.ParaName = ParaName; item.Status = Status; item.DeviceId = DeviceId; item.TestDataId = TestDataId; item.HasResult = HasResult; item.HisIdXn = HisIdXn; item.Save(UserName); }
public void Update(long TestRegDetailId, decimal TestId, string AliasName, string Barcode, string ParaName, short Status, int DeviceId, string TestDataId, byte?HasResult, string HisIdXn) { var item = new TRegList(); item.MarkOld(); item.IsLoaded = true; item.TestRegDetailId = TestRegDetailId; item.TestId = TestId; item.AliasName = AliasName; item.Barcode = Barcode; item.ParaName = ParaName; item.Status = Status; item.DeviceId = DeviceId; item.TestDataId = TestDataId; item.HasResult = HasResult; item.HisIdXn = HisIdXn; item.Save(UserName); }
public bool Destroy(object TestRegDetailId) { return(TRegList.Destroy(TestRegDetailId) == 1); }