コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // 웹 취약성 검사 때문에 처리
        if (ICCB1.Equals("-0"))
        {
            ltrScript.Text = JSHelper.GetAlertScript("악성 요청을 거부합니다.", false);
            FormsAuthentication.SignOut();
            string login_page_url = WebUtility.GetConfig("Login_Page_Url", "~/base/Login.aspx");
            Response.Redirect(login_page_url);
        }

        if (!Page.IsPostBack)
        {
            if (User.IsInRole(ROLE_ADMIN))
            {
                iBtnWriteNotice.Visible = true;
            }
            else
            {
                iBtnWriteNotice.Visible = false;
            }

            SetNoticeGrid();
        }
    }
コード例 #2
0
ファイル: BSC0703S1.aspx.cs プロジェクト: schifflee/bscgit
    protected void Page_Load(object sender, EventArgs e)
    {
        // 웹 취약성 검사 때문에 처리
        if (ICCB1.Equals("-0") ||
            IYMD.Equals("-0"))
        {
            ltrScript.Text = JSHelper.GetAlertScript("악성 요청을 거부합니다.", false);
            FormsAuthentication.SignOut();
            string login_page_url = WebUtility.GetConfig("Login_Page_Url", "~/base/Login.aspx");
            Response.Redirect(login_page_url);
        }

        if (!IsPostBack)
        {
            this.SetFormInit();
            this.SetParameter();
            this.SetCommunicationGrid();
        }
        else
        {
        }


        this.ugrdKpiStatusTab.Tabs.FromKey("1").Text = string.Format("나의 {0}/{1}", this.GetText("LBL_00007", "Comment"), this.GetText("LBL_00008", "Feedback"));
        this.ugrdKpiStatusTab.Tabs.FromKey("2").Text = string.Format("관련조직의 {0}/{1}", this.GetText("LBL_00007", "Comment"), this.GetText("LBL_00008", "Feedback"));
    }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // 웹 취약성 검사 때문에 처리
        if (ICCB1.Equals("-0") ||
            IYMD.Equals("-0"))
        {
            ltrScript.Text = JSHelper.GetAlertScript("악성 요청을 거부합니다.", false);
            FormsAuthentication.SignOut();
            string login_page_url = WebUtility.GetConfig("Login_Page_Url", "~/base/Login.aspx");
            Response.Redirect(login_page_url);
        }

        ugrdKpiResultList.DisplayLayout.Bands[0].Columns.FromKey("CHAMPION_EMP_NAME").Header.Caption = this.GetText("LBL_00001", "KPI담당자");

        if (!Page.IsPostBack)
        {
            this.NotPostBackSetting();
        }
        else
        {
            this.PostBackSetting();
        }
    }