public void Insert(string OperatorX, DateTime?BeginTime, string LotNumber, DateTime?ExpirationDate, string AssayName, string Description)
        {
            TResultLot item = new TResultLot();

            item.OperatorX = OperatorX;

            item.BeginTime = BeginTime;

            item.LotNumber = LotNumber;

            item.ExpirationDate = ExpirationDate;

            item.AssayName = AssayName;

            item.Description = Description;


            item.Save(UserName);
        }
        public void Update(long LotId, string OperatorX, DateTime?BeginTime, string LotNumber, DateTime?ExpirationDate, string AssayName, string Description)
        {
            TResultLot item = new TResultLot();

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

            item.LotId = LotId;

            item.OperatorX = OperatorX;

            item.BeginTime = BeginTime;

            item.LotNumber = LotNumber;

            item.ExpirationDate = ExpirationDate;

            item.AssayName = AssayName;

            item.Description = Description;

            item.Save(UserName);
        }