Exemplo n.º 1
0
 public AddPersonPresenter(IAddPersonView view, IPersonModel model)
 {
     _view  = view;
     _model = model;
     _data  = DataManagement.Instance;
     Initialize();
 }
Exemplo n.º 2
0
        /// <summary>
        /// BLF 알고리즘 적용시 호출되는 생성자
        /// </summary>
        /// <param name="_resultsInfo"></param>
        /// <param name="_workshopInfoList"></param>
        public Viewer(ArrangementResultWithDateDTO _resultsInfo, List <WorkshopDTO> _workshopInfoList)
        {
            mResultsInfo = new ArrangementResultWithDateDTO();
            mResultsInfo = _resultsInfo;

            mBlockArrangement  = new BlockArrangementMgr();
            mDataManagement    = new DataManagement();
            mResultsManagement = new ResultsManagement();

            mWorkshopInfoList      = new List <WorkshopDTO>();
            mWorkshopInfoList      = _workshopInfoList;
            mArrangementMatrixList = new List <UnitcellDTO[, ]>();

            int numOfDates;


            numOfDates = mResultsInfo.TotalDailyArragnementedBlockList.Count;


            for (int i = 0; i < numOfDates; i++)
            {
                DateTime tempDate = mResultsInfo.ArrangementStartDate;
                tempDate = tempDate.AddDays(i);

                string strtempDate = tempDate.ToShortDateString();

                tempDateIndexList.Add(strtempDate);
            }

            InitializeComponent();

            lstArrDateList.ItemsSource = tempDateIndexList;
        }
Exemplo n.º 3
0
        public frmMain()
        {
            InitializeComponent();
            IsWorkshopInfoReady = false;
            IsBlockInfoReady    = false;
            mBlockArrangement   = new BlockArrangementMgr();
            mDataManagement     = new DataManagement();
            mResultsManagement  = new ResultsManagement();

            grdWorkshopInfo.ColumnCount     = 5;
            grdWorkshopInfo.Columns[0].Name = "Index";
            grdWorkshopInfo.Columns[1].Name = "작업장이름";
            grdWorkshopInfo.Columns[2].Name = "세로";
            grdWorkshopInfo.Columns[3].Name = "가로";
            grdWorkshopInfo.Columns[4].Name = "지번 갯수";

            grdBlockInfo.ColumnCount      = 14;
            grdBlockInfo.Columns[0].Name  = "Index";
            grdBlockInfo.Columns[1].Name  = "프로젝트번호";
            grdBlockInfo.Columns[2].Name  = "블록번호";
            grdBlockInfo.Columns[3].Name  = "세로";
            grdBlockInfo.Columns[4].Name  = "가로";
            grdBlockInfo.Columns[5].Name  = "상향작업공간";
            grdBlockInfo.Columns[6].Name  = "하향작업공간";
            grdBlockInfo.Columns[7].Name  = "좌측작업공간";
            grdBlockInfo.Columns[8].Name  = "우측작업공간";
            grdBlockInfo.Columns[9].Name  = "리드타임";
            grdBlockInfo.Columns[10].Name = "투입날짜";
            grdBlockInfo.Columns[11].Name = "반출날짜";
            grdBlockInfo.Columns[12].Name = "선호 작업장";
            grdBlockInfo.Columns[13].Name = "선호 지번";
        }
Exemplo n.º 4
0
        /// <summary>
        /// Greedy 알고리즘 적용시 호출되는 생성자
        /// </summary>
        /// <param name="_blockInfoList"></param>
        /// <param name="_workshopInfoList"></param>
        public Viewer(List <BlockDTO> _blockInfoList, List <WorkshopDTO> _workshopInfoList, List <UnitcellDTO[, ]> _arrangementMatrixList)
        {
            mBlockArrangement      = new BlockArrangementMgr();
            mDataManagement        = new DataManagement();
            mResultsManagement     = new ResultsManagement();
            mBlockInfoList         = new List <BlockDTO>();
            mBlockInfoList         = _blockInfoList;
            mWorkshopInfoList      = new List <WorkshopDTO>();
            mWorkshopInfoList      = _workshopInfoList;
            mArrangementMatrixList = new List <UnitcellDTO[, ]>();
            mArrangementMatrixList = _arrangementMatrixList;

            InitializeComponent();

            //btnShow.IsEnabled = true;
        }
Exemplo n.º 5
0
        public static ISystemSpecification get(string specType = "ASC", string dataType = "SQL")
        {
            IDataManagement dataManagement = DataManagementFactory.get(dataType);

            switch (specType)
            {
            case "ASC":
                return(new SystemSpecificationAsc(dataManagement));

            case "DESC":
                //return new SystemSpecificationDesc(dataManagement);
                return(null);

            default:
                return(new SystemSpecificationAsc(dataManagement));
            }
        }
Exemplo n.º 6
0
        public ReportingService(ITaskRepository taskRepository,
                                IUserRepository userRepository,
                                IDailyUsageStatisticsRepository dailyUsageStatisticsRepository,
                                IDataManagement dbQueryManager,
                                ICommonService commonService,
                                TaskModelFactory taskModelFactory)
        {
            _taskRepository = taskRepository;

            _userRepository = userRepository;

            _dailyUsageStatisticsRepository = dailyUsageStatisticsRepository;

            _dbQueryManager = dbQueryManager;

            _commonService = commonService;

            _taskModelFactory = taskModelFactory;
        }
Exemplo n.º 7
0
 public SystemSpecificationDesc(IDataManagement dataManagement)
 {
     this.dataManagement = dataManagement;
 }
 public ApplicationRepository(IDataManagement dataManagement)
 {
     _dataManagement = dataManagement;
 }
 public ApplicationRepository()
 {
     _dataManagement = DataManagement.GetInstance();
 }
 public CustomerRepository(IDataManagement dataManagement)
 {
     _dataManagement = dataManagement;
 }
 public CustomerRepository()
 {
     _dataManagement = DataManagement.GetInstance();
 }
 // ReSharper disable once UnusedMember.Global
 public TourPlannerServer(IDataManagement db, IMapApi map, IExportHandler handler)
 {
     this.db      = db;
     this.map     = map;
     this.handler = handler;
 }