예제 #1
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;
        }
예제 #2
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 = "선호 지번";
        }
예제 #3
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;
        }