Example #1
0
        public void ImportFlowChart(FlowChartImport importItem, int accountID)
        {
            flowChartMasterRepository.ImportFlowChart(importItem, accountID);

            //using (TransactionScope scope = new TransactionScope())
            //{
            //    FlowChart_Master flMasterItem = new FlowChart_Master();
            //    flMasterItem = AutoMapper.Mapper.Map<FlowChart_Master>(importItem.FlowChartMasterDTO);
            //    flMasterItem.CurrentDepartent = "PP";
            //    flowChartMasterRepository.Add(flMasterItem);

            //    List<FLUIDAndBindSeq> FlSeqList = new List<FLUIDAndBindSeq>();
            //    foreach (var detailDTOItem in importItem.FlowChartImportDetailDTOList)
            //    {
            //        var detailItem = AutoMapper.Mapper.Map<FlowChart_Detail>(detailDTOItem.FlowChartDetailDTO);
            //        detailItem.EndTime = null;
            //        flMasterItem.FlowChart_Detail.Add(detailItem);

            //    }
            //    unitOfWork.Commit();
            //    scope.Complete();
            //}
        }