public education_board()
        {
            InitializeComponent();
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용

            ft = Main.ft;
            Main.getEducationBoard(this);
            ebo = this;

            scon = App.scon;
            // 크기 자동 조절

            DataTable dataTable = getDBtable();

            pagin_Max_RowCount = dataTable.Rows.Count;
            //최대페이지 계산
            if (pagin_Max_RowCount % paging_NoOfRecPerPage == 0)
            {
                lbMaxRowCount.Content = pagin_Max_RowCount / paging_NoOfRecPerPage;
            }
            else
            {
                lbMaxRowCount.Content = pagin_Max_RowCount / paging_NoOfRecPerPage + 1;
            }
            firstSetTable();

            gridAssignment1.Columns[6].Visibility = Visibility.Collapsed;
        }
        TextExtHelper txtExtHelper = null;//텍스트 추출 핼퍼클래스 객체 선언


        public education_board_write()
        {
            InitializeComponent();
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용
            ft = Main.ft;

            txtExtHelper = new TextExtHelper();
        }
        TextExtHelper txtExtHelper = null;//텍스트 추출 핼퍼클래스 객체 선언
        

        public education_board_write()
        {
            InitializeComponent();
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용
            ft = Main.ft;

            txtExtHelper = new TextExtHelper();
        }
Exemple #4
0
        public Main()
        {
            InitializeComponent();
            LoadDatas();
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용
            ft             = new FileTransferServer();
            pageNavigation = PageNavi;
            if (!ft.Connect("210.118.69.166"))
            {
                MessageBox.Show("서버 아이피 주소가 틀리거나 작동중이지 않습니다.");
            }
            login loginPage = new login();

            pageFade = pageTransitionControl;


            pageFade.ShowPage(loginPage);


            this.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(Main_MouseLeftButtonDown);
        }
        public Main()
        {
            InitializeComponent();
			LoadDatas();
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용
            ft = new FileTransferServer();
            pageNavigation = PageNavi;
            if (!ft.Connect("210.118.69.166"))
            {
                MessageBox.Show("서버 아이피 주소가 틀리거나 작동중이지 않습니다.");
            }
            login loginPage = new login();
            pageFade = pageTransitionControl;
            
            
            pageFade.ShowPage(loginPage);
			
			
			this.MouseLeftButtonDown+=new System.Windows.Input.MouseButtonEventHandler(Main_MouseLeftButtonDown);
    
        }
        public education_board()
        {
            InitializeComponent();
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용

            ft = Main.ft;
            Main.getEducationBoard(this);
            ebo = this;

            scon = App.scon;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
            // 크기 자동 조절                                                                                                                              

            DataTable dataTable = getDBtable();
            pagin_Max_RowCount = dataTable.Rows.Count;
            //최대페이지 계산
            if(pagin_Max_RowCount%paging_NoOfRecPerPage == 0)
                lbMaxRowCount.Content = pagin_Max_RowCount/paging_NoOfRecPerPage ;
            else
                lbMaxRowCount.Content = pagin_Max_RowCount / paging_NoOfRecPerPage +1;
            firstSetTable();

            gridAssignment1.Columns[6].Visibility = Visibility.Collapsed;

        }
        public AssignmentPage(DataRowView d)
        {
            InitializeComponent();
            data = d;
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용
            cpD = d; //연관과제에서 이벤트를 위한 내용 접근용 변수

            //#################연관과제 페이지페이드효과 ####################
            RelationProject rProject = new RelationProject();
            pt = relationPageFade;
            pt.ShowPage(rProject);//연관과제 보여주기 위한 페이지 전환
            // #################페이지페이드효과 ####################

            scon = App.scon;

            ft = Main.ft;
            Main.setAssignPage(this);
            

            if (d.Row[10].Equals("대기중"))
            {
                relationPageFade.IsEnabled = false;
                btnAssignmentAgree.IsEnabled = true;
            }
            else if (d.Row[10].Equals("진행중"))
            {
                relationPageFade.IsEnabled = true;
                btnAssignmentAgree.IsEnabled = false;
            }

           // 서버에 연결해서 경로 탐색 후 파일 이름 가져오기
           // SocketConnection();
            string fileName = System.IO.Path.GetFileNameWithoutExtension(@d.Row[11].ToString());
            string fileExtension = System.IO.Path.GetExtension(@d.Row[11].ToString());
            
            // 총 11개
            // 0            1           2           3               4               5               6               7                    8                   9               10        11     12
            // wi_id    ex_pr_name  ex_pr_type  ex_description  ex_start_date   ex_end_date     ex_pr_status    ex_start_file_idx   ex_end_file_idx     ex_platform     ex_is_used(진행OR대기중)  ex_path  ex_data (과제요약)
            name.Content = d.Row[1];
            type.Content = d.Row[2];
            description.Content = d.Row[3];
            status.Content = d.Row[6];

            tool.Content = d.Row[9];

            used.Content = d.Row[10];

            path = d.Row[11].ToString();
			
            
			
            btnDownload.Content = new TextBlock()
            {
                Text = fileName + fileExtension,
                TextWrapping = TextWrapping.Wrap
            };


            label1.Content = "과제게시판 > 과제 DB > " + d.Row[1];
            Main.relationPage.Change_BtnContent(Main.relationPage.tbCenterText, d.Row[1].ToString()); //중심버튼 이름 바꿔주기
            
            if (data.Row[10].Equals("진행중"))
            {
                cloud.Run();//태그 구름 동작 메소드
                TagCloud();
                del1.Visibility = Visibility.Visible;
                del2.Visibility = Visibility.Visible;
                del3.Visibility = Visibility.Visible;
                del4.Visibility = Visibility.Visible;
                del5.Visibility = Visibility.Visible;
            }
        }
        public AssignmentPage(DataRowView d)
        {
            InitializeComponent();
            data = d;
            PageNavigation.CurrentPage = this; // 페이지 네비게이트 현재페이지 저장용
            cpD = d;                           //연관과제에서 이벤트를 위한 내용 접근용 변수

            //#################연관과제 페이지페이드효과 ####################
            RelationProject rProject = new RelationProject();

            pt = relationPageFade;
            pt.ShowPage(rProject);//연관과제 보여주기 위한 페이지 전환
            // #################페이지페이드효과 ####################

            scon = App.scon;

            ft = Main.ft;
            Main.setAssignPage(this);


            if (d.Row[10].Equals("대기중"))
            {
                relationPageFade.IsEnabled   = false;
                btnAssignmentAgree.IsEnabled = true;
            }
            else if (d.Row[10].Equals("진행중"))
            {
                relationPageFade.IsEnabled   = true;
                btnAssignmentAgree.IsEnabled = false;
            }

            // 서버에 연결해서 경로 탐색 후 파일 이름 가져오기
            // SocketConnection();
            string fileName      = System.IO.Path.GetFileNameWithoutExtension(@d.Row[11].ToString());
            string fileExtension = System.IO.Path.GetExtension(@d.Row[11].ToString());

            // 총 11개
            // 0            1           2           3               4               5               6               7                    8                   9               10        11     12
            // wi_id    ex_pr_name  ex_pr_type  ex_description  ex_start_date   ex_end_date     ex_pr_status    ex_start_file_idx   ex_end_file_idx     ex_platform     ex_is_used(진행OR대기중)  ex_path  ex_data (과제요약)
            name.Content        = d.Row[1];
            type.Content        = d.Row[2];
            description.Content = d.Row[3];
            status.Content      = d.Row[6];

            tool.Content = d.Row[9];

            used.Content = d.Row[10];

            path = d.Row[11].ToString();



            btnDownload.Content = new TextBlock()
            {
                Text         = fileName + fileExtension,
                TextWrapping = TextWrapping.Wrap
            };


            label1.Content = "과제게시판 > 과제 DB > " + d.Row[1];
            Main.relationPage.Change_BtnContent(Main.relationPage.tbCenterText, d.Row[1].ToString()); //중심버튼 이름 바꿔주기

            if (data.Row[10].Equals("진행중"))
            {
                cloud.Run();//태그 구름 동작 메소드
                TagCloud();
                del1.Visibility = Visibility.Visible;
                del2.Visibility = Visibility.Visible;
                del3.Visibility = Visibility.Visible;
                del4.Visibility = Visibility.Visible;
                del5.Visibility = Visibility.Visible;
            }
        }