public void Insert(string TestTypeName, string Note, short?IntOrder, short?PrintDetail, decimal?Price,
                           string Abbreviation)
        {
            var item = new TTestTypeList();

            item.TestTypeName = TestTypeName;

            item.Note = Note;

            item.IntOrder = IntOrder;

            item.PrintDetail = PrintDetail;

            item.Price = Price;

            item.Abbreviation = Abbreviation;


            item.Save(UserName);
        }
        public void Update(int TestTypeId, string TestTypeName, string Note, short?IntOrder, short?PrintDetail,
                           decimal?Price, string Abbreviation)
        {
            var item = new TTestTypeList();

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

            item.TestTypeId = TestTypeId;

            item.TestTypeName = TestTypeName;

            item.Note = Note;

            item.IntOrder = IntOrder;

            item.PrintDetail = PrintDetail;

            item.Price = Price;

            item.Abbreviation = Abbreviation;

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