示例#1
0
 protected void btnCompleteLoading_Click(object sender, EventArgs e)
 {
     try
     {
         SaveTruckInfo();
         ginProcess.CompleteGINProcess();
         //PageDataTransfer transfer = new PageDataTransfer((string)transferedData.GetTransferedData("ReturnPage"));
         //GINProcessWrapper.RemoveGINProcessInformation();
         //transferedData.RemoveAllData();
         //transfer.Navigate();
     }
     catch (Exception ex)
     {
         errorDisplayer.ShowErrorMessage(ex.Message);
     }
 }
示例#2
0
        public System.Data.SqlClient.SqlTransaction CompleteGINProcess()
        {
            IGINProcess    originalGIN = new GINProcessBLL(currentGINProcess.GINProcessInformation.TransactionId);
            SqlTransaction transaction = currentGINProcess.CompleteGINProcess();

            try
            {
                AuditTrailWrapper atw = new AuditTrailWrapper(AuditTrailWrapper.PUNCompletion, "PUN Process");
                atw.AddChange(originalGIN.GINProcessInformation, currentGINProcess.GINProcessInformation, AuditTrailWrapper.ExistingRecord);

                if (!atw.Save())
                {
                    transaction.Rollback();
                    throw new Exception("Failed to save audit trail!");
                }
            }
            catch (Exception ex)
            {
                transaction.Rollback();
                throw ex;
            }
            return(transaction);
        }