Beispiel #1
0
        // 事务,防止审核不过,但是状态变了;
        public static void ApproveShipments(System.Collections.Generic.List <DocKeyDTOData> shipKeyList)
        {
            using (UBFTransactionScope aTransact = new UBFTransactionScope(TransactionOption.Required))
            {
                try
                {
                    AuditShipSVProxy approveproxy = new AuditShipSVProxy();
                    approveproxy.ShipKeys = shipKeyList;
                    approveproxy.Do();

                    aTransact.Commit();
                }
                catch (Exception ex)
                {
                    aTransact.Rollback();

                    throw ex;
                }
            }
        }
Beispiel #2
0
        public static void ApproveShipments(System.Collections.Generic.List<DocKeyDTOData> shipKeyList)
        {
            using (UBFTransactionScope aTransact = new UBFTransactionScope(TransactionOption.Required))
            {
                try
                {
                    AuditShipSVProxy approveproxy = new AuditShipSVProxy();
                    approveproxy.ShipKeys = shipKeyList;
                    approveproxy.Do();

                    aTransact.Commit();
                }
                catch (Exception ex)
                {
                    aTransact.Rollback();

                    throw ex;
                }
            }
        }