示例#1
0
        public Result CheckAndUploadImeiToOracle(DateTime fromdate, DateTime todate, string model, string color, int quantity, List <ImeiModelUpload> list, string oracletranscationCode)
        {
            try
            {
                //IReporting report = new WCMS_DAL_Reporting();
                var result = new Result();
                //using (
                //    var transaction = new TransactionScope(TransactionScopeOption.Required,
                //        ApplicationState.TransactionOptions))
                try
                {
                    result.IsSuccess = iProductionReport.CheckAndUploadImeiToOracle(fromdate, todate, model, color, quantity, list, oracletranscationCode);

                    //if (result.IsSuccess)
                    //  / transaction.Complete();
                    //else
                    //{
                    //    transaction.Dispose();
                    //}
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }