Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ugrdResultStatus.DisplayLayout.Bands[0].Columns.FromKey("CHAMPION_EMP_NAME").Header.Caption = this.GetText("LBL_00001", "KPI담당자");

        ltrScript.Text = "?";
        if (!Page.IsPostBack)
        {
            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            WebCommon.SetTermMonthDropDownList(ddlMonthInfo, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));
            WebCommon.SetSumTypeDropDownList(ddlSumType, false);
            WebCommon.SetSignalDropDownList(ddlSignal, true);

            SetPageData();

            if (Request["ESTTERM_REF_ID"] != null)
            {
                Estterm_Ref_ID  = GetRequestByInt("ESTTERM_REF_ID");
                Est_Dept_Ref_ID = GetRequestByInt("EST_DEPT_REF_ID");
                hdfDeptID.Value = Est_Dept_Ref_ID.ToString();
                Ymd             = GetRequest("YMD");

                PageUtility.FindByValueDropDownList(ddlEstTermInfo, Est_Dept_Ref_ID);
                PageUtility.FindByValueDropDownList(ddlMonthInfo, Ymd);


                //처음로그인시 사용자 부서로 초기 세팅
                Est_Dept_Ref_ID = int.Parse(DataTypeUtility.GetValue(gUserInfo.Dept_Ref_ID));
                hdfDeptID.Value = Est_Dept_Ref_ID.ToString();
            }
            else
            {
                Estterm_Ref_ID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
            }

            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);
                Est_Dept_Ref_ID = int.Parse(DataTypeUtility.GetValue(gUserInfo.Dept_Ref_ID));
                WebCommon.SetComDeptDropDownList(ddlDeptList, false, gUserInfo.Emp_Ref_ID);
                PageUtility.FindByValueDropDownList(ddlDeptList, Est_Dept_Ref_ID);
            }
            else
            {
                BindDeptList();
            }
            Est_Dept_Ref_ID = int.Parse(DataTypeUtility.GetValue(gUserInfo.Dept_Ref_ID));
            SetPageData();
            SetResultGrid();
            //WebCommon.FillEstTree(trvEstDept, Estterm_Ref_ID, gUserInfo.Emp_Ref_ID);

            //SetResultGrid();
        }
    }
Example #2
0
    private void SetResultGrid()
    {
        if (Est_Dept_Ref_ID.ToString() == "")
        {
            ltrScript.Text = JSHelper.GetAlertScript("평가부서를 선택하십시오.", false);
            return;
        }

        Biz_Bsc_Map_Kpi biz = new Biz_Bsc_Map_Kpi();
        DataSet         ds  = biz.GetKpiAnalysisPerEstDept(Estterm_Ref_ID
                                                           , Est_Dept_Ref_ID
                                                           , Ymd
                                                           , _ithreshold_ref_id
                                                           , Sum_Type);

        ugrdResultStatus.Clear();
        ugrdResultStatus.DataSource = ds;
        ugrdResultStatus.DataBind();
    }