示例#1
0
    /// <summary>
    /// my kpi
    /// </summary>
    private void SetMyKPIGrid()
    {
        ugrdMyKpiList.Clear();


        MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();


        DataTable dtMyMboKpi = bizMyKpi.SelectMyMboKpi(IEstTermRefID, bizMyKpi.SelectCurrentYYYYMM(), gUserInfo.LoginID);

        if (dtMyMboKpi.Rows.Count > 0)
        {
            Label1.Text = "mbo";
            ugrdMyKpiList.DataSource = dtMyMboKpi;
            ugrdMyKpiList.DataBind();
        }
        else
        {
            DataTable dtMyTeamKpi = bizMyKpi.SelectMyTeamKpi(IEstTermRefID, bizMyKpi.SelectCurrentYYYYMM(), gUserInfo.LoginID);

            if (dtMyTeamKpi.Rows.Count > 0)
            {
                Label1.Text = "team";
                ugrdMyKpiList.DataSource = dtMyTeamKpi;
                ugrdMyKpiList.DataBind();
            }
            else
            {
                ugrdMyKpiList.Visible = false;
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        //좌측메뉴설정

        MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();

        SetAllTimeTop();

        if (!IsPostBack)
        {
            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            WebCommon.SetTermMonthDropDownList(ddlMonthInfo, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));


            IEstTermRefID = WebUtility.GetIntByValueDropDownList(ddlEstTermInfo);
            //IYmd = WebUtility.GetIntByValueDropDownList(ddlMonthInfo);

            IYmd = bizMyKpi.SelectCurrentYYYYMM();
            ddlMonthInfo.SelectedValue = IYmd;

            DoBinding_Chart();

            SetGrid1();
            SetGrid2();
            SetGrid3();
            SetGrid4();
        }

        IEstTermRefID = WebUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        IYmd          = IYmd = WebUtility.GetByValueDropDownList(ddlMonthInfo);
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ltrScript.Text = "";



        if (!IsPostBack)
        {
            if (PageUtility.GetAppConfig("GOALTONG_YN").Equals("Y"))
            {
                rdoGoalTong.Visible = true;
            }


            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            WebCommon.SetTermMonthDropDownList(ddlMonthInfo, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));

            MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();
            YMD = bizMyKpi.SelectCurrentYYYYMM();

            PageUtility.FindByValueDropDownList(ddlMonthInfo, YMD);


            this.IisAdmin = (User.IsInRole(ROLE_ADMIN) ? "Y" : "N");

            if (this.IisAdmin == "Y")
            {
                //WebCommon.SetComDeptDropDownList(ddlDeptList, true, gUserInfo.Emp_Ref_ID);
                //PageUtility.FindByValueDropDownList(ddlDeptList, this.IDEPT_ID);
                this.DEPT_REF_ID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
                WebCommon.SetComDeptDropDownList(ddlDeptList, false, gUserInfo.Emp_Ref_ID);
                PageUtility.FindByValueDropDownList(ddlDeptList, DEPT_REF_ID);
            }
            else
            {
                BindDeptList();
            }

            this.DEPT_REF_ID = BizUtility.GetDeptID(gUserInfo.Emp_Ref_ID);
        }


        ESTTERM_REF_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        YMD            = PageUtility.GetByValueDropDownList(ddlMonthInfo);
        DEPT_REF_ID    = PageUtility.GetIntByValueDropDownList(ddlDeptList);

        SUM_TYPE = "TS";


        BindChart();
        BindScore();
        BindGrade();
        BindGrid();
    }
示例#4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        writeLog(string.Format("{0} : Page_Load START", Request.PhysicalPath));

        //좌측메뉴설정
        //base.SetMenuControl(true, true, true);

        // 웹 취약성 검사 때문에 처리
        if (IYmd.Equals("-0") ||
            ISumType.Equals("-0") ||
            IBonID.Equals("-0") ||
            IBonNAME.Equals("-0") ||
            ITeamID.Equals("-0") ||
            ITeamNAME.Equals("-0") ||
            KPI_URL.Equals("-0"))
        {
            FormsAuthentication.SignOut();
            string login_page_url = WebUtility.GetConfig("Login_Page_Url", "~/base/Login.aspx");
            Response.Redirect(login_page_url);
        }

        if (!IsPostBack)
        {
            DropDownListCommom.BindEstTerm(ddlEstTermRefID);
            IEstTermRefID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID);

            MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();
            IYmd = bizMyKpi.SelectCurrentYYYYMM();


            SetSCHDGrid("조직성과평가");
            btn1.ImageUrl = "../images/Intro/mywork1_on.png";
            btn2.ImageUrl = "../images/Intro/mywork2_off.png";
            btn3.ImageUrl = "../images/Intro/mywork3_off.png";
            btn4.ImageUrl = "../images/Intro/mywork4_off.png";

            SetMyKPIGrid();
            SetNoticeGrid();
            SetFAQGrid();
            DisplayScore();
        }
        else
        {
        }



        writeLog(string.Format("{0} : Page_Load END", Request.PhysicalPath));
    }
示例#5
0
    private void DoInitializing()
    {
        DropDownListCommom.BindEstTerm(ddlEstTermRefID);
        IEstTermRefID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID);

        MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();
        IYmd = bizMyKpi.SelectCurrentYYYYMM();

        MicroBSC.Integration.COM.Biz.Biz_NHIT bizNHIT = new MicroBSC.Integration.COM.Biz.Biz_NHIT();
        DataTable dtYear = bizNHIT.GetYear_DB();

        if (dtYear.Rows.Count > 0)
        {
            ddlYear.DataSource     = dtYear;
            ddlYear.DataTextField  = "CR_YEAR_NAME";
            ddlYear.DataValueField = "CR_YEAR";
            ddlYear.DataBind();
        }
        else
        {
            ddlYear.Items.Add(new ListItem(DateTime.Now.Year.ToString(), DateTime.Now.Year.ToString()));
        }

        DataTable dtMonth = bizNHIT.GetMonth_DB();

        if (dtMonth.Rows.Count > 0)
        {
            ddlMonth.DataSource     = dtMonth;
            ddlMonth.DataTextField  = "CR_MONTH_NAME";
            ddlMonth.DataValueField = "CR_MONTH";
            ddlMonth.DataBind();
        }
        else
        {
            ddlMonth.Items.Add(new ListItem(DateTime.Now.Month.ToString(), DateTime.Now.Month.ToString()));
        }

        ddlResolution.Items.Add(new ListItem("1024", "330*245"));
        ddlResolution.Items.Add(new ListItem("1280", "415*250"));
    }
示例#6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ltrScript.Text = "";



        if (!IsPostBack)
        {
            if (PageUtility.GetAppConfig("GOALTONG_YN").Equals("Y"))
            {
                rdoGoalTong.Visible = true;
            }


            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            WebCommon.SetTermMonthDropDownList(ddlMonthInfo, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));

            MicroBSC.Integration.BSC.Biz.Biz_My_Kpi bizMyKpi = new MicroBSC.Integration.BSC.Biz.Biz_My_Kpi();
            YMD = bizMyKpi.SelectCurrentYYYYMM();

            PageUtility.FindByValueDropDownList(ddlMonthInfo, YMD);

            BindDeptList();
        }


        ESTTERM_REF_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        YMD            = PageUtility.GetByValueDropDownList(ddlMonthInfo);
        DEPT_REF_ID    = PageUtility.GetIntByValueDropDownList(ddlDeptList);

        SUM_TYPE = "TS";


        BindChart();
        BindScore();
        BindGrade();
        BindGrid();
    }