コード例 #1
0
ファイル: DeliverSystem.cs プロジェクト: zjchenxk/SYLS
        /// <summary>
        /// 读取待打印划拨出仓单货物数据
        /// </summary>
        /// <param name="nShipmentBillId"></param>
        /// <param name="nOpStaffId"></param>
        /// <param name="strOpStaffName"></param>
        /// <param name="strErrText"></param>
        /// <returns></returns>
        public List<ShipmentBillGoods> LoadShipmentBillAllGoods(long nShipmentBillId, long nOpStaffId, string strOpStaffName, out string strErrText)
        {
            try
            {
                List<ShipmentBillGoods> dataResult = null;
                strErrText = String.Empty;

                using (TransactionScope transScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(2, 0, 0)))
                {
                    using (DeliverDAO dao = new DeliverDAO())
                    {
                        dataResult = dao.LoadShipmentBillAllGoods(nShipmentBillId, nOpStaffId, strOpStaffName, out strErrText);
                    }
                    transScope.Complete();
                }
                return dataResult;
            }
            catch (Exception e)
            {
                strErrText = e.Message;
                return null;
            }
        }