protected void GridView1_SelectedIndexChanging(object sender, System.Web.UI.WebControls.GridViewSelectEventArgs e)
        {
            ModalPopupExtender1.Show();
            string struid, strFlag;

            //int iWTUid = 0;
            struid      = GridView1.Rows[e.NewSelectedIndex].Cells[1].Text;
            strFlag     = GridView1.Rows[e.NewSelectedIndex].Cells[2].Text;
            CostTB.Text = GridView1.Rows[e.NewSelectedIndex].Cells[7].Text;
            UidHF.Value = struid;
            //FlagHF.Value = strFlag;
            if (strFlag == "0")
            {
                BlockCB.Checked = false;
            }
            else
            {
                BlockCB.Checked = true;
            }
        }
Example #2
0
 protected void Detalhes(object sender, System.Web.UI.WebControls.GridViewSelectEventArgs e)
 {
     Response.Redirect("Detalhes.aspx?Id=" + GridView1.Rows[e.NewSelectedIndex].Cells[0].Text);
 }
Example #3
0
        /**********************************************************
         *
         *  책 검색
         *
         **********************************************************/
        private void bookSearchBtn_Click(object sender, EventArgs e)
        {
            if (isError == true || !System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
            {
                MessageBox.Show("인터넷 연결에 문제가 있습니다 :*(", "Robot의 경고");
                return;
            }

            bookSearchBtn.Enabled = false;

            // 도서 상태 초기화
            while (bookGridView.Rows.Count != 0)
            {
                bookGridView.Rows.RemoveAt(0);
            }

            bookTitle.Text = "책 제목";
            bookReview.Text = "";
            bookReviewUrl = "";

            library.bookSearch(bookQuery1.Text, bookQuery2.Text, bookOption1.Text, bookOption2.Text, bookOperator.Text);

            if (library.books.Length == 0)
            {
                MessageBox.Show("조건에 맞는 책이 없습니다 :(", "Robot의 경고");
            }

            for (int i = 0; i < library.books.Length; i++)
            {
                bookGridView.Rows.Add(library.books[i].rows);
            }

            System.Web.UI.WebControls.GridViewSelectEventArgs ee = new System.Web.UI.WebControls.GridViewSelectEventArgs(1);
            bookGridView_SelectionChanged(boardGrid, ee);

            bookSearchBtn.Enabled = true;
        }
Example #4
0
        /**********************************************************
         *
         *  웹브라우저 세션 유지 위해
         *
         **********************************************************/
        private void sessionTimer_Tick(object sender, EventArgs e)
        {
            if (isError == true)
            {
                return;
            }

            mailBox.Enabled = false;
            settingBox.Enabled = false;
            notifyBox.Enabled = false;
            reloadBox.Enabled = false;

            if (!System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() && isError == false)
            {
                reLoginEvent();
            }

            visibleLoading();

            isLoading = true;

            sayTimer.Stop();
            sayLabel.Text = "= 세션 유지를 위한 로딩이 진행 중입니다. 잠시만 기다려 주세요 :-) =";

            isSessionLoading = true;

            loadinglabel.Visible = true;
            loadinglabel.Text = "세션 유지 시작";

            loadingProgressBar.Visible = true;
            loadingProgressBar.Value = 0;

            browser.Navigate("http://portal.unist.ac.kr/EP/web/collaboration/bbs/jsp/BB_BoardLst.jsp?boardid=B200902281833482321051");

            while (browser.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }

            loadinglabel.Text = "메인 세션 유지 완료";
            portal.setBoard1();
            loadingProgressBar.Value += 15;

            browser.Navigate("http://bb.unist.ac.kr/webapps/blackboard/execute/announcement?method=search&context=mybb&handle=my_announcements");

            while (browser.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }

            loadinglabel.Text = "블랙보드 세션 유지 완료";
            portal.setBoard2();
            loadingProgressBar.Value += 10;

            browser.Navigate("http://library.unist.ac.kr/");

            while (browser.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }

            loadinglabel.Text = "기숙사 세션 유지 완료";
            portal.setBoard3();
            loadingProgressBar.Value += 10;

            browser.Navigate("http://dorm.unist.ac.kr/home/sub04/sub04_01.asp");

            while (browser.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }

            loadinglabel.Text = "도서관 세션 유지 완료";
            portal.setBoard4();
            loadingProgressBar.Value += 10;

            browser.Navigate("http://mail.unist.ac.kr/");

            while (browser.ReadyState != WebBrowserReadyState.Complete)
            {
                Application.DoEvents();
            }

            loadinglabel.Text = "전자우편 세션 유지 완료";
            loadingProgressBar.Value =loadingProgressBar.Maximum;

            isLoading = false;
            isSessionLoading = false;

            randomSayLabel();

            loadingProgressBar.Visible = false;
            loadinglabel.Visible = false;

            System.Web.UI.WebControls.GridViewSelectEventArgs ee = new System.Web.UI.WebControls.GridViewSelectEventArgs(1);
            boardGrid_SelectionChanged(boardGrid, ee);

            mailBox.Enabled = true;
            settingBox.Enabled = true;
            notifyBox.Enabled = true;
            reloadBox.Enabled = true;

            sayTimer.Start();

            visiblePortal();
        }